/* Mobile-First Responsive Design */

/* Visit Business Button Mobile Styles */
@media (max-width: 768px) {
    .visit-business-btn {
        padding: 0.6rem 0.8rem !important;
        font-size: 0.85rem !important;
        min-width: 80px !important;
        flex: 0 0 auto !important;
    }

    .visit-business-btn i {
        font-size: 0.85rem !important;
    }

    .modal-actions {
        gap: 0.5rem !important;
        flex-wrap: nowrap !important;
    }

    .modal-actions .add-to-cart-btn {
        font-size: 0.9rem !important;
        padding: 0.6rem 0.8rem !important;
        flex: 1 1 auto !important;
    }

    /* Ensure modal content fits properly on mobile */
    #dealModal .modal-content {
        padding: 1rem !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }

    /* Adjust price badge positioning */
    .modal-deal-pricing {
        margin: 0.8rem 0 !important;
    }

    /* Responsive business info */
    .business-info {
        padding: 0.8rem !important;
        font-size: 0.9rem !important;
    }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1998;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hide floating banner when mobile menu is open */
.mobile-menu-overlay.active ~ .mobile-floating-banner,
body:has(.mobile-side-menu.active) .mobile-floating-banner {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateX(-50%) translateY(100px) !important;
    pointer-events: none !important;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: flex;
    position: fixed;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1877f2 0%, #166fe5 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2001;
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.3);
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Mobile Login Icon Button - Removed from mobile header */

/* Hover Effects */
.mobile-menu-toggle:hover {
    box-shadow: 0 12px 40px rgba(24, 119, 242, 0.4);
    border-color: rgba(24, 119, 242, 0.5);
}

/* Creative Menu Icon Container */
.creative-menu-icon {
    position: relative;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 3x3 Dot Grid */
.menu-dots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 4px;
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 2;
}

/* Individual Dots */
.dot {
    width: 4px;
    height: 4px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(255, 255, 255, 0.4);
    position: relative;
}

/* Staggered animations for each dot - REMOVED */
.dot-1 { }
.dot-2 { }
.dot-3 { }
.dot-4 { }
.dot-5 { }
.dot-6 { }
.dot-7 { }
.dot-8 { }
.dot-9 { }

/* @keyframes dotFloat REMOVED */

/* Rotating Ring Effect */
.menu-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 2px solid transparent;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    border-right: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    z-index: 1;
}

/* @keyframes ringRotate REMOVED */

/* Pulsing Background */
.menu-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35px;
    height: 35px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

/* @keyframes pulseGlow REMOVED */

/* Hover Effects */
.mobile-menu-toggle:hover {
    box-shadow: 0 12px 40px rgba(24, 119, 242, 0.4);
}

.mobile-menu-toggle:hover .dot {
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
    box-shadow: 0 3px 10px rgba(255, 255, 255, 0.7);
}

.mobile-menu-toggle:hover .menu-ring {
    border-top-color: rgba(255, 255, 255, 0.6);
    border-right-color: rgba(255, 255, 255, 0.4);
}

.mobile-menu-toggle:hover .menu-pulse {
    opacity: 1;
}

/* Active State - Transform to Plus/X */
.mobile-menu-toggle.active {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 15px 50px rgba(231, 76, 60, 0.6);
}

.mobile-menu-toggle.active .dot {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.mobile-menu-toggle.active .dot-1 {
}

.mobile-menu-toggle.active .dot-2 {
}

.mobile-menu-toggle.active .dot-3 {
}

.mobile-menu-toggle.active .dot-4 {
}

.mobile-menu-toggle.active .dot-5 {
    border-radius: 2px;
}

.mobile-menu-toggle.active .dot-6 {
}

.mobile-menu-toggle.active .dot-7 {
}

.mobile-menu-toggle.active .dot-8 {
}

.mobile-menu-toggle.active .dot-9 {
}

.mobile-menu-toggle.active .menu-ring {
    border-color: rgba(255, 255, 255, 0.6);
}

.mobile-menu-toggle.active .menu-pulse {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
}

/* activeRingPulse and activeGlow animations removed */

.menu-icon {
    position: relative;
    width: 24px;
    height: 20px;
    margin: auto;
}

.menu-icon span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 3px;
}

.menu-icon span:nth-child(1) {
    top: 0;
}

.menu-icon span:nth-child(2) {
    top: 50%;
}

.menu-icon span:nth-child(3) {
    bottom: 0;
}

.mobile-menu-toggle.active .menu-icon span:nth-child(1) {
}

.mobile-menu-toggle.active .menu-icon span:nth-child(2) {
    opacity: 0;
}

/* glowPulse animation removed */

.mobile-menu-toggle.active .menu-icon span:nth-child(3) {
}

/* Creative Side Menu */
.mobile-side-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 280px;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(248, 250, 252, 0.95) 50%,
        rgba(255, 255, 255, 0.92) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    overflow-y: auto;
    box-shadow: 5px 0 30px rgba(24, 119, 242, 0.15);
    border-right: 1px solid rgba(24, 119, 242, 0.1);
}

.mobile-side-menu.active {
    left: 0;
}

.mobile-menu-header {
    padding: 80px 20px 30px;
    text-align: center;
    border-bottom: 1px solid rgba(24, 119, 242, 0.1);
}

.mobile-menu-logo {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 20px !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    justify-content: flex-start !important;
}

.mobile-menu-logo img {
    width: 50px;
    height: 50px;
}

/* Premium Mobile Menu Animations */
.mobile-close-btn:hover {
    background: #166fe5 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 16px rgba(24, 119, 242, 0.4) !important;
}

.mobile-close-btn:active {
    transform: scale(0.95) !important;
}

.premium-menu-item:hover {
    transform: translateX(8px) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.1) 0%, rgba(24, 119, 242, 0.05) 100%) !important;
    border-left-color: #1877f2 !important;
}

.premium-menu-item:active {
    transform: translateX(4px) scale(0.98) !important;
}

