:root {
  --ink: #161616;
  --muted: #6d6d6d;
  --line: #ececec;
  --paper: #ffffff;
  --soft: #f6f6f6;
  --red: #e10600;
  --red-dark: #c10500;
  --yellow: #f5c518;
  --green: #14342c;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
  --header: 0;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
}
body.lock { overflow: hidden; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
a { color: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  z-index: 80;
}
.skip:focus { top: 12px; }

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: white;
  border-bottom: 1px solid var(--line);
}

.top-row, .meta-row, .cat-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
}
.top-row { min-height: 64px; }
.meta-row {
  min-height: 52px;
  padding-top: 2px;
  padding-bottom: 8px;
  gap: 10px;
}
.cat-row {
  gap: 4px;
  border-top: 1px solid #f3f3f3;
  min-height: 48px;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  margin-right: 8px;
}
.logo-word {
  font-family: Oswald, Impact, sans-serif;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.85;
}
.logo-word em {
  color: var(--red);
  font-style: normal;
}
.logo-sub {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--green);
}

.nav { display: flex; gap: 18px; }
.nav a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a.on { border-bottom-color: var(--red); }

.phone {
  margin-left: auto;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.phone:hover { color: var(--red); }

.loc-wrap { position: relative; }
.loc-pill, .eta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #e4e4e4;
  background: white;
  font-weight: 700;
  font-size: 14px;
}
.loc-pill svg, .eta svg { flex: none; }
.chev { color: #888; }

.loc-pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 280px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px;
  z-index: 5;
}
.loc-pop[hidden] { display: none; }
.loc-pop strong { display: block; font-size: 16px; }
.loc-pop p { margin: 4px 0; color: var(--muted); font-size: 13px; }
.loc-links { display: flex; gap: 12px; margin-top: 8px; }
.loc-links a { font-weight: 800; font-size: 13px; color: var(--red); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1f9d55;
  display: block;
}
.status.closed i { background: var(--red); }

.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
}
.seg button {
  border: 0;
  background: transparent;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  color: #555;
}
.seg button.on {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.cart-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: var(--red);
  color: white;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, background 0.15s ease;
}
.cart-btn:hover { background: var(--red-dark); }
.cart-btn.pop { transform: scale(1.06); }
.cart-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: white;
  color: var(--red);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-count[hidden] { display: none; }

