﻿:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --muted-color: #6c757d;
    --light-bg: #f8f9fa;
}

.main-content {
    padding: 20px;
    min-height: 500px;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: #f8f9fa;
    margin-top: 10px;
    border-radius: 10px;
}

.section-title {
    font-weight: 700;
    display: flex;
    align-items: center;
    /*gap: 10px;*/
    text-align: center;
    /*font-size: 2rem;*/
    margin-bottom: 2rem;
    color: #2c3e50;
    /*color: white;*/
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    }

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.service-card p {
    margin-bottom: 1.5rem;
    color: #7f8c8d;
}

.service-button {
    background: #3498db;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s;
}

    .service-button:hover {
        background: #2980b9;
    }

/* Restaurant Highlight */
.restaurant-highlight {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-top: 5px;
    border-radius: 10px;
}

.highlight-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.highlight-item {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

    .highlight-item h4 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

/* == Header section == */
.header-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 20px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

    .header-section::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        animation: float 6s ease-in-out infinite;
    }
    /* Ensure content stays above the animated background */
    .header-section > * {
        position: relative;
        z-index: 1;
    }

.week-info-card {
    background: rgba(255,255,255,0.15);
    border-radius: 15px;
    padding: 25px;
    margin-top: 25px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    z-index: 1;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 767px) {
    /*.main-container {
                margin: 10px auto;
                padding: 0 10px;
            }*/

    .header-section {
        padding: 30px 20px;
        margin-bottom: 25px;
    }

    .menu-section, .standard-items-section {
        padding: 20px;
        border-radius: 15px;
    }

    .menu-item {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .item-actions {
        align-items: center;
    }

    .item-meta {
        justify-content: center;
    }

    .accordion-button {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

.menu-section {
    background: #DCD0FF;
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

    .menu-section::before {
        content: '';
        position: absolute;
        top: -10%;
        left: -10%;
        width: 100%;
        height: 100%;
        /*background: radial-gradient(circle, rgba(102,126,234,0.25) 0%, rgba(118,75,162,0.15) 50%, transparent 70%);*/
        background: radial-gradient( circle, rgba(102,126,234,0.1) 0%, /* soft purple */
        rgba(255,165,0,0.15) 50%, /* soft orange */
        transparent 70% );
        animation: float 6s ease-in-out infinite;
        pointer-events: none;
    }

.day-accordion {
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: none;
}

.accordion-button {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    padding: 20px 25px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
    position: relative;
    transition: all 0.3s ease;
}

    .accordion-button:not(.collapsed) {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        color: white;
        box-shadow: none;
    }

    .accordion-button:focus {
        box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
    }

    .accordion-button::after {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23667eea'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    }

    .accordion-button:not(.collapsed)::after {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    }

.today-indicator {
    background: linear-gradient(135deg, var(--success-color) 0%, #2ecc71 100%);
    color: white;
}

.past-day {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
    opacity: 0.7;
}

.future-day {
    background: linear-gradient(135deg, var(--warning-color) 0%, #e67e22 100%);
    color: white;
}

.accordion-body {
    padding: 0;
    background: #fafbfc;
}

.menu-items-grid {
    display: grid;
    gap: 0;
}

/* Responsive Grid */
@media (min-width: 1400px) {
    .menu-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1399px) {
    .menu-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .menu-items-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .menu-items-grid {
        grid-template-columns: 1fr;
    }
}

.menu-item {
    padding: 25px;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

    .menu-item:hover {
        background: white;
        transform: translateY(-2px);
    }

    .menu-item:last-child {
        border-bottom: none;
    }

.item-image {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8d5524;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.item-details {
    flex: 1;
    min-width: 0;
}

.item-name {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.item-description {
    color: var(--muted-color);
    font-size: 0.95rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 15px;
}

.badge-category {
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 25px;
    font-weight: 600;
}

.category-appetizer {
    background-color: #e3f2fd;
    color: #1976d2;
}

.category-main {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.category-dessert {
    background-color: #fff3e0;
    color: #f57c00;
}

.category-beverage {
    background-color: #e8f5e8;
    color: #388e3c;
}

.category-side {
    background-color: #fce4ec;
    color: #c2185b;
}

.restaurant-info, .prep-time {
    color: var(--muted-color);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.item-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success-color);
}

.btn-cart {
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-add-cart {
    background: linear-gradient(135deg, var(--success-color) 0%, #2ecc71 100%);
    color: white;
}

    .btn-add-cart:hover {
        background: linear-gradient(135deg, #229954 0%, var(--success-color) 100%);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
    }

.btn-preorder {
    background: linear-gradient(135deg, var(--warning-color) 0%, #e67e22 100%);
    color: white;
}

    .btn-preorder:hover {
        background: linear-gradient(135deg, #d68910 0%, var(--warning-color) 100%);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
    }

.btn-closed {
    background: #95a5a6;
    color: white;
    cursor: not-allowed;
}

    .btn-closed:disabled {
        opacity: 0.6;
    }

.standard-items-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.standard-items-grid {
    display: grid;
    gap: 20px;
    margin-top: 25px;
}

/* Responsive Standard Items Grid */
@media (min-width: 1400px) {
    .standard-items-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1399px) {
    .standard-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .standard-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .standard-items-grid {
        grid-template-columns: 1fr;
    }
}

.standard-item-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

    .standard-item-card:hover {
        background: white;
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        border-color: var(--primary-color);
    }

.no-items-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted-color);
}

.no-items-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* == Hero button == */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.hero-button {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 12px 24px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: bold;
}

    .hero-button:hover {
        background: rgba(255,255,255,0.3);
        transform: translateY(-2px);
    }

/* Welcome Section Styles */
.welcome-section {
    text-align: center;
    padding: 40px 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    margin-bottom: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

    .welcome-section h1 {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }

    .welcome-section p {
        font-size: 1.2rem;
        margin: 15px 0;
    }

/* ============================================
   SCROLLING CARDS - DRAG SUPPORT
   ============================================ */

.scroll-wrapper {
    cursor: grab;
    user-select: none; /* prevents text selection while dragging */
}

    .scroll-wrapper.is-dragging {
        cursor: grabbing;
    }

        /* Disable the card hover lift while dragging to avoid jitter */
        .scroll-wrapper.is-dragging .ad-card {
            transform: none !important;
            transition: none;
        }

        /* Disable card hover animation-pause during drag */
        .scroll-wrapper.is-dragging .scroll-content {
            animation-play-state: paused !important;
        }

/* Scrolling Cards Container */
.scroll-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    margin: 10px 0;
    position: relative;
    box-sizing: border-box;
    /* No max-width needed — overflow: hidden is the clip */
}

.scroll-wrapper {
    display: flex;
    width: 100%;
    overflow: hidden;
    min-width: 0; /* ← ADD: flex child must be allowed to shrink */
}

.scroll-content {
    display: flex;
    animation: scroll 30s linear infinite;
    will-change: transform;
    flex-shrink: 0;
    /* width: max-content ← REMOVE THIS */
    /* Let the flex children define the natural width instead */
}

    .scroll-content:hover {
        animation-play-state: paused;
    }

.ad-card {
    min-width: 300px;
    width: 300px;
    height: 200px;
    margin: 0 15px;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

    .ad-card:hover {
        transform: translateY(-8px);
        animation-play-state: paused;
    }

    .ad-card.primary {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
    }

    .ad-card.secondary {
        background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        color: white;
    }

    .ad-card.tertiary {
        background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        color: white;
    }

    .ad-card.quaternary {
        background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
        color: white;
    }

    .ad-card.quinary {
        background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
        color: white;
    }

.ad-logo {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.ad-tagline {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 500;
}

.ad-description {
    font-size: 13px;
    opacity: 0.9;
    line-height: 1.4;
}

.ad-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-330px * 5));
    }
}

/* Responsive Design */
/* REMOVE this entire block — it does more harm than good */
/*
@media (min-width: 769px) {
    .scroll-content {
        max-width: 1200px;
    }
}
*/

@media (max-width: 768px) {
    .main-content-with-sidebar,
    .main-content-full-width {
        max-width: 100%;
    }

    .welcome-section {
        padding: 40px 15px;
    }

        .welcome-section h1 {
            font-size: 1.8rem;
        }

        .welcome-section p {
            font-size: 1rem;
        }

    .scroll-container {
        padding: 20px 0;
    }

    .scroll-content {
        width: max-content;
        flex-wrap: nowrap;
        display: flex;
    }

    .ad-card {
        min-width: 220px;
        width: 220px;
        height: 150px;
        padding: 18px;
        margin: 0 8px;
    }

    .ad-logo {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .ad-tagline {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .ad-description {
        font-size: 11px;
    }

    .ad-icon {
        font-size: 26px;
        margin-bottom: 8px;
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-236px * 5));
        }
    }

    .hero-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .main-content-with-sidebar,
    .main-content-full-width {
        max-width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .welcome-section {
        padding: 30px 5px;
        overflow: hidden;
    }

        .welcome-section h1 {
            font-size: 1.5rem;
        }

    .scroll-container {
        width: 100%;
        overflow: hidden;
        position: relative;
        height: 160px;
    }

    .scroll-content {
        display: flex;
        flex-wrap: nowrap;
        width: max-content;
        max-width: 100%;
        transform: translateX(0);
    }

    .ad-card {
        min-width: 200px;
        width: 200px;
        height: 140px;
        padding: 15px;
        margin: 0 6px;
    }

    .ad-logo {
        font-size: 16px;
    }

    .ad-tagline {
        font-size: 12px;
    }

    .ad-description {
        font-size: 10px;
    }

    .ad-icon {
        font-size: 24px;
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-212px * 5));
        }
    }

    .hero-buttons {
        gap: 10px;
    }

    .hero-button {
        padding: 8px 16px;
        font-size: 13px;
    }
}

.gradient-panel {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 20px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

    .gradient-panel::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        animation: float 6s ease-in-out infinite;
    }

/* ============================================================================ */
/* Optional: Custom CSS for Enhanced Modal Styling */
/* ============================================================================ */
/* ✅ FIX: Ensure modal content has proper text colors - AGGRESSIVE OVERRIDES */
.options-modal .modal-content {
    background-color: #ffffff !important;
    color: #212529 !important;
}

.options-modal .modal-header {
    background-color: #f8f9fa !important;
    color: #212529 !important;
    border-bottom: 1px solid #dee2e6;
}

.options-modal .modal-title {
    color: #212529 !important;
    font-weight: 600;
}

    .options-modal .modal-title i {
        color: #212529 !important;
    }

.options-modal .modal-body {
    background-color: #ffffff !important;
    color: #212529 !important;
}

.options-modal .modal-footer {
    background-color: #f8f9fa !important;
    color: #212529 !important;
    border-top: 1px solid #dee2e6;
}

/* ✅ FIX: Ensure ALL text elements are visible with !important */
.options-modal h5,
.options-modal h6,
.options-modal label,
.options-modal span,
.options-modal p,
.options-modal div,
.options-modal .form-check-label {
    color: #212529 !important;
}

/* ✅ FIX: Checkbox and radio button labels */
.options-modal .form-check-label {
    cursor: pointer;
    user-select: none;
    margin-left: 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

/* Option name span */
.options-modal .option-name {
    color: #212529 !important;
}

/* Option group styling */
.options-modal .option-group {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

    .options-modal .option-group:last-child {
        border-bottom: none;
    }

    .options-modal .option-group h6 {
        margin-bottom: 0.75rem;
        font-size: 1.1rem;
        color: #212529 !important;
    }

/* Form check container */
.options-modal .form-check {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

/* Enhanced checkbox/radio styling */
.options-modal .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0;
    cursor: pointer;
    flex-shrink: 0;
    background-color: #ffffff;
    border: 1px solid #ced4da;
}

    .options-modal .form-check-input:checked {
        background-color: #0d6efd !important;
        border-color: #0d6efd !important;
    }

    .options-modal .form-check-input:focus {
        border-color: #86b7fe;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

/* Price change styling */
.options-modal .price-change {
    color: #198754 !important;
    font-weight: 500;
    margin-left: 0.25rem;
}

/* Running total emphasis */
.options-modal #modalRunningTotal {
    font-size: 1.25rem;
    color: #0d6efd !important;
    font-weight: 700;
}

/* Badge styling */
.options-modal .badge.bg-secondary {
    background-color: #6c757d !important;
    color: #ffffff !important;
}

/* Required asterisk */
.options-modal .text-danger {
    color: #dc3545 !important;
}

/* Close button - invert for visibility on light background */
.options-modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Error alert */
.options-modal .alert {
    animation: slideDown 0.3s ease-out;
    color: #842029 !important;
    background-color: #f8d7da !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal backdrop */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Smooth transitions */
.modal.fade {
    transition: opacity 0.15s linear;
}

.modal.show {
    display: block !important;
}

/* Button text colors */
.options-modal .btn-primary {
    color: #ffffff !important;
}

.options-modal .btn-secondary {
    color: #ffffff !important;
}

/* Populat menu items */
.highlight {
    outline: 3px solid #ffc107;
    outline-offset: 4px;
    border-radius: 8px;
}



/* Popular cards hover behavior */
.popular-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

    .popular-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }

.popular-image-wrapper {
    position: relative;
    overflow: hidden;
}

/* Image zoom on hover */
.popular-card:hover .popular-img {
    transform: scale(1.05);
}

.popular-img {
    transition: transform 0.2s ease;
}

/* Overlay hint */
.popular-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.popular-card:hover .popular-overlay {
    opacity: 1;
}

.popular-overlay-text {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}
/* Mobile: remove overlay */
@media (max-width: 768px) {
    .popular-overlay {
        display: none;
    }
}

/* ---------- Highlight animation ---------- */
.menu-card.highlight {
    outline: 3px solid #ffc107;
    animation: pulseGlow 1.2s ease-in-out;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 rgba(255,193,7,0.0);
    }

    50% {
        box-shadow: 0 0 18px rgba(255,193,7,0.8);
    }

    100% {
        box-shadow: 0 0 0 rgba(255,193,7,0.0);
    }
}

/* Global card rounding */
.card {
    border-radius: 1rem; /* 16px */
    overflow: hidden; /* ensures image corners are clipped */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .card:hover {
        transform: translateY(-10px);
        box-shadow: 0 0.75rem 1.5rem rgba(0,0,0,0.15);
    }

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/*
// ============================================================================
// CSS Animations - AJAX Add to cart Toast animations notification
// ============================================================================
*/
@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

.animate-bounce {
    animation: bounce 0.5s ease-in-out;
}

.cart-item {
    transition: opacity 0.3s ease;
}

    .cart-item:hover {
        background-color: #f8f9fa;
    }

/* Button loading state */
#btnAddToCartAjax:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