/* Staggered animation for menu items */
.mobile-menu-items .premium-menu-item:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu-items .premium-menu-item:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu-items .premium-menu-item:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu-items .premium-menu-item:nth-child(4) { animation-delay: 0.25s; }
.mobile-menu-items .premium-menu-item:nth-child(5) { animation-delay: 0.3s; }
.mobile-menu-items .premium-menu-item:nth-child(6) { animation-delay: 0.35s; }
.mobile-menu-items .premium-menu-item:nth-child(7) { animation-delay: 0.4s; }
.mobile-menu-items .premium-menu-item:nth-child(8) { animation-delay: 0.45s; }

.mobile-side-menu.active .premium-menu-item {
    opacity: 1;
    transform: translateX(0);
}

/* slideInFromLeft animation removed */

/* Enhanced menu opening animation removed */
.mobile-side-menu {
    transform: translateX(-100%) !important;
}

.mobile-side-menu.active {
    transform: translateX(0) !important;
}

/* Premium Quick Access Animations */
.premium-quick-item:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
}

.premium-quick-item:active {
}

/* Staggered animation for quick access items */
/* animation-delays removed for mobile-category-grid items */

.mobile-side-menu.active .premium-quick-item {
    opacity: 1;
    transform: translateY(0);
}

/* fadeInUp animation removed */

.mobile-menu-title {
    color: #1877f2;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    background: linear-gradient(135deg, #1877f2 0%, #166fe5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile Menu Items */
.mobile-menu-items {
    padding: 20px 0;
}

.mobile-menu-item {
    display: block;
    padding: 15px 25px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 16px;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-weight: 500;
}

.mobile-menu-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(24, 119, 242, 0.1);
    transition: all 0.3s ease;
}

.mobile-menu-item:hover:before {
    left: 0;
}

.mobile-menu-item:hover {
    padding-left: 35px;
    background: rgba(24, 119, 242, 0.08);
    color: #1877f2;
}

.mobile-menu-item i {
    margin-right: 12px;
    width: 20px;
    display: inline-block;
    text-align: center;
}

/* Mobile Categories Grid */
.mobile-categories {
    padding: 20px;
    border-top: 1px solid rgba(24, 119, 242, 0.1);
}

.mobile-categories-title {
    color: #2c3e50;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 15px;
    opacity: 0.8;
    font-weight: 700;
}

.mobile-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.mobile-category-item {
    background: rgba(24, 119, 242, 0.08);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
}

.mobile-category-item:hover {
    background: rgba(24, 119, 242, 0.15);
    transform: scale(1.05);
    color: #1877f2;
}

.mobile-category-item i {
    display: block;
    font-size: 20px;
    margin-bottom: 5px;
}

/* Mobile Menu Footer */
.mobile-menu-footer {
    padding: 20px;
    border-top: 1px solid rgba(24, 119, 242, 0.1);
    margin-top: auto;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(24, 119, 242, 0.08);
    border-radius: 10px;
    color: #2c3e50;
}

.mobile-user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1877f2 0%, #166fe5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

/* Responsive Breakpoints */

/* Tablet Styles (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .container {
        max-width: 95%;
        padding: 0 15px;
    }
    
    .nav-menu {
        gap: 10px;
    }
    
    .nav-menu a {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .deals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .restaurant-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Cart Button - Global Styles */
.mobile-cart-button {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 47px;
    height: 47px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 8px 25px rgba(24, 119, 242, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 2px 5px rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10001;
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.mobile-cart-button:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2), 0 3px 6px rgba(24, 119, 242, 0.15);
    border-color: rgba(24, 119, 242, 0.3);
}

.mobile-cart-button:active {
    transform: scale(0.95);
    background: rgba(248, 249, 250, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), inset 0 1px 2px rgba(24, 119, 242, 0.1);
}

