/* The customers' ordering page: phone first. Black and white like the kitchen app, softened: warm
   paper background, rounded cards, pill buttons, quiet shadows. */
:root {
  --bg: #F6F4EF; --card: #FFFFFF; --ink: #111111; --muted: #6B6A64; --line: #E5E2DA; --soft: #F1EEE7;
  --accent: #B3261E; --green: #2B6B43;
  --radius: 16px; --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(17, 17, 17, .04), 0 4px 16px rgba(17, 17, 17, .05);
  --shadow-up: 0 8px 32px rgba(17, 17, 17, .16);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Jost', 'Futura', system-ui, sans-serif; font-size: 16px; line-height: 1.4; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.loading { padding: 40px 16px; color: var(--muted); }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px 64px; }

/* Header: logo left (lined up with the menu), the other pages and the cart right. Stays at the top. */
:root { --head: 72px; }
header.top { position: sticky; top: 0; z-index: 6; background: #000; color: #fff; }
.top-in { max-width: 720px; height: var(--head); margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 20px; }
.top-in.wide { max-width: 980px; }
.brand { display: flex; align-items: center; margin-right: auto; color: inherit; text-decoration: none; min-width: 0; }
.brand img { max-height: 52px; max-width: 200px; display: block; }
.brand .word { font-size: 24px; letter-spacing: .3em; text-transform: uppercase; white-space: nowrap; }
nav.site { display: none; gap: 26px; }
nav.site a, .site-menu .drop a { color: inherit; text-decoration: none; font-size: 15px; font-weight: 500; letter-spacing: .02em; }
nav.site a { opacity: .85; padding: 6px 0; border-bottom: 1px solid transparent; transition: opacity .15s, border-color .15s; }
nav.site a:hover { opacity: 1; border-bottom-color: currentColor; }
.site-menu { position: relative; }
.site-menu summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; font-size: 20px; border-radius: 50%; }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu[open] summary { background: rgba(255, 255, 255, .14); }
.site-menu .drop { position: absolute; right: 0; top: 48px; min-width: 200px; background: var(--card); color: var(--ink); border-radius: var(--radius-sm); box-shadow: var(--shadow-up); padding: 6px; display: grid; }
.site-menu .drop a { padding: 12px 14px; border-radius: 8px; }
.site-menu .drop a:hover { background: var(--soft); }
.bag { position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; transition: background .15s; }
.bag:hover { background: rgba(255, 255, 255, .14); }
.bag .icon { display: grid; }
.bag .count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #fff; color: #000; font-size: 12px; font-weight: 600; line-height: 20px; text-align: center; animation: pop .25s ease-out; }
@keyframes pop { from { transform: scale(.4); } }
.banner { max-width: 980px; margin: 16px auto 0; padding: 0 16px; }
.banner img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border-radius: var(--radius); display: block; }
@media (max-width: 560px) { .banner img { aspect-ratio: 2 / 1; } }
@media (min-width: 760px) {
  :root { --head: 84px; }
  .brand img { max-height: 60px; max-width: 240px; }
  .brand .word { font-size: 28px; }
  nav.site { display: flex; }
  .site-menu { display: none; }
}

/* Type */
h1 { font-size: 30px; font-weight: 600; letter-spacing: -.01em; margin: 20px 0 12px; }
h2 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; margin: 24px 0 12px; scroll-margin-top: calc(var(--head) + 64px); }
.small { font-size: 14px; }
.muted { color: var(--muted); }
.strong { font-weight: 600; }
.error { color: var(--accent); font-size: 14px; margin: 8px 0; }
.error:empty { display: none; }

/* The partially cooked notice: always first, never missed */
.notice { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 16px 18px; margin: 16px 0 12px; line-height: 1.5; font-size: 15px; }
.notice b { font-weight: 600; }
.notice .small { opacity: .78; }
.finish ol { margin: 8px 0 0; padding-left: 22px; line-height: 1.6; }

/* Cards */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin: 12px 0; }

