/* Universal Box-Sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Body Styles */
body {
    font-family: 'Open Sans', sans-serif; /* Modern, readable sans-serif font */
    line-height: 1.6;
    color: #333; /* Dark gray for text for better readability */
    background: linear-gradient(to bottom right, #fefce8, #fffbe0); /* Soft creamy gradient background */
    min-height: 100vh; /* Full viewport height */
    display: flex; /* Flex container for sticky footer */
    flex-direction: column; /* Stack header, main, footer vertically */
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

/* Splash Screen Styles */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #4a231a; /* Match footer color for brand consistency */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    visibility: visible;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-content h1 {
    font-family: 'Playfair Display', serif;
    color: white;
    font-size: 3rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    text-align: center;
    padding: 20px;
    animation: fadeInDown 1.5s ease-out;
}

/* Container for Centering Content */
.container {
    max-width: 1200px; /* Max width for content */
    margin: 0 auto; /* Center the container */
    padding: 0 20px; /* Horizontal padding */
    width: 100%; /* Ensure it takes full width within its parent */
}

/* Header Styles */
.header {
    background: linear-gradient(to right, #6b2112, #a0522d); /* Rich, warm gradient */
    color: white;
    padding: 20px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Stronger, elegant shadow */
    position: sticky; /* Sticky header on scroll */
    top: 0;
    z-index: 1000; /* Ensure header is on top */
    overflow: visible; /* Important for dropdown menus to not be cut off */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Crucial for absolute positioning of mobile nav */
    flex-wrap: wrap; /* Allow content to wrap on smaller screens */
}

/* Restaurant Info (Logo/Name Section) */
.restaurant-info {
    animation: fadeInDown 1s ease-out; /* Subtle animation for initial load */
}

.restaurant-info h1 {
    font-family: 'Playfair Display', serif; /* Elegant serif font for headings */
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 1.5px; /* Spacing for better readability of title */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4); /* Text shadow for depth */
    position: relative;
    display: inline-block;
}

/* Typewriter effect cursor */
.restaurant-info h1.typing-effect::after {
    content: '|';
    font-weight: 300;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.restaurant-info h1::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background-color: #fde047; /* Accent color for underline */
    border-radius: 2px;
    opacity: 0.9;
}

.restaurant-info p {
    font-family: 'Open Sans', sans-serif;
    color: #ffd700; /* Gold-like accent color */
    font-size: 1.2rem;
    font-style: italic;
    margin-top: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Main Navigation Styles (Desktop First) */
.main-nav {
    display: flex; /* Default to flex for desktop */
    margin-top: 0;
    width: auto;
}

.main-nav ul {
    list-style: none;
    display: flex; /* Horizontal layout for desktop nav items */
    justify-content: center;
    gap: 30px; /* Space between nav items */
}

.main-nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease; /* Smooth color transition on hover */
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: #fde047;
    transition: width 0.3s ease; /* Underline animation on hover */
}

.main-nav ul li a:hover::after {
    width: 100%;
}

.main-nav ul li a:hover {
    color: #fde047;
}

/* Hamburger Menu Icon for Mobile */
.menu-toggle {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

/* General Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Content Area */
.main {
    flex-grow: 1; /* Allows main content to take up remaining space, pushing footer down */
    padding: 50px 0;
}

/* Step-based Content Sections */
.step-content {
    display: none; /* Hidden by default */
    animation: fadeIn 0.5s ease-out; /* Smooth fade-in for active sections */
}

.step-content.active {
    display: block; /* Show active section */
}

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

/* Section Header Styles */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #6b2112; /* Dark red-brown */
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #a0522d; /* Complementary dark orange */
    border-radius: 2px;
}

.section-header p {
    font-family: 'Open Sans', sans-serif;
    color: #555;
    font-size: 1.3rem;
}

/* Menu and Cart Layout */
.menu-container {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Two-thirds for menu, one-third for cart */
    gap: 40px; /* Space between menu and cart */
}

.menu-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15); /* Soft, deep shadow */
}

/* Search Bar */
.search-bar {
    margin-bottom: 30px;
}

.search-bar input {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #d1d5db; /* Light gray border */
    border-radius: 10px;
    font-size: 1.1rem;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.08); /* Inner shadow for depth */
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: #a0522d;
    box-shadow: 0 0 0 4px rgba(160, 82, 45, 0.2); /* Focus ring effect */
}

/* Chef Panel Styles */
.chef-panel {
    margin-bottom: 30px;
    padding: 25px;
    background: #fff8e1; /* Light creamy background */
    border-radius: 15px;
    border: 1px solid #ffe0b2; /* Soft orange border */
}

