/* ==========================================================================
   Mobile & Tablet App-Like Responsive UI for Lexvers Storefront
   Strictly scoped to:
   - Mobile: @media (max-width: 768px)
   - Tablet: @media (min-width: 769px) and (max-width: 1024px)
   - Desktop (>= 1025px) remains 100% untouched.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. MOBILE APP BOTTOM NAVIGATION BAR (Phones Only)
   -------------------------------------------------------------------------- */
.mobile-bottom-nav {
    display: none; /* Hidden by default on Desktop & Tablet */
}

@media (max-width: 768px) {
    body {
        padding-bottom: 70px !important;
    }

    .storefront-shell {
        padding-bottom: 30px !important;
    }

    .mobile-bottom-nav {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9998 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-around !important;
        height: 60px !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        border-top: 1px solid rgba(226, 232, 240, 0.95) !important;
        box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.08) !important;
        padding: 4px 6px calc(env(safe-area-inset-bottom, 0px) + 4px) !important;
        box-sizing: content-box !important;
    }

    .mobile-nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        flex: 1 !important;
        min-width: 0 !important;
        height: 100% !important;
        color: #64748b !important;
        text-decoration: none !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        padding: 4px 0 !important;
        font-family: inherit !important;
        transition: color 0.18s ease, transform 0.18s ease !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .mobile-nav-item i {
        font-size: 19px !important;
        line-height: 1 !important;
        transition: transform 0.18s ease !important;
    }

    .mobile-nav-item span {
        font-size: 10px !important;
        font-weight: 700 !important;
        letter-spacing: 0.2px !important;
        line-height: 1 !important;
    }

    .mobile-nav-item.active,
    .mobile-nav-item:active {
        color: #ea580c !important;
    }

    .mobile-nav-item.active i {
        transform: scale(1.08) !important;
    }

    .mobile-nav-cart-icon-wrap {
        position: relative !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .mobile-nav-cart-badge {
        position: absolute !important;
        top: -6px !important;
        right: -10px !important;
        min-width: 17px !important;
        height: 17px !important;
        padding: 0 4px !important;
        border-radius: 999px !important;
        background: #ef4444 !important;
        color: #ffffff !important;
        font-size: 10px !important;
        font-weight: 800 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 2px solid #ffffff !important;
        line-height: 1 !important;
    }

    /* Dark Mode Bottom Nav */
    body.dark-mode .mobile-bottom-nav,
    html.dark-mode .mobile-bottom-nav {
        background: rgba(15, 23, 42, 0.98) !important;
        border-top-color: #24344f !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5) !important;
    }

    body.dark-mode .mobile-nav-item,
    html.dark-mode .mobile-nav-item {
        color: #94a3b8 !important;
    }

    body.dark-mode .mobile-nav-item.active,
    body.dark-mode .mobile-nav-item:active,
    html.dark-mode .mobile-nav-item.active,
    html.dark-mode .mobile-nav-item:active {
        color: #f97316 !important;
    }

    body.dark-mode .mobile-nav-cart-badge,
    html.dark-mode .mobile-nav-cart-badge {
        border-color: #0f172a !important;
    }
}

