/* === Base & Layout === */
body,
html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    /* Light grey page background */
    color: #333;
    /* Default text color */
    line-height: 1.6;
}

.home {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
}

main {
    flex-grow: 1;
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1320px;
    /* Content max width */
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    /* Gutters */
    padding-right: 15px;
    /* Gutters */
    box-sizing: border-box;
}

/* === Header === */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid #e9ecef;
    /* Slightly softer border */
    padding: 15px 0;
    width: 100%;
    box-sizing: border-box;
    position: sticky;
    /* Optional: Make header sticky */
    top: 0;
    z-index: 900;
    /* Ensure it's above content but below modals if any */
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 28px;
    color: #28a745;
    /* Green */
    margin-right: 10px;
}

.logo-text {
    font-size: 24px;
    font-weight: 600;
    color: #343a40;
    /* Darker grey */
    white-space: nowrap;
}

.nav-cart-container {
    display: flex;
    align-items: center;
    gap: 45px;
}

.navigation .navigation-pill-list {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
    gap: 30px;
    /* Slightly increased gap */
}

.navigation .navigation-pill {
    text-decoration: none;
    color: #495057;
    /* Mid grey */
    font-size: 16px;
    font-weight: 500;
    padding-bottom: 8px;
    position: relative;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.navigation .navigation-pill:hover {
    color: #0056b3;
    /* Link hover blue */
}

.navigation .navigation-pill.active {
    color: #343a40;
    /* Darker grey for active */
    font-weight: 600;
}

.navigation .navigation-pill.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    /* Align with header border */
    left: 0;
    width: 100%;
    height: 3px;
    /* Slightly thicker underline */
    background-color: #774ae4;
    /* Theme purple */
    border-radius: 1px;
}

.cart-container .simple-cart {
    font-size: 24px;
    color: #495057;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    /* Added transition */
}

.cart-container .simple-cart:hover {
    color: #343a40;
    transform: scale(1.1);
    /* Slight scale on hover */
}


/* === Carousel === */
.carousel-section {
    margin: 0;
    padding: 0;
    width: 100%;
    line-height: 0;
    /* Remove space below images */
}

.carousel-image {
    position: relative;
    width: 100%;
    height: 530px;
    overflow: hidden;
    background-color: #e9ecef;
    /* Placeholder background */
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-img-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(52, 58, 64, 0.6);
    /* Darker, less saturated overlay */
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    /* Slightly larger */
    height: 40px;
    /* Slightly larger */
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.2s ease;
}

.carousel-image:hover .carousel-arrow {
    opacity: 1;
}

.carousel-arrow:hover {
    background-color: rgba(52, 58, 64, 0.8);
}

.carousel-arrow.prev {
    left: 25px;
}

.carousel-arrow.next {
    right: 25px;
}

.pagination-dot-group {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    background-color: rgba(52, 58, 64, 0.6);
    padding: 8px 15px;
    border-radius: 15px;
    z-index: 3;
}

.pagination-dot {
    width: 10px;
    /* Slightly larger dots */
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pagination-dot.active {
    background-color: white;
}


/* === Content Sections === */
.content-section {
    padding: 60px 0;
    /* Consistent vertical padding */
    width: 100%;
    box-sizing: border-box;
    background-color: #ffffff;
    /* Default white background */
}

.content-section.alt-bg {
    background-color: #f8f9fa;
    /* Default light grey alternate */
}

/* Title shared across sections */
.section-title {
    font-size: 32px;
    /* Slightly larger */
    font-weight: 600;
    color: #343a40;
    margin-top: 0;
    margin-bottom: 40px;
    /* Increased bottom margin */
    padding-bottom: 12px;
    border-bottom: 3px solid #774ae4;
    /* Default: Theme purple */
    display: inline-block;
    width: auto;
}

/* Title wrapper used in Taste of Today */
.title-date-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 15px;
}

.todays-date {
    font-size: 1rem;
    font-weight: 500;
    color: #495057;
    background-color: #ffffff;
    padding: 6px 18px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.07);
    white-space: nowrap;
}

/* === Card Styling (Shared Base) === */
/* Base styles applicable to both .card and .menu-card-large */
.card-base {
    /* Using a conceptual name, apply relevant styles to both .card and .menu-card-large */
    background-color: #ffffff;
    border-radius: 10px;
    /* UNIFIED: Softer radius */
    /* border: none; */
    /* UNIFIED: Removed border */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* UNIFIED: Initial shadow */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* UNIFIED: Transition */
}

.card-base:hover {
    transform: translateY(-4px);
    /* UNIFIED: Hover transform */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    /* UNIFIED: Hover shadow */
}

/* Shared Icon Styles */
.card-icons,
.mcl-icons {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.icon-button {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    /* Slightly more opaque */
    background-color: rgba(0, 0, 0, 0.35);
    /* Slightly darker background */
    border-radius: 50%;
    padding: 5px;
    cursor: pointer;
    width: 30px;
    /* Slightly larger */
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background-color 0.2s;
}

.icon-button:hover {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.6);
}


/* === Specials Section === */
.specials-section .section-title {
    border-color: #774ae4;
    /* Purple border for Specials */
}

.specials-grid {
    display: grid;
    /* Using grid for consistency */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Responsive grid */
    gap: 30px;
    margin-top: 0;
    /* Title already has margin */
}

