/* Menu Redesign CSS */

/* Hero Section */
/* Hero Section */
/* Hero Section */
.menu-hero {
    position: relative;
    height: 50vh;
    /* Reduced height as requested (approx 450-500px) */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background-image: url('../img/ourMenu.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: -90px;
    padding-top: 90px;
}

.menu-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Dark Overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-content h1 {
    font-family: var(--font-head);
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: white;
    /* Explicitly white as per design */
}

.breadcrumb {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #ffd700;
    /* Goldish text for breadcrumb */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb span {
    color: var(--primary);
    font-weight: 600;
}

/* Section Header "Discover Food Menus" */
.menu-section-header {
    text-align: center;
    margin: 40px auto 10px;
    position: relative;
    padding-top: 20px;
}

.header-icon-wrapper {
    font-size: 3rem;
    color: rgba(0, 0, 0, 0.05);
    /* Very faint background icon */
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.section-subtitle {
    display: block;
    font-family: var(--font-body);
    color: var(--primary);
    /* Gold */
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: var(--font-script);
    font-size: 3rem;
    color: var(--primary);
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-page-container {
    max-width: 1400px;
    /* Wider container */
    margin: 0 auto;
    /* Removed top margin as Hero handles spacing/flow now */
    padding-bottom: 80px;
}

/* Category Navigation (Sticky) */
.category-nav-container {
    position: sticky;
    top: 80px;
    /* Adjust based on navbar height */
    background: var(--cream);
    z-index: 90;
    padding: 15px 0;
    margin-top: -60px;
    margin-bottom: 60px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.category-row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
}

.scroll-btn {
    background: white;
    border: none;
    color: var(--secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin: 0 15px;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.scroll-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(192, 57, 43, 0.4);
}

.category-scroll {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 5px 10px;
    scrollbar-width: none;
    /* Firefox */
}

.category-scroll::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.category-tab {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 10px 15px;
    border-radius: 50px;
    /* Pill shape or rounded square */
    min-width: 90px;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.category-tab:hover {
    border-color: var(--primary);
}

.category-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(192, 57, 43, 0.3);
}

.cat-icon {
    width: 40px;
    height: 40px;
    background-color: #eee;
    border-radius: 50%;
    margin-bottom: 5px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.category-tab.active .cat-icon {
    border: 2px solid white;
}

.category-tab span {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Menu List Grid */
.menu-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(350px, 1fr));
    /* 3 columns */
    gap: 20px;
    padding: 0 10px;
}

.menu-list-item {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
    height: 100%;
    /* Full height for grid alignment */
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .menu-list {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on medium screens */
    }
}

@media (max-width: 768px) {
    .menu-list {
        grid-template-columns: 1fr;
        /* 1 column on mobile */
    }

    .menu-page-container {
        max-width: 100%;
        margin-top: -50px;
        /* Pull content up */
    }

    /* Target wrapper divs for other pages */
    .contact-page-wrapper {
        margin-top: -50px !important;
    }

    /* Hero content centered by flexbox in parent, moved down slightly */
    .hero-content {
        transform: translateY(20px);
    }

    .menu-hero {
        height: 35vh;
        /* Reduced height */
        min-height: 250px;
    }
}

.menu-list-item:hover {
    transform: scale(1.01);
}

.item-thumb {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
    flex-shrink: 0;
}

.item-info {
    flex: 1;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.item-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 4px;
}

.item-desc {
    font-size: 0.8rem;
    color: #7f8c8d;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 5px;
}

.item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.item-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
}

.item-action {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Space between buttons */
    position: relative;
    z-index: 10;
    /* Ensure buttons are above other elements */
}

.add-btn,
.view-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    /* Circle */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 1.1rem;
    /* Slightly smaller font for icons */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.add-btn {
    background: var(--secondary);
    color: white;
}

.add-btn:hover {
    background: var(--primary);
}

.view-btn {
    background: #f0f0f0;
    /* Light gray background */
    color: var(--secondary);
    /* Dark text */
}

.view-btn:hover {
    background: var(--secondary);
    color: white;
}

.no-items-state {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
}

/* Breakpoint for very small screens */
@media (max-width: 320px) {
    .menu-list-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .item-thumb {
        width: 100%;
        height: 120px;
        margin-bottom: 10px;
    }

    .item-info {
        padding: 0;
        margin-bottom: 10px;
    }

    .item-action {
        align-self: flex-end;
    }
}

/* Cart Sidebar Styles */
.cart-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    position: relative;
    color: white;
    /* Header is dark in style.css */
    margin-left: 15px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100vh;
    background: white;
    z-index: 2000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
}

.cart-overlay.open {
    display: block;
}

.cart-header {
    padding: 20px;
    background: var(--secondary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Menu Item Cards */
.menu-item {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--gold);
}

.menu-item-image {
    position: relative;
    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: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-item h3 {
    font-family: var(--font-head);
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--secondary);
    /* Dark text for title */
}

.menu-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.5;
}

.menu-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.price {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
    /* Gold price */
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.cart-item-info h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.cart-item-price {
    font-weight: bold;
    color: var(--primary);
    font-size: 0.9rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    background: #eee;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
}

.remove-btn {
    color: #e74c3c;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 10px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.checkout-btn:hover {
    background: #a93226;
}

.empty-cart-msg {
    text-align: center;
    color: #999;
    margin-top: 20px;
}

/* Item Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden;
    max-height: 90vh;
    /* Added for small screens */
    overflow-y: auto;
    /* Added for small screens */
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .modal-item-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .modal-item-details {
        align-items: center;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    background: var(--secondary);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 30px 20px;
    text-align: center;
}

.modal-item-container {
    display: flex;
    flex-direction: column;
    /* Stack vertically to center */
    gap: 15px;
    align-items: center;
    /* Center horizontally */
    margin-bottom: 20px;
    text-align: center;
    /* Center text */
}

.modal-item-image {
    width: 150px;
    /* Increased size */
    height: 150px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
    border-radius: 50%;
    /* Make it circular for better design? or rounded rect. Keeping rounded rect but larger */
    border-radius: 20px;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Center items */
}

.modal-item-name-body {
    display: none;
    /* Hide since it is now in the header */
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
}

.modal-item-description {
    margin: 0;
    font-size: 1rem;
    /* Increased from 0.85rem */
    color: #555;
    /* Slightly darker for readability */
    line-height: 1.6;
    text-align: center;
    /* Ensure centering */
    width: 100%;
    /* Full width */
}

.modal-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.qty-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.qty-selector button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.qty-selector button:active {
    background: #eee;
    transform: scale(0.95);
}

.qty-selector input {
    width: 60px;
    font-size: 1.5rem;
    text-align: center;
    border: none;
    font-weight: bold;
}

.modal-footer {
    padding: 20px;
    background: #f9f9f9;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #a93226;
}