/* Pickup: ASAP or later */
.pickup { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 8px; }
.pickup.closed { color: var(--accent); }
.pickup.choose { display: block; }
.pickup .elsewhere { flex: none; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 500; }
@media (max-width: 560px) { .pickup.closed { flex-wrap: wrap; } }
.card .pickup.choose { box-shadow: none; padding: 0; margin: 0 0 4px; }
.pickup .when { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 4px; margin-top: 10px; padding: 4px; background: var(--soft); border-radius: 14px; }
.pickup .when button { min-height: 52px; border: 0; border-radius: 11px; background: transparent; color: var(--ink); cursor: pointer; line-height: 1.25; transition: background .15s, box-shadow .15s; }
.pickup .when button .small { color: var(--muted); }
.pickup .when button.on { background: var(--card); box-shadow: 0 1px 3px rgba(17, 17, 17, .12); }
.pickup .times { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 12px; }
.pickup .times button { min-height: 44px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.pickup .times button:hover { border-color: var(--ink); }
.pickup .times button.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.pickup > .small:last-child:not(.muted) { margin-top: 10px; }

/* Section bar */
.cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 16px -16px 0; padding: 10px 16px; position: sticky; top: var(--head); z-index: 3;
  background: rgba(246, 244, 239, .88); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); }
.cats::-webkit-scrollbar { display: none; }
.cats a { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: inherit; font-size: 14px; font-weight: 500; transition: background .15s, color .15s; }
.cats a.on { background: var(--ink); color: #fff; box-shadow: none; }
/* "Why partially cooked?": at the right end of the section bar */
.cats .why { flex: none; margin-left: auto; position: sticky; right: 0; box-shadow: -10px 0 10px var(--bg); padding: 8px 14px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.why-body p { margin: 0 0 12px; line-height: 1.55; }
.why-body .finish { box-shadow: none; background: var(--soft); margin: 4px 0 8px; }

/* Menu items */
.items { display: grid; gap: 10px; }
.item { display: flex; gap: 14px; align-items: stretch; width: 100%; text-align: left; padding: 16px; background: var(--card); border: 0; border-radius: var(--radius); box-shadow: var(--shadow); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.item:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(17, 17, 17, .05), 0 10px 24px rgba(17, 17, 17, .08); }
.item:not(:disabled):active { transform: scale(.99); }
.item:disabled { cursor: default; opacity: .55; }
.item .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.item .name { font-weight: 600; font-size: 17px; }
.item .desc { font-size: 14px; color: var(--muted); margin-top: 4px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.item .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: auto; padding-top: 10px; }
.item .price { font-weight: 500; white-space: nowrap; }
.item .pic { position: relative; flex: none; align-self: flex-start; }
.item .pic img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius-sm); display: block; }
.item .plus { position: absolute; right: -4px; bottom: -4px; width: 32px; height: 32px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 4px rgba(17, 17, 17, .2); display: grid; place-items: center; font-size: 20px; line-height: 1; }
.item .pic:not(:has(img)) .plus { position: static; background: var(--soft); box-shadow: none; }
.opt > .muted { white-space: nowrap; }
@media (min-width: 900px) {
  .wrap.menu { max-width: 980px; }
  .wrap.menu .items { grid-template-columns: 1fr 1fr; }
  .wrap.menu .notice, .wrap.menu .pickup { max-width: none; }
}
.tag { display: inline-block; font-size: 12px; font-weight: 500; padding: 3px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.tag.out { background: #FBE6E2; color: var(--accent); }

/* Buttons */
.btn { min-height: 50px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 999px; background: var(--card); font-size: 16px; font-weight: 500; letter-spacing: .01em; cursor: pointer; transition: background .15s, opacity .15s, transform .1s; }
.btn:not(:disabled):active { transform: scale(.98); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:not(:disabled):hover { background: #2a2a2a; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .4; cursor: default; }
.link { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(17, 17, 17, .35); cursor: pointer; font-size: 14px; }
.link:hover { text-decoration-color: currentColor; }

/* "Added to your order" */
.added { position: fixed; top: calc(var(--head) + 8px); right: max(12px, calc((100vw - 980px) / 2 + 16px)); width: min(360px, calc(100vw - 24px)); background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-up); padding: 16px 18px; z-index: 8; animation: added-in .2s ease-out; }
.added .line { border-top: 0; padding: 8px 0 0; }
@keyframes added-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }

/* Item sheet: a bottom sheet on phones, a centred card on wider screens */
.sheet-bg { position: fixed; inset: 0; background: rgba(17, 17, 17, .45); z-index: 10; display: flex; align-items: flex-end; justify-content: center; animation: fade-in .2s ease-out; }
.sheet { position: relative; background: var(--card); width: 100%; max-width: 560px; max-height: 92vh; display: flex; flex-direction: column; border-radius: 22px 22px 0 0; overflow: hidden; animation: sheet-up .25s cubic-bezier(.2, .8, .2, 1); }
.sheet-body { overflow-y: auto; padding: 22px 20px 8px; overscroll-behavior: contain; }
.sheet-close { position: absolute; top: 12px; right: 12px; z-index: 1; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); box-shadow: 0 1px 4px rgba(17, 17, 17, .15); font-size: 22px; line-height: 1; cursor: pointer; }
.sheet h3 { font-size: 24px; margin: 0 44px 6px 0; font-weight: 600; letter-spacing: -.01em; }
.sheet-body > p.muted { margin: 0 0 8px; line-height: 1.5; }
.sheet .note { margin: 8px 0 4px; padding: 10px 12px; background: var(--soft); border-radius: var(--radius-sm); font-size: 14px; }
/* The whole photo, never cropped: as wide as the sheet, and a tall photo stops at 45% of the screen with white space at its sides. */
.sheet img.hero { width: 100%; height: auto; max-height: 45vh; object-fit: contain; background: var(--card); display: block; flex: none; }
.sheet-foot { padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--card); }
.sheet-foot .row { gap: 12px; }
.sheet-foot .btn { flex: 1; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: .6; } }
@keyframes fade-in { from { opacity: 0; } }
@media (min-width: 640px) {
  .sheet-bg { align-items: center; padding: 24px; }
  .sheet { border-radius: 22px; max-height: 86vh; }
}
fieldset { border: 0; padding: 16px 0 4px; margin: 0; }
fieldset + fieldset { border-top: 1px solid var(--soft); }
legend { font-weight: 600; font-size: 17px; padding: 0; float: left; width: 100%; margin-bottom: 4px; }
legend + * { clear: both; }
.opt { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 16px; cursor: pointer; }
.opt + .opt { border-top: 1px solid var(--soft); }
.opt input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--ink); }
.opt .grow { flex: 1; }
.qty { display: inline-flex; align-items: center; gap: 4px; padding: 3px; background: var(--soft); border-radius: 999px; flex: none; }
.qty .strong { min-width: 24px; text-align: center; }
.qty button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--card); box-shadow: 0 1px 2px rgba(17, 17, 17, .1); font-size: 20px; cursor: pointer; }

