:root {
  --bg: #15181d;
  --bg-2: #1c2027;
  --bg-3: #222730;
  --surface: #222730;
  --ink: #f1ece3;
  --ink-2: #a7a195;
  --ink-3: #73706a;
  --line: #2c323b;
  --line-2: #3b424d;
  --coral: #e9603f;
  --coral-2: #f47a52;
  --coral-3: #c9492f;
  --plum: var(--coral);
  --plum-2: var(--coral-2);
  --honey: var(--coral-2);
  --copper: var(--coral-3);
  --red: #ef5a4c;
  --red-soft: #2a1611;
  --wine: var(--coral);
  --wine-2: var(--coral-2);
  --terra: var(--coral-2);
  --terra-soft: #2a1611;
  --green: var(--coral);
  --green-2: var(--coral-2);
  --amber: var(--coral-2);
  --amber-soft: #2a1611;
  --radius: 14px;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  font-synthesis: none;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--honey); }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 18px; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(14, 26, 20, 0.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  max-width: 760px; margin: 0 auto; padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.brand__sub { font-size: 11px; font-weight: 500; color: var(--ink-2); letter-spacing: 0.04em; }
.table-badge {
  background: var(--honey); color: #2a160f;
  font-weight: 700; font-size: 13px;
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}

.cat { margin: 28px 0 10px; }
.cat__name {
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--honey); display: flex; align-items: center; gap: 10px;
}
.cat__name::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.item {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px;
}
.item__body { flex: 1; min-width: 0; }
.item__name { font-weight: 700; font-size: 16px; }
.item__desc { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.item__price { font-weight: 700; font-size: 15px; color: var(--honey); white-space: nowrap; margin-top: 2px; }
.item__add {
  flex: none; align-self: center;
  width: 40px; height: 40px; border-radius: 10px;
  border: none; background: var(--plum); color: #fff;
  font-size: 22px; font-weight: 600; cursor: pointer; line-height: 1;
  transition: transform .08s ease, background .15s ease;
}
.item__add:hover { background: var(--plum-2); }
.item__add:active { transform: scale(0.92); }
.item--off { opacity: 0.45; }
.item--off .item__add { display: none; }
.item__soldout { font-size: 12px; color: var(--red); font-weight: 600; align-self: center; }

.cart-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--plum); color: #fff;
  padding: 14px 18px; box-shadow: 0 -6px 24px rgba(0,0,0,.45);
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  cursor: pointer;
}
.cart-bar.show { display: flex; }
.cart-bar__count { font-weight: 700; }
.cart-bar__total { font-weight: 800; font-size: 17px; }

.sheet-overlay {
  position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.65);
  display: none; align-items: flex-end;
}
.sheet-overlay.show { display: flex; }
.sheet {
  background: var(--bg-2); width: 100%; max-width: 760px; margin: 0 auto;
  border-radius: 18px 18px 0 0; max-height: 88vh; overflow-y: auto;
  border-top: 1px solid var(--line);
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
}
.sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet__title { font-size: 20px; font-weight: 800; }
.sheet__close { background: none; border: none; font-size: 26px; cursor: pointer; color: var(--ink-2); line-height: 1; }

.line { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line__body { flex: 1; min-width: 0; }
.line__name { font-weight: 700; }
.line__price { color: var(--ink-2); font-size: 13px; }
.line__note {
  margin-top: 6px; width: 100%; border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 9px; font: inherit; font-size: 13px; background: var(--bg); color: var(--ink);
}
.qty { display: flex; align-items: center; gap: 8px; }
.qty__btn {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font-size: 17px; cursor: pointer; line-height: 1;
}
.qty__n { min-width: 18px; text-align: center; font-weight: 700; }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 13px; font: inherit; font-size: 15px; background: var(--bg); color: var(--ink);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--honey); border-color: transparent; }
.textarea { resize: vertical; min-height: 64px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hint { font-size: 12px; color: var(--ink-3); margin-top: 4px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; border: none; border-radius: 12px; cursor: pointer;
  background: var(--honey); color: #2a160f; font: inherit; font-weight: 800; font-size: 16px;
  padding: 15px 18px; transition: filter .15s ease, transform .15s ease;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); font-weight: 700; }

.seg { display: flex; gap: 8px; margin-bottom: 14px; }
.seg__opt {
  flex: 1; text-align: center; padding: 11px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg-2); font-weight: 700; font-size: 14px; cursor: pointer; color: var(--ink-2);
}
.seg__opt--on { background: var(--plum); color: #fff; border-color: var(--plum); }

.status-line { font-size: 14px; margin-top: 10px; min-height: 20px; }
.status-line.err { color: var(--red); }
.status-line.ok { color: var(--honey); }

.confirm { text-align: center; padding: 40px 18px; }
.confirm__check {
  width: 64px; height: 64px; border-radius: 50%; background: var(--plum); color: #fff;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 34px;
}
.confirm__no { font-size: 44px; font-weight: 800; color: var(--honey); margin: 6px 0; }
.confirm__msg { color: var(--ink-2); }

.foot { text-align: center; padding: 28px 18px 100px; color: var(--ink-3); font-size: 12px; }
.foot a { color: var(--ink-2); text-decoration: none; font-weight: 600; }

.page { padding-top: 6px; }
.page__title { font-size: 24px; font-weight: 800; margin: 22px 0 4px; letter-spacing: -0.01em; }
.page__lead { color: var(--ink-2); margin-bottom: 18px; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }

@media (max-width: 480px) {
  .page__title { font-size: 21px; }
}
