:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #1f1a16;
  --muted: #655b52;
  --border: #e8dfd3;
  --accent: #d94e1f;
  --accent-dark: #b33c14;
  --open-bg: #ecfdf3;
  --open-ink: #0f6b3a;
  --open-border: #a7e8c3;
  --walkup-bg: #fff8eb;
  --walkup-ink: #925400;
  --walkup-border: #f7d58b;
  --closed-bg: #f1efec;
  --closed-ink: #575049;
  --closed-border: #dad4cc;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(31, 26, 22, 0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  padding-bottom: 90px;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 18px;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.back-link {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 4px;
}
.back-link:hover { color: var(--accent); }

.brand h1 {
  margin: 0;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}
.tagline {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
}
.status-badge .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}
.status-badge.status-open { background: var(--open-bg); color: var(--open-ink); border-color: var(--open-border); }
.status-badge.status-walkup { background: var(--walkup-bg); color: var(--walkup-ink); border-color: var(--walkup-border); }
.status-badge.status-closed { background: var(--closed-bg); color: var(--closed-ink); border-color: var(--closed-border); }

.main-content { padding-top: 22px; }

.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.alert-success {
  background: var(--open-bg);
  color: var(--open-ink);
  border: 1px solid var(--open-border);
}

.live-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 26px;
}
.live-card.status-open { border-left: 5px solid var(--open-ink); }
.live-card.status-walkup { border-left: 5px solid var(--walkup-ink); }
.live-card.status-closed { border-left: 5px solid var(--closed-ink); }

.live-card-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
  align-items: center;
}
@media (max-width: 720px) {
  .live-card-grid { grid-template-columns: 1fr; }
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.live-card h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}
.meta-line { margin: 4px 0; color: var(--ink); font-size: 0.95rem; }
.note-line {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 10px;
  color: var(--muted);
}
.action-hint { margin: 0 0 12px; color: var(--muted); font-size: 0.93rem; }
.closed-actions { margin-top: 14px; }

.menu-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.menu-header h2 { margin: 0; font-size: 1.4rem; }
.updated-stamp { font-size: 0.82rem; color: var(--muted); }

.menu-category { margin-bottom: 26px; }
.menu-category h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

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

.menu-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 2px 10px rgba(31, 26, 22, 0.03);
}
.menu-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.menu-item h4 { margin: 0; font-size: 1.04rem; }
.price {
  font-weight: 700;
  color: var(--accent-dark);
  white-space: nowrap;
}
.item-desc {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.05s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: var(--border); color: var(--ink); }
.btn-add {
  width: 100%;
  background: #fff3ed;
  color: var(--accent-dark);
  border: 1px solid #f5c9b8;
}
.btn-add:hover { background: #ffe5d8; }
.btn-lg { padding: 12px 18px; }
.btn-block { width: 100%; padding: 13px 16px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.cart-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 0;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.18);
  z-index: 40;
}
.cart-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#cart-bar-total { margin-left: 10px; color: #f6c2a8; font-weight: 600; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 12, 0.55);
}
.modal-panel {
  position: relative;
  background: var(--surface);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.modal-head h3 { margin: 0; }
.icon-btn {
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-weight: 700;
  cursor: pointer;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0 16px;
  font-size: 0.95rem;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.checkout-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.9rem;
  font-weight: 600;
}
.checkout-form input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 1rem;
  font-family: inherit;
}
.form-error {
  margin: 0;
  color: #b42318;
  background: #fef3f2;
  border: 1px solid #fecdca;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
}

.empty-state {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding: 20px 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

.hidden { display: none !important; }