/* --------------------------------------------------------------------------
   2. MOBILE TOP APP BAR (Single-Row Header on Phones)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    header.site-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 3000 !important;
        padding-top: 0 !important;
        background: #ffffff !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        margin: 0 !important;
    }

    body.dark-mode header.site-header,
    html.dark-mode header.site-header {
        background: #0f172a !important;
    }

    .header-top {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        min-height: 52px !important;
        height: 52px !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
        padding: 6px 10px !important;
        background: #ffffff !important;
        border-bottom: 1px solid #f1f5f9 !important;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
        box-sizing: border-box !important;
    }

    body.dark-mode .header-top,
    html.dark-mode .header-top {
        background: #0f172a !important;
        border-bottom-color: #1e293b !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    }

    /* 1. Compact circular logo on the far Left */
    .header-top .logo {
        order: 1 !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    .header-top .brand-logo-img {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        max-width: 34px !important;
        max-height: 34px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        background: #ffffff !important;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1) !important;
    }

    /* 2. Pill-shaped search bar in the CENTER */
    .header-top .search-bar {
        order: 2 !important;
        flex: 1 1 auto !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        min-height: 36px !important;
        height: 36px !important;
        margin: 0 2px !important;
        padding: 0 10px !important;
        border-radius: 999px !important;
        background: #f1f5f9 !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: none !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    body.dark-mode .header-top .search-bar,
    html.dark-mode .header-top .search-bar {
        background: #1e293b !important;
        border-color: #334155 !important;
    }

    .header-top .search-bar i {
        color: #94a3b8 !important;
        font-size: 12px !important;
        flex-shrink: 0 !important;
    }

    .header-top .search-bar form {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
    }

    .header-top .search-bar input {
        width: 100% !important;
        border: none !important;
        background: transparent !important;
        font-size: 12.5px !important;
        color: #0f172a !important;
        padding: 0 !important;
        outline: none !important;
    }

    body.dark-mode .header-top .search-bar input,
    html.dark-mode .header-top .search-bar input {
        color: #f8fafc !important;
    }

    .header-top .search-bar input::placeholder {
        color: #94a3b8 !important;
        font-size: 11.5px !important;
    }

    /* 3. Right icons group: Dark Mode, Cart, Profile Dropdown strictly to the RIGHT of Search Bar */
    .header-top .header-icons {
        order: 3 !important;
        flex: 0 0 auto !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 6px !important;
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
    }

    /* Dark Mode Button */
    .header-top .header-icons .theme-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        border-radius: 50% !important;
        background: #f1f5f9 !important;
        border: 1px solid #e2e8f0 !important;
        color: #475569 !important;
        font-size: 13px !important;
        padding: 0 !important;
        cursor: pointer !important;
    }

    body.dark-mode .header-top .header-icons .theme-toggle,
    html.dark-mode .header-top .header-icons .theme-toggle {
        background: #1e293b !important;
        border-color: #334155 !important;
        color: #f8fafc !important;
    }

    /* Cart Icon with badge */
    .header-top .header-icons .cart-icon-wrapper {
        position: relative !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        color: #1e293b !important;
        font-size: 15px !important;
        text-decoration: none !important;
    }

    body.dark-mode .header-top .header-icons .cart-icon-wrapper,
    html.dark-mode .header-top .header-icons .cart-icon-wrapper {
        color: #f8fafc !important;
    }

    .header-top .header-icons .cart-badge {
        position: absolute !important;
        top: -4px !important;
        right: -6px !important;
        min-width: 15px !important;
        height: 15px !important;
        padding: 0 3px !important;
        border-radius: 999px !important;
        background: #ef4444 !important;
        color: #ffffff !important;
        font-size: 9px !important;
        font-weight: 800 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 2px solid #ffffff !important;
        line-height: 1 !important;
    }

    body.dark-mode .header-top .header-icons .cart-badge,
    html.dark-mode .header-top .header-icons .cart-badge {
        border-color: #0f172a !important;
    }

    /* Profile Wrapper */
    .header-top .header-icons .profile-wrapper {
        position: relative !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        margin: 0 !important;
        gap: 0 !important;
    }

    .header-top .header-icons .profile-wrapper > span {
        display: none !important; /* Hide long text on mobile */
    }

    .header-top .header-icons .profile-wrapper .fa-circle-user {
        font-size: 24px !important;
        color: #475569 !important;
    }

    body.dark-mode .header-top .header-icons .profile-wrapper .fa-circle-user,
    html.dark-mode .header-top .header-icons .profile-wrapper .fa-circle-user {
        color: #cbd5e1 !important;
    }

    .header-top .header-icons .profile-wrapper .account-avatar-small {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        font-size: 12px !important;
        border-radius: 50% !important;
    }

    /* Profile Dropdown Box on Mobile */
    .header-top .profile-dropdown {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        right: 0 !important;
        left: auto !important;
        width: min(230px, calc(100vw - 20px)) !important;
        max-width: calc(100vw - 20px) !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.16) !important;
        padding: 8px !important;
        z-index: 10000 !important;
        margin: 0 !important;
    }

    body.dark-mode .header-top .profile-dropdown,
    html.dark-mode .header-top .profile-dropdown {
        background: #142033 !important;
        border-color: #24344f !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
    }

    .header-top .profile-dropdown a {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 8px 10px !important;
        border-radius: 8px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        color: #1e293b !important;
    }

    body.dark-mode .header-top .profile-dropdown a,
    html.dark-mode .header-top .profile-dropdown a {
        color: #e2e8f0 !important;
    }

    .header-top .profile-dropdown a:hover {
        background: #f1f5f9 !important;
        color: #ea580c !important;
    }

    body.dark-mode .header-top .profile-dropdown a:hover,
    html.dark-mode .header-top .profile-dropdown a:hover {
        background: #1e293b !important;
        color: #f97316 !important;
    }
}

