/* ── Variables ───────────────────────────────────────────── */
:root {
  --bg:         #090909;
  --bg-card:    #131313;
  --bg-card-h:  #1a1a1a;
  --bg-modal:   #111111;
  --gold:       #c9a84c;
  --gold-lt:    #e8c97a;
  --gold-dk:    #8a6e2c;
  --gold-grad:  linear-gradient(135deg, #c9a84c 0%, #e8c97a 50%, #c9a84c 100%);
  --text:       #f0ead6;
  --text-muted: #7a7060;
  --border:     rgba(201,168,76,.15);
  --border-h:   rgba(201,168,76,.45);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.75);
  --radius:     6px;
  --drawer-w:   400px;
  --transition: .2s ease;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

h1,h2,h3,h4 { font-family: 'Playfair Display', serif; font-weight: 600; }
input, select, textarea, button { font-family: inherit; }
a { color: var(--gold); }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(9,9,9,.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 14px;
}
.logo-line {
  display: block; width: 40px; height: 1px;
  background: var(--gold-grad);
}
.logo h1 {
  font-size: 1.5rem;
  background: var(--gold-grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: .08em;
}
.header-actions {
  display: flex; align-items: center; gap: 20px;
}
.lang-toggle {
  display: flex; align-items: center; gap: 6px;
}
.lang-sep { color: var(--border-h); font-weight: 300; }
.lang-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: .8rem; font-weight: 700;
  letter-spacing: .1em; padding: 4px 2px;
  transition: color var(--transition);
}
.lang-btn.active, .lang-btn:hover { color: var(--gold); }

.cart-trigger {
  position: relative;
  background: none; border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); cursor: pointer; padding: 8px 10px;
  transition: border-color var(--transition), color var(--transition);
}
.cart-trigger:hover { border-color: var(--gold); color: var(--gold); }
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--gold); color: #000;
  font-size: .7rem; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ── Closed Banner ───────────────────────────────────────── */
.closed-banner {
  background: #1a0a00; border-bottom: 1px solid #5a2a00;
  color: #e88030; padding: 10px 24px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: .9rem;
}

/* ── Category Nav ────────────────────────────────────────── */
.cat-nav {
  position: sticky; top: 70px; z-index: 90;
  background: rgba(9,9,9,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex; gap: 4px; padding: 0 24px;
  overflow-x: auto; scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav-btn {
  background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--text-muted); cursor: pointer; white-space: nowrap;
  padding: 14px 16px; font-size: .85rem; letter-spacing: .05em;
  transition: color var(--transition), border-color var(--transition);
  flex-shrink: 0;
}
.cat-nav-btn:hover { color: var(--text); }
.cat-nav-btn.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ── Menu ────────────────────────────────────────────────── */
.menu-wrap {
  max-width: 1200px; margin: 0 auto;
  padding: 40px 24px 80px;
}

.loading-state {
  display: flex; align-items: center; justify-content: center;
  height: 200px;
}
.spinner {
  width: 36px; height: 36px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.menu-section { margin-bottom: 56px; scroll-margin-top: 140px; }
.menu-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 400;
  color: var(--gold);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 16px;
}
.menu-section-title::after {
  content: '';
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.menu-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  transition: border-color var(--transition), transform var(--transition);
  cursor: default;
}
.menu-item:hover { border-color: var(--border-h); }
.menu-item.sold-out { opacity: .5; pointer-events: none; }

.item-info { flex: 1; }
.item-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 600;
  color: var(--text); margin-bottom: 4px;
}
.item-desc {
  font-size: .82rem; color: var(--text-muted);
  line-height: 1.5; margin-bottom: 10px;
}
.sold-out-badge {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  color: #e05050; border: 1px solid #e05050;
  padding: 2px 8px; border-radius: 3px; margin-bottom: 8px;
}
.item-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; color: var(--gold);
}

.item-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.add-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--gold); background: none;
  color: var(--gold); cursor: pointer; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}
.add-btn:hover { background: var(--gold); color: #000; }

.qty-ctrl {
  display: flex; align-items: center; gap: 8px;
}
.qty-btn {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--border-h); background: none;
  color: var(--text); cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--transition);
}
.qty-btn:hover { border-color: var(--gold); color: var(--gold); }
.qty-num { font-size: .9rem; min-width: 16px; text-align: center; }

/* ── Cart Drawer ─────────────────────────────────────────── */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.6); opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.drawer-backdrop.active { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 201;
  width: var(--drawer-w); max-width: 100vw;
  background: var(--bg-modal);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-lg);
}
.cart-drawer.open { transform: translateX(0); }

