/* Android-style storefront shell. Mobile-only rules intentionally sit last. */
:root {
    --app-primary: #176b4d;
    --app-primary-dark: #0f5039;
    --app-accent: #f28a1a;
    --app-surface: #ffffff;
    --app-bg: #f4f7f5;
    --app-text: #17231d;
    --app-muted: #6e7b74;
    --app-line: #e1e9e4;
    --app-danger: #d94242;
    --app-radius: 18px;
    --app-shadow: 0 6px 22px rgba(20, 71, 51, .08);
    --app-nav-height: 68px;
}

.mobile-app-brand,
.mobile-app-search-pill {
    display: none;
}

.pwa-update-prompt {
    position: fixed;
    z-index: 12000;
    right: 18px;
    bottom: max(18px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto auto;
    width: min(520px, calc(100vw - 36px));
    padding: 12px;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(23, 107, 77, .18);
    border-radius: 18px;
    background: #fff;
    color: var(--app-text);
    box-shadow: 0 20px 50px rgba(8, 42, 28, .2);
}

.pwa-update-prompt[hidden] { display: none !important; }
.pwa-update-prompt__icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: #e9f5ee; color: var(--app-primary); font-size: 24px; font-weight: 800; }
.pwa-update-prompt__copy { min-width: 0; }
.pwa-update-prompt__copy strong,.pwa-update-prompt__copy small { display: block; }
.pwa-update-prompt__copy strong { font-size: 14px; }
.pwa-update-prompt__copy small { margin-top: 2px; color: var(--app-muted); font-size: 12px; }
.pwa-update-prompt button { min-height: 38px; padding: 0 13px; border: 0; border-radius: 12px; font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.pwa-update-prompt__later { background: #eef2ef; color: #516158; }
.pwa-update-prompt__apply { background: var(--app-primary); color: #fff; }
.pwa-update-prompt__apply:disabled { cursor: wait; opacity: .65; }

@media (max-width: 767.98px) {
    html {
        background: var(--app-bg);
        overflow-x: clip;
        overscroll-behavior-y: none;
        -webkit-text-size-adjust: 100%;
    }

    body {
        min-width: 320px;
        background: var(--app-bg) !important;
        color: var(--app-text);
        overflow-x: clip;
        overscroll-behavior-y: contain;
        -webkit-tap-highlight-color: transparent;
    }

    .pwa-update-prompt {
        right: 10px;
        bottom: calc(var(--app-nav-height) + 12px + env(safe-area-inset-bottom));
        grid-template-columns: 38px minmax(0, 1fr) auto;
        width: calc(100vw - 20px);
        padding: 10px;
        gap: 8px;
        border-radius: 16px;
    }

    .pwa-update-prompt__icon { width: 38px; height: 38px; }
    .pwa-update-prompt__copy small { display: none; }
    .pwa-update-prompt__later { display: none; }

    body.app-route-leaving::before {
        position: fixed;
        z-index: 5000;
        top: 0;
        left: 0;
        width: 58%;
        height: 3px;
        border-radius: 0 5px 5px 0;
        background: linear-gradient(90deg, var(--app-accent), #ffd063);
        box-shadow: 0 1px 6px rgba(242, 138, 26, .45);
        content: "";
        animation: app-route-progress .8s ease-out both;
    }

    @keyframes app-route-progress {
        from { transform: scaleX(.08); transform-origin: left; }
        to { transform: scaleX(1); transform-origin: left; }
    }

    a,
    button,
    input,
    select,
    textarea {
        touch-action: manipulation;
    }

    button,
    a {
        -webkit-user-select: none;
        user-select: none;
    }

    .container {
        width: 100%;
        max-width: none;
        padding-right: 14px;
        padding-left: 14px;
    }

    .header-top {
        display: none !important;
    }

    .sticky-header {
        position: sticky;
        z-index: 1040;
        top: 0;
        border-bottom: 1px solid rgba(222, 232, 225, .9);
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 3px 16px rgba(25, 65, 48, .07);
        backdrop-filter: saturate(145%) blur(14px);
        -webkit-backdrop-filter: saturate(145%) blur(14px);
    }

    /* The legacy desktop script switches this wrapper to fixed and adds an
       inline body offset after 130px. Keep one mobile scroll model so the
       page never jumps or leaves a blank strip. */
    .sticky-header.active {
        position: sticky !important;
        top: 0 !important;
        animation: none !important;
    }

    body.sticky-header-enabled {
        padding-top: 0 !important;
    }

    .header-part {
        padding: max(6px, env(safe-area-inset-top)) 0 8px !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .header-part .container {
        padding-right: 12px;
        padding-left: 12px;
    }

    .header-content {
        display: block !important;
        min-height: 52px;
    }

    .header-media-group {
        display: grid !important;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        align-items: center;
        width: 100%;
        gap: 8px;
    }

    .header-media-group .header-icon-btn {
        display: grid !important;
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
        margin: 0 !important;
        padding: 0 !important;
        place-items: center;
        border: 1px solid var(--app-line) !important;
        border-radius: 15px !important;
        background: #f8faf9 !important;
        color: var(--app-primary-dark) !important;
        box-shadow: none !important;
        font-size: 18px !important;
    }

    .header-media-group .header-icon-btn:active {
        transform: scale(.94);
        background: #eaf4ee !important;
    }

    .mobile-app-back > span {
        color: var(--app-primary-dark);
        font-size: 25px;
        font-weight: 800;
        line-height: 1;
    }

    .mobile-app-brand {
        display: flex;
        min-width: 0;
        align-items: center;
        justify-content: center;
        gap: 9px;
        color: var(--app-text);
        text-decoration: none;
    }

    .mobile-app-brand .site-logo-mobile {
        display: block !important;
        width: 39px !important;
        max-width: 39px !important;
        height: 39px !important;
        margin: 0 !important;
        object-fit: contain;
    }

    .mobile-app-brand-copy {
        display: block;
        min-width: 0;
        line-height: 1.08;
    }

    .mobile-app-brand-copy strong,
    .mobile-app-brand-copy small {
        display: block;
        max-width: 205px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-app-brand-copy strong {
        color: #173a2b;
        font-size: 13px;
        font-weight: 800;
    }

    .mobile-app-brand-copy small {
        margin-top: 4px;
        color: var(--app-muted);
        font-size: 9.5px;
        font-weight: 600;
    }

    .header-logo,
    .header-search-wrap,
    .header-widget-group,
    .navbar-part {
        display: none !important;
    }

    .mobile-app-search-pill {
        display: none;
        width: 100%;
        height: 46px;
        margin: 8px 0 0;
        padding: 0 14px;
        align-items: center;
        gap: 10px;
        border: 1px solid #dfe8e2;
        border-radius: 15px;
        background: #f4f7f5;
        color: #66756d;
        font: inherit;
        text-align: left;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
    }

    .page-home .mobile-app-search-pill,
    .page-product .mobile-app-search-pill,
    .page-category .mobile-app-search-pill,
    .page-sub-category .mobile-app-search-pill,
    .page-search .mobile-app-search-pill,
    .page-offers .mobile-app-search-pill {
        display: flex;
    }

    /* Do not show two search entry points at the same time. The full search
       pill owns the top-of-page state; the compact icon returns after scroll. */
    .page-home .sticky-header:not(.active) .header-src.mobile-app-search-trigger,
    .page-product .sticky-header:not(.active) .header-src.mobile-app-search-trigger,
    .page-category .sticky-header:not(.active) .header-src.mobile-app-search-trigger,
    .page-sub-category .sticky-header:not(.active) .header-src.mobile-app-search-trigger,
    .page-search .sticky-header:not(.active) .header-src.mobile-app-search-trigger,
    .page-offers .sticky-header:not(.active) .header-src.mobile-app-search-trigger {
        visibility: hidden !important;
        pointer-events: none;
    }

    /* Compact app bar while browsing; returning to the top restores search. */
    .sticky-header.active .mobile-app-search-pill {
        display: none !important;
    }

    .sticky-header.active .header-part {
        padding-bottom: 6px !important;
    }

    .mobile-app-search-pill > span {
        min-width: 0;
        flex: 1;
        overflow: hidden;
        font-size: 13px;
        font-weight: 600;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-app-search-pill > .fa-search {
        color: var(--app-primary);
    }

    .mobile-app-search-filter {
        color: #87948d;
        font-size: 12px;
    }

    .mobile-search-screen {
        background: var(--app-bg) !important;
    }

    .mobile-search-topbar {
        padding-top: calc(10px + env(safe-area-inset-top)) !important;
        border-bottom: 1px solid var(--app-line);
        background: rgba(255, 255, 255, .98) !important;
        box-shadow: 0 3px 14px rgba(20, 60, 45, .06);
    }

    .mobile-search-form {
        border-radius: 16px !important;
        background: #f3f6f4 !important;
    }

    .app-nav-drawer,
    .category-sidebar,
    .cart-sidebar {
        width: min(90vw, 380px) !important;
        border-radius: 0 22px 22px 0;
        box-shadow: none !important;
    }

    .app-nav-drawer.active,
    .category-sidebar.active {
        box-shadow: 16px 0 40px rgba(5, 35, 23, .2) !important;
    }

    .cart-sidebar.active {
        box-shadow: -16px 0 40px rgba(5, 35, 23, .2) !important;
    }

    .cart-sidebar {
        right: min(-90vw, -380px) !important;
        left: auto;
        border-radius: 22px 0 0 22px;
    }

    .cart-sidebar.active {
        right: 0 !important;
    }

    .app-nav-header,
    .category-header,
    .cart-header {
        padding-top: calc(14px + env(safe-area-inset-top)) !important;
    }

    .single-banner,
    .storefront-banner,
    .product-detail-hero,
    .checkout-summary-banner {
        min-height: 0 !important;
        margin: 0 !important;
        padding: 18px 0 14px !important;
        border: 0 !important;
        background: linear-gradient(180deg, #edf7f1 0%, var(--app-bg) 100%) !important;
    }

    .single-banner h1,
    .single-banner h2,
    .product-detail-hero-title {
        margin: 0 0 5px !important;
        color: var(--app-text) !important;
        font-size: 21px !important;
        line-height: 1.25 !important;
        text-align: left !important;
    }

    .single-banner .breadcrumb {
        justify-content: flex-start !important;
        margin: 0 !important;
        overflow: hidden;
        font-size: 11px !important;
        white-space: nowrap;
    }

    .single-banner .breadcrumb-item {
        max-width: 145px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .inner-section,
    .shop-part,
    .checkout-part {
        padding-top: 14px !important;
        padding-bottom: 18px !important;
    }

    .home-index-slider {
        margin: 10px 10px 0 !important;
        overflow: hidden;
        border-radius: 20px !important;
        background: #dfece4;
        box-shadow: var(--app-shadow);
    }

    .home-index-slider .banner-part,
    .home-index-slider .banner-part a {
        display: block;
    }

    .home-index-slider .d2c-hero-img {
        width: 100% !important;
        height: clamp(145px, 43vw, 178px) !important;
        border-radius: 20px !important;
        object-fit: cover !important;
    }

    .page-home > section.mt-3.container {
        margin-top: 8px !important;
        padding: 0 10px !important;
    }

    .d2c-category-scroll {
        gap: 9px !important;
        padding: 13px 2px 10px !important;
        scroll-padding-inline: 2px;
    }

    .d2c-category-item {
        min-width: 70px !important;
        max-width: 70px;
    }

    .d2c-category-img {
        width: 64px !important;
        height: 64px !important;
        border: 2px solid #dcebe2 !important;
        border-radius: 21px !important;
        background: #fff;
        box-shadow: 0 4px 12px rgba(28, 90, 63, .08) !important;
        object-fit: cover;
    }

    .d2c-category-name {
        margin-top: 7px !important;
        color: #26372f !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        -webkit-line-clamp: 2;
    }

    .d2c-static-grid {
        display: grid !important;
        grid-auto-columns: 78vw;
        grid-auto-flow: column;
        grid-template-columns: none !important;
        gap: 12px !important;
        margin: 2px 10px 0 !important;
        padding: 4px 0 8px !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .d2c-static-grid::-webkit-scrollbar,
    .sh-product-grid::-webkit-scrollbar,
    .d2c-category-scroll::-webkit-scrollbar {
        display: none;
    }

    .d2c-static-grid-item {
        min-height: 128px !important;
        overflow: hidden;
        border-radius: 18px !important;
        scroll-snap-align: start;
        box-shadow: var(--app-shadow);
    }

    .d2c-static-grid-item img {
        height: 128px !important;
        object-fit: cover !important;
    }

    .d2c-static-grid-overlay {
        padding: 15px !important;
    }

    .d2c-static-grid-overlay h4 {
        font-size: 17px !important;
    }

    .d2c-section-header {
        align-items: end !important;
        margin: 0 2px !important;
        padding: 0 10px !important;
    }

    .d2c-section-header h2 {
        margin: 0 !important;
        color: var(--app-text) !important;
        font-size: 19px !important;
        line-height: 1.2 !important;
    }

    .d2c-section-header p {
        margin: 4px 0 0 !important;
        color: var(--app-muted) !important;
        font-size: 11px !important;
    }

    .d2c-view-all {
        min-height: 38px;
        padding: 10px 2px 8px 14px !important;
        color: var(--app-primary) !important;
        font-size: 12px !important;
        font-weight: 800 !important;
    }

    .sh-product-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        padding: 11px 10px 4px !important;
    }

    .page-home .home-product-grid,
    .page-home .home-product-grid-bottom {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 10px !important;
        padding: 11px 10px 12px !important;
        overflow-x: auto !important;
        overscroll-behavior-inline: contain;
        scroll-padding-inline: 10px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .page-home .home-product-grid .sh-product-card,
    .page-home .home-product-grid-bottom .sh-product-card {
        flex: 0 0 clamp(168px, 44vw, 240px) !important;
        scroll-snap-align: start;
    }

    .sh-product-card {
        min-width: 0 !important;
        overflow: hidden;
        border: 1px solid var(--app-line) !important;
        border-radius: 17px !important;
        background: var(--app-surface) !important;
        box-shadow: 0 3px 13px rgba(22, 76, 52, .055) !important;
    }

    .sh-product-media {
        aspect-ratio: 3 / 4 !important;
        overflow: hidden;
        background: #f5f8f6 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .sh-product-media a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
    }

    .sh-product-media img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
        padding: 3px !important;
    }

    .sh-product-badge {
        top: 8px !important;
        left: 8px !important;
        padding: 4px 7px !important;
        border-radius: 9px !important;
        font-size: 9px !important;
        letter-spacing: .01em;
    }

    .sh-product-info {
        padding: 10px !important;
    }

    .sh-product-title {
        min-height: 34px;
        display: -webkit-box !important;
        overflow: hidden;
        color: var(--app-text) !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        line-height: 1.35 !important;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .sh-product-price {
        margin: 6px 0 8px !important;
        color: #173b2c !important;
        font-size: 15px !important;
        font-weight: 850 !important;
    }

    .sh-product-price-old {
        font-size: 10px !important;
    }

    .sh-product-action-group {
        display: grid !important;
        grid-template-columns: 1fr 42px;
        gap: 6px !important;
    }

    .sh-product-add-btn {
        width: auto !important;
        min-width: 0 !important;
        min-height: 40px !important;
        padding: 8px 7px !important;
        border-radius: 12px !important;
        font-size: 10px !important;
        font-weight: 800 !important;
        white-space: nowrap;
    }

    .sh-product-add-btn.half.buy-btn {
        font-size: 0 !important;
    }

    .sh-product-add-btn.half.buy-btn i {
        margin: 0 !important;
        font-size: 13px !important;
    }

    .sh-product-add-btn.full {
        grid-column: 1 / -1;
    }

    .shop-part .shop-product-wrap,
    .shop-part .shop-filter,
    .shop-part .shop-widget,
    .product-detail-surface,
    .details-gallery,
    .account-card,
    .checkout-offers-panel {
        border-color: var(--app-line) !important;
        border-radius: var(--app-radius) !important;
        background: var(--app-surface) !important;
        box-shadow: var(--app-shadow) !important;
    }

    .shop-part .row-cols-2 > * {
        padding-right: 5px;
        padding-left: 5px;
    }

    .shop-part .row-cols-2 {
        margin-right: -5px;
        margin-left: -5px;
    }

    .product-card,
    .feature-card {
        margin-bottom: 10px !important;
        overflow: hidden;
        border: 1px solid var(--app-line) !important;
        border-radius: 17px !important;
        box-shadow: 0 3px 12px rgba(20, 71, 51, .055) !important;
    }

    .product-detail-hero {
        display: none !important;
    }

    .page-detail .inner-section {
        padding-top: 10px !important;
    }

    .details-gallery {
        margin-bottom: 12px !important;
        padding: 8px !important;
    }

    .details-preview li {
        aspect-ratio: 1 / 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .details-preview img {
        max-height: none !important;
        border-radius: 14px !important;
        object-fit: contain !important;
        width: 100% !important;
        height: 100% !important;
        padding: 4px !important;
    }

    .product-detail-surface {
        padding: 16px !important;
    }

    .details-name,
    .details-name a {
        color: var(--app-text) !important;
        font-size: 20px !important;
        line-height: 1.3 !important;
    }

    .details-price {
        font-size: 23px !important;
    }

    .details-action-group,
    .product-action-group {
        gap: 7px !important;
    }

    .details-action-group .btn,
    .product-action-group .btn,
    .details-add-group a,
    .details-add-group button {
        min-height: 46px !important;
        border-radius: 14px !important;
    }

    .account-card {
        margin-bottom: 14px !important;
        overflow: hidden;
    }

    .account-title {
        padding: 15px 16px !important;
        border-bottom: 1px solid var(--app-line) !important;
        background: #fbfcfb !important;
    }

    .account-title h4,
    .account-title h3 {
        margin: 0 !important;
        color: var(--app-text) !important;
        font-size: 17px !important;
    }

    .account-content {
        padding: 14px !important;
    }

    .form-control,
    .form-select,
    .checkout-coupon-input {
        min-height: 48px !important;
        border: 1px solid #d6e1da !important;
        border-radius: 13px !important;
        background-color: #fff !important;
        font-size: 16px !important;
        box-shadow: none !important;
    }

    .form-control:focus,
    .form-select:focus,
    .checkout-coupon-input:focus {
        border-color: var(--app-primary) !important;
        box-shadow: 0 0 0 3px rgba(23, 107, 77, .12) !important;
    }

    .form-label {
        margin-bottom: 7px !important;
        color: #33443b !important;
        font-size: 12px !important;
        font-weight: 750 !important;
    }

    .form-group {
        margin-bottom: 14px !important;
    }

    .table-scroll {
        overflow: visible !important;
    }

    .page-cart .table-list,
    .page-payment .table-list {
        display: block;
        min-width: 0 !important;
    }

    .page-cart .table-list thead,
    .page-payment .table-list thead {
        display: none;
    }

    .page-cart .table-list tbody,
    .page-payment .table-list tbody {
        display: grid;
        gap: 10px;
    }

    .page-cart .table-list tbody tr,
    .page-payment .table-list tbody tr {
        position: relative;
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr) auto;
        gap: 5px 10px;
        padding: 11px;
        border: 1px solid var(--app-line) !important;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 3px 12px rgba(20, 71, 51, .05);
    }

    .page-cart .table-list td,
    .page-payment .table-list td {
        display: block;
        width: auto !important;
        min-width: 0;
        padding: 0 !important;
        border: 0 !important;
        text-align: left !important;
    }

    .page-cart .table-image,
    .page-payment .table-image {
        grid-row: 1 / span 3;
        grid-column: 1;
    }

    .page-cart .table-image img,
    .page-payment .table-image img {
        width: 72px !important;
        height: 72px !important;
        border-radius: 13px !important;
        object-fit: contain;
        background: #f8fafc;
        padding: 2px;
    }

    .page-cart .table-name,
    .page-payment .table-name {
        grid-row: 1;
        grid-column: 2 / 4;
        padding-right: 30px !important;
    }

    .page-cart .table-name h6,
    .page-payment .table-name h6 {
        font-size: 13px !important;
        line-height: 1.35 !important;
    }

    .page-cart .table-price,
    .page-payment .table-price {
        grid-row: 2;
        grid-column: 2;
    }

    .page-cart .table-quantity,
    .page-payment .table-quantity {
        grid-row: 3;
        grid-column: 2;
    }

    .page-cart .table-serial,
    .page-payment .table-serial {
        grid-row: 3;
        grid-column: 3;
        align-self: center;
    }

    .page-cart .table-action,
    .page-payment .table-action {
        position: absolute;
        top: 8px;
        right: 8px;
    }

    .cart-action-group .product-action {
        padding: 2px !important;
        border-radius: 12px !important;
        background: #f3f7f4 !important;
    }

    .cart-action-group .action-minus,
    .cart-action-group .action-plus {
        width: 34px !important;
        height: 34px !important;
        border-radius: 10px !important;
    }

    .cart-action-group .action-input {
        width: 36px !important;
        height: 34px !important;
    }

    .cart-summary-strip {
        position: sticky;
        z-index: 20;
        bottom: calc(var(--app-nav-height) + env(safe-area-inset-bottom));
        margin: 8px 0 0 !important;
        padding: 12px !important;
        border: 1px solid var(--app-line) !important;
        border-radius: 18px !important;
        background: rgba(255, 255, 255, .96) !important;
        box-shadow: 0 -8px 28px rgba(20, 60, 45, .12) !important;
        backdrop-filter: blur(12px);
    }

    .cart-summary-strip > div {
        width: auto !important;
        flex: 1 1 0;
        padding: 3px !important;
    }

    .cart-summary-total {
        margin: 0 0 7px !important;
        font-size: 14px !important;
        text-align: center;
    }

    .cart-summary-btn,
    .checkout-payment-actions .btn,
    .compact-payment-actions button {
        width: 100% !important;
        min-height: 46px !important;
        border-radius: 14px !important;
        font-size: 12px !important;
    }

    .checkout-entry-callout {
        display: block !important;
        padding: 14px !important;
        border-radius: 16px !important;
    }

    .checkout-entry-callout-action {
        margin-top: 10px !important;
    }

    .checkout-charge li,
    .checkout-charge-list li {
        padding: 9px 0 !important;
        font-size: 13px !important;
    }

    .mobile-app-bottom-nav {
        z-index: 1080 !important;
        height: calc(var(--app-nav-height) + env(safe-area-inset-bottom)) !important;
        padding: 5px 7px calc(5px + env(safe-area-inset-bottom)) !important;
        border-top: 1px solid rgba(217, 228, 221, .92) !important;
        background: rgba(255, 255, 255, .96) !important;
        box-shadow: 0 -5px 22px rgba(18, 64, 45, .1) !important;
        backdrop-filter: saturate(160%) blur(16px);
        -webkit-backdrop-filter: saturate(160%) blur(16px);
    }

    .mobile-nav-item {
        position: relative;
        min-height: 54px !important;
        gap: 2px !important;
        border-radius: 15px;
        color: #748078 !important;
        font-size: 9px !important;
        font-weight: 700 !important;
    }

    .mobile-nav-item i {
        width: 35px;
        height: 27px;
        display: grid !important;
        place-items: center;
        border-radius: 14px;
        font-size: 17px !important;
        transition: background .18s ease, color .18s ease, transform .18s ease;
    }

    .mobile-nav-item.active {
        color: var(--app-primary) !important;
    }

    .mobile-nav-item.active i {
        background: #e4f2e9 !important;
        color: var(--app-primary) !important;
        transform: translateY(-1px);
    }

    .mobile-nav-item:active {
        transform: scale(.96);
    }

    .mobile-nav-badge {
        top: 2px !important;
        right: calc(50% - 22px) !important;
        min-width: 17px !important;
        height: 17px !important;
        padding: 0 4px !important;
        border: 2px solid #fff;
        background: var(--app-danger) !important;
        font-size: 8px !important;
        line-height: 13px !important;
    }

    .floating-whatsapp-widget,
    .backtop {
        display: none !important;
    }

    .footer-part,
    .footer-bottom,
    .footer-bottom-area {
        margin-bottom: 0 !important;
    }

    .footer-part {
        padding-bottom: calc(var(--app-nav-height) + 12px) !important;
    }

    .pwa-install-sheet {
        right: 10px !important;
        bottom: calc(var(--app-nav-height) + 12px + env(safe-area-inset-bottom)) !important;
        left: 10px !important;
        width: auto !important;
        border-radius: 20px !important;
    }

    body:not(.page-home) main,
    body:not(.page-home) .main-content {
        animation: app-screen-enter .22s ease-out both;
    }

    @keyframes app-screen-enter {
        from { opacity: .25; transform: translateY(5px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

@media (min-width: 768px) and (max-width: 1100px) {
    .sh-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Catalog controls are shared by desktop and mobile collection pages. */
.catalog-search-filter {
    min-width: 0;
    flex: 1 1 460px;
}

.catalog-search-filter .dataTables_filter {
    width: 100%;
}

.catalog-filter-control {
    position: relative;
    width: 100%;
}

.catalog-filter-control > i {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 14px;
    color: var(--app-primary);
    font-size: 13px;
    transform: translateY(-50%);
    pointer-events: none;
}

.catalog-filter-control .form-control {
    width: 100%;
    padding-left: 39px !important;
}

.catalog-empty-state {
    padding: 44px 18px;
    border: 1px solid var(--app-line);
    border-radius: 18px;
    background: #fff;
    color: var(--app-muted);
    text-align: center;
}

.catalog-empty-state i {
    margin-bottom: 10px;
    color: var(--app-primary);
    font-size: 28px;
}

.catalog-empty-state h3 {
    margin: 0 0 5px;
    color: var(--app-text);
    font-size: 18px;
}

.catalog-empty-state p {
    margin: 0;
    font-size: 13px;
}

@media (max-width: 767.98px) {
    /* Show the complete hero artwork and keep its focal point centered. */
    .page-home .home-index-slider,
    .page-home .home-index-slider .slick-list,
    .page-home .home-index-slider .slick-track,
    .page-home .home-index-slider .slick-slide,
    .page-home .home-index-slider .slick-slide > div,
    .page-home .home-index-slider .banner-part,
    .page-home .home-index-slider .banner-part > a {
        min-height: 0 !important;
    }

    .page-home .home-index-slider .banner-part > a {
        position: static !important;
        width: 100% !important;
    }

    .page-home .home-index-slider .d2c-hero-img {
        width: 100% !important;
        height: clamp(104px, 30vw, 128px) !important;
        margin: 0 auto;
        object-fit: contain !important;
        object-position: center center !important;
    }

    .page-home .home-hero-cta {
        right: auto;
        left: 10px;
        bottom: 9px;
        min-height: 32px;
        padding: 0.45rem 0.8rem;
        font-size: 0.68rem;
    }

    /* Keep the slider mathematically centred even when the browser reserves a
       scrollbar gutter. Auto width plus side margins otherwise makes the
       right edge appear shifted on narrow screens. */
    .page-home .home-index-slider {
        width: calc(100% - 20px) !important;
        box-sizing: border-box !important;
        margin-left: 10px !important;
        margin-right: 10px !important;
    }

    .d2c-category-name {
        display: -webkit-box !important;
        min-height: 27px;
        white-space: normal !important;
        overflow-wrap: anywhere;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .page-home .d2c-static-grid {
        grid-auto-columns: calc(100vw - 40px) !important;
        scroll-padding-inline: 10px;
    }

    .page-home .d2c-static-grid-item {
        scroll-snap-align: center !important;
    }

    /* One predictable Android-style back control in the app bar. */
    .mobile-app-back > svg {
        width: 21px;
        height: 21px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mobile-banner-back {
        display: none !important;
    }

    .single-banner.inner-section .container.has-mobile-back {
        min-height: 0;
        padding: 0 14px !important;
    }

    .shop-part .top-filter {
        grid-template-columns: minmax(0, 1fr) minmax(126px, 40%) !important;
        gap: 9px !important;
        margin-bottom: 12px !important;
        padding: 12px !important;
        align-items: end;
        border-radius: 17px !important;
    }

    .shop-part .top-filter .catalog-search-filter,
    .shop-part .top-filter .filter-short,
    .shop-part .top-filter .dataTables_filter {
        width: 100% !important;
        min-width: 0;
    }

    .shop-part .top-filter .filter-short,
    .shop-part .top-filter .dataTables_filter {
        display: block !important;
    }

    .shop-part .top-filter .filter-label {
        display: block !important;
        margin: 0 0 6px !important;
        color: #53635b;
        font-size: 10px !important;
        font-weight: 800;
        letter-spacing: .05em;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .shop-part .top-filter .form-control,
    .shop-part .top-filter .form-select {
        height: 44px !important;
        min-height: 44px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        font-size: 12px !important;
        line-height: 44px !important;
    }

    .shop-part .top-filter #sortBy {
        padding-right: 28px !important;
        line-height: normal !important;
    }

    .page-product .sh-catalog-grid .sh-product-action-group,
    .sh-product-action-group {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    body.page-home.listing-buy-now-disabled .sh-product-grid .sh-product-action-group,
    body.page-product.listing-buy-now-disabled .sh-catalog-grid .sh-product-action-group,
    body.listing-buy-now-disabled .sh-product-action-group {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .sh-product-add-btn,
    .sh-product-add-btn.half.buy-btn {
        min-height: 38px !important;
        padding: 7px 4px !important;
        font-size: 9.5px !important;
        line-height: 1.1 !important;
    }

    .sh-product-add-btn i,
    .sh-product-add-btn.half.buy-btn i {
        margin-right: 3px !important;
        font-size: 10px !important;
    }

    .sh-product-add-btn.half.buy-btn span {
        display: inline !important;
    }

    .details-preview .slick-slide > div,
    .details-preview a {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .details-preview img {
        margin-right: auto !important;
        margin-left: auto !important;
        object-position: center center !important;
    }

    .page-detail .product-detail-purchase-grid {
        box-sizing: border-box !important;
        width: 100vw !important;
        max-width: 100vw !important;
        overflow: hidden;
    }

    .page-detail .product-detail-purchase-grid .product-detail-action-col {
        width: auto !important;
        min-width: 0 !important;
        flex: 1 1 0 !important;
    }

    .page-detail .product-detail-purchase-grid .product-add {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* Checkout address form: compact but still touch-friendly. */
    .page-cart .checkout-part .account-content,
    .page-payment .checkout-part .account-content {
        padding: 12px !important;
    }

    .page-cart .checkout-part .form-group,
    .page-payment .checkout-part .form-group {
        width: 100%;
        margin-bottom: 10px !important;
    }

    .page-cart .checkout-part .form-label,
    .page-payment .checkout-part .form-label {
        margin-bottom: 5px !important;
        font-size: 11px !important;
    }

    .page-cart .checkout-part .form-control,
    .page-cart .checkout-part .form-select,
    .page-payment .checkout-part .form-control,
    .page-payment .checkout-part .form-select {
        height: 44px !important;
        min-height: 44px !important;
        padding: 0 13px !important;
        border-radius: 12px !important;
        font-size: 14px !important;
    }

    .checkout-part .checkout-field-error:empty {
        display: none;
        min-height: 0;
        margin-top: 0;
    }
}

/* Checkout fields should not reserve blank validation rows until an error is
   actually present. Keep the desktop form compact while preserving the
   larger touch targets defined in the mobile rules above. */
.checkout-part .form-group {
    margin-bottom: 14px;
}

.checkout-part .checkout-field-error:empty {
    display: none;
    min-height: 0;
    margin-top: 0;
}

/* Payment summary rows need their own inset inside the card; without this,
   the list can sit flush against the card edge on compact cart/checkout
   layouts. */
.checkout-part .checkout-charge.checkout-charge-full {
    padding: 0 10px 10px;
}

.checkout-part .checkout-charge.checkout-charge-full ul {
    margin: 0;
    padding: 0;
}

.checkout-part .checkout-charge.checkout-charge-full ul li {
    min-height: 38px;
    padding: 9px 12px !important;
    box-sizing: border-box;
}

/* Desktop side-cart: reserve a real action column and keep the money value
   atomic, so the rupee sign can never wrap above the amount. */
.cart-sidebar .cart-info {
    min-width: 0;
}

.cart-sidebar .cart-item {
    gap: 12px;
}

.cart-sidebar .cart-media {
    flex: 0 0 72px;
    width: 72px;
    margin-right: 0;
}

.cart-sidebar .cart-media a,
.cart-sidebar .cart-media a img {
    display: block;
    width: 72px;
    height: 72px;
}

.cart-sidebar .cart-media a img {
    object-fit: cover;
}

/* Keep delete separate from the product title; the legacy rule expands this
   button over the whole thumbnail whenever the row is hovered. */
.cart-sidebar .cart-media button {
    top: -6px;
    left: auto;
    right: -6px;
    width: 28px;
    height: 28px;
    z-index: 2;
    transform: none !important;
    border-radius: 50%;
    background: #fff !important;
    box-shadow: 0 4px 12px rgba(18, 44, 32, .16);
}

.cart-sidebar .cart-media button i {
    width: auto;
    height: auto;
    font-size: 13px;
    line-height: 1;
    color: #d71820;
    background: transparent !important;
}

.cart-sidebar .cart-info-group {
    flex: 1 1 auto;
    min-width: 0;
}

.cart-sidebar .cart-item-title {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-sidebar .cart-action-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.cart-sidebar .cart-action-group .product-action {
    min-width: 0;
}

.cart-sidebar .cart-line-total {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 4px;
    min-width: max-content;
    white-space: nowrap;
    line-height: 1;
}

@media (min-width: 451px) {
    /* Desktop side-cart rows have limited content width after the thumbnail.
       Compact the quantity control and reserve the amount column explicitly. */
    .cart-sidebar .cart-action-group {
        grid-template-columns: minmax(116px, 1fr) minmax(100px, max-content) !important;
        gap: 10px !important;
    }

    .cart-sidebar .cart-action-group .product-action {
        display: grid !important;
        grid-template-columns: 28px minmax(44px, 1fr) 28px !important;
        gap: 5px !important;
        width: 100% !important;
    }

    .cart-sidebar .cart-action-group .product-action button i {
        width: 28px !important;
        height: 30px !important;
        line-height: 30px !important;
    }

    .cart-sidebar .cart-action-group .product-action input {
        width: 100% !important;
        min-width: 44px !important;
        height: 30px !important;
    }

    .cart-sidebar .cart-line-total {
        min-width: 100px !important;
        font-size: 22px !important;
    }
}

@media (max-width: 450px) {
    .cart-sidebar .cart-item-title {
        padding-right: 46px;
        white-space: normal;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    /* Keep quantity controls and line total in separate columns on narrow
       side-carts; the desktop grid otherwise lets the plus button collide with
       the amount. */
    .cart-sidebar .cart-action-group {
        grid-template-columns: minmax(118px, 1fr) minmax(94px, max-content) !important;
        gap: 14px !important;
    }

    .cart-sidebar .cart-action-group .product-action {
        display: grid !important;
        grid-template-columns: 30px minmax(44px, 1fr) 30px !important;
        gap: 5px !important;
        width: 100% !important;
    }

    .cart-sidebar .cart-action-group .product-action button i {
        width: 30px !important;
        height: 30px !important;
        line-height: 30px !important;
    }

    .cart-sidebar .cart-action-group .product-action input {
        width: 100% !important;
        min-width: 44px !important;
        height: 30px !important;
    }

    .cart-sidebar .cart-line-total {
        min-width: 94px !important;
        font-size: 22px !important;
    }

    /* The checkout table reserves a separate delete column. Keep the product
       title inside its own column instead of letting long names run beneath
       the delete control. */
    .checkout-part .table-list td.table-name {
        min-width: 0 !important;
        padding-right: 46px !important;
        box-sizing: border-box !important;
    }

    .checkout-part .table-name h6 {
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }
}

@media (max-width: 380px) {
    .shop-part .top-filter {
        grid-template-columns: minmax(0, 1fr) minmax(112px, 39%) !important;
        padding: 10px !important;
    }
}