/* --------------------------------------------------------------------------
   3. MOBILE CATEGORY STRIP (App-style Icons on top, labels below)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .header-category-nav {
        position: relative !important;
        z-index: 1000 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        padding: 6px 8px !important;
        min-height: 64px !important;
        height: 64px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
        border-top: none !important;
        border-bottom: 1px solid #e2e8f0 !important;
        background: #ffffff !important;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03) !important;
    }

    .header-category-nav::-webkit-scrollbar {
        display: none !important;
    }

    body.dark-mode .header-category-nav,
    html.dark-mode .header-category-nav {
        background: #0f172a !important;
        border-bottom-color: #1e293b !important;
    }

    .header-category-nav a {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        flex: 0 0 auto !important;
        min-width: 64px !important;
        min-height: 54px !important;
        height: 54px !important;
        padding: 4px 6px !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 8px !important;
        position: relative !important;
        text-decoration: none !important;
        transform: none !important;
    }

    .header-category-nav a:hover {
        transform: none !important;
        background: transparent !important;
    }

    .header-category-nav a.active {
        background: transparent !important;
        color: #ea580c !important;
    }

    /* Vibrant active indicator underline matching reference photo */
    .header-category-nav a.active::after {
        content: '' !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 10px !important;
        right: 10px !important;
        height: 2.5px !important;
        background: #ea580c !important;
        border-radius: 999px !important;
        display: block !important;
    }

    .header-category-nav .category-tab-media {
        width: 28px !important;
        height: 28px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        box-shadow: none !important;
        margin: 0 !important;
    }

    .header-category-nav .category-tab-media i {
        font-size: 19px !important;
        line-height: 1 !important;
    }

    .header-category-nav .category-tab-emoji {
        font-size: 18px !important;
    }

    .header-category-nav .category-tab-label {
        font-size: 11px !important;
        font-weight: 700 !important;
        color: #475569 !important;
        white-space: nowrap !important;
        text-align: center !important;
        line-height: 1.1 !important;
        max-width: 74px !important;
    }

    body.dark-mode .header-category-nav .category-tab-label,
    html.dark-mode .header-category-nav .category-tab-label {
        color: #94a3b8 !important;
    }

    .header-category-nav a.active .category-tab-label {
        color: #ea580c !important;
        font-weight: 800 !important;
    }

    body.dark-mode .header-category-nav a.active .category-tab-label,
    html.dark-mode .header-category-nav a.active .category-tab-label {
        color: #f97316 !important;
    }
}

/* --------------------------------------------------------------------------
   4. MOBILE HERO & COMPACT BANNER CAROUSELS (Strictly 1 Full Photo At A Time)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .hero-section,
    .compact-hero-section {
        padding: 10px 14px 6px !important;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .hero-carousel,
    .compact-hero-shell,
    .compact-viewport {
        position: relative !important;
        width: 100% !important;
        height: clamp(145px, 42vw, 215px) !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08) !important;
        box-sizing: border-box !important;
    }

    .hero-track,
    .compact-track {
        display: flex !important;
        width: 100% !important;
        height: 100% !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .hero-slide,
    .compact-slide {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        box-sizing: border-box !important;
        border-radius: 16px !important;
        border: none !important;
        box-shadow: none !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    .hero-slide img,
    .compact-slide img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 16px !important;
        display: block !important;
    }

    .hero-arrow,
    .compact-arrow {
        display: none !important; /* Hide arrows on touch screens */
    }

    .hero-dots {
        position: relative !important;
        bottom: auto !important;
        margin-top: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
    }

    .hero-dots button {
        width: 6px !important;
        height: 6px !important;
        border-radius: 999px !important;
        background: #cbd5e1 !important;
        border: none !important;
        padding: 0 !important;
        transition: width 0.2s ease, background 0.2s ease !important;
    }

    .hero-dots button.active {
        width: 18px !important;
        background: #ea580c !important;
    }

    body.dark-mode .hero-dots button,
    html.dark-mode .hero-dots button {
        background: #334155 !important;
    }

    body.dark-mode .hero-dots button.active,
    html.dark-mode .hero-dots button.active {
        background: #f97316 !important;
    }
}

