* {
    box-sizing: border-box
}

body {
    margin: 0;
    color: #073d2c;
    font: 14px 'Nunito Sans', sans-serif
}

a {
    text-decoration: none;
    color: inherit
}

.nav-link {
    color: #073d2c;
    font-weight: 600;
    font-size: 11px;
    transition: background .18s ease
}

.nav-link:hover {
    color: #ff7714;
}

header {
    height: 72px;
    padding: 0 5%;
    display: flex;
    align-items: center;
    gap: 25px;
    background: white
}

.logo {
    font-size: 18px;
    font-weight: 900;
    color: #00633e;
    line-height: .8;
    white-space: nowrap
}

.logo b,
.logo span,
h1 span {
    color: #ff7714
}

.logo small {
    display: block;
    font-size: 8px;
    margin: 5px 0 0 23px
}

nav {
    display: flex;
    justify-content: center;
    gap: 19px;
    flex: 1;
    font-size: 12px
}

.register,
button {
    background: #006642;
    color: #fff;
    border: 0;
    border-radius: 22px;
    padding: 9px 18px;
    font-weight: 600
}

.register:hover {
    background: #005030
}

.km-header-cart {
    margin-left: auto;
}

.km-header-cart #cart {
    display: block;
    width: auto;
}

.km-header-cart #cart > button {
    background: transparent;
    border: 0;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    padding: 0;
    color: var(--worker-primary);
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.km-header-cart #cart > button:hover {
    background: rgba(0, 102, 66, 0.08);
    color: var(--worker-primary);
}

.km-header-cart #cart > button:focus {
    outline: none;
}

.km-header-cart #cart-total {
    position: absolute;
    top: -4px;
    right: -6px;
    background: #ff7714;
    color: #fff;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: 700;
    padding: 0 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.km-header-cart .dropdown-menu {
    display: none !important;
}

.hero {
    height: 390px;
    display: grid;
    grid-template-columns: 50% 50%;
    background: #effff0;
    overflow: hidden
}

.hero>div {
    padding: 45px 7vw
}

.hero em {
    background: #07623f;
    color: #fff;
    padding: 6px 12px;
    border-radius: 15px;
    font-style: normal;
    font-weight: 600
}

.hero h1 {
    font-size: 58px;
    line-height: 1;
    margin: 18px 0 4px
}

.hero h2 {
    margin: 0;
    font-size: 29px
}

.hero p {
    font-size: 16px;
    color: #222
}

.hero .light {
    background: #fff;
    color: #06452e;
    border: 2px solid #06452e
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.trust {
    text-align: center;
    padding: 16px;
    background: #fff;
    box-shadow: 0 2px 10px #0002;
    font-weight: 600;
    word-spacing: 7px
}

.section {
    padding: 28px 5%
}

.section h2 {
    margin: 0;
    font-size: 23px
}

.grid {
    display: grid;
    gap: 18px;
    margin-top: 18px
}

.roles {
    grid-template-columns: repeat(3, 1fr)
}

.km-list-card {
    display: flex;
    flex-wrap: wrap;
    row-gap: 18px;
}

.roles article,
.cards article {
    border: 1px solid #d8e8df;
    border-radius: 12px;
    overflow: hidden;
    padding: 12px;
    box-shadow: 0 2px 7px #0032
}

.roles img {
    width: calc(100% + 24px);
    height: 250px;
    object-fit: cover;
    margin: -12px -12px 4px
}

.roles p {
    min-height: 38px;
    font-size: 12px;
    color: #345
}

.roles button {
    padding: 6px 16px
}

.categories {
    grid-template-columns: repeat(8, 1fr)
}

.categories article {
    border: 1px solid #dbe8e1;
    border-radius: 8px;
    padding: 25px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 12px
}

.categories small,
.cards b,
.cards strong,
.cards small {
    display: block;
    margin-top: 5px
}

.categories small {
    color: #08714a
}

.green {
    background: #f4fcf2
}

.cards {
    grid-template-columns: repeat(4, 1fr)
}

.cards img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 6px
}

.cards strong {
    color: #007348
}

.cards small {
    color: #ef9700
}

.cards button {
    width: 100%;
    font-size: 11px;
    padding: 6px;
    margin-top: 7px
}

.why {
    padding: 28px 5%;
    text-align: center;
    background: #edfff3
}

.why h2 {
    margin: 0
}

.why p {
    font-weight: 600;
    word-spacing: 18px
}