.drawer-head {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.drawer-head h2 { font-size: 1.2rem; }

.cart-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-empty-msg {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; gap: 12px;
  color: var(--text-muted); text-align: center;
}
.cart-empty-msg svg { opacity: .3; }

.cart-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.ci-name { flex: 1; font-size: .9rem; }
.ci-qty { color: var(--text-muted); font-size: .85rem; }
.ci-price { color: var(--gold); font-size: .9rem; min-width: 60px; text-align: right; }
.ci-remove {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  font-size: 1.1rem; padding: 0 4px;
  transition: color var(--transition);
}
.ci-remove:hover { color: #e05050; }

.cart-footer {
  padding: 16px 20px 24px;
  border-top: 1px solid var(--border);
}
.cart-subtotal {
  display: flex; justify-content: space-between;
  font-size: .9rem; color: var(--text-muted);
  margin-bottom: 14px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.gold-btn {
  background: var(--gold-grad);
  color: #000; border: none; cursor: pointer;
  font-family: 'Lato', sans-serif; font-weight: 700;
  font-size: .9rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 14px 28px; border-radius: var(--radius);
  transition: opacity var(--transition), transform var(--transition);
}
.gold-btn:hover { opacity: .9; transform: translateY(-1px); }
.gold-btn:active { transform: translateY(0); }
.gold-btn.full-width { width: 100%; }
.gold-btn:disabled { opacity: .4; pointer-events: none; }

.icon-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 4px;
  transition: color var(--transition);
}
.icon-btn:hover { color: var(--text); }

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.8); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal {
  background: var(--bg-modal);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%; max-width: 560px; max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal-head {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.modal-head h2 { font-size: 1.25rem; }
.modal-body { flex: 1; overflow-y: auto; padding: 24px; }
.modal-foot {
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* ── Checkout Form ───────────────────────────────────────── */
.type-toggle {
  display: flex; gap: 0; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 24px;
}
.type-btn {
  flex: 1; background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 12px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: .88rem; transition: background var(--transition), color var(--transition);
}
.type-btn + .type-btn { border-left: 1px solid var(--border); }
.type-btn.active { background: var(--gold-dk); color: var(--gold-lt); }

.form-section { margin-bottom: 24px; }
.form-section h3 {
  font-family: 'Lato', sans-serif; font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 14px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; font-size: .8rem; color: var(--text-muted);
  margin-bottom: 6px; letter-spacing: .04em;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; background: #0e0e0e; border: 1px solid var(--border);
  color: var(--text); border-radius: var(--radius); padding: 10px 12px;
  font-size: .9rem; transition: border-color var(--transition);
  appearance: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--gold);
}
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c9a84c' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.form-group textarea { resize: vertical; min-height: 60px; }
::placeholder { color: var(--text-muted); opacity: .6; }

.summary-sep { height: 1px; background: var(--border); margin: 12px 0; }
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .9rem; padding: 4px 0; color: var(--text-muted);
}
.summary-row.total-row {
  font-size: 1.05rem; font-weight: 700; color: var(--text); padding-top: 8px;
}
.summary-row.total-row span:last-child { color: var(--gold); }

.min-order-warning {
  background: rgba(180,60,0,.15); border: 1px solid rgba(180,60,0,.4);
  color: #e07050; border-radius: var(--radius);
  padding: 10px 14px; font-size: .85rem; margin-top: 12px;
}

/* ── Summary lines ───────────────────────────────────────── */
.sum-item {
  display: flex; justify-content: space-between;
  font-size: .85rem; padding: 3px 0; color: var(--text-muted);
}

/* ── Success modal ───────────────────────────────────────── */
.success-modal {
  text-align: center; max-width: 400px;
  padding: 48px 40px; gap: 16px; display: flex; flex-direction: column; align-items: center;
  background: var(--bg-modal); border: 1px solid var(--border); border-radius: var(--radius);
}
.success-check {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--gold-grad);
  color: #000; font-size: 1.8rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}
.success-modal h2 { font-size: 1.5rem; color: var(--gold); }
.success-modal p { color: var(--text-muted); font-size: .9rem; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  text-align: center; padding: 24px;
  color: var(--text-muted); font-size: .82rem;
  line-height: 2;
}

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-h); border-radius: 2px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .header-inner { padding: 0 16px; }
  .menu-wrap { padding: 24px 16px 60px; }
  .menu-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  :root { --drawer-w: 100vw; }
  .modal { max-height: 100vh; border-radius: 0; }
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal { max-width: 100%; }
}