/* Styles specific to the small card in Specials */
.card {
    /* Inherit from .card-base conceptually */
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Layout specific */
    display: flex;
    flex-direction: column;
    width: auto;
    /* Allow grid to control width */
    min-width: 280px;
    /* Ensure minimum size */
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card .card-image-container {
    /* Use nesting for clarity */
    position: relative;
    width: 100%;
    height: 180px;
    /* Slightly taller image */
}

.card .card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card .card-content {
    padding: 15px 20px;
    /* Adjusted padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    flex-grow: 1;
    /* Ensure it fills space */
}

.card .item-name {
    font-size: 1rem;
    /* Slightly larger */
    font-weight: 600;
    /* Bolder */
    color: #343a40;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 15px;
}

.card .item-price {
    font-size: 1rem;
    font-weight: 700;
    /* Bolder price */
    color: #774ae4;
    /* Use theme color for price */
    white-space: nowrap;
}


/* === Today's Menu Section === */
.todays-menu-section {
    background: linear-gradient(to bottom, #f8f9fa, #f1f3f5);
    /* Keep gradient */
    padding: 60px 0;
}

.todays-menu-section .section-title {
    /* Override section title border */
    border-color: #e8590c;
    /* Warmer color */
}

.menu-item-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Always 2 columns on larger screens */
    gap: 35px;
    align-items: stretch;
    /* Make cards in the same row equal height */
}

/* Styles for the large card in Taste of Today */
.menu-card-large {
    /* Inherit from .card-base conceptually */
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    /* Layout specific */
    display: flex;
    width: 100%;
    /* Take full grid column width */
}

.menu-card-large:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.mcl-image-container {
    flex: 0 0 40%;
    position: relative;
    min-height: 220px;
}

.mcl-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* .mcl-icons uses shared icon styles */

.mcl-content-container {
    flex: 1;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mcl-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #343a40;
    margin: 0 0 10px 0;
    /* Increased bottom margin */
    line-height: 1.3;
}

.mcl-description {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
    /* Increased bottom margin */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    flex-grow: 1;
    min-height: 4.05em;
}

.mcl-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    /* Push footer to bottom */
    padding-top: 10px;
    /* Add padding above footer */
    gap: 15px;
    border-top: 1px solid #f1f3f5;
    /* Subtle separator line */
}

.mcl-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #774ae4;
    /* Theme purple */
    white-space: nowrap;
}

.mcl-add-button {
    padding: 9px 20px;
    /* Slightly more padding */
    background-color: #28a745;
    /* Green */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
}

.mcl-add-button:hover {
    background-color: #218838;
}

.mcl-add-button:active {
    transform: scale(0.97);
}

/* Add focus style for accessibility */
.mcl-add-button:focus {
    outline: 2px solid #28a745;
    outline-offset: 2px;
    background-color: #218838;
    /* Match hover */
}

.mcl-add-button i {
    margin-left: 5px;
    font-size: 0.85em;
}


/* === Subscribe Section === */
.subscribe-section {
    background-color: #ffffff;
    /* White background */
}

.subscribe-section .container {
    text-align: center;
}

.subscribe-title {
    font-size: 26px;
    /* Match section titles more closely */
    font-weight: 600;
    color: #343a40;
    margin-top: 0;
    margin-bottom: 15px;
}

.subscribe-text {
    font-size: 1rem;
    /* Standard paragraph size */
    color: #495057;
    margin-bottom: 35px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.subscribe-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    /* Increased gap */
    flex-wrap: wrap;
}

