        /* Reset and Base Styles */
        * {
            box-sizing: border-box;
            margin: 0;
        }
        
        html {
            overflow-x: hidden; /* Prevent horizontal scrolling */
            scroll-behavior: smooth;
        }
        
        html, body {
            max-width: 100vw; /* Ensure body never exceeds viewport width */
            overflow-x: hidden; /* Critical fix for mobile horizontal shaking */
        }
        
        :root {
            /* Primary Brand Colors — UNIMART orange · slate · white */
            --primary: var(--unimart-orange, #f68b1e);
            --primary-dark: var(--unimart-orange-deep, #e96703);
            --primary-light: #fff3e6;
            
            /* Secondary — brand slate (header search tier, footer) */
            --secondary: var(--unimart-slate, #2c3e50);
            --secondary-light: var(--unimart-slate-mid, #34495e);
            --charcoal: var(--unimart-slate, #2c3e50);

            /* Typography — Manrope (UI) + Fraunces (headlines) */
            --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
            
            /* Accent Colors — aligned with unimart-brand.css tokens */
            --accent: #f68b1e;
            --success: #198754;
            --danger: #dc3545;
            --warning: #f68b1e;
            --info: #3b82f6;
            
            /* Neutral Colors - Clean Grays */
            --light: #fafafa;             /* Very light background */
            --light-cream: #ffffff;       /* White background */
            --gray: #6b7280;              /* Medium gray */
            --gray-light: #f3f4f6;        /* Light gray borders/backgrounds */
            --gray-dark: #1f2937;         /* Dark gray */
            --white: #ffffff;
            --black: #000000;
            
            /* Functional */
            --transition: all 0.3s ease;
            --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
            --shadow: 0 4px 6px rgba(0,0,0,0.07);
            --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
            --border-radius: 8px;
            --border-radius-sm: 4px;
            --border-radius-lg: 12px;
        }

        .geo-badge {
            font-size: 0.65rem;
            background: rgba(255, 255, 255, 0.95);
            color: var(--secondary);
            border: 1px solid rgba(0, 0, 0, 0.08);
            border-radius: 999px;
            padding: 2px 8px;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            box-shadow: var(--shadow-sm);
        }

        .geo-badge .geo-campus {
            font-weight: 600;
            color: var(--gray);
        }


        body {
            font-family: var(--font-body);
            line-height: 1.6;
            color: var(--secondary);
            background: var(--light);
            /* padding-top set by CSS vars block at end of file */
            padding-bottom: 0; /* Will be adjusted for mobile with bottom nav */
            position: relative;
        }
        
        /* Typography Standardization */
        h1, h2, h3 {
            font-family: var(--font-display);
            font-weight: 700;
            color: var(--secondary);
            letter-spacing: -0.02em;
        }
        h4, h5, h6 {
            font-family: var(--font-body);
            font-weight: 600;
            color: var(--secondary);
        }
        
        p, span, div, input, button, label, table, th, td, a {
            font-family: var(--font-body);
        }
        
        /* Button Standardization */
        .btn-primary {
            background-color: var(--primary) !important;
            border-color: var(--primary) !important;
            color: white !important;
        }
        
        .btn-primary:hover, .btn-primary:focus {
            background-color: var(--primary-dark) !important;
            border-color: var(--primary-dark) !important;
        }
        
        .btn-outline-primary {
            color: var(--primary) !important;
            border-color: var(--primary) !important;
        }
        
        .btn-outline-primary:hover {
            background-color: var(--primary) !important;
            color: white !important;
        }
        
        /* Link Standardization */
        a {
            text-decoration: none;
            color: var(--primary);
            transition: var(--transition);
        }
        
        a:hover {
            color: var(--primary-dark);
        }
        
        /* Background utility classes */
        .bg-primary-custom {
            background-color: var(--primary) !important;
        }
        
        .text-primary-custom {
            color: var(--primary) !important;
        }

        /* Container */
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px; /* Increased from 15px for better mobile spacing */
            box-sizing: border-box; /* Include padding in width calculation */
            overflow-x: hidden; /* Prevent horizontal overflow from container */
        }
        
        /* Responsive container padding */
        @media (min-width: 768px) {
            .container {
                padding: 0 40px; /* More generous padding on desktop */
            }
        }
        
        @media (min-width: 1200px) {
            .container {
                padding: 0 60px; /* Even more space on large screens */
            }
        }

        /* Flex Grid */
        .flex-row {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
        }

        .flex-col {
            flex: 1;
            min-width: 0;
        }

        /* Top Navbar - Fixed at top */
        .top-nav {
            background: var(--unimart-orange, #f68b1e);
            padding: 8px 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: #fff;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            max-width: 100vw; /* Prevent exceeding viewport */
            z-index: 1002;
            height: 50px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            box-sizing: border-box; /* Include padding in width calculation */
            gap: 15px; /* Space between elements */
        }

        .top-nav .logo {
            font-family: var(--font-display);
            font-size: 1.2rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 4px;
            flex-shrink: 0;
            letter-spacing: -0.02em;
        }

        .top-nav .logo .cart-icon {
            font-size: 1.8rem;
            color: var(--primary);
        }

        .top-nav .logo .logo-text-primary {
            background: var(--secondary);
            color: #fff;
            padding: 2px 4px;
            border-radius: 3px 0 0 3px;
            font-weight: 700;
            text-transform: uppercase;
        }

        .top-nav .logo .logo-text-light {
            background: linear-gradient(135deg, var(--primary), var(--accent));
            color: #fff;
            padding: 2px 4px;
            border-radius: 0 3px 3px 0;
            font-weight: 700;
            text-transform: uppercase;
        }

        .top-nav .nav-links {
            list-style: none;
            display: flex;
            gap: 18px;
            margin: 0;
            padding: 0;
            align-items: center;
            position: relative; /* Keep in normal flow */
            max-width: none;
        }

        .top-nav .nav-links li {
            position: relative;
            list-style: none;
        }

        .top-nav .nav-links li a {
            color: #ffffff;
            font-family: var(--font-body);
            font-size: 0.9rem;
            font-weight: 500;
            position: relative;
            white-space: nowrap;
            transition: all 0.3s ease;
            text-decoration: none;
        }

        .top-nav .nav-links li a:hover {
            color: #ffffff;
            opacity: 0.88;
        }

        .top-nav .nav-links li a.nav-eco-link.nav-eco--active {
            color: #ffffff;
            font-weight: 600;
        }

        .top-nav .nav-links li a.nav-eco-link.nav-eco--active::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--secondary);
            border-radius: 1px;
        }

        .top-nav .nav-links li a.cart-link {
            position: relative;
        }

        .top-nav .nav-links li a.cart-link .cart-count {
            position: absolute;
            top: -8px;
            right: -8px;
            background: var(--primary);
            color: var(--secondary);
            border-radius: 50%;
            padding: 2px 6px;
            font-size: 0.75rem;
            font-weight: 600;
        }

        /* Wishlist Link & Badge */
        .top-nav .nav-links li a.wishlist-link {
            position: relative;
            color: var(--danger);
        }

        .top-nav .nav-links li a.wishlist-link:hover {
            color: var(--danger);
        }

        .top-nav .nav-links li a.wishlist-link .wishlist-count-badge {
            position: absolute;
            top: -8px;
            right: -8px;
            background: var(--danger);
            color: #fff;
            border-radius: 50%;
            padding: 2px 6px;
            font-size: 0.75rem;
            font-weight: 600;
            min-width: 18px;
            text-align: center;
        }

        /* WhatsApp floating action button — sits below UNIBot FAB */
        .whatsapp-fab {
            position: fixed;
            bottom: 22px;
            right: 18px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 14px;
            background: var(--success);
            color: #fff;
            border-radius: 999px;
            box-shadow: 0 8px 20px rgba(0,0,0,0.25);
            font-weight: 600;
            z-index: 11000;
            text-decoration: none;
        }

        .whatsapp-fab i {
            font-size: 1.1rem;
        }

        .whatsapp-fab:hover {
            background: var(--success);
            color: #fff;
            transform: translateY(-1px);
        }

        @media (max-width: 768px) {
            .whatsapp-fab {
                bottom: 82px; /* above mobile bottom nav, below UNIBot */
                right: 14px;
                padding: 11px 12px;
                gap: 6px;
            }

            .whatsapp-fab span {
                display: none; /* keep it compact on mobile */
            }
        }

        /* Search and Filter Bar - Fixed below top nav (UNIMART2040 dark tier) */
        .search-filter-bar {
            background: var(--secondary);
            padding: 10px 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            position: fixed;
            top: 50px; /* overridden by CSS vars block */
            left: 0;
            width: 100%;
            max-width: 100vw;
            z-index: 1001;
            height: 60px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
            box-sizing: border-box;
            border-bottom: 1px solid rgba(255, 255, 255, 0.12);
            overflow: visible;
        }

        /* Mobile Category Navigation - Fixed below search bar */
        .mobile-category-nav {
            background: var(--primary);
            position: fixed;
            top: 110px; /* overridden by CSS vars block */
            left: 0;
            width: 100%;
            max-width: 100vw;
            z-index: 1000;
            height: 35px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            box-sizing: border-box;
            overflow: hidden;
        }

        .search-filter-bar::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--primary);
            opacity: 1;
        }

        /* Filter Button */
        .filter-btn {
            display:none;
            /* position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            background: var(--primary);
            color: var(--secondary);
            border: none;
            border-radius: 8px;
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            transition: all 0.3s ease;
            z-index: 1003;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
            cursor: pointer; */
        }

        .filter-btn:hover {
            background: var(--accent);
            color: #fff;
            transform: translateY(-50%) scale(1.05);
        }

        .filter-btn:active {
            transform: translateY(-50%) scale(0.95);
        }

        /* Mobile Filter Sidebar Overlay */
        #filter-sidebar.mobile-overlay {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            height: 100vh !important;
            width: 280px !important;
            z-index: 9999 !important;
            background: white !important;
            box-shadow: 0 0 20px rgba(0,0,0,0.3) !important;
            transform: translateX(0) !important;
            overflow-y: auto !important;
        }

        /* Mobile filter overlay backdrop */
        .mobile-filter-backdrop {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0,0,0,0.5);
            z-index: 9998;
            display: none;
        }

        .mobile-filter-backdrop.active {
            display: block;
        }

        /* Search Container */
        .search-container {
            flex: 1;
            max-width: 640px;
            margin: 0 auto;
            padding: 0 12px;
            position: relative;
            z-index: 1002;
            overflow: visible;
        }

        .search-form {
            width: 100%;
        }

        .search-input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
            width: 100%;
        }

        .search-input-wrapper--ai .search-input,
        .search-input-wrapper--ai .search-input--ai {
            padding-left: 1.25rem;
            padding-right: 48px;
        }

        /* ── Search shell: pill input on dark navbar (system-wide) ── */
        .search-ai-shell {
            position: relative;
            width: 100%;
            border-radius: 999px;
            padding: 0;
            background: var(--gray-light);
            animation: none;
            box-shadow: none;
            transition: box-shadow 0.2s ease;
        }

        .search-ai-shell:focus-within {
            box-shadow: 0 0 0 2px rgba(246, 139, 30, 0.35);
        }

        .search-ai-orb,
        .search-ai-wave,
        .search-ai-scan,
        .search-ai-badge {
            display: none !important;
        }

        @keyframes searchAiBorderFlow {
            0% { background-position: 0% 50%; }
            100% { background-position: 300% 50%; }
        }

        .search-ai-inner {
            position: relative;
            display: flex;
            align-items: center;
            width: 100%;
            min-height: 42px;
            border-radius: 999px;
            background: var(--gray-light);
            overflow: hidden;
        }

        .search-ai-orb {
            position: absolute;
            left: 10px;
            z-index: 3;
            width: 28px;
            height: 28px;
            pointer-events: none;
        }

        .search-ai-orb-ring {
            position: absolute;
            inset: 0;
            border-radius: 50%;
            border: 2px solid transparent;
            border-top-color: var(--primary);
            border-right-color: rgba(246, 139, 30, 0.35);
            animation: searchAiOrbSpin 2.4s linear infinite;
        }

        @keyframes searchAiOrbSpin {
            to { transform: rotate(360deg); }
        }

        .search-ai-orb-core {
            position: absolute;
            inset: 5px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.55rem;
            box-shadow: 0 2px 8px rgba(246, 139, 30, 0.35);
            animation: searchAiOrbPulse 2s ease-in-out infinite;
        }

        @keyframes searchAiOrbPulse {
            0%, 100% { transform: scale(1); box-shadow: 0 2px 8px rgba(246, 139, 30, 0.35); }
            50% { transform: scale(1.06); box-shadow: 0 2px 12px rgba(246, 139, 30, 0.5); }
        }

        .search-ai-tag {
            display: none;
        }

        /* Smart-search wave indicator (replaces "AI" label) */
        .search-ai-wave {
            position: absolute;
            left: 42px;
            z-index: 3;
            display: flex;
            align-items: flex-end;
            gap: 2px;
            height: 14px;
            pointer-events: none;
        }

        .search-ai-wave-bar {
            display: block;
            width: 3px;
            border-radius: 2px;
            background: linear-gradient(180deg, var(--primary), var(--primary-dark));
            animation: searchAiWave 1.1s ease-in-out infinite;
        }

        .search-ai-wave-bar:nth-child(1) {
            height: 6px;
            animation-delay: 0s;
        }

        .search-ai-wave-bar:nth-child(2) {
            height: 12px;
            animation-delay: 0.15s;
        }

        .search-ai-wave-bar:nth-child(3) {
            height: 8px;
            animation-delay: 0.3s;
        }

        @keyframes searchAiWave {
            0%, 100% { transform: scaleY(0.45); opacity: 0.55; }
            50% { transform: scaleY(1); opacity: 1; }
        }

        .search-ai-shell:focus-within .search-ai-wave-bar,
        .search-ai-shell.is-ai-searching .search-ai-wave-bar {
            animation-duration: 0.55s;
        }

        .search-ai-scan {
            position: absolute;
            top: 0;
            bottom: 0;
            left: -40%;
            width: 35%;
            background: linear-gradient(90deg, transparent, rgba(246, 139, 30, 0.08), transparent);
            pointer-events: none;
            animation: searchAiScan 4s ease-in-out infinite;
            z-index: 1;
        }

        @keyframes searchAiScan {
            0%, 100% { left: -40%; opacity: 0; }
            15% { opacity: 1; }
            50% { left: 110%; opacity: 1; }
            65% { opacity: 0; }
        }

        .search-ai-badge {
            display: none;
        }

        .suggestion-ai-bar {
            background: linear-gradient(90deg, var(--primary-light) 0%, #fff 100%);
            border-bottom: 1px solid var(--primary-light);
            padding: 8px 16px;
            font-size: 0.82rem;
            color: var(--secondary);
        }

        .suggestion-ai-bar .ai-sparkle,
        .discover-title .ai-sparkle {
            margin-right: 4px;
        }

        .suggestion-ai-bar .ai-label {
            color: var(--gray);
        }

        .discover-section {
            padding: 10px 14px 12px;
            text-align: left;
        }

        .discover-title {
            font-size: 0.78rem;
            font-weight: 600;
            color: var(--secondary);
            margin-bottom: 8px;
        }

        .discover-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            justify-content: flex-start;
            max-height: 108px;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: rgba(246, 139, 30, 0.3) transparent;
        }

        .discover-chip {
            border: 1px solid rgba(246, 139, 30, 0.45);
            background: #fff;
            color: var(--secondary);
            border-radius: 16px;
            padding: 4px 10px;
            font-size: 0.72rem;
            cursor: pointer;
            transition: all 0.15s ease;
            white-space: nowrap;
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .discover-chip:hover {
            background: var(--primary);
            color: #fff;
        }

        .suggestion-loading .fa-sparkles {
            color: var(--primary);
            margin-right: 6px;
        }

        /* ── AI Search Loader (unique discovery animation) ── */
        .search-ai-shell.is-ai-searching {
            animation: searchAiBorderFlow 1.2s linear infinite, searchAiShellPulse 1.6s ease-in-out infinite;
        }

        .search-ai-shell.is-ai-searching .search-ai-scan {
            animation: searchAiScan 1.4s ease-in-out infinite;
        }

        .search-ai-shell.is-ai-searching .search-ai-orb-core {
            animation: searchAiOrbPulse 0.8s ease-in-out infinite;
        }

        @keyframes searchAiShellPulse {
            0%, 100% { box-shadow: 0 2px 14px rgba(246, 139, 30, 0.2); }
            50% { box-shadow: 0 4px 22px rgba(246, 139, 30, 0.38); }
        }

        .search-input-wrapper--ai.is-ai-searching .search-input,
        .search-input-wrapper--ai.is-ai-searching .search-input--ai {
            border-color: transparent;
        }

        .search-input-wrapper--ai.is-ai-searching .search-ai-badge {
            animation: aiBadgeGlow 1.2s ease-in-out infinite;
        }

        @keyframes aiInputPulse {
            0%, 100% { box-shadow: 0 0 0 3px rgba(246, 139, 30, 0.15); }
            50% { box-shadow: 0 0 0 6px rgba(246, 139, 30, 0.28); }
        }

        @keyframes aiBadgeGlow {
            0%, 100% { opacity: 0.7; transform: scale(1); }
            50% { opacity: 1; transform: scale(1.15); }
        }

        #suggestionPopup.is-loading .suggestion-header {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--primary) 100%);
            background-size: 200% 200%;
            animation: aiHeaderShimmer 2.5s ease infinite;
        }

        @keyframes aiHeaderShimmer {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .ai-search-loader {
            padding: 20px 16px 18px;
            text-align: center;
            min-height: 140px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .ai-loader-scene {
            position: relative;
            width: 72px;
            height: 72px;
            margin-bottom: 12px;
        }

        .ai-loader-orb {
            position: absolute;
            inset: 20px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary), var(--primary), var(--primary-dark));
            background-size: 200% 200%;
            animation: aiOrbShift 2s ease infinite;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0 24px rgba(246, 139, 30, 0.45);
            z-index: 3;
        }

        .ai-loader-orb-inner {
            color: #fff;
            font-size: 1.25rem;
            animation: aiOrbSpin 3s linear infinite;
        }

        @keyframes aiOrbShift {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

        @keyframes aiOrbSpin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .ai-loader-ring {
            position: absolute;
            inset: 0;
            border-radius: 50%;
            border: 2px solid transparent;
        }

        .ai-loader-ring--outer {
            border-top-color: rgba(246, 139, 30, 0.7);
            border-right-color: rgba(246, 139, 30, 0.2);
            animation: aiRingSpin 1.8s linear infinite;
        }

        .ai-loader-ring--mid {
            inset: 10px;
            border-bottom-color: rgba(5, 4, 68, 0.5);
            border-left-color: rgba(5, 4, 68, 0.15);
            animation: aiRingSpin 2.4s linear infinite reverse;
        }

        @keyframes aiRingSpin {
            to { transform: rotate(360deg); }
        }

        .ai-loader-scan {
            position: absolute;
            inset: 14px;
            border-radius: 50%;
            overflow: hidden;
            z-index: 2;
            opacity: 0.35;
        }

        .ai-loader-scan::after {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            height: 40%;
            background: linear-gradient(180deg, transparent, rgba(246, 139, 30, 0.6), transparent);
            animation: aiScanSweep 1.6s ease-in-out infinite;
        }

        @keyframes aiScanSweep {
            0% { top: -40%; }
            100% { top: 100%; }
        }

        .ai-loader-orbit {
            position: absolute;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--primary);
            top: 50%;
            left: 50%;
            margin: -4px 0 0 -4px;
            box-shadow: 0 0 8px rgba(246, 139, 30, 0.8);
        }

        .ai-loader-orbit--1 {
            animation: aiOrbit1 2s linear infinite;
        }

        .ai-loader-orbit--2 {
            width: 6px;
            height: 6px;
            margin: -3px 0 0 -3px;
            background: var(--secondary);
            animation: aiOrbit2 2.8s linear infinite;
        }

        .ai-loader-orbit--3 {
            width: 5px;
            height: 5px;
            margin: -2.5px 0 0 -2.5px;
            background: #fff;
            box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
            animation: aiOrbit3 3.5s linear infinite;
        }

        @keyframes aiOrbit1 {
            from { transform: rotate(0deg) translateX(46px) rotate(0deg); }
            to { transform: rotate(360deg) translateX(46px) rotate(-360deg); }
        }

        @keyframes aiOrbit2 {
            from { transform: rotate(120deg) translateX(38px) rotate(-120deg); }
            to { transform: rotate(480deg) translateX(38px) rotate(-480deg); }
        }

        @keyframes aiOrbit3 {
            from { transform: rotate(240deg) translateX(32px) rotate(-240deg); }
            to { transform: rotate(600deg) translateX(32px) rotate(-600deg); }
        }

        .ai-loader-label {
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--primary);
            margin: 0 0 6px;
        }

        .ai-loader-query {
            font-size: 1rem;
            font-weight: 600;
            color: var(--secondary);
            margin: 0 0 10px;
            max-width: 90%;
            word-break: break-word;
        }

        .ai-loader-query-mark {
            color: var(--primary);
            font-weight: 400;
        }

        .ai-loader-status {
            font-size: 0.88rem;
            color: var(--gray);
            margin: 0 0 12px;
            min-height: 1.4em;
            transition: opacity 0.22s ease, transform 0.22s ease;
        }

        .ai-loader-status.is-changing {
            opacity: 0;
            transform: translateY(6px);
        }

        .ai-loader-dots {
            display: flex;
            gap: 6px;
            margin-bottom: 14px;
        }

        .ai-loader-dots span {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--primary);
            animation: aiDotBounce 1.2s ease-in-out infinite;
        }

        .ai-loader-dots span:nth-child(2) { animation-delay: 0.15s; }
        .ai-loader-dots span:nth-child(3) { animation-delay: 0.3s; }

        @keyframes aiDotBounce {
            0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
            40% { transform: scale(1); opacity: 1; }
        }

        .ai-loader-track {
            width: min(220px, 70%);
            height: 3px;
            background: var(--gray-light);
            border-radius: 3px;
            overflow: hidden;
        }

        .ai-loader-track-fill {
            height: 100%;
            width: 35%;
            border-radius: 3px;
            background: linear-gradient(90deg, var(--secondary), var(--primary), var(--secondary));
            background-size: 200% 100%;
            animation: aiTrackSlide 1.4s ease-in-out infinite;
        }

        @keyframes aiTrackSlide {
            0% { transform: translateX(-100%); background-position: 0% 50%; }
            100% { transform: translateX(320%); background-position: 100% 50%; }
        }

        .search-input {
            width: 100%;
            padding: 8px 40px 8px 12px;
            border: 2px solid rgba(255,255,255,0.3);
            border-radius: 20px;
            background: rgba(255,255,255,0.9);
            color: var(--secondary);
            font-size: 0.9rem;
            transition: all 0.3s ease;
            outline: none;
            box-sizing: border-box;
            min-width: 200px;
        }

        .search-input--ai {
            position: relative;
            z-index: 2;
            border: none;
            border-radius: 0;
            background: transparent;
            padding-top: 10px;
            padding-bottom: 10px;
            min-height: 42px;
        }

        .search-input--ai:focus {
            border: none;
            box-shadow: none;
            background: transparent;
        }

        .search-input:focus {
            border-color: var(--primary);
            background: #fff;
            box-shadow: 0 0 0 3px rgba(246, 139, 30, 0.2);
        }

        .search-input::placeholder {
            color: var(--gray);
        }

        .search-input--ai::placeholder {
            color: var(--gray);
        }

        .search-button {
            position: absolute;
            right: 4px;
            top: 50%;
            transform: translateY(-50%);
            background: var(--primary);
            color: var(--secondary);
            border: none;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .search-button--ai {
            position: absolute;
            right: 4px;
            top: 50%;
            transform: translateY(-50%);
            z-index: 4;
            width: 36px;
            height: 36px;
            background: var(--primary);
            color: var(--secondary);
            box-shadow: none;
        }

        .search-button--ai:hover {
            background: var(--primary);
            color: var(--secondary);
            transform: translateY(-50%) scale(1.04);
        }

        .search-ai-shell:focus-within .search-button--ai {
            box-shadow: none;
        }

        .search-button:hover {
            background: var(--accent);
            color: #fff;
            transform: translateY(-50%) scale(1.05);
        }

        .announcement-content {
            flex: 1;
            display: flex;
            align-items: center;
            width: 100%;
            position: relative;
            margin-top: 4px;
        }

        .announcement-slider {
            display: flex;
            animation: slide 20s infinite linear;
            white-space: nowrap;
        }

        .announcement-item {
            display: flex;
            align-items: center;
            padding: 0 50px;
            font-size: 14px;
            font-weight: 500;
            color: #fff;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
        }

    
.vendor-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.5s ease;
}

