:root {
    --primary: #d4af37;
    --primary-dark: #b5952f;
    --dark: #121212;
    --dark-surface: #1e1e1e;
    --dark-surface-hover: #2a2a2a;
    --light: #ffffff;
    --text-muted: #a0a0a0;
    --whatsapp: #25D366;
    --danger: #ff4757;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    padding-bottom: 80px; /* Space for floater */
}

h1, h2, h3 { font-family: 'Playfair Display', serif; }

.header {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--dark-surface);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: sticky;
    top: 0;
    z-index: 10;
}
.header h1 { color: var(--primary); font-size: 2rem; margin-bottom: 0.2rem; }
.header p { color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

.menu-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

.category-title {
    color: var(--primary);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 0.5rem;
}

.menu-item {
    background: var(--dark-surface);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.05);
}

.item-info { flex: 1; padding-right: 1rem; }
.item-title { font-weight: 600; font-size: 1.1rem; margin-bottom: 0.2rem; }
.item-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.item-price { color: var(--light); font-weight: 600; }

.item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.btn-add {
    background: var(--primary);
    color: var(--dark);
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}

.qty-control {
    display: flex;
    align-items: center;
    background: var(--dark-surface-hover);
    border-radius: 4px;
    overflow: hidden;
}
.qty-btn {
    background: transparent;
    color: var(--primary);
    border: none;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-val {
    width: 30px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Floating Cart */
.cart-floater {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: var(--primary);
    color: var(--dark);
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    z-index: 100;
}
.cart-floater-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}
.cart-floater-text { text-transform: uppercase; letter-spacing: 1px; }

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    display: none;
    align-items: flex-end; /* Mobile friendly bottom sheet */
    justify-content: center;
    z-index: 200;
}
.modal {
    background: var(--dark-surface);
    width: 100%;
    max-width: 600px;
    border-radius: 16px 16px 0 0;
    padding: 1.5rem;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 1rem;
}
.close-btn { background: none; border: none; color: var(--light); font-size: 2rem; cursor: pointer; }

.cart-items { margin-bottom: 1.5rem; }
.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cart-item-info { flex: 1; }
.cart-item-title { font-weight: 600; font-size: 1rem; }
.cart-item-price { font-size: 0.9rem; color: var(--text-muted); }
.cart-item-total { font-weight: 600; margin-left: 1rem; width: 60px; text-align: right;}

.cart-summary {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    margin-bottom: 1.5rem;
}

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--text-muted); font-size: 0.9rem; }
.form-group input {
    width: 100%; padding: 0.8rem; border-radius: 4px;
    background: var(--dark); border: 1px solid rgba(255,255,255,0.1);
    color: var(--light); font-size: 1rem; outline: none;
}
.form-group input:focus { border-color: var(--primary); }

.modal-actions { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 1.5rem; }
.btn {
    width: 100%; padding: 1rem; border: none; border-radius: 4px;
    font-size: 1rem; font-weight: 600; cursor: pointer; text-align: center;
}
.btn-whatsapp { background: var(--whatsapp); color: white; }
.btn-call { background: transparent; color: var(--light); border: 1px solid rgba(255,255,255,0.2); }

@media (min-width: 768px) {
    .modal-overlay { align-items: center; }
    .modal { border-radius: 8px; }
}