.subscribe-input {
    padding: 14px 18px;
    /* More padding */
    border: 1px solid #ced4da;
    border-radius: 6px;
    /* Match button */
    font-size: 1rem;
    min-width: 300px;
    flex-grow: 1;
    max-width: 450px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.subscribe-input:focus {
    border-color: #774ae4;
    /* Highlight with theme color */
    box-shadow: 0 0 0 3px rgba(119, 74, 228, 0.2);
    /* Subtle glow */
    outline: none;
}

.subscribe-button {
    padding: 14px 30px;
    /* Match input padding */
    background-color: #774ae4;
    /* Theme purple */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.subscribe-button:hover {
    background-color: #5a36b4;
}

.subscribe-button:focus {
    outline: 2px solid #774ae4;
    outline-offset: 2px;
    background-color: #5a36b4;
    /* Match hover */
}


/* === Footer === */
.footer {
    background-color: #343a40;
    /* Dark footer */
    color: #dee2e6;
    /* Lighter text */
    padding: 30px 0;
    /* More padding */
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.9rem;
}

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

.footer p {
    margin: 0 0 15px 0;
    /* More space below copyright */
}

.footer-nav a {
    color: #adb5bd;
    text-decoration: none;
    margin: 0 12px;
    /* More space */
    transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-nav a:focus {
    color: #ffffff;
    outline: none;
    /* Simple focus indication */
}


/* === Responsive Adjustments === */

/* Larger Tablets / Small Laptops */
@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }

    .menu-item-grid {
        gap: 25px;
    }

    .mcl-content-container {
        padding: 15px 20px;
    }

    .mcl-name {
        font-size: 1.15rem;
    }

    .mcl-price {
        font-size: 1.1rem;
    }

    .mcl-add-button {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .specials-grid {
        gap: 25px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .container {
        max-width: 720px;
    }

    .section-title {
        font-size: 28px;
    }

    /* Header adjustments */
    .nav-cart-container {
        gap: 25px;
    }

    .navigation .navigation-pill-list {
        gap: 20px;
    }

    .logo-text {
        font-size: 22px;
    }

    /* Carousel height */
    .carousel-image {
        height: 450px;
    }

    /* Specials Grid: Already responsive with auto-fit */
    .specials-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        /* Adjust min size */
        gap: 20px;
    }

    /* Menu Grid: Stack to 1 column */
    .menu-item-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
        gap: 30px;
        /* Maintain decent gap for single column */
    }

    .menu-card-large {
        flex-direction: column;
    }

    /* Stack large card content */
    .mcl-image-container {
        flex-basis: auto;
        width: 100%;
        height: 220px;
        min-height: unset;
    }

    .mcl-description {
        min-height: unset;
        -webkit-line-clamp: 2;
    }

    /* Subscribe form stacking */
    .subscribe-form {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .subscribe-input {
        min-width: unset;
        width: 100%;
        max-width: 100%;
    }

    .subscribe-button {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Mobile Phones */
@media (max-width: 576px) {
    .container {
        max-width: 100%;
        /* Allow full width on small screens */
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    /* Header */
    .logo-text {
        font-size: 20px;
    }

    .nav-cart-container {
        gap: 15px;
    }

    .navigation .navigation-pill-list {
        gap: 15px;
    }

    .navigation .navigation-pill {
        font-size: 15px;
    }

    /* Carousel */
    .carousel-image {
        height: 350px;
    }

    /* Cards */
    .specials-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 15px;
    }

    .menu-item-grid {
        max-width: 100%;
        padding: 0 10px;
        gap: 25px;
    }

    /* Add slight padding */
    .mcl-content-container {
        padding: 15px;
    }

    .mcl-name {
        font-size: 1.1rem;
    }

    .mcl-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .mcl-add-button {
        width: 100%;
        text-align: center;
    }

    .card .card-content {
        padding: 12px 15px;
    }

    .card .item-name {
        font-size: 0.95rem;
    }

    .card .item-price {
        font-size: 0.95rem;
    }

    /* Subscribe */
    .subscribe-title {
        font-size: 22px;
    }

    .subscribe-text {
        font-size: 0.95rem;
    }

    /* Footer */
    .footer {
        padding: 25px 0;
        font-size: 0.85rem;
    }

    .footer-nav a {
        margin: 0 8px;
    }
}

/* --- Toast Notification Styles (Corrected Positioning/Animation) --- */
.toast {
    position: fixed;
    /* Fixed positioning */
    bottom: 20px;
    /* Distance from bottom */
    right: 20px;
    /* Distance from right */
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    z-index: 1050;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    min-width: 250px;
    text-align: center;
    background-color: #333;
    /* Default background */

    /* Initial state: Off-screen (right) and invisible */
    opacity: 0;
    transform: translateX(calc(100% + 20px));
    /* Move it off screen including its right margin */
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    pointer-events: none;
    /* Ignore clicks when hidden */
}

/* State when '.show' class is added */
.toast.show {
    opacity: 1;
    transform: translateX(0);
    /* Slide into view */
    pointer-events: auto;
    /* Allow clicks when visible */
}

/* Type-specific styles (can override default background) */
.toast-success {
    background-color: #28a745;
    /* Bootstrap success green */
    /* border-left: 5px solid #218838; /* Optional border */
}

.toast-error {
    background-color: #dc3545;
    /* Bootstrap danger red */
    /* border-left: 5px solid #c82333; /* Optional border */
}

.toast-info {
    background-color: #17a2b8;
    /* Bootstrap info cyan */
    /* border-left: 5px solid #138496; /* Optional border */
}

/* --- Subscribe Section Styling Improvements --- */
/* Add or modify these in styles.css */

.subscribe-section {
    background-color: #f8f9fa;
    /* Light background */
    padding: 4rem 0;
    /* More padding */
    text-align: center;
}

.subscribe-title {
    font-size: 1.8rem;
    /* Slightly larger title */
    color: #333;
    margin-bottom: 0.75rem;
}

.subscribe-text {
    color: #555;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    /* Center the text */
}

.subscribe-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    /* Space between input and button */
    max-width: 500px;
    margin: 0 auto;
    /* Center the form */
}

.subscribe-input {
    flex-grow: 1;
    /* Take available space */
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.subscribe-input:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.subscribe-button {
    padding: 12px 25px;
    background-color: #007bff;
    /* Primary button color */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s ease-in-out;
    white-space: nowrap;
    /* Prevent button text wrapping */
}

.subscribe-button:hover {
    background-color: #0056b3;
    /* Darker shade on hover */
}

.subscribe-button:disabled {
    background-color: #6c757d;
    /* Disabled color */
    cursor: not-allowed;
}

/* Style adjustments for smaller screens if needed */
@media (max-width: 576px) {
    .subscribe-form {
        flex-direction: column;
        align-items: stretch;
        /* Make input/button full width */
    }

    .subscribe-input {
        margin-bottom: 10px;
        /* Add space below input when stacked */
    }
}

/* --- Cart Count Circle Styling --- */
#cart-count {
    background-color: red;
    color: white;
    border-radius: 50%;
    /* Makes it a circle */

    /* Explicit width & height */
    width: 20px;
    height: 20px;

    /* Use Flexbox to center the number */
    display: inline-flex;
    /* Use inline-flex to keep it flow with text/icons */
    align-items: center;
    /* Center vertically */
    justify-content: center;
    /* Center horizontally */

    font-size: 0.75rem;
    /* Adjust font size as needed */
    font-weight: bold;
    /* Make number stand out */
    line-height: 1;
    /* Ensure text stays centered vertically */
    text-align: center;

    /* Positioning relative to the cart icon */
    position: absolute;
    /* Change from relative if needed */
    top: -8px;
    /* Adjust position */
    right: -8px;
    /* Adjust position */

    /* Transition for appearing/disappearing */
    opacity: 0;
    transform: scale(0.5) translate(50%, -50%);
    /* Start small and offset */
    transform-origin: center center;
    /* Scale from center */
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
    /* Include padding/border in width/height */
}

#cart-count.has-items {
    /* Class added by JS when count > 0 */
    opacity: 1;
    transform: scale(1) translate(0, 0);
    /* Scale to full size and correct position */
}

/* Optional: Hide count if zero (if not handled by JS opacity) */
/*
  #cart-count:empty {
    display: none;
  }
  */

/* Adjust parent cart container if needed for absolute positioning */
.cart-container a {
    /* Or .cart-container */
    position: relative;
    /* Needed for absolute positioning of child #cart-count */
    display: inline-block;
    /* Ensure it takes space */
}

/* Styles specific to the menu page layout */
.menu-page-title {
    font-size: 32px;
    font-weight: 600;
    color: #343a40;
    margin-top: 30px;
    margin-bottom: 15px;
    /* Reduced margin below title */
    padding-bottom: 12px;
    border-bottom: 3px solid #774ae4;
    /* Theme purple */
    display: inline-block;
    width: auto;
}

/* --- Search Bar Styling --- */
.search-bar-menu {
    display: flex;
    align-items: center;
    max-width: 700px;
    /* Centered positioning ABOVE the menu layout */
    margin: 0 auto 40px auto;
    /* Top 0, Auto L/R (center), Bottom 40px */
    padding: 12px 20px;
    /* Increased padding */
    border-radius: 30px;
    background-color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    /* Slightly stronger shadow */
    border: 1px solid #e0e0e0;
    /* Lighter border */
}

.search-bar-menu .search-icon {
    margin-right: 12px;
    /* More space */
    color: #888;
    /* Lighter icon color */
    font-size: 1.1rem;
}

.search-bar-menu input {
    flex: 1;
    border: none;
    outline: none;
    padding: 5px 5px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    color: #333;
}

.search-bar-menu input::placeholder {
    color: #aaa;
    /* Adjust placeholder color */
}

/* Styles specific to the menu page layout */
.menu-page-title {
    font-size: 32px;
    font-weight: 600;
    color: #343a40;
    margin-top: 30px;
    margin-bottom: 30px;
    /* Restore margin below title */
    padding-bottom: 12px;
    border-bottom: 3px solid #774ae4;
    display: inline-block;
    width: auto;
}

/* --- Main Layout --- */
.menu-layout {
    display: flex;
    gap: 35px;
    margin-top: 0;
    /* No margin needed here now */
    align-items: flex-start;
    /* Align tops - IMPORTANT for sidebar height */
}

/* --- Filters Sidebar --- */
.filters-sidebar {
    width: 260px;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    border: 1px solid #e9ecef;
    flex-shrink: 0;
    /* Explicitly set align-self to prevent stretching if container override exists */
    /* align-self: flex-start; */
    /* Redundant if .menu-layout has align-items: flex-start */
    /* Height is determined by content */
    height: fit-content;
    /* More explicit */
}

.filters-sidebar h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 25px;
    color: #343a40;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f3f5;
}

.filter-group h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 25px 0 15px;
    color: #495057;
}