/* Cart, checkout, payment, done */
.row { display: flex; align-items: center; gap: 12px; }
.row .grow { flex: 1; min-width: 0; }
.line { padding: 14px 0; border-top: 1px solid var(--soft); }
.card > .line:first-child { border-top: 0; padding-top: 0; }
.line .mods { font-size: 14px; color: var(--muted); margin-top: 2px; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.totals .total { font-weight: 600; font-size: 17px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
label.field { display: block; margin: 14px 0; font-size: 14px; font-weight: 500; }
label.field input, label.field select { display: block; width: 100%; margin-top: 6px; height: 50px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 14px; font-size: 16px; font-weight: 400; background: var(--card); transition: border-color .15s, box-shadow .15s; }
label.field input:focus, label.field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 17, 17, .08); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.pair label.field { margin: 0; }
.tips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.tips button { min-height: 56px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); cursor: pointer; line-height: 1.25; transition: border-color .15s, background .15s; }
.tips button:hover { border-color: var(--ink); }
.tips button.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.ack { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); margin: 16px 0; font-size: 15px; line-height: 1.45; cursor: pointer; }
.ack input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--ink); }
#card-container { min-height: 90px; margin: 12px 0; }
.done { text-align: center; padding: 32px 0 8px; }
.done .big { font-size: 34px; font-weight: 600; letter-spacing: -.01em; }
.done .big::before { content: '✓'; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: var(--green); color: #fff; font-size: 28px; }

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