.vendor-popup-content {
    background: var(--light);
    color: var(--secondary);
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    animation: slideUp 0.5s ease;
}

.vendor-popup-content h2 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.vendor-popup-content .highlight {
    color: var(--primary);
}

.vendor-popup-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--gray);
}

.vendor-popup-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: white;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
}

.vendor-popup-btn:hover {
    background: var(--primary);
    color: var(--secondary);
}

.vendor-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary);
    transition: var(--transition);
}

.vendor-popup-close:hover {
    color: var(--accent);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}


        @keyframes slide {
            0% { transform: translateX(100%); }
            100% { transform: translateX(-100%); }
        }

        /* Hamburger Menu */
        .hamburger {
            display: none;
            font-size: 1.7rem;
            color: black;
            background: transparent;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            padding: 5px;
            transition: var(--transition);
        }

        .hamburger.active {
            color: var(--accent);
            background: rgba(255, 255, 255, 0.3);
        }

        .hamburger.active .fa-bars {
            display: none;
        }

        .hamburger.active .fa-times {
            display: inline-block;
        }

        .hamburger:not(.active) .fa-times {
            display: none;
        }

        /* Mobile Menu */
        .mobile-menu {
            position: fixed;
            top: 108px;
            right: -100%;
            left: auto;
            width: 100%;
            max-width: 360px;
            height: calc(100vh - 108px);
            background: linear-gradient(180deg, var(--secondary) 0%, #111827 50%, var(--secondary) 100%);
            color: var(--unimart-bg-muted);
            z-index: 9999;
            padding: 20px 18px;
            transition: right 0.3s ease;
            box-shadow: -2px 0 18px rgba(0, 0, 0, 0.45);
            border-left: 1px solid rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(6px);
            display: flex;
            flex-direction: column;
            gap: 1rem;
            overflow: hidden;
        }

        /* Force text/icons to stay visible inside mobile menu */
        .mobile-menu, .mobile-menu * {
            color: #f8f9fa !important;
        }

        .mobile-menu.active {
            right: 0;
        }

        .mobile-menu-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 1.05rem;
            font-weight: 600;
            color: #f8f9fa;
            padding-bottom: 0.25rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .mobile-menu-close {
            border: none;
            background: rgba(255, 255, 255, 0.08);
            color: #f8f9fa;
            width: 34px;
            height: 34px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.2s ease, transform 0.2s ease;
        }

        .mobile-menu-close:hover,
        .mobile-menu-close:focus {
            background: rgba(246, 139, 30, 0.25);
            color: #fff;
            transform: scale(1.05);
        }

        .mobile-menu .nav-links {
            display: flex !important;
            flex-direction: column;
            gap: 10px;
            list-style: none;
            margin: 0;
            padding: 0;
            overflow-y: auto;
            flex: 1 1 auto;
            padding-right: 4px;
        }

        .mobile-menu .nav-links li {
            width: 100%;
        }

        .mobile-menu .nav-links li a {
            color: #f8f9fa !important;
            font-size: 1rem;
            padding: 12px 14px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.08);
            font-weight: 600;
            letter-spacing: 0.01em;
        }

        .mobile-menu .nav-links li a.nav-eco--active {
            color: var(--secondary);
            font-weight: 600;
        }

        .mobile-menu .nav-links li a:hover {
            background: rgba(246, 139, 30, 0.2);
            color: #fff;
        }

        /* Mobile Dropdown */
        .mobile-menu .dropdown .dropbtn {
            color: #f8f9fa;
            font-size: 1rem;
            padding: 12px 14px;
            background: rgba(255, 255, 255, 0.08);
            border: none;
            width: 100%;
            text-align: left;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-radius: 10px;
        }

        .mobile-menu .dropdown-content {
            display: none;
            position: static;
            background: rgba(15, 23, 42, 0.9);
            margin: 6px 0;
            border-radius: 8px;
            padding: 6px 4px;
        }

        .mobile-menu .dropdown.active .dropdown-content {
            display: block;
        }

        .mobile-menu .dropdown-content a {
            color: #f8f9fa;
            padding: 10px 12px;
            display: block;
            border-radius: 8px;
        }

        .mobile-menu .dropdown-content a:hover {
            background: rgba(246, 139, 30, 0.25);
        }

        /* Overlay */
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 9998;
            display: none;
            transition: background 0.3s ease;
        }

        .overlay.active {
            display: block;
        }

        /* Dropdown (Desktop) */
        .ua-dropdown {
            position: relative;
            display: inline-block;
        }

        .ua-dropdown .dropbtn {
            background: var(--primary);
            color: var(--secondary);
            padding: 6px 12px;
            border: none;
            font-size: 1rem;
            border-radius: 4px;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .ua-dropdown .dropbtn:hover {
            background: var(--accent);
            color: #fff;
        }

        .ua-dropdown .dropdown-content {
            display: none;
            position: absolute;
            background: var(--primary);
            min-width: 160px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            z-index: 1003;
            border-radius: 4px;
            margin-top: 8px;
            right: 0;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.2s ease, visibility 0.2s ease;
        }

        .ua-dropdown .dropdown-content a {
            color: var(--secondary);
            padding: 8px 12px;
            font-size: 0.9rem;
            display: block;
            transition: var(--transition);
        }

        .ua-dropdown .dropdown-content a:hover {
            background: var(--accent);
            color: #fff;
        }

        .ua-dropdown:hover .dropdown-content {
            display: block;
            opacity: 1;
            visibility: visible;
        }

        .ua-dropdown.active .dropdown-content {
            display: block;
            opacity: 1;
            visibility: visible;
        }

        .ua-dropdown .dropbtn:focus + .dropdown-content,
        .ua-dropdown .dropdown-content:hover {
            display: block;
            opacity: 1;
            visibility: visible;
        }

        /* Suggestion Popup — compact, anchored to search bar */
        .suggestion-popup {
            position: absolute;
            top: calc(100% + 6px);
            left: 0;
            right: 0;
            transform: none;
            background: #fff;
            border-radius: 14px;
            box-shadow: 0 8px 28px rgba(44, 62, 80, 0.12);
            z-index: 1005;
            display: none;
            width: 100%;
            max-width: 100%;
            max-height: 280px;
            overflow: hidden;
            animation: suggestionDropIn 0.22s ease;
            border: 1px solid rgba(246, 139, 30, 0.12);
        }

        .suggestion-popup.is-results {
            max-height: min(420px, 55vh);
            overflow-y: auto;
        }

        .suggestion-popup.is-loading {
            max-height: 240px;
        }

        @keyframes suggestionDropIn {
            from {
                opacity: 0;
                transform: translateY(-8px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .suggestion-header {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 55%, var(--primary-dark) 100%);
            background-size: 200% 200%;
            color: #fff;
            padding: 8px 12px;
            border-radius: 14px 14px 0 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 10;
        }

        #suggestionPopup.is-loading .suggestion-header {
            animation: aiHeaderShimmer 2.5s ease infinite;
        }

        .suggestion-header h5 {
            margin: 0;
            font-size: 0.82rem;
            font-weight: 600;
        }

        .suggestion-header .close-btn {
            background: rgba(255,255,255,0.2);
            border: none;
            color: #fff;
            width: 26px;
            height: 26px;
            border-radius: 50%;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .suggestion-header .close-btn:hover {
            background: rgba(255,255,255,0.3);
            transform: rotate(90deg);
        }

        .suggestion-grid {
            display: block;
            padding: 0;
        }

        .suggestion-popup.is-results .suggestion-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 8px;
            padding: 10px;
        }

        /* Results: compact product tiles in rows */
        .suggestion-popup.is-results .suggestion-item-enhanced {
            flex-direction: column;
            align-items: stretch;
            padding: 8px 6px 10px;
            gap: 6px;
            border-radius: 10px;
            border-color: rgba(246, 139, 30, 0.15);
            min-width: 0;
        }

        .suggestion-popup.is-results .suggestion-item-enhanced:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(246, 139, 30, 0.12);
        }

        .suggestion-popup.is-results .suggestion-image {
            width: 100%;
        }

        .suggestion-popup.is-results .suggestion-image img {
            width: 100%;
            height: 68px;
            object-fit: cover;
            border-radius: 8px;
            border: none;
            background: #f5f6f8;
        }

        .suggestion-popup.is-results .suggestion-details {
            flex-direction: column;
            align-items: stretch;
            gap: 4px;
            width: 100%;
        }

        .suggestion-popup.is-results .suggestion-details > div:first-child {
            width: 100%;
        }

        .suggestion-popup.is-results .suggestion-title {
            font-size: 0.68rem;
            line-height: 1.25;
            margin-bottom: 3px;
            text-align: left;
            -webkit-line-clamp: 2;
        }

        .suggestion-popup.is-results .suggestion-rating {
            display: none;
        }

        .suggestion-popup.is-results .campus-badge {
            display: block;
            font-size: 0.52rem;
            padding: 1px 5px;
            margin-top: 0;
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            text-align: left;
        }

        .suggestion-popup.is-results .suggestion-price {
            font-size: 0.72rem;
            font-weight: 700;
            color: var(--primary);
            margin-top: 2px;
            text-align: left;
        }

        .suggestion-popup.is-results .suggestion-ai-bar {
            padding: 6px 10px;
            font-size: 0.75rem;
        }

        @media (max-width: 576px) {
            .suggestion-item-enhanced {
                padding: 10px;
                gap: 8px;
                flex-direction: column;
                border-radius: 8px;
                background: #fff;
            }
            
            .suggestion-image {
                width: 100%;
                text-align: center;
                position: relative;
            }
            
            .suggestion-image img {
                width: 100%;
                height: 120px;
                object-fit: cover;
                border-radius: 6px;
            }
            
            .suggestion-details {
                text-align: center;
                gap: 6px;
            }
            
            .suggestion-title {
                font-size: 0.85rem;
                line-clamp: 2;
                -webkit-line-clamp: 2;
                margin-bottom: 6px;
                line-height: 1.3;
                font-weight: 600;
                color: var(--secondary);
            }
            
            /* Hide extra meta information on mobile */
            .suggestion-meta,
            .campus-badge {
                display: none;
            }
            
            .suggestion-rating {
                display: flex;
                justify-content: center;
                margin: 4px 0;
            }
            
            .suggestion-rating i {
                font-size: 0.7rem;
            }
            
            .rating-number {
                font-size: 0.65rem;
                margin-left: 3px;
            }
            
            .suggestion-price {
                font-size: 1.1rem;
                margin-top: 4px;
                font-weight: 700;
                color: var(--success);
            }
            
            .stock-badge {
                font-size: 0.6rem;
                padding: 3px 6px;
                position: absolute;
                top: 6px;
                right: 6px;
                border-radius: 4px;
                background: rgba(40, 167, 69, 0.95);
                color: white;
                font-weight: 600;
            }
            
            .stock-badge.out-of-stock {
                background: rgba(220, 53, 69, 0.95);
            }
            
            .suggestion-header {
                padding: 14px 16px;
            }
            
            .suggestion-header h5 {
                font-size: 1.1rem;
                font-weight: 600;
            }
            
            .suggestion-footer {
                padding: 12px 16px;
                flex-direction: column;
                gap: 10px;
            }
            
            .suggestion-footer small {
                font-size: 0.85rem;
            }
            
            .suggestion-footer .btn {
                padding: 8px 16px;
                font-size: 0.85rem;
                width: 100%;
            }
            
            .suggestion-popup {
                max-height: 260px;
            }

            .suggestion-popup.is-results {
                max-height: min(400px, 52vh);
            }

            .suggestion-popup.is-results .suggestion-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 6px;
                padding: 8px;
            }

            .suggestion-popup.is-results .suggestion-image img {
                height: 64px;
            }
        }
        
        /* Enhanced Suggestion Item - Compact Card Design */
        .suggestion-item-enhanced {
            display: flex;
            gap: 8px;
            padding: 8px;
            border: 1px solid var(--gray-light);
            border-radius: 8px;
            text-decoration: none;
            color: inherit;
            transition: all 0.2s ease;
            background: #fff;
            height: 100%;
        }
        
        .suggestion-item-enhanced:hover {
            border-color: var(--primary);
            box-shadow: 0 4px 16px rgba(246, 139, 30, 0.15);
            transform: translateY(-2px);
        }
        
        .suggestion-image {
            position: relative;
            flex-shrink: 0;
        }
        
        .suggestion-image img {
            width: 50px;
            height: 50px;
            object-fit: cover;
            border-radius: 4px;
            border: 1px solid var(--gray-light);
        }
        
        .stock-badge {
            position: absolute;
            bottom: -3px;
            right: -3px;
            font-size: 0.5rem;
            padding: 1px 3px;
            border-radius: 4px;
            font-weight: 600;
            white-space: nowrap;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }
        
        .stock-badge.in-stock {
            background: var(--success);
            color: white;
        }
        
        .stock-badge.out-of-stock {
            background: var(--danger);
            color: white;
        }
        
        .suggestion-details {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        
        .suggestion-title {
            font-size: 0.75rem;
            font-weight: 600;
            margin: 0 0 2px 0;
            color: var(--secondary);
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            line-clamp: 2;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            line-height: 1.2;
        }
        
        .suggestion-meta {
            display: flex;
            flex-direction: column;
            gap: 1px;
            margin-bottom: 2px;
        }
        
        .suggestion-meta span {
            font-size: 0.6rem;
            color: var(--gray);
            display: flex;
            align-items: center;
            gap: 2px;
        }
        
        .suggestion-meta i {
            font-size: 0.55rem;
            width: 10px;
        }
        
        .campus-badge {
            background: var(--primary-light);
            color: var(--info);
            padding: 1px 4px;
            border-radius: 4px;
            font-weight: 500;
            font-size: 0.55rem;
            display: inline-block;
            margin-top: 1px;
        }
        
        .suggestion-rating {
            margin-bottom: 2px;
        }
        
        .suggestion-rating i {
            font-size: 0.55rem;
        }
        
        .rating-number {
            font-size: 0.6rem;
            color: var(--gray);
            margin-left: 1px;
        }
        
        .suggestion-price {
            font-size: 0.8rem;
            font-weight: 700;
            color: var(--success);
            margin: 0;
            margin-top: auto;
        }
        
        .suggestion-footer {
            padding: 8px 12px;
            background: linear-gradient(to right, #f8f9fa, #ffffff);
            border-top: 2px solid var(--gray-light);
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            bottom: 0;
            width: 100%;
            border-radius: 0 0 12px 12px;
        }
        
        .suggestion-footer small {
            font-size: 0.8rem;
        }
        
        .suggestion-footer .btn {
            padding: 5px 14px;
            font-size: 0.8rem;
            font-weight: 600;
        }
        
        @media (max-width: 576px) {
            .suggestion-footer {
                flex-direction: column;
                gap: 8px;
                text-align: center;
            }
        }
        
        .suggestion-loading,
        .suggestion-no-results,
        .suggestion-error {
            padding: 40px 20px;
            text-align: center;
            color: var(--gray);
        }
        
        .suggestion-loading i {
            font-size: 2rem;
            color: var(--primary);
        }
        
        .suggestion-no-results i {
            color: var(--gray);
        }
        
        .suggestion-error i {
            font-size: 2rem;
        }

        /* Old suggestion item style - keep for backward compatibility */
        .suggestion-item {
            text-align: center;
            padding: 10px;
            border: 1px solid var(--primary);
            border-radius: 4px;
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .suggestion-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .suggestion-item img {
            width: 80px;
            height: 80px;
            object-fit: cover;
            border-radius: 4px;
            margin-bottom: 5px;
            background-color: #f8f9fa;
            border: 1px solid var(--gray-light);
        }

        .suggestion-item p {
            margin: 0;
            font-size: 0.9rem;
            color: var(--secondary);
        }

        /* Content Wrapper */
        .content-wrapper {
            padding: 20px 16px;
            margin: 0 auto;
            width: min(1200px, 100%);
            min-height: calc(100vh - 200px);
            position: relative;
        }

        /* Shop Cards */
        .shop-card {
            position: relative;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
        }

        .shop-card:hover {
            transform: translateY(-5px);
        }

        .shop-card img {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }

        .shop-card .overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.4);
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            color: #fff;
            text-align: center;
            transition: background 0.3s ease;
        }

        .shop-card:hover .overlay {
            background: rgba(0, 0, 0, 0.6);
        }

        .shop-card .overlay h3 {
            font-size: 1.5rem;
            margin-bottom: 10px;
        }

        .shop-card .overlay .btn {
            background: var(--primary);
            color: var(--secondary);
            padding: 8px 16px;
            border-radius: 4px;
            font-weight: 600;
            transition: var(--transition);
        }

        .shop-card .overlay .btn:hover {
            background: var(--accent);
            color: #fff;
        }

        /* Bottom Navbar */
        .bottom-nav {
            height: 70px;
            background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
            border-top: 2px solid var(--primary);
            backdrop-filter: blur(10px);
            z-index: 1000;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            width: 100%;
            max-width: 100vw; /* Prevent viewport overflow */
            box-sizing: border-box; /* Include borders in width calculation */
        }

        .bottom-nav::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--primary), transparent);
            opacity: 0.6;
        }

        .bottom-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            padding: 8px 6px;
            border-radius: 12px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            min-width: 48px;
            color: var(--gray);
            overflow: hidden;
        }

        .bottom-nav-item:hover {
            color: var(--primary);
            background: rgba(246, 139, 30, 0.1);
            transform: translateY(-3px);
            text-decoration: none;
        }

        .bottom-nav-item.active {
            color: var(--primary);
            background: rgba(246, 139, 30, 0.15);
        }

        .bottom-nav-item i {
            font-size: 1.4rem;
            margin-bottom: 2px;
            transition: all 0.3s ease;
            position: relative;
            z-index: 2;
        }

        .bottom-nav-item:hover i {
            transform: scale(1.1);
        }

        .bottom-nav-item .nav-label {
            font-size: 0.7rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            opacity: 0.8;
            transition: opacity 0.3s ease;
            position: relative;
            z-index: 2;
        }

        .bottom-nav-item:hover .nav-label {
            opacity: 1;
        }

        /* Role-specific styling with enhanced colors */
        .bottom-nav-item.superuser {
            color: var(--danger);
        }

        .bottom-nav-item.superuser:hover {
            color: #fff;
            background: linear-gradient(135deg, var(--danger), var(--danger));
            box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
        }

        .bottom-nav-item.vendor {
            color: var(--primary);
        }

        .bottom-nav-item.vendor:hover {
            color: #fff;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
        }

        .bottom-nav-item.buyer {
            color: var(--info);
        }

        .bottom-nav-item.buyer:hover {
            color: #fff;
            background: linear-gradient(135deg, var(--info), var(--info));
            box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
        }

        .bottom-nav-item.home {
            color: var(--success);
        }

        .bottom-nav-item.home:hover {
            color: #fff;
            background: linear-gradient(135deg, var(--success), var(--success));
            box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
        }

        .bottom-nav-item.logout {
            color: var(--primary);
        }

        .bottom-nav-item.logout:hover {
            color: #fff;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
        }

        .bottom-nav-item.login {
            color: var(--secondary);
        }

        .bottom-nav-item.login:hover {
            color: #fff;
            background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
            box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
        }

        .bottom-nav-item.register {
            color: var(--success);
        }

        .bottom-nav-item.register:hover {
            color: #fff;
            background: linear-gradient(135deg, var(--success), var(--success));
            box-shadow: 0 4px 15px rgba(25, 135, 84, 0.3);
        }

        /* Active state indicator */
        .bottom-nav-item.active::before {
            content: '';
            position: absolute;
            top: -2px;
            left: 50%;
            transform: translateX(-50%);
            width: 4px;
            height: 4px;
            background: var(--primary);
            border-radius: 50%;
            animation: pulse 2s infinite;
        }

        /* Notification badge */
        .bottom-nav-item .badge {
            position: absolute;
            top: 2px;
            right: 8px;
            background: var(--danger);
            color: white;
            border-radius: 50%;
            width: 18px;
            height: 18px;
            font-size: 0.6rem;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            z-index: 3;
        }

        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(246, 139, 30, 0.7);
            }
            70% {
                box-shadow: 0 0 0 10px rgba(246, 139, 30, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(246, 139, 30, 0);
            }
        }

        /* Responsive adjustments */
        @media (max-width: 480px) {
            .bottom-nav {
                height: 65px;
            }
            
            .bottom-nav-item {
                padding: 6px 4px;
                min-width: 44px;
            }
            
            .bottom-nav-item i {
                font-size: 1.3rem;
            }
            
            .bottom-nav-item .nav-label {
                font-size: 0.65rem;
            }
        }

        @media (max-width: 360px) {
            .bottom-nav {
                height: 60px;
            }
            
            .bottom-nav-item {
                padding: 6px 3px;
                min-width: 40px;
            }
            
            .bottom-nav-item i {
                font-size: 1.2rem;
                margin-bottom: 1px;
            }
            
            .bottom-nav-item .nav-label {
                font-size: 0.55rem;
                letter-spacing: 0.3px;
                font-weight: 600;
            }
        }

        /* Footer */
        .footer {
            background: var(--charcoal);
            color: rgba(255, 255, 255, 0.62);
            padding: 2rem 0 1.1rem;
            position: relative;
            z-index: 99;
        }
        .footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--primary) 0%, var(--primary) 50%, var(--primary) 100%);
        }
        .footer__shell {
            max-width: 1080px;
        }
        .footer__main {
            display: grid;
            grid-template-columns: 1.35fr 1fr 1fr 1.15fr;
            gap: 1.25rem 2rem;
            margin-bottom: 1.15rem;
        }
        .footer__logo {
            font-family: var(--font-display);
            font-size: 0.95rem;
            font-weight: 800;
            letter-spacing: -0.02em;
            color: #fff;
            margin: 0 0 0.35rem;
        }
        .footer__tagline {
            font-size: 0.82rem;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.78);
            margin: 0 0 0.25rem;
            line-height: 1.4;
        }
        .footer__sub {
            font-size: 0.76rem;
            color: rgba(255, 255, 255, 0.45);
            margin: 0;
            line-height: 1.45;
        }
        .footer__heading {
            font-size: 0.66rem;
            font-weight: 700;
            letter-spacing: 0.09em;
            text-transform: uppercase;
            color: var(--primary);
            margin: 0 0 0.6rem;
        }
        .footer__links {
            list-style: none;
            margin: 0;
            padding: 0;
        }
        .footer__links li {
            margin-bottom: 0.35rem;
        }
        .footer__links li:last-child {
            margin-bottom: 0;
        }
        .footer .footer-link {
            color: rgba(255, 255, 255, 0.55);
            font-size: 0.8rem;
            text-decoration: none;
            transition: color 0.2s ease;
            line-height: 1.45;
        }
        .footer .footer-link:hover {
            color: #fff;
            text-decoration: none;
        }
        .footer .footer-link--static {
            cursor: default;
        }
        .footer .footer-link--static:hover {
            color: rgba(255, 255, 255, 0.55);
        }
        .footer__bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            padding-top: 0.95rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            flex-wrap: wrap;
        }
        .footer__social {
            display: flex;
            align-items: center;
            gap: 0.85rem;
        }
        .footer__social a {
            color: rgba(255, 255, 255, 0.5);
            font-size: 1rem;
            transition: color 0.2s ease;
            text-decoration: none;
        }
        .footer__social a:hover {
            color: var(--primary);
        }
        .footer__legal {
            display: flex;
            align-items: center;
            gap: 0.85rem;
            flex-wrap: wrap;
            font-size: 0.74rem;
            color: rgba(255, 255, 255, 0.42);
        }
        .footer__privacy {
            color: var(--primary);
            font-weight: 600;
            text-decoration: none;
            transition: color 0.2s ease;
        }
        .footer__privacy:hover {
            color: #fff;
            text-decoration: none;
        }
        .footer__copy {
            color: rgba(255, 255, 255, 0.42);
        }

        /* Clean Partners Section Styles */
        .partners-section {
            padding: 10px 0;
            background: #ffffff;
            position: relative;
        }

        .partners-header {
            text-align: center;
            margin-bottom: 5px;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        .partners-title {
            font-size: 2rem;
            font-weight: 600;
            color: var(--unimart-text);
            margin-bottom: 5px;
            line-height: 1.2;
        }

        .partners-subtitle {
            font-size: 1rem;
            color: #666;
            margin-bottom: 5px;
            line-height: 1.6;
        }

        .partners-contact {
            font-size: 0.9rem;
            color: #666;
            margin: 0;
        }

        .contact-link {
            color: var(--primary);
            text-decoration: none;
            font-weight: 500;
        }

        .contact-link:hover {
            text-decoration: underline;
        }

        /* Partners Grid */
        .partners-grid-wrapper {
            overflow: hidden;
            margin: 0 -20px;
            width: 100%; /* Ensure wrapper doesn't exceed container */
            max-width: 100%; /* Critical fix for mobile overflow */
            position: relative;
        }

        .partners-grid {
            display: flex;
            gap: 15px;
            animation: scroll-partners 30s linear infinite;
            width: fit-content;
            max-width: none; /* Allow content to extend for animation */
        }

        .partner-item {
            flex: 0 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            min-width: 90px;
            opacity: 0.8;
            transition: all 0.3s ease;
            padding: 8px;
        }

        .partner-item:hover {
            opacity: 1;
            transform: translateY(-3px);
        }

        .partner-logo-container {
            width: 60px;
            height: 60px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 6px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
            transition: all 0.3s ease;
            overflow: hidden;
            background: #ffffff;
        }

        .partner-item:hover .partner-logo-container {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
            transform: translateY(-1px);
        }

        .partner-logo {
            width: 100%;
            height: 100%;
            object-fit: contain;
            object-position: center;
            filter: grayscale(5%);
            transition: all 0.3s ease;
            border-radius: 6px;
            padding: 4px;
        }

        .partner-item:hover .partner-logo {
            filter: grayscale(0%);
            transform: scale(1.05);
        }

        .logo-fallback {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
            font-weight: 600;
            font-size: 16px;
            text-transform: uppercase;
            border-radius: 6px;
        }

        .logo-error::after {
            content: attr(data-name);
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
            font-weight: 600;
            font-size: 20px;
            text-transform: uppercase;
            border-radius: 12px;
        }

        .partner-name {
            font-size: 0.75rem;
            font-weight: 500;
            color: var(--gray);
            text-align: center;
            line-height: 1.3;
            margin-top: 4px;
            max-width: 85px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        /* Placeholder styles */
        .partner-placeholder .partner-logo-container {
            background: var(--unimart-bg-muted);
        }

        .placeholder-logo {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #999;
            font-size: 20px;
        }

        /* Call to Action */
        .partners-cta {
            text-align: center;
            margin-top: 40px;
        }

        .cta-text {
            font-size: 1rem;
            color: #666;
            margin: 0;
        }

        .cta-link {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            padding: 8px 16px;
            border: 2px solid var(--primary);
            border-radius: 25px;
            margin-left: 10px;
            transition: all 0.3s ease;
            display: inline-block;
        }

        .cta-link:hover {
            background: var(--primary);
            color: white;
            text-decoration: none;
            transform: translateY(-2px);
        }

        /* Animation */
        @keyframes scroll-partners {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(-50%);
            }
        }

        .partners-grid:hover {
            animation-play-state: paused;
        }

        /* Navigation Arrows */
        .partners-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.9);
            border: 2px solid var(--primary);
            border-radius: 50%;
            width: 45px;
            height: 45px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            opacity: 0.7;
        }

        .partners-arrow:hover {
            background: var(--primary);
            color: white;
            transform: translateY(-50%) scale(1.1);
            box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
            opacity: 1;
        }

        .partners-arrow:active {
            transform: translateY(-50%) scale(0.95);
        }

        .partners-arrow i {
            font-size: 16px;
            color: var(--primary);
            transition: color 0.3s ease;
        }

        .partners-arrow:hover i {
            color: white;
        }

        .partners-arrow-left {
            left: 10px;
        }

        .partners-arrow-right {
            right: 10px;
        }

        .partners-grid-wrapper {
            position: relative;
            overflow: hidden;
            margin: 0 -20px;
        }

        .partners-grid-wrapper:hover .partners-arrow {
            opacity: 1;
        }

        /* Partner Link Styling */
        .partner-link {
            text-decoration: none;
            color: inherit;
            display: block;
            transition: all 0.3s ease;
        }

        .partner-link:hover {
            text-decoration: none;
            color: inherit;
        }

        .partner-link:focus {
            outline: 2px solid var(--primary);
            outline-offset: 2px;
            border-radius: 8px;
        }

        .partner-link .partner-item {
            cursor: pointer;
        }

        .partner-link:hover .partner-item {
            opacity: 1;
            transform: translateY(-8px);
        }

        .partner-link:hover .partner-logo-container {
            box-shadow: 0 8px 25px rgba(255, 107, 53, 0.2);
            transform: translateY(-2px);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .partners-section {
                padding: 20px 0;
            }

            .partners-header {
                margin-bottom: 15px;
            }

            .partners-title {
                font-size: 1.4rem;
            }

            .partners-subtitle {
                font-size: 0.85rem;
            }

            .partners-contact {
                font-size: 0.75rem;
            }

            .partners-grid {
                gap: 12px;
                animation-duration: 25s;
            }

            .partner-item {
                min-width: 70px;
                padding: 6px;
            }

            .partner-logo-container {
                width: 50px;
                height: 50px;
                margin-bottom: 4px;
                border-radius: 6px;
            }

            .partner-logo {
                border-radius: 4px;
                padding: 3px;
            }

            .logo-fallback {
                font-size: 14px;
                border-radius: 4px;
            }

            .partner-name {
                font-size: 0.65rem;
                margin-top: 3px;
                max-width: 65px;
            }

            .partners-cta {
                margin-top: 20px;
            }

            .cta-text {
                font-size: 0.9rem;
            }

            .cta-link {
                display: block;
                margin: 10px auto 0;
                width: fit-content;
                padding: 6px 12px;
                font-size: 0.85rem;
            }

            /* Mobile arrow styles */
            .partners-arrow {
                width: 40px;
                height: 40px;
                border-width: 1px;
            }

            .partners-arrow i {
                font-size: 14px;
            }

            .partners-arrow-left {
                left: 5px;
            }

            .partners-arrow-right {
                right: 5px;
            }

            /* Mobile partner link adjustments */
            .partner-link:hover .partner-item {
                transform: translateY(-5px);
            }

            .partner-link:hover .partner-logo-container {
                box-shadow: 0 6px 20px rgba(255, 107, 53, 0.15);
            }
        }

        @media (max-width: 480px) {
            .partners-section {
                padding: 15px 0;
            }

            .partners-header {
                margin-bottom: 12px;
            }

            .partners-title {
                font-size: 1.2rem;
                margin-bottom: 8px;
            }

            .partners-subtitle {
                font-size: 0.8rem;
            }

            .partners-contact {
                font-size: 0.7rem;
            }

            .partners-grid {
                gap: 8px;
                animation-duration: 30s;
            }

            .partner-item {
                min-width: 60px;
                padding: 4px;
            }

            .partner-logo-container {
                width: 42px;
                height: 42px;
                margin-bottom: 3px;
                border-radius: 5px;
            }

            .partner-logo {
                border-radius: 3px;
                padding: 2px;
            }

            .logo-fallback {
                font-size: 12px;
                border-radius: 3px;
            }

            .partner-name {
                font-size: 0.6rem;
                margin-top: 2px;
                max-width: 55px;
                line-height: 1.2;
            }

            .partners-cta {
                margin-top: 15px;
            }

            .cta-text {
                font-size: 0.85rem;
            }

            .cta-link {
                padding: 5px 10px;
                font-size: 0.8rem;
                margin: 8px auto 0;
            }

            /* Extra small device arrow adjustments */
            .partners-arrow {
                width: 35px;
                height: 35px;
                border-width: 1px;
            }

            .partners-arrow i {
                font-size: 12px;
            }

            .partners-arrow-left {
                left: 3px;
            }

            .partners-arrow-right {
                right: 3px;
            }
        }

        /* Partner Link Styles */
        .partner-link {
            text-decoration: none;
            color: inherit;
            display: block;
            transition: all 0.3s ease;
            border-radius: 8px;
            padding: 2px;
        }

        .partner-link:hover {
            text-decoration: none;
            color: inherit;
        }

        .partner-link:focus {
            outline: 2px solid var(--primary);
            outline-offset: 2px;
        }

        /* Touch-friendly for mobile */
        @media (hover: none) and (pointer: coarse) {
            .partner-link {
                padding: 4px;
                min-height: 44px;
                min-width: 44px;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .partner-item {
                transform: none !important;
            }

            .partner-item:hover {
                transform: none !important;
            }
        }

        /* Back to Top */
        .back-to-top {
            background: var(--primary);
            color: var(--secondary);
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: fixed;
            bottom: 15px;
            right: 15px;
            z-index: 1004;
            transition: opacity 0.3s ease;
            display: none;
        }

        /* Mobile Category Navigation Styles */
        .mobile-category-nav .plane-category-section {
            padding: 0;
            margin: 0;
            height: 35px;
        }

        .mobile-category-nav .plane-category-container {
            display: flex;
            align-items: center;
            gap: 0;
            margin: 0;
            height: 35px;
        }

        .mobile-category-nav .plane-category-bar {
            flex: 1;
            width: 100%;
            height: 35px;
        }

        .mobile-category-nav .plane-items-wrapper {
            background: var(--primary);
            height: 35px !important;
        }

        .mobile-category-nav .plane-category-item {
            flex-shrink: 0;
            min-width: max-content;
            height: 35px !important;
            font-size: 0.7rem !important;
            padding: 8px 12px !important;
            letter-spacing: 0.2px !important;
            line-height: 1.2 !important;
        }

        .mobile-category-nav .plane-category-item span {
            font-size: 0.6rem !important;
            margin-left: 3px !important;
        }

        .mobile-category-nav .plane-scroll-btn {
            background: var(--primary-dark);
            color: white;
            border: none;
            width: 30px;
            height: 35px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.2s ease;
            z-index: 10;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .mobile-category-nav .plane-scroll-btn:hover {
            background: var(--primary-dark);
            color: white;
        }

        .mobile-category-nav .plane-scroll-btn i {
            font-size: 0.7rem;
        }

        /* Hide scrollbar for mobile category nav */
        .mobile-category-nav .category-scroll-container::-webkit-scrollbar {
            display: none;
        }

        .mobile-category-nav .category-scroll-container {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }

        /* Hide category header on mobile for cleaner look */
        .mobile-category-nav .d-flex.justify-content-between {
            display: none !important;
        }

        /* Category Cards */
            .category-card {
                transition: transform 0.3s ease, box-shadow 0.3s ease;
            }
            .category-card:hover {
                transform: translateY(-5px);
                box-shadow: 0 10px 20px rgba(0,0,0,0.1);
            }
            .category-img-container {
                overflow: hidden;
            }
            .category-img-container img {
                transition: transform 0.5s ease;
                object-fit: cover;
            }
            .category-card:hover .category-img-container img {
                transform: scale(1.05);
            }

        /* Responsive Design */
        @media (min-width: 769px) {
            body {
                /* padding-top set by CSS vars block at end of file */
                padding-bottom: 0; /* No bottom nav on desktop */
            }

            .top-nav {
                padding: 8px 20px;
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: space-between;
            }

            .top-nav .logo {
                flex-shrink: 0;
                max-width: 250px;
            }

            .top-nav .nav-links--layers {
                display: flex !important;
            }

            .top-nav .nav-links--utilities {
                display: flex !important;
            }

            #account-dropdown {
                flex-shrink: 0;
            }

            /* Hide hamburger on desktop */
            .hamburger {
                display: none !important;
            }

            .search-container {
                max-width: 640px;
                padding: 0 16px;
            }

            .search-filter-bar {
                height: 60px;
            }

            #filter-sidebar {
                position: relative !important;
                top: auto !important;
                left: auto !important;
                width: auto !important;
                height: auto !important;
                background: transparent !important;
                z-index: auto !important;
                transition: none !important;
                overflow-y: visible !important;
                box-shadow: none !important;
            }
        }

        /* Medium screens - adjust nav item spacing */
        @media (min-width: 769px) and (max-width: 1200px) {
            .top-nav .nav-links--layers {
                gap: 8px;
            }

            .top-nav .nav-links--layers li a {
                font-size: 0.8rem;
            }
        }

        /* Large screens - more generous spacing */
        @media (min-width: 1025px) {
            .top-nav {
                padding: 8px 30px;
            }

            .top-nav .nav-links--layers {
                gap: 25px;
            }

            .top-nav .nav-links--layers li a {
                font-size: 0.95rem;
            }
        }

        /* Content Wrapper Styles - Ensures proper spacing and margins */
        .content-wrapper {
            min-height: calc(100vh - 250px); /* Account for header and footer */
            padding: 20px 0;
            width: 100%;
            box-sizing: border-box;
        }
        
        .content-inner {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px; /* Mobile-friendly side margins */
            box-sizing: border-box;
        }
        
        /* Responsive content spacing */
        @media (min-width: 768px) {
            .content-wrapper {
                padding: 30px 0;
            }
            
            .content-inner {
                padding: 0 40px; /* Generous desktop margins */
            }
        }
        
        @media (min-width: 1200px) {
            .content-inner {
                padding: 0 60px; /* Even more space on large screens */
            }
        }
        
        /* Special handling for full-width content (e.g., homepage) */
        .content-wrapper.full-width .content-inner {
            max-width: 100%;
            padding-left: 16px;
            padding-right: 16px;
        }

        @media (min-width: 768px) {
            .content-wrapper.full-width .content-inner {
                padding-left: 24px;
                padding-right: 24px;
            }
        }

        @media (min-width: 1200px) {
            .content-wrapper.full-width .content-inner {
                padding-left: 32px;
                padding-right: 32px;
            }
        }
        
        /* Special handling for centered forms (login/register) */
        .content-wrapper.centered-form {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: calc(100vh - 250px);
        }
        
        .content-wrapper.centered-form .content-inner {
            width: 100%;
            max-width: 500px;
            padding: 20px;
        }

        @media (max-width: 768px) {
            body {
                /* padding-top set by CSS vars block at end of file */
                padding-bottom: 60px; /* Space for bottom navbar */
                overflow-x: hidden; /* Extra protection for mobile */
            }
            
            .content-wrapper {
                padding: 15px 0; /* Tighter mobile spacing */
            }
            
            .content-inner {
                padding: 0 15px; /* Minimum safe mobile margins */
            }
            
            .content-wrapper.centered-form .content-inner {
                padding: 15px;
            }

            .logo-text {
                display: none;
            }

            body.filter-open {
                overflow: hidden;
            }

            .top-nav {
                height: 48px;
                padding: 0 10px;
                flex-wrap: nowrap; /* Prevent wrapping which can cause width issues */
                max-width: 100vw; /* Ensure nav doesn't exceed viewport */
            }

            .top-nav .search-bar,
            .top-nav .dropdown:not(#account-dropdown) {
                display:inline-flex;
                width: 100%;
                max-width: 100%; /* Prevent overflow */
            }

            /* Hide desktop layer + utility rows on mobile (layers use bottom nav) */
            .top-nav .nav-links--layers,
            .top-nav .nav-links--utilities {
                display: none !important;
            }

            .hamburger {
                display: block;
            }
        }

        /* Re-scope mobile-only navbar styles */
        @media (max-width: 768px) {
            .search-filter-bar {
                top: 48px;
                height: 60px;
                padding: 8px 10px;
                max-width: 100vw; /* Critical mobile fix */
                overflow: hidden; /* Prevent horizontal scroll */
            }

            .search-container {
                padding: 0 8px;
                max-width: 100%;
            }

            /* Enhanced mobile search input */
            .search-input {
                font-size: 16px;
                padding: 10px 44px 10px 14px;
                min-height: 40px;
                border-radius: 999px;
            }

            .search-input-wrapper--ai .search-input,
            .search-input-wrapper--ai .search-input--ai {
                padding-left: 1rem;
                padding-right: 44px;
                font-size: 16px;
            }

            .search-ai-inner {
                min-height: 40px;
            }

            .search-button {
                width: 34px;
                height: 34px;
                right: 4px;
            }

            .search-button--ai {
                width: 36px;
                height: 36px;
            }

            .filter-btn {
                width: 35px; /* Slightly smaller for more search space */
                height: 35px;
                font-size: 1rem;
                left: 8px; /* Moved closer to edge */
            }

            /* Mobile Filter Sidebar */
            #filter-sidebar {
                position: fixed;
                top: 108px;
                left: -280px;
                width: 280px;
                height: calc(100vh - 108px);
                background: white;
                z-index: 1005;
                transition: left 0.3s ease;
                overflow-y: auto;
                box-shadow: 2px 0 10px rgba(0,0,0,0.1);
                display: block !important; /* Override hidden class on mobile */
            }

            #filter-sidebar.mobile-filter-open {
                left: 0;
            }

            .top-nav {
                justify-content: space-between;
                padding: 8px 15px;
            }

            .top-nav > .nav-links--layers,
            .top-nav > .nav-links--utilities {
                display: none;
                flex-direction: column;
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background: linear-gradient(135deg, var(--primary), var(--accent));
                padding: 10px;
                z-index: 1002;
            }

            .top-nav > .nav-links--layers.active,
            .top-nav > .nav-links--utilities.active {
                display: flex;
            }

            /* Show hamburger on mobile */
            .top-nav .hamburger {
                display: block;
            }

            #logo-text {
                display: none;
            }

            .mobile-menu {
                top: 145px; /* Adjusted: top nav (50px) + search bar (60px) + category nav (35px) */
                height: calc(100vh - 145px);
                z-index: 9999;
            }

            .ua-dropdown:hover .dropdown-content {
                display: none;
            }

            .ua-dropdown.active .dropdown-content {
                display: block;
            }

            .ua-dropdown .dropbtn {
                background: none;
                color: var(--secondary);
                padding: 10px;
                font-size: 1rem;
                font-weight: 600;
                border-radius: 0;
            }
        }

        @media (max-width: 576px) {
            .top-nav .logo {
                font-size: 1rem;
            }

            .top-nav .logo .cart-icon {
                font-size: 1.5rem;
            }

            .search-container {
                padding: 0 6px;
                max-width: 100%;
            }

            .search-input,
            .search-input--ai,
            .search-input-wrapper--ai .search-input,
            .search-input-wrapper--ai .search-input--ai {
                font-size: 16px;
                padding: 8px 40px 8px 12px;
                min-height: 36px;
                border-radius: 999px;
            }

            .search-ai-inner {
                min-height: 36px;
            }

            .search-button,
            .search-button--ai {
                width: 32px;
                height: 32px;
                right: 3px;
                font-size: 0.82rem;
            }

            .filter-btn {
                width: 32px;
                height: 32px;
                font-size: 0.95rem;
                left: 6px;
            }

            .suggestion-grid {
                grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            }

            .suggestion-item img {
                width: 60px;
                height: 60px;
            }

            .shop-card img {
                height: 150px;
            }

            .mobile-menu {
                width: 260px; /* wider so labels stay readable */
                max-width: 85vw;
            }
        }

        @media (max-width: 360px) {
            .top-nav .logo {
                font-size: 0.9rem;
            }

            .search-container {
                padding: 0 4px;
                max-width: 100%;
            }

            .search-input,
            .search-input--ai,
            .search-input-wrapper--ai .search-input,
            .search-input-wrapper--ai .search-input--ai {
                font-size: 16px;
                padding: 7px 36px 7px 10px;
                min-height: 34px;
                border-radius: 999px;
            }

            .search-ai-inner {
                min-height: 34px;
            }

            .search-button,
            .search-button--ai {
                width: 30px;
                height: 30px;
                right: 2px;
                font-size: 0.78rem;
            }

            .filter-btn {
                width: 28px;
                height: 28px;
                font-size: 0.85rem;
                left: 4px;
            }

            .shop-card img {
                height: 120px;
            }
        }

        /* Account Dropdown */
        /* #account-dropdown {
            position: relative;
            display: none;
        } */

        @media screen and (max-width: 992px) {
            #account-dropdown {
                display: block;
            }
        }

        /* Grid Layout */
        .grid-layout {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
            padding: 10px;
        }

        @media (max-width: 1300px) {
            .second-nav .nav-links-2 {
                display: none;
            }
        }

        @media (max-width: 992px) {
            .grid-layout {
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
            }
        }

        @media (max-width: 768px) {
            .grid-layout {
                grid-template-columns: 1fr;
                gap: 10px;
            }
        }

        @media (max-width: 576px) {
            .grid-layout {
                grid-template-columns: 1fr;
                gap: 8px;
                padding: 5px;
            }
        }

        /* Responsive Footer */
        @media (max-width: 768px) {
            .footer {
                display: none !important;
            }

            /* body padding-bottom set by CSS vars block at end of file */

            .content-wrapper {
                padding-bottom: 20px !important;
            }
        }

        /* Show footer on larger screens with proper spacing */
        @media (min-width: 769px) {
            .footer {
                display: block !important;
            }
        }

        @media (max-width: 992px) {
            .footer__main {
                grid-template-columns: repeat(2, 1fr);
                gap: 1.25rem 1.5rem;
            }
            .footer__brand {
                grid-column: 1 / -1;
            }
        }

        @media (max-width: 576px) {
            .footer {
                padding: 1.5rem 0 1rem;
            }
            .footer__main {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
            .footer__bar {
                flex-direction: column;
                align-items: flex-start;
            }
        }

        /* ===== ENHANCED MOBILE RESPONSIVENESS FIXES ===== */
        @media (max-width: 768px) {
            /* Remove container padding/margins for mobile - FULL WIDTH */
            .container, .container-fluid {
                padding-left: 4px !important;
                padding-right: 4px !important;
                max-width: 100% !important;
            }
            
            /* Minimal row gutters on mobile */
            .row.g-1, .row.g-2, .row.g-3 {
                --bs-gutter-x: 0.25rem !important;
                margin-left: 0 !important;
                margin-right: 0 !important;
            }
            
            /* Content wrapper - edge to edge */
            .content-inner {
                padding: 0 4px !important;
            }
            
            .content-wrapper {
                padding: 8px 0 !important;
            }
            
            /* Navbar alignment fixes */
            .top-nav {
                padding: 6px 4px !important;
                gap: 6px;
            }
            
            .top-nav .logo {
                flex-shrink: 0;
            }
            
            /* Dashboard card improvements */
            .card {
                margin-bottom: 0.5rem;
            }
            
            .card .card-body {
                padding: 0.75rem !important;
            }
            
            /* Dashboard stat cards - more compact */
            .col-6.col-md-3 .card .card-body {
                padding: 0.5rem !important;
            }
            
            .col-6.col-md-3 .card h5 {
                font-size: 1rem !important;
            }
            
            .col-6.col-md-3 .card h6 {
                font-size: 0.7rem !important;
            }
            
            /* Quick action buttons - better layout */
            .d-flex.gap-2.align-items-center {
                flex-wrap: wrap;
                gap: 0.375rem !important;
            }
            
            .btn-sm {
                padding: 0.25rem 0.5rem !important;
                font-size: 0.75rem !important;
            }
            
            /* Tab navigation on mobile */
            .nav-tabs, .nav-pills {
                flex-wrap: nowrap;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
            }
            
            .nav-tabs::-webkit-scrollbar,
            .nav-pills::-webkit-scrollbar {
                display: none;
            }
            
            .nav-tabs .nav-link,
            .nav-pills .nav-link {
                white-space: nowrap;
                padding: 0.5rem 0.75rem;
                font-size: 0.8rem;
            }
            
            /* Table responsiveness */
            .table-responsive {
                font-size: 0.8rem;
            }
            
            .table td, .table th {
                padding: 0.5rem 0.375rem;
            }
        }
        
        @media (max-width: 576px) {
            /* Zero padding on very small screens - TRUE EDGE TO EDGE */
            .container, .container-fluid {
                padding-left: 2px !important;
                padding-right: 2px !important;
            }
            
            .row.g-1, .row.g-2 {
                --bs-gutter-x: 0.125rem !important;
            }
            
            .content-inner {
                padding: 0 2px !important;
            }
            
            .content-wrapper {
                padding: 4px 0 !important;
            }
            
            /* Navbar ultra-compact */
            .top-nav {
                padding: 4px 2px !important;
                height: var(--top-nav-height-mobile, 48px) !important;
            }
            
            /* Dashboard cards super compact */
            .col-6.col-md-3 .card .card-body {
                padding: 0.375rem !important;
            }
            
            .col-6.col-md-3 .card h5 {
                font-size: 0.9rem !important;
            }
            
            /* Button groups - stack on very small screens */
            .d-flex.gap-2 {
                gap: 0.25rem !important;
            }
        }

        /* Final layout stabilization (single source of truth for header stack) */
        :root {
            --top-nav-height-desktop: 50px;
            --top-nav-height-mobile: 48px;
            --search-bar-height: 60px;
            --mobile-category-height: 40px;
            --mobile-bottom-nav-height: 70px;
        }

        body {
            padding-top: calc(var(--top-nav-height-desktop) + var(--search-bar-height) + var(--mobile-category-height));
        }

        .top-nav {
            height: var(--top-nav-height-desktop) !important;
            display: flex;
            align-items: center;
            flex-wrap: nowrap;
            overflow: visible;
        }

        .top-nav .logo,
        #account-dropdown,
        .top-nav__brand,
        .top-nav__utilities,
        .top-nav .nav-links {
            min-width: 0;
        }

        .search-filter-bar {
            position: fixed !important;
            left: 0 !important;
            width: 100% !important;
            top: var(--top-nav-height-desktop) !important;
            height: var(--search-bar-height) !important;
            z-index: 1001 !important;
        }

        .search-container {
            width: 100%;
            max-width: 640px;
            padding: 0 16px;
            margin: 0 auto;
        }

        .mobile-category-nav {
            top: calc(var(--top-nav-height-desktop) + var(--search-bar-height)) !important;
            height: var(--mobile-category-height) !important;
        }

        .top-nav .location-nav-item .d-flex {
            flex-wrap: nowrap !important;
            gap: 0.375rem !important;
            white-space: nowrap;
        }

        .top-nav .location-nav-item .btn-location,
        .top-nav .location-nav-item .btn-currency {
            padding: 0.32rem 0.5rem;
            font-size: 0.8rem;
            max-width: 128px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        @media (min-width: 769px) {
            body {
                padding-top: calc(var(--top-nav-height-desktop) + var(--search-bar-height));
            }

            .mobile-category-nav {
                display: none !important;
            }

            .mobile-menu {
                top: calc(var(--top-nav-height-desktop) + var(--search-bar-height));
                height: calc(100vh - (var(--top-nav-height-desktop) + var(--search-bar-height)));
            }
        }

        @media (max-width: 768px) {
            body {
                padding-top: calc(var(--top-nav-height-mobile) + var(--search-bar-height) + var(--mobile-category-height)) !important;
                padding-bottom: var(--mobile-bottom-nav-height) !important;
            }

            .top-nav {
                height: var(--top-nav-height-mobile) !important;
                padding: 6px 8px !important;
                gap: 8px;
            }

            .search-filter-bar {
                top: var(--top-nav-height-mobile) !important;
            }

            .mobile-category-nav {
                top: calc(var(--top-nav-height-mobile) + var(--search-bar-height)) !important;
            }

            .mobile-menu {
                top: calc(var(--top-nav-height-mobile) + var(--search-bar-height) + var(--mobile-category-height)) !important;
                height: calc(100vh - (var(--top-nav-height-mobile) + var(--search-bar-height) + var(--mobile-category-height))) !important;
            }

            .top-nav .nav-links--layers,
            .top-nav .nav-links--utilities {
                display: none !important;
            }

            .top-nav .hamburger {
                display: block !important;
            }
        }

        /* Small phones — compact header stack (same dark search tier) */
        @media (max-width: 575px) {
            :root {
                --top-nav-height-mobile: 44px;
                --search-bar-height: 52px;
                --mobile-category-height: 36px;
            }

            .top-nav {
                height: var(--top-nav-height-mobile) !important;
                min-height: var(--top-nav-height-mobile) !important;
                padding: 4px 8px !important;
                gap: 6px !important;
            }

            .top-nav .logo img {
                width: 32px !important;
                height: 32px !important;
            }

            .top-nav .logo-text-part {
                font-size: 1.1rem !important;
                padding: 1px 3px !important;
            }

            #account-dropdown .btn,
            #account-dropdown .dropdown-toggle {
                font-size: 0.78rem !important;
                padding: 0.3rem 0.5rem !important;
            }

            .search-filter-bar {
                top: var(--top-nav-height-mobile) !important;
                height: var(--search-bar-height) !important;
                padding: 6px 8px !important;
            }

            .search-filter-bar::before {
                height: 3px;
            }

            .search-container {
                width: 100%;
                max-width: 100%;
                padding: 0 4px;
            }

            .search-ai-shell,
            .search-ai-inner {
                border-radius: 999px;
            }

            .search-ai-inner {
                min-height: 36px;
            }

            .search-input-wrapper--ai .search-input,
            .search-input-wrapper--ai .search-input--ai {
                padding-left: 0.85rem;
                padding-right: 38px;
                font-size: 16px;
                min-height: 36px;
            }

            .search-button--ai {
                width: 32px;
                height: 32px;
                right: 3px;
            }

            .mobile-category-nav {
                top: calc(var(--top-nav-height-mobile) + var(--search-bar-height)) !important;
                height: var(--mobile-category-height) !important;
            }

            body {
                padding-top: calc(var(--top-nav-height-mobile) + var(--search-bar-height) + var(--mobile-category-height)) !important;
            }

            .mobile-menu {
                top: calc(var(--top-nav-height-mobile) + var(--search-bar-height) + var(--mobile-category-height)) !important;
                height: calc(100dvh - (var(--top-nav-height-mobile) + var(--search-bar-height) + var(--mobile-category-height))) !important;
            }

            #filter-sidebar {
                top: calc(var(--top-nav-height-mobile) + var(--search-bar-height));
                height: calc(100dvh - (var(--top-nav-height-mobile) + var(--search-bar-height)));
            }
        }

        @media (max-width: 360px) {
            :root {
                --search-bar-height: 48px;
            }

            .search-filter-bar {
                padding: 5px 6px !important;
            }

            .search-ai-inner {
                min-height: 34px;
            }

            .search-input-wrapper--ai .search-input,
            .search-input-wrapper--ai .search-input--ai {
                padding-left: 0.75rem;
                padding-right: 34px;
                min-height: 34px;
            }

            .search-button--ai {
                width: 30px;
                height: 30px;
                right: 2px;
            }

            .top-nav .logo-text-part {
                font-size: 1rem !important;
            }
        }

        /* ══════════════════════════════════════════════════════════════
           BOOTSTRAP SAFETY NET
           Only the dropdown-hiding rule is kept here — it prevents
           unstyled dropdown menus from flashing open before Bootstrap
           CSS loads. All other Bootstrap utilities are provided by the
           local bootstrap.min.css which loads first.
           ══════════════════════════════════════════════════════════════ */

        /* Hide dropdown menus until Bootstrap toggles them */
        .dropdown-menu:not(.show) {
            display: none;
        }
