
/* MITCHELLEROY Nigerian Restaurant - Main Stylesheet */

/* ===== GLOBAL STYLES ===== */
:root {
    --primary-color: #e63946;
    --secondary-color: #457b9d;
    --accent-color: #f1c40f;
    --dark-color: #1d3557;
    --light-color: #f1faee;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --gray-color: #6c757d;
    --light-gray: #f8f9fa;
    --font-main: 'Poppins', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: #333;
    background-color: var(--light-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--dark-color);
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--dark-color);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--dark-color);
}

.text-center {
    text-align: center;
}

.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 1rem auto;
}

/* ===== HEADER ===== */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
}

.logo span {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    color: var(--dark-color);
    font-weight: 600;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-color);
    transition: all 0.3s ease;
}
/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* ===== ABOUT SECTION ===== */
.about {
    background-color: white;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
}

/* ===== MENU SECTION ===== */
.menu {
    background-color: var(--light-gray);
}

.menu-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.menu-tab {
    padding: 0.75rem 1.5rem;
    margin: 0.5rem;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-tab.active, .menu-tab:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.menu-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-10px);
}

.menu-item-image {
    height: 200px;
    overflow: hidden;
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-item:hover .menu-item-image img {
    transform: scale(1.1);
}

.menu-item-content {
    padding: 1.5rem;
}

.menu-item-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.menu-item-name {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.menu-item-price {
    color: var(--primary-color);
    font-weight: 700;
}

.menu-item-description {
    color: var(--gray-color);
    margin-bottom: 1rem;
}

.availability {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.available {
    background-color: rgba(46, 204, 113, 0.2);
    color: var(--secondary-color);
}

.unavailable {
    background-color: rgba(231, 76, 60, 0.2);
    color: var(--primary-color);
}

.add-to-cart {
    width: 100%;
    text-align: center;
}

/* ===== CART SECTION ===== */
.cart-container {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: right 0.5s ease;
    overflow-y: auto;
}

.cart-container.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #ddd;
}

.cart-close {
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-items {
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 1rem;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 600;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    background-color: var(--light-gray);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.quantity-input {
    width: 40px;
    text-align: center;
    margin: 0 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.25rem;
}

.cart-item-remove {
    color: var(--danger-color);
    cursor: pointer;
    margin-left: 1rem;
}

.cart-summary {
    padding: 1.5rem;
    border-top: 1px solid #ddd;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.cart-total {
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 1rem;
}

.checkout-btn {
    width: 100%;
    margin-top: 1rem;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
}

.cart-overlay.active {
    display: block;
}

/* ===== CHECKOUT SECTION ===== */
.checkout {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.checkout-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-main);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group.full-width {
    grid-column: span 2;
}

.order-type {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.order-type-option {
    flex: 1;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.order-type-option.active {
    border-color: var(--primary-color);
    background-color: rgba(230, 57, 70, 0.1);
}

.order-type-option i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-method {
    flex: 1;
    min-width: 120px;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method.active {
    border-color: var(--primary-color);
    background-color: rgba(230, 57, 70, 0.1);
}

.payment-method i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    background-color: var(--light-color);
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 600;
}

.testimonial-rating {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background-color: white;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card h3 {
    margin-bottom: 0.5rem;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-about p {
    margin-bottom: 1.5rem;
}

.footer-title {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-link {
    margin-bottom: 0.75rem;
}

.footer-link a {
    color: #ddd;
}

.footer-link a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .cart-container {
        width: 350px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
    }
    
    .nav-item {
        margin: 1rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .checkout-form {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .cart-container {
        width: 300px;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 3rem 0;
    }
    
    .hero {
        height: 70vh;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .menu-item {
        max-width: 350px;
        margin: 0 auto;
    }
}
    .cart-container {
            position: fixed;
            top: 0;
            right: -100%;
            width: 350px;
            height: 100vh;
            background: #fff;
            box-shadow: -2px 0 8px rgba(0,0,0,0.2);
            transition: right 0.3s ease;
            z-index: 10000;
            overflow-y: auto;
            padding: 20px;
        }

        .cart-container.active {
            right: 0;
        }

        .cart-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.6);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 9999;
        }

        .cart-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        /* Floating cart */
        .floating-cart {
            position: fixed;
            bottom: 20px;
            right: 20px;
            cursor: pointer;
            z-index: 1000;
        }

        .cart-icon {
            background: #ff6f61;
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.3);
            transition: transform 0.3s ease;
        }

        .cart-icon:hover {
            transform: scale(1.1);
        }

        .cart-badge {
            position: absolute;
            top: -6px;
            right: -6px;
            background: red;
            color: white;
            border-radius: 50%;
            font-size: 12px;
            font-weight: bold;
            padding: 3px 7px;
            display: none;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0 6px rgba(0,0,0,0.3);
        }

        @keyframes bounceBadge {
            0% { transform: scale(1); }
            30% { transform: scale(1.3); }
            60% { transform: scale(0.9); }
            100% { transform: scale(1); }
        }

        .bounce {
            animation: bounceBadge 0.4s ease;
        }

        @keyframes iconBounce {
            0% { transform: translateY(0); }
            30% { transform: translateY(-5px); }
            60% { transform: translateY(3px); }
            100% { transform: translateY(0); }
        }

        .icon-bounce {
            animation: iconBounce 0.5s ease;
        }

        /* Cart close button */
        .cart-close {
            cursor: pointer;
            font-size: 24px;
            color: #333;
            transition: color 0.3s ease;
        }

        .cart-close:hover {
            color: #ff6f61;
        }


    .menu-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem;
  padding: 1rem;
}


/* Wrap button and status in a flex container */
.menu-item-content::after {
  content: "";
  display: flex;
  justify-content: center; /* Center button and status */
  align-items: center; /* Vertically align */
  gap: 0.5rem; /* Space between status and button */
  order: 2; /* Ensure it appears last */
}


/* Mobile responsiveness */
@media (max-width: 768px) {
  /* 9 per "screen" width — 3 columns x 3 rows visible */
  .menu-items {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(120px, auto);
    gap: 0.25rem;
  }

  .menu-item-image {
    width: 120px; /* Fixed width for smaller screens */
    height: 100px; /* Fixed height for smaller screens */
  }

  .menu-item-image img {
    width: 120px; /* Match container */
    height: 100px; /* Match container */
    object-fit: cover;
  }

  .menu-item-content {
    font-size: 0.75rem; /* Smaller font for description */
  }

  .menu-item-name {
    font-size: 0.8rem; /* Smaller font for name */
  }

  .menu-item-price {
    font-size: 0.75rem; /* Match description */
  }



  .menu-item-content::after {
    gap: 0.25rem; /* Smaller gap */
  }
}

@media (max-width: 480px) {
  /* Smaller devices — still show 3 per row */
  .menu-items {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
  }

  .menu-item-image {
    width: 100px; /* Fixed width for smallest screens */
    height: 80px; /* Fixed height for smallest screens */
  }

  .menu-item-image img {
    width: 100px; /* Match container */
    height: 80px; /* Match container */
    object-fit: cover;
  }

  .menu-item-content {
    padding: 0.25rem;
    font-size: 0.7rem; /* Smallest font for description */
  }

  .menu-item-name {
    font-size: 0.75rem; /* Smallest font for name */
  }

  .menu-item-price {
    font-size: 0.7rem; /* Match description */
  }

  .menu-item-content > .availability,
  .menu-item-content > .btn.add-to-cart {
    font-size: 0.65rem; /* Smallest text for action and status */
  }

  .menu-item-content::after {
    gap: 0.25rem; /* Smallest gap */
  }
}
    
        /* CSS to style the about section */
        /* CSS for the hero section */
.hero {
    position: relative;
    background: url('images/hero.jpg') no-repeat center center/cover;
    padding: 100px 0;
    color: #fff; /* White text for contrast */
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay to dim the background */
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2; /* Ensure content is above the dimmed background */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent background for text readability */
    padding: 40px;
    border-radius: 10px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn.btn-accent {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ff6f61; /* Accent color inspired by Nigerian vibrancy */
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn.btn-accent:hover {
    background-color: #e55a50; /* Darker shade on hover */
}
        /* Notification styles */
        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 15px 20px;
            border-radius: 4px;
            color: white;
            font-weight: 500;
            z-index: 9999;
            transform: translateY(-100px);
            opacity: 0;
            transition: all 0.3s ease;
        }
        
        .notification.show {
            transform: translateY(0);
            opacity: 1;
        }
        
        .notification.success {
            background-color: var(--success-color);
        }
        
        .notification.error {
            background-color: var(--danger-color);
        }
        
        .notification.info {
            background-color: var(--secondary-color);
        }
        
        /* Loading overlay styles */
        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        
        .loading-overlay.show {
            opacity: 1;
            visibility: visible;
        }
        
        .loading-spinner {
            width: 50px;
            height: 50px;
            border: 5px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 1s ease-in-out infinite;
            margin-bottom: 20px;
        }
        
        .loading-message {
            color: white;
            font-size: 1.2rem;
            font-weight: 500;
        }
        
        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }
        
        /* Cart badge */
        .cart-btn {
            position: relative;
        }
        
        .cart-badge {
            position: absolute;
            top: -10px;
            right: -10px;
            width: 20px;
            height: 20px;
            background-color: var(--primary-color);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            font-weight: 600;
            display: none;
        }
/* ===== MENU ===== */
.menu {
    background-color: var(--light-gray);
}
.menu-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.menu-tab {
    padding: 0.75rem 1.5rem;
    margin: 0.5rem;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.menu-tab.active, .menu-tab:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Grid layout - newer preferred definition */
.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
    padding: 1rem;
}
.menu-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
}
.menu-item-image {
    width: 180px;
    height: 140px;
    margin: 0 auto;
    overflow: hidden;
}
.menu-item-image img {
    width: 180px;
    height: 140px;
    object-fit: cover;
    display: block;
}
.menu-item-content {
    padding: 0.5rem;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.menu-item-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.25rem;
}
.menu-item-name {
    font-size: 0.9rem;
    font-weight: bold;
}
.menu-item-price {
    font-size: 0.85rem;
    color: #ff6f61;
}
.menu-item-description { margin: 0.25rem 0; }

.available {
    background-color: var(--light-gray);
    color: #ff6f61;
}
.unavailable {
    background-color: var(--light-gray);
    color: #ff6f61;
}
.btn.add-to-cart {
    padding: 0.25rem 0.5rem;
    background: #ff6f61;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}
.btn.add-to-cart[disabled] {
    background: #ff6f61;
    cursor: not-allowed;
}
/* === Floating Cart Wiggle + Soft Glow Animation === */
@keyframes cartWiggle {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(-15deg); }
  30% { transform: rotate(15deg); }
  45% { transform: rotate(-10deg); }
  60% { transform: rotate(10deg); }
  75% { transform: rotate(-5deg); }
  90% { transform: rotate(5deg); }
}

@keyframes cartGlow {
  0%, 100% {
    box-shadow: 0 0 0 rgba(255, 165, 0, 0);
  }
  50% {
    box-shadow: 0 0 18px 6px rgba(255, 165, 0, 0.55);
  }
}

.floating-cart.wiggle {
  animation: cartWiggle 1s ease-in-out, cartGlow 1s ease-in-out;
}
/* Mobile responsiveness */
@media (max-width: 768px) {
  /* 9 per "screen" width — 3 columns x 3 rows visible */
  .menu-items {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(120px, auto);
    gap: 0.25rem;
  }

  .menu-item-image {
    width: 120px; /* Fixed width for smaller screens */
    height: 100px; /* Fixed height for smaller screens */
  }

  .menu-item-image img {
    width: 120px; /* Match container */
    height: 100px; /* Match container */
    object-fit: cover;
  }

  .menu-item-content {
    font-size: 0.75rem; /* Smaller font for description */
  }

  .menu-item-name {
    font-size: 0.8rem; /* Smaller font for name */
  }

  .menu-item-price {
    font-size: 0.75rem; /* Match description */
  }

  .menu-item-content > .availability,
  .menu-item-content > .btn.add-to-cart {
    font-size: 0.7rem; /* Smaller text for action and status */
  }

  .menu-item-content::after {
    gap: 0.25rem; /* Smaller gap */
  }
}

@media (max-width: 480px) {
  /* Smaller devices — still show 3 per row */
  .menu-items {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
  }

  .menu-item-image {
    width: 100px; /* Fixed width for smallest screens */
    height: 80px; /* Fixed height for smallest screens */
  }

  .menu-item-image img {
    width: 100px; /* Match container */
    height: 80px; /* Match container */
    object-fit: cover;
  }
