        * {
            box-sizing: border-box;
        }

        html, body {
            font-family: 'Inter', system-ui, sans-serif;
            overflow-x: hidden;
        }

        body {
            overflow-x: hidden;
            max-width: 100vw;
        }
        
        /* Global image sizing */
        img {
            max-width: 100%;
            height: auto;
            object-fit: contain;
        }
        
        .icon,
        img.icon,
        .sidebar img,
        .menu img,
        .category-icon img,
        .nav-icon,
        td img {
            width: 20px !important;
            height: 20px !important;
            min-width: 20px;
            min-height: 20px;
            object-fit: contain !important;
            display: inline-block !important;
            vertical-align: middle;
        }
        
        .sidebar .fa,
        .nav-icon.fa {
            font-size: 14px !important;
            width: 20px !important;
            height: 20px !important;
            display: inline-flex !important;
            align-items: center;
            justify-content: center;
        }

        /* Text overflow and word wrap fixes */
        .text-truncate, .truncate {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .text-wrap { white-space: normal; }
        .text-nowrap { white-space: nowrap; }

        /* Responsive text sizing */
        .text-responsive {
            font-size: clamp(0.75rem, 1vw, 1rem);
        }

        /* Icon standardization */
        .icon-sm { font-size: 0.75rem; width: 1rem; height: 1rem; }
        .icon-base { font-size: 1rem; width: 1.25rem; height: 1.25rem; }
        .icon-lg { font-size: 1.25rem; width: 1.5rem; height: 1.5rem; }
        .icon-xl { font-size: 1.5rem; width: 2rem; height: 2rem; }

        /* Button text overflow fix */
        button, a.btn, a.btn-primary, a.btn-secondary, a.btn-outline, a.btn-danger, a.btn-ghost {
            overflow: hidden;
            max-width: 100%;
        }

        /* Table responsive fixes */
        .table-responsive {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            max-width: 100%;
        }

        table {
            max-width: 100%;
            overflow: hidden;
        }

        /* Card and container overflow */
        .card-overflow {
            overflow: hidden;
        }

        /* Grid and flex responsive */
        .grid-responsive {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
            gap: 1rem;
        }

        .hide-scrollbar::-webkit-scrollbar {
            display: none;
        }

        .hide-scrollbar {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }

        .gradient-primary {
            background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
        }

        .nav-pill {
            padding: 0.5rem 0.875rem;
            border-radius: 9999px;
            color: #4b5563;
            background: transparent;
            border: none;
            cursor: pointer;
        }
        .nav-pill:hover {
            background: rgba(22, 163, 74, 0.08);
            color: #16a34a;
        }
        .nav-pill-active {
            background: rgba(22, 163, 74, 0.12);
            color: #15803d;
            font-weight: 600;
        }
        .nav-pill-active-orange {
            background: rgba(249, 115, 22, 0.12);
            color: #ea580c;
            font-weight: 600;
        }

        .cat-tile-active .cat-tile-img {
            border-color: #16a34a;
            box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
            background: linear-gradient(135deg, #dcfce7 0%, #d1fae5 100%);
        }
        .cat-tile-active span:last-child {
            color: #15803d;
            font-weight: 700;
        }

        .gradient-accent {
            background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
        }

        .glass-card {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .animate-slide-up {
            animation: slideUp 0.3s ease-out;
        }

        @keyframes slideUp {
            from {
                transform: translateY(20px);
                opacity: 0;
            }

            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .toast {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 9999;
            transform: translateX(120%);
            transition: transform 0.3s ease;
        }

        .toast.show {
            transform: translateX(0);
        }

        .product-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
        }

        .product-card {
            transition: all 0.3s ease;
        }

        .store-card:hover {
            transform: translateY(-2px);
        }

        .store-card {
            transition: all 0.3s ease;
        }

        /* Flex utilities for overflow prevention */
        .flex-nowrap { flex-wrap: nowrap; }
        .flex-wrap { flex-wrap: wrap; }
        .overflow-hidden { overflow: hidden; }
        .overflow-visible { overflow: visible; }

        /* Mobile touch improvements */
        @media (max-width: 640px) {
            button, a {
                touch-action: manipulation;
                -webkit-tap-highlight-color: transparent;
            }
            
            input, select, textarea {
                font-size: 16px;
            }

            .mobile-padding { padding: 0.75rem; }
            .mobile-gap { gap: 0.75rem; }
        }

        /* Prevent horizontal scroll */
        .no-horizontal-scroll {
            overflow-x: hidden;
        }

        /* Card content overflow prevention */
        .card-content {
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        /* Prevent overlapping globally - customer layout */
        .layout-wrapper {
            position: relative;
            z-index: 1;
        }
        
        /* Safe area for iOS */
        .safe-area-pb {
            padding-bottom: env(safe-area-inset-bottom, 0);
        }
        .safe-area-header {
            padding-top: env(safe-area-inset-top, 0);
        }

        /* Z-index layering for mobile (bottom nav must be highest among fixed chrome) */
        .z-bottom-nav { z-index: 50; }
        .z-floating-cart { z-index: 55; } /* ABOVE bottom nav so the cart bar is always visible */
        .z-whatsapp-btn { z-index: 95; }
        .z-chatbot { z-index: 9990; }
        .z-modal { z-index: 100; }
        .z-drawer { z-index: 90; }
        .z-overlay { z-index: 80; }
        .z-header { z-index: 30; }

        /* Floating Cart Bar Core Rules */
        #floating-cart-bar[data-suppressed="1"],
        #floating-cart-bar.hidden,
        #floating-cart-bar[hidden] {
            display: none !important;
            visibility: hidden !important;
            pointer-events: none !important;
        }

        #floating-cart-bar {
            left: 0;
            right: 0;
            margin-left: auto;
            margin-right: auto;
            transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
        }

        /* Prevent floating elements from overlapping bottom nav */
        @media (max-width: 1023px) {
            #floating-cart-bar {
                /* Position strictly ABOVE the bottom navigation (h-16 = 64px) + device safe area */
                bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
                padding-bottom: 0 !important;
                width: 100% !important;
                max-width: 100% !important;
            }
            #floating-cart-bar .safe-area-pb {
                padding-bottom: 0 !important;
            }

            /* Support Chatbot FAB - lower position on mobile above bottom nav */
            #mls-chat-widget .chat-fab {
                bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
                right: 16px !important;
            }
            #mls-chat-widget .chat-window,
            #mls-chat-widget .chat-panel {
                bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
                right: 16px !important;
            }

            /* When cart bar is actively visible on mobile, gently elevate chat FAB so they do not collide */
            body[data-cart-active="true"] #mls-chat-widget .chat-fab,
            body:has(#floating-cart-bar:not(.hidden):not(.translate-y-full)) #mls-chat-widget .chat-fab {
                bottom: calc(136px + env(safe-area-inset-bottom, 0px)) !important;
            }

            #whatsapp-float-btn {
                bottom: calc(138px + env(safe-area-inset-bottom, 0px)) !important;
            }
        }

        @media (min-width: 1024px) {
            /* Floating Cart Bar - Centered pill popup card on desktop */
            #floating-cart-bar {
                bottom: 24px !important;
                width: 480px !important;
                max-width: calc(100vw - 32px) !important;
            }

            /* Support Chatbot FAB - Neat bottom-right corner on desktop */
            #mls-chat-widget .chat-fab {
                bottom: 24px !important;
                right: 24px !important;
            }
            #mls-chat-widget .chat-window,
            #mls-chat-widget .chat-panel {
                bottom: 90px !important;
                right: 24px !important;
            }

            #whatsapp-float-btn {
                bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
            }
        }

        /* Safe area for devices with notches/home indicators */
        @supports (padding-bottom: env(safe-area-inset-bottom)) {
            body {
                padding-bottom: env(safe-area-inset-bottom, 0px);
            }
        }

        /* ===== Global Loading Overlay (animated branding logo) ===== */
        #globalLoader {
            position: fixed;
            inset: 0;
            z-index: 9999;
            display: none;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            background: rgba(255, 255, 255, 0.92);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            opacity: 0;
            transition: opacity 0.25s ease;
        }
        #globalLoader.show {
            display: flex;
            opacity: 1;
        }
        #globalLoader .loader-ring {
            position: relative;
            width: 96px;
            height: 96px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        #globalLoader .loader-ring::before {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: 50%;
            border: 4px solid rgba(34, 197, 94, 0.15);
            border-top-color: #16a34a;
            border-right-color: #22c55e;
            animation: loaderSpin 0.9s linear infinite;
        }
        #globalLoader .loader-ring::after {
            content: "";
            position: absolute;
            inset: 10px;
            border-radius: 50%;
            border: 3px solid rgba(249, 115, 22, 0.12);
            border-bottom-color: #f97316;
            animation: loaderSpin 1.3s linear infinite reverse;
        }
        #globalLoader .loader-logo {
            width: 52px;
            height: 52px;
            object-fit: contain;
            animation: loaderPulse 1.1s ease-in-out infinite;
            filter: drop-shadow(0 4px 10px rgba(34, 197, 94, 0.25));
        }
        #globalLoader .loader-text {
            margin-top: 18px;
            font-size: 13px;
            font-weight: 600;
            letter-spacing: 0.04em;
            color: #15803d;
            animation: loaderFade 1.4s ease-in-out infinite;
        }
        @keyframes loaderSpin {
            to { transform: rotate(360deg); }
        }
        @keyframes loaderPulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.12); }
        }
        @keyframes loaderFade {
            0%, 100% { opacity: 0.55; }
            50% { opacity: 1; }
        }
    