.filter-group:first-of-type h3 {
    margin-top: 0;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-option {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    cursor: pointer;
}

.category-option input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    accent-color: #774ae4;
    width: 17px;
    height: 17px;
}

.category-option label {
    font-size: 0.95rem;
    color: #495057;
    cursor: pointer;
    flex-grow: 1;
    transition: color 0.2s ease;
}

.category-option label:hover {
    color: #774ae4;
}

.price-range-filter label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #555;
}

#price-range-slider {
    width: 100%;
    cursor: pointer;
    accent-color: #774ae4;
    margin-bottom: 8px;
}

#price-range-value {
    display: block;
    text-align: right;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
}


/* --- Meal Grid Container & Search Bar --- */
.meal-grid-container {
    flex: 1;
    min-width: 0;
}

/* Search Bar - Now inside meal-grid-container */
.search-bar-menu {
    display: flex;
    align-items: center;
    max-width: 700px;
    /* Or adjust as needed */
    /* Center WITHIN the meal-grid-container */
    margin: 0 auto 40px auto;
    /* Top 0, Auto L/R, Bottom 40px */
    padding: 12px 20px;
    border-radius: 30px;
    background-color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.search-bar-menu .search-icon {
    margin-right: 12px;
    color: #888;
    font-size: 1.1rem;
}

.search-bar-menu input {
    flex: 1;
    border: none;
    outline: none;
    padding: 5px 5px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    color: #333;
}

.search-bar-menu input::placeholder {
    color: #aaa;
}


#meal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Style for the card link wrapper */
a.card-link-wrapper {
    text-decoration: none;
    color: inherit;
    /* Inherit text color */
    display: block;
    /* Make the link a block element */
    height: 100%;
    /* Make link fill the card */
}




/* Footer inside the card for price and button */
.card-footer {
    display: flex;
    justify-content: space-between;
    /* Space between price and button */
    align-items: center;
    margin-top: auto;
    /* Push to bottom if content above is short */
}

#meal-grid .card .item-price {
    font-size: 1.05rem;
    /* Slightly larger price */
    font-weight: 700;
    color: #774ae4;
    /* Theme purple */
}

/* Refined Add Button Style (reuse class name, adjust styles) */
#meal-grid .mcl-add-button {
    /* Target specifically within the grid */
    padding: 6px 14px;
    /* Adjust padding */
    background-color: #28a745;
    /* Green */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    /* Smaller font */
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    /* Align icon nicely */
    align-items: center;
}

#meal-grid .mcl-add-button:hover {
    background-color: #218838;
}

#meal-grid .mcl-add-button i {
    margin-left: 4px;
    /* Space before icon */
    font-size: 0.9em;
    /* Relative icon size */
}


/* Loading/Error Message Styling */
.grid-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    font-size: 1.1rem;
    color: #6c757d;
    background-color: #f8f9fa;
    border-radius: 8px;
}

/* Footer Spacing */
main.main-content-spacing {
    margin-bottom: 60px;
}


/* Responsive adjustments */
@media (max-width: 992px) {
    .filters-sidebar {
        width: 230px;
    }

    #meal-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 25px;
    }

    .search-bar-menu {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .menu-layout {
        flex-direction: column;
    }

    .filters-sidebar {
        width: 100%;
        margin-bottom: 30px;
        height: auto;
        /* Ensure auto height */
    }

    #meal-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }

    .search-bar-menu {
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
        /* Ensure centering */
    }
}