.app {
      padding: 30px 12%;
      color: #fff;
      background: url('http://localhost/v1/image/catalog/homepagebanner/banner_image/appbanner1.png') center/cover
    }

   .app h2 {
      font-size: 28px;
      margin: 0;
      font-weight: 800;
    }

    .app p {
        font-size: 15px;
        font-weight: 500;
     }

     .playstorebutton, .appstorebutton {
           background-color: #000;
           color: #fff;
     }

footer {
    background: #003e2d;
    color: #fff;
    padding: 25px 5%;
    display: flex;
    gap: 82px;
    min-height: 145px;
    position: relative
}

footer>div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 11px
}

footer small:last-child {
    position: absolute;
    bottom: 10px;
    left: 5%;
    padding-top: 8px;
    width: 90%
}

.logo-heading {
    margin: 4px;
    font-size: 30px;
    font-weight: 600;
}

@media(max-width:850px) {
    nav {
        display: none
    }

    .hero {
        grid-template-columns: 1fr;
        height: auto
    }

    .hero img {
        height: 250px
    }

    .roles {
        grid-template-columns: repeat(2, 1fr)
    }

    .categories {
        grid-template-columns: repeat(4, 1fr)
    }

    .cards {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:500px) {
    header {
        padding: 0 15px
    }

    .hero>div {
        padding: 35px 25px
    }

    .hero h1 {
        font-size: 46px
    }

    .trust {
        line-height: 2
    }

    .categories {
        grid-template-columns: repeat(2, 1fr)
    }

    footer {
        flex-wrap: wrap;
        gap: 20px
    }
}

.header-utilities {
    display: flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap
}

.location-picker {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #00633e;
    font-size: 14px
}

.location-picker select {
    border: 0;
    background: transparent;
    color: #073d2c;
    font: inherit;
    font-weight: 600;
    outline: 0;
    cursor: pointer;
    max-width: 72px
}

.header-search {
    height: 38px;
    display: flex;
    align-items: center;
    border: 1px solid #bcd8cb;
    border-radius: 22px;
    overflow: hidden;
    background: #fff
}

.header-search input {
    width: 190px;
    border: 0;
    outline: 0;
    padding: 8px 10px;
    font: 12px 'Nunito Sans', sans-serif
}

.header-search button {
    background: transparent;
    color: #00633e;
    padding: 4px 10px;
    font-size: 20px;
    line-height: 1;
    border-radius: 0
}

.login {
    border: 1px solid #006642;
    border-radius: 22px;
    padding: 8px 15px;
    font-weight: 600
}

.login:hover {
    background: #006642;
    color: #fff
}


@media(max-width:1150px) {
    .header-search input {
        width: 125px
    }

    .header {
        gap: 14px
    }

    nav {
        gap: 12px
    }
}

@media(max-width:850px) {
    .header-utilities {
        margin-left: auto
    }

    .header-search {
        position: absolute;
        top: 100%;
        left: 15px;
        right: 15px;
        z-index: 6;
        box-shadow: 0 3px 12px #0032
    }

    .header-search input {
        width: 100%
    }

    .hero {
        margin-top: 43px
    }

    .location-picker {
        display: none
    }
}

@media(max-width:500px) {
    .login {
        display: none
    }

    .header-utilities {
        gap: 5px
    }

    .register {
        padding: 8px 11px
    }
}

/* Unified hero: copy and artwork intentionally share one banner canvas. */
.hero {
    display: block;
    position: relative;
    height: 410px;
    background: #dff5dd;
    isolation: isolate
}

.hero>img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -2
}

.hero:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(245, 255, 239, .98) 0%, rgba(245, 255, 239, .91) 35%, rgba(245, 255, 239, .28) 62%, rgba(245, 255, 239, .04) 100%);
    z-index: -1
}

.hero>div {
    position: relative;
    max-width: 650px;
    padding: 50px 0 35px 8vw
}

.hero h1 {
    font-size: 60px;
    text-shadow: 0 1px 0 #fff
}

.hero h2 {
    font-size: 30px
}

.hero p {
    max-width: 470px;
    font-weight: 600
}

.hero button {
    margin: 8px 8px 0 0
}

@media(max-width:850px) {
    .hero {
        height: 510px
    }

    .hero>img {
        object-position: 64% center
    }

    .hero:after {
        background: linear-gradient(180deg, rgba(245, 255, 239, .98) 0%, rgba(245, 255, 239, .86) 55%, rgba(245, 255, 239, .05) 100%)
    }

    .hero>div {
        padding: 38px 25px
    }

    .hero h1 {
        font-size: 48px
    }
}