.banner-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}
.banner-dot.active {
    width: 18px;
    border-radius: 3px;
    background: #16A34A;
}

        /* Off-canvas drawer */
        #mobile-drawer {
            transform: translateX(-100%);
            transition: transform 0.32s cubic-bezier(.4, 0, .2, 1);
        }

        #mobile-drawer.open {
            transform: translateX(0);
        }

        #drawer-overlay {
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.32s ease;
        }

        #drawer-overlay.open {
            opacity: 1;
            pointer-events: auto;
        }

        /* User dropdown */
        #user-dropdown {
            display: none;
        }

        #user-dropdown.open {
            display: block;
        }

        /* Active nav item */
        .nav-active {
            color: #16a34a !important;
            font-weight: 600;
        }

        /* Banner responsive fixes (Blinkit style compact aspect ratio) */
        .banner-container {
            width: 100%;
            max-height: 220px;
            overflow: hidden;
            border-radius: 1rem;
        }
        
        .banner-container img,
        .hero-banner-img {
            width: 100%;
            height: 140px;
            max-height: 220px;
            object-fit: cover;
            border-radius: 1rem;
        }

        @media (min-width: 640px) {
            .banner-container {
                max-height: 180px;
            }
            .banner-container img,
            .hero-banner-img {
                height: 180px;
                max-height: 180px;
                border-radius: 1.25rem;
            }
        }

        @media (min-width: 1024px) {
            .banner-container {
                max-height: 220px;
            }
            .banner-container img,
            .hero-banner-img {
                height: 220px;
                max-height: 220px;
                border-radius: 1.5rem;
            }
        }
    

        @keyframes slideUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .animate-slide-up {
            animation: slideUp 0.3s ease-out forwards;
        }
    
