/* ===== MOBILE-FIRST RESPONSIVE STYLES ===== */

/* Global container and smooth scrolling */
html {
    scroll-behavior: smooth !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

body {
    scroll-behavior: smooth !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

*, *::before, *::after {
    box-sizing: border-box !important;
    transition: all 0.3s ease;
}

/* Enhanced smooth scrolling and animations */
.scroll-to-top {
    transform: translateY(0);
    will-change: transform;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4) !important;
}

/* Smooth entrance animations for sections */
section {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease-out;
}

.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Prevent horizontal scroll on all major containers */
.restaurant-header,
.main-content,
.restaurant-footer,
.hero-section,
.about-food-section,
.special-dishes-section,
.footer-container {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

/* Hide mobile-specific elements on desktop */
.hero-dish-explore {
    display: none;
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0; /* no box padding */
    z-index: 1003;
    position: relative;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.hamburger-menu span {
    width: 35px;
    height: 4px; /* thicker lines */
    background: linear-gradient(90deg,#ffd700,#ffb400);
    margin: 5px 0;
    transition: 0.35s cubic-bezier(.4,.2,.2,1);
    border-radius: 3px;
    box-shadow: 0 0 4px rgba(255,215,0,0.6);
}
.hamburger-menu:hover span { filter: brightness(1.1); }
.hamburger-menu.active span { box-shadow: 0 0 6px rgba(255,215,0,0.8); }

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    animation: slideInUp 0.5s ease-out;
}

.mobile-nav-menu .nav-link {
    font-size: 1.8rem;
    color: #ffd700;
    text-decoration: none;
    padding: 1rem 2rem;
    border: 2px solid transparent;
    border-radius: 15px;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-nav-overlay.active .mobile-nav-menu .nav-link {
    animation: fadeInUp 0.6s ease-out forwards;
}

.mobile-nav-menu .nav-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav-menu .nav-link:nth-child(2) { animation-delay: 0.2s; }
.mobile-nav-menu .nav-link:nth-child(3) { animation-delay: 0.3s; }
.mobile-nav-menu .nav-link:nth-child(4) { animation-delay: 0.4s; }

.mobile-nav-menu .nav-link:hover {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-5px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Base mobile styles */
@media (max-width: 768px) {
    /* Utility: hide marked elements on mobile */
    [data-hide-mobile] { display: none !important; }

    /* Ensure hamburger sits at far right even if search hidden */
    .nav-wrapper { gap: 0.5rem; }
    .hamburger-menu { margin-left: auto; }
    /* Prevent horizontal overflow */
    body {
        max-width: 768px !important;
        margin: 0 auto !important;
        overflow-x: hidden !important;
    }
    
    /* General spacing adjustments */
    .container {
        padding: 0 1rem;
        max-width: 100% !important;
    }
    
    /* Header adjustments */
    .restaurant-header {
        padding: 10px 0;
    }
    
    .nav-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 1rem;
        position: relative;
        width: 100%;
    }
    
    .restaurant-logo {
        flex: 1;
        display: flex;
        justify-content: flex-start;
        margin-bottom: 0;
    }
    
    /* Center search in middle section */
    .nav-actions {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1rem;
    }
    
    /* Position hamburger menu on the right */
    .hamburger-menu {
        flex: initial;
        display: flex !important;
        justify-content: center;
        order: 3;
        position: absolute;
        right: 6px; /* Flush to right wall */
        top: 18px; /* Adjusted for better vertical alignment with taller logo */
        margin: 0;
        padding: 6px 4px;
    }

    /* Fluid logo scaling (enlarged) */
    .brand-logo {
        width: clamp(240px, 60vw, 420px) !important; /* Roughly ~2x previous visual size */
        height: auto !important;
        aspect-ratio: 16/9;
        object-fit: contain;
        transition: width 0.35s ease, filter 0.3s ease;
    }

    /* Slight reduction on scroll/shrink states */
    .restaurant-header.scrolled .brand-logo {
        width: clamp(220px, 55vw, 380px) !important;
    }
    .restaurant-header.shrink .brand-logo {
        width: clamp(200px, 50vw, 360px) !important;
    }
    
    /* Hide main navigation on mobile */
    .main-navigation {
        display: none !important;
    }
    
    /* Hide search from top navigation on mobile */
    .search-container {
        display: none !important;
    }
    
    /* Show hamburger menu on mobile */
    .hamburger-menu {
        display: flex !important;
    }
    
    /* Mobile Search in Hamburger Menu */
    .mobile-search-container {
        display: flex;
        align-items: center;
        margin-bottom: 20px;
        padding: 10px;
        background: rgba(255, 215, 0, 0.1);
        border-radius: 25px;
        border: 1px solid rgba(255, 215, 0, 0.3);
    }
    
    .mobile-search-input {
        flex: 1;
        background: transparent;
        border: none;
        padding: 8px 12px;
        color: #fff;
        font-size: 1rem;
        outline: none;
    }
    
    .mobile-search-input::placeholder {
        color: rgba(255, 255, 255, 0.7);
    }
    
    .mobile-search-btn {
        background: transparent;
        border: none;
        padding: 8px;
        cursor: pointer;
    }
    
    .mobile-search-icon {
        width: 20px;
        height: 20px;
        filter: brightness(0) saturate(100%) invert(85%) sepia(94%) saturate(2500%) hue-rotate(18deg);
    }
    
    /* Mobile search icon opacity control */
    .search-container.active .search-icon {
        opacity: 0;
    }
    
    .search-input-box {
        width: 40px;
        height: 35px;
        font-size: 0.9rem;
        border-radius: 15px;
        padding: 0 8px;
        border: 1px solid #ffd700;
        background: rgba(255, 215, 0, 0.1);
        color: #fff;
    }
    
    .search-input-box.active {
        width: 40px;
    }
    
    .search-input-box::placeholder {
        color: rgba(255, 255, 255, 0.7);
    }
    
    .search-icon {
        width: 20px;
        height: 20px;
        cursor: pointer;
    }
    
    /* Hero section adjustments */
    .hero-section {
        height: 70vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .dish-presentations {
        height: 100vh;
        background: transparent;
    }
    
    .hero-dish-content {
        padding: 1.5rem;
        max-width: 90%;
    }
    
    .hero-dish-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
        margin-bottom: 1rem;
    }
    
    .hero-dish-subtitle {
        font-size: clamp(1rem, 4vw, 1.4rem);
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        max-width: 280px;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .hero-dish-background {
        background-position: center;
        background-size: cover;
    }
    
    /* Add top margin to Explore button */
    .cta-button {
        margin-top: 30px !important;
    }
    
    /* About section */
    .about-section, .about-food-section {
        padding: 3rem 0;
    }
    
    .about-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .about-title {
        font-size: 2rem;
    }
    
    .about-subtitle {
        font-size: 1.1rem;
    }
    
    .about-description p {
        font-size: 1rem;
    }
    
    .about-photo {
        width: 100%;
        max-width: 350px;
        height: auto;
    }
    
    /* Special dishes section */
    .special-dishes-section {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .dishes-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .dish-card {
        height: auto;
        min-height: 220px;
    }
    
    .dish-card-image {
        height: 150px; /* enlarged further */
    }
    
    .dish-card-title {
        font-size: 1.1rem;
    }
    
    .dish-card-price {
        font-size: 1.2rem;
    }
    
    .add-to-cart-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        /* Ensure always visible & tappable on touch devices */
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateX(-50%) scale(1) !important;
    }

    /* Force visibility of title & price on mobile (avoid hover dependency) */
    .dish-card .dish-card-price,
    .dish-card .dish-card-title {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    /* === Mobile Dish Card Layout Normalization (fix disturbed layout) === */
    .dish-card {
        position: relative; /* keep relative for any absolutely positioned legacy elements */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 0; /* remove unexpected padding gaps */
        height: auto !important;
        min-height: 240px; /* slightly taller to fit stacked elements */
    }

    .dish-card-image {
        height: 176px !important; /* enlarged further */
        overflow: hidden;
    }
    .dish-card-image .card-photo,
    .dish-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* fill area uniformly */
    }

    .dish-card-content {
        flex: 1;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0.35rem;
        padding: 0.75rem 0.9rem 0.95rem !important;
        text-align: center;
    }

    /* Title always visible & not hidden on hover for touch devices */
    .dish-card-title {
        font-size: 1rem !important;
        line-height: 1.25rem;
        margin: 0 0 0.2rem !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    .dish-card:hover .dish-card-title { opacity: 1 !important; visibility: visible !important; }

    /* Price placed under title inline (remove absolute centering from desktop style) */
    .dish-card-price {
        position: static !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        margin: 0 0 0.15rem !important;
        font-size: 1.05rem !important;
        font-weight: 600;
        letter-spacing: 0.5px;
    }

    /* Make Add to Cart button a normal flow element centered below price */
    .add-to-cart-btn {
        position: static !important;
        left: auto !important;
        bottom: auto !important;
        transform: none !important;
        margin: 0.3rem 0 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        background: linear-gradient(135deg,#ffd700,#ffb400);
        color: #141313 !important;
        font-weight: 600;
        border: none;
        box-shadow: 0 4px 14px rgba(255,215,0,0.25);
    }
    .add-to-cart-btn:active { transform: scale(0.94) !important; }

    /* Slightly soften hover elevation on mobile (coarse pointer) */
    @media (hover: none) and (pointer: coarse) {
        .dish-card:hover { transform: translateY(-4px); }
    }
    
    /* Menu page specific styles */
    .menu-page-header {
        height: 300px;
        margin-top: 100px;
    }
    
    .menu-header-title {
        font-size: 2rem;
    }
    
    .menu-header-subtitle {
        font-size: 1rem;
    }
    
    /* Mobile menu categories */
    .menu-section-title {
        font-size: 2rem;
    }
    
    .menu-section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .menu-category-section {
        margin: 0 1rem 1.5rem;
    }
    
    .category-header {
        padding: 0.8rem 1.5rem;
    }
    
    .category-title {
        font-size: 1.4rem;
    }
    
    .category-toggle {
        font-size: 1.5rem;
        width: 25px;
        height: 25px;
    }
    
    .category-content.active {
        padding: 1.5rem;
    }
    
    .category-content .dishes-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Footer adjustments - Enhanced for mobile */
    .restaurant-footer {
        margin-top: 1rem;
        background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
        border-top: 1px solid rgba(255, 215, 0, 0.1);
    }
    
    .footer-container {
        padding: 0 1rem;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 3rem 0 2rem;
        text-align: center;
    }
    
    /* Hide extra footer sections on mobile - keep only logo */
    .footer-links,
    .footer-menu-categories,
    .footer-contact {
        display: none !important;
    }
    
    .footer-section {
        text-align: center;
        padding: 1.5rem;
        background: rgba(255, 215, 0, 0.02);
        border-radius: 15px;
        border: 1px solid rgba(255, 215, 0, 0.1);
    }
    
    .footer-logo {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.55rem; /* tighter gap so logo & text feel connected */
        margin-bottom: -2rem; /* slightly reduced */
    }
    
    .footer-logo-img {
    width: 170px; /* Slightly smaller on mobile to avoid pushing text */
    height: auto;
    max-width: 70%;
    }
    
    .footer-title {
        font-size: 1.5rem;
        color: #ffd700;
        margin: 0;
    }
    
    .footer-description {
        font-size: 0.95rem;
        line-height: 1.55;
        color: rgba(255, 255, 255, 0.85);
        margin: 0.3rem 0 0; /* closer to logo but not touching */
        padding: 0 0.5rem;
        max-width: 480px;
    }
    
    .footer-section-title {
        font-size: 1.3rem;
        color: #ffd700;
        margin-bottom: 1.5rem;
        position: relative;
    }
    
    .footer-section-title::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 2px;
        background: #ffd700;
    }
    
    .footer-menu {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .footer-menu li {
        margin: 0.8rem 0;
    }
    
    .footer-menu a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        font-size: 1rem;
        transition: all 0.3s ease;
        padding: 0.5rem;
        border-radius: 5px;
        display: inline-block;
    }
    
    .footer-menu a:hover {
        color: #ffd700;
        background: rgba(255, 215, 0, 0.1);
        transform: translateX(5px);
    }
    
    .contact-info {
        text-align: left;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .contact-item {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        margin: 1.2rem 0;
        padding: 1rem;
        background: rgba(255, 215, 0, 0.05);
        border-radius: 10px;
        border-left: 3px solid #ffd700;
    }
    
    .contact-icon {
        width: 24px;
        height: 24px;
        filter: brightness(0) saturate(100%) invert(85%) sepia(94%) saturate(2500%) hue-rotate(18deg);
    }
    
    .contact-details {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .contact-label {
        font-size: 0.9rem;
        color: #ffd700;
        font-weight: 600;
    }
    
    .contact-value {
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.9);
        line-height: 1.4;
    }
    
    .footer-social {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .social-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        border: 2px solid rgba(255, 215, 0, 0.3);
        border-radius: 50%;
    }

    
    .social-link img {
        width: 20px;
        height: 20px;
    }

    
    .footer-bottom {
        border-top: 1px solid rgba(255, 215, 0, 0.2);
        padding: 2rem 0;
        background: rgba(0, 0, 0, 0.5);
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .copyright {
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.7);
        line-height: 1.5;
    }
    
    .footer-bottom-links {
        display: none !important; /* Hide footer bottom links on mobile */
    }
    
    .footer-bottom-links a {
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        border-radius: 20px;
        transition: all 0.3s ease;
    }
    
    .footer-bottom-links a:hover {
        color: #ffd700;
        background: rgba(255, 215, 0, 0.1);
    }
    
    /* Contact bubbles - Fixed sticky positioning with proper spacing */
    .contact-bubbles {
        position: fixed !important;
        right: 20px !important;
        bottom: 20px !important;
        display: flex !important;
        flex-direction: column !important; /* natural: top -> bottom */
        gap: 10px !important;
        z-index: 9999 !important;
        pointer-events: auto !important;
    }
    /* WhatsApp above cart (top) */
    .whatsapp-bubble { order: 1 !important; }
    .cart-bubble { order: 2 !important; }
    
    .whatsapp-bubble,
    .cart-bubble {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 60px !important;
        height: 60px !important;
        border-radius: 50% !important;
        border: none !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        cursor: pointer !important;
        text-decoration: none !important;
        animation: bubblePulse 2s infinite ease-in-out !important;
        margin: 0 !important;
    }
    
    .whatsapp-bubble {
        background: linear-gradient(135deg, #25D366, #128C7E) !important;
    }
    
    .whatsapp-bubble:hover {
        background: linear-gradient(135deg, #128C7E, #25D366) !important;
        transform: translateY(-5px) scale(1.1) !important;
        box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4) !important;
    }
    
    
    .whatsapp-bubble {
        display: flex !important; /* Ensure WhatsApp bubble is visible on mobile */
        background: linear-gradient(135deg, #25D366, #128C7E) !important;
    }
    
    .cart-bubble {
        display: flex !important; /* Ensure cart bubble is visible on mobile */
        background: linear-gradient(135deg, #ffd700, #ffb300) !important;
    }
    
    .cart-bubble:hover {
        background: linear-gradient(135deg, #ffb300, #ffd700) !important;
        transform: translateY(-5px) scale(1.1) !important;
        box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4) !important;
    }
    
    .bubble-icon {
        width: 30px !important;
        height: 30px !important;
        filter: none !important; /* Remove filter to show original icon colors */
        object-fit: contain !important; /* Ensure proper scaling */
        transition: all 0.3s ease !important;
    }
    
    .cart-bubble .bubble-icon {
        filter: none !important; /* Remove filter to show original cart icon */
    }
    
    .cart-count {
        position: absolute !important;
        top: -8px !important;
        right: -8px !important;
        background: linear-gradient(135deg, #ff4444, #cc0000) !important;
        color: white !important;
        border-radius: 50% !important;
        width: 24px !important;
        height: 24px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.8rem !important;
        font-weight: bold !important;
        border: 2px solid white !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
        animation: countPulse 1.5s infinite ease-in-out !important;
    }
    
    @keyframes bubblePulse {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.05);
        }
    }
    
    @keyframes countPulse {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.2);
        }
    }
    
    /* Cart modal improvements */
    .cart-modal-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 0, 0, 0.8) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 2000 !important;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .cart-modal-overlay.active {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .cart-modal {
        background: #1a1a1a !important;
        border-radius: 15px;
        padding: 1.5rem;
        width: 95%;
        max-width: 400px;
        max-height: 80vh;
        overflow-y: auto;
        color: white !important;
        border: 2px solid #ffd700;
        transform: scale(0.9);
        transition: transform 0.3s ease;
    }
    
    .cart-modal-overlay.active .cart-modal {
        transform: scale(1);
    }
    
    .cart-modal h2 {
        color: #ffd700;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .cart-item {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    }
    
    .item-info {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .item-name {
        font-weight: bold;
        color: #ffd700;
    }
    
    .item-price {
        color: #fff;
        font-weight: bold;
    }
    
    .item-quantity {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        align-self: flex-end;
    }
    
    .quantity-btn {
        background: #ffd700;
        color: #000;
        border: none;
        border-radius: 5px;
        width: 30px;
        height: 30px;
        cursor: pointer;
        font-weight: bold;
    }
    
    .remove-item-btn {
        background: #ff4444;
        color: white;
        border: none;
        border-radius: 5px;
        padding: 0.3rem 0.8rem;
        cursor: pointer;
        font-size: 0.8rem;
        align-self: flex-end;
    }
    
    .cart-total {
        text-align: center;
        margin: 1rem 0;
        font-size: 1.2rem;
        color: #ffd700;
    }
    
    .place-order-btn,
    .close-cart-btn {
        width: 100%;
        padding: 0.8rem;
        margin: 0.5rem 0;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        font-weight: bold;
        transition: all 0.3s ease;
    }
    
    .place-order-btn {
        background: #ffd700;
        color: #000;
    }
    
    .close-cart-btn {
        background: transparent;
        color: #ffd700;
        border: 2px solid #ffd700;
    }
    
    .place-order-btn:hover,
    .close-cart-btn:hover {
        transform: translateY(-2px);
    }
}

/* Extra small devices (phones, less than 480px) */
@media (max-width: 480px) {
    /* Prevent horizontal overflow on small screens */
    body {
        max-width: 480px !important;
        margin: 0 auto !important;
        overflow-x: hidden !important;
    }
    
    .nav-wrapper {
        padding: 0 0.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: 100% !important;
    }
    
    /* Maintain three-column layout on small mobile */
    .restaurant-logo {
        flex: 1;
        display: flex;
        justify-content: flex-start;
    }
    
    .nav-actions {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .hamburger-menu {
        flex: 1;
        display: flex !important;
        justify-content: flex-end;
        margin-right: 10px;
    }
    
    /* Keep same layout; only natural fluid scaling already applied above */
    .hamburger-menu { right: 4px; top: 35px; }
    
    .hamburger-menu span { width: 35px; height: 3px; }
    
    .search-input-box {
        width: 45px;
        height: 30px;
        font-size: 0.8rem;
        padding: 0 6px;
    }
    
    .search-input-box.active {
        width: 45px;
    }
    
    .search-icon {
        width: 18px;
        height: 18px;
    }
    
    .mobile-nav-menu .nav-link {
        font-size: 1.5rem;
        padding: 0.8rem 1.5rem;
    }
    
    .hero-section {
        height: 60vh;
        min-height: 350px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .cta-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        margin-top: 25px !important; /* Top margin for Explore button */
    }
    
    .hero-dish-title {
        font-size: clamp(2rem, 7vw, 3.5rem);
    }
    
    .hero-dish-subtitle {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
    }
    
    .hero-btn-primary,
    .hero-btn-secondary {
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .dishes-grid {
        padding: 0 0.5rem;
        gap: 1rem;
    }
    
    .dish-card {
        min-height: 200px;
    }
    
    .dish-card-image {
        height: 122px; /* enlarged further */
    }
    
    .dish-card-title {
        font-size: 1rem;
    }
    
    .dish-card-price {
        font-size: 1rem;
    }
    
    .add-to-cart-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .about-title {
        font-size: 1.8rem;
    }
    
    .about-subtitle {
        font-size: 1rem;
    }
    
    .about-description p {
        font-size: 0.9rem;
    }
    
    .menu-page-header {
        height: 250px;
    }
    
    .menu-header-title {
        font-size: 1.8rem;
    }
    
    /* Small mobile menu categories */
    .menu-section-title {
        font-size: 1.8rem;
    }
    
    .menu-section-subtitle {
        font-size: 0.9rem;
    }
    
    .category-header {
        padding: 0.7rem 1.2rem;
    }
    
    .category-title {
        font-size: 1.2rem;
    }
    
    .category-toggle {
        font-size: 1.3rem;
        width: 22px;
        height: 22px;
    }
    
    .category-content.active {
        padding: 1.2rem;
    }
    
    .footer-description {
        font-size: 0.9rem;
        margin-top: 0.28rem; /* keep proportionally tight on very small */
    }
    
    /* Ensure only logo remains on small devices */
    .footer-links,
    .footer-menu-categories,
    .footer-contact {
        display: none !important;
    }
    
    .footer-bottom-links {
        display: none !important;
    }
    
    .contact-bubbles {
        right: 10px;
        bottom: 10px;
        gap: 10px !important;
        flex-direction: column !important;
    }
    
    .cart-bubble {
        display: flex !important; /* Show cart bubble on smaller screens */
        width: 45px;
        height: 45px;
    }
    
    .whatsapp-bubble {
        width: 45px;
        height: 45px;
        display: flex !important; /* Show WhatsApp bubble */
    }
    
    .bubble-icon {
        width: 20px;
        height: 20px;
    }
    
    .cart-count {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
        top: -3px;
        right: -3px;
    }
    
    .cart-modal {
        padding: 1rem;
        width: 98%;
        max-height: 85vh;
    }
    
    .cart-modal h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .cart-item {
        padding: 0.8rem 0;
    }
    
    .item-name {
        font-size: 0.9rem;
    }
    
    .item-price {
        font-size: 0.9rem;
    }
    
    .quantity-btn {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
    
    .remove-item-btn {
        padding: 0.2rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .cart-total {
        font-size: 1rem;
    }
    
    .place-order-btn,
    .close-cart-btn {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

/* Ultra small devices (less than 360px) */
@media (max-width: 360px) {
    /* Prevent horizontal overflow on ultra-small screens */
    body {
        max-width: 360px !important;
        margin: 0 auto !important;
        overflow-x: hidden !important;
    }
    
    /* Maintain three-column layout on ultra-small devices */
    .restaurant-logo {
        flex: 1;
        display: flex;
        justify-content: flex-start;
        max-width: 33.33% !important;
    }
    
    .nav-actions {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .hamburger-menu {
        flex: 1;
        display: flex !important;
        justify-content: flex-end;
        margin-right: 10px;
        top: 14px !important; /* fine tune ultra small */
    }
    
    /* Further tighten min clamp for ultra small devices */
    .brand-logo { width: clamp(180px, 70vw, 300px) !important; }
    
    .search-input-box {
        width: 40px;
        height: 28px;
        font-size: 0.7rem;
        padding: 0 5px;
    }
    
    .search-input-box.active {
        width: 40px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .cta-button {
        margin-top: 20px !important; /* Top margin for Explore button on very small screens */
    }
    
    /* Ultra small dish presentation */
    .dish-item img {
        width: 80px;
        height: 80px;
        object-fit: cover;
        margin: 0;
        position: absolute;
        left: 5%;
        background: transparent !important;
    }
    
    .dish-item {
        gap: 0;
        max-width: 280px;
        padding: 0 0.5rem;
        background: transparent !important;
    }
    
    .dish-name-gold {
        font-size: 0.8rem !important;
        position: absolute;
        left: 5%;
        max-width: 150px;
    }
    
    .dish-card-title {
        font-size: 0.9rem;
    }
    
    .dish-card-price {
        font-size: 0.9rem;
    }
    
    .add-to-cart-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }
    
    .contact-bubbles {
        right: 12px !important;
        bottom: 12px !important;
        gap: 10px !important;
        flex-direction: column !important;
    }
    
    .cart-bubble {
        display: flex !important; /* Show cart bubble on very small screens */
        width: 50px !important;
        height: 50px !important;
    }
    
    .whatsapp-bubble {
        width: 50px !important;
        height: 50px !important;
        display: flex !important; /* Show WhatsApp bubble */
    }
    
    .bubble-icon {
        width: 24px !important;
        height: 24px !important;
    }
    
    .cart-count {
        width: 20px !important;
        height: 20px !important;
        font-size: 0.7rem !important;
        top: -6px !important;
        right: -6px !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Prevent horizontal overflow on tablet */
    body {
        max-width: 1024px !important;
        margin: 0 auto !important;
        overflow-x: hidden !important;
    }
    
    .dishes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
    }
    
    .main-navigation {
        display: flex !important;
        gap: 1rem;
    }
    
    .hamburger-menu {
        display: none !important;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .brand-logo {
        width: 220px !important;
        height: 130px !important;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        margin-top: 35px !important; /* Top margin for Explore button on tablet */
    }
    
    /* Tablet dish presentation */
    .dish-item img {
        width: 160px;
        height: 160px;
        object-fit: cover;
        margin: 0;
        position: absolute;
        left: 8%;
        background: transparent !important;
    }
    
    .dish-item {
        gap: 0;
        max-width: 450px;
        padding: 0 1.5rem;
        background: transparent !important;
    }
    
    .dish-name-gold {
        font-size: 1.4rem !important;
        position: absolute;
        left: 8%;
        max-width: 250px;
    }
    
    .about-content {
        gap: 3rem;
    }
    
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .contact-bubbles {
        right: 25px !important;
        bottom: 25px !important;
        gap: 10px !important;
        flex-direction: column !important;
    }
    
    .whatsapp-bubble,
    .cart-bubble {
        width: 65px !important;
        height: 65px !important;
    }
    
    .bubble-icon {
        width: 32px !important;
        height: 32px !important;
    }
}

/* Large devices (desktops, 1024px and up) */
@media (min-width: 1025px) {
    .dishes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .dishes-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
    }
}

/* High resolution displays */
@media (min-width: 1400px) {
    .dishes-grid {
        grid-template-columns: repeat(5, 1fr);
        max-width: 1600px;
        margin: 0 auto;
    }
    
    .container {
        max-width: 1400px;
    }
}

/* Orientation adjustments for tablets */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero-section {
        height: 60vh;
    }
    
    .dish-presentations {
        transform: translateY(20px);
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .dish-card:hover {
        transform: translateY(-5px);
    }
    
    .nav-link:hover {
        transform: scale(1.1);
    }
    
    .menu-category-btn:hover {
        transform: translateY(-2px);
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-image {
        animation: none;
    }
    
    .dish1,
    .dish2,
    .dish3 {
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .dish-card {
        border: 2px solid #fff;
    }
    
    .menu-category-btn {
        border: 2px solid #fff;
    }
    
    .add-to-cart-btn {
        border: 2px solid #fff;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: #000;
        color: #fff;
    }
}

/* Large devices (desktops, 1024px and up) */
@media (min-width: 1025px) {
    .dishes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .brand-logo {
        width: 260px !important;
        height: 155px !important;
    }
    
    /* Desktop dish presentation */
    .dish-item {
        flex-direction: row;
        gap: 2.5rem;
        margin: 1.2rem;
        padding: 1.8rem;
    }
    
    .dish-item img {
        width: 320px;
        height: auto;
    }
    
    .dish-name-gold {
        font-size: 2rem;
    }
    
    .contact-bubbles {
        right: 30px !important;
        bottom: 30px !important;
        gap: 10px !important;
        flex-direction: column !important;
    }
    
    .whatsapp-bubble,
    .cart-bubble {
        width: 70px !important;
        height: 70px !important;
    }
    
    .bubble-icon {
        width: 35px !important;
        height: 35px !important;
    }
    
    .cart-count {
        width: 26px !important;
        height: 26px !important;
        font-size: 0.9rem !important;
        top: -10px !important;
        right: -10px !important;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .dishes-grid {
        grid-template-columns: repeat(5, 1fr);
        max-width: 1600px;
        margin: 0 auto;
    }
    
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.6rem;
    }
    
    .brand-logo {
        width: 280px !important;
        height: 170px !important;
    }
    
    /* Large desktop dish presentation */
    .dish-item img {
        width: 350px;
        height: auto;
    }
    
    .dish-name-gold {
        font-size: 2.3rem;
    }
}

/* High resolution displays */
@media (min-width: 1400px) {
    .dishes-grid {
        grid-template-columns: repeat(5, 1fr);
        max-width: 1800px;
        margin: 0 auto;
    }
    
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .brand-logo {
        width: 320px !important;
        height: 190px !important;
    }
    
    /* Ultra large dish presentation */
    .dish-item img {
        width: 220px;
        height: 220px;
        object-fit: cover;
        position: absolute;
        left: 10%;
        background: transparent !important;
    }
    
    .dish-item {
        gap: 0;
        max-width: 600px;
        padding: 0 2rem;
        background: transparent !important;
    }
    
    .dish-name-gold {
        font-size: 2rem !important;
        position: absolute;
        left: 10%;
        max-width: 300px;
    }
}