:root {
  --bg: #15120e; --card: #211c16; --card2: #2a241c; --line: #3a3127;
  --text: #f4ede1; --muted: #b3a690; --brass: #d0a85c; --brass-dark: #a9843f;
  --green: #4fae7a; --red: #d9634f; --amber: #e0a63a;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 16px; }
a { color: var(--brass); }
button, input, select, textarea { font: inherit; }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px 120px; }

/* Header */
.hero { text-align: center; padding: 28px 16px 14px; border-bottom: 1px solid var(--line); }
.hero .venue { color: var(--muted); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 34px; margin: 6px 0 4px; color: var(--brass); }
.hero .table-pill { display: inline-block; margin-top: 8px; padding: 6px 14px; border: 1px solid var(--brass-dark);
  border-radius: 999px; font-size: 15px; }

/* Category tabs */
.tabs { position: sticky; top: 0; z-index: 5; background: var(--bg); display: flex; gap: 8px;
  overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--card); color: var(--text);
  text-decoration: none; font-size: 14px; border: 1px solid var(--line); }
.tabs a.on { background: var(--brass); color: #1b160f; border-color: var(--brass); }

.search { margin-top: 16px; }
.empty-search { color: var(--muted); text-align: center; padding: 24px 0; }
.item[hidden], .cat[hidden], .tabs a[hidden] { display: none; }
.cat h2 { font-family: Georgia, serif; font-weight: 400; color: var(--brass); font-size: 22px; margin: 22px 0 10px; }
.item { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; margin-bottom: 10px; }
.item .info { flex: 1; min-width: 0; }
.item .name { font-weight: 600; }
.item .desc { color: var(--muted); font-size: 14px; margin-top: 2px; }
.item .price { color: var(--brass); margin-top: 4px; font-weight: 600; }
.af { margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--green); border: 1px solid var(--green); border-radius: 999px; padding: 1px 7px; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--brass-dark);
  background: transparent; color: var(--brass); font-size: 22px; line-height: 1; cursor: pointer; }
.stepper button.add { background: var(--brass); color: #1b160f; border-color: var(--brass); }
.stepper .q { min-width: 18px; text-align: center; font-weight: 700; }

/* Basket bar + sheet */
.basket-bar { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, var(--bg) 30%); z-index: 10; }
.btn { display: block; width: 100%; max-width: 608px; margin: 0 auto; border: 0; border-radius: 12px;
  padding: 16px; font-size: 17px; font-weight: 700; cursor: pointer; text-align: center; text-decoration: none; }
.btn-primary { background: var(--brass); color: #1b160f; }
.btn-primary:disabled { opacity: .5; cursor: default; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.basket-bar .btn { display: flex; justify-content: space-between; }

.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 20; display: none; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; background: var(--card); max-height: 92vh; overflow-y: auto;
  border-radius: 20px 20px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); display: none; }
.sheet.open, .sheet-bg.open { display: block; }
.sheet-inner { max-width: 608px; margin: 0 auto; }
.sheet h3 { margin: 0 0 12px; font-family: Georgia, serif; font-weight: 400; font-size: 24px; color: var(--brass); }
.line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.total { display: flex; justify-content: space-between; font-size: 19px; font-weight: 700; padding: 14px 0; }
label.f { display: block; font-size: 14px; color: var(--muted); margin: 12px 0 6px; }
input.in, textarea.in, select.in { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-size: 15px; }
.check input { width: 22px; height: 22px; flex: none; accent-color: var(--brass); }
.err { color: var(--red); margin: 10px 0; font-size: 15px; }
.note { color: var(--muted); font-size: 13px; text-align: center; margin-top: 12px; }

/* Messages / status */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 20px 0; text-align: center; }
.panel h2 { font-family: Georgia, serif; font-weight: 400; color: var(--brass); margin: 0 0 8px; }
.big-num { font-size: 46px; font-weight: 800; color: var(--brass); margin: 6px 0; }
.steps { display: flex; justify-content: space-between; margin: 22px 0 6px; }
.steps div { flex: 1; text-align: center; font-size: 13px; color: var(--muted); position: relative; }
.steps div::before { content: ""; display: block; width: 16px; height: 16px; border-radius: 50%; margin: 0 auto 6px; background: var(--line); }
.steps div.done { color: var(--text); }
.steps div.done::before { background: var(--green); }
.closed { background: #3a2015; border: 1px solid #6b3a26; color: #f6d9c9; border-radius: var(--radius); padding: 14px; margin: 16px 0; text-align: center; }
