/* ==========================================================================
   Guest menu — mobile first, white cards on grey canvas, orange for actions
   ========================================================================== */

body.menu-body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 96px;
}

/* ---------- header ---------- */

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

.mhead-in {
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mlogo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #fff3e3;
  border: 1px solid #f8d3a5;
  color: var(--brand-text);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  overflow: hidden;
  flex: none;
}

.mlogo img { width: 100%; height: 100%; object-fit: cover; }

.mhead h1 { font-size: 18px; letter-spacing: -0.02em; line-height: 1.15; }

.mhead .mmeta { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

.mhead .mwa {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-2);
  background: #fff;
  white-space: nowrap;
}

.mhead .mwa:hover { border-color: #bfc7cc; color: var(--ink); }

/* ---------- layout ---------- */

.mwrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

/* ---------- category rail ---------- */

.rail {
  position: sticky;
  top: 71px;
  z-index: 20;
  background: var(--canvas);
  margin: 0 -18px;
  padding: 10px 18px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
  /* the rail scrolls; fade the edge so the cut looks deliberate */
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent 100%);
}

/* once scrolled to the end, the fade has nothing to hide */
.rail.at-end {
  -webkit-mask-image: none;
  mask-image: none;
}

.rail::-webkit-scrollbar { display: none; }
.rail { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }

.rail a {
  flex: none;
  height: 32px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: #fff;
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
  transition: border-color 120ms ease, color 120ms ease, background 120ms ease;
}

.rail a.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- sections ---------- */

.sec { padding-top: 26px; }

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.sec-head h2 { font-size: 17px; letter-spacing: -0.015em; }
.sec-head span { font-size: 12.5px; color: var(--ink-3); }

.items {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.item:last-child { border-bottom: none; }

/* a dish photo, when the menu has one */
.item.has-img { grid-template-columns: 64px minmax(0, 1fr) auto; }
.item .thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: #f1f3f4;
  display: block;
}
.item.sold .thumb { filter: grayscale(1); opacity: 0.55; }

@media (max-width: 520px) {
  /* a phone row: name gets the full width, price and Add sit underneath —
     side by side, the price column was eating a third of the screen and the
     dish name broke over five lines */
  .item { grid-template-columns: minmax(0, 1fr); gap: 6px 10px; padding: 13px 14px; }
  .item.has-img { grid-template-columns: 52px minmax(0, 1fr); }
  .item .thumb { width: 52px; height: 52px; border-radius: 8px; }
  .item .right { grid-column: 1 / -1; justify-content: flex-end; gap: 14px; }
  .item.has-img .right { grid-column: 2; }
  .item .pr { font-size: 14px; }
}

.item .nm {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.3;
}

.item .ds { font-size: 13px; color: var(--ink-3); margin-top: 3px; line-height: 1.45; }

.item .right { display: flex; align-items: center; gap: 12px; }

.item .pr { font-size: 14.5px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }

.diet {
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--ok);
  border-radius: 3px;
  display: inline-grid;
  place-items: center;
  flex: none;
}

.diet::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ok); }
.diet.non { border-color: var(--danger); }
.diet.non::after { background: var(--danger); }

.add {
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: var(--ink);
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
  white-space: nowrap;
}