.auth-container-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 180px);
    /* Adjust based on header/footer height */
    padding: 40px 20px;
}

.auth-container {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    /* Control form width */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.auth-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
    color: #343a40;
}

.form-section.hidden {
    display: none;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    border-color: #774ae4;
    box-shadow: 0 0 0 3px rgba(119, 74, 228, 0.15);
    outline: none;
}

.auth-button {
    width: 100%;
    padding: 14px;
    background-color: #774ae4;
    /* Theme purple */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 10px rgba(119, 74, 228, 0.2);
    margin-top: 10px;
    /* Space above button */
}

.auth-button:hover {
    background-color: #5a36b4;
    box-shadow: 0 6px 12px rgba(119, 74, 228, 0.3);
}

.auth-button:disabled {
    background-color: #adb5bd;
    cursor: not-allowed;
    box-shadow: none;
}

/* --- Toggle Links --- */
.toggle-auth-text {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: #6c757d;
}

.toggle-auth-link {
    color: #774ae4;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.toggle-auth-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 576px) {
    .auth-container {
        padding: 30px;
    }

    .auth-title {
        font-size: 22px;
    }
}

/* --- Base & Layout --- */
body.cart-page-background {
    background-image: url('https://images.pexels.com/photos/1640777/pexels-photo-1640777.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Keep background fixed */
    background-color: #f8f9fa;
    /* Fallback */
}

/* Override .home wrapper if needed for background */
.home.cart-layout {
    background: none;
    /* Remove background from wrapper */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Cart Container --- */
.cart-page-container {
    background-color: rgba(255, 255, 255, 0.95);
    /* Slightly less transparent */
    border-radius: 12px;
    padding: 30px 40px;
    /* Adjust padding */
    width: 90%;
    max-width: 900px;
    /* Adjust max-width */
    margin: 40px auto;
    /* Center vertically/horizontally */
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

h1.cart-title {
    text-align: center;
    margin-bottom: 35px;
    font-size: 28px;
    font-weight: 600;
    color: #343a40;
}

/* --- Cart Grid Layout --- */
.cart-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    /* Give more space to order review */
    gap: 30px;
}

.cart-section {
    /* Common styling for both columns */
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f3f5;
}

.section-title {
    font-weight: 600;
    font-size: 1.6rem;
    color: #343a40;
}

.section-subtitle {
    /* For item count */
    font-size: 0.9rem;
    color: #6c757d;
}

/* --- Order Review Items --- */
.order-items-list {
    max-height: 400px;
    /* Limit height and add scroll */
    overflow-y: auto;
    padding-right: 10px;
    /* Space for scrollbar */
    margin-right: -10px;
    /* Offset padding */
}

/* Basic scrollbar styling */
.order-items-list::-webkit-scrollbar {
    width: 6px;
}

.order-items-list::-webkit-scrollbar-thumb {
    background-color: #ced4da;
    border-radius: 3px;
}

.cart-item {
    display: flex;
    align-items: flex-start;
    /* Align items to top */
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f3f5;
    gap: 15px;
}

.cart-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.item-image-cart {
    width: 60px;
    /* Slightly larger image */
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.item-details-cart {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Push quantity down */
    min-height: 60px;
    /* Match image height */
}

.item-name-cart {
    font-size: 0.95rem;
    font-weight: 500;
    color: #343a40;
    margin-bottom: 8px;
}

.quantity-controls-cart {
    /* Reusing structure */
    display: flex;
    align-items: center;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    /* Pill shape */
    width: fit-content;
    padding: 2px;
    /* Reduce padding */
}

.quantity-btn-cart {
    background-color: #fff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    color: #774ae4;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.quantity-btn-cart:hover {
    background-color: #f1f3f5;
}

.quantity-btn-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: transparent;
}

.quantity-display-cart {
    width: 30px;
    /* Adjust width */
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    color: #343a40;
    padding: 0 5px;
}

.item-actions-cart {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    /* Push remove down */
    min-height: 60px;
    /* Match image height */
    min-width: 60px;
    /* Ensure space */
}

.item-price-cart {
    font-weight: 600;
    font-size: 1rem;
    color: #343a40;
}

.remove-item-btn {
    color: #dc3545;
    /* Red remove */
    font-size: 1rem;
    /* Use icon */
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    /* Click area */
    line-height: 1;
    margin-top: 5px;
    transition: color 0.2s;
}

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

/* Placeholder for empty cart */
.empty-cart-message {
    text-align: center;
    padding: 30px 20px;
    color: #6c757d;
}

/* --- Billing Summary --- */
.billing-details {
    margin-bottom: 20px;
}

.billing-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.billing-label {
    color: #6c757d;
}

.billing-value {
    font-weight: 500;
    color: #343a40;
}

.billing-value-discount {
    color: #28a745;
    /* Green discount */
}

.grand-total-row {
    border-top: 1px solid #e9ecef;
    margin-top: 15px;
    padding-top: 15px;
    font-weight: 600;
    font-size: 1.1rem;
}

.comment-input {
    /* Keep original styling or adjust */
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 10px;
    margin: 15px 0;
    font-size: 0.9rem;
    font-family: inherit;
}

.checkbox-container {
    /* Keep original styling or adjust */
    display: flex;
    align-items: center;
    margin: 15px 0;
    font-size: 0.85rem;
    color: #495057;
}

input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #774ae4;
}

.privacy-link {
    color: #774ae4;
    text-decoration: none;
    font-weight: 500;
}

.privacy-link:hover {
    text-decoration: underline;
}

/* Pay Button */
#pay-button {
    /* Target the button */
    width: 100%;
    background-color: #774ae4;
    /* Theme purple */
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 15px;
    transition: background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 10px rgba(119, 74, 228, 0.25);
}