/* --------------------------------------------------------------------------
   5. MOBILE SECTION HEADERS ("Spices", "Pure & Natural...", "View All ->")
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .top-deals-section,
    .product-section {
        width: 100% !important;
        padding: 0 10px !important;
        margin: 12px 0 20px !important;
    }

    .deal-row {
        padding: 12px 10px !important;
        border-radius: 16px !important;
        margin-bottom: 16px !important;
        box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04) !important;
    }

    .deal-row-head,
    .section-header {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin-bottom: 12px !important;
        gap: 6px !important;
    }

    .deal-row-head > div,
    .section-header > div {
        flex: 1 !important;
        min-width: 0 !important;
    }

    .deal-row-head h3,
    .section-header h2 {
        font-size: 18px !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        color: #0f172a !important;
    }

    .deal-row-head p,
    .section-header p {
        font-size: 11px !important;
        color: #64748b !important;
        margin: 2px 0 0 0 !important;
        line-height: 1.25 !important;
    }

    body.dark-mode .deal-row-head h3,
    body.dark-mode .section-header h2,
    html.dark-mode .deal-row-head h3,
    html.dark-mode .section-header h2 {
        color: #f8fafc !important;
    }

    body.dark-mode .deal-row-head p,
    body.dark-mode .section-header p,
    html.dark-mode .deal-row-head p,
    html.dark-mode .section-header p {
        color: #94a3b8 !important;
    }

    /* "View All ->" / "More ->" link matching mockup */
    .deal-row-head .more-link,
    .section-header .more-link {
        flex: 0 0 auto !important;
        min-width: auto !important;
        min-height: auto !important;
        padding: 4px 10px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        color: #ea580c !important;
        background: rgba(234, 88, 12, 0.08) !important;
        border: 1px solid rgba(234, 88, 12, 0.22) !important;
        border-radius: 999px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        box-shadow: none !important;
        text-decoration: none !important;
    }

    .deal-row-head .more-link:hover,
    .section-header .more-link:hover {
        background: #ea580c !important;
        color: #ffffff !important;
    }

    body.dark-mode .deal-row-head .more-link,
    body.dark-mode .section-header .more-link,
    html.dark-mode .deal-row-head .more-link,
    html.dark-mode .section-header .more-link {
        color: #f97316 !important;
        background: rgba(249, 115, 22, 0.15) !important;
        border-color: rgba(249, 115, 22, 0.3) !important;
    }

    /* Subcategory / spice filter section on mobile */
    .spice-finder-section {
        margin: 6px 10px !important;
        padding: 8px 10px !important;
        border-radius: 12px !important;
    }

    .spice-icon-pill {
        min-width: 70px !important;
    }

    .spice-card-image-wrap {
        width: 44px !important;
        height: 44px !important;
    }

    .spice-name {
        font-size: 11px !important;
    }
}