.add:hover { border-color: var(--brand); color: var(--brand-text); background: #fffaf4; }
.add.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

/* sold out */

.item.sold { background: #fbfbfc; }
.item.sold .nm { color: var(--ink-4); }
.item.sold .ds { color: #b3bcc1; }
.item.sold .pr { color: var(--ink-4); text-decoration: line-through; text-decoration-thickness: 1px; }

.sold-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
  background: #f0f2f4;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}

/* ---------- cart ---------- */

.cart {
  position: sticky;
  top: 96px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  margin-top: 26px;
}

.cart h3 {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 10px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.cart h3 em { font-family: var(--ui); font-style: normal; font-size: 12px; font-weight: 400; color: var(--ink-3); }

.cart-empty { font-size: 13px; color: var(--ink-3); line-height: 1.5; padding: 6px 0 2px; }

.crow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  font-size: 13.5px;
  border-bottom: 1px solid #f1f3f4;
}

.crow:last-of-type { border-bottom: none; }
.crow .cn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; height: 26px; }
.qty button { border: none; background: none; width: 24px; height: 100%; cursor: pointer; font-size: 14px; line-height: 1; color: var(--ink-2); }
.qty button:hover { background: #f4f6f7; color: var(--ink); }
.qty span { min-width: 20px; text-align: center; font-size: 12.5px; font-variant-numeric: tabular-nums; }

.cart-total {
  display: flex;
  justify-content: space-between;
  padding: 12px 0 0;
  margin-top: 6px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}

.cart-total b { font-weight: 600; }

.checkout-btn {
  width: 100%;
  height: 42px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: var(--brand-ink);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  transition: background 120ms ease;
}

.checkout-btn:hover { background: var(--brand-hover); }
.checkout-btn[disabled] { background: #eef1f2; border-color: var(--line-2); color: var(--ink-4); cursor: not-allowed; }

/* ---------- sheet ---------- */

.sheet-back {
  position: fixed;
  inset: 0;
  background: rgba(18, 22, 26, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 60;
}

.sheet-back.on { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed;
  z-index: 61;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 102%);
  width: min(100%, 460px);
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 14px 14px 0 0;
  padding: 22px 20px 24px;
  transition: transform 260ms cubic-bezier(0.22, 0.8, 0.2, 1);
  box-shadow: 0 -20px 48px -24px rgba(18, 22, 26, 0.55);
  opacity: 0;
}

.sheet.on { transform: translate(-50%, 0); opacity: 1; }
.sheet { scrollbar-width: none; }
.sheet::-webkit-scrollbar { width: 0; height: 0; }

.sheet h2 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 4px; }
.sheet .sub { font-size: 13px; color: var(--ink-3); margin-bottom: 18px; line-height: 1.5; }

.mode { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }

.mode button {
  height: 40px;
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  cursor: pointer;
  color: var(--ink-2);
}

.mode button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  font-weight: 500;
}

.chips { display: flex; gap: 6px; flex-wrap: wrap; }

.chips button {
  height: 32px;
  padding: 0 13px;
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink-2);
}

.chips button[aria-pressed="true"] { border-color: var(--brand); background: #fff5e9; color: var(--brand-text); font-weight: 500; }

.err { color: var(--danger); font-size: 12.5px; margin-top: 6px; display: none; }
.err.on { display: block; }

.order-lines { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; background: #fbfbfc; }

.ol-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 4px 0; color: var(--ink-2); }

.ol-row.total {
  border-top: 1px dashed var(--line-2);
  margin-top: 8px;
  padding-top: 9px;
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 600;
}

.sheet-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  position: sticky;
  bottom: -24px;
  background: #fff;
  padding: 12px 0 4px;
}

.sheet-actions .btn { flex: 1; }

/* done */

.done-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ok-bg);
  border: 1px solid #c3e5d4;
  display: grid;
  place-items: center;
  color: var(--ok);
  margin-bottom: 14px;
}

.next-steps {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
  border-left: 2px solid var(--brand);
  padding-left: 12px;
  margin-bottom: 6px;
}

/* ---------- mobile bar ---------- */

.mbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--ink);
  color: #fff;
  padding: 11px 16px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.mbar .bc { font-size: 12px; color: #a9b3b9; }
.mbar .bt { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.mbar button { height: 38px; padding: 0 16px; border: none; background: var(--brand); color: var(--brand-ink); border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600; cursor: pointer; }

/* ---------- footer ---------- */

.mfoot {
  max-width: 980px;
  margin: 34px auto 0;
  padding: 18px;
  font-size: 12px;
  color: var(--ink-4);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .mwrap { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cart { display: none; }
  .mbar.on { display: flex; }
  .mhead .mwa span { display: none; }
}

@media (max-width: 420px) {
  .item { padding: 13px 14px; }
  .item .ds { font-size: 12.5px; }
}

/* ---------- embed: the landing page phone frame ---------- */

body.embed { padding-bottom: 0; }
body.embed .mhead { position: static; }
body.embed .mhead-in { padding: 10px 12px; gap: 9px; }
body.embed .mlogo { width: 34px; height: 34px; font-size: 12px; border-radius: 8px; }
body.embed .mhead h1 { font-size: 15px; }
body.embed .mhead .mmeta { font-size: 11px; }
body.embed .mhead .mwa { display: none; }
body.embed .mwrap { padding: 0 12px; }
body.embed .rail { position: sticky; top: 0; padding: 8px 12px; margin: 0 -12px; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; -webkit-mask-image: linear-gradient(to right, #000 82%, transparent 100%); mask-image: linear-gradient(to right, #000 82%, transparent 100%); }
body.embed .rail a { height: 26px; font-size: 11px; padding: 0 9px; }
body.embed .rail { gap: 6px; }
body.embed .sec { padding-top: 16px; }
body.embed .sec-head h2 { font-size: 15px; }
body.embed .sec-head span { font-size: 11px; }
body.embed .item { display: block; padding: 11px 12px; }
body.embed .item .nm { font-size: 13.5px; }
body.embed .item .ds { font-size: 11.5px; }
body.embed .item .pr { font-size: 13px; }
body.embed .item .right { margin-top: 8px; justify-content: space-between; gap: 10px; }
body.embed .add { height: 28px; font-size: 12px; padding: 0 10px; }
body.embed .sold-tag { font-size: 10px; padding: 4px 8px; }
body.embed .mbar { display: none !important; }
body.embed .mfoot { display: none; }
body.embed .mhead-in { padding-top: 20px; }
body.embed::-webkit-scrollbar { width: 0; height: 0; }
body.embed { scrollbar-width: none; }
html.embed-root { scrollbar-width: none; }
html.embed-root::-webkit-scrollbar { width: 0; height: 0; }

/* ---------- guest landing hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  min-height: 250px;
  display: flex;
  align-items: flex-end;
  background:
    radial-gradient(130% 150% at 8% 0%, #f0485f 0%, #a5273a 52%, #2c1418 100%);
}

.hero.has-media { background: #131416; }

.hero-media {
  position: absolute;
  inset: 0;
  display: flex;
  z-index: -2;
}

.hero-media img {
  flex: 1 1 0;
  min-width: 0;
  width: 0;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-media.one img { flex: 1 1 100%; }

.hero.has-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 9, 10, 0.30) 0%, rgba(8, 9, 10, 0.74) 55%, rgba(8, 9, 10, 0.93) 100%);
}

.hero-in {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 18px 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 24px;
  flex-wrap: wrap;
}

.hero-card { display: flex; align-items: center; gap: 16px; min-width: 0; }

.hero-logo {
  width: 66px;
  height: 66px;
  flex: none;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 21px;
  overflow: hidden;
  backdrop-filter: blur(6px);
}

.hero-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-text { min-width: 0; }

.hero h1 {
  color: #fff;
  margin: 0;
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 600;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}

.hero-tag {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.86);
  max-width: 44ch;
}

.hero-meta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.75);
}

.hero-meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  opacity: 0.55;
}

.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.hero-actions .mwa {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  background: #fff;
  color: #14161a;
  border: 1px solid transparent;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(8, 10, 12, 0.22);
  transition: background 160ms ease, transform 160ms ease;
}

.hero-actions .mwa:hover { background: #f2f3f4; color: #14161a; border-color: transparent; }
.hero-actions .mwa:active { transform: scale(0.97); }
.hero-actions .mwa svg { flex: none; }

.hero-social {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: background 160ms ease, transform 160ms ease;
}

.hero-social:hover { background: rgba(255, 255, 255, 0.26); }
.hero-social:active { transform: scale(0.97); }
.hero-social span { max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the hero carries the identity, so the sticky header stands down */
body.has-hero .mhead { display: none; }
body.has-hero .rail { top: 0; }

@media (max-width: 760px) {
  .hero { min-height: 210px; }
  .hero-in { padding: 48px 16px 18px; }
  .hero-logo { width: 56px; height: 56px; border-radius: 15px; font-size: 18px; }
  .hero-actions { width: 100%; }
  .hero-social, .hero-actions .mwa { height: 34px; padding: 0 12px; font-size: 12px; }
}

/* a class display rule beats the hidden attribute; restore it for the hero */
.hero [hidden] { display: none !important; }

body.embed .hero { display: none !important; }

/* ---------- promo shelves on the guest menu ---------- */

.rail a.feat { border-color: #f3d7ae; background: #fff6ea; color: var(--brand-text); }
.rail a.feat.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.sec.featured .sec-head h2 { color: var(--brand-text); }
.sec.featured .sec-head .star { color: var(--brand); margin-right: 2px; }

.sec.featured {
  background: linear-gradient(180deg, #fffaf3 0%, rgba(255, 250, 243, 0) 120px);
  border-radius: 14px;
}

.sec.featured .sec-head { border-bottom-color: #f3d7ae; }

/* a dish photo that has not arrived yet should look like it is arriving */
.item .thumb.loading {
  background: linear-gradient(100deg, #eef1f2 30%, #e4e8ea 45%, #eef1f2 60%);
  background-size: 300% 100%;
  animation: thumbShimmer 1.3s ease-in-out infinite;
}

@keyframes thumbShimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -20% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .item .thumb.loading { animation: none; }
}


/* ---------------- view-only menu (the $2 plan) ---------------- */
.view-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 18px 0 4px;
  padding: 11px 14px;
  border: 1px solid rgba(240, 72, 95, 0.28);
  background: rgba(240, 72, 95, 0.07);
  border-radius: 10px;
  font-size: 13px;
  color: #d8dee3;
}
.view-note svg { width: 15px; height: 15px; fill: #f0485f; flex: none; }
.view-note[hidden] { display: none !important; }

body.view-only .cart,
body.view-only #mobileBar,
body.view-only .add { display: none !important; }

/* with no cart rail the menu column can breathe */
body.view-only .mwrap { grid-template-columns: minmax(0, 1fr); }
body.view-only #sheet, body.view-only #sheetBack { display: none !important; }
