/* ==========================================================================
   THE DAILY STORE — PROFESSIONAL STOREFRONT & MOBILE APP UI DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --app-green: #256f2b;
    --app-green-dark: #1b5420;
    --app-green-pill: #dceadd;
    --app-green-soft: #f1f8f2;
    --app-orange: #ff7a2f;
    --app-orange-dark: #e8661c;
    --app-cream: #fffcf7;
    --app-bg: #f8faf9;
    --app-surface: #ffffff;
    --app-text: #1e293b;
    --app-text-muted: #52606d;
    --app-border: #e5ebe7;
    --app-shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.05);
    --app-shadow-md: 0 8px 26px rgba(15, 23, 42, 0.08);
    --app-shadow-pill: 0 8px 28px rgba(15, 23, 42, 0.10);
    --app-radius-card: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    background-color: var(--app-bg);
    color: var(--app-text);
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

/* Hide legacy empty topbar spacing */
section.top1 {
    display: none !important;
}

/* ==========================================================================
   1. MOBILE FLOATING PILL HEADER (Exact Match to Reference Image 2)
   ========================================================================== */
.mobile-app-pill-header {
    display: none;
}

@media (max-width: 991px) {
    /* Hide the old bulky desktop/mobile header bar on phones */
    .header-area .header-main-area {
        display: none !important;
    }

    body {
        padding-top: 78px !important;
        padding-bottom: 80px !important;
    }

    .mobile-app-pill-header {
        display: block;
        position: fixed;
        top: 10px;
        left: 12px;
        right: 12px;
        z-index: 9995;
        background: #fffdf9;
        border-radius: 999px;
        padding: 9px 18px;
        box-shadow: 0 6px 24px rgba(15, 23, 42, 0.10), 0 1px 3px rgba(15, 23, 42, 0.05);
        border: 1px solid rgba(226, 232, 240, 0.85);
        transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

    .mobile-app-pill-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .mobile-pill-logo {
        display: inline-flex;
        align-items: center;
        text-decoration: none;
        flex-shrink: 0;
    }

    .mobile-pill-logo img {
        max-height: 40px;
        width: auto;
        max-width: 145px;
        object-fit: contain;
    }

    .mobile-pill-actions {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .mobile-pill-icon-btn {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border: none;
        background: transparent;
        color: #1f2937;
        padding: 0;
        text-decoration: none !important;
        cursor: pointer;
        transition: transform 0.15s ease;
    }

    .mobile-pill-icon-btn:active {
        transform: scale(0.92);
    }

    .mobile-pill-icon-btn svg {
        width: 23px;
        height: 23px;
        stroke: #1f2937;
        stroke-width: 2;
        fill: none;
    }

    /* Cart Bag + Orange Pill Counter Badge */
    .mobile-pill-cart-btn svg {
        fill: #1f2937;
        stroke: none;
    }

    .mobile-pill-cart-badge {
        position: absolute;
        top: -5px;
        right: -9px;
        min-width: 28px;
        height: 20px;
        padding: 0 6px;
        border-radius: 999px;
        background: var(--app-orange);
        color: #ffffff;
        font-size: 11.5px;
        font-weight: 800;
        line-height: 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #ffffff;
        box-shadow: 0 2px 6px rgba(255, 122, 47, 0.38);
    }

    /* Orange 3-line Hamburger Button */
    .mobile-pill-menu-btn {
        width: 34px;
        height: 34px;
        border: none;
        background: transparent;
        padding: 0;
        display: inline-flex;
         flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4.5px;
        cursor: pointer;
    }

    .mobile-pill-menu-btn span {
        display: block;
        width: 22px;
        height: 2.6px;
        border-radius: 99px;
        background: var(--app-orange);
        transition: all 0.2s ease;
    }
}

/* ==========================================================================
   2. MOBILE BOTTOM APP NAVIGATION BAR (Exact Match to Reference Image 1)
   ========================================================================== */
.mobile-bottom-app-nav {
    display: none;
}

@media (max-width: 991px) {
    .mobile-bottom-app-nav {
        display: flex;
        align-items: center;
        justify-content: space-around;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 68px;
        padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)) 6px;
        background: linear-gradient(180deg, #f3f8f3 0%, #ffffff 100%);
        border-top: 1px solid rgba(37, 111, 43, 0.12);
        box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.08);
        z-index: 9995;
        backdrop-filter: blur(12px);
    }

    .app-bottom-tab {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none !important;
        color: #52606d;
        gap: 3px;
        padding: 2px 0;
        position: relative;
        transition: all 0.18s ease;
        user-select: none;
    }

    .app-bottom-tab:active {
        transform: scale(0.94);
    }

    .app-tab-icon-pill {
        width: 56px;
        height: 32px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        transition: background 0.2s ease, transform 0.2s ease;
        position: relative;
    }

    .app-tab-icon-pill svg {
        width: 22px;
        height: 22px;
        stroke: #52606d;
        stroke-width: 1.9;
        fill: none;
        transition: all 0.2s ease;
    }

    .app-bottom-tab.active .app-tab-icon-pill {
        background: var(--app-green-pill);
    }

    .app-bottom-tab.active .app-tab-icon-pill svg {
        stroke: var(--app-green);
    }

    .app-bottom-tab.active .app-tab-icon-pill svg.fill-when-active {
        fill: var(--app-green);
        stroke: var(--app-green);
    }

    .app-tab-label {
        font-size: 11.5px;
        font-weight: 600;
        color: #52606d;
        line-height: 1.1;
        letter-spacing: -0.01em;
    }

    .app-bottom-tab.active .app-tab-label {
        color: var(--app-green);
        font-weight: 700;
    }

    .app-tab-badge {
        position: absolute;
        top: -2px;
        right: 8px;
        min-width: 17px;
        height: 17px;
        padding: 0 4px;
        border-radius: 999px;
        background: var(--app-orange);
        color: #ffffff;
        font-size: 10px;
        font-weight: 800;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1.5px solid #ffffff;
    }

    /* Move back-to-top button above bottom nav on mobile */
    #top.scroll {
        bottom: 82px !important;
        right: 14px !important;
    }
}

