/* SunD mobile order: shared styles (customer + staff).
   Direction: quiet, monochrome, hairline rules. The sun yellow appears only as the logo dot, progress and "new order" marker. */
:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --subtle: #F5F6F8;
  --ink: #111418;
  --muted: #6B7280;
  --line: #E5E7EB;
  --sun: #FFB000;
  --sun-ink: #111418;
  --sun-soft: #FFF6DB;
  --ok: #17794D;
  --ok-soft: #E3F4EB;
  --danger: #B42318;
  --danger-soft: #FDECEA;
  --info: #1F5FBF;
  --info-soft: #E8F0FB;
  --font: "Inter", "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --font-num: "Inter", "Zen Kaku Gothic New", system-ui, sans-serif;
  --r: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0D10; --surface: #0B0D10; --subtle: #14171C; --ink: #F3F4F6; --muted: #9CA3AF; --line: #23272E;
    --sun: #FFC233; --sun-ink: #111418; --sun-soft: #2A2412;
    --ok: #4CC38A; --ok-soft: #10392A; --danger: #FF8A80; --danger-soft: #3E1A18;
    --info: #7FB0FF; --info-soft: #14284A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0D10; --surface: #0B0D10; --subtle: #14171C; --ink: #F3F4F6; --muted: #9CA3AF; --line: #23272E;
  --sun: #FFC233; --sun-ink: #111418; --sun-soft: #2A2412;
  --ok: #4CC38A; --ok-soft: #10392A; --danger: #FF8A80; --danger-soft: #3E1A18;
  --info: #7FB0FF; --info-soft: #14284A;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }

.app {
  min-height: 100vh;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  padding-block: 20px 0;
}
.cust { max-width: 560px; margin: 0 auto; }
.admin { max-width: 1180px; margin: 0 auto; }

/* ---------- buttons & fields ---------- */
.btn {
  border: 1px solid var(--line); background: var(--bg); border-radius: 8px;
  padding: 9px 18px; font-weight: 600; min-height: 44px; line-height: 1.2;
}
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.primary:hover { opacity: .88; }
.btn.danger { color: var(--danger); border-color: var(--line); }
.btn.danger.armed { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.small { min-height: 36px; padding: 5px 12px; font-size: 13px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.input {
  width: 100%; border: 1px solid var(--line); background: var(--bg); border-radius: 8px;
  padding: 10px 12px; min-height: 44px;
}
.input:focus { border-color: var(--ink); outline: none; }
textarea.input { min-height: 84px; resize: vertical; }

.msg { border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.msg.err { background: var(--danger-soft); color: var(--danger); }
.msg.info { background: var(--subtle); color: var(--muted); }
.msg.sun { background: var(--sun-soft); color: var(--ink); }
.empty { color: var(--muted); text-align: center; padding: 48px 12px; }

.logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-num); font-weight: 600; font-size: 20px; letter-spacing: -.01em; }
.logo i { width: 10px; height: 10px; border-radius: 50%; background: var(--sun); display: inline-block; }
.pill { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; font-size: 13px; font-weight: 600; }

/* ---------- customer ---------- */
.cust-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; }
.cust-head .right { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang button { border: 0; background: transparent; padding: 6px 12px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--muted); min-height: 32px; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.chips { display: flex; gap: 22px; overflow-x: auto; position: sticky; top: 0; background: var(--bg); z-index: 2; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 12px 0 10px; font-weight: 600; color: var(--muted); }
.chip[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }

.menu { display: grid; gap: 28px; padding-bottom: 32px; }
.menu h2 { margin: 0; padding-top: 12px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.items { display: grid; }
.item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center;
  border-bottom: 1px solid var(--line); padding: 16px 0;
}
.item.out { opacity: .5; }
.item-name { font-weight: 600; font-size: 16px; overflow-wrap: anywhere; }
.item-desc { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.price { font-family: var(--font-num); font-weight: 500; font-variant-numeric: tabular-nums; }
.item .price { font-size: 15px; color: var(--muted); }
.soldout { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }

.stepper { display: inline-flex; align-items: center; gap: 2px; }
.stepper button {
  width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg);
  font-size: 18px; line-height: 1; padding: 0;
}
.stepper button:hover { border-color: var(--ink); }
.stepper b { min-width: 30px; text-align: center; font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 16px; font-weight: 600; }

.cartbar-host { position: sticky; bottom: 0; padding-block: 12px calc(16px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to bottom, transparent, var(--bg) 30%); }
.cartbar {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--ink); color: var(--bg); border: 0; border-radius: 10px; padding: 14px 20px; min-height: 54px; font-weight: 600;
}
.cartbar .price { font-size: 16px; color: inherit; }

