:root {
    --primary: #C90000;
    --primary-dark: #A00000;
    --bg-cream: #FFF9E5;
    --dark: #1f1f1f;
    --dark-light: #333333;
    --text-main: #1f1f1f;
    --text-muted: #666666;
    --white: #ffffff;
    --border: #e0d9c5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-cream);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

.menu-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 32px 16px;
    text-align: center;
}

.menu-header-inner {
    max-width: 600px;
    margin: 0 auto;
}

.menu-logo {
    height: 120px;
    margin-bottom: 24px;
    object-fit: contain;
}

.menu-slogan {
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.menu-subtitle {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    line-height: 1.4;
}

.category-nav {
    background: var(--dark);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.category-nav::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.category-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 16px 20px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.category-btn.active {
    color: var(--white);
    border-bottom-color: var(--primary);
}

.menu-main {
    max-width: 600px;
    margin: 0 auto;
    padding: 24px 16px 80px;
}

.category-section {
    margin-bottom: 48px;
    scroll-margin-top: 60px;
}

.category-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 24px;
    text-align: center;
    position: relative;
}

.category-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--dark);
    margin: 8px auto 0;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    border: 1px solid var(--border);
}

.product-card:active {
    transform: scale(0.98);
}

.product-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    object-position: center center;
    background-color: #f5f5f5;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(201, 0, 0, 0.4);
}

.product-badge-unavailable {
    background: var(--dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.product-content {
    padding: 20px;
}

.product-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.2;
}

.product-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

/* Modal */
.modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    display: flex;
    align-items: flex-end; /* Bottom sheet on mobile */
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-backdrop.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: var(--bg-cream);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: 24px 24px 0 0;
    display: flex;
    flex-direction: column;
    position: relative;
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.hidden .modal-content {
    transform: translateY(100%);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-scroll-container {
    overflow-y: auto;
    flex: 1;
}

.modal-image-container img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.modal-body {
    padding: 24px;
}

.modal-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.modal-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-price-box {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 32px;
}

.section-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--dark);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.section-rule {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 16px;
}

.options-list {
    margin-bottom: 32px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.option-item {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.option-item:last-child {
    border-bottom: none;
}

.option-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.option-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.modal-footer {
    padding: 24px;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-radius: 0 0 0 0;
    text-align: center;
}

.modal-footer-msg {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 16px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--dark);
    color: var(--dark);
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
}

.btn-outline:active {
    background: var(--dark);
    color: var(--white);
}

.w-100 {
    width: 100%;
}

@media (min-width: 600px) {
    .modal-content {
        border-radius: 24px;
        margin-bottom: 40px;
    }
    
    .modal-footer {
        border-radius: 0 0 24px 24px;
    }
}