.km-home {
    background: linear-gradient(180deg, #f6fff9 0%, #fff 42%, #f3fff7 100%)
}

.km-hero-btn,
.roles a,
.km-module-heading>a,
.km-card-actions a,
.km-card-actions button,
.km-product-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border-radius: 22px;
    border: 0;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Nunito Sans', sans-serif
}

.km-hero-btn {
    margin: 8px 8px 0 0;
    padding: 12px 22px;
    color: #fff;
    background: linear-gradient(135deg, #ff7a18, #ff9d24);
    box-shadow: 0 7px 18px rgba(255, 122, 24, .24)
}

.km-hero-btn.light {
    color: #06452e;
    background: #fff;
    border: 2px solid #06452e;
    box-shadow: none
}

.trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    max-width: 1120px;
    margin: -24px auto 0;
    position: relative;
    z-index: 5;
    border-radius: 8px;
    word-spacing: 0
}

.trust span {
    border-right: 1px solid #d7eadf;
    color: #07583b
}

.trust span:last-child {
    border-right: 0
}

.km-eyebrow,
.km-module-heading span {
    color: #08714a;
    font-weight: 600;
    margin: 0 0 4px
}

.roles article {
    background: #fff;
    border-radius: 8px;
    padding: 14px;
    border-color: #d7eadf;
    transition: transform .18s ease, box-shadow .18s ease
}

.roles article:hover,
.km-profile-card:hover,
.km-product-card:hover,
.km-category-card:hover,
.km-testimonials article:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(3, 68, 43, .13)
}

.roles h3 {
    margin: 8px 0 4px;
    font-size: 20px
}

.roles a {
    min-width: 130px;
    padding: 8px 18px;
    color: #fff;
    background: #057347
}

.role-contractor a {
    background: #1f83f2
}

.role-shopkeeper a {
    background: #b331c5
}

.role-customer a {
    background: #ff3f62
}

.km-dynamic-zone {
    padding-top: 18px;
    padding-bottom: 18px
}

.km-market-block,
.km-module-section {
    display: grid;
    gap: 24px
}

.km-module-section {
    margin: 0 0 28px;
    padding: 22px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid #dbeee4;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(0, 64, 40, .08)
}

.km-module-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px
}

.km-module-heading h2 {
    margin: 0;
    color: #06452e;
    font-size: 18px
}

.km-module-heading>a {
    color: #07583b;
    padding: 8px 14px;
    border: 1px solid #b8dccb;
    background: #f8fffb
}

.km-profile-grid,
.km-product-grid,
.km-category-grid,
.km-why-grid,
.km-testimonial-grid {
    display: grid;
    gap: 16px
}

.km-profile-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr))
}

.km-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr))
}

.km-category-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr))
}

.km-product-category-grid {
     grid-template-columns: repeat(1, minmax(0, 1fr))
}

.km-profile-card,
.km-product-card,
.km-category-card,
.km-testimonials article {
    min-width: 0;
    background: #fff;
    border: 1px solid #d7eadf;
    border-radius: 8px;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease
}

.km-profile-image,
.km-product-image {
    display: block;
    height: 150px;
    background: #eff8f3;
    overflow: hidden
}

.km-profile-image img,
.km-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.km-profile-body,
.km-product-body {
    padding: 12px 12px 10px
}