#pay-button:hover {
    background-color: #5a36b4;
    box-shadow: 0 6px 12px rgba(119, 74, 228, 0.35);
}

#pay-button:disabled {
    background-color: #adb5bd;
    cursor: not-allowed;
    box-shadow: none;
}

.norton-badge {
    text-align: center;
    margin-top: 10px;
    opacity: 0.7;
}


/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .cart-page-container {
        max-width: 95%;
    }

    .cart-grid {
        grid-template-columns: 1fr;
        /* Stack columns */
    }
}

@media (max-width: 768px) {
    .cart-page-container {
        padding: 20px;
        width: 95%;
        margin: 20px auto;
    }

    h1.cart-title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .cart-section {
        padding: 20px;
    }

    .cart-grid {
        gap: 25px;
    }
}

@media (max-width: 576px) {
    .cart-item {
        flex-direction: column;
        align-items: stretch;
    }

    .item-image-cart {
        width: 100%;
        height: 150px;
        margin-bottom: 10px;
    }

    .item-details-cart {
        min-height: unset;
    }

    .item-actions-cart {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        min-height: unset;
        margin-top: 10px;
    }

    .remove-item-btn {
        margin-top: 0;
    }

    .billing-row {
        font-size: 0.9rem;
    }

    .grand-total-row {
        font-size: 1rem;
    }

    #pay-button {
        padding: 12px;
        font-size: 0.95rem;
    }
}

/* --- Base & Layout --- */
body.checkout-page {
    background-color: #f8f9fa;
}

.checkout-container-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 180px);
    padding: 40px 20px;
}

.checkout-container {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 35px 40px;
    width: 100%;
    max-width: 700px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.checkout-title {
    text-align: center;
    margin-bottom: 35px;
    font-size: 26px;
    font-weight: 600;
    color: #343a40;
}

/* --- Content Switching --- */
#checkout-content>.content-section {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

#checkout-content>.content-section.hidden {
    opacity: 0;
    height: 0;
    /* Collapse height when hidden */
    overflow: hidden;
    /* Prevent content spillover */
    pointer-events: none;
    /* Disable interaction */
    /* Remove margin/padding when hidden */
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border: none;
    /* Remove borders when hidden */
}

/* --- Form Styling --- */
.checkout-form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f1f3f5;
}

.checkout-form-section:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.section-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 20px;
    border-left: 3px solid #774ae4;
    padding-left: 10px;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
}

.form-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #fff;
}

.form-input:focus {
    border-color: #774ae4;
    box-shadow: 0 0 0 3px rgba(119, 74, 228, 0.15);
    outline: none;
}

.form-input::placeholder {
    color: #adb5bd;
}

/* Style for invalid inputs */
.form-input.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.form-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Enhanced Radio button styling */
.radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-grow: 1;
    justify-content: center;
}

.radio-option:hover {
    border-color: #adb5bd;
    background-color: #f8f9fa;
}

.radio-option input[type="radio"] {
    margin-right: 10px;
    accent-color: #774ae4;
    width: 16px;
    height: 16px;
}

.radio-option span {
    font-size: 0.95rem;
    font-weight: 500;
    color: #495057;
}

.radio-option:has(input:checked) {
    border-color: #774ae4;
    background-color: #f3efff;
    box-shadow: 0 0 8px rgba(119, 74, 228, 0.1);
}

.radio-option:has(input:checked) span {
    color: #5a36b4;
    font-weight: 600;
}


/* Sections to hide/show */
.hidden-section {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #e0e0e0;
}

.hidden-section.visible {
    display: block;
}

/* Order Summary */
.order-total-display {
    text-align: right;
    margin: 25px 0;
    font-size: 1.1rem;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.order-total-display strong {
    font-weight: 600;
    color: #343a40;
    margin-left: 10px;
    font-size: 1.2rem;
}

/* Submit Button */
.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    background-color: #774ae4;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(119, 74, 228, 0.2);
    margin-top: 10px;
}

.submit-button:hover {
    background-color: #5a36b4;
    box-shadow: 0 6px 12px rgba(119, 74, 228, 0.3);
}

.submit-button:disabled {
    background-color: #adb5bd;
    cursor: not-allowed;
    box-shadow: none;
}

/* Spinner inside button */
.submit-button .spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

.submit-button .button-text {
    line-height: 1;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Confirmation Screen */
.confirmation-container {
    text-align: center;
    padding: 40px 20px;
}

.confirmation-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 25px;
    transform: scale(0.9);
    animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

@keyframes popIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.confirmation-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 15px;
}

.confirmation-message {
    font-size: 1rem;
    color: #495057;
    line-height: 1.6;
    margin-bottom: 30px;
}

.confirmation-message strong {
    color: #343a40;
    font-weight: 600;
}

.confirmation-actions a {
    display: inline-block;
    color: #fff;
    background-color: #774ae4;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
    margin: 5px;
}

