:root {
  --bg: #0e0c0a;
  --bg-2: #161310;
  --surface: #1c1815;
  --surface-hi: #24201b;
  --border: #322c24;
  --gold: #d4a54a;
  --gold-hi: #eec877;
  --cream: #ede7dc;
  --cream-dim: #b8b0a0;
  --ember: #c1443a;
  --veg: #4a9f5c;
  --shadow: 0 8px 30px rgba(0,0,0,0.5);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: 'Inter', -apple-system, sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding-bottom: 90px;
}

/* ===== Ambient background ===== */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}
.bg-glow-1 {
  width: 400px; height: 400px;
  background: var(--gold);
  top: -100px; left: -100px;
}
.bg-glow-2 {
  width: 500px; height: 500px;
  background: var(--ember);
  bottom: 10%; right: -150px;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(212,165,74,0.06) 1px, transparent 0);
  background-size: 22px 22px;
  pointer-events: none;
  z-index: 0;
}

/* ===== Header ===== */
.site-header {
  position: relative;
  text-align: center;
  padding: 56px 20px 36px;
  z-index: 1;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
  opacity: 0.85;
}
.brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  letter-spacing: 1px;
  margin: 0;
  color: var(--cream);
  text-shadow: 0 0 40px rgba(212,165,74,0.25);
}
.brand-script {
  font-family: 'Caveat', cursive;
  color: var(--gold-hi);
  font-size: 1.15em;
  font-weight: 700;
}
.tagline {
  color: var(--cream-dim);
  font-size: 14px;
  font-style: italic;
  margin: 10px 0 0;
}
.header-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

/* ===== Control bar ===== */
.control-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(14,12,10,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.search-wrap {
  position: relative;
  flex: 1 1 200px;
  min-width: 160px;
}
.search-icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  color: var(--cream-dim);
  pointer-events: none;
}
#searchInput {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--cream);
  padding: 10px 14px 10px 36px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
#searchInput:focus { border-color: var(--gold); }
#searchInput::placeholder { color: var(--cream-dim); }

.veg-toggle {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.veg-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--cream-dim);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.veg-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1510;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 2px;
  display: inline-block;
  border: 1.5px solid currentColor;
}
.dot-veg { background: var(--veg); border-color: var(--veg); }
.dot-nonveg { background: var(--ember); border-color: var(--ember); }
.veg-btn.active .dot { border-color: #1a1510; }

/* ===== Category rail ===== */
.category-rail {
  position: sticky;
  top: 61px;
  z-index: 19;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 16px;
  background: rgba(14,12,10,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}
.category-rail::-webkit-scrollbar { display: none; }
.cat-chip {
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--cream-dim);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.cat-chip.active {
  background: var(--surface-hi);
  border-color: var(--gold);
  color: var(--gold-hi);
}

/* ===== Menu sections ===== */
main {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 16px 40px;
}

.menu-section {
  margin-top: 34px;
  scroll-margin-top: 130px;
}
.section-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.section-icon { font-size: 20px; }
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 0.5px;
  color: var(--gold-hi);
  margin: 0;
}
.section-count {
  color: var(--cream-dim);
  font-size: 12px;
  margin-left: auto;
}

.item-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 14px;
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
}
.menu-item.in-cart {
  border-color: var(--gold);
  background: var(--surface-hi);
}
.item-marker {
  width: 14px; height: 14px;
  flex-shrink: 0;
  border-radius: 3px;
  border: 2px solid var(--veg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.item-marker.nonveg { border-color: var(--ember); }
.item-marker::after {
  content: '';
  width: 6px; height: 6px;
  border-radius: 1px;
  background: var(--veg);
}
.item-marker.nonveg::after { background: var(--ember); }

.item-info { flex: 1; min-width: 0; }
.item-name {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--cream);
  line-height: 1.3;
}
.item-name .special-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #1a1510;
  background: var(--gold);
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase;
}
.item-price {
  font-size: 13px;
  color: var(--cream-dim);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.item-add {
  flex-shrink: 0;
}
.add-btn {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold-hi);
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 18px;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.add-btn:active { transform: scale(0.9); }
.add-btn.filled {
  background: var(--gold);
  color: #1a1510;
}

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--gold);
  border-radius: 999px;
  overflow: hidden;
  height: 34px;
}
.qty-stepper button {
  background: none;
  border: none;
  color: #1a1510;
  width: 30px;
  height: 34px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.qty-stepper span {
  min-width: 20px;
  text-align: center;
  font-weight: 700;
  color: #1a1510;
  font-size: 14px;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--cream-dim);
}
.no-results .big { font-size: 40px; display: block; margin-bottom: 12px; }

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 40px 20px 30px;
  position: relative;
  z-index: 1;
}
.footer-brand {
  font-family: 'Caveat', cursive;
  color: var(--gold);
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 6px;
}
.footer-note {
  color: var(--cream-dim);
  font-size: 12px;
  margin: 0;
}

/* ===== Cart FAB ===== */
.cart-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 30;
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: #1a1510;
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(212,165,74,0.35);
  transition: transform 0.15s;
}
.cart-fab.visible { display: flex; }
.cart-fab:active { transform: scale(0.96); }
.cart-fab-icon { font-size: 18px; }
.cart-fab-count {
  background: #1a1510;
  color: var(--gold);
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-fab-total { font-variant-numeric: tabular-nums; }

/* ===== Cart drawer ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  z-index: 41;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
}
.cart-drawer.open { transform: translateY(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 14px;
  border-bottom: 1px solid var(--border);
}
.cart-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  color: var(--gold-hi);
  margin: 0;
  letter-spacing: 0.5px;
}
.cart-close {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--cream);
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
}
.cart-empty {
  text-align: center;
  color: var(--cream-dim);
  padding: 40px 10px;
  font-size: 14px;
}
.cart-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.cart-row:last-child { border-bottom: none; }
.cart-row-info { flex: 1; min-width: 0; }
.cart-row-name { font-size: 14px; color: var(--cream); }
.cart-row-price { font-size: 12px; color: var(--cream-dim); margin-top: 2px; }
.cart-row-remove {
  background: none;
  border: none;
  color: var(--ember);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
}

.cart-footer {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: var(--cream);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.cart-total-row span:last-child { color: var(--gold-hi); }

#cartNote {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--cream);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
  resize: none;
  height: 54px;
  margin-bottom: 12px;
  outline: none;
}
#cartNote:focus { border-color: var(--gold); }
#cartNote::placeholder { color: var(--cream-dim); }

.order-btn {
  width: 100%;
  background: #25D366;
  color: #06210f;
  border: none;
  border-radius: 12px;
  padding: 15px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.15s;
}
.order-btn:active { transform: scale(0.98); }

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface-hi);
  border: 1px solid var(--gold);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 600px) {
  .brand { font-size: 64px; }
  .cart-drawer { border-radius: 24px; bottom: 20px; left: 50%; right: auto; transform: translate(-50%, 120%); }
  .cart-drawer.open { transform: translate(-50%, 0); }
}
