/* --- Menu Page Specific Styles --- */

/* Color Palette */
:root {
    --primary-color: #B1935B;  /* Merah Bakso */
    --secondary-color: #2F3D65; /* Kuning Cerah */
    --background-light: #FAF9F2; /* Baby Powder */
    --text-dark: #333;
    --text-light: #fff;
    --border-color: #e0e0e0;
    --bg-dark: #2c3e50; /* Dark blue for footer */
    --shadow-light: rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--background-light);
}

.menu-page {
    padding-bottom: 60px;
}

/* Menu Hero Section */
.menu-hero {
    background-color: var(--primary-color);
    padding: 80px 20px;
    color: var(--text-light);
    text-align: center;
}

.menu-hero h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    color: var(--text-light);
}

.menu-hero .subtitle {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto;
}

/* Menu Container & Sections */
.menu-container {
    padding: 60px 0;
}

.menu-section {
    margin-bottom: 60px;
}

.menu-section h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
}

/* Menu Cards Grid */
.menu-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.menu-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card-image-placeholder {
    width: 100%;
    height: 200px; /* Tinggi gambar */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.card-content h3 i {
    color: var(--secondary-color);
    margin-left: 5px;
}

.card-content p {
    font-size: 1em;
    color: #666;
    line-height: 1.4;
    margin-bottom: 15px;
}

.card-content .price {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
}

/* --- Responsive CSS --- */
@media (max-width: 768px) {
    .menu-hero h1 {
        font-size: 2.5em;
    }
    .menu-section h2 {
        font-size: 2em;
    }
}
/* --- Modal Styles --- */
.modal {
    display: none; /* Sembunyikan modal secara default */
    position: fixed;
    z-index: 1050; /* Pastikan di atas elemen lain */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7); /* Overlay gelap */
    padding-top: 50px;
    padding-bottom: 50px;
}

.modal-content {
    background-color: var(--text-light);
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 800px;
    position: relative;
    animation-name: animatetop;
    animation-duration: 0.4s;
}

/* Animasi saat modal muncul */
@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

.close-modal-btn {
    color: var(--primary-color);
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
}

.modal-body {
    display: flex;
    gap: 30px;
    align-items: center;
}

.modal-image-container {
    flex: 1;
}

.modal-image-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.modal-details {
    flex: 2;
    display: flex;
    flex-direction: column;
}

#modal-title {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

#modal-description {
    color: #666;
    font-size: 1.1em;
    line-height: 1.5;
    margin-bottom: 20px;
}

.modal-price {
    font-size: 2em;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.quantity-control {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.quantity-control button {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    font-size: 1.5em;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
}

#qty-input {
    width: 60px;
    text-align: center;
    font-size: 1.2em;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.add-to-cart-btn-modal {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

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

@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
        text-align: center;
    }
    .modal-details {
        align-items: center;
    }
    .quantity-control {
        justify-content: center;
    }
}