.sheet-wrap { position: fixed; inset: 0; z-index: 20; background: rgba(8, 12, 20, .45); display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--bg); border-radius: 16px 16px 0 0;
  padding: 20px max(20px, env(safe-area-inset-left, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 16px;
}
.sheet h2 { margin: 0; font-size: 17px; font-weight: 700; }
.sheet-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line .item-name { font-size: 15px; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; }
.total .price { font-size: 22px; font-weight: 600; color: var(--ink); }

.status { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 16px; display: grid; gap: 12px; }
.status h2 { margin: 0; font-size: 17px; font-weight: 700; }
.status small { color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; list-style: none; margin: 0; padding: 0; }
.steps li { font-size: 12px; font-weight: 600; color: var(--muted); display: grid; gap: 6px; }
.steps li::before { content: ""; height: 3px; border-radius: 2px; background: var(--line); }
.steps li.on { color: var(--ink); }
.steps li.on::before { background: var(--sun); }

/* ---------- staff ---------- */
.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.topbar .grow { flex: 1; }
.tabs { display: flex; gap: 20px; flex-wrap: wrap; }
.tab { border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 10px 0; font-weight: 600; min-height: 40px; color: var(--muted); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; padding: 0 0 16px; }
.toolbar .chip { padding-block: 6px; }

.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: start; padding-bottom: 32px; }
.col { display: grid; gap: 12px; min-width: 0; align-content: start; }
.col > h2 { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; display: flex; justify-content: space-between; color: var(--muted); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; min-width: 0; }
.card.new { border-color: var(--ink); }
.card.new .table-no::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); margin-right: 8px; vertical-align: middle; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.table-no { font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }
.meta { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; }
.card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.card li { display: flex; justify-content: space-between; gap: 10px; }
.card li span:first-child { overflow-wrap: anywhere; }
.qty { font-family: var(--font-num); font-weight: 600; }
.note { background: var(--subtle); border-radius: 6px; padding: 6px 10px; font-size: 13.5px; overflow-wrap: anywhere; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions .btn.primary { flex: 1; }

.mgroup { margin: 0 0 24px; }
.mgroup h2 { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; border-bottom: 1px solid var(--line); padding: 12px 0; }
.mrow.off .item-name { text-decoration: line-through; color: var(--muted); }
.mrow .ops { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.form { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 14px; margin-bottom: 24px; }
.form .row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.form .sub { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }

.login { max-width: 380px; margin: 12vh auto 0; border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: grid; gap: 16px; }

.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; padding-bottom: 32px; }
.qr-card { background: #fff; color: #111418; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; justify-items: center; gap: 8px; text-align: center; break-inside: avoid; }
.qr-card .qr { background: #fff; padding: 6px; }
.qr-card .qr img, .qr-card .qr canvas { display: block; max-width: 100%; height: auto; }
.qr-card .t { font-size: 18px; font-weight: 700; }
.qr-card small { color: #6B7280; font-size: 11px; overflow-wrap: anywhere; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 8px; font-weight: 600; z-index: 40; width: max-content; max-width: 90vw; }

@media (prefers-reduced-motion: no-preference) {
  .card.new { animation: pop .4s ease-out; }
  @keyframes pop { from { transform: translateY(4px); opacity: .6; } to { transform: none; opacity: 1; } }
}
@media print {
  .topbar, .tabs, .toolbar, .toast { display: none !important; }
  .app { padding: 0; }
  body { background: #fff; }
}

/* ---------- menu cards with photos ---------- */
.mc.none { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mc-main { min-width: 0; flex: 1; }
.mc-side { display: flex; align-items: center; gap: 10px; flex: none; }
.mc-photo { position: relative; overflow: hidden; background: var(--subtle); border-radius: 8px; }
.mc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.mc-photo.ar-wide { aspect-ratio: 16 / 9; }
.mc-photo.ar-std { aspect-ratio: 4 / 3; }
.mc-photo.ar-sq { aspect-ratio: 1 / 1; }
.mc.top, .mc.left, .mc.right, .mc.full { display: grid; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mc.top { gap: 10px; grid-template-columns: minmax(0, 1fr); }
.mc-body.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; }
.mc.left, .mc.right { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: center; }
.mc.right { grid-template-columns: minmax(0, 1fr) 104px; }
.mc.right .mc-photo { order: 2; }
.mc-photo.side { width: 104px; }
.mc-act { margin-top: 8px; }
.mc.full { position: relative; grid-template-columns: minmax(0, 1fr); }
.mc.full .mc-photo { border-radius: 12px; width: 100%; }
.mc-ov { position: absolute; inset: 14px 0; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 16px; border-radius: 12px; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0) 62%); }
.mc-ov.pos-top { align-items: flex-start; background: linear-gradient(to bottom, rgba(0,0,0,.62), rgba(0,0,0,0) 62%); }
.mc-ov.pos-center { align-items: center; background: rgba(0,0,0,.38); }
.mc-ov .item-name, .mc-ov .item-desc, .mc-ov .price { color: #fff; }
.mc-ov .item-desc { opacity: .85; }
.mc-ov .btn { background: rgba(255,255,255,.96); color: #111418; border-color: transparent; }
.mc-ov .stepper button { background: rgba(255,255,255,.96); color: #111418; border-color: transparent; }
.mc-ov .stepper b { color: #fff; }
.mc-ov .soldout { color: #fff; border: 1px solid rgba(255,255,255,.7); border-radius: 6px; padding: 2px 8px; }
.mc.out .mc-photo { filter: grayscale(1); }
.mc.out.full, .mc.out.top, .mc.out.left, .mc.out.right { opacity: .75; }

/* ---------- staff menu editor ---------- */
.mleft { display: flex; align-items: center; gap: 12px; min-width: 0; }
.thumb { width: 52px; height: 52px; flex: none; border-radius: 8px; overflow: hidden; position: relative; background: var(--subtle); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 7px 12px; font-size: 13px; font-weight: 600; color: var(--muted); min-height: 36px; border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.editor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: start; }
.preview-box { border: 1px dashed var(--line); border-radius: var(--r); padding: 12px 16px; background: var(--bg); max-width: 420px; }
.preview-box .cap { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; margin-bottom: 4px; }
.preview-box .mc-photo { cursor: grab; touch-action: none; }
.preview-box .mc-photo.drag { cursor: grabbing; }
.hint { font-size: 12.5px; color: var(--muted); }
.filebtn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; }
.filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.preview-box .mc { user-select: none; -webkit-user-select: none; touch-action: none; }
.preview-box .mc-photo img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }

/* =====================================================================
   Customer theme: white base, black ink, bold grotesk type, colour pills and yellow price tags.
   Applied by class "theme-cust" on <body> (customer site) or on the phone frame (demo).
   ===================================================================== */
.theme-cust {
  --bg: #FFFFFF; --surface: #FFFFFF; --subtle: #F4F3EF; --ink: #0F0F0F; --muted: #6A6A66; --line: #E4E2DB;
  --sun: #FFB000; --sun-ink: #0F0F0F; --sun-soft: #FFF3CC; --accent: #E8553A; --tag: #FFE04D; --card: #F6F4EE; --card2: #ECE8DD;
  --font: "Inter", "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --font-num: "Inter", "Zen Kaku Gothic New", system-ui, sans-serif;
  color-scheme: light; background: var(--bg); color: var(--ink); font-family: var(--font);
}
.theme-cust :focus-visible { outline-color: var(--ink); }
.theme-cust.phone { position: relative; }
.theme-cust .cust {
  position: relative; max-width: 600px;
  padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px));
  padding-block: calc(26px + env(safe-area-inset-top, 0px)) 0;
}
.cust-bg { display: none; }

/* opening animation: logo rises out of the photo over 2 seconds */
.splash {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; cursor: pointer;
  background: #0E0905 center / cover no-repeat; transition: opacity .8s ease; -webkit-tap-highlight-color: transparent;
}
.splash.leave { opacity: 0; pointer-events: none; }
.splash-logo { width: min(50vw, 250px); height: auto; display: block; animation: logoRise 2s cubic-bezier(.25, .6, .3, 1) both; }
@keyframes logoRise {
  0% { opacity: 0; transform: translateY(12px) scale(.94); filter: blur(12px); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) { .splash-logo { animation: logoFade 1.4s ease both; } @keyframes logoFade { from { opacity: 0; } to { opacity: 1; } } }

/* header */
.theme-cust .cust-head { display: grid; gap: 34px; padding: 0 0 22px; margin: 0; }
.hd-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hd-sub { display: grid; gap: 16px; justify-items: start; }
.hd-msg { font-weight: 800; font-size: 36px; line-height: 1.14; letter-spacing: -.02em; text-wrap: balance; }
.logo-img { display: block; height: 54px; width: auto; max-width: 50%; object-fit: contain; cursor: pointer; }
.theme-cust .logo { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.theme-cust .pill { background: var(--tag); border: 0; color: var(--ink); font-weight: 700; padding: 3px 16px; font-size: 14px; }
.theme-cust .lang { border: 0; background: var(--card); border-radius: 999px; padding: 2px; overflow: visible; }
.theme-cust .lang button { border-radius: 999px; color: var(--ink); font-weight: 700; padding: 5px 13px; min-height: 30px; }
.theme-cust .lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* category chips: colour pills */
.theme-cust .chips {
  gap: 10px; border: 0; margin: 0 -24px 6px; padding: 12px 24px;
  background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.theme-cust .chip { border: 0; border-radius: 999px; background: var(--cc, #fff); color: var(--ink); padding: 8px 18px; font-weight: 700; }
.theme-cust .chip:nth-child(1) { --cc: #fff; }
.theme-cust .chip:nth-child(2) { --cc: #FFD84A; }
.theme-cust .chip:nth-child(3) { --cc: #F29A83; }
.theme-cust .chip:nth-child(4) { --cc: #CF9AE0; }
.theme-cust .chip:nth-child(5) { --cc: #66C98E; }
.theme-cust .chip:nth-child(6) { --cc: #7CC8EE; }
.theme-cust .chip:nth-child(7) { --cc: #EDEAE2; }
.theme-cust .chip[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* menu */
.theme-cust .menu { gap: 56px; padding-top: 28px; padding-bottom: 56px; }
.theme-cust .menu h2 {
  display: flex; align-items: center; gap: 12px; padding: 0 0 22px;
  font-weight: 800; font-size: 30px; line-height: 1.1; letter-spacing: -.02em; text-transform: none; color: var(--ink);
}
.theme-cust .menu h2 .no { font-size: 12px; font-weight: 800; letter-spacing: .06em; background: var(--cc); color: var(--ink); border: 0; border-radius: 999px; padding: 2px 10px; }
.theme-cust .cat { --cc: #FFD84A; }
.theme-cust .cat.c0 { --cc: #FFD84A; }
.theme-cust .cat.c1 { --cc: #F29A83; }
.theme-cust .cat.c2 { --cc: #CF9AE0; }
.theme-cust .cat.c3 { --cc: #66C98E; }
.theme-cust .cat.c4 { --cc: #7CC8EE; }
.theme-cust .cat.c5 { --cc: #EDEAE2; }
.theme-cust .items { gap: 22px; }

.theme-cust .item, .theme-cust .mc.top, .theme-cust .mc.left, .theme-cust .mc.right {
  background: var(--card); color: var(--ink); border: 0; border-radius: 24px; padding: 22px 22px;
}
.theme-cust .mc.top, .theme-cust .mc.left, .theme-cust .mc.right { padding: 14px; }
.theme-cust .mc-body.row { padding: 10px 10px 8px; align-items: end; gap: 6px 16px; }
.theme-cust .mc.left .mc-body, .theme-cust .mc.right .mc-body { padding: 6px 8px; }
.theme-cust .mc.left, .theme-cust .mc.right { gap: 18px; }
.theme-cust .mc-photo { border-radius: 16px; background: var(--subtle); }
.theme-cust .mc.full { padding: 0; border: 0; border-radius: 24px; }
.theme-cust .mc.full .mc-photo { border-radius: 24px; }
.theme-cust .mc-ov { inset: 0; border-radius: 24px; padding: 22px; }
.theme-cust .item-name { font-weight: 800; font-size: 19px; line-height: 1.3; letter-spacing: -.01em; }
.theme-cust .item-desc { color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.55; }
.theme-cust .price { color: var(--ink); font-weight: 800; }
.theme-cust .item .price {
  display: inline-block; margin-top: 12px; font-size: 14px; background: var(--tag); color: var(--ink);
  border-radius: 6px; padding: 3px 11px;
}
.theme-cust .mc-ov .item-name, .theme-cust .mc-ov .item-desc { color: #fff; --muted: rgba(255, 255, 255, .88); }
.theme-cust .mc-ov { text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.theme-cust .mc-ov .price { text-shadow: none; }
.theme-cust .soldout { color: var(--muted); font-weight: 700; }
.theme-cust .mc.out { opacity: .6; }

/* sub-genres inside a category */
.theme-cust .cat > .items + .subgroup, .theme-cust .cat > .subgroup + .subgroup, .theme-cust .cat > .items + .items { margin-top: 38px; }
.theme-cust .subgroup h3 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.theme-cust .subgroup h3::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--cc); flex: none; }
.theme-cust .sub-desc { margin: 8px 0 0; font-size: 12px; line-height: 1.65; color: var(--muted); max-width: 34em; }
.theme-cust .subgroup .items { margin-top: 18px; }

/* buttons */
.theme-cust .btn { border-radius: 999px; font-weight: 700; border: 0; background: var(--card2); color: var(--ink); }
.theme-cust .btn:hover { background: #E7E3D8; }
.theme-cust .btn.add { background: var(--ink); color: #fff; padding: 8px 20px; }
.theme-cust .btn.add:hover { background: #333; }
.theme-cust .btn.primary { min-height: 56px; font-size: 16px; background: var(--ink); color: #fff; }
.theme-cust .btn.primary:hover { opacity: .88; background: var(--ink); }
.theme-cust .mc-ov .btn { background: #fff; color: var(--ink); }
.theme-cust .stepper { gap: 8px; }
.theme-cust .stepper button { border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-weight: 700; }
.theme-cust .stepper button.add { background: var(--ink); color: #fff; }
.theme-cust .stepper b { font-weight: 800; color: var(--ink); }
.theme-cust .mc-ov .stepper button.add { background: var(--tag); color: var(--ink); }
.theme-cust .mc-ov .stepper b { color: #fff; }

/* cart bar: black pill */
.theme-cust .cartbar { background: var(--ink); color: #fff; border-radius: 999px; min-height: 56px; font-weight: 700; box-shadow: 0 8px 26px rgba(0, 0, 0, .28); padding-inline: 26px; width: 100%; }
.theme-cust .cartbar .price { color: var(--tag); font-size: 18px; }
.theme-cust .cartbar-host {
  position: fixed; z-index: 250; top: calc(10px + env(safe-area-inset-top, 0px)); bottom: auto; left: 50%; transform: translateX(-50%);
  width: calc(100% - 40px); max-width: 560px; padding: 0; background: none;
}
.theme-cust .cust { transition: padding-top .2s ease; }
.theme-cust .cust.has-cart { padding-top: calc(86px + env(safe-area-inset-top, 0px)); }
.theme-cust .cust.has-cart .chips { top: calc(66px + env(safe-area-inset-top, 0px)); }

/* order sheet + status */
.theme-cust .sheet-wrap { background: rgba(15, 15, 15, .45); }
.theme-cust .sheet { border-radius: 28px 28px 0 0; background: #fff; color: var(--ink); padding: 28px 24px; gap: 20px; }
.theme-cust .sheet h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.theme-cust .line { border-bottom-color: var(--line); padding: 16px 0; }
.theme-cust .line .price { background: none; color: var(--ink); padding: 0; font-size: 14px; margin: 0; transform: none; box-shadow: none; }
.theme-cust .total .price { color: var(--ink); font-size: 28px; }
.theme-cust .input { border-radius: 14px; background: #fff; border: 1.5px solid #D9D5CA; color: var(--ink); }
.theme-cust .status { background: var(--card); border: 0; border-radius: 24px; padding: 22px; gap: 16px; margin: 4px 0 18px; }
.theme-cust .status h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.theme-cust .steps li { font-weight: 700; }
.theme-cust .steps li::before { height: 6px; border-radius: 999px; background: var(--line); }
.theme-cust .steps li.on { color: var(--ink); }
.theme-cust .steps li.on::before { background: var(--ink); }
.theme-cust .toast { background: var(--ink); color: #fff; border-radius: 999px; }
.theme-cust .msg.info { background: var(--subtle); color: var(--ink); }
.theme-cust .btn { white-space: nowrap; flex: none; }

/* photo cards on the first tab (おすすめ): tap to jump to that menu */
.theme-cust .jump { display: grid; gap: 14px; padding: 6px 0 10px; }
.theme-cust .feat { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--cc, #ccc); color: #fff; text-align: left; cursor: pointer; }
.theme-cust .feat.f0 { --cc: #E9B93A; } .theme-cust .feat.f1 { --cc: #D9806A; } .theme-cust .feat.f2 { --cc: #A97BC2; } .theme-cust .feat.f3 { --cc: #4FAE7B; } .theme-cust .feat.f4 { --cc: #5FAAD6; }
.theme-cust .feat-photo { position: absolute; inset: 0; display: block; }
.theme-cust .feat-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.theme-cust .feat-ov { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 20px 22px; background: linear-gradient(to top, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0) 62%); }
.theme-cust .feat-txt { display: grid; gap: 6px; min-width: 0; }
.theme-cust .feat-sub { font-size: 13px; font-weight: 500; line-height: 1.5; opacity: .92; text-shadow: 0 1px 10px rgba(0, 0, 0, .4); }
.theme-cust .feat-name { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.theme-cust .feat-go { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-weight: 800; }
.theme-cust .feat:active { transform: scale(.985); }
.theme-cust .cat, .theme-cust .subgroup, .theme-cust .item { scroll-margin-top: 150px; }
.theme-cust .item.hl { animation: hl 1.4s ease; }
@keyframes hl { 0%, 60% { box-shadow: 0 0 0 4px var(--tag); } 100% { box-shadow: 0 0 0 0 transparent; } }
.phone .cartbar-host { max-width: 420px; }

/* items without a photo: one compact line (name, price, add) */
.theme-cust .mc.none { background: none; border-radius: 0; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.theme-cust .mc.none .item-name { font-size: 16px; line-height: 1.4; }
.theme-cust .mc.none .item-desc { margin-top: 1px; font-size: 12px; }
.theme-cust .mc.none .price { margin: 0; background: none; padding: 0; font-size: 15px; border-radius: 0; }
.theme-cust .mc.none .btn.add { padding: 6px 16px; min-height: 36px; }
.theme-cust .mc.none .stepper button { width: 34px; height: 34px; min-height: 34px; background: var(--card2); }
.theme-cust .mc.none .stepper button.add { background: var(--ink); }
.theme-cust .mc.none.out { opacity: .55; }
