  /* --- CSS Variables for Easy Theming (Peng Delivery Orange Theme) --- */
        :root {
            --primary-color: #f87600;        /* Primary Orange */
            --primary-light: #ffcc80;        /* Light Orange */
            --primary-dark: #e65100;         /* Dark Orange */
            --primary-gradient: linear-gradient(135deg, #f87600 0%, #e65100 100%);
            --background-color: #fff3e0;     /* Light creamy orange - เหมือน index */
            --card-background: #FFFFFF;
            --text-primary: #3e2723;         /* Dark brown text */
            --text-secondary: #bf6d3a;       /* Muted orange-brown */
            --text-price: #e65100;
            --border-color: #ffe0b2;         /* Light orange border */
            --shadow-color: rgba(248, 118, 0, 0.12);
            --shadow-hover: rgba(248, 118, 0, 0.25);
            --accent-color: #ff9800;
            --success-color: #4CAF50;
            --warning-color: #FFC107;
            --danger-color: #f44336;
            --font-family: 'Kanit', sans-serif;
        }

        /* --- Minimal Modern Design System --- */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body { 
            font-family: var(--font-family);
            background-color: var(--background-color);
            min-height: 100vh;
            color: var(--text-primary);
        }
        
        .app-container { 
            display: flex;
            flex-direction: column;
            height: 100vh;
            overflow: hidden;
        }
        
        /* Sidebar Styles - Modern Glass Effect (Orange Theme) */
        .sidebar-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(5px);
            z-index: 998;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        
        .sidebar-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        
        .sidebar-menu {
            position: fixed;
            top: 0;
            left: -300px;
            width: 280px;
            height: 100%;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(15px);
            border-right: 1px solid rgba(0,0,0,0.05);
            z-index: 1500;
            transition: left 0.3s ease;
            overflow-y: auto;
        }
        
        .sidebar-menu.active {
            left: 0;
        }
        
        .sidebar-header {
            padding: 25px 15px 20px 15px;
            border-bottom: 2px solid rgba(248, 118, 0, 0.2);
            background: linear-gradient(135deg, rgba(248, 118, 0, 0.1) 0%, rgba(255, 152, 0, 0.05) 100%);
            position: relative;
            overflow: hidden;
        }
        
        .sidebar-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 2px;
            background: linear-gradient(90deg, transparent, #f87600, transparent);
            animation: shimmer 3s infinite;
        }
        
        @keyframes shimmer {
            0% { left: -100%; }
            50% { left: 100%; }
            100% { left: 100%; }
        }
        
        .sidebar-title-container {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            position: relative;
        }
        
        .sidebar-title-icon {
            background: linear-gradient(135deg, #f87600 0%, #e65100 100%);
            color: white;
            width: 36px;
            height: 36px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(248, 118, 0, 0.3);
            animation: pulse-icon 2s infinite;
        }
        
        @keyframes pulse-icon {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }
        
        .sidebar-title {
            font-size: 1.4rem;
            font-weight: 600;
            background: linear-gradient(135deg, #f87600 0%, #e65100 50%, #f87600 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: 0 2px 4px rgba(248, 118, 0, 0.1);
            letter-spacing: 0.5px;
            margin: 0;
        }
        
        .sidebar-title-decoration {
            display: flex;
            gap: 4px;
            align-items: center;
        }
        
        .decoration-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #f87600;
            animation: dot-bounce 1.5s infinite;
        }
        
        .decoration-dot:nth-child(1) { animation-delay: 0s; }
        .decoration-dot:nth-child(2) { animation-delay: 0.2s; }
        .decoration-dot:nth-child(3) { animation-delay: 0.4s; }
        
        @keyframes dot-bounce {
            0%, 80%, 100% { 
                transform: scale(1);
                opacity: 0.7;
            }
            40% { 
                transform: scale(1.2);
                opacity: 1;
            }
        }
        
        .sidebar-nav {
            list-style: none;
            padding: 15px 0;
        }
        
        .sidebar-nav li {
            margin: 0;
            padding: 0 10px;
        }
        
        .sidebar-nav a {
            display: flex;
            align-items: center;
            padding: 16px 20px;
            color: #5a5a5a;
            text-decoration: none;
            font-weight: 500;
            font-size: 0.95rem;
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            border-radius: 12px;
            margin-bottom: 4px;
            position: relative;
            overflow: hidden;
            background: transparent;
            border: none;
        }
        
        .sidebar-nav a::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 3px;
            background: linear-gradient(180deg, #f87600 0%, #e65100 100%);
            transform: scaleY(0);
            transition: transform 0.3s ease;
            border-radius: 0 3px 3px 0;
        }
        
        .sidebar-nav a:hover,
        .sidebar-nav a.active {
            background: linear-gradient(135deg, rgba(248, 118, 0, 0.1) 0%, rgba(230, 81, 0, 0.15) 100%);
            color: #f87600;
            transform: translateX(5px);
            box-shadow: 0 4px 15px rgba(248, 118, 0, 0.15);
        }
        
        .sidebar-nav a:hover::before,
        .sidebar-nav a.active::before {
            transform: scaleY(1);
        }
        
        .sidebar-nav a i {
            margin-right: 15px;
            width: 20px;
            font-size: 1.2rem;
            transition: all 0.3s ease;
        }
        
        .sidebar-nav a:hover i,
        .sidebar-nav a.active i {
            color: #f87600;
            transform: scale(1.1);
        }
        
        /* Header Styles - Modern Design */
        .app-header { 
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 12px;
            background: #f87600;
            height: 65px;
            border-bottom: none;
            z-index: 130;
            backdrop-filter: blur(10px);
        }
        
        .menu-icon { 
            font-size: 1.5rem;
            color: #ffffff;
            text-decoration: none;
            padding: 8px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            cursor: pointer;
        }
        
        .menu-icon:hover {
            background: rgba(255, 255, 255, 0.25);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }
        
        .app-header-title {
            font-size: 1.9rem;
            font-weight: 600;
            margin: 0;
            color: #ffffff;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            letter-spacing: 0.5px;
        }
        
        .header-icons { 
            display: flex; 
            align-items: center; 
            gap: 15px; 
        }
        
        .cart-icon-wrapper {
            position: relative;
            background: rgba(255, 255, 255, 0.15);
            border-radius: 50%;
            padding: 8px;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }
        .cart-icon-wrapper:hover {
            background: rgba(255, 255, 255, 0.25);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }
        .cart-icon-wrapper i {
            color: #ffffff;
            font-size: 1.3rem;
        }
        .cart-count {
            position: absolute;
            top: -8px;
            right: -8px;
            background: linear-gradient(135deg, #ff4757, #ff3742);
            color: white;
            border-radius: 50%;
            font-size: 0.7rem;
            font-weight: 600;
            min-width: 20px;
            height: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            border: 2px solid white;
            box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
            animation: pulse 2s infinite;
        }
        
        .cart-count:empty {
            display: none;
        }

        /* Enhanced Profile Avatar Styles */
        .profile-avatar-wrapper {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .profile-avatar {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid rgba(255, 255, 255, 0.4);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            background: rgba(255, 255, 255, 0.1);
        }
        
        .profile-avatar:hover {
            border-color: rgba(255, 255, 255, 0.8);
            transform: scale(1.08);
            box-shadow: 0 6px 20px rgba(248, 118, 0, 0.3);
        }

        .profile-avatar-fallback {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
            border: 3px solid rgba(255, 255, 255, 0.4);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }

        .profile-avatar-fallback:hover {
            border-color: rgba(255, 255, 255, 0.8);
            transform: scale(1.08);
            box-shadow: 0 6px 20px rgba(248, 118, 0, 0.3);
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.25) 100%);
        }

        .profile-avatar-fallback i {
            font-size: 1.1rem;
            color: white;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .profile-avatar-fallback svg {
            width: 22px;
            height: 22px;
            fill: white;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
        }

        /* Online Status Indicator */
        .profile-status-dot {
            position: absolute;
            bottom: 2px;
            right: 2px;
            width: 12px;
            height: 12px;
            background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
            border-radius: 50%;
            border: 2px solid white;
            box-shadow: 0 2px 6px rgba(76, 175, 80, 0.4);
            animation: statusPulse 2s ease-in-out infinite;
        }

        @keyframes statusPulse {
            0%, 100% {
                box-shadow: 0 2px 6px rgba(76, 175, 80, 0.4);
            }
            50% {
                box-shadow: 0 2px 12px rgba(76, 175, 80, 0.6), 0 0 0 4px rgba(76, 175, 80, 0.2);
            }
        }

        /* Avatar Error State */
        .avatar-error .profile-avatar-fallback {
            display: flex !important;
        }

        .profile-link {
            position: relative;
            display: flex;
            align-items: center;
            text-decoration: none;
            transition: transform 0.3s ease;
        }

        .profile-link:hover {
            transform: translateY(-2px);
        }
        
        .logout-btn {
            background: rgba(255, 255, 255, 0.15);
            border-radius: 50%;
            padding: 10px;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            color: #ffffff;
            text-decoration: none;
        }
        .logout-btn:hover {
            background: rgba(255, 87, 87, 0.8);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(255, 87, 87, 0.3);
            color: #ffffff;
        }
        .logout-btn i {
            font-size: 1.2rem;
        }
        
        .main-content { 
            flex-grow: 1; 
            overflow-y: auto;
            max-width: 1600px;
            margin-left: auto;
            margin-right: auto;
            padding: 50px 0 90px 0; /* Add padding top for fixed header and bottom for nav */
            background: linear-gradient(180deg, #fff3e0 0%, #ffffff 30%);
        }
        
        /* Hero Section - New Design */
.hero-section {
    background: #f87600;
    padding: 20px 20px 30px 20px;
    margin: 0;
    position: relative;
    overflow: hidden;
    z-index: 120;
    transition: top 0.3s, transform 0.3s, opacity 0.3s;
}

.hero-section.hero-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    box-shadow: 0 4px 24px rgba(44,62,80,0.08);
    animation: fadeInHero 0.3s;
}

.hero-section.hero-hide {
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
}

@keyframes fadeInHero {
    from { opacity: 0; transform: translateY(-100%); }
    to { opacity: 1; transform: translateY(0); }
}
        
        .hero-section::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -20%;
            width: 40%;
            height: 200%;
            background: radial-gradient(ellipse, rgba(255,255,255,0.1) 0%, transparent 70%);
            transform: rotate(-15deg);
        }
        
        .hero-content {
            position: relative;
            z-index: 100;
        }
        
        .welcome-message {
            text-align: center;
            margin-bottom: 25px;
        }
        
        .welcome-message h2 {
            color: white;
            font-size: 1.8rem;
            font-weight: 600;
            margin: 0 0 8px 0;
            text-shadow: 0 2px 8px rgba(0,0,0,0.3);
        }
        
        .welcome-message p {
            color: rgba(255,255,255,0.9);
            font-size: 1rem;
            margin: 0;
            text-shadow: 0 1px 4px rgba(0,0,0,0.2);
        }
        
        /* Delivery Status - General Styles */
        .delivery-status-mini {
            flex-shrink: 0;
            z-index: 1200;
            position: relative;
        }
        
        /* Delivery Status - Top Left of Search */
        .search-top-bar .delivery-status-mini {
            position: relative; /* Override any fixed positioning */
            z-index: 1200;
        }

        .delivery-status-btn {
            background: rgba(255, 255, 255, 0.95);
            border: 1px solid rgba(0, 0, 0, 0.1);
            border-radius: 25px;
            padding: 8px 16px;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.9rem;
            color: #333;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            position: relative;
            z-index: 100;
            pointer-events: all;
        }

        .delivery-status-btn:hover {
            background: rgba(255, 255, 255, 1);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            transform: translateY(-2px);
        }

        .delivery-status-btn:active {
            transform: translateY(0);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .delivery-mini-icon {
            font-size: 1.1rem;
        }

        .delivery-mini-text {
            font-weight: 400; /* เหมือน welcome-message p (default font-weight) */
            white-space: nowrap;
            font-size: 1rem;
            text-shadow: 0 1px 4px rgba(0,0,0,0.2); /* เหมือน welcome-message p */
        }

        .delivery-status-btn i {
            font-size: 0.8rem;
            opacity: 0.7;
            transition: transform 0.3s ease;
        }

        .delivery-status-btn:hover i {
            transform: rotate(180deg);
        }

        
        /* Delivery Card Modal */
        .delivery-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            z-index: 1500;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .delivery-modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        /* Delivery Popup Overlay (for regular modal) */
        .delivery-popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            z-index: 1500;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .delivery-popup-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .delivery-card-modal {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.8);
            z-index: 1501;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .delivery-card-modal.active {
            opacity: 1;
            visibility: visible;
            transform: translate(-50%, -50%) scale(1);
        }

        .delivery-card-container {
            background: #fff;
            border-radius: 20px;
            width: 90vw;
            max-width: 450px;
            max-height: 80vh;
            overflow: hidden;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
            position: relative;
        }

        .delivery-modal-content {
            background: #fff;
            border-radius: 20px;
            width: 90vw;
            max-width: 450px;
            max-height: 80vh;
            overflow: hidden;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
            position: relative;
        }

        .delivery-card-header {
            background: linear-gradient(135deg, #f87600 0%, #e65100 100%);
            color: #fff;
            padding: 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .delivery-card-title {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .delivery-card-title i {
            font-size: 1.5rem;
        }

        .delivery-card-title h3 {
            margin: 0;
            font-size: 1.2rem;
            font-weight: 600;
        }

        .delivery-card-close {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            border-radius: 50%;
            width: 36px;
            height: 36px;
            color: #fff;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .delivery-card-close:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: rotate(90deg);
        }

        .delivery-card-body {
            padding: 0;
        }

        .delivery-options-list {
            display: flex;
            flex-direction: column;
        }

        .delivery-option-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 20px;
            text-decoration: none;
            color: #333;
            border-bottom: 1px solid #f0f0f0;
            transition: all 0.3s ease;
            position: relative;
        }

        .delivery-option-item:last-child {
            border-bottom: none;
        }

        .delivery-option-item:hover {
            background: #fff8f0;
            transform: translateX(5px);
        }

        .delivery-option-item.active {
            background: linear-gradient(135deg, rgba(248,118,0,0.1), rgba(230,81,0,0.1));
            border-left: 4px solid #f87600;
        }

        .delivery-option-left {
            display: flex;
            align-items: center;
            gap: 16px;
            flex: 1;
        }

        .delivery-option-icon {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, #ff8f00 0%, #ffb74d 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            flex-shrink: 0;
        }

        .delivery-option-item.active .delivery-option-icon {
            background: linear-gradient(135deg, #f87600 0%, #e65100 100%);
        }

        .delivery-option-content h4 {
            margin: 0 0 4px 0;
            font-size: 1.1rem;
            font-weight: 600;
            color: #333;
        }

        .delivery-option-desc {
            margin: 0;
            font-size: 0.9rem;
            color: #666;
            line-height: 1.4;
        }

        .delivery-option-right {
            margin-left: 16px;
        }

        .delivery-option-selected {
            color: #f87600;
            font-size: 1.5rem;
            animation: checkmark-bounce 0.6s ease;
        }

        .delivery-option-arrow {
            color: #ccc;
            font-size: 1.2rem;
            transition: all 0.3s ease;
        }

        .delivery-option-item:hover .delivery-option-arrow {
            color: #f87600;
            transform: translateX(5px);
        }

        @keyframes checkmark-bounce {
            0% { transform: scale(0); }
            50% { transform: scale(1.3); }
            100% { transform: scale(1); }
        }

        @media (max-width: 768px) {
            .delivery-status-btn {
                padding: 6px 12px;
                font-size: 0.8rem;
            }
            
            .delivery-mini-text {
                font-size: 1rem; /* Use same size as desktop */
            }
            
            .delivery-card-container {
                width: 95vw;
                max-height: 70vh;
            }
            
            .delivery-card-header {
                padding: 16px;
            }
            
            .delivery-card-title h3 {
                font-size: 1.1rem;
            }
            
            .delivery-option-item {
                padding: 16px;
            }
            
            .delivery-option-icon {
                width: 45px;
                height: 45px;
                font-size: 1.3rem;
            }
            
            .delivery-option-content h4 {
                font-size: 1rem;
            }
            
            .delivery-option-desc {
                font-size: 0.85rem;
            }
        }

        /* Search Section - Enhanced */
        .search-section {
            margin-top: 20px;
            position: relative;
            z-index: 100;
        }
        
        /* Top Bar: Delivery Status and Image */
        .search-top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            width: 100%;
            margin-top: -35px;
            position: relative;
            z-index: 200;
        }
        
        .search-container-main {
            position: relative;
            width: 100%;
        }

        /* Search Overlay Image */
        .search-overlay-image {
            position: absolute;
            top: 50%;
            right: 60px; /* วางซ้าย search button เล็กน้อย */
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            pointer-events: none; /* ไม่กีดขวางการคลิก */
            z-index: 10;
        }

        .search-overlay-image img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            opacity: 1; /* เปลี่ยนจาก 0.7 เป็น 1 เพื่อให้ชัด */
            transition: all 0.3s ease;
        }

        .search-input-wrapper:focus-within + .search-overlay-image img {
            opacity: 0.8; /* เปลี่ยนจาก 0.5 เป็น 0.8 เพื่อให้ยังคงชัดเมื่อ focus */
        }

        .delivery-status-btn {
            background: rgba(255, 255, 255, 0.95);
            border: 1px solid rgba(0, 0, 0, 0.1);
            border-radius: 25px;
            padding: 8px 16px;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.9rem;
            color: #333;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            position: relative;
            z-index: 100;
            pointer-events: all;
        }

        .delivery-status-btn:hover {
            background: rgba(255, 255, 255, 1);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            transform: translateY(-2px);
        }

        .delivery-status-btn:active {
            transform: translateY(0);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        
        .search-input-wrapper {
            display: flex;
            align-items: center;
            background: rgba(255,255,255,0.95);
            backdrop-filter: blur(20px);
            border-radius: 20px;
            padding: 4px 4px 4px 20px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.1);
            border: 1px solid rgba(255,255,255,0.5);
            transition: all 0.3s ease;
            flex: 1;
        }
        
        .search-input-wrapper:focus-within {
            box-shadow: 0 12px 40px rgba(0,0,0,0.15);
            transform: translateY(-2px);
        }
        
        .search-icon {
            color: #f87600;
            font-size: 1.1rem;
            margin-right: 12px;
        }
        
        .search-input-wrapper input {
            flex: 1;
            border: none;
            background: transparent;
            padding: 16px 0;
            font-size: 1rem;
            color: #2c3e50;
            outline: none;
        }
        
        .search-input-wrapper input::placeholder {
            color: rgba(44,62,80,0.6);
        }
        
        /* Recent Search Dropdown */
        .recent-search-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: rgba(255,255,255,0.98);
            backdrop-filter: blur(20px);
            border-radius: 16px;
            margin-top: 8px;
            box-shadow: 0 12px 40px rgba(0,0,0,0.15);
            border: 1px solid rgba(255,255,255,0.5);
            z-index: 1000;
            max-height: 400px;
            overflow: hidden;
        }
        
        .dropdown-header {
            padding: 16px 20px 12px 20px;
            border-bottom: 1px solid rgba(0,0,0,0.1);
            display: flex;
            align-items: center;
            gap: 8px;
            color: #f87600;
            font-weight: 500;
            font-size: 0.9rem;
        }
        
        .dropdown-content {
            max-height: 300px;
            overflow-y: auto;
            padding: 12px;
        }
        
        .dropdown-content .product-card {
            margin-bottom: 12px;
            border-radius: 12px;
            transition: all 0.3s ease;
            border: 1px solid rgba(0,0,0,0.05);
        }
        
        .dropdown-content .product-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
        }
        
        .dropdown-content .product-card:last-child {
            margin-bottom: 0;
        }
        
        .dropdown-content .product-image-wrapper {
            height: 60px;
        }
        
        .dropdown-content .product-name {
            font-size: 0.9rem;
            height: auto;
            -webkit-line-clamp: 1;
            line-clamp: 1;
        }
        
        .dropdown-content .category-tag,
        .dropdown-content .brand-tag {
            font-size: 0.7rem;
            padding: 2px 6px;
        }
        
        .dropdown-content .current-price {
            font-size: 0.9rem;
        }
        
        .dropdown-content .original-price {
            font-size: 0.75rem;
        }
        
        .dropdown-content .discount-badge {
            font-size: 0.6rem;
        }
        
        .dropdown-content .add-to-cart-btn {
            width: 40px;
            height: 40px;
            font-size: 0.8rem;
        }
        
        /* Search Page Styles */
        .search-results-section {
            padding: 20px;
        }
        
        .search-results-section h3 {
            color: #2c3e50;
            margin-bottom: 20px;
            font-size: 1.2rem;
            font-weight: 500;
        }
        
        .search-empty-state,
        .no-results {
            text-align: center;
            padding: 60px 20px;
            color: #7f8c8d;
        }
        
        .search-empty-state i,
        .no-results i {
            color: #bdc3c7;
            margin-bottom: 20px;
        }
        
        .search-empty-state p,
        .no-results p {
            font-size: 1.1rem;
            margin: 10px 0;
        }
        
        .search-empty-state p:last-child,
        .no-results p:last-child {
            font-size: 0.9rem;
            opacity: 0.8;
        }
        
.search-top-bar .search-right-image {
    flex-shrink: 0;
    width: 249px; /* ขนาด container ยังคงเท่าเดิม */
    height: 94px; /* ขนาด container ยังคงเท่าเดิม */
    transition: all 0.3s ease;
    position: relative; /* สำคัญสำหรับจัดวางภาพ */
    overflow: hidden; /* เพื่อซ่อนส่วนที่เกินถ้าภาพใหญ่กว่า container */
}

.search-top-bar .search-right-image:hover {
    transform: scale(1.05);
}

.search-top-bar .search-right-image img {
    width: auto; /* ให้ภาพรักษากว้างเดิม */
    height: 120px; /* กำหนดความสูงใหม่ที่ต้องการให้ภาพ */
    object-fit: cover; /* หรือ contain, fill, none */
    position: absolute; /* จัดวางภาพภายใน container */
    top: 51%; /* จัดให้อยู่ตรงกลางแนวตั้ง */
    left: 58%; /* จัดให้อยู่ตรงกลางแนวนอน */
    transform: translate(-50%, -50%); /* ย้ายกลับให้กลางจริง ๆ */
    max-width: none; /* ป้องกันไม่ให้ภาพถูกบีบถ้ามันใหญ่กว่า container */
    z-index: 1;
}
        
        .search-btn {
            background: linear-gradient(135deg, #f87600, #e65100);
            border: none;
            border-radius: 16px;
            padding: 12px 16px;
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .search-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(248,118,0,0.3);
        }
        
        /* Promotions Section */
        .promotions-section {
            padding: 0px;
            margin: 0;
            position: relative;
            z-index: 10;
        }
        
        .promotions-container {
            border-radius: 0px;
            overflow: hidden;
            box-shadow: 0 12px 40px rgba(0,0,0,0.1);
            position: relative;
        }
        
        .promotions-pagination {
            bottom: 16px !important;
        }
        
        .promotions-pagination .swiper-pagination-bullet {
            background: rgba(255,255,255,0.6);
            width: 12px;
            height: 12px;
            border: 2px solid rgba(255,255,255,0.3);
            opacity: 1;
        }
        
        .promotions-pagination .swiper-pagination-bullet-active {
            background: white;
            transform: scale(1.2);
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        }
        
        /* Swiper Navigation Arrows */
        .promotions-swiper .swiper-button-next,
        .promotions-swiper .swiper-button-prev {
            color: rgba(255, 255, 255, 0.8);
            background: rgba(0, 0, 0, 0.3);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            transition: all 0.3s ease;
        }
        
        .promotions-swiper .swiper-button-next:after,
        .promotions-swiper .swiper-button-prev:after {
            font-size: 14px;
            font-weight: 600;
        }
        
        .promotions-swiper .swiper-button-next:hover,
        .promotions-swiper .swiper-button-prev:hover {
            background: rgba(0, 0, 0, 0.5);
            color: white;
            transform: scale(1.1);
        }
        
        .promotions-swiper .swiper-button-next {
            right: 16px;
        }
        
        .promotions-swiper .swiper-button-prev {
            left: 16px;
        }
        
        /* Hide navigation on small screens */
        @media (max-width: 480px) {
            .promotions-swiper .swiper-button-next,
            .promotions-swiper .swiper-button-prev {
                display: none;
            }
        }
        
        /* Promotion Cards */
        .promotion-card {
            position: relative;
            width: 100%;
            height: 200px;
            border-radius: 0px;
            overflow: hidden;
            cursor: pointer;
            transition: transform 0.3s ease;
        }
        
        .promotion-card:hover {
            transform: scale(1.02);
        }
        
        .promotion-image {
            width: 100%;
            height: 100%;
            position: relative;
        }
        
        .promotion-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .promotion-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0,0,0,0.8));
            padding: 30px 20px 20px 20px;
            color: white;
        }
        
        .promotion-title {
            font-size: 1.3rem;
            font-weight: 600;
            margin: 0 0 8px 0;
            text-shadow: 0 2px 8px rgba(0,0,0,0.5);
        }
        
        .promotion-desc {
            font-size: 0.95rem;
            margin: 0 0 4px 0;
            opacity: 0.9;
        }
        
        .promotion-date {
            font-size: 0.85rem;
            opacity: 0.8;
            display: block;
            margin-bottom: 12px;
        }
        
        .promotion-action {
            margin-top: 12px;
        }
        
        .view-promotion-btn {
            background: rgba(255, 255, 255, 0.9);
            color: #f87600;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            display: inline-block;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            text-shadow: none;
        }
        
        .view-promotion-btn:hover {
            background: rgba(255, 255, 255, 1);
            color: #e65100;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }
        
        .default-promo {
            background: linear-gradient(135deg, #f87600, #e65100);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
        }
        
        .promotion-content h3 {
            font-size: 1.8rem;
            font-weight: 600;
            margin: 0 0 8px 0;
        }
        
        .promotion-content p {
            font-size: 1rem;
            margin: 0;
            opacity: 0.9;
        }
        
        /* Categories Section */
        .categories-section {
            padding: 10px 0px;
            background: rgba(255,255,255,0.5);
            backdrop-filter: blur(10px);
            margin: 0px;
            border-radius: 24px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.05);
        }
        
        /* PromoJa Section */
        .promoja-section {
            padding: 30px 20px;
            background: rgba(255,255,255,0.5);
            backdrop-filter: blur(10px);
            margin: 20px;
            border-radius: 24px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.05);
        }
        
        /* PromoJa Banner Slider */
        .promoja-banner-container {
            margin-top: 0px;
            position: relative;
            border-radius: 0px;
            overflow: hidden;
        }
        
        .promoja-banner-swiper {
            width: 100%;
            height: 200px;
            border-radius: 16px;
            overflow: hidden;
        }
        
        .promoja-banner-slide {
            position: relative;
            width: 100%;
            height: 100%;
            cursor: pointer;
            transition: transform 0.3s ease;
        }
        
        .promoja-banner-slide:hover {
            transform: scale(1.02);
        }
        
        .promoja-banner-image {
            position: relative;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }
        
        .promoja-banner-image .banner-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }
        
        .promoja-banner-slide:hover .banner-image {
            transform: scale(1.1);
        }
        
        .banner-image-placeholder {
            width: 100%;
            height: 100%;
            background: #f87600;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: white;
            text-align: center;
            padding: 20px;
        }
        
        .banner-image-placeholder i {
            font-size: 3rem;
            margin-bottom: 16px;
            opacity: 0.8;
        }
        
        .banner-image-placeholder h3 {
            font-size: 1.5rem;
            font-weight: 600;
            margin: 0 0 8px 0;
        }
        
        .banner-image-placeholder p {
            font-size: 1rem;
            margin: 0;
            opacity: 0.9;
        }
        
        .promoja-banner-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(168, 167, 167, 0.8));
            padding: 40px 20px 20px 20px;
            color: white;
        }
        
        .banner-content {
            position: relative;
        }
        
        .banner-badge {
            display: inline-block;
            background: linear-gradient(135deg, #e74c3c, #c0392b);
            color: white;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 600;
            margin-bottom: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.3);
        }
        
        /* Poster type badges */
        .banner-badge.promotion-badge {
            background: linear-gradient(135deg, #ff6b35, #f7931e);
        }
        
        .banner-badge.product-badge {
            background: linear-gradient(135deg, #27ae60, #2ecc71);
        }
        
        .poster-slide {
            cursor: pointer;
        }
        
        .banner-title {
            font-size: 1.4rem;
            font-weight: 600;
            margin: 0 0 8px 0;
            text-shadow: 0 2px 8px rgba(0,0,0,0.5);
            line-height: 1.3;
        }
        
        .banner-condition {
            font-size: 1rem;
            margin: 0 0 8px 0;
            opacity: 0.9;
            text-shadow: 0 1px 4px rgba(0,0,0,0.5);
        }
        
        .banner-date {
            font-size: 0.85rem;
            opacity: 0.8;
            text-shadow: 0 1px 4px rgba(0,0,0,0.5);
        }
        
        /* PromoJa Navigation */
        .promoja-nav-next,
        .promoja-nav-prev {
            color: rgba(255, 255, 255, 0.8);
            background: rgba(0, 0, 0, 0.4);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            transition: all 0.3s ease;
            z-index: 10;
        }
        
        .promoja-nav-next:after,
        .promoja-nav-prev:after {
            font-size: 14px;
            font-weight: 600;
        }
        
        .promoja-nav-next:hover,
        .promoja-nav-prev:hover {
            background: rgba(0, 0, 0, 0.6);
            color: white;
            transform: scale(1.1);
        }
        
        /* PromoJa Pagination */
        .promoja-pagination {
            bottom: 12px !important;
            z-index: 10;
        }
        
        .promoja-pagination .swiper-pagination-bullet {
            background: rgba(255, 255, 255, 0.6);
            width: 10px;
            height: 10px;
            border-radius: 5px;
            opacity: 1;
            transition: all 0.3s ease;
            border: 2px solid rgba(255, 255, 255, 0.3);
        }
        
        .promoja-pagination .swiper-pagination-bullet-active {
            background: white;
            width: 28px;
            transform: scale(1.2);
            box-shadow: 0 2px 8px rgba(0,0,0,0.3);
        }
        
        /* Hide on mobile */
        @media (max-width: 480px) {
            .promoja-nav-next,
            .promoja-nav-prev {
                display: none;
            }
            
            .promoja-banner-swiper {
                height: 300px;
            }
            
            .banner-title {
                font-size: 1.2rem;
            }
            
            .banner-condition {
                font-size: 0.9rem;
            }
        }
        
        .section-count {
            background: linear-gradient(135deg, #f87600, #e65100);
            color: white;
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            min-width: fit-content;
        }
        
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 6px;
            padding-bottom: 4px;
            border-bottom: 1px solid rgba(248,118,0,0.08);
            position: relative;
            flex-wrap: nowrap;
        }
        
        @media (min-width: 768px) {
            .section-header {
                margin-bottom: 10px;
                padding-bottom: 6px;
            }
        }
        
        .section-header::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 30px;
            height: 2px;
            background: linear-gradient(90deg, #f87600, rgba(248,118,0,0.3));
        }
        
        @media (min-width: 768px) {
            .section-header::after {
                width: 50px;
            }
        }
        
        .section-title {
            font-size: 0.9rem;
            font-weight: 600;
            color: #2c3e50;
            display: flex;
            align-items: center;
            gap: 6px;
            margin: 0;
            flex: 1;
            min-width: 0;
        }
        
        @media (min-width: 480px) {
            .section-title {
                font-size: 0.95rem;
            }
        }
        
        @media (min-width: 768px) {
            .section-title {
                font-size: 1.1rem;
                gap: 8px;
            }
        }
        
        .section-icon {
            color: #f87600;
            font-size: 0.85rem;
        }
        
        @media (min-width: 768px) {
            .section-icon {
                font-size: 1rem;
            }
        }
        
        .section-link {
            color: #f87600;
            text-decoration: none;
            font-weight: 500;
            font-size: 0.7rem;
            padding: 3px 8px;
            border-radius: 8px;
            border: 1px solid rgba(248,118,0,0.2);
            background: rgba(248,118,0,0.05);
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 3px;
            white-space: nowrap;
            flex-shrink: 0;
        }
        
        @media (min-width: 768px) {
            .section-link {
                font-size: 0.8rem;
                padding: 5px 12px;
                gap: 5px;
            }
        }
        
        .section-link::after {
            content: '→';
            transition: transform 0.3s ease;
        }
        
        .section-link:hover {
            background: rgba(248,118,0,0.1);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(248,118,0,0.15);
        }
        
        /* Brands and Categories Sections */
        .brands-section, .categories-main-section {
            margin: 8px 0;
            padding: 12px;
            background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,250,245,0.9));
            border-radius: 20px;
            box-shadow: 0 4px 20px rgba(248,118,0,0.08);
            border: 1px solid rgba(248,118,0,0.1);
        }
        
        .section-header-small {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            padding: 8px 5px;
            border-bottom: 2px solid rgba(248,118,0,0.1);
        }
        
        .section-title-small {
            font-size: 1.1rem;
            font-weight: 600;
            color: #2c3e50;
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 0;
        }
        
        .section-title-small i {
            color: #f87600;
            font-size: 1rem;
        }
        
        /* View All Link */
        .view-all-link {
            display: flex;
            align-items: center;
            gap: 6px;
            color: #f87600;
            font-size: 0.9rem;
            font-weight: 500;
            text-decoration: none;
            padding: 6px 12px;
            border-radius: 20px;
            background: linear-gradient(135deg, rgba(248,118,0,0.1), rgba(255,150,0,0.05));
            transition: all 0.3s ease;
        }
        
        .view-all-link:hover {
            background: linear-gradient(135deg, #f87600, #ff9500);
            color: white;
            transform: translateX(3px);
            box-shadow: 0 4px 12px rgba(248,118,0,0.3);
        }
        
        .view-all-link i {
            font-size: 0.8rem;
            transition: transform 0.3s ease;
        }
        
        .view-all-link:hover i {
            transform: translateX(3px);
        }
        
        /* Expand Card (+ Button) */
        .expand-card {
            background: linear-gradient(135deg, #fff8f0, #fff5eb) !important;
            cursor: pointer;
        }
        
        .expand-card:hover {
            background: linear-gradient(135deg, #fff0e0, #ffe8d5) !important;
            border-color: #f87600 !important;
            transform: translateY(-5px) scale(1.02);
            box-shadow: 0 10px 25px rgba(248,118,0,0.2);
        }
        
        .expand-card:active {
            transform: translateY(-2px) scale(1);
        }
        
        .expand-icon-wrapper {
            background: linear-gradient(135deg, #f87600, #ff9500) !important;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 15px rgba(248,118,0,0.3);
            transition: all 0.3s ease;
        }
        
        .expand-icon-wrapper i {
            color: white;
            font-size: 1.5rem;
        }
        
        .expand-card:hover .expand-icon-wrapper {
            transform: scale(1.1) rotate(90deg);
            box-shadow: 0 6px 20px rgba(248,118,0,0.4);
        }
        
        .expand-card .category-name {
            color: #f87600;
            font-weight: 600;
        }
        
        .expand-btn {
            background: linear-gradient(135deg, rgba(248,118,0,0.1), rgba(255,150,0,0.1));
            border: 2px dashed rgba(248,118,0,0.4);
            border-radius: 25px;
            padding: 8px 18px;
            color: #f87600;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(248,118,0,0.1);
        }
        
        .expand-btn:hover {
            background: linear-gradient(135deg, rgba(248,118,0,0.2), rgba(255,150,0,0.2));
            border-color: #f87600;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(248,118,0,0.2);
        }
        
        .expand-btn:active {
            transform: translateY(0);
            box-shadow: 0 2px 6px rgba(248,118,0,0.15);
        }
        
        .expand-icon {
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            font-size: 0.9rem;
        }
        
        .expand-btn.expanded .expand-icon {
            transform: rotate(180deg);
        }
        
        .expand-btn.expanded {
            background: linear-gradient(135deg, #f87600, #ff9500);
            color: white;
            border: 2px solid #f87600;
        }
        
        .expand-btn.expanded:hover {
            background: linear-gradient(135deg, #e06800, #f87600);
        }
        
        /* Expandable Grids */
        .expandable-grid {
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            padding: 5px;
        }
        
        /* Responsive grid columns */
        @media (min-width: 481px) {
            .expandable-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }
        
        @media (min-width: 769px) {
            .expandable-grid {
                grid-template-columns: repeat(5, 1fr);
            }
        }
        
        @media (min-width: 1024px) {
            .expandable-grid {
                grid-template-columns: repeat(6, 1fr);
            }
        }
        
        .expandable-grid.collapsed {
            max-height: 200px;
            position: relative;
        }
        
        .expandable-grid.collapsed::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 40px;
            background: linear-gradient(transparent, rgba(255,255,255,0.9));
            pointer-events: none;
        }
        
        .expandable-grid.expanded {
            max-height: none;
        }
        
        .expandable-grid.expanded::after {
            display: none;
        }
        
        /* Hide expand button if items are less than threshold */
        .brands-section .expand-btn,
        .categories-main-section .expand-btn {
            display: flex;
        }
        
        .brands-section[data-count="0"] .expand-btn,
        .categories-main-section[data-count="0"] .expand-btn,
        .brands-section[data-count="1"] .expand-btn,
        .categories-main-section[data-count="1"] .expand-btn,
        .brands-section[data-count="2"] .expand-btn,
        .categories-main-section[data-count="2"] .expand-btn,
        .brands-section[data-count="3"] .expand-btn,
        .categories-main-section[data-count="3"] .expand-btn,
        .brands-section[data-count="4"] .expand-btn,
        .categories-main-section[data-count="4"] .expand-btn,
        .brands-section[data-count="5"] .expand-btn,
        .categories-main-section[data-count="5"] .expand-btn,
        .brands-section[data-count="6"] .expand-btn,
        .categories-main-section[data-count="6"] .expand-btn,
        .brands-section[data-count="7"] .expand-btn,
        .categories-main-section[data-count="7"] .expand-btn,
        .brands-section[data-count="8"] .expand-btn,
        .categories-main-section[data-count="8"] .expand-btn {
            display: none;
        }
        
        .section-link:hover::after {
            transform: translateX(2px);
        }
        
        /* Special Categories */
        .special-categories {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
            margin-bottom: 0px;
        }
        
        .category-card {
            background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
            backdrop-filter: blur(20px);
            border-radius: 20px;
            padding: 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 1px solid rgba(255,255,255,0.3);
            position: relative;
            overflow: hidden;
        }
        
        .category-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(248,118,0,0.05), transparent);
            transition: left 0.5s ease;
        }
        
        .category-card:hover::before {
            left: 100%;
        }
        
        .special-promo {
            background: linear-gradient(135deg, #ff6b6b, #ee5a52);
            color: white;
        }
        
        .special-new {
            background: linear-gradient(135deg, #4ecdc4, #44a08d);
            color: white;
        }
        
        .category-card:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: 0 20px 40px rgba(0,0,0,0.15);
        }
        
        .category-icon {
            width: 60px;
            height: 60px;
            margin: 0 auto 12px auto;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 16px;
            background: rgba(255,255,255,0.2);
        }
        
        .category-icon img {
            width: 40px;
            height: 40px;
            object-fit: contain;
        }
        
        .category-name {
            font-weight: 600;
            font-size: 1rem;
        }
        
        .category-badge {
            position: absolute;
            top: 12px;
            right: 12px;
            background: rgba(255,255,255,0.9);
            color: #f87600;
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 0.7rem;
            font-weight: 700;
        }
        
        /* Brands and Categories Grid */
        .brands-grid,
        .categories-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            margin-bottom: 20px;
            grid-auto-rows: 1fr;
        }
        
        .brands-grid .category-card,
        .categories-grid .category-card {
            padding: 10px 6px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            gap: 6px;
        }
        
        .brands-grid .category-icon,
        .categories-grid .category-icon {
            width: 54px !important;
            height: 54px !important;
            min-width: 54px !important;
            border-radius: 50% !important;
            flex: 0 0 54px !important;
        }
        
        .brands-grid .category-icon img,
        .categories-grid .category-icon img {
            width: 100% !important;
            height: 100% !important;
            object-fit: contain !important;
            border-radius: 50% !important;
        }
        
        .brands-grid .category-name,
        .categories-grid .category-name {
            font-size: 0.72rem !important;
            text-align: center !important;
            line-height: 1.3 !important;
            min-height: 2.6em !important;
            display: -webkit-box !important;
            -webkit-line-clamp: 2 !important;
            line-clamp: 2 !important;
            -webkit-box-orient: vertical !important;
            overflow: hidden !important;
        }
        
        /* Products Sections */
        .product-sections {
            padding: 0 20px;
        }
        
        .products-section {
            margin-bottom: 6px;
            background: rgba(255,255,255,0.7);
            backdrop-filter: blur(10px);
            border-radius: 12px;
            padding: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.03);
        }
        
        @media (min-width: 480px) {
            .products-section {
                padding: 10px;
                border-radius: 14px;
            }
        }
        
        @media (min-width: 768px) {
            .products-section {
                padding: 14px;
                margin-bottom: 10px;
                border-radius: 16px;
            }
        }
        
        @media (min-width: 1024px) {
            .products-section {
                padding: 18px;
                margin-bottom: 12px;
                border-radius: 18px;
            }
        }

        /* Products Filter */
        .products-filter {
            display: flex;
            gap: 8px;
        }
        
        .filter-btn {
            padding: 8px 16px;
            border: 1px solid rgba(248,118,0,0.2);
            background: rgba(248,118,0,0.05);
            color: #f87600;
            border-radius: 12px;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .filter-btn.active,
        .filter-btn:hover {
            background: #f87600;
            color: white;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(248,118,0,0.2);
        }
        
        /* Products Grid */
        .products-grid-container {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
            margin-top: 20px;
        }
        
        /* Load More Section */
        .load-more-section {
            text-align: center;
            margin-top: 30px;
        }
        
        .load-more-btn {
            background: linear-gradient(135deg, #f87600, #e65100);
            color: white;
            border: none;
            padding: 16px 32px;
            border-radius: 16px;
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 0 auto;
        }
        
        .load-more-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(248,118,0,0.3);
        }
        
        /* Floating Action Button */
        .fab-container {
            position: fixed;
            bottom: 100px;
            right: 16px;
            z-index: 1100;
        }
        
        .fab-main {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background: linear-gradient(135deg, #f87600, #e65100);
            border: none;
            color: white;
            font-size: 1.2rem;
            cursor: pointer;
            box-shadow: 0 8px 25px rgba(248,118,0,0.3);
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .fab-main:hover {
            transform: scale(1.1);
            box-shadow: 0 12px 35px rgba(248,118,0,0.4);
        }
        
        .fab-menu {
            position: absolute;
            bottom: 60px;
            right: 0;
            display: flex;
            flex-direction: column;
            gap: 10px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px);
            transition: all 0.3s ease;
            z-index: 1101;
            pointer-events: none;
        }
        
        .fab-menu.active {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
            pointer-events: auto;
        }
        
        .fab-item {
            display: flex;
            align-items: center;
            gap: 10px;
            background: #fff;
            padding: 12px 16px;
            border-radius: 12px;
            text-decoration: none;
            color: #333;
            font-size: 0.9rem;
            box-shadow: 0 4px 16px rgba(0,0,0,0.15);
            transition: all 0.2s ease;
            white-space: nowrap;
        }
        
        .fab-item i {
            color: #f87600;
            font-size: 1.1rem;
            width: 20px;
            text-align: center;
        }
        
        .fab-item:hover {
            background: #f87600;
            color: white;
            transform: translateX(-4px);
        }
        
        .fab-item:hover i {
            color: white;
        }
        
        /* Loading Overlay */
        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255,255,255,0.9);
            backdrop-filter: blur(10px);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 9999;
        }
        
        .loading-spinner {
            text-align: center;
        }
        
        .spinner {
            width: 40px;
            height: 40px;
            border: 4px solid rgba(248,118,0,0.1);
            border-left: 4px solid #f87600;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 16px auto;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .loading-spinner p {
            color: #f87600;
            font-weight: 500;
        }
        
        /* Content Header */
        .content-header {
            padding: 20px;
            background: transparent;
        }
        
        /* Delivery Status - Modern Minimal Design */
        .delivery-status-container {
            margin-bottom: 24px;
            position: relative;
        }
        
        .delivery-title {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(165, 96, 34, 0.1);
            border-radius: 16px;
            padding: 16px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-size: 1rem;
            font-weight: 500;
            color: #2c3e50;
            box-shadow: 0 2px 12px rgba(165, 96, 34, 0.08);
        }
        
        .delivery-title:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(165, 96, 34, 0.15);
            border-color: rgba(165, 96, 34, 0.2);
            background: rgba(255, 255, 255, 1);
        }
        
        .delivery-arrow {
            color: #f87600;
            font-size: 0.9rem;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        /* Search Container - Minimal Design */
        .search-container {
            position: relative;
            margin-bottom: 24px;
        }
        
        .search-container input {
            width: 100%;
            padding: 16px 24px 16px 56px;
            border: 2px solid rgba(165, 96, 34, 0.08);
            border-radius: 16px;
            font-size: 1rem;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 2px 12px rgba(165, 96, 34, 0.05);
        }
        
        .search-container input:focus {
            outline: none;
            border-color: rgba(165, 96, 34, 0.3);
            box-shadow: 0 4px 20px rgba(165, 96, 34, 0.12);
            background: rgba(255, 255, 255, 1);
        }
        
        .search-container input::placeholder {
            color: rgba(44, 62, 80, 0.5);
            font-weight: 400;
        }
        
        .search-icon-header {
            position: absolute;
            left: 20px;
            top: 50%;
            transform: translateY(-50%);
            color: rgba(165, 96, 34, 0.6);
            font-size: 1.1rem;
            transition: color 0.3s ease;
        }
        
        .search-container input:focus + .search-icon-header {
            color: #f87600;
        }
        
        .search-peeking-dog {
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            width: 32px;
            height: 32px;
            border-radius: 50%;
            box-shadow: 0 2px 8px rgba(165, 96, 34, 0.15);
            transition: transform 0.3s ease;
        }
        
        .search-container:hover .search-peeking-dog {
            transform: translateY(-50%) scale(1.05);
        }
        
        /* Ad Container - Clean Design */
        .ad-container {
            padding: 60px 0px 0px 0px;
        }
        
        .ad-main {
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 8px 32px rgba(165, 96, 34, 0.12);
            position: relative;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        
        /* Swiper Pagination - Refined */
        .ad-swiper .swiper-pagination {
            bottom: 16px !important;
            display: flex;
            justify-content: center;
            gap: 8px;
        }
        
        .ad-swiper .swiper-pagination-bullet {
            width: 12px;
            height: 12px;
            background: rgba(255, 255, 255, 0.4);
            opacity: 1;
            margin: 0;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 50%;
            border: 2px solid rgba(255, 255, 255, 0.2);
        }
        
        .ad-swiper .swiper-pagination-bullet-active {
            background: rgba(255, 255, 255, 0.9);
            transform: scale(1.2);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            border-color: rgba(255, 255, 255, 0.8);
        }
        
        /* Category Grid - Modern Minimal */
        .new-category-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
            padding: 20px;
        }
        
        .new-category-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            padding: 20px 12px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(20px);
            border-radius: 20px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            border: 1px solid rgba(165, 96, 34, 0.08);
            position: relative;
            overflow: hidden;
        }
        
        .new-category-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(165, 96, 34, 0.05), transparent);
            transition: left 0.5s ease;
        }
        
        .new-category-item:hover::before {
            left: 100%;
        }
        
        .new-category-item:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 32px rgba(165, 96, 34, 0.15);
            border-color: rgba(165, 96, 34, 0.2);
            background: rgba(255, 255, 255, 1);
        }
        
        .new-category-icon {
            width: 56px;
            height: 56px;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 16px;
            background: rgba(165, 96, 34, 0.08);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }
        
        .new-category-item:hover .new-category-icon {
            background: rgba(165, 96, 34, 0.12);
            transform: scale(1.05);
        }
        
        .new-category-icon img {
            width: 36px;
            height: 36px;
            object-fit: contain;
            transition: transform 0.3s ease;
        }
        
        .new-category-item:hover .new-category-icon img {
            transform: scale(1.1);
        }
        
        .new-category-item span {
            font-size: 0.85rem;
            font-weight: 500;
            color: #2c3e50;
            transition: color 0.3s ease;
        }
        
        .new-category-item:hover span {
            color: #f87600;
        }

        /* Main Product List */
        .product-list-container {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            padding: 10px 10px;
        }
        
        .product-card {
            background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
            border-radius: 16px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.03);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            border: 1px solid rgba(255, 255, 255, 0.5);
        }
        
        .product-card:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12), 0 8px 15px rgba(0, 0, 0, 0.06);
        }
        
        /* Animation styles */
        .fade-in { 
            animation: fadeIn 0.5s; 
        }
        
        @keyframes fadeIn { 
            from { 
                opacity: 0; 
                transform: translateY(20px);
            } 
            to { 
                opacity: 1; 
                transform: none; 
            } 
        }
        
        .skeleton-card { 
            background: #f5f5f5; 
            position: relative; 
            overflow: hidden; 
        }
        
        .skeleton { 
            background: linear-gradient(90deg, #f5f5f5 25%, #e0e0e0 50%, #f5f5f5 75%); 
            background-size: 200% 100%; 
            animation: skeleton-loading 1.2s infinite linear; 
            border-radius: 8px; 
        }
        
        .skeleton-fav { 
            width: 32px; 
            height: 32px; 
            position: absolute; 
            top: 10px; 
            right: 10px; 
        }
        
        .skeleton-img { 
            width: 100%; 
            height: 120px; 
            margin-bottom: 10px; 
        }
        
        .skeleton-title { 
            width: 80%; 
            height: 18px; 
            margin: 15px auto 8px auto; 
        }
        
        .skeleton-price { 
            width: 60%; 
            height: 16px; 
            margin: 0 auto 10px auto; 
        }
        
        .skeleton-btn { 
            width: 90%; 
            height: 32px; 
            margin: 0 auto; 
        }
        
        @keyframes skeleton-loading { 
            0% { 
                background-position: 200% 0; 
            } 
            100% { 
                background-position: -200% 0; 
            } 
        }

        /* News Unread Count Badge */
        .news-unread-count {
            position: absolute;
            top: -2px;
            right: 8px;
            background: red;
            color: white;
            border-radius: 50%;
            padding: 2px 6px;
            font-size: 0.7rem;
            min-width: 18px;
            height: 18px;
            display: flex;
            justify-content: center;
            align-items: center;
            line-height: 1;
            font-weight: 600;
            box-shadow: 0 2px 6px rgba(255, 71, 87, 0.4);
            animation: pulse 2s infinite;
            border: 2px solid white;
        }
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }
        
        /* --- Toast Notification --- */
        .toast-notification {
            position: fixed;
            bottom: 100px; /* Above nav bar */
            left: 50%;
            transform: translateX(-50%);
            background-color: rgba(28, 28, 30, 0.9);
            color: white;
            padding: 12px 20px;
            border-radius: 25px;
            font-size: 0.9rem;
            z-index: 1001;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s, visibility 0.3s;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .toast-notification.show {
            opacity: 1;
            visibility: visible;
        }
        
        /* Delivery Modal - Force Selection (for first-time users) */
        .delivery-modal-overlay.active {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 2500;
            pointer-events: all;
        }
        
        /* Responsive Design */
        @media (max-width: 768px) {
            .delivery-card-container,
            .delivery-modal-content {
                width: 95vw;
                margin: 10px;
                padding: 10px 10px;
                max-width: 95vw;
            }
            
            .delivery-card-header,
            .delivery-option-item,
            .delivery-modal-option {
                padding: 15px;
            }
            
            .delivery-option-icon {
                width: 45px;
                height: 45px;
            }
            
            .delivery-option-content h4 {
                font-size: 1rem;
            }
            
            .delivery-modal-banner {
                width: 80px;
                height: 80px;
            }
            
            .delivery-modal-content h3 {
                font-size: 1.3rem;
            }
            
            .delivery-modal-icon {
                width: 50px;
                height: 50px;
                font-size: 1.5rem;
                margin-right: 15px;
            }
            
            .delivery-modal-text {
                font-size: 1.1rem;
            }
            
            .hero-section {
                padding: 16px 16px 24px 16px;
            }
            
            .welcome-message h2 {
                font-size: 1.5rem;
            }
            
            .welcome-message p {
                font-size: 0.9rem;
            }
            
            .search-input-wrapper {
                padding: 3px 3px 3px 16px;
                margin-top: -28px;
            }
            
            .search-input-wrapper input {
                padding: 14px 0;
                font-size: 0.95rem;
            }
            
            .search-btn {
                padding: 10px 14px;
            }
            
            .promotions-section,
            .categories-section,
            .product-sections {
                padding: 16px;
            }
            
            .products-section {
                padding: 20px;
            }
            
            .section-title {
                font-size: 1.2rem;
            }
            
            .section-icon {
                font-size: 1.1rem;
            }
            
            .special-categories {
                gap: 12px;
            }
            
            .category-card {
                padding: 16px;
            }
            
            .category-icon {
                width: 50px;
                height: 50px;
            }
            
            .products-swiper .swiper-slide {
                transform: scale(0.88);
            }
            
            .products-swiper .swiper-slide-active {
                transform: scale(1.18);
            }
            
            .products-swiper .swiper-slide-next,
            .products-swiper .swiper-slide-prev {
                transform: scale(0.98);
            }
            
            .category-icon img {
                width: 32px;
                height: 32px;
            }
            
            .category-name {
                font-size: 0.9rem;
            }
            
            .brands-grid,
            .categories-grid {
                grid-template-columns: repeat(4, 1fr);
                gap: 8px;
            }
            
            .brands-grid .category-card,
            .categories-grid .category-card {
                padding: 8px 4px;
            }
            
            .products-grid-container {
                gap: 12px;
                padding: 8px;
            }
            
            .fab-container {
                bottom: 100px;
                right: 12px;
            }
        }
        
        /* Loader and utilities */
        .loader {
            display: none;
            text-align: center;
            padding: 20px;
            color: #7f8c8d;
        }
        
        .not-found {
            text-align: center;
            padding: 60px 40px;
            color: #7f8c8d;
            grid-column: 1 / -1;
            font-size: 1.1rem;
            font-weight: 300;
        }
        
        .fade-in {
            animation: fadeIn 0.5s ease;
        }
        
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* Skeleton Loading */
        .skeleton-card {
            background: rgba(255, 255, 255, 0.9);
            border-radius: 20px;
            padding: 20px;
            position: relative;
            overflow: hidden;
        }
        
        .skeleton {
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: skeleton-loading 1.5s infinite;
            border-radius: 8px;
        }
        
        .skeleton-fav {
            width: 36px;
            height: 36px;
            position: absolute;
            top: 15px;
            right: 15px;
            border-radius: 50%;
        }
        
        .skeleton-img {
            width: 100%;
            height: 180px;
            margin: 15px 0 20px 0;
        }
        
        .skeleton-title {
            width: 80%;
            height: 20px;
            margin: 0 auto 10px auto;
        }
        
        .skeleton-price {
            width: 60%;
            height: 18px;
            margin: 0 auto 15px auto;
        }
        
        .skeleton-btn {
            width: 100%;
            height: 44px;
            margin-top: auto;
        }
        
        @keyframes skeleton-loading {
            0% {
                background-position: 200% 0;
            }
            100% {
                background-position: -200% 0;
            }
        }
        
        /* Responsive Design - Enhanced */
        @media (max-width: 768px) {
            .hero-section {
                padding: 16px 16px 24px 16px;
            }
            
            .welcome-message h2 {
                font-size: 1.5rem;
            }
            
            .welcome-message p {
                font-size: 0.9rem;
            }
            
            .search-input-wrapper {
                padding: 3px 3px 3px 16px;
            }
            
            .search-input-wrapper input {
                padding: 14px 0;
                font-size: 0.95rem;
            }
            
            .search-btn {
                padding: 10px 14px;
            }
            
            .promotions-section,
            .categories-section,
            .product-sections {
                padding: 16px;
            }
            
            .products-section {
                padding: 20px;
            }
            
            .section-title {
                font-size: 1.2rem;
            }
            
            .section-icon {
                font-size: 1.1rem;
            }
            .fas.fa-star.section-icon {
                color: red;
            }
            .special-categories {
                gap: 12px;
            }
            
            .category-card {
                padding: 16px;
            }
            
            .category-icon {
                width: 50px;
                height: 50px;
            }
            
            .category-icon img {
                width: 50px;
                height: 50px;
            }
            
            .brands-grid,
            .categories-grid {
                grid-template-columns: repeat(4, 1fr);
                gap: 12px;
            }
            
            .brands-grid .category-card,
            .categories-grid .category-card {
                padding: 12px 8px;
                min-height: 85px;
            }
            
            .products-grid-container {
                gap: 12px;
            }

            .fab-container {
                bottom: 95px;
                right: 12px;
            }
            
            .fab-main {
                width: 52px;
                height: 52px;
                font-size: 1.2rem;
            }
            
            .products-filter {
                flex-wrap: wrap;
                gap: 6px;
            }
            
            .filter-btn {
                padding: 6px 12px;
                font-size: 0.8rem;
            }
        }
        
        @media (max-width: 480px) {
            .hero-section {
                padding: 12px 12px 20px 12px;
            }
            
            .welcome-message h2 {
                font-size: 1.3rem;
            }
            
            .delivery-status-header {
                padding: 16px;
                gap: 12px;
            }
            
            .delivery-status-icon {
                width: 50px;
                height: 50px;
            }
            
            .delivery-emoji {
                font-size: 1.6rem;
            }
            
            .delivery-status-type {
                font-size: 1.1rem;
            }
            
            .delivery-change-btn {
                padding: 10px 12px;
                font-size: 0.8rem;
            }
            
            .delivery-options-popup {
                width: 95%;
                max-width: none;
                margin: 10px;
            }
            
            .delivery-popup-header {
                padding: 20px 16px 12px 16px;
            }
            
            .delivery-popup-header h3 {
                font-size: 1.2rem;
            }
            
            .delivery-popup-body {
                padding: 16px;
            }
            
            .delivery-option-card {
                padding: 16px;
            }
            
            .delivery-option-icon {
                width: 40px;
                height: 40px;
                font-size: 1.5rem;
                margin-right: 12px;
            }
            
            .delivery-option-info h4 {
                font-size: 1.1rem;
            }
            
            .delivery-option-desc {
                font-size: 0.85rem;
            }
            
            .search-input-wrapper input {
                padding: 12px 0;
                font-size: 0.9rem;
            }
            
            .promotions-section,
            .categories-section,
            .product-sections {
                padding: 0px;
            }
            
            .products-section {
                padding: 0px;
            }
            
            .section-header {
                flex-direction: row;
                align-items: center;
                justify-content: space-between;
                gap: 8px;
                margin-bottom: 0px;
                padding: 10px;
                height: 50px;
            }
            
            .section-title {
                font-size: 1.1rem;
                flex: 1;
            }
            
            .section-link {
                font-size: 0.8rem;
                padding: 6px 12px;
                flex-shrink: 0;
            }
            
            .special-categories {
                gap: 10px;
                padding: 10px;
            }
            
            .category-card {
                padding: 14px 10px;
            }
            
            .category-name {
                font-size: 0.85rem;
            }
            
            .brands-grid,
            .categories-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 10px;
            }
            
            .brands-grid .category-card,
            .categories-grid .category-card {
                padding: 10px 6px;
                min-height: 75px;
            }
            
            .category-icon {
                width: 40px;
                height: 40px;
            }
            
            .category-icon img {
                width: 50px;
                height: 50px;
            }

            .load-more-btn {
                padding: 14px 24px;
                font-size: 0.9rem;
            }
            
            .fab-item {
                padding: 10px 12px;
                font-size: 0.85rem;
            }
            
            .fab-item span {
                display: none;
            }
            
            .promotion-title {
                font-size: 1.1rem;
            }
            
            .promotion-desc {
                font-size: 0.85rem;
            }
        }
        
        @media (min-width: 769px) {
            .brands-grid,
            .categories-grid {
                grid-template-columns: repeat(6, 1fr);
            }
            
            .special-categories {
                grid-template-columns: repeat(4, 1fr);
            }
            
            .products-grid-container {
                grid-template-columns: repeat(3, 1fr);
            }
            
            .hero-section {
                padding: 30px 30px 40px 30px;
            }
            
            .search-input-wrapper {
                max-width: 600px;
                margin: 0 auto;
            }
        }
        
        @media (min-width: 1024px) {
            .products-grid-container {
                grid-template-columns: repeat(4, 1fr);
            }
            
            .brands-grid,
            .categories-grid {
                grid-template-columns: repeat(8, 1fr);
            }
            
            .special-categories {
                grid-template-columns: repeat(6, 1fr);
            }
        }

        /* Responsive styles for profile avatar fallback */
        @media (max-width: 768px) {
            .profile-avatar-fallback {
                width: 36px;
                height: 36px;
                border-width: 2px;
            }

            .profile-avatar-fallback svg {
                width: 18px;
                height: 18px;
            }
        }

        @media (max-width: 480px) {
            .profile-avatar-fallback {
                width: 32px;
                height: 32px;
                border-width: 2px;
            }

            .profile-avatar-fallback svg {
                width: 16px;
                height: 16px;
            }
        }

        @media (max-width: 360px) {
            .profile-avatar-fallback {
                width: 28px;
                height: 28px;
                border-width: 2px;
            }

            .profile-avatar-fallback svg {
                width: 14px;
                height: 14px;
            }
        }

        /* PromoJa Responsive Styles */
        @media (max-width: 768px) {
            .promoja-card {
                height: 180px;
            }
            
            .promoja-image-wrapper {
                height: 100px;
            }
            
            .promoja-mobile-info {
                padding: 12px;
            }
            
            .mobile-title {
                font-size: 0.9rem;
            }
            
            .mobile-condition {
                font-size: 0.8rem;
            }
        }

        @media (max-width: 480px) {
            .promoja-section {
                margin: 0px;
                padding: 2px 0px;
            }
            
            .promoja-card {
                height: 160px;
            }
            
            .promoja-image-wrapper {
                height: 90px;
            }
            
            .promoja-mobile-info {
                padding: 10px;
            }
            
            .mobile-title {
                font-size: 0.85rem;
                line-height: 1.2;
            }
            
            .mobile-condition {
                font-size: 0.75rem;
                margin-bottom: 8px;
            }
            
            .mobile-reward {
                padding: 6px 10px;
                font-size: 0.8rem;
            }
            
            .mobile-reward-tag {
                top: 6px;
                right: 6px;
                padding: 3px 6px;
                font-size: 0.7rem;
            }
        }

