/* ---- Main Content Area ---- */
#content {
    width: 1440px !important; /* Forces the main content area to be 1440px wide on large screens [[1]][[3]] */
}

/* ---- Menu Container ---- */
.menu-container {
    max-width: 1440px;        /* Prevents the container from exceeding 1440px */
    margin: 0 auto;           /* Centers the container horizontally */
    padding: 32px 16px;       /* Adds space inside the container */
}

/* ---- Each Menu Section ---- */
.menu-section {
    margin-bottom: 48px;      /* Space below each section */
}

/* ---- Section Headings ---- */
.menu-section h2 {
    font-size: 2rem;          /* Large heading text */
    margin-bottom: 24px;      /* Space below heading */
    text-align: left;
    letter-spacing: 1px;      /* Slight spacing between letters */
    color: #333;              /* Dark gray text */
    border-bottom: 2px solid #e0e0e0; /* Light gray underline */
    padding-bottom: 8px;      /* Space below text, above underline */
}

/* ---- Menu Items Grid ---- */
.menu-items {
    display: flex;
    flex-wrap: wrap;          /* Allows items to wrap to next line */
    gap: 24px;                /* Space between items */
    justify-content: flex-start;
}

/* ---- Individual Menu Item Card ---- */
.menu-item {
    background: #fff;         /* White background */
    border-radius: 12px;      /* Rounded corners */
    box-shadow: 0 2px 8px rgba(0,0,0,0.07); /* Subtle shadow */
    flex: 1 1 calc(25% - 24px); /* 4 items per row, with gap */
    min-width: 320px;         /* Minimum width for each card */
    max-width: 320px;         /* Maximum width for each card */
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    box-sizing: border-box;   /* Includes padding in width */
    transition: box-shadow 0.25s; /* Smooth shadow on hover */
}

/* ---- Hover Effect for Menu Item ---- */
.menu-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.5); /* Stronger shadow on hover */
}

/* ---- Button Container in Menu Item ---- */
.menu-button-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

/* ---- Menu Buttons ---- */
.menu-btn {
    background: var(--color-foreground); /* Uses a CSS variable for color */
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.menu-btn:hover {
    background: #a81d2b; /* Darker red on hover */
}

/* ---- Menu Item Image Container ---- */
.menu-item-img {
    position: relative;
    width: 100%;
    height: 120px;
    background: #f3f3f3;      /* Light gray background */
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;              /* Placeholder text color */
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    overflow: hidden;
    
}

/* ---- Actual Image in Menu Item ---- */
.menu-item-pic {
    max-width: 100%;
    max-height: 100%;
    max-height: none;
}

/* ---- Details Section in Menu Item ---- */
.menu-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ---- Menu Item Title ---- */
.menu-item-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #222;
}

/* ---- Menu Item Description ---- */
.menu-item-desc {
    font-size: 1rem;
    color: #555;
    margin-bottom: 12px;
}

/* ---- Meta Info (e.g., price, calories) ---- */
.menu-item-meta {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    color: #666;
    margin-top: auto;
    gap: 12px;
}

/* ---- Responsive Design: Tablet ---- */
@media (max-width: 900px) {
    .menu-item {
        flex: 1 1 calc(50% - 24px); /* 2 items per row */
        min-width: 220px;
    }
}

/* ---- Responsive Design: Mobile ---- */
@media (max-width: 600px) {
    .menu-items {
        gap: 16px;
    }
    .menu-item {
        flex: 1 1 100%;      /* 1 item per row */
        min-width: 0;
        max-width: 100%;
        padding: 14px;
    }
    .menu-section h2 {
        font-size: 1.3rem;
        margin-bottom: 14px;
    }
}