/* --------------------------------------------------------------------------
   6. 2-COLUMN APP PRODUCT GRID (Phones <= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .product-grid,
    .deal-row-grid,
    .search-results-grid,
    .related-section .product-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .product-card,
    .product-grid .product-card,
    .deal-row-grid .product-card,
    .search-results-grid .product-card {
        border-radius: 14px !important;
        padding: 8px !important;
        border: 1px solid #eef2f6 !important;
        background: #ffffff !important;
        box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;
        display: flex !important;
        flex-direction: column !important;
        box-sizing: border-box !important;
    }

    body.dark-mode .product-card,
    body.dark-mode .product-grid .product-card,
    body.dark-mode .deal-row-grid .product-card,
    body.dark-mode .search-results-grid .product-card,
    html.dark-mode .product-card,
    html.dark-mode .product-grid .product-card,
    html.dark-mode .deal-row-grid .product-card,
    html.dark-mode .search-results-grid .product-card {
        background: #0f172a !important;
        border-color: #24344f !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
    }

    /* Square image container with 1:1 ratio */
    .product-image-container,
    .product-image-wrap,
    .product-grid .product-image-wrap,
    .deal-row-grid .product-image-wrap,
    .search-results-grid .product-image-wrap {
        aspect-ratio: 1 / 1 !important;
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        max-height: 180px !important;
        border-radius: 10px !important;
        overflow: hidden !important;
        background: #f8fafc !important;
        margin-bottom: 8px !important;
        padding: 6px !important;
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    body.dark-mode .product-image-container,
    body.dark-mode .product-image-wrap,
    html.dark-mode .product-image-container,
    html.dark-mode .product-image-wrap {
        background: #1e293b !important;
    }

    .product-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        border-radius: 8px !important;
    }

    /* Wishlist Circular Button: Top-Right of Image */
    .wishlist-btn {
        position: absolute !important;
        top: 6px !important;
        right: 6px !important;
        z-index: 10 !important;
        width: 28px !important;
        height: 28px !important;
        border-radius: 50% !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        color: #94a3b8 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12) !important;
        padding: 0 !important;
        font-size: 12px !important;
    }

    body.dark-mode .wishlist-btn,
    html.dark-mode .wishlist-btn {
        background: #1e293b !important;
        border-color: #334155 !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
    }

    /* Spice & Feature Tag: Top-Left of Image */
    .spice-tag {
        position: absolute !important;
        top: 6px !important;
        left: 6px !important;
        z-index: 10 !important;
        height: 20px !important;
        min-height: 20px !important;
        padding: 0 7px !important;
        font-size: 9.5px !important;
        font-weight: 800 !important;
        border-radius: 999px !important;
        text-transform: capitalize !important;
        box-shadow: 0 2px 4px rgba(15, 23, 42, 0.1) !important;
    }

    /* Discount Badge: Bottom-Left or Bottom-Right */
    .product-offer-badge {
        position: absolute !important;
        bottom: 6px !important;
        left: 6px !important;
        z-index: 9 !important;
        background: #16a34a !important;
        color: #ffffff !important;
        font-size: 9.5px !important;
        font-weight: 800 !important;
        height: 18px !important;
        min-height: 18px !important;
        padding: 0 6px !important;
        border-radius: 4px !important;
        box-shadow: 0 2px 6px rgba(22, 163, 74, 0.3) !important;
    }

    /* Clamped Product Title */
    .product-title {
        font-size: 13px !important;
        font-weight: 700 !important;
        color: #0f172a !important;
        line-height: 1.28 !important;
        height: 33px !important;
        margin: 0 0 4px 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    body.dark-mode .product-title,
    html.dark-mode .product-title {
        color: #f8fafc !important;
    }

    /* Compact body rows */
    .product-body {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
        gap: 4px !important;
        margin-top: 2px !important;
    }

    .product-rating-row {
        font-size: 11px !important;
        gap: 4px !important;
        margin: 0 !important;
    }

    .product-meta {
        font-size: 11px !important;
        gap: 6px !important;
        margin: 0 !important;
    }

    .brand-chip {
        font-size: 10px !important;
        padding: 1px 5px !important;
    }

    /* Price Row with bold main price and strikethrough MRP */
    .price-row {
        display: flex !important;
        align-items: baseline !important;
        gap: 6px !important;
        margin: 2px 0 6px 0 !important;
    }

    .product-price {
        font-size: 16px !important;
        font-weight: 800 !important;
        color: #0f172a !important;
        letter-spacing: -0.2px !important;
    }

    body.dark-mode .product-price,
    html.dark-mode .product-price {
        color: #2dd4bf !important;
    }

    .price-row del {
        font-size: 11.5px !important;
        color: #94a3b8 !important;
    }

    .product-card-footer {
        display: none !important; /* Hide tiny stock badge to keep mobile card sleek and uncluttered */
    }

    /* Full-Width Vibrant "Add to Cart" Button */
    .add-btn {
        width: 100% !important;
        min-height: 36px !important;
        height: 36px !important;
        background: linear-gradient(135deg, #f97316, #ea580c) !important;
        color: #ffffff !important;
        border: none !important;
        border-radius: 9px !important;
        font-weight: 700 !important;
        font-size: 12.5px !important;
        cursor: pointer !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        box-shadow: 0 4px 12px rgba(234, 88, 12, 0.28) !important;
        transition: transform 0.15s ease, background 0.15s ease !important;
        margin-top: auto !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .add-btn:active {
        transform: scale(0.97) !important;
        background: #c2410c !important;
    }

    .add-btn:disabled {
        background: #cbd5e1 !important;
        color: #94a3b8 !important;
        box-shadow: none !important;
    }
}

/* --------------------------------------------------------------------------
   7. TABLET RESPONSIVE UI (769px to 1024px)
   -------------------------------------------------------------------------- */
@media (min-width: 769px) and (max-width: 1024px) {
    .mobile-bottom-nav {
        display: none !important; /* Hidden on tablets, use header */
    }

    .top-deals-section,
    .product-section {
        width: min(960px, calc(100% - 32px)) !important;
        margin: 18px auto 28px !important;
    }

    /* 3-Column Grid on Tablet */
    .product-grid,
    .deal-row-grid,
    .search-results-grid,
    .related-section .product-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }

    .product-card,
    .product-grid .product-card,
    .deal-row-grid .product-card,
    .search-results-grid .product-card {
        padding: 12px !important;
        border-radius: 14px !important;
    }

    .product-image-container,
    .product-image-wrap {
        max-height: 220px !important;
        aspect-ratio: 1 / 1 !important;
    }

    .hero-carousel {
        height: clamp(200px, 32vw, 290px) !important;
        border-radius: 16px !important;
    }

    .header-top {
        padding: 10px 20px !important;
    }

    .header-category-nav {
        padding: 8px 18px !important;
        gap: 10px !important;
    }

    .header-category-nav a {
        min-width: 80px !important;
    }
}