.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  flex: 0 1 280px;
  width: 280px;
  height: 36px;
  margin: 6px 8px 6px 0;
  padding: 0 14px;
  border-radius: 999px;
  background: #f3f3f3;
}
.search-wrap input {
  border: 0;
  width: 100%;
  min-width: 0;
  background: transparent;
  padding: 6px 0;
  outline: none;
}
.search-wrap input::placeholder { color: #9a9a9a; }

.cats { display: flex; flex-wrap: wrap; align-items: center; }
.cat {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #8d8d8d;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 13px;
  padding: 12px 12px 10px;
}
.cat.on { color: var(--ink); border-bottom-color: var(--red); }
.cat:hover { color: var(--ink); }

.hero {
  height: 320px;
  background: #fff;
  overflow: hidden;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.flavor-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--yellow);
  color: var(--green);
  padding: 11px 16px;
  font-size: 14px;
  text-align: center;
}
.flavor-bar strong { font-weight: 800; }
.new-pill {
  background: var(--green);
  color: var(--yellow);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.banner {
  background: var(--green);
  color: white;
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
}
.banner[hidden] { display: none; }

.menu, .locations {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 72px;
}
.section { margin-bottom: 30px; }
.section h2, .locations h2, .modal-copy h2 {
  font-family: Oswald, Impact, sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 4px;
  font-size: 28px;
  line-height: 1;
}
.sub, .loc-lead {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13.5px;
}
.empty {
  padding: 28px 0;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 8px 14px;
  align-content: start;
  min-height: 148px;
  padding: 14px;
  border: 1px solid #ececec;
  border-radius: 16px;
  background: white;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.card:hover { border-color: #dedede; }
.card:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.card img {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: contain;
  grid-row: 1 / span 3;
  background: #fff;
}
.card-name {
  font-family: Oswald, Impact, sans-serif;
  font-size: 17px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 2px 0 0;
}
.card-desc {
  margin: 0;
  color: #707070;
  font-size: 12.5px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}
.price {
  font-weight: 800;
  font-size: 15px;
}
.price small {
  display: block;
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
}

.add-btn, .stepper button, .icon-btn {
  border: 0;
  background: var(--red);
  color: white;
}
.add-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  flex: none;
}
.add-btn:hover, .stepper button:hover:not(:disabled) { background: var(--red-dark); }

.stepper {
  display: inline-flex;
  align-items: center;
  height: 34px;
  border-radius: 999px;
  background: var(--red);
  color: white;
  overflow: hidden;
  flex: none;
}
.stepper button {
  width: 32px;
  height: 34px;
  font-size: 18px;
  line-height: 1;
}
.stepper button:disabled { opacity: 0.35; cursor: default; }
.stepper span {
  min-width: 18px;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
}
.stepper.ghost {
  background: white;
  color: var(--ink);
  border: 1px solid #ddd;
}
.stepper.ghost button {
  background: transparent;
  color: var(--ink);
  width: 36px;
}
.stepper.ghost button:hover:not(:disabled) { background: var(--soft); }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.48);
  z-index: 40;
  display: flex;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.overlay.open { opacity: 1; visibility: visible; }
.cart-overlay { justify-content: flex-end; z-index: 45; }
.modal-overlay { justify-content: center; align-items: center; padding: 16px; z-index: 50; }

.sheet {
  background: white;
  box-shadow: var(--shadow);
}
.cart-sheet {
  width: min(420px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  transform: translateX(16px);
  transition: transform 0.22s ease;
}
.overlay.open .cart-sheet { transform: none; }
.modal-sheet {
  width: min(960px, 100%);
  height: min(820px, calc(100vh - 32px));
  max-height: calc(100vh - 32px);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transform: translateY(10px);
  transition: transform 0.22s ease;
}
.overlay.open .modal-sheet { transform: none; }

.drawer-head, .done-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h2, .done-head h2 {
  margin: 0;
  font-size: 18px;
}
.icon-x, .text-btn {
  border: 0;
  background: transparent;
  color: var(--ink);
}
.icon-x {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
}
.icon-x:hover, .text-btn:hover { background: var(--soft); }
.modal-x { position: absolute; top: 10px; right: 10px; background: white; z-index: 2; }

.drawer-body { flex: 1; overflow: auto; padding: 8px 16px 16px; }
.drawer-foot {
  border-top: 1px solid var(--line);
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.total-row, .sum-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 800;
}
.fine { margin: 0; color: var(--muted); font-size: 12.5px; }
.primary {
  height: 48px;
  border: 0;
  border-radius: 10px;
  background: var(--red);
  color: white;
  font-weight: 800;
  font-size: 16px;
}
.primary:hover:not(:disabled) { background: var(--red-dark); }
.primary:disabled { opacity: 0.4; cursor: not-allowed; }
.primary.grow { flex: 1; }

.line {
  padding: 12px 0;
  border-bottom: 1px solid #f2f2f2;
}
.line-top { display: flex; gap: 10px; }
.line-top strong {
  font-family: Oswald, Impact, sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 600;
}
.line-top p { margin: 2px 0 0; color: #555; font-size: 13px; }
.line-price { margin-left: auto; font-weight: 800; white-space: nowrap; }
.line-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.text-btn { font-weight: 800; font-size: 13px; border-radius: 8px; padding: 6px 8px; color: #444; }
.text-btn.danger { color: var(--red); }

.empty-cart { padding: 36px 8px; color: var(--muted); }
.empty-cart strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field span { font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.field input, .field textarea, .note-box {
  width: 100%;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  padding: 12px 12px;
  background: white;
  outline: none;
}
.field input:focus, .field textarea:focus, .note-box:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.12);
}
.checkout-seg { margin-bottom: 14px; }
.form-error { color: var(--red); font-weight: 700; font-size: 13px; min-height: 1.2em; }
.summary-box {
  background: var(--soft);
  border-radius: 12px;
  padding: 12px;
  margin: 8px 0 12px;
}
.summary-box h3 { margin: 0 0 8px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.sum-line { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 4px 0; }
.sum-line span { color: #444; }
.back-link {
  border: 0;
  background: transparent;
  font-weight: 800;
  padding: 0;
}

#modalBody {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-rows: minmax(0, 1fr);
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.modal-photo {
  background: #fff;
  min-height: 0;
  overflow: hidden;
}
.modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.modal-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}
.modal-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 22px 22px 8px;
}
.modal-copy h2 { padding-right: 36px; }
.modal-copy p { margin: 8px 0 0; color: #555; }
.group { margin-top: 18px; padding-top: 14px; border-top: 1px solid #f0f0f0; }
.group-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.group-head h3 { margin: 0; font-size: 16px; }
.group-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.tag {
  flex: none;
  border-radius: 999px;
  background: var(--soft);
  color: #555;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
}
.tag.req { background: #fff1f0; color: var(--red); }

.choice, .count-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  border: 1px solid transparent;
  border-bottom: 1px solid #f2f2f2;
  background: white;
  padding: 10px 8px;
  border-radius: 10px;
}
.choice.on {
  border-color: var(--red);
  background: #fff7f6;
}
.choice-copy { flex: 1; min-width: 0; }
.choice-copy strong { display: block; font-size: 14px; }
.choice-copy small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.choice-price { font-weight: 800; white-space: nowrap; }
.choice-thumb {
  width: 54px;
  height: 42px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  flex: none;
}
.fav { color: #e2a100; margin-left: 4px; font-size: 13px; }
.heat {
  display: inline-block;
  margin-left: 6px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}
.mini-new {
  display: inline-block;
  margin-left: 6px;
  background: var(--yellow);
  color: var(--green);
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 1px;
}
.count-row { cursor: default; }
.included {
  margin: 0;
  padding: 8px;
  color: #444;
  font-size: 14px;
}
.note-label {
  display: block;
  margin: 16px 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.modal-footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
  background: white;
}
.need {
  flex: 1 0 100%;
  order: -1;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
}
.need:empty { display: none; }

.ticket {
  background: var(--soft);
  border-radius: 12px;
  padding: 12px 14px;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.45;
}
.done-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.ghost-btn {
  height: 44px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: white;
  font-weight: 800;
}
.copied { color: var(--green); font-weight: 800; font-size: 13px; }

.locations[hidden], #orderView[hidden] { display: none; }
.loc-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}
.loc-card, .hours-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.hours-card { background: var(--green); color: white; }
.hours-card h3 { margin: 0 0 8px; font-family: Oswald, sans-serif; letter-spacing: 0.04em; text-transform: uppercase; }
.hours-card p { margin: 4px 0; }
.loc-card h3 { margin: 0 0 6px; font-size: 20px; }
.loc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.loc-actions a, .loc-actions button {
  text-decoration: none;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 800;
  border: 1px solid #e4e4e4;
  background: white;
}
.loc-actions .primary { border: 0; color: white; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}
.site-footer strong { color: var(--ink); }

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .modal-overlay { padding: 0; align-items: stretch; }
  .modal-sheet {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }
  .modal-layout { grid-template-columns: 1fr; grid-template-rows: 200px minmax(0, 1fr); }
  .modal-photo { height: 200px; }
  .loc-grid { grid-template-columns: 1fr; }
  .phone { display: none; }
  .top-row { min-height: 56px; }
  .logo-word { font-size: 30px; }
}
@media (max-width: 680px) {
  .grid { grid-template-columns: 1fr; }
  .hero { height: 210px; }
  .meta-row { flex-wrap: wrap; }
  .cart-btn { margin-left: auto; }
  .cat-row { flex-wrap: wrap; align-items: stretch; }
  .search-wrap {
    flex: 1 0 100%;
    width: auto;
    height: 40px;
    margin: 8px 0;
  }
  .search-wrap input,
  .search-wrap input:focus,
  .search-wrap input:not(:placeholder-shown) { width: 100%; }
  .cats { width: 100%; }
  .cat { padding: 10px 10px 8px; font-size: 12px; }
  .section h2 { font-size: 24px; }
  .card { grid-template-columns: 88px minmax(0, 1fr); }
  .card img { width: 88px; height: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