.confirmation-actions a:hover {
    background-color: #5a36b4;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Loading/Error */
.loading-error-message {
    text-align: center;
    padding: 50px 20px;
    font-size: 1.1rem;
    color: #6c757d;
}

/* Responsive */
@media (max-width: 576px) {
    .checkout-container {
        padding: 25px;
    }

    .checkout-title {
        font-size: 22px;
    }

    .form-row-grid {
        grid-template-columns: 1fr;
    }

    .radio-group {
        flex-direction: column;
        align-items: stretch;
    }

    .confirmation-title {
        font-size: 1.6rem;
    }
}

/* --- Base & Layout --- */
body {
    background-color: #f8f9fa;
}

/* Remove default container padding if it interferes with full-width */
/* .container { padding: 0; } /* Revisit if needed */

/* --- Header --- */
/* Ensure header background is distinct if overlapping content */
.header {
    background-color: #ffffff;
    position: relative;
    z-index: 10;
}

/* --- Full Width Hero --- */
.hero-section-full {
    width: 100%;
    /* Take full viewport width */
    height: 500px;
    /* Adjust height as desired */
    overflow: hidden;
    /* Hide overflow */
    position: relative;
    /* For potential overlays */
    background-color: #e0e0e0;
    /* Placeholder */
}

.hero-image-full {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cover the area */
}

/* --- Meal Content Layout (Below Hero, Constrained) --- */
.meal-content-wrapper {
    /* Reintroduce container constraints */
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 0 20px;
    /* Top padding, side padding */
    /* This is the new main layout container */
    display: flex;
    flex-wrap: wrap;
    /* Allow wrap on smaller screens */
    gap: 40px;
    /* Gap between main info and sidebar */
    align-items: flex-start;
}

/* --- Left Column: Main Info --- */
.meal-main-info {
    flex: 2;
    /* Takes more space */
    min-width: 400px;
    /* Adjust min-width */
}

.meal-title {
    font-size: 36px;
    font-weight: 600;
    color: #343a40;
    margin: 0;
    /* Reset margin */
    line-height: 1.3;
}

.meal-subtitle {
    font-size: 1rem;
    color: #6c757d;
    margin-top: 8px;
    margin-bottom: 30px;
    /* Space before description */
}

.meal-description {
    font-size: 0.95rem;
    color: #495057;
    line-height: 1.7;
}

.meal-description strong {
    color: #343a40;
}

/* --- Right Column: Sidebar Info --- */
.meal-sidebar-info {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    /* Stack elements vertically */
    gap: 30px;
    /* Gap between price/actions and order box */
}

/* Grouping for Ratings, Actions, Price */
.rating-actions-price {
    display: flex;
    flex-direction: column;
    /* Stack vertically */
    align-items: flex-end;
    /* Align content to the right */
    gap: 15px;
    /* Space between elements */
}

.ratings {
    display: flex;
    gap: 3px;
    color: #f1c40f;
    font-size: 20px;
    order: 1;
    /* Order for visual layout */
}

.ratings .star.dimmed {
    opacity: 0.4;
}

.product-actions {
    display: flex;
    gap: 12px;
    order: 2;
    /* Order for visual layout */
}

.action-button {
    /* Style from previous version */
    font-size: 16px;
    color: #6c757d;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.action-button:hover {
    background-color: #f8f9fa;
    color: #774ae4;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.action-button i {
    line-height: 1;
}

.meal-price {
    font-size: 28px;
    font-weight: 700;
    color: #343a40;
    /* Black price as per image */
    order: 3;
    /* Order for visual layout */
    margin-top: 5px;
    /* Small space above price */
}

/* Order Section Styling (Keep internal styles from previous) */
.order-section {
    background-color: white;
    border-radius: 12px;
    padding: 25px;
    /* Adjusted padding */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    width: 100%;
    /* Take full width of sidebar column */
    order: 4;
    /* Ensure it's below price etc */
}

.quantity-label {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #343a40;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 30px;
    padding: 6px 10px;
    margin-bottom: 25px;
}

/* Adjusted padding/margin */
.quantity-button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background-color: #ffffff;
    color: #774ae4;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.quantity-button:hover {
    background-color: #f1f3f5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.quantity-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.quantity-button i {
    line-height: 1;
}

.quantity-display {
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 35px;
    text-align: center;
    color: #343a40;
}

.checkout-button {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background-color: #774ae4;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(119, 74, 228, 0.25);
}

.checkout-button:hover {
    background-color: #5a36b4;
    box-shadow: 0 6px 12px rgba(119, 74, 228, 0.35);
}

.checkout-button i {
    font-size: 1em;
}


/* Reviews Section (Keep styles from previous) */
.reviews-section {
    /* Needs to be inside the main container */
    width: 100%;
    /* Span full width of the container it's in */
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e9ecef;
}

.reviews-heading {
    font-size: 24px;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 30px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.review-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f3f5;
    display: flex;
    flex-direction: column;
}

.review-rating {
    display: flex;
    gap: 3px;
    margin-bottom: 15px;
    color: #f1c40f;
    font-size: 16px;
}

.review-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #343a40;
}

.review-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f1f3f5;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    overflow: hidden;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviewer-info {
    display: flex;
    flex-direction: column;
}

.reviewer-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.review-date {
    font-size: 0.8rem;
    color: #777;
}


/* General Loading/Error State */
.loading-error-message {
    text-align: center;
    padding: 50px 20px;
    font-size: 1.2rem;
    color: #6c757d;
}

/* Footer Spacing */
main {
    padding-bottom: 60px;
    /* Add padding to main instead of margin */
}