.km-chip {
    display: inline-block;
    max-width: 100%;
    padding: 4px 9px;
    border-radius: 18px;
    color: #07583b;
    background: #e7f8ef;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.km-profile-body h3,
.km-product-body h3 {
    min-height: 38px;
    margin: 8px 0 4px;
    font-size: 16px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.km-profile-body p {
    min-height: 34px;
    margin: 0 0 6px;
    color: #53685d;
    font-size: 12px
}

.km-profile-body small,
.km-product-body small {
    display: block;
    color: #f59f00;
    font-weight: 600
}

.km-profile-body strong,
.km-product-body strong {
    display: block;
    margin-top: 5px;
    color: #067548;
    font-size: 16px
}

.km-profile-body strong span,
.km-product-body strong span {
    color: #82948b;
    font-size: 12px;
    text-decoration: line-through
}

.km-card-actions,
.km-product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 12px 12px
}

.km-card-actions button,
.km-card-actions a {
    flex: 1 1 calc(50% - 4px);
    min-width: 72px;
    color: #fff;
    background: #057347;
    padding: 7px 10px;
    font-size: 12px
}

.km-card-actions a {
    color: #07583b;
    background: #edf9f2;
    border: 1px solid #c7e4d4
}

.km-card-actions .btn-like {
    color: #07583b;
    background: #fff7df;
    border: 1px solid #f3d382
}

.km-card-actions .btn-like.active {
    color: #fff;
    background: #f59f00;
    border-color: #f59f00
}

.km-card-actions .like-count {
    margin-left: 4px
}

.km-product-actions button:first-child {
    flex: 1;
    color: #fff;
    background: #057347;
    padding: 7px 10px
}

.km-product-actions button:not(:first-child) {
    width: 36px;
    padding: 0;
    color: #07583b;
    background: #edf9f2;
    border: 1px solid #c7e4d4
}

.km-category-card {
    display: grid;
    place-items: center;
    min-height: 65px;
    padding: 4px 10px;
    text-align: center
}

.km-category-card span {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #fff;
    background: #08714a;
    font-size: 11px;
    font-weight: 600
}

.km-category-card b {
    margin-top: 8px;
    color: #073d2c;
     font-size: 12px;
}

.km-category-card small {
    color: #08714a;
    font-weight: 600
}

.km-why-grid {
    grid-template-columns: repeat(5, 1fr);
    max-width: 1050px;
    margin: 18px auto 0
}

.km-why-grid span {
    display: grid;
    gap: 4px;
    padding: 0 14px;
    border-right: 1px solid #c8e3d4
}

.km-why-grid span:last-child {
    border-right: 0
}

.km-why-grid small,
.km-testimonials small {
    color: #53685d
}

.km-testimonial-grid {
    grid-template-columns: repeat(4, 1fr)
}

.km-testimonials article {
    padding: 18px;
    box-shadow: 0 6px 18px rgba(0, 64, 40, .06)
}

.km-testimonials p {
    min-height: 62px;
    color: #53685d
}

.km-testimonial-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px
}

.km-testimonial-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e7f8ef;
    flex-shrink: 0
}

.km-testimonial-rating {
    color: #f59f00;
    font-size: 13px;
    margin-bottom: 6px
}

.km-testimonial-empty {
    color: #53685d
}

.km-testimonial-actions {
    margin-top: 18px;
    text-align: right
}

.km-testimonial-viewall {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #057347;
    font-size: 14px;
    font-weight: 600
}

.km-testimonial-viewall::after {
    content: "\f105";
    font-family: FontAwesome;
    font-size: 12px
}

@media(max-width:1100px) {
    .km-profile-grid,
    .km-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }

    .km-category-grid,
    .km-testimonial-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }
}

@media(max-width:850px) {
    .trust,
    .km-profile-grid,
    .km-product-grid,
    .km-category-grid,
    .km-why-grid,
    .km-testimonial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .km-module-heading {
        align-items: flex-start;
        flex-direction: column
    }
}

@media(max-width:500px) {
    .trust,
    .roles,
    .cards,
    .km-profile-grid,
    .km-product-grid,
    .km-category-grid,
    .km-why-grid,
    .km-testimonial-grid {
        grid-template-columns: 1fr
    }

    .km-module-section {
        padding: 15px
    }

    .km-profile-image,
    .km-product-image {
        height: 180px
    }

    .km-why-grid span {
        border-right: 0;
        border-bottom: 1px solid #c8e3d4;
        padding-bottom: 12px
    }
}

@media(max-width:500px) {
    .hero {
        height: 470px
    }

    .hero h1 {
        font-size: 42px
    }

    .hero h2 {
        font-size: 23px
    }

    .hero p {
        font-size: 14px
    }
}

/* Reliable hero stacking: photograph, readable gradient, then copy. */
.hero {
    display: block;
    position: relative;
    height: 410px;
    overflow: hidden;
    background: #dff5dd
}

.hero>img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    z-index: 0 !important
}

.hero:after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(245, 255, 239, .98) 0%, rgba(245, 255, 239, .91) 0%, rgba(245, 255, 239, .28) 35%, rgba(245, 255, 239, .04) 45%)
}

.hero>div {
    position: relative !important;
    z-index: 2 !important;
    max-width: 650px;
    padding: 50px 0 35px 8vw
}

.hero h1 {
    font-size: 60px;
    text-shadow: 0 1px #fff
}

.hero h2 {
    font-size: 30px
}

.hero p {
    max-width: 470px;
    font-weight: 600
}

@media(max-width:850px) {
    .hero {
        height: 510px
    }

    .hero>img {
        object-position: 64% center !important
    }

    .hero:after {
        background: linear-gradient(180deg, rgba(245, 255, 239, .98), rgba(245, 255, 239, .8) 55%, rgba(245, 255, 239, .05))
    }

    .hero>div {
        padding: 38px 25px
    }

    .hero h1 {
        font-size: 48px
    }
}