/* ==========================================================================
   3. MOBILE SLIDE-OVER APP DRAWER MENU
   ========================================================================== */
.app-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(3px);
    z-index: 99990;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.app-drawer-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.app-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: #ffffff;
    z-index: 99995;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(15, 23, 42, 0.15);
}

.app-drawer.open {
    transform: translateX(0);
}

.app-drawer-header {
    padding: 18px 20px;
    background: linear-gradient(135deg, #256f2b 0%, #1b5420 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-drawer-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.app-drawer-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.app-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px;
}

.app-drawer-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
}

.app-drawer-nav li {
    margin-bottom: 4px;
}

.app-drawer-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 12px;
    color: #1e293b;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    transition: background 0.15s ease;
}

.app-drawer-nav a:hover,
.app-drawer-nav a.active {
    background: var(--app-green-soft);
    color: var(--app-green);
}

.app-drawer-nav a i {
    width: 20px;
    text-align: center;
    color: var(--app-green);
    font-size: 15px;
}

.app-drawer-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    padding: 8px 14px 6px;
}

.app-drawer-cats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 4px 6px;
}

.app-drawer-cat-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none !important;
}

.app-drawer-cat-chip img {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

/* ==========================================================================
   4. MODERN DESKTOP HEADER POLISH
   ========================================================================== */
@media (min-width: 992px) {
    /* Prevent legacy .is-sticky jump and make entire header sticky cleanly */
    .header-area {
        position: sticky;
        top: 0;
        z-index: 1020;
        background: #ffffff;
        box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    }

    .header-main-area,
    .header-main-area.is-sticky {
        position: static !important;
        animation: none !important;
        box-shadow: none !important;
        background: #ffffff !important;
        padding: 0 !important;
    }

    .header-main-area .desktop-pro-header-main {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 24px !important;
        padding: 14px 0 !important;
    }

    /* 1. Brand Logo */
    .header-main-area .desktop-pro-header-main .header-element.logo {
        width: auto !important;
        flex: 0 0 auto !important;
    }

    .desk-logo-link {
        display: inline-flex;
        align-items: center;
        text-decoration: none;
    }

    .desk-logo-img {
        max-height: 56px !important;
        width: auto !important;
        max-width: 210px !important;
        object-fit: contain;
    }

    /* 2. Center Pill Search Bar */
    .header-main-area .desktop-pro-header-main .header-element.search-wrap {
        width: auto !important;
        flex: 1 1 520px !important;
        max-width: 560px !important;
    }

    .desk-search-pill {
        position: relative;
        width: 100%;
        cursor: pointer;
    }

    .desk-search-form {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
        margin: 0;
    }

    .desk-search-leading-icon {
        position: absolute;
        left: 18px;
        top: 50%;
        transform: translateY(-50%);
        color: #64748b;
        font-size: 15px;
        pointer-events: none;
        z-index: 2;
    }

    .desk-search-form input {
        width: 100% !important;
        height: 46px !important;
        border-radius: 999px !important;
        border: 1.5px solid #d5e2d8 !important;
        background: #f8faf9 !important;
        padding: 0 110px 0 44px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        color: #1e293b !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
    }

    .desk-search-form input:hover,
    .desk-search-form input:focus {
        border-color: var(--app-green) !important;
        background: #ffffff !important;
        box-shadow: 0 0 0 4px rgba(37, 111, 43, 0.08) !important;
    }

    .desk-search-submit-btn {
        position: absolute !important;
        right: 5px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        height: 36px !important;
        width: auto !important;
        padding: 0 18px !important;
        border-radius: 999px !important;
        border: none !important;
        background: var(--app-green) !important;
        color: #ffffff !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        transition: background 0.2s ease !important;
    }

    .desk-search-submit-btn:hover {
        background: var(--app-green-dark) !important;
    }

    /* 3. Right Action Pills */
    .header-main-area .desktop-pro-header-main .header-element.right-block-box {
        width: auto !important;
        flex: 0 0 auto !important;
    }

    .desk-action-list {
        display: flex !important;
        align-items: center !important;
        gap: 14px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .desk-action-list li.side-wrap {
        margin-left: 0 !important;
    }

    /* User Account Pill */
    .desk-user-pill {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 6px 14px 6px 8px;
        border-radius: 999px;
        background: #f8faf9;
        border: 1px solid #e2e8f0;
        text-decoration: none !important;
        transition: all 0.2s ease;
    }

    .desk-user-pill:hover {
        border-color: #cbd5e1;
        background: #f1f5f9;
    }

    .desk-pill-icon {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: #e6f2e8;
        color: var(--app-green);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 15px;
        text-decoration: none !important;
        flex-shrink: 0;
    }

    .desk-pill-text {
        display: flex;
        flex-direction: column;
        line-height: 1.15;
    }

    .desk-pill-text small {
        font-size: 10.5px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #64748b;
    }

    .desk-pill-text strong {
        font-size: 13px;
        font-weight: 700;
        color: #0f172a;
    }

    .desk-auth-links {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 12.5px;
        font-weight: 700;
    }

    .desk-auth-links a {
        color: #0f172a !important;
        text-decoration: none !important;
    }

    .desk-auth-links a:hover {
        color: var(--app-green) !important;
    }

    .desk-auth-links .sep {
        color: #94a3b8;
        font-weight: 400;
    }

    /* Wishlist Circle Icon */
    .desk-icon-circle {
        position: relative !important;
        width: 44px !important;
        height: 44px !important;
        border-radius: 50% !important;
        background: #f8faf9 !important;
        border: 1px solid #e2e8f0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #1e293b !important;
        font-size: 18px !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
    }

    .desk-icon-circle:hover {
        background: #fff1f2 !important;
        border-color: #fecdd3 !important;
        color: #e11d48 !important;
    }

    .desk-icon-circle .desk-badge {
        position: absolute !important;
        top: -4px !important;
        right: -4px !important;
        left: auto !important;
        min-width: 20px !important;
        height: 20px !important;
        padding: 0 5px !important;
        border-radius: 999px !important;
        background: var(--app-orange) !important;
        color: #ffffff !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        border: 2px solid #ffffff !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Cart Pill Button */
    .desk-cart-pill {
        display: inline-flex !important;
        align-items: center !important;
        gap: 10px !important;
        height: 44px !important;
        padding: 0 14px 0 8px !important;
        border-radius: 999px !important;
        background: var(--app-green-soft) !important;
        border: 1.5px solid #c5dec8 !important;
        color: var(--app-green-dark) !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
    }

    .desk-cart-pill:hover {
        background: #e3f2e5 !important;
        border-color: var(--app-green) !important;
    }

    .desk-cart-icon {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: var(--app-green);
        color: #ffffff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
    }

    .desk-cart-label {
        font-size: 13.5px;
        font-weight: 700;
        color: #14532d;
    }

    .desk-cart-badge {
        position: static !important;
        min-width: 24px !important;
        height: 22px !important;
        padding: 0 7px !important;
        border-radius: 999px !important;
        background: var(--app-orange) !important;
        color: #ffffff !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* 4. Bottom Navigation Bar */
    .header-bottom-area {
        background: linear-gradient(90deg, #1b5420 0%, #256f2b 100%) !important;
        border-top: none !important;
        padding: 0 !important;
    }

    .header-bottom-area .main-menu-area {
        border-top: none !important;
    }

    .header-bottom-area .main-menu-area .main-navigation {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        min-height: 50px !important;
    }

    .megamenu-content .mainwrap ul.desk-nav-menu {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin: 0 !important;
        padding: 6px 0 !important;
    }

    .megamenu-content .mainwrap ul.desk-nav-menu > li.menu-link > a.link-title {
        color: rgba(255, 255, 255, 0.92) !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        padding: 8px 16px !important;
        border-radius: 999px !important;
        text-decoration: none !important;
        transition: all 0.18s ease !important;
    }

    .megamenu-content .mainwrap ul.desk-nav-menu > li.menu-link > a.link-title::after {
        display: none !important;
    }

    .megamenu-content .mainwrap ul.desk-nav-menu > li.menu-link > a.link-title:hover,
    .megamenu-content .mainwrap ul.desk-nav-menu > li.menu-link > a.link-title.active-nav {
        background: rgba(255, 255, 255, 0.15) !important;
        color: #ffffff !important;
    }

    /* "Browse Categories" Pill Button */
    .megamenu-content .mainwrap ul.desk-nav-menu > li.desk-cat-dropdown-item > a.desk-browse-cat-btn {
        background: rgba(255, 255, 255, 0.16) !important;
        border: 1px solid rgba(255, 255, 255, 0.24) !important;
        color: #ffffff !important;
        font-weight: 700 !important;
        padding: 8px 18px !important;
        margin-right: 8px !important;
    }

    .megamenu-content .mainwrap ul.desk-nav-menu > li.desk-cat-dropdown-item > a.desk-browse-cat-btn:hover {
        background: #ffffff !important;
        color: var(--app-green-dark) !important;
    }

    /* Category Mega-Dropdown Grid */
    ul.desk-cat-megamenu {
        padding: 20px !important;
        border-radius: 0 0 18px 18px !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14) !important;
        background: #ffffff !important;
        display: grid !important;
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 12px !important;
    }

    li.desk-cat-mega-card {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .desk-cat-mega-link {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 10px 8px !important;
        border-radius: 12px !important;
        background: #f8faf9 !important;
        border: 1px solid #edf2ee !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
    }

    .desk-cat-mega-link:hover {
        background: var(--app-green-soft) !important;
        border-color: #c5dec8 !important;
        transform: translateY(-2px);
    }

    .desk-cat-mega-img {
        width: 64px;
        height: 64px;
        border-radius: 12px;
        overflow: hidden;
        background: #ffffff;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .desk-cat-mega-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .desk-cat-mega-title {
        font-size: 12.5px;
        font-weight: 700;
        color: #1e293b;
        line-height: 1.25;
    }

    /* Right Side Hotline in Green Nav Bar */
    .desk-hotline-box {
        width: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 10px !important;
        color: #ffffff !important;
    }

    .desk-hotline-icon {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.16);
        color: #ffffff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
    }

    .desk-hotline-text {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin: 0 !important;
    }

    .desk-hotline-text .hot-l {
        color: rgba(255, 255, 255, 0.8) !important;
        font-size: 12.5px !important;
        font-weight: 500 !important;
    }

    .desk-hotline-numbers a {
        color: #ffffff !important;
        font-size: 13.5px !important;
        font-weight: 700 !important;
        text-decoration: none !important;
    }

    .desk-hotline-numbers a:hover {
        color: #fde047 !important;
    }
}

/* ==========================================================================
   5. MODERN PRODUCT CARDS & MOBILE 2-COLUMN APP GRID
   ========================================================================== */
li.grid-items,
.h-t-pro {
    border: 1px solid #e5ebe7 !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    padding: 12px !important;
    box-shadow: 0 3px 14px rgba(15, 23, 42, 0.04) !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease !important;
    overflow: hidden;
}

li.grid-items:hover,
.h-t-pro:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10) !important;
    border-color: #c3d9c5 !important;
}

.tred-pro .tr-pro-img {
    border-radius: 12px;
    overflow: hidden;
    background: #f8faf9;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tred-pro .tr-pro-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

li.grid-items:hover .tred-pro .tr-pro-img img,
.h-t-pro:hover .tred-pro .tr-pro-img img {
    transform: scale(1.04);
}

.caption {
    padding-top: 10px !important;
    text-align: left !important;
}

.caption h3 a {
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none !important;
}

.caption .pro-price {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.caption .variant-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f3f8f4;
    border: 1px solid #dfece1;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
}

.caption .variant-name {
    color: #475569;
    font-weight: 600;
}

.caption .variant-price-value,
.caption .new-price {
    color: var(--app-green);
    font-weight: 800;
    font-size: 13px;
}

/* Mobile App View Enhancements */
@media (max-width: 767px) {
    /* Hero banner rounded app card look on phone */
    .slider {
        padding: 4px 12px 0 12px;
    }

    .slider .home-slider {
        border-radius: 18px;
        overflow: hidden;
        box-shadow: 0 6px 20px rgba(15, 23, 42, 0.09);
    }

    .slider .home-slider .img-back {
        height: 175px !important;
        background-size: cover !important;
        background-position: center !important;
    }

    .section-tb-padding {
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }

    .section-title h2,
    .section-title h1 {
        font-size: 19px !important;
        font-weight: 800 !important;
        margin-bottom: 16px !important;
        text-align: left !important;
    }

    /* 2-Column Native App Product Grid on Mobile */
    ul.grid-product {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    ul.grid-product > li.grid-items {
        width: 100% !important;
        margin: 0 !important;
        padding: 9px !important;
        border-radius: 14px !important;
    }

    .caption h3 a {
        font-size: 13px !important;
    }

    .caption .variant-price {
        padding: 3px 6px;
        font-size: 11px;
    }

    .caption .variant-price-value {
        font-size: 11.5px;
    }
}


/* ==========================================================================
   6. MOBILE APP CATEGORY STRIPS, SHOP FILTER BAR, MINI-CART & TOASTS
   ========================================================================== */

/* Ensure Mini-Cart and Backdrop sit above Mobile Pill Header & Bottom Nav */
.mm-fullscreen-bg {
    z-index: 99996 !important;
}

.mini-cart-container {
    position: relative;
    z-index: 99999 !important;
}

.mini-cart {
    z-index: 99999 !important;
}

.mini-cart .subtotal-title-area {
    z-index: 5;
}

.mini-cart .cart-btns a {
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
    cursor: pointer;
}

/* App Floating Feedback Toast */
.app-floating-toast {
    position: fixed;
    bottom: 84px;
    left: 50%;
    transform: translate(-50%, 20px);
    background: #0f172a;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.25);
    z-index: 100000;
    opacity: 0;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    white-space: nowrap;
}

.app-floating-toast.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.app-floating-toast.success i {
    color: #4ade80;
}

.app-floating-toast.wishlist i {
    color: #fb7185;
}

/* Home Page Native Swipeable Category Strip (Mobile) */
.app-home-cat-scroll {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 4px 12px 4px;
    margin: 0 -4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.app-home-cat-scroll::-webkit-scrollbar {
    display: none;
}

.app-home-cat-card {
    flex: 0 0 84px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none !important;
    gap: 7px;
}

.app-home-cat-img {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: #ffffff;
    border: 1.5px solid #dceadd;
    box-shadow: 0 4px 12px rgba(37, 111, 43, 0.08);
    padding: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.app-home-cat-card:active .app-home-cat-img {
    transform: scale(0.94);
    border-color: var(--app-green);
}

.app-home-cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.app-home-cat-name {
    font-size: 11.5px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Shop Page Horizontal Category Pills (Mobile) */
.app-shop-cat-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 8px 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.app-shop-cat-strip::-webkit-scrollbar {
    display: none;
}

.app-shop-cat-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: #334155;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    transition: all 0.18s ease;
}

.app-shop-cat-pill img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.app-shop-cat-pill.active {
    background: var(--app-green);
    border-color: var(--app-green);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 111, 43, 0.25);
}

.app-mobile-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 12px;
    background: #ffffff;
    border: 1.5px solid #dce5df;
    color: #1e293b;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.app-mobile-filter-btn i {
    color: var(--app-green);
}

.app-mobile-sort-select {
    padding: 8px 12px;
    border-radius: 12px;
    background: #ffffff;
    border: 1.5px solid #dce5df;
    color: #1e293b;
    font-size: 13px;
    font-weight: 600;
    outline: none;
}

@media (max-width: 991px) {
    /* Compact breadcrumb on mobile so content starts immediately */
    .about-breadcrumb .about-back {
        padding-top: 18px !important;
        padding-bottom: 18px !important;
    }

    /* Collapse the bulky sidebar filter by default on mobile until toggled */
    .shop-sidebar-filter-col {
        display: none;
        margin-bottom: 16px;
    }

    .shop-sidebar-filter-col.mobile-filter-open {
        display: block;
    }

    .grid-list-select {
        display: none !important;
    }

    /* Always show clean action buttons on mobile product cards (since phones have no hover) */
    .tred-pro .pro-icn {
        opacity: 1 !important;
        visibility: visible !important;
        bottom: 8px !important;
        transform: none !important;
    }

    .tred-pro .pro-icn a.w-c-q-icn {
        width: 32px !important;
        height: 32px !important;
        line-height: 32px !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.95) !important;
        color: var(--app-green) !important;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14) !important;
        margin: 0 2px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .tred-pro .pro-icn a.w-c-q-icn:active {
        background: var(--app-green) !important;
        color: #ffffff !important;
    }
}


/* ==========================================================================
   7. ULTRA-MODERN FLOATING SEARCH POPUP & GLOBAL UI ENHANCEMENTS
   ========================================================================== */
.search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.68) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 99998 !important;
    transition: opacity 0.25s ease;
}
.search-overlay.active {
    display: block !important;
}

.search-modal {
    display: none;
    position: fixed !important;
    top: 70px !important;
    left: 50% !important;
    transform: translateX(-50%) scale(0.96);
    width: 92% !important;
    max-width: 860px !important;
    max-height: 84vh !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    z-index: 99999 !important;
    box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(15, 23, 42, 0.08) !important;
    overflow: hidden !important;
    flex-direction: column !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.search-modal.active {
    display: flex !important;
    transform: translateX(-50%) scale(1) !important;
}

.search-modal-header {
    display: flex;
    align-items: center;
    padding: 16px 22px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    gap: 12px;
}
.search-modal-header .s-icon {
    color: #256f2b;
    font-size: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(37, 111, 43, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.search-modal-header input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: 500;
    color: #0f172a;
    background: transparent;
}
.search-modal-header input::placeholder {
    color: #94a3b8;
}
.s-esc-badge kbd {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    padding: 3px 8px;
    font-family: inherit;
}
.s-close-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    color: #64748b;
    font-size: 20px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.s-close-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
    transform: rotate(90deg);
}

.search-quick-tags-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: #f8fafc;
    border-bottom: 1px solid #edf2f7;
    overflow-x: auto;
    scrollbar-width: none;
}
.search-quick-tags-strip::-webkit-scrollbar { display: none; }
.quick-tags-label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}
.quick-tags-label i { color: #f59e0b; }
.quick-tags-scroll {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}
.search-quick-chip {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #334155;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}
.search-quick-chip:hover {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
    transform: translateY(-1px);
}

.search-modal-body {
    display: flex;
    max-height: calc(84vh - 120px);
    overflow: hidden;
}

.search-suggestions {
    width: 230px;
    flex-shrink: 0;
    border-right: 1px solid #f1f5f9;
    padding: 18px 16px;
    overflow-y: auto;
    background: #fbfcfd;
}
.search-suggestions h6,
.search-products h6 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #475569;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.suggestion-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    color: #334155;
    text-decoration: none;
    transition: all 0.15s ease;
    margin-bottom: 2px;
}
.suggestion-item:hover {
    background: #f1f8f2;
    color: #256f2b;
    font-weight: 600;
    text-decoration: none;
    transform: translateX(3px);
}

.search-products {
    flex: 1;
    padding: 20px 24px;
    overflow-y: auto;
    min-width: 0;
}
.search-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}
.s-product-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #0f172a;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
    padding: 8px;
}
.s-product-card:hover {
    border-color: #86efac;
    box-shadow: 0 8px 24px rgba(37, 111, 43, 0.12);
    transform: translateY(-2px);
    color: #0f172a;
    text-decoration: none;
}
.s-product-card img {
    width: 100% !important;
    height: 110px !important;
    object-fit: contain !important;
    background: #f8fafc;
    border-radius: 8px;
    display: block;
    padding: 4px;
}
.s-product-card-info {
    padding: 10px 4px 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}
.s-product-card-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}
.s-product-card-price {
    font-size: 14px;
    font-weight: 700;
    color: #256f2b;
}

@media (max-width: 767px) {
    .search-modal {
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
    }
    .s-esc-badge { display: none; }
    .search-modal-body {
        flex-direction: column;
        max-height: calc(100vh - 110px);
        overflow-y: auto;
    }
    .search-suggestions {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
        padding: 12px 16px;
    }
    .search-suggestions.hide-mobile { display: none; }
    .search-products {
        padding: 14px 16px;
    }
    .search-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .s-product-card img { height: 95px !important; }
}
