/* Bakmi SC — chili red, egg-noodle yellow, broth cream. Display: Lilita One (chunky like the shop banner); text: Plus Jakarta Sans. */
@font-face { font-family: "Lilita One"; font-weight: 400; font-display: swap; src: url(fonts/lilita-one-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 500; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600 700; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800 900; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-800-normal.woff2) format("woff2"); }
:root {
  --red: #b3121b; --red-deep: #7e0b12; --red-ink: #5c0a0f;
  --yellow: #ffc531; --yellow-soft: #ffe7a3; --cream: #fff6e5; --paper: #fffbf3;
  --ink: #2a1405; --ink-2: #6b4a33; --line: #f0dcc0; --green: #1f8f4e;
  --display: "Lilita One", "Arial Black", Impact, sans-serif;
  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.muted { color: var(--ink-2); }
.mono { font-variant-numeric: tabular-nums; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid transparent; border-radius: 999px; padding: 10px 18px; font-weight: 800; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .12s ease, box-shadow .12s ease; }
.btn:active { transform: translateY(1px); }
.btn.big { padding: 14px 24px; font-size: 1.05rem; }
.btn.sm { padding: 7px 14px; font-size: .9rem; }
.btn.wide { width: 100%; }
.btn.wa { background: var(--green); color: #fff; }
.btn.yellow { background: var(--yellow); color: var(--red-ink); box-shadow: 0 4px 0 #c98e00; }
.btn.yellow:hover { box-shadow: 0 6px 0 #c98e00; transform: translateY(-2px); }
.btn.outline { border-color: rgba(255,255,255,.6); color: #fff; }
.btn.outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: var(--red); color: #fff; box-shadow: 0 2px 0 var(--red-deep); padding-top: env(safe-area-inset-top); }
.top-in { display: flex; align-items: center; gap: 20px; height: 60px; }
.logo { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; font-family: var(--display); letter-spacing: .02em; line-height: 1; }
.logo-b { font-size: 1.55rem; color: #fff; }
.logo-s { font-size: 1.75rem; color: var(--yellow); transform: rotate(-6deg); display: inline-block; text-shadow: 2px 2px 0 var(--red-deep); }
.logo.small .logo-b { font-size: 1.2rem; } .logo.small .logo-s { font-size: 1.35rem; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 999px; opacity: .92; }
.nav a:hover { background: rgba(255,255,255,.12); opacity: 1; }

/* hero */
.hero { position: relative; background: radial-gradient(120% 90% at 85% 30%, #d0222b 0%, var(--red) 45%, var(--red-deep) 100%); color: #fff; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: 56px 72px; }
.kicker { font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--yellow); margin: 0 0 10px; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: .98; letter-spacing: .005em; color: var(--yellow); text-shadow: 3px 3px 0 var(--red-ink); }
.lede { font-size: 1.12rem; max-width: 46ch; margin: 18px 0 26px; color: #ffe9e4; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 16px 0 0; font-size: .9rem; color: #ffd6cf; }
.hero-art { position: relative; justify-self: center; width: min(460px, 100%); }
.plate { aspect-ratio: 1; border-radius: 50%; background: var(--cream); padding: 12px; box-shadow: 0 0 0 10px var(--yellow), 0 0 0 14px var(--red-ink), 0 24px 50px rgba(60,0,0,.45); overflow: hidden; }
.plate img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.sticker { position: absolute; left: -6px; bottom: 26px; background: var(--yellow); color: var(--red-ink); border-radius: 50%; width: 112px; height: 112px; display: grid; place-content: center; text-align: center; transform: rotate(-10deg); box-shadow: 0 6px 0 #c98e00; }
.sticker small { font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; }
.sticker b { font-family: var(--display); font-weight: 400; font-size: 1.35rem; line-height: 1; }
/* the meander border from the shop's plates */
.meander { height: 22px; background:
  repeating-linear-gradient(90deg, var(--yellow) 0 4px, transparent 4px 22px) 0 0 / 22px 22px,
  linear-gradient(var(--yellow) 0 4px, transparent 4px 18px, var(--yellow) 18px 22px);
  background-color: var(--red-deep); opacity: .9; }

/* sections */
.sec-h { font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 3.6vw, 2.5rem); color: var(--red); letter-spacing: .01em; line-height: 1.05; }
.sec-h.light { color: var(--yellow); }
.fav { padding-block: 44px 8px; }
.fav-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 18px; }
.fav-card { display: flex; align-items: center; gap: 12px; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 10px; text-decoration: none; transition: border-color .15s; }
.fav-card:hover { border-color: var(--yellow); }
.fav-card img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; }
.fav-card span { display: flex; flex-direction: column; min-width: 0; }
.fav-card b { font-weight: 800; line-height: 1.25; }
.fav-card i { font-style: normal; color: var(--red); font-weight: 800; }

.menu-sec { padding-block: 40px 56px; }
.menu-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.menu-head p { margin: 0; }
.cat-tabs { position: sticky; top: calc(60px + env(safe-area-inset-top)); z-index: 20; display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; margin: 10px 0 6px; background: var(--paper); scrollbar-width: none; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs a { flex: none; text-decoration: none; font-weight: 800; padding: 8px 16px; border-radius: 999px; background: #fff; border: 2px solid var(--line); color: var(--ink); }
.cat-tabs a.on, .cat-tabs a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.cat { padding-top: 18px; scroll-margin-top: 130px; }
.cat-h { font-weight: 800; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cat-h::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.dish { scroll-margin-top: 140px; }
.dishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.dish { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); border: 2px solid var(--line); overflow: hidden; min-width: 0; transition: transform .15s ease, box-shadow .15s ease; }
.dish:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(122,12,18,.12); }
.dish.in-cart { border-color: var(--yellow); box-shadow: 0 0 0 2px var(--yellow); }
.dish.sold { opacity: .6; }
.dish-img { position: relative; aspect-ratio: 4 / 3; background: var(--cream); overflow: hidden; }
.dish-img img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; left: 10px; top: 10px; background: var(--yellow); color: var(--red-ink); font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; border-radius: 999px; padding: 4px 10px; }
.badge.out { left: auto; right: 10px; background: var(--ink); color: #fff; }
.ph-art { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 6px; color: var(--red); text-align: center; padding: 12px;
  background: radial-gradient(circle at 50% 40%, #fff3cf 0 38%, var(--yellow-soft) 39% 100%); }
.ph-art svg { width: 38%; height: auto; }
.ph-art span { font-family: var(--display); font-size: 1.05rem; color: var(--red-ink); line-height: 1.1; max-width: 90%; }
.dish-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.dish-body h3 { font-weight: 800; font-size: 1.08rem; line-height: 1.25; }
.dish-body p { margin: 0; color: var(--ink-2); font-size: .9rem; }
.dish-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-family: var(--display); font-size: 1.35rem; color: var(--red); letter-spacing: .01em; }
.add { white-space: nowrap; flex: none; background: var(--yellow); border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 800; color: var(--red-ink); cursor: pointer; box-shadow: 0 3px 0 #c98e00; }
.add:active { transform: translateY(2px); box-shadow: 0 1px 0 #c98e00; }
.stepper { display: inline-flex; align-items: center; background: var(--red); color: #fff; border-radius: 999px; overflow: hidden; }
.stepper button { border: 0; background: none; color: #fff; width: 36px; height: 36px; font-size: 1.2rem; font-weight: 800; cursor: pointer; }
.stepper button:hover { background: var(--red-deep); }
.stepper output { min-width: 26px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.soldtxt { font-weight: 700; color: var(--ink-2); font-size: .9rem; }

.how { background: var(--red); color: #fff; padding-block: 52px; }
.how-steps { list-style: none; counter-reset: s; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.how-steps li { counter-increment: s; background: var(--red-deep); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.how-steps li::before { content: counter(s); font-family: var(--display); font-size: 2.2rem; color: var(--yellow); line-height: 1; }
.how-steps b { font-size: 1.1rem; }
.how-steps span { color: #ffd6cf; font-size: .95rem; }
.platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; font-weight: 700; }
.platforms > span:first-child { color: #ffd6cf; margin-right: 4px; }
.pf { background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 14px; text-decoration: none; font-weight: 800; }
a.pf:hover { background: var(--yellow); }

.visit { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; padding-block: 48px; }
.info { display: grid; gap: 14px; margin: 18px 0 0; }
.info div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
.info dt { font-weight: 800; color: var(--ink-2); text-transform: uppercase; font-size: .78rem; letter-spacing: .1em; padding-top: 3px; }
.info dd { margin: 0; font-weight: 600; }
.info a { color: var(--red); font-weight: 800; }
.foot { background: var(--ink); color: #f5e6d3; padding-block: 22px calc(22px + env(safe-area-inset-bottom)); font-size: .9rem; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
body.has-cart .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

/* cart bar + sheet */
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px max(16px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)); pointer-events: none; }
.cartbar-btn { pointer-events: auto; display: flex; align-items: center; gap: 12px; width: min(560px, 100%); margin: 0 auto; border: 0; background: var(--green); color: #fff; border-radius: 999px; padding: 10px 12px 10px 10px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.cb-count { background: #fff; color: var(--green); min-width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.cb-label { flex: 1; text-align: left; font-size: 1.02rem; }
.cb-total { font-size: 1.05rem; font-variant-numeric: tabular-nums; padding-right: 8px; }
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(42,20,5,.55); }
.sheet-panel { position: relative; background: var(--paper); width: min(560px, 100%); max-height: min(92vh, 900px); border-radius: 22px 22px 0 0; display: flex; flex-direction: column; animation: up .2s ease; }
@keyframes up { from { transform: translateY(30px); opacity: .6; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 10px; }
.sheet-head h2 { font-family: var(--display); font-weight: 400; color: var(--red); font-size: 1.7rem; }
.x { border: 0; background: var(--cream); width: 38px; height: 38px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; line-height: 1; }
.sheet-body { overflow-y: auto; padding: 0 20px 10px; flex: 1; }
.lines { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; }
.lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.lines .nm { font-weight: 800; }
.lines .pr { color: var(--ink-2); font-size: .88rem; font-variant-numeric: tabular-nums; }
.lines .lt { grid-column: 2; grid-row: 1; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.lines .stepper { grid-column: 2; grid-row: 2; justify-self: end; }
.lines .stepper button { width: 32px; height: 32px; }
.lines .empty { display: block; text-align: center; color: var(--ink-2); padding: 24px 0; border: 0; }
.who { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.f { display: flex; flex-direction: column; gap: 6px; }
.f > span { font-weight: 700; font-size: .9rem; }
.f em { font-style: normal; font-size: .82rem; color: var(--ink-2); }
.f input, .f textarea { width: 100%; border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 11px 13px; }
.f input:focus, .f textarea:focus { outline: none; border-color: var(--red); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 11px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font-weight: 800; cursor: pointer; }
.seg input:checked + span { border-color: var(--red); background: #fff1ef; color: var(--red); }
.seg input:focus-visible + span { outline: 3px solid var(--yellow); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.closed { background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-weight: 700; }
.sheet-foot { padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 2px solid var(--line); background: #fff; display: flex; flex-direction: column; gap: 10px; }
.sum { display: flex; justify-content: space-between; align-items: baseline; }
.sum span { font-weight: 700; color: var(--ink-2); }
.sum b { font-family: var(--display); font-weight: 400; font-size: 1.8rem; color: var(--red); }
.err { margin: 0; background: #fde8e6; color: var(--red-deep); border-radius: 10px; padding: 9px 12px; font-weight: 700; font-size: .9rem; }
.fine { margin: 0; font-size: .8rem; color: var(--ink-2); text-align: center; }

@media (min-width: 760px) { .sheet { align-items: center; } .sheet-panel { border-radius: 22px; } }
@media (max-width: 860px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); padding-block: 30px 46px; gap: 28px; }
  .hero-art { width: min(340px, 86%); order: -1; }
  .sticker { width: 92px; height: 92px; } .sticker b { font-size: 1.1rem; }
  .how-steps { grid-template-columns: minmax(0, 1fr); }
  .nav { display: none; }
  .top-in .btn { margin-left: auto; }
}
@media (max-width: 520px) {
  .dishes { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .dish { flex-direction: row; }
  .dish-img { aspect-ratio: auto; width: 120px; flex: none; }
  .dish-body { padding: 12px 14px; }
  .dish-body p { font-size: .84rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ph-art span { font-size: .8rem; }
  .dish-foot { gap: 6px; }
  .price { font-size: 1.15rem; }
  .add { padding: 7px 12px; font-size: .9rem; }
  .fav-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin-inline: calc(-1 * max(16px, env(safe-area-inset-left))); padding-inline: max(16px, env(safe-area-inset-left)); scrollbar-width: none; }
  .fav-row::-webkit-scrollbar { display: none; }
  .fav-card { flex: 0 0 78%; scroll-snap-align: start; }
  .info div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