/* ==========================================================================
   KM Location: provider badges + header location picker (kaammittar theme)
   ========================================================================== */

[hidden] {
    display: none !important
}

.km-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 2px 0 6px
}

.km-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 18px;
    font-size:9px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap
}

.km-badge-available {
    color: #07583b;
    background: #e7f8ef;
    border: 1px solid #c7e4d4
}

.km-badge-oor {
    color: #b8530a;
    background: #fff4e8;
    border: 1px solid #ffd9b3
}

.km-badge-distance {
    color: #53685d;
    background: #f4f9f6;
    border: 1px solid #dcebe3
}

.km-badge-noloc {
    color: #b42318;
    background: #fdf1f0;
    border: 1px solid #f5d2ce
}

.kmhl-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 210px;
    padding: 8px 14px;
    border: 1px solid #bcd8cb;
    border-radius: 22px;
    background: #f8fffb;
    color: #073d2c;
    font: 800 12px 'Nunito Sans', sans-serif;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease
}

.kmhl-pill:hover {
    background: #e7f8ef;
    border-color: #8fc8ad
}

.kmhl-pill .kmhl-pin,
.kmhl-pill-empty .kmhl-pin {
    color: #ff7714;
    font-size: 13px
}

.kmhl-text {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.kmhl-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99990;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
    background: rgba(3, 40, 26, .55);
    overflow-y: auto
}

.kmhl-dialog {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border: 1px solid #d7eadf;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(3, 68, 43, .28);
    overflow: hidden;
    font: 14px 'Nunito Sans', sans-serif;
    color: #073d2c
}

.kmhl-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: #f6fff9;
    border-bottom: 1px solid #dcebe3
}

.kmhl-head h4 {
    margin: 0;
    font-size: 17px;
    color: #06452e
}

.kmhl-head h4 .fa {
    color: #ff7714
}

.kmhl-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #53685d;
    font-size: 15px;
    cursor: pointer
}

.kmhl-close:hover {
    background: #e7f8ef;
    color: #07583b
}

.kmhl-body {
    padding: 16px 18px 20px
}

.kmhl-label {
    display: block;
    margin: 0 0 6px;
    color: #07583b;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px
}

.kmhl-inputrow {
    display: flex;
    align-items: center;
    gap: 8px
}

.kmhl-input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    padding: 10px 13px;
    border: 1px solid #bcd8cb;
    border-radius: 12px;
    background: #fff;
    color: #073d2c;
    font: 600 13px 'Nunito Sans', sans-serif;
    outline: none
}

.kmhl-input:focus {
    border-color: #057347;
    box-shadow: 0 0 0 3px rgba(5, 115, 71, .12)
}

.kmhl-iconbtn {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: 1px solid #bcd8cb;
    border-radius: 12px;
    background: #f8fffb;
    color: #00633e;
    font-size: 15px;
    cursor: pointer
}

.kmhl-iconbtn:hover {
    background: #e7f8ef
}

.kmhl-iconbtn:disabled {
    opacity: .6;
    cursor: default
}

.kmhl-help {
    display: block;
    margin: 7px 0 0;
    color: #82948b;
    font-size: 11.5px
}

.kmhl-mapwrap {
    margin-top: 12px;
    border: 1px solid #d7eadf;
    border-radius: 12px;
    overflow: hidden
}

.kmhl-mapbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    background: #f6fff9;
    border-bottom: 1px solid #dcebe3;
    color: #07583b;
    font-size: 12px;
    font-weight: 600
}

.kmhl-textbtn {
    border: 0;
    background: transparent;
    color: #ff7714;
    font: 900 12px 'Nunito Sans', sans-serif;
    padding: 2px 4px;
    cursor: pointer
}

.kmhl-map {
    width: 100%;
    height: 280px;
    background: #eff8f3
}

.kmhl-range {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px
}

.kmhl-range-num {
    flex: 0 0 92px;
    width: 92px
}

.kmhl-range-unit {
    color: #53685d;
    font-size: 12px;
    font-weight: 600
}

.kmhl-range-slider {
    flex: 1 1 auto;
    accent-color: #057347
}

.kmhl-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
    padding: 11px 18px;
    border: 0;
    border-radius: 22px;
    background: linear-gradient(135deg, #05804d, #057347);
    color: #fff;
    font: 900 14px 'Nunito Sans', sans-serif;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(5, 115, 71, .22)
}