.add-dish-form,
.edit-dish-form {
    background: #fffaf0; /* Even lighter background for forms */
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.add-dish-form h3,
.edit-dish-form h3 {
    margin-bottom: 20px;
    color: #6b2112;
    font-size: 1.8rem;
}

/* Form Group Common Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a4a4a;
    font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #c0c0c0; /* Neutral gray border */
    border-radius: 8px;
    font-size: 1rem;
    background-color: #fcfcfc;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group textarea {
    height: 100px;
    resize: vertical; /* Allow vertical resizing */
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #a0522d;
    box-shadow: 0 0 0 3px rgba(160, 82, 45, 0.2);
}

.form-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
    display: block;
}

/* Menu Categories (Desktop) */
.menu-categories {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap */
    justify-content: center;
}

/* Hide mobile categories on desktop by default */
.mobile-only-categories {
    display: none;
}

.category-btn {
    padding: 12px 25px;
    border: none;
    background: #f0f0f0; /* Light gray background */
    color: #6a6a6a; /* Darker gray text */
    border-radius: 30px; /* Pill shape */
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.category-btn.active,
.category-btn:hover {
    background: #a0522d;
    color: white;
    transform: translateY(-2px); /* Slight lift on hover/active */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* Menu Items Grid */
.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 25px;
}

.menu-item {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid #eee;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.menu-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* More prominent shadow on hover */
    transform: translateY(-5px); /* Lift effect */
}

.menu-item img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Cover the area, crop if necessary */
    border-bottom: 1px solid #eee;
}

.menu-item-info {
    padding: 20px;
    flex: 1; /* Allows info section to grow */
    display: flex;
    flex-direction: column;
}

.menu-item-info h4 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 8px;
}

.menu-item-info p {
    color: #777;
    font-size: 0.95rem;
    margin-bottom: 15px;
    flex-grow: 1; /* Allows description to grow */
}

.menu-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.menu-item-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #a0522d;
}

.add-to-cart-btn {
    background: #a0522d;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    font-weight: 500;
}

.add-to-cart-btn:hover {
    background: #6b2112;
    transform: translateY(-1px);
}

/* Chef Controls inside menu item */
.menu-item .btn-group {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Cart Section */
.cart-section {
    position: sticky; /* Sticky cart on scroll */
    top: 100px; /* Offset from top */
    height: fit-content; /* Only take content height */
}

.cart {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.cart h3 {
    margin-bottom: 25px;
    color: #333;
    font-size: 1.8rem;
    text-align: center;
}

.cart-items {
    margin-bottom: 25px;
    max-height: 400px; /* Max height for scrollable cart */
    overflow-y: auto; /* Enable scrolling for many items */
    padding-right: 10px; /* Space for scrollbar */
}

/* Individual Cart Item */
.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
    border-bottom: none; /* No border for the last item */
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h5 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 5px;
}

.cart-item-price {
    font-size: 0.9rem;
    color: #a0522d;
    font-weight: 600;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f5f5f5;
    border-radius: 20px;
    padding: 5px 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.2s ease;
}

.quantity-btn.minus {
    background: #e0e0e0;
    color: #555;
}

.quantity-btn.minus:hover {
    background: #c0c0c0;
}

.quantity-btn.plus {
    background: #a0522d;
    color: white;
}

.quantity-btn.plus:hover {
    background: #6b2112;
}

.quantity {
    font-size: 1rem;
    font-weight: 600;
    min-width: 25px;
    text-align: center;
    color: #333;
}

.remove-btn {
    color: #dc3545; /* Red for remove */
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    background: none;
    border: none;
    transition: color 0.2s ease;
}

.remove-btn:hover {
    color: #c82333;
}

.cart-total {
    border-top: 2px solid #f0f0f0;
    padding-top: 20px;
    margin-bottom: 25px;
    font-size: 1.3rem;
    text-align: center;
    color: #333;
    font-weight: bold;
}

/* Empty Cart Message */
.empty-cart {
    text-align: center;
    padding: 50px 20px;
    color: #888;
    background-color: #f9f9f9;
    border-radius: 10px;
}

.empty-cart .emoji {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-cart p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.empty-cart .text-sm {
    font-size: 0.9rem;
    color: #a0a0a0;
}

/* Order Details Form (or Reservation Form) */
.order-details-form,
.reservation-form {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    max-width: 700px;
    margin: 0 auto; /* Center the form */
}

.order-details-form h2,
.reservation-form h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #6b2112;
    font-size: 2.2rem;
}

/* Summary Sections */
.order-summary,
.reservation-summary {
    background: #fffaf0;
    padding: 25px;
    border-radius: 15px;
    margin: 35px 0;
    border: 1px solid #ffe0b2;
}

.order-summary h3,
.reservation-summary h3 {
    color: #6b2112;
    margin-bottom: 18px;
    font-size: 1.6rem;
}

.order-summary p,
.reservation-summary p {
    margin-bottom: 10px;
    color: #555;
    font-size: 1.1rem;
}

.order-summary strong,
.reservation-summary strong {
    color: #333;
}

.order-summary #summaryOrderItems {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #ddd; /* Dashed line separator */
    font-size: 0.95rem;
    color: #666;
}
.order-summary #summaryOrderItems div {
    margin-bottom: 5px;
}

