﻿/* ================= GLOBAL STYLES ================= */
:root {
    --header-height: 80px;
}

body {
    background-color: #fff5d6 !important;
    font-family: 'Poppins', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    padding-top: var(--header-height);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #222;
}

p {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* ================= HERO SECTION ================= */
.hero {
    width: 100%;
    background: url('/images/Menu-banner.png') center/contain no-repeat;
    background-size: contain;
    margin: 0;
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

/* ===== RESPONSIVE HERO ===== */
@media (min-width: 1400px) {
    .hero {
        min-height: 600px;
    }
}

@media (max-width: 1399px) and (min-width: 1200px) {
    .hero {
        min-height: 550px;
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    .hero {
        min-height: 500px;
    }
}

@media (max-width: 991px) {
    .hero {
        min-height: 400px;
    }
}

@media (max-width: 767px) {
    .hero {
        min-height: 350px;
    }
}

@media (max-width: 575px) {
    .hero {
        min-height: 300px;
    }
}

@media (max-width: 400px) {
    .hero {
        min-height: 250px;
    }
}

@media (max-width: 360px) {
    .hero {
        min-height: 220px;
    }
}

/* ================= MENU FILTER BAR ================= */
.menu-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 60px 0 10px 0;
    flex-wrap: wrap;
    padding: 0;
    position: sticky;
    top: var(--header-height);
    z-index: 999;
    background-color: #fff5d6;
}

.filter-btn {
    background-color: #f4f4f4;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
    color: #444;
    margin-top: 40px;
}

    .filter-btn.active,
    .filter-btn:hover {
        background-color: #ffb703;
        color: #fff;
    }

/* ================= MENU GRID ================= */
.menu {
    padding: 10px 10px;
    margin: 0;
    flex: 1;
    max-width: 100%;
    overflow-y: auto;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 50px;
}

/* ================= MENU SECTION (Container) ================= */
.menu-section {
    width: 100%;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.4s ease, transform 0.4s ease, height 0.4s ease;
}

    .menu-section.hide {
        opacity: 0;
        transform: scale(0.95);
        height: 0;
        overflow: hidden;
        pointer-events: none;
    }

/* ================= MENU CARD (Individual Items) - REDESIGNED ================= */
.menu-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border: none;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 480px;
}

    .menu-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    }

/* Image container - larger and fills width */
.menu-card-image {
    background: linear-gradient(180deg, #fff5d6 0%, #ffffff 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 280px;
    width: 100%;
    padding: 0;
    position: relative;
}

    .menu-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

/* Content area - more spacious */
.menu-card-content {
    padding: 20px 24px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    background: #ffffff;
}

    .menu-card-content h3 {
        margin: 0 0 4px 0;
        font-size: 20px;
        font-weight: 700;
        color: #1a1a1a;
        line-height: 1.3;
    }

    .menu-card-content p {
        margin: 0;
        font-size: 14px;
        color: #666;
        line-height: 1.5;
        flex: 1;
    }

/* Price styling - more prominent */
.price {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 22px;
    margin-top: 8px;
    display: block;
}

/* Cart button - repositioned to bottom right corner */
.cart-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: #e31837;
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(227, 24, 55, 0.3);
}

    .cart-btn:hover {
        background-color: #c41230;
        transform: scale(1.08);
        box-shadow: 0 6px 16px rgba(227, 24, 55, 0.4);
    }

    .cart-btn i {
        font-size: 20px;
    }

/* Heart/Favorite button (optional - matching reference) */
.favorite-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #e31837;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

    .favorite-btn:hover {
        background-color: #ffffff;
        transform: scale(1.1);
    }

    .favorite-btn i {
        font-size: 18px;
    }

/* Menu indicator dots (optional - matching reference) */
.menu-dots {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    gap: 6px;
}

    .menu-dots span {
        width: 8px;
        height: 8px;
        background-color: #e31837;
        border-radius: 50%;
    }

/* ================= PAGE LAYOUT ================= */
.menu-page-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-height: calc(100vh - var(--header-height) - 80px);
    padding: 20px 10px 50px 10px;
    margin-top: 90px;
}

/* ================= LOCOMOTIVE SCROLL ANIMATIONS ================= */
[data-scroll] {
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    transform: translateY(30px);
}

    [data-scroll].is-inview {
        opacity: 1;
        transform: translateY(0);
    }

/* ================= RESPONSIVE ================= */

/* Large screens - slightly bigger cards */
@media (min-width: 1200px) {
    .menu-grid {
        gap: 35px;
        max-width: 1300px;
    }

    .menu-card {
        min-height: 500px;
    }

    .menu-card-image {
        height: 300px;
    }
}

/* Tablets (2 cards per row) */
@media (min-width: 577px) and (max-width: 992px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .menu-card {
        min-height: 450px;
    }

    .menu-card-image {
        height: 260px;
    }

    .menu-card-content h3 {
        font-size: 18px;
    }

    .menu-card-content p {
        font-size: 13px;
    }

    .price {
        font-size: 20px;
    }
}

/* Mobiles (1 card per row) */
@media (max-width: 576px) {
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px 50px 15px;
    }

    .menu-card {
        min-height: 420px;
    }

    .menu-card-image {
        height: 240px;
    }

    .menu-card-content {
        padding: 18px 20px 20px 20px;
    }

        .menu-card-content h3 {
            font-size: 17px;
        }

        .menu-card-content p {
            font-size: 13px;
        }

    .price {
        font-size: 19px;
    }

    .cart-btn {
        width: 45px;
        height: 45px;
        bottom: 16px;
        right: 16px;
    }

    .menu-filter {
        top: var(--header-height);
        padding: 10px;
    }
}

/* =============== Toast Notification =============== */
.cart-toast {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgb(168, 0, 0);
    color: #fff;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateX(-20px);
    pointer-events: none;
    transition: all 0.4s ease;
    z-index: 9999;
}

    .cart-toast.show {
        opacity: 1;
        transform: translateX(0);
    }