.kmhl-submit:hover {
    background: linear-gradient(135deg, #057347, #04603c)
}

.kmhl-submit:disabled {
    opacity: .7;
    cursor: default
}

.kmhl-alert {
    margin-bottom: 14px;
    padding: 10px 13px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 600
}

.kmhl-alert-ok {
    color: #07583b;
    background: #e7f8ef;
    border: 1px solid #c7e4d4
}

.kmhl-alert-err {
    color: #b42318;
    background: #fdf1f0;
    border: 1px solid #f5d2ce
}

.kmhl-current {
    margin-top: 14px;
    padding: 11px 13px;
    border: 1px dashed #c7e4d4;
    border-radius: 10px;
    background: #f8fffb;
    font-size: 12px
}

.kmhl-current-label {
    display: block;
    margin-bottom: 3px;
    color: #82948b;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px
}

.kmhl-current-text {
    display: block;
    color: #073d2c;
    font-weight: 600
}

.kmhl-current-range {
    display: block;
    margin-top: 4px;
    color: #53685d;
    font-weight: 600
}

.kmhl-current-range b {
    color: #057347
}

@media(max-width:850px) {
    .kmhl-text {
        display: none
    }

    .kmhl-pill {
        padding: 8px 11px
    }

    .kmhl-overlay {
        padding: 20px 12px 40px
    }

    .kmhl-map {
        height: 220px
    }
}

/* ==========================================================================
   KM Top bar: location picker + support phone (kaammittar theme)
   ========================================================================== */

header {
    position: relative
}

.km-topbar {
    background: linear-gradient(135deg, #073d2c, #06452e);
    color: #d9f2e7;
    font-size: 12.5px;
    border-bottom: 1px solid rgba(255, 255, 255, .08)
}

.km-topbar-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 6px 5%;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px
}

.km-topbar-left,
.km-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px
}

.km-topbar-phone,
.km-topbar-trust {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #d9f2e7;
    font-weight: 600;
    white-space: nowrap
}

.km-topbar-phone:hover {
    color: #fff
}

.km-topbar-phone b {
    color: #fff;
    letter-spacing: .2px
}

.km-topbar .fa {
    color: #ff9d24
}

.km-topbar .kmhl-pill {
    background: rgba(255, 255, 255, .09);
    border-color: rgba(255, 255, 255, .3);
    color: #eafff2;
    padding: 5px 12px
}

.km-topbar .kmhl-pill:hover {
    background: rgba(255, 255, 255, .18);
    border-color: rgba(255, 255, 255, .55)
}

.km-topbar .kmhl-pill .kmhl-pin,
.km-topbar .kmhl-pill-empty .kmhl-pin {
    color: #ff9d24;
    font-size: 12px
}

.km-topbar-loc {
    color: #ff9d24;
    font-size: 11px;
    font-weight: 600
}

.km-topbar-loc select {
    color: #eafff2;
    font-weight: 600;
    max-width: none
}

.km-topbar-loc select option {
    color: #073d2c
}

@media(max-width:850px) {
    .km-topbar-loc {
        display: inline-flex
    }

    .km-topbar-inner {
        padding: 6px 15px
    }

    .km-topbar .kmhl-pill {
        max-width: 190px
    }
}

@media(max-width:600px) {
    .km-topbar-trust {
        display: none
    }

    .km-topbar-inner {
        gap: 8px
    }

    .km-topbar-phone {
        font-size: 12px
    }

    .km-topbar .kmhl-text {
        max-width: 120px
    }
}

/* ==========================================================================
   Header dropdown nav (Workers / Contractors / Shopkeepers + static links)
   ========================================================================== */
.km-main-nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 4px;
    white-space: nowrap
}

.km-main-nav .nav-link .fa-angle-down {
    font-size: 11px;
    transition: transform .18s ease, color .18s ease
}

.km-nav-item {
    position: relative
}

.km-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 215px;
    max-width: 290px;
    background: #fff;
    border: 1px solid #bcd8cb;
    border-radius: 14px;
    box-shadow: 0 16px 34px rgba(0, 50, 39, .18);
    padding: 10px 8px 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    z-index: 40
}

.km-nav-item:hover .km-dropdown,
.km-nav-item:focus-within .km-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0)
}

.km-nav-item:hover .km-dropdown-toggle,
.km-nav-item:focus-within .km-dropdown-toggle {
    color: #ff7714
}

.km-nav-item:hover .km-dropdown-toggle .fa-angle-down,
.km-nav-item:focus-within .km-dropdown-toggle .fa-angle-down {
    transform: rotate(180deg);
    color: #ff7714
}

.km-dropdown-inner {
    display: flex;
    flex-direction: column;
    max-height: 300px;
    overflow-y: auto
}