/* Button Styles */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Soft shadow for buttons */
}

.btn-primary {
    background: #a0522d;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #6b2112;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: #9e9e9e; /* Gray */
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #757575;
    transform: translateY(-2px);
}

.btn-success {
    background: #28a745; /* Green */
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-2px);
}

.btn-danger {
    background: #dc3545; /* Red */
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #c82333;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 8px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Utility Classes */
.hidden {
    display: none !important; /* Force hide */
}

.text-center {
    text-align: center;
}

/* Footer Styles */
.footer {
    background: #4a231a; /* Dark, rich brown */
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2); /* Shadow for separation */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid for footer columns */
    gap: 30px;
    margin-bottom: 30px;
    align-items: start;
}

.footer-info h3,
.footer-contact h3,
.footer-social h3,
.footer-qr h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #fde047; /* Accent color for footer headings */
    position: relative;
    padding-bottom: 5px;
}

.footer-info p,
.footer-contact p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #e0e0e0; /* Lighter text for contrast */
}

.footer-contact p i {
    margin-right: 10px;
    color: #fde047;
}

.footer-social a {
    color: white;
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
    color: #fde047;
    transform: translateY(-3px); /* Lift social icons on hover */
}

/* QR KOD UCHUN YANGI STILLAR */
.footer-qr {
    text-align: center;
}

.footer-qr img {
    max-width: 150px; /* QR kod o'lchami */
    height: auto;
    border-radius: 10px;
    margin-top: 10px;
}


.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #ccc;
}


/* ===================================== */
/* RESPONSIVE DESIGN           */
/* ===================================== */