/* Creative Cart Icon Container */
.creative-cart-icon {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cart Body */
.cart-body {
    position: relative;
    width: 50px;
    height: 45px;
    z-index: 2;
    /* animation: cartBounce 4s ease-in-out infinite; */ /* Removed bouncing animation */
}

/* Blue Cart Image */
.cart-base {
    width: 50px;
    height: 45px;
    position: relative;
    background: url('blue-cart.png') no-repeat center center;
    background-size: contain;
    /* animation: cartBounce 4s ease-in-out infinite; */ /* Removed bouncing animation */
}

/* Hide pseudo elements */
.cart-base::before,
.cart-base::after {
    display: none;
}

/* Hide Handle (part of image now) */
.cart-handle {
    display: none;
}

.cart-handle::before,
.cart-handle::after {
    display: none;
}

/* Hide Wheels (part of image now) */
.cart-wheels {
    display: none;
}

.cart-wheels::before,
.cart-wheels::after {
    display: none;
}

.wheel {
    display: none;
}

.wheel-left,
.wheel-right {
    display: none;
}

/* Remove old grid - now using basket weave pattern in ::before */
.cart-grid {
    display: none;
}

/* Falling Items & Fireworks - Disabled */
.falling-items {
    display: none !important; /* Disabled falling items animation */
    position: absolute;
    top: -25px;
    left: -5px;
    width: 50px;
    height: 60px;
    pointer-events: none;
    z-index: 1;
}

.falling-item {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0;
    animation: fallDown 3s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 0 15px currentColor,
        0 0 30px currentColor,
        0 0 45px rgba(255, 255, 255, 0.6),
        inset 0 2px 5px rgba(255, 255, 255, 0.9);
    filter: brightness(1.5) saturate(2) drop-shadow(0 0 8px currentColor);
}

.item-1 {
    left: 10px;
    animation-delay: 0s;
    animation-duration: 2.5s;
    background: linear-gradient(135deg, #ff1744 0%, #ff6b6b 30%, #ff8a80 50%, #ff6b6b 70%, #ff1744 100%);
    color: #ff1744;
}

.item-2 {
    left: 20px;
    animation-delay: 0.3s;
    animation-duration: 3s;
    background: linear-gradient(135deg, #00e676 0%, #4ecdc4 30%, #80deea 50%, #4ecdc4 70%, #00e676 100%);
    color: #00e676;
}

.item-3 {
    left: 30px;
    animation-delay: 0.6s;
    animation-duration: 2.8s;
    background: linear-gradient(135deg, #2196f3 0%, #45b7d1 30%, #81d4fa 50%, #45b7d1 70%, #2196f3 100%);
    color: #2196f3;
}

.item-4 {
    left: 15px;
    animation-delay: 0.9s;
    animation-duration: 3.2s;
    background: linear-gradient(135deg, #ffc107 0%, #f9ca24 30%, #ffeb3b 50%, #f0932b 70%, #ff9800 100%);
    color: #ffc107;
}

.item-5 {
    left: 25px;
    animation-delay: 1.2s;
    animation-duration: 2.7s;
    background: linear-gradient(135deg, #9c27b0 0%, #6c5ce7 30%, #b39ddb 50%, #a29bfe 70%, #7c4dff 100%);
    color: #9c27b0;
}

.item-6 {
    left: 35px;
    animation-delay: 1.5s;
    animation-duration: 3.1s;
    background: linear-gradient(135deg, #e91e63 0%, #fd79a8 30%, #f8bbd9 50%, #fdcb6e 70%, #ff5722 100%);
    color: #e91e63;
}

.item-7 {
    left: 12px;
    animation-delay: 1.8s;
    animation-duration: 2.9s;
    background: linear-gradient(135deg, #00c853 0%, #00b894 30%, #4caf50 50%, #55efc4 70%, #8bc34a 100%);
    color: #00c853;
}

.item-8 {
    left: 28px;
    animation-delay: 2.1s;
    animation-duration: 3.3s;
    background: linear-gradient(135deg, #ff5722 0%, #e17055 30%, #ffab91 50%, #fab1a0 70%, #ff7043 100%);
    color: #ff5722;
}

@keyframes fallDown {
    0% {
        opacity: 0;
        transform: translateY(-15px) rotate(0deg) scale(0.2);
        filter: brightness(3) saturate(3) hue-rotate(0deg);
    }
    10% {
        opacity: 1;
        transform: translateY(-5px) rotate(45deg) scale(1.5);
        filter: brightness(2.5) saturate(2.5) hue-rotate(30deg);
    }
    30% {
        opacity: 1;
        transform: translateY(15px) rotate(135deg) scale(1.2);
        filter: brightness(2.2) saturate(2.2) hue-rotate(90deg);
    }
    50% {
        opacity: 1;
        transform: translateY(35px) rotate(225deg) scale(1.4);
        filter: brightness(2) saturate(2) hue-rotate(180deg);
    }
    70% {
        opacity: 1;
        transform: translateY(50px) rotate(315deg) scale(1.6);
        filter: brightness(1.8) saturate(1.8) hue-rotate(270deg);
    }
    90% {
        opacity: 0.8;
        transform: translateY(65px) rotate(405deg) scale(1.3);
        filter: brightness(1.5) saturate(1.5) hue-rotate(330deg);
    }
    100% {
        opacity: 0;
        transform: translateY(75px) rotate(450deg) scale(0.3);
        filter: brightness(1) saturate(1) hue-rotate(360deg);
    }
}

/* Fireworks Animation */
@keyframes fireworksBurst {
    0% {
        opacity: 0;
        transform: scale(0) translateY(0);
        filter: brightness(3) blur(2px);
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
    5% {
        opacity: 1;
        transform: scale(0.3) translateY(-5px);
        filter: brightness(4) blur(0px);
        box-shadow: 0 0 15px currentColor, 0 0 25px currentColor;
    }
    10% {
        opacity: 1;
        transform: scale(0.8) translateY(-10px);
        filter: brightness(3.5) blur(0px);
        box-shadow: 0 0 25px currentColor, 0 0 40px currentColor;
    }
    20% {
        opacity: 1;
        transform: scale(1.5) translateY(-15px);
        filter: brightness(3);
        box-shadow: 0 0 30px currentColor, 0 0 50px currentColor, inset 0 0 10px rgba(255,255,255,0.8);
    }
    30% {
        opacity: 0.9;
        transform: scale(2.5) translateY(-18px);
        filter: brightness(2.5);
        box-shadow: 0 0 35px currentColor, 0 0 60px currentColor;
    }
    40% {
        opacity: 0.8;
        transform: scale(3.5) translateY(-20px);
        filter: brightness(2);
        box-shadow: 0 0 30px currentColor, 0 0 50px currentColor;
    }
    60% {
        opacity: 0.5;
        transform: scale(4.5) translateY(-22px);
        filter: brightness(1.5) blur(1px);
        box-shadow: 0 0 20px currentColor, 0 0 30px currentColor;
    }
    80% {
        opacity: 0.2;
        transform: scale(5) translateY(-24px);
        filter: brightness(1) blur(2px);
        box-shadow: 0 0 10px currentColor;
    }
    100% {
        opacity: 0;
        transform: scale(5.5) translateY(-25px);
        filter: brightness(0.5) blur(3px);
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Sparkle Effect */
@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.5) rotate(180deg);
    }
}

/* Cart Glow */
.cart-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35px;
    height: 35px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: cartGlow 4s ease-in-out infinite;
    z-index: 0;
}

/* Fireworks Container - Disabled */
.fireworks-container {
    display: none !important; /* Disabled fireworks animation */
    position: absolute;
    top: -30px;
    left: -10px;
    width: 60px;
    height: 70px;
    pointer-events: none;
    z-index: 3;
}

.firework {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    opacity: 0;
    animation: fireworksBurst 3s cubic-bezier(0.17, 0.67, 0.83, 0.67) infinite;
    box-shadow:
        0 0 8px currentColor,
        0 0 15px currentColor,
        inset 0 0 2px rgba(255, 255, 255, 0.9);
}

.firework-1 {
    left: 20px;
    top: 15px;
    background: radial-gradient(circle, #ff1744 0%, #ff6b6b 50%, transparent 100%);
    animation-delay: 0.3s;
}

.firework-2 {
    left: 40px;
    top: 10px;
    background: radial-gradient(circle, #00e676 0%, #4ecdc4 50%, transparent 100%);
    animation-delay: 0.9s;
}

.firework-3 {
    left: 30px;
    top: 5px;
    background: radial-gradient(circle, #ffc107 0%, #f9ca24 50%, transparent 100%);
    animation-delay: 1.5s;
}

.firework-4 {
    left: 25px;
    top: 20px;
    background: radial-gradient(circle, #9c27b0 0%, #6c5ce7 50%, transparent 100%);
    animation-delay: 2.1s;
}

@keyframes cartGlow {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(0.8); 
        opacity: 0.4; 
        filter: brightness(1.5) saturate(1.5);
    }
    25% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.7;
        filter: brightness(2) saturate(2);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.4); 
        opacity: 0.8;
        filter: brightness(2.5) saturate(2.5);
    }
    75% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.6;
        filter: brightness(2) saturate(2);
    }
}

/* Cart Bouncing Animation - Disabled */
/* @keyframes cartBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1);
    }
    10% {
        transform: translateY(-8px) scale(1.05);
    }
    30% {
        transform: translateY(-6px) scale(1.03);
    }
    60% {
        transform: translateY(-4px) scale(1.02);
    }
    90% {
        transform: translateY(-2px) scale(1.01);
    }
} */

@keyframes cartPulse {
    0% {
        box-shadow: 0 6px 20px rgba(24, 119, 242, 0.3);
    }
    50% {
        box-shadow: 0 8px 30px rgba(24, 119, 242, 0.5), 0 0 20px rgba(24, 119, 242, 0.3);
    }
    100% {
        box-shadow: 0 6px 20px rgba(24, 119, 242, 0.3);
    }
}

/* Apply bouncing animation to cart buttons */
.mobile-cart-button {
    animation: cartPulse 3s ease-in-out infinite; /* Removed cartBounce */
}

.cart-btn {
    animation: cartPulse 3.5s ease-in-out infinite; /* Removed cartBounce */
}

/* Hover Effects */
.mobile-cart-button:hover {
    transform: translateY(-3px) scale(1.08) !important;
    box-shadow: 0 12px 40px rgba(24, 119, 242, 0.5) !important;
    background: linear-gradient(135deg, #166fe5 0%, #0866d0 100%) !important;
    animation: none !important;
}

.mobile-cart-button:hover .cart-body {
    animation: cartShake 0.6s ease-in-out infinite;
}

.mobile-cart-button:hover .cart-base {
    background: linear-gradient(135deg, #ffffff 0%, #cce7ff 100%);
    box-shadow: 0 3px 10px rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

.mobile-cart-button:hover .wheel {
    animation-duration: 0.5s;
    background: linear-gradient(135deg, #ffffff 0%, #b3d9ff 100%);
    transform: scale(1.2);
}

.mobile-cart-button:hover .falling-item {
    animation-duration: 1s;
}

.mobile-cart-button:hover .cart-glow {
    opacity: 0.8;
    animation-duration: 2s;
}

/* Active State */
.mobile-cart-button.active {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%) !important;
    box-shadow: 0 15px 50px rgba(39, 174, 96, 0.6) !important;
}

.mobile-cart-button.active .cart-body {
    animation: cartCelebration 1s ease-in-out;
}

.mobile-cart-button.active .cart-glow {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: activeCartGlow 2s ease-in-out infinite;
}

@keyframes cartShake {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-1px) translateY(-1px); }
    75% { transform: translateX(1px) translateY(1px); }
}

@keyframes cartCelebration {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-5deg); }
    50% { transform: scale(1.2) rotate(0deg); }
    75% { transform: scale(1.1) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes activeCartGlow {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1); 
        opacity: 0.5; 
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.4); 
        opacity: 0.8; 
    }
}

.mobile-cart-badge {
    position: absolute !important;
    top: -12px !important;
    right: -8px !important;
    background: linear-gradient(135deg, #ff4757 0%, #ff6b6b 100%) !important;
    color: white !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-shadow:
        0 4px 12px rgba(255, 71, 87, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.3) !important;
    border: 2px solid white !important;
    animation: pulseCartNotification 2s infinite !important;
    z-index: 10 !important;
    transform: scale(1) !important;
    transition: all 0.3s ease !important;
}

/* Enhanced pulse animation for cart badge */
@keyframes pulseCartNotification {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 4px 12px rgba(255, 71, 87, 0.4),
            0 2px 4px rgba(0, 0, 0, 0.1),
            inset 0 1px 2px rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: scale(1.15);
        box-shadow:
            0 6px 20px rgba(255, 71, 87, 0.6),
            0 3px 8px rgba(0, 0, 0, 0.15),
            inset 0 1px 2px rgba(255, 255, 255, 0.4);
    }
}

/* Make cart badge more prominent on hover */
.mobile-cart-button:hover .mobile-cart-badge {
    transform: scale(1.2) !important;
    box-shadow:
        0 6px 20px rgba(255, 71, 87, 0.5),
        0 3px 8px rgba(0, 0, 0, 0.2) !important;
}

/* Animation when cart count changes */
.mobile-cart-badge.updated {
    animation: bounceCartScale 0.6s ease !important;
}

@keyframes bounceCartScale {
    0% { transform: scale(1); }
    30% { transform: scale(1.4); }
    60% { transform: scale(0.9); }
    80% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Desktop Styles - Hide mobile elements */
@media screen and (min-width: 769px) {
    .mobile-cart-button {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Mobile Styles (max-width: 768px) */
@media screen and (max-width: 768px) {
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    /* Ensure logo is visible */
    .logo {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }
    
    .logo-icon {
        display: block !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
    }
    
    .brand-text {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .brand-text h1 {
        font-size: 1.4rem !important;
        margin: 0 !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }
    
    .brand-tagline {
        font-size: 0.75rem !important;
        margin: 0 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }
    
    /* Make header solid on mobile */
    .header {
        background: linear-gradient(135deg,
            rgba(255,255,255,1) 0%,
            rgba(248,249,250,1) 30%,
            rgba(240,242,247,1) 60%,
            rgba(255,255,255,1) 100%) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
        border-bottom: 2px solid rgba(24, 119, 242, 0.12) !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        padding: 0 70px;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 70px !important;
        /* iOS Scroll Fix - use 3D transform */
        -webkit-transform: translate3d(0, 0, 0) !important;
        transform: translate3d(0, 0, 0) !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
    }
    
    .header .container {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex: 1 !important;
        padding: 5px 10px !important;
        margin: 0 !important;
        max-width: calc(100% - 140px) !important;
        overflow: visible !important;
    }
    
    
    
    /* Push content below solid header */
    .hero {
        margin-top: 0 !important;
    }
    
    /* Creative larger carousel with centered content */
    .premium-hero-carousel,
    .hero-carousel-container {
        margin-top: 0 !important;
        padding-top: 0 !important;
        min-height: 900px !important;
        position: relative !important;
        width: 100% !important;
        overflow: visible !important;
    }
    
    .hero-slide {
        position: relative !important;
        overflow: hidden !important;
        min-height: 900px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
    }
    
    .hero-slide:not(.active) {
        display: none !important;
    }
    
    .hero-slide.active {
        display: flex !important;
    }
    
    /* Force all carousel images to load */
    .hero-carousel-slides .hero-slide {
        opacity: 0 !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        transition: opacity 0.5s ease !important;
    }
    
    .hero-carousel-slides .hero-slide.active {
        opacity: 1 !important;
        position: relative !important;
    }
    
    .hero-slide img,
    .hero-slide-image img {
        width: 100% !important;
        height: 900px !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .hero-slide-image {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 1 !important;
    }
    
    .hero-slide-content {
        position: absolute !important;
        top: 45% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 95% !important;
        max-width: none !important;
        background: transparent !important;
        backdrop-filter: none !important;
        border-radius: 0 !important;
        padding: 40px 15px !important;
        text-align: center !important;
        z-index: 10 !important;
        border: none !important;
        box-shadow: none !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .hero-title {
        font-size: 42px !important;
        margin: 0 0 25px 0 !important;
        color: white !important;
        font-weight: 900 !important;
        line-height: 1.1 !important;
        text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.9), 0 0 25px rgba(0, 0, 0, 0.7) !important;
        width: 100% !important;
        display: block !important;
    }
    
    .hero-subtitle {
        font-size: 22px !important;
        margin: 0 0 40px 0 !important;
        color: white !important;
        line-height: 1.4 !important;
        text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.7) !important;
        font-weight: 500 !important;
        width: 100% !important;
        display: block !important;
    }
    
    .hero-cta {
        padding: 16px 32px !important;
        font-size: 16px !important;
        border-radius: 40px !important;
        font-weight: 600 !important;
        letter-spacing: 1px !important;
        text-transform: uppercase !important;
        background: linear-gradient(135deg, #1877f2 0%, #166fe5 100%) !important;
        color: white !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        box-shadow: 
            0 8px 25px rgba(24, 119, 242, 0.3),
            0 4px 15px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
        position: relative !important;
        overflow: hidden !important;
        cursor: pointer !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
    }
    
    .hero-cta::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: -100% !important;
        width: 100% !important;
        height: 100% !important;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent) !important;
        transition: left 0.6s !important;
    }
    
    .hero-cta:hover::before {
        left: 100% !important;
    }
    
    .hero-cta:hover {
        transform: translateY(-6px) scale(1.05) !important;
        box-shadow: 0 15px 45px rgba(24, 119, 242, 0.6), 0 0 60px rgba(22, 111, 229, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.3) !important;
        border-color: rgba(255, 255, 255, 0.5) !important;
    }
    
    .hero-cta:active {
        transform: translateY(-2px) scale(1.02) !important;
        box-shadow: 0 5px 20px rgba(24, 119, 242, 0.5), 0 0 30px rgba(22, 111, 229, 0.4) !important;
    }
    
    .hero-cta i {
        font-size: 16px !important;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2)) !important;
    }
    
    /* Hero category styling */
    .hero-category {
        font-size: 12px !important;
        font-weight: 500 !important;
        color: rgba(255, 255, 255, 0.9) !important;
        padding: 0.25rem 0.8rem !important;
        border-radius: 20px !important;
        background: rgba(255, 255, 255, 0.15) !important;
        margin-bottom: 15px !important;
        display: inline-block !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
    }
    
    /* Hide desktop navigation */
    .nav-menu {
        display: none;
    }
    
    /* Ensure side menu is visible */
    .mobile-side-menu {
        display: block;
    }
    
    .nav-actions {
        gap: 10px;
    }
    
    .nav-actions button {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    /* Mobile search bar */
    .search-section {
        padding: 80px 15px 40px;
    }
    
    .premium-search-container {
        flex-direction: column;
        gap: 15px;
        overflow: visible !important;
        isolation: isolate;
    }
    
    .search-location-selector {
        width: 100%;
        overflow: visible !important;
    }
    
    .premium-search-bar {
        overflow: visible !important;
    }
    
    .premium-search-dropdown {
        max-height: 600px !important;
        z-index: 999999 !important;
    }
    
    .location-dropdown {
        max-height: 600px !important;
        z-index: 9999999 !important;
    }
    
    .search-input-wrapper {
        width: 100%;
    }
    
    /* Mobile hero section */
    .hero-section {
        padding: 20px 15px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    /* ===== PREMIUM MOBILE CATEGORIES REDESIGN ===== */
    .categories {
        padding: 60px 0 100px 0 !important;
        background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 50%, #f0f4ff 100%) !important;
        position: relative !important;
        overflow: visible !important;
        margin-bottom: 60px !important;
        min-height: auto !important;
        height: auto !important;
    }

    .categories .container {
        overflow: visible !important;
        height: auto !important;
        min-height: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .categories::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: 
            radial-gradient(circle at 20% 20%, rgba(24, 119, 242, 0.03) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(22, 111, 229, 0.03) 0%, transparent 50%) !important;
        pointer-events: none !important;
    }
    
    .categories-header {
        text-align: center !important;
        margin-bottom: 40px !important;
        position: relative !important;
        z-index: 2 !important;
    }
    
    .categories-header h3 {
        font-size: 32px !important;
        font-weight: 700 !important;
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
        margin-bottom: 15px !important;
        position: relative !important;
    }
    
    .categories-header h3::after {
        content: '' !important;
        position: absolute !important;
        bottom: -10px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 80px !important;
        height: 3px !important;
        background: linear-gradient(90deg, #1877f2, #166fe5) !important;
        border-radius: 2px !important;
    }
    
    /* ===== MOBILE 2-ROW HORIZONTAL CAROUSEL ===== */
    .categories-carousel-wrapper {
        position: relative !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 auto !important;
        height: auto !important;
        min-height: auto !important;
        width: calc(100vw - 30px) !important;
        max-width: calc(100vw - 30px) !important;
    }

    .categories-carousel-container {
        overflow-x: scroll !important;
        overflow-y: hidden !important;
        margin: 0 !important;
        padding: 20px 0 20px 0 !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        width: 100% !important;
        max-width: 100% !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-behavior: smooth !important;
        scroll-snap-type: x mandatory !important;
        scroll-padding-left: 15px !important;
    }

    .categories-carousel-container::-webkit-scrollbar {
        display: none !important;
    }

    .categories-carousel {
        display: grid !important;
        grid-template-columns: none !important;
        grid-template-rows: repeat(2, 1fr) !important;
        grid-auto-flow: column !important;
        grid-auto-columns: 160px !important;
        gap: 5px !important;
        row-gap: 20px !important;
        column-gap: 5px !important;
        padding: 0 15px 0 15px !important;
        width: max-content !important;
        overflow: visible !important;
    }

    /* 2-row horizontal carousel - fixed width cards */
    .categories-carousel > .category-card {
        width: 160px !important;
        min-width: 160px !important;
    }

    /* Force 2-row horizontal carousel - highest specificity */
    .categories .categories-carousel-wrapper .categories-carousel-container .categories-carousel {
        display: grid !important;
        grid-template-columns: none !important;
        grid-template-rows: repeat(2, 1fr) !important;
        grid-auto-flow: column !important;
        grid-auto-columns: 160px !important;
        row-gap: 20px !important;
        column-gap: 5px !important;
        width: max-content !important;
    }
    
    /* Mobile carousel arrows - HIDDEN */
    .carousel-btn,
    .carousel-btn-prev,
    .carousel-btn-next {
        display: none !important;
    }
    
    .carousel-btn::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.15) 0%,
            transparent 50%,
            rgba(255, 255, 255, 0.15) 100%) !important;
        border-radius: inherit !important;
        opacity: 0 !important;
        transition: opacity 0.3s ease !important;
    }
    
    .carousel-btn:hover {
        transform: translateY(-50%) scale(1.05) !important;
        background: linear-gradient(135deg, #166fe5 0%, #0866d0 100%) !important;
        box-shadow: 
            0 12px 35px rgba(24, 119, 242, 0.4),
            0 6px 20px rgba(0, 0, 0, 0.15),
            inset 0 2px 4px rgba(255, 255, 255, 0.3) !important;
        border-color: rgba(255, 255, 255, 0.25) !important;
    }
    
    .carousel-btn:hover::before {
        opacity: 1 !important;
    }
    
    .carousel-btn-prev {
        left: 12px !important;
    }
    
    .carousel-btn-next {
        right: 12px !important;
    }
    
    .carousel-indicators {
        display: flex !important;
        justify-content: center !important;
        gap: 8px !important;
        margin-top: 20px !important;
        padding: 0 20px !important;
    }
    
    .indicator {
        width: 8px !important;
        height: 8px !important;
        border-radius: 50% !important;
        background: rgba(24, 119, 242, 0.3) !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
    }
    
    .indicator.active {
        background: linear-gradient(135deg, #1877f2 0%, #166fe5 100%) !important;
        width: 24px !important;
        border-radius: 4px !important;
        transform: scale(1.1) !important;
    }
    
    .category-card {
        background: white !important;
        border: 2px solid #e2e8f0 !important;
        border-radius: 18px !important;
        padding: 18px 12px !important;
        text-align: center !important;
        cursor: pointer !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        width: 160px !important;
        min-width: 160px !important;
        max-width: 160px !important;
        min-height: 155px !important;
        max-height: none !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
        box-shadow:
            0 4px 15px rgba(24, 119, 242, 0.08),
            0 2px 8px rgba(0, 0, 0, 0.05) !important;
        scroll-snap-align: start !important;
    }

    /* Force card sizing for 2-row carousel - highest specificity */
    .categories .categories-carousel-wrapper .categories-carousel-container .categories-carousel .category-card {
        margin: 0 !important;
        min-height: 155px !important;
        height: 100% !important;
        width: 160px !important;
        min-width: 160px !important;
        max-width: 160px !important;
        scroll-snap-align: start !important;
    }
    
    .category-card::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: linear-gradient(135deg, transparent 0%, rgba(24, 119, 242, 0.05) 50%, transparent 100%) !important;
        opacity: 0 !important;
        transition: opacity 0.4s ease !important;
    }
    
    .category-card:hover::before {
        opacity: 1 !important;
    }
    
    .category-card:hover {
        background: linear-gradient(135deg, #1877f2 0%, #166fe5 50%, #0866d0 100%) !important;
        color: white !important;
        transform: translateY(-8px) scale(1.02) !important;
        border-color: rgba(24, 119, 242, 0.3) !important;
        box-shadow: 
            0 20px 60px rgba(24, 119, 242, 0.4),
            0 10px 30px rgba(24, 119, 242, 0.3),
            0 4px 20px rgba(24, 119, 242, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    }
    
    .category-card i {
        font-size: 45px !important;
        margin-bottom: 15px !important;
        margin-top: 0 !important;
        display: block !important;
        position: relative !important;
        z-index: 2 !important;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
        filter: drop-shadow(0 2px 4px rgba(24, 119, 242, 0.1)) !important;
    }
    
    .category-card:hover i {
        transform: scale(1.1) rotate(5deg) !important;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
        filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3)) !important;
    }
    
    .category-card span {
        font-weight: 600 !important;
        font-size: 15px !important;
        line-height: 1.4 !important;
        position: relative !important;
        z-index: 2 !important;
        transition: all 0.4s ease !important;
        color: #2d3748 !important;
        text-align: center !important;
        letter-spacing: 0.3px !important;
        word-wrap: break-word !important;
        hyphens: auto !important;
        max-width: 100% !important;
        padding: 0 5px !important;
    }
    
    .category-card:hover span {
        color: white !important;
        transform: translateY(-2px) !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    }
    
    .category-icon {
        font-size: 28px;
    }
    
    /* Mobile deals */
    .deals-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    /* Mobile restaurants */
    .restaurant-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    /* Enhanced mobile cards */
    .deal-card, 
    .restaurant-card {
        margin: 0 auto;
        max-width: 100%;
        border-radius: 16px;
    }
    
    .deal-card .deal-content,
    .restaurant-card .restaurant-content {
        padding: 1.5rem;
    }
    
    /* Mobile footer */
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-section {
        width: 100%;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Small mobile devices (max-width: 480px) */
@media screen and (max-width: 480px) {
    /* Adjust header padding for smaller screens */
    .header {
        padding: 0 60px !important;
    }
    
    .header .container {
        max-width: calc(100% - 120px) !important;
        padding: 5px 8px !important;
    }
    
    /* Make logo and text smaller on very small screens */
    .logo-icon {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
    }
    
    .brand-text h1 {
        font-size: 1.1rem !important;
        white-space: nowrap !important;
    }
    
    .brand-tagline {
        font-size: 0.65rem !important;
        white-space: nowrap !important;
    }
    
    /* Smaller cart and menu buttons */
    .mobile-cart-button,
    .mobile-menu-toggle {
        width: 38px !important;
        height: 38px !important;
        top: 16px !important;
    }
    
    .mobile-cart-button {
        right: 10px !important;
    }
    
    .mobile-menu-toggle {
        left: 10px !important;
    }
    
    .mobile-cart-badge {
        width: 20px !important;
        height: 20px !important;
        font-size: 10px !important;
        top: -10px !important;
        right: -6px !important;
    }
    /* Smaller mobile menu */
    .mobile-side-menu {
        width: 260px;
        left: -280px;
    }
    
    /* Smaller buttons - Enhanced for mobile */
    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 14px;
        min-height: 44px;
        border-radius: 12px;
        font-weight: 600;
    }
    
    .view-all-btn {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
    }
    
    .buy-btn {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
    }
    
    /* ===== PREMIUM SMALL MOBILE CAROUSEL ===== */
    .categories {
        padding: 40px 0 100px 0 !important;
        margin-bottom: 60px !important;
        overflow: visible !important;
        height: auto !important;
    }
    
    .categories-header h3 {
        font-size: 28px !important;
    }
    
    /* Premium Mobile Events Carousel */
    .events-section {
        margin: 1rem 0 0.5rem 0 !important;
    }

    .events-carousel {
        padding: 1rem !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        border-radius: 15px !important;
        background: linear-gradient(135deg,
            rgba(255,255,255,0.9) 0%,
            rgba(248,249,250,0.85) 50%,
            rgba(255,255,255,0.9) 100%) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border: 1px solid rgba(24, 119, 242, 0.1) !important;
        box-shadow:
            0 15px 40px rgba(24, 119, 242, 0.1),
            0 8px 20px rgba(0, 0, 0, 0.05) !important;
        margin: 1rem 0 !important;
    }

    /* Reduce spacing after events section */
    .deals {
        padding: 1rem 0 !important;
        margin-top: 0.5rem !important;
    }
    
    .events-track {
        gap: 1rem !important;
        padding: 1rem 0 !important;
    }
    
    .event-card {
        min-width: 280px !important;
        flex: 0 0 280px !important;
        border-radius: 20px !important;
        scroll-snap-align: start !important;
    }
    
    /* Show mobile carousel arrows with Facebook blue theme */
    .events-carousel .carousel-btn {
        display: flex !important;
        background: linear-gradient(135deg, #1877f2 0%, #166fe5 100%) !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 0.8rem !important;
        border-radius: 10px !important;
        box-shadow: 
            0 4px 15px rgba(24, 119, 242, 0.25),
            0 2px 8px rgba(0, 0, 0, 0.08),
            inset 0 1px 2px rgba(255, 255, 255, 0.2) !important;
        border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
    }
    
    .events-carousel .carousel-btn.prev {
        left: 10px !important;
    }
    
    .events-carousel .carousel-btn.next {
        right: 10px !important;
    }
    
    .events-carousel .carousel-btn:hover {
        background: linear-gradient(135deg, #166fe5 0%, #0866d0 100%) !important;
        transform: translateY(-50%) scale(1.05) !important;
        box-shadow: 
            0 10px 30px rgba(24, 119, 242, 0.4),
            0 5px 18px rgba(0, 0, 0, 0.15),
            inset 0 2px 4px rgba(255, 255, 255, 0.3) !important;
    }
    
    /* Mobile categories - single row carousel */
    .category-card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        min-height: 145px !important;
        max-height: fit-content !important;
        height: 100% !important;
        padding: 18px 10px !important;
        border-radius: 18px !important;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        transform-origin: center !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        align-self: stretch !important;
        box-shadow:
            0 4px 12px rgba(24, 119, 242, 0.08),
            0 2px 6px rgba(0, 0, 0, 0.05) !important;
    }
    
    .category-card:hover {
        transform: translateY(-8px) scale(1.05) !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%) !important;
    }
    
    .category-card:hover i {
        transform: scale(1.2) rotate(10deg) !important;
        filter: brightness(1.2) !important;
    }
    
    .category-card:active {
        transform: translateY(-4px) scale(1.02) !important;
        transition: all 0.1s ease !important;
    }
    
    .category-card i {
        font-size: 42px !important;
        margin-bottom: 13px !important;
        margin-top: 0 !important;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        filter: drop-shadow(0 2px 4px rgba(24, 119, 242, 0.1)) !important;
    }
    
    /* Colorful category icons */
    .category-card[data-category="Food & Dining"] i {
        background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        filter: drop-shadow(0 2px 4px rgba(255, 107, 107, 0.3)) !important;
    }
    
    .category-card[data-category="Activities"] i {
        background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        filter: drop-shadow(0 2px 4px rgba(78, 205, 196, 0.3)) !important;
    }
    
    .category-card[data-category="Trains"] i {
        background: linear-gradient(135deg, #a8e6cf 0%, #7fcdcd 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        filter: drop-shadow(0 2px 4px rgba(168, 230, 207, 0.3)) !important;
    }
    
    .category-card[data-category="Hotels"] i {
        background: linear-gradient(135deg, #ffd93d 0%, #ff6b6b 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        filter: drop-shadow(0 2px 4px rgba(255, 217, 61, 0.3)) !important;
    }
    
    .category-card[data-category="Events"] i {
        background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        filter: drop-shadow(0 2px 4px rgba(168, 237, 234, 0.3)) !important;
    }
    
    .category-card[data-category="Shopping"] i {
        background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        filter: drop-shadow(0 2px 4px rgba(255, 154, 158, 0.3)) !important;
    }
    
    .category-card[data-category="Beauty"] i {
        background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        filter: drop-shadow(0 2px 4px rgba(255, 236, 210, 0.3)) !important;
    }
    
    .category-card[data-category="Health"] i {
        background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        filter: drop-shadow(0 2px 4px rgba(168, 237, 234, 0.3)) !important;
    }
    
    .category-card[data-category="Travel"] i {
        background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        filter: drop-shadow(0 2px 4px rgba(210, 153, 194, 0.3)) !important;
    }
    
    .category-card[data-category="Automotive"] i {
        background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        filter: drop-shadow(0 2px 4px rgba(137, 247, 254, 0.3)) !important;
    }
    
    .category-card span {
        font-size: 14px !important;
        font-weight: 600 !important;
        line-height: 1.4 !important;
        max-width: 100% !important;
        text-align: center !important;
        padding: 0 4px !important;
        word-wrap: break-word !important;
        hyphens: auto !important;
    }
    
    .mobile-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Adjust card padding - Enhanced mobile experience */
    .deal-card,
    .restaurant-card {
        margin-bottom: 16px;
        box-shadow: 
            0 8px 25px rgba(24, 119, 242, 0.08),
            0 4px 12px rgba(0, 0, 0, 0.04);
    }
    
    .deal-card .deal-content,
    .restaurant-card .restaurant-content {
        padding: 1.2rem;
    }
    
    .deal-title,
    .restaurant-title {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    /* Smaller fonts */
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    h3 {
        font-size: 18px;
    }
    
    /* Stack search elements */
    .search-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .search-actions button {
        width: 100%;
        min-height: 48px;
        font-size: 16px;
    }
    
    /* Enhanced mobile search */
    .search-input-wrapper input {
        font-size: 16px;
        min-height: 48px;
    }
    
    .premium-location-select {
        font-size: 16px;
        min-height: 48px;
    }
    
    /* Better mobile sections padding */
    .hero-section,
    .categories-section,
    .deals-section,
    .events-section {
        padding: 2rem 1rem;
    }

    /* Enhanced Mobile Deal Modal */
    .modal-content {
        margin: 5% auto !important;
        width: 95% !important;
        max-width: 95% !important;
        border-radius: 20px !important;
    }

    #modalContent {
        padding: 1.5rem !important;
    }

    .modal-deal-image {
        height: 250px !important;
        border-radius: 15px !important;
        margin-bottom: 1.5rem !important;
    }

    .modal-deal-title {
        font-size: 1.5rem !important;
    }

    .modal-deal-pricing {
        flex-direction: row !important;
        padding: 1rem !important;
    }

    .modal-original-price {
        font-size: 1rem !important;
    }

    .modal-discount-price {
        font-size: 1.5rem !important;
    }

    .modal-discount {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
    }

    .modal-info-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    .deal-stats {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .grab-deal-btn {
        font-size: 1.1rem !important;
        padding: 1rem 1.5rem !important;
    }

    .close {
        top: 1rem !important;
        right: 1rem !important;
        width: 35px !important;
        height: 35px !important;
        font-size: 1.3rem !important;
    }

    /* Fix quantity selector on mobile */
    .quantity-selector {
        margin: 1.5rem 0 !important;
        padding: 0 0.5rem !important;
    }

    .quantity-controls {
        gap: 0.5rem !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .quantity-btn {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        flex-shrink: 0 !important;
        font-size: 1.3rem !important;
    }

    .quantity-input {
        width: 70px !important;
        height: 40px !important;
        font-size: 1.3rem !important;
        flex-shrink: 0 !important;
    }
}

/* Landscape Mobile */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .mobile-side-menu {
        overflow-y: auto;
    }
    
    .mobile-menu-header {
        padding: 60px 20px 20px;
    }
    
    .mobile-menu-logo {
        width: 60px;
        height: 60px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .mobile-menu-item {
        padding: 18px 25px;
    }
    
    .nav-actions button {
        min-height: 44px;
        min-width: 44px;
    }
    
    .category-card {
        min-height: 110px !important;
        touch-action: manipulation !important;
    }
    
    /* Enhanced touch scrolling for categories carousel */
    .categories-carousel-container {
        touch-action: pan-x !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Remove hover effects on touch devices */
    .mobile-menu-item:hover {
        padding-left: 25px;
        background: transparent;
        color: #2c3e50;
    }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .mobile-menu-toggle {
        border: 0.5px solid rgba(255, 255, 255, 0.2);
    }
    
    .menu-icon span {
        height: 2.5px;
    }
}

/* Wishlist Popup Mobile Image Fixes */
@media (max-width: 480px) {
    .wishlist-item-image-container {
        position: relative !important;
        flex-shrink: 0 !important;
        overflow: hidden !important;
    }

    .wishlist-item-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
        background: #f0f0f0 !important;
    }

    /* Ensure proper loading on slow connections */
    .wishlist-item-image[src] {
        min-width: 100% !important;
        min-height: 100% !important;
    }

    /* Loading state for images */
    .wishlist-item-image:not([src]),
    .wishlist-item-image[src=""] {
        background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;
    }
}

/* Extra small mobile devices - additional image constraints */
@media (max-width: 360px) {
    .wishlist-item-image {
        image-rendering: -webkit-optimize-contrast !important;
        image-rendering: crisp-edges !important;
    }
}

/* Print Styles */
@media print {
    .mobile-menu-toggle,
    .mobile-side-menu,
    .mobile-menu-overlay {
        display: none !important;
    }
}