/* index-style.css  */
/* --- Base Styles and Typography --- */
body {
    font-family: 'Lato', sans-serif;
    background-color: #F9F9F9;
    /* Soft background */
    color: #333333;
    margin: 0;
    padding: 0;
    /* Ensure the body allows space for sticky header/footer */
    padding-bottom: 70px;
}

/* --- Header & Sticky Bars --- */
.menu-header {
    background-color: #FFFFFF;
    color: #333333;
    padding: 15px 20px;
    border-bottom: 1px solid #EEEEEE;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.menu-header h1 {
    font-size: 1.5em;
    margin-bottom: 5px;
}

#table-display {
    font-weight: 700;
    color: #D96A4B;
    /* Accent color for Table ID */
    font-size: 1em;
}

/* --- Main Layout Grid/Flex --- */
.menu-layout {
    display: flex;
    /* Desktop layout uses flexbox */
    max-width: 1200px;
    margin: 0 auto;
}

/* --- 2. Category Navigation (Sticky) --- */
.category-nav {
    position: sticky;
    top: 80px;
    /* Position below the header */
    width: 180px;
    padding: 20px 0;
    flex-shrink: 0;
    align-self: flex-start;
    /* Prevents nav from stretching vertically */
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: #F9F9F9;
}

.nav-link {
    padding: 10px 20px;
    text-decoration: none;
    color: #666666;
    font-weight: 400;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    color: #D96A4B;
}

.nav-link.active {
    color: #D96A4B;
    font-weight: 700;
    border-left: 3px solid #D96A4B;
    background-color: #FFF5F3;
    /* Very light accent background */
}

/* --- Menu Content List --- */
.menu-content {
    flex-grow: 1;
    padding: 20px;
}

.category-title {
    font-size: 1.8em;
    color: #333333;
    margin-bottom: 25px;
    padding-top: 15px;
    /* Space for sticky header overlap */
}

/* --- The Sexy Menu Card --- */
.menu-card {
    display: flex;
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.2s;
}

.menu-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.item-image-placeholder {
    width: 120px;
    height: 120px;
    background-color: #E0E0E0;
    /* Placeholder color */
    flex-shrink: 0;
    background-image: url('placeholder.jpg');
    /* Use real images here */
    background-size: cover;
    background-position: center;
}

.item-details {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item-name {
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333333;
}

.item-description {
    font-size: 0.9em;
    color: #666666;
    margin-bottom: 10px;
}

.item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-price {
    font-size: 1.2em;
    font-weight: 700;
    color: #D96A4B;
    /* Accent Price */
}

.add-to-cart-btn {
    background-color: #D96A4B;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    font-weight: 700;
}

.add-to-cart-btn:hover {
    background-color: #b8573c;
}

/* --- 3. Sticky Cart Summary Bar (Footer) --- */
.cart-summary-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #FFFFFF;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 200;
}

.cart-info {
    font-size: 1.1em;
    font-weight: 700;
    color: #333333;
}

.separator {
    margin: 0 10px;
    color: #CCCCCC;
}

.view-cart-btn {
    background-color: #333333;
    /* High contrast button */
    color: white;
    padding: 10px 20px;
    font-size: 1.1em;
    border-radius: 5px;
}

.view-cart-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Mobile/Tablet Responsiveness (Single Column) --- */
@media (max-width: 768px) {

    .menu-layout {
        flex-direction: column;
        /* Stacks the navigation on top of the menu */
    }

    /* Category Navigation on Mobile */
    .category-nav {
        position: static;
        /* No longer sticky on mobile */
        width: 100%;
        flex-direction: row;
        /* Horizontal scrolling strip */
        padding: 10px;
        overflow-x: scroll;
        white-space: nowrap;
        border-bottom: 1px solid #EEEEEE;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .nav-link {
        padding: 8px 15px;
        border-left: none;
        border-bottom: 3px solid transparent;
        /* Highlight bottom instead of left */
    }

    .nav-link.active {
        border-left: none;
        border-bottom: 3px solid #D96A4B;
        background-color: transparent;
    }

    .menu-content {
        padding: 15px;
    }

    /* Make the Menu Card more compact on small screens */
    .menu-card {
        flex-direction: row;
        /* Keep card horizontal */
        height: 100px;
    }

    .item-image-placeholder {
        width: 100px;
        height: 100%;
        border-radius: 0;
    }

    .item-details {
        padding: 10px;
    }

    .item-description {
        display: none;
        /* Hide description to save space on mobile */
    }

    .item-actions {
        /* Align price and button on the same line */
        margin-top: 5px;
    }
}