.km-dropdown-inner a {
    padding: 9px 12px;
    border-radius: 8px;
    color: #073d2c;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: background .15s ease, color .15s ease
}

.km-dropdown-inner a:hover,
.km-dropdown-inner a:focus {
    background: #effff0;
    color: #ff7714
}

.km-see-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 8px;
    padding: 10px 12px;
    border-top: 1px solid #e3f0e9;
    border-radius: 0 0 8px 8px;
    background: #f4fbf6;
    color: #006642;
    font-size: 12.5px;
    font-weight: 600;
    transition: background .15s ease, color .15s ease
}

.km-see-all:hover,
.km-see-all:focus {
    background: #006642;
    color: #fff
}

/* ==========================================================================
   Profile card action icons (like/review/hire/view/quote)
   ========================================================================== */
.km-card-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 0 12px 12px
}

.km-card-actions a,
.km-card-actions button {
    flex: unset;
    min-width: unset;
    height: 34px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 10px;
    font-size: 11.5px;
    white-space: nowrap
}

.km-act {
    border: 1px solid #d7eadf;
    background: #f7fff9;
    color: #06452e;
    font-weight: 600
}

.km-act:hover {
    background: #e7f8ef
}

.km-act i {
    font-size: 13px
}

.km-act-like {
    background: #fff7df;
    border-color: #f3d382;
    color: #8a5a00
}

.km-act-like.active {
    background: #f59f00;
    border-color: #f59f00;
    color: #fff
}

.km-act-hire {
    background: #006642;
    border-color: #006642;
    color: #fff
}

.km-act-hire:hover {
    background: #057347
}

.km-act-quote {
    background: #1f83f2;
    border-color: #1f83f2;
    color: #fff
}

.km-act-review {
    background: #ff7a18;
    border-color: #ff7a18;
    color: #fff
}

.km-act-view {
    background: #edf9f2;
    color: #07583b;
    border-color: #c7e4d4
}

/* Home dynamic zones: every featured module becomes a .km-featured-col so any
   number of them packs into full-width rows of two carousels, while the other
   modules (carousel, km_module, ...) stay full width below/above them.
   A lone featured column grows to the full row width instead of leaving half empty. */
.km-dynamic-top,
.km-dynamic-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px
}

.km-dynamic-top>*,
.km-dynamic-bottom>* {
    flex: 0 0 100%;
    max-width: 100%;
    margin: 0
}

.km-dynamic-top>.km-featured-col,
.km-dynamic-bottom>.km-featured-col {
    flex: 1 1 calc(50% - 10px)
}

@media (max-width:767px) {
    .km-dynamic-top>.km-featured-col,
    .km-dynamic-bottom>.km-featured-col {
        flex: 0 0 100%
    }
}

.footer-social-icons {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 4px;
}

.footer-social-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    color: #fff;
    font-size: 15px;
    cursor: default;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.footer-social-icon:hover {
    background: #ff7714;
    border-color: #ff7714;
    color: #fff;
    transform: translateY(-2px);
}

.footer-app-download {
    min-width: 155px;
}

.footer-store-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 5px;
}

footer a.footer-store-button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 142px;
    min-height: 38px;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 6px;
    background: #000;
    color: #fff;
    text-decoration: none;
    line-height: 1.05;
    transition: background-color .2s ease, transform .2s ease;
}

footer a.footer-store-button:hover,
footer a.footer-store-button:focus {
    background: #ff7714;
    border-color: #ff7714;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.footer-store-button .fa {
    font-size: 21px;
}

.footer-store-button span {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    font-weight: 600;
}

.footer-store-button small {
    font-size: 8px;
    font-weight: 500;
}

.app-store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.app .km-store-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 142px;
    min-height: 42px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 6px;
    background: #000;
    color: #fff;
    line-height: 1.05;
    text-align: left;
    transition: background-color .2s ease, transform .2s ease;
}

.app .km-store-button:hover,
.app .km-store-button:focus {
    background: #ff7714;
    border-color: #ff7714;
    color: #fff;
    transform: translateY(-2px);
}

.app .km-store-button .fa {
    font-size: 23px;
}

.app .km-store-button span {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    font-weight: 600;
}

.app .km-store-button small {
    font-size: 8px;
    font-weight: 500;
}

.km-why-grid > span {
    align-items: center;
    transition: transform .2s ease;
}

.km-why-grid > span:hover {
    transform: translateY(-3px);
}

.km-why-grid > span .fa {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    border-radius: 50%;
    background: #fff;
    color: #ff7714;
    box-shadow: 0 4px 10px rgba(0, 62, 45, .12);
    font-size: 19px;
    margin: auto;
}