/* Responsive */
@media (max-width: 992px) {
    .meal-content-wrapper {
        gap: 30px;
        padding-top: 30px;
    }

    .meal-main-info {
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .hero-section-full {
        height: 350px;
    }

    /* Adjust hero height */
    .meal-content-wrapper {
        flex-direction: column;
        gap: 30px;
        padding-top: 25px;
    }

    .meal-main-info {
        min-width: unset;
        order: 1;
    }

    /* Reset min-width, ensure it comes first */
    .meal-sidebar-info {
        min-width: unset;
        order: 2;
        align-items: center;
        /* Center sidebar content */
    }

    .rating-actions-price {
        align-items: center;
        /* Center ratings/actions/price */
    }

    .order-section {
        max-width: 350px;
        /* Limit width of order box */
    }

    .meal-title {
        font-size: 28px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-section-full {
        height: 280px;
    }
}

/* Basic styles for static content pages */
.static-page-content {
    padding-top: 40px;
    padding-bottom: 40px;
}

.page-title {
    font-size: 32px;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.static-page-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #495057;
    margin-top: 30px;
    margin-bottom: 15px;
}

.static-page-content p,
.static-page-content ul {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

.static-page-content ul {
    list-style: disc;
    margin-left: 25px;
}

.static-page-content strong {
    font-weight: 600;
    color: #333;
}

.disclaimer {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-weight: 500;
}

/* Styles for My Reservations page */
.reservations-list-container {
    max-width: 900px;
    /* Control width */
    margin: 40px auto;
    padding: 0 20px;
}

.page-title {
    /* Reuse title style */
    font-size: 28px;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
    text-align: center;
}

.reservation-list {
    display: grid;
    gap: 20px;
}

.reservation-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    border: 1px solid #e9ecef;
    display: flex;
    flex-wrap: wrap;
    /* Wrap on smaller screens */
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.reservation-details {
    flex-grow: 1;
}

.reservation-details strong {
    font-weight: 600;
    color: #495057;
    min-width: 100px;
    display: inline-block;
}

.reservation-details p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #555;
}

.reservation-details p:last-child {
    margin-bottom: 0;
}

.reservation-status {
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-transform: capitalize;
}

/* Status colors */
.status-pending,
.status-scheduled {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.status-confirmed {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-completed {
    background-color: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

.reservation-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    /* Prevent shrinking */
}

.action-btn {
    background: none;
    border: 1px solid #ced4da;
    color: #495057;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.action-btn:hover {
    border-color: #adb5bd;
    background-color: #f8f9fa;
}

.action-btn.edit-btn:hover {
    border-color: #774ae4;
    color: #774ae4;
}

.action-btn.cancel-btn:hover {
    border-color: #dc3545;
    color: #dc3545;
}

.action-btn i {
    font-size: 0.9em;
}

/* Loading/Empty State */
.loading-error-message {
    text-align: center;
    padding: 50px 20px;
    font-size: 1.1rem;
    color: #6c757d;
}

.login-prompt {
    /* Reuse style from locations */
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background-color: #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #495057;
}

.login-prompt a {
    color: #774ae4;
    font-weight: 600;
    text-decoration: none;
}

.login-prompt a:hover {
    text-decoration: underline;
}

/* Edit Modal (Basic Example - Consider using a dedicated modal library) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.visible {
    display: flex;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    border: none;
    background: none;
    color: #6c757d;
}

.modal-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-align: center;
}

/* Reuse form styles */
.modal-content .form-group {
    margin-bottom: 15px;
}

.modal-actions {
    margin-top: 25px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.modal-btn.save {
    background-color: #774ae4;
    color: #fff;
}

.modal-btn.cancel {
    background-color: #f1f3f5;
    color: #495057;
}

/* --- Base & Layout --- */
body.locations-page {
    background-color: #f8f9fa;
}

.locations-layout {
    display: flex;
    gap: 35px;
    margin-top: 30px;
    align-items: flex-start;
    /* Align tops */
}

/* --- Left Column: Location Cards --- */
.location-cards-container {
    flex: 2;
    /* Takes more space */
    min-width: 0;
    /* Prevent overflow */
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.location-card {
    display: flex;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.location-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.location-image {
    flex: 0 0 200px;
    /* Fixed image width */
    max-height: 180px;
    /* Limit image height */
    overflow: hidden;
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.location-body {
    padding: 20px;
    flex: 1;
}

.location-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 8px;
}

.location-description {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

/* Add a button to trigger reservation for this location */
.reserve-location-btn {
    margin-top: 15px;
    padding: 8px 15px;
    background-color: #774ae4;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.reserve-location-btn:hover {
    background-color: #5a36b4;
}

.reserve-location-btn i {
    margin-right: 5px;
}


/* --- Right Column: Reservation Form --- */
.reservation-sidebar {
    flex: 1;
    min-width: 340px;
    /* Minimum width */
    max-width: 400px;
    /* Maximum width */
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    position: sticky;
    /* Make it sticky */
    top: 100px;
    /* Adjust based on header height */
    align-self: flex-start;
    /* Prevent stretching */
}

.reservation-sidebar h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #343a40;
    text-align: center;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
}

.form-input,
.form-select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #fff;
    appearance: none;
    /* For select */
}

.form-input:focus,
.form-select:focus {
    border-color: #774ae4;
    box-shadow: 0 0 0 3px rgba(119, 74, 228, 0.15);
    outline: none;
}

/* Style select dropdown arrow */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
    /* Make space for arrow */
}

.form-input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    filter: invert(0.5) sepia(1) saturate(5) hue-rotate(240deg);
    /* Style calendar icon slightly */
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}


/* Submit Button */
#reserve-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    background-color: #774ae4;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(119, 74, 228, 0.2);
    margin-top: 10px;
}

#reserve-button:hover {
    background-color: #5a36b4;
    box-shadow: 0 6px 12px rgba(119, 74, 228, 0.3);
}

#reserve-button:disabled {
    background-color: #adb5bd;
    cursor: not-allowed;
    box-shadow: none;
}

#reserve-button .spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

#reserve-button .button-text {
    line-height: 1;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Info Message for Login */
.login-prompt {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background-color: #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #495057;
}

.login-prompt a {
    color: #774ae4;
    font-weight: 600;
    text-decoration: none;
}

.login-prompt a:hover {
    text-decoration: underline;
}


/* Responsive */
@media (max-width: 992px) {
    .locations-layout {
        flex-direction: column;
    }

    .reservation-sidebar {
        position: static;
        width: 100%;
        max-width: 600px;
        margin: 30px auto 0 auto;
    }

    .location-card {
        flex-direction: column;
    }

    .location-image {
        flex-basis: auto;
        width: 100%;
        max-height: 250px;
    }
}