:root {
  color-scheme: dark;
  --bg: #14110e;
  --bg-2: #1c1714;
  --card: #241c17;
  --line: rgba(228, 196, 150, 0.16);
  --text: #f6f0e7;
  --muted: #b3a394;
  --gold: #e6c48a;
  --tomato: #e15a3c;
  --tomato-2: #c4472e;
  --good: #c8e2b8;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: #0c0a09; color: var(--text); }
body { min-height: 100vh; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.phone {
  width: min(480px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  background:
    radial-gradient(1200px 400px at 50% -10%, rgba(225, 90, 60, 0.16), transparent 55%),
    var(--bg);
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

.top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(14px + env(safe-area-inset-top)) 16px 8px;
}
.brand-block { min-width: 0; }
.brand {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  letter-spacing: 0.14em;
  line-height: 1;
}
.subtitle {
  margin: 4px 0 0;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.back {
  border: 1px solid var(--line);
  background: #2c241e;
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--gold);
  font-weight: 600;
  flex: 0 0 auto;
}
.back:disabled {
  opacity: 0.45;
  cursor: default;
}

.demo {
  margin: 8px 16px 0;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(230, 196, 138, 0.12);
  color: var(--gold);
  font-size: 13px;
  line-height: 1.35;
}

.cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 4px;
}
.cats[hidden],
.back[hidden],
.demo[hidden],
.cartbar[hidden] {
  display: none !important;
}
.cats::-webkit-scrollbar { display: none; }
.cat {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  white-space: nowrap;
}
.cat.active {
  background: var(--tomato);
  border-color: var(--tomato);
  color: white;
}

.view { padding: 8px 16px 16px; }
.note {
  margin: 4px 0 12px;
  color: var(--gold);
  font-size: 14px;
}
.group-title {
  margin: 16px 0 8px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.grid { display: grid; gap: 12px; }
.card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card img, .hero img, .photo-missing {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center center;
  background: #2a221c;
}
.card img[data-focus="up"],
.hero img[data-focus="up"] {
  object-position: center top;
}
.card img[data-focus="up-tight"],
.hero img[data-focus="up-tight"] {
  object-position: center top;
  transform: scale(1.12);
  transform-origin: center top;
}
.card img[data-focus="down"],
.hero img[data-focus="down"] {
  object-position: center bottom;
  transform: scale(1.28);
  transform-origin: center bottom;
}
.photo-missing {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
}
.card-body, .sheet { padding: 12px 14px 14px; }
.card-top, .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
h1, h2, p { margin: 0; }
.card h2, .sheet h1 { font-size: 20px; font-weight: 650; }
.price { color: var(--gold); white-space: nowrap; font-variant-numeric: tabular-nums; }
.meta, .comp, .hint { color: var(--muted); }
.meta { margin-top: 4px; font-size: 13px; }
.comp {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sheet .comp {
  display: block;
  -webkit-line-clamp: unset;
  margin-top: 10px;
  color: var(--text);
}

.choices, .sauces, .stack { display: grid; gap: 8px; margin-top: 14px; }
.choice, .check, .sauce {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--line);
  background: #1a1512;
  border-radius: 14px;
  padding: 10px 12px;
  text-align: left;
}
.sauce-copy {
  display: flex;
  flex-wrap: wrap;
  column-gap: 8px;
  row-gap: 2px;
  align-items: baseline;
  min-width: 0;
  flex: 1;
}
.sauce-meta { white-space: nowrap; }
.cart-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.cart-photo {
  width: 72px;
  flex: 0 0 72px;
  border-radius: 12px;
  overflow: hidden;
}
.cart-line .cart-photo img {
  width: 72px;
  height: 72px;
  aspect-ratio: 1;
  object-fit: cover;
}
.cart-main { flex: 1; min-width: 0; }
.cart-main h2 { font-size: 17px; }
.cart-total {
  margin: 8px 0 14px;
  font-size: 18px;
  color: var(--gold);
}
.choice.active, .check.active { border-color: var(--gold); }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button, .icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #2c241e;
}
.primary, .ghost {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 14px;
}
.primary { background: var(--tomato); color: white; }
.primary:disabled { opacity: 0.45; }
.ghost { background: transparent; border: 1px solid var(--line); }

label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #1a1512;
  border-radius: 12px;
  padding: 12px;
}
textarea { min-height: 76px; resize: vertical; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.modes button { border-radius: 14px; border: 1px solid var(--line); background: #1a1512; padding: 12px; }
.modes button.active { background: var(--tomato); border-color: var(--tomato); }

.cartbar {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(448px, calc(100% - 24px));
  border: 0;
  border-radius: 16px;
  background: var(--tomato);
  color: white;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.line + .line { margin-top: 12px; }
.summary {
  white-space: pre-wrap;
  background: #1a1512;
  border-radius: 16px;
  padding: 14px;
  line-height: 1.45;
  font-family: inherit;
}
.owner {
  margin-top: 16px;
  background: #1d2a38;
  border-radius: 16px 16px 16px 4px;
  padding: 12px 14px;
}
.owner p { white-space: pre-wrap; line-height: 1.45; }
.owner .who { color: #9fc0e0; font-size: 12px; margin-bottom: 6px; }
.error { color: #ffb4a8; margin-top: 8px; }
.empty { padding: 28px 8px; color: var(--muted); }
.done h1 { font-family: Georgia, "Times New Roman", serif; font-size: 32px; }

.cat-list { display: grid; gap: 12px; margin-top: 8px; }
.cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 88px;
  text-align: left;
  padding: 18px 18px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.cat-row-body { min-width: 0; }
.cat-row-title {
  margin: 0;
  font-size: 22px;
  font-weight: 650;
}
.cat-row-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.cat-row-chevron {
  color: var(--gold);
  font-size: 32px;
  line-height: 1;
  flex: 0 0 auto;
}
.cat-heading {
  margin: 4px 0 12px;
  font-size: 26px;
  font-weight: 650;
}