.trust > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.trust > span .fa {
    color: #ff7714;
    font-size: 17px;
}

.role-worker, .role-contractor, .role-shopkeeper {
    text-align: center;
}

.roles .role-icon {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: -2px 0 0;
    border-radius: 50%;
    background: #e8f7ee;
    color: #057347;
    font-size: 18px;
    position: relative;
    top: -4%;
    border: 2px solid white;
}

.role-contractor .role-icon {
    background: #e8f2ff;
    color: #1f83f2;
}

.role-shopkeeper .role-icon {
    background: #f8eafa;
    color: #b331c5;
}

/* ========== Cart & Checkout Pages ========== */

.km-page-content {
    max-width: 1140px;
    margin: 0 auto;
    padding: 24px 20px 48px;
}

.km-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    margin-bottom: 22px;
    font-size: 12.5px;
    color: #555;
}

.km-breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 6px;
    color: #ccc;
}

.km-breadcrumb a {
    color: #07583b;
}

.km-alert {
    margin-bottom: 14px;
    padding: 10px 13px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 600;
}

.km-alert-ok {
    color: #07583b;
    background: #e7f8ef;
    border: 1px solid #c7e4d4;
}

.km-alert-err {
    color: #b42318;
    background: #fdf1f0;
    border: 1px solid #fed3d0;
}

.km-alert-info {
    color: #07583b;
    background: #e7f8ef;
    border: 1px solid #c7e4d4;
}

.km-module-section {
    margin: 0 0 24px;
    padding: 22px;
    background: #fff;
    border: 1px solid #dbeee4;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 64, 40, .06);
}

.km-module-section:first-child {
    margin-top: 0;
}

.km-module-subheading {
    margin: 0 0 8px;
    font-size: 18px;
    color: #06452e;
    font-weight: 700;
}

/* --- Cart table --- */

.km-cart-table {
    border: none;
    font-size: 13px;
}

.km-cart-table thead th {
    border: none;
    border-bottom: 2px solid #dbeee4;
    color: #06452e;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 10px;
}

.km-cart-table tbody td {
    border-top: 1px solid #dbeee4;
    padding: 12px 10px;
    vertical-align: middle;
}

.km-cart-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.km-cart-name a {
    color: #006642;
    font-weight: 700;
    font-size: 14px;
}

.km-cart-name small {
    color: #555;
    font-size: 11px;
}

.km-label-info {
    background: #e7f8ef;
    color: #07583b;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
}

.km-qty-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.km-qty-input {
    width: 56px;
    text-align: center;
    font-size: 13px;
}

.km-cart-total {
    font-weight: 700;
    color: #06452e;
}

.km-btn-green {
    background: #006642;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 12px;
}

.km-btn-green:hover {
    background: #005030;
}

.km-btn-err {
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 12px;
}

.km-btn-err:hover {
    background: #c82333;
}

.km-btn-primary {
    background: #ff7714;
    color: #fff;
    border: none;
    border-radius: 22px;
    padding: 9px 22px;
    font-weight: 700;
    font-size: 13px;
}

.km-btn-primary:hover {
    background: #e56b10;
}

.km-btn-secondary {
    background: #fff;
    color: #006642;
    border: 2px solid #006642;
    border-radius: 22px;
    padding: 7px 22px;
    font-weight: 700;
    font-size: 13px;
}

.km-btn-secondary:hover {
    background: #f0f0f0;
}

.km-totals-table td {
    padding: 6px 10px;
    border-bottom: 1px solid #dbeee4;
}

.km-totals-table td:last-child {
    font-weight: 700;
    color: #06452e;
}

.km-cart-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.km-empty-cart {
    text-align: center;
    padding: 40px 20px;
}

.km-empty-icon {
    font-size: 48px;
    color: #dbeee4;
    margin-bottom: 16px;
}

/* --- Checkout accordion --- */

.km-checkout-accordion {
    margin-bottom: 24px;
}

.km-checkout-step {
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #dbeee4;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 64, 40, .04);
}

.km-step-header {
    background: #f8fffb;
    padding: 12px 18px;
    cursor: pointer;
    border-bottom: 1px solid #dbeee4;
}

.km-step-title {
    margin: 0;
    font-size: 14px;
    color: #06452e;
    font-weight: 700;
}

.km-step-title a {
    color: #06452e;
    text-decoration: none;
}

.km-step-title a:hover {
    color: #006642;
}

.km-step-body {
    border: none;
}

.km-step-body .km-step-content {
    padding: 18px;
}

.km-step-body.in {
    display: block;
}