/* ========================================
   Consolidated UI polish and component sizes
   Keep this section as the single source for shared sizing.
   ======================================== */
:root {
    --header-height: 65px;
    --bottom-nav-height: 76px;
    --content-max-width: 1600px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --card-border: 1px solid rgba(248, 118, 0, 0.12);
    --card-shadow: 0 4px 16px rgba(54, 37, 21, 0.06);
    --card-shadow-hover: 0 12px 28px rgba(248, 118, 0, 0.16);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button,
a,
[role=button] {
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    display: block;
}

.main-content {
    width: 100%;
    max-width: 1600px;
    margin-inline: auto;
    padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 12px);
    animation: pageLoad 0.35s ease-out;
}

@keyframes pageLoad {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header and bottom navigation */
.app-header {
    min-height: var(--header-height);
}

.app-header-title {
    font-size: clamp(1.35rem, 4vw, 1.9rem);
    letter-spacing: 0;
}

.header-icons {
    gap: 10px;
}

.header-icons .cart-icon-wrapper,
.menu-icon,
.logout-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    min-height: var(--bottom-nav-height);
    padding: 8px max(8px, env(safe-area-inset-left, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-right, 0px));
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(248, 118, 0, 0.16);
    box-shadow: 0 -6px 22px rgba(54, 37, 21, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.bottom-nav .nav-item {
    min-width: 54px;
    min-height: 50px;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    position: relative;
    border-radius: 14px;
    color: #7b7b7b;
    font-size: 0.68rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.bottom-nav .nav-item svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.bottom-nav .nav-item span {
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.1;
}

.bottom-nav .nav-item:hover,
.bottom-nav .nav-item.active {
    color: var(--primary-color);
    background: rgba(248, 118, 0, 0.09);
}

.bottom-nav .nav-item:active {
    transform: scale(0.96);
}

.bottom-nav .nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 28px;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: var(--primary-gradient);
    transform: translateX(-50%);
}

/* Sections */
.promotions-section,
.categories-section,
.product-sections {
    width: 100%;
    max-width: var(--content-max-width);
    margin-inline: auto;
}

.product-sections {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.products-section,
.brands-section,
.categories-main-section {
    background: rgb(255 250 241 / 92%);
    border: var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
}

.products-section {
    padding: 12px;
}

.section-header,
.section-header-small {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.section-title,
.section-title-small {
    min-width: 0;
    margin: 0;
    color: #2f2f2f;
    font-weight: 700;
    line-height: 1.25;
}

.section-title {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
}

.section-title-small {
    font-size: clamp(0.95rem, 2vw, 1.08rem);
}

.section-link,
.view-all-link {
    min-height: 34px;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgba(248, 118, 0, 0.18);
    border-radius: 999px;
    background: rgba(248, 118, 0, 0.06);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.section-link:hover,
.view-all-link:hover {
    background: var(--primary-gradient);
    color: #fff;
    transform: translateY(-1px);
}

/* Product sliders */
.products-slider-container {
    width: 100%;
    margin-top: 8px;
    padding: 6px 2px 10px;
    overflow: hidden;
    position: relative;
    contain: layout;
}

.products-swiper {
    width: 100%;
    overflow: hidden;
    padding: 4px 2px 14px;
    touch-action: pan-y;
}

.products-swiper .swiper-wrapper {
    align-items: stretch;
}

.products-swiper .swiper-slide {
    height: auto;
    min-width: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    box-sizing: border-box;
}

.slider-product-card {
    width: 100%;
    min-width: 0;
    min-height: 252px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: #fff;
    border: var(--card-border);
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
    cursor: pointer;
    user-select: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.slider-product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(248, 118, 0, 0.28);
    box-shadow: var(--card-shadow-hover);
}

.slider-product-card:active {
    transform: translateY(-1px) scale(0.99);
}

.slider-product-card .product-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}

.slider-product-card .product-image {
    width: 100%;
    height: 100%;
    padding: 8px;
    object-fit: contain;
    background: #fff;
    transition: transform 0.25s ease;
}

.slider-product-card:hover .product-image {
    transform: scale(1.035);
}

.slider-product-card .product-info {
    flex: 1 1 auto;
    min-height: 0;
    padding: 9px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.slider-product-card .product-name {
    min-height: 2.55em;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #2f2f2f;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
}

.slider-product-card .product-footer {
    margin-top: auto;
    padding-top: 2px;
}

.slider-product-card .price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

.slider-product-card .price-section {
    min-width: 0;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
}

.slider-product-card .product-price,
.slider-product-card .current-price {
    color: var(--text-price);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.1;
}

.slider-product-card .original-price {
    color: #9a9a9a;
    font-size: 0.68rem;
    text-decoration: line-through;
}

.slider-product-card .discount-badge {
    padding: 2px 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff4757, #e74c3c);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
}

.slider-product-card .product-meta {
    min-height: 18px;
    margin: 0;
}

.slider-product-card .category-brand-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.slider-product-card .category-tag,
.slider-product-card .brand-tag {
    max-width: 100%;
    padding: 2px 6px;
    border-radius: 999px;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 600;
    line-height: 1.2;
}

.slider-product-card .category-tag {
    background: linear-gradient(135deg, #007aff, #0056b3);
}

.slider-product-card .brand-tag {
    background: linear-gradient(135deg, #95561e, #a66228);
}

.slider-product-card .new-badge,
.slider-product-card .favorite-btn,
.slider-product-card .view-icon {
    position: absolute;
    z-index: 20;
}

.slider-product-card .new-badge {
    top: 8px;
    left: 8px;
    padding: 3px 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, #007aff, #0056b3);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
}

.slider-product-card .favorite-btn {
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
    color: #9aa0a6;
    cursor: pointer;
}

.slider-product-card .favorite-btn:hover,
.slider-product-card .favorite-btn.is-favorite {
    background: #fff;
    color: #ff3b3b;
}

.slider-product-card .favorite-btn i {
    pointer-events: none;
}

.slider-product-card .favorite-btn i.favorited {
    color: #ff3b3b;
}

.slider-product-card .view-icon,
.select-btn-slider {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 3px 10px rgba(248, 118, 0, 0.25);
}

.slider-product-card .view-icon {
    right: 8px;
    bottom: 8px;
}

.select-btn-slider {
    font-size: 0.72rem;
    cursor: pointer;
    flex-shrink: 0;
}

.slider-product-card .promo-row {
    width: 100%;
    margin-bottom: 4px;
}

.slider-product-card .promo-unit-line {
    max-width: 100%;
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    background: var(--primary-gradient);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slider-product-card .promo-unit-line s {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.62rem;
}

/* Product grid cards */
.products-grid-container,
.product-list-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.product-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: var(--card-border);
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(248, 118, 0, 0.25);
    box-shadow: var(--card-shadow-hover);
}

.product-card .product-image-wrapper {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.product-card .favorite-btn {
    z-index: 60;
    pointer-events: auto;
}

.product-card .product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.product-card .product-info {
    padding: 9px 10px 10px;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    margin-top: auto;
    min-height: 0;
}

.product-card .product-name {
    min-height: 2.5em;
    font-size: 0.82rem;
    line-height: 1.3;
}

.product-card .product-price,
.product-card .current-price {
    color: var(--text-price);
    font-size: 1.05rem;
    font-weight: 700;
}

.product-card .price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
}

.product-card .product-footer {
    margin-top: auto;
}

@media (max-width: 1099px) {
    .products-grid-container,
    .product-list-container {
        align-items: stretch;
        grid-auto-rows: 1fr;
    }

    .products-grid-container .product-card,
    .product-list-container .product-card {
        min-height: clamp(300px, 74vw, 360px);
    }

    .products-grid-container .product-card .product-image-wrapper,
    .product-list-container .product-card .product-image-wrapper {
        aspect-ratio: auto;
        flex-basis: clamp(150px, 42vw, 190px);
        min-height: 150px;
        max-height: 190px;
    }

    .products-grid-container .product-card .product-info,
    .product-list-container .product-card .product-info {
        flex: 0 0 auto !important;
        margin-top: auto !important;
        justify-content: flex-start !important;
        min-height: 0 !important;
    }

    .products-grid-container .product-card .product-footer,
    .product-list-container .product-card .product-footer {
        margin-top: 8px !important;
    }

    .products-grid-container .product-card .product-name,
    .product-list-container .product-card .product-name {
        margin-bottom: 0;
    }
}
.product-card .price-row .price-section {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    flex: 1 1 auto;
    min-width: 0;
}
.product-card .add-to-cart-btn {
    flex-shrink: 0;
    margin-left: auto;
}

.add-to-cart-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 3px 10px rgba(248, 118, 0, 0.25);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.add-to-cart-btn:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 6px 16px rgba(248, 118, 0, 0.34);
}

.add-to-cart-btn:disabled,
.add-to-cart-btn.out-of-stock {
    background: #b8b8b8;
    cursor: not-allowed;
    box-shadow: none;
}

/* Brand and category grids */
.brands-section,
.categories-main-section {
    padding: 12px;
}

.brands-grid,
.categories-grid,
.expandable-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.category-card,
.brand-card {
    min-width: 0;
    min-height: 88px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    border: 1px solid rgba(248, 118, 0, 0.10);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 2px 10px rgba(54, 37, 21, 0.04);
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card:hover,
.brand-card:hover {
    transform: translateY(-2px);
    border-color: rgba(248, 118, 0, 0.24);
    box-shadow: 0 8px 20px rgba(248, 118, 0, 0.12);
}

.category-icon,
.brand-card .category-icon,
.expand-icon-wrapper {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(248, 118, 0, 0.10);
    box-shadow: 0 2px 8px rgba(54, 37, 21, 0.06);
    overflow: hidden;
}

.category-icon img,
.brand-card .category-icon img {
    width: 88%;
    height: 88%;
    object-fit: contain;
}

.category-name,
.brand-card .category-name {
    max-width: 100%;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #414141;
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.expand-card {
    background: linear-gradient(135deg, #fff8f0, #fff3e5) !important;
}

.expand-icon-wrapper {
    border-style: dashed;
    border-color: rgba(248, 118, 0, 0.35);
    color: var(--primary-color);
}

/* Controls and feedback */
.filter-btn,
.load-more-btn {
    min-height: 40px;
    border-radius: 999px;
    font-weight: 600;
}

.filter-btn.active,
.filter-btn:hover,
.load-more-btn {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
}

.main-notification-toast {
    max-width: min(420px, calc(100vw - 24px));
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: var(--radius-md);
    border-left: 4px solid #27ae60;
    background: #fff;
    box-shadow: 0 12px 32px rgba(54, 37, 21, 0.16);
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.main-notification-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.main-notification-toast .icon {
    color: #27ae60;
    flex-shrink: 0;
}

.main-notification-toast .close-btn {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #8b8b8b;
    cursor: pointer;
}

.swiper-pagination-bullet {
    background: var(--primary-color);
    opacity: 0.35;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

::selection {
    background: rgba(248, 118, 0, 0.24);
    color: #2d2d2d;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f7f2ed;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #f87600, #e65100);
    border-radius: 999px;
}

/* Responsive size scale */
@media (min-width: 481px) {
    .brands-grid,
    .categories-grid,
    .expandable-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .slider-product-card {
        min-height: 270px;
    }

    .slider-product-card .product-name {
        font-size: 0.84rem;
    }
}

@media (min-width: 769px) {
    .product-sections {
        padding: 16px 20px;
        gap: 18px;
    }

    .products-section,
    .brands-section,
    .categories-main-section {
        padding: 16px;
    }

    .products-grid-container,
    .product-list-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .brands-grid,
    .categories-grid,
    .expandable-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 12px;
    }

    .category-card,
    .brand-card {
        min-height: 104px;
        padding: 12px 10px;
    }

    .category-icon,
    .brand-card .category-icon,
    .expand-icon-wrapper {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }

    .slider-product-card {
        min-height: 300px;
    }

    .slider-product-card .product-info {
        padding: 10px 12px 12px;
    }

    .slider-product-card .product-name {
        font-size: 0.88rem;
    }

    .slider-product-card .product-price,
    .slider-product-card .current-price {
        font-size: 1.08rem;
    }
}

@media (min-width: 1024px) {
    .products-grid-container,
    .product-list-container {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .brands-grid,
    .categories-grid,
    .expandable-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .category-card,
    .brand-card {
        min-height: 140px;
        padding: 16px 12px;
        gap: 12px;
    }

    .category-icon,
    .brand-card .category-icon,
    .expand-icon-wrapper {
        width: 110px;
        height: 110px;
        flex-basis: 110px;
    }

    .category-name,
    .brand-card .category-name {
        font-size: 1.1rem;
    }
}

@media (min-width: 1440px) {
    .brands-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }

    .categories-grid,
    .expandable-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    :root {
        --bottom-nav-height: 72px;
    }

    .app-header-title {
        font-size: 1.45rem;
    }

    .product-sections,
    .promotions-section,
    .categories-section {
        padding-inline: 8px;
    }

    .products-section,
    .brands-section,
    .categories-main-section {
        padding: 10px;
        border-radius: var(--radius-md);
    }

    .section-header,
    .section-header-small {
        gap: 8px;
        margin-bottom: 8px;
    }

    .section-link,
    .view-all-link {
        min-height: 32px;
        padding: 5px 10px;
        font-size: 0.74rem;
    }

    .slider-product-card {
        min-height: 236px;
    }

    .slider-product-card .product-info {
        padding: 7px 8px 9px;
        gap: 5px;
    }

    .slider-product-card .product-name {
        min-height: 2.5em;
        font-size: 0.74rem;
    }

    .slider-product-card .product-price,
    .slider-product-card .current-price {
        font-size: 0.9rem;
    }

    .slider-product-card .favorite-btn {
        width: 30px;
        height: 30px;
    }

    .slider-product-card .view-icon,
    .select-btn-slider {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }

    .products-grid-container,
    .product-list-container {
        gap: 8px;
    }

    .product-card .product-name {
        font-size: 0.76rem;
    }

    .category-card,
    .brand-card {
        min-height: 82px;
        padding: 8px 6px;
    }

    .category-icon,
    .brand-card .category-icon,
    .expand-icon-wrapper {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .category-name,
    .brand-card .category-name {
        font-size: 0.68rem;
    }

    .bottom-nav .nav-item {
        min-width: 48px;
        font-size: 0.64rem;
    }

    .bottom-nav .nav-item svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 360px) {
    .slider-product-card {
        min-height: 224px;
    }

    .slider-product-card .product-name,
    .product-card .product-name {
        font-size: 0.7rem;
    }

    .category-icon,
    .brand-card .category-icon,
    .expand-icon-wrapper {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .category-name,
    .brand-card .category-name {
        font-size: 0.64rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
