:root {
    --primary: #DC2626;
    --bg: #F9FAFB;
    --text: #111827;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }

body { background: var(--bg); color: var(--text); padding-bottom: 80px; }

.menu-header {
    background: white; padding: 15px 20px; display: flex; justify-content: space-between;
    align-items: center; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.logo { font-weight: 800; font-size: 1.2rem; }

.cart-status {
    background: var(--primary); color: white; padding: 8px 15px; border-radius: 20px;
    font-weight: 600; cursor: pointer;
}

.search-bar { padding: 15px 20px; }
.search-bar input {
    width: 100%; padding: 12px; border-radius: 10px; border: 1px solid #ddd; outline: none;
}

.categories-bar {
    display: flex; overflow-x: auto; padding: 10px 20px; gap: 10px; scrollbar-width: none;
}
.tab {
    white-space: nowrap; padding: 8px 15px; border-radius: 15px; border: none;
    background: white; font-weight: 600; color: #666; cursor: pointer;
}
.tab.active { background: var(--primary); color: white; }

.products-grid {
    padding: 10px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px;
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
}

.product-card {
    background: white; border-radius: 15px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex; flex-direction: column;
}

.product-info { padding: 12px; flex: 1; }
.p-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 5px; }
.p-price { color: var(--primary); font-weight: 800; font-size: 1.1rem; }

.btn-add {
    width: 100%; background: #f3f4f6; border: none; padding: 10px; font-weight: 700;
    cursor: pointer; transition: background 0.2s;
}
.btn-add:active { background: #e5e7eb; }

/* Modal */
.modal {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none;
    align-items: flex-end; z-index: 1000;
}
.modal.active { display: flex; }
.modal-content {
    background: white; width: 100%; border-radius: 20px 20px 0 0; padding: 25px;
    max-height: 90vh; overflow-y: auto;
}

.checkout-form { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.checkout-form input { padding: 12px; border-radius: 8px; border: 1px solid #ddd; }

.modal-actions { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.btn-confirm { background: #25D366; color: white; padding: 15px; border: none; border-radius: 10px; font-weight: 700; }
.btn-cancel { background: #eee; padding: 15px; border: none; border-radius: 10px; }