/* Medium devices (tablets, 992px and below) */
@media (max-width: 992px) {
    .header-content {
        flex-direction: row; /* Keep elements in a row */
        justify-content: space-between;
        align-items: center;
        padding-bottom: 0;
    }

    .restaurant-info {
        display: none; /* Hide restaurant info (logo/name) on smaller screens */
    }
    .desktop-only {
        display: none !important; /* Force hide elements specifically for desktop */
    }

    .menu-toggle {
        display: block; /* Show hamburger menu on smaller screens */
    }

    .main-nav {
        display: none; /* Hide navigation by default on mobile */
        position: absolute;
        top: 100%; /* Position below the header */
        left: 0;
        width: 100%;
        background: rgba(107, 33, 18, 0.95); /* Semi-transparent dark background */
        padding: 15px 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        border-radius: 0 0 10px 10px; /* Rounded bottom corners */
        z-index: 999;
        overflow: hidden; /* Hide overflow initially for smooth transition */
        max-height: 0; /* Animate max-height for dropdown effect */
        transition: max-height 0.3s ease-out; /* Smooth transition */
    }

    .main-nav.active {
        display: block; /* Ensure it's block to animate */
        max-height: 500px; /* A value large enough to cover all content */
    }

    .main-nav ul {
        flex-direction: column; /* Stack nav items vertically */
        gap: 15px;
        align-items: center;
    }

    .main-nav ul li a {
        font-size: 1.2rem;
        padding: 8px 0;
    }

    .main-nav ul li a::after {
        display: none; /* Hide underline animation on mobile */
    }

    .main-nav ul li a:hover {
        color: #fefce8; /* Lighter hover color for contrast */
    }

    /* Mobile specific category dropdown */
    .desktop-categories {
        display: none !important; /* Hide desktop categories */
    }
    .mobile-only-categories {
        display: block; /* Show mobile specific categories */
        position: relative;
    }
    .mobile-only-categories .nav-link.category-dropdown-toggle {
        display: flex; /* Use flex to align text and icon */
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: white;
        text-decoration: none;
        font-weight: 600;
        font-size: 1.2rem;
        padding: 8px 0;
        transition: color 0.3s ease;
    }
    .mobile-only-categories .nav-link.category-dropdown-toggle:hover {
        color: #fde047;
    }
    .mobile-only-categories .nav-link.category-dropdown-toggle i {
        margin-left: 8px; /* Space between text and icon */
        transition: transform 0.3s ease;
    }


    .category-dropdown {
        list-style: none;
        padding-left: 20px; /* Indent sub-items */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out; /* Smooth dropdown animation */
        background: rgba(80, 25, 14, 0.9); /* Slightly darker background for dropdown */
        margin-top: 5px;
        border-radius: 5px;
    }
    .category-dropdown.active {
        max-height: 200px; /* Max height to reveal dropdown content */
    }
    .mobile-only-categories .nav-link.category-dropdown-toggle .fa-caret-up {
        transform: rotate(180deg); /* Rotate icon on active */
    }

    .category-dropdown li a {
        font-size: 1.1rem;
        padding: 8px 0;
        color: rgba(255, 255, 255, 0.8); /* Slightly faded white */
        display: block; /* Make links block level for full clickable area */
        text-align: center;
    }
    .category-dropdown li a:hover {
        color: #fde047;
    }

    .menu-container {
        grid-template-columns: 1fr; /* Single column layout for menu/cart */
    }

    .cart-section {
        position: static; /* No longer sticky on mobile */
        margin-top: 40px;
    }

    .menu-items {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Keep grid for menu items */
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .section-header p {
        font-size: 1.1rem;
    }

    .footer-content {
        grid-template-columns: 1fr; /* Single column for footer on smaller screens */
        text-align: center;
    }
    .footer-contact p {
        justify-content: center; /* Center content in contact */
        display: flex;
        align-items: center;
    }
    .footer-social {
        display: flex;
        justify-content: center;
        gap: 15px;
    }
    .footer-social h3 {
        width: 100%; /* Ensure heading takes full width */
    }
}

/* Small devices (phones, 768px and below) */
@media (max-width: 768px) {
    .splash-content h1 {
        font-size: 2.2rem;
    }
    
    .container {
        padding: 0 15px; /* Reduce padding */
    }

    .header {
        padding: 15px 0;
    }
    .menu-toggle {
        font-size: 1.8rem;
    }

    .main-nav ul li a {
        font-size: 1.1rem;
    }
    .mobile-only-categories .nav-link.category-dropdown-toggle {
        font-size: 1.1rem;
    }
    .category-dropdown li a {
        font-size: 1rem;
    }


    .main {
        padding: 30px 0;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header h2::after {
        width: 50px;
    }

    .section-header p {
        font-size: 1rem;
    }

    .menu-section,
    .cart,
    .order-details-form,
    .reservation-form {
        padding: 25px;
        border-radius: 15px;
    }

    /* Category buttons stack vertically */
    .menu-categories {
        flex-direction: column;
        gap: 10px;
    }

    .category-btn {
        width: 100%; /* Make category buttons full width on small screens */
        font-size: 0.9rem;
        padding: 10px 15px;
    }

    .menu-item img {
        height: 160px;
    }

    .menu-item-info h4 {
        font-size: 1.2rem;
    }

    .menu-item-price {
        font-size: 1.1rem;
    }

    .add-to-cart-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .cart h3 {
        font-size: 1.5rem;
    }

    .cart-item {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding: 10px 0;
    }

    .cart-item img {
        width: 50px;
        height: 50px;
    }

    .quantity-controls {
        padding: 3px 8px;
    }

    .quantity-btn {
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }

    .remove-btn {
        font-size: 1.3rem;
    }

    .cart-total {
        font-size: 1.1rem;
        padding-top: 15px;
    }

    .empty-cart {
        padding: 30px 15px;
    }

    .empty-cart .emoji {
        font-size: 3rem;
    }

    .order-details-form h2,
    .reservation-form h2 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* Extra small devices (portrait phones, 480px and below) */
@media (max-width: 480px) {
    .splash-content h1 {
        font-size: 1.8rem;
    }
    
    .header {
        padding: 10px 0;
    }
    .menu-toggle {
        font-size: 1.6rem;
    }

    .main-nav ul li a {
        font-size: 1rem;
    }
    .mobile-only-categories .nav-link.category-dropdown-toggle {
        font-size: 1rem;
    }
    .category-dropdown li a {
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }
    .section-header h2::after {
        width: 40px;
    }

    .menu-items {
        grid-template-columns: 1fr; /* Single column for very small screens */
        gap: 15px;
    }

    .menu-item {
        flex-direction: column;
        text-align: center;
    }

    .menu-item img {
        align-self: center;
        width: 100%;
        height: 180px;
    }

    .menu-item-info {
        padding: 15px;
    }
    .menu-item-info h4 {
        font-size: 1.1rem;
    }
    .menu-item-info p {
        font-size: 0.85rem;
    }

    .menu-item-bottom {
        flex-direction: column; /* Stack price and button vertically */
        gap: 8px;
        margin-top: 10px;
    }

    .add-to-cart-btn {
        width: 100%; /* Full width button */
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .chef-panel, .add-dish-form, .edit-dish-form {
        padding: 15px;
    }

    .order-details-form,
    .reservation-form {
        padding: 15px;
    }
}