/* QRServe — one stylesheet for all four interfaces.
   Customer pages use the restaurant theme (CSS variables set from the published theme).
   Staff/admin use a quiet slate tool palette where only status colours stand out.
   The pickup screen spends the boldness: huge numbers on curry-leaf green. */

:root {
  --leaf-50: #eef5f1; --leaf-100: #d5e8dd; --leaf-500: #2f7a57; --leaf-600: #1f4d3a; --leaf-700: #173b2c; --leaf-900: #0c2219;
  --kokum-50: #fbeef1; --kokum-100: #f4d3dc; --kokum-500: #b8405f; --kokum-600: #9c2f4a; --kokum-700: #7c243a;
  --amber-50: #fffbeb; --amber-300: #fcd34d; --amber-400: #fbbf24; --amber-800: #92400e;
  --sky-50: #f0f9ff; --sky-500: #0ea5e9; --sky-800: #075985;
  --violet-50: #f5f3ff; --violet-500: #8b5cf6; --violet-800: #5b21b6;
  --s50: #fafaf9; --s100: #f5f5f4; --s200: #e7e5e4; --s300: #d6d3d1; --s400: #a8a29e; --s500: #78716c; --s600: #57534e; --s700: #44403c; --s800: #292524; --s900: #1c1917;
  /* customer theme (overwritten from the published theme) */
  --brand: #9c2f4a; --brand-ink: #fff; --accent: #1f4d3a; --page: #f4f6f1; --surface: #fff; --ink: #18201c;
  --ink-60: color-mix(in srgb, var(--ink) 62%, transparent); --ink-10: color-mix(in srgb, var(--ink) 10%, transparent);
  --radius-btn: 12px;
  --font-body: 'DM Sans', system-ui, sans-serif; --font-head: 'Bricolage Grotesque', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--s900); line-height: 1.45; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[x-cloak] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.head { font-family: var(--font-head); letter-spacing: -0.01em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--s500); }
.small { font-size: 13px; }
.row { display: flex; align-items: center; gap: 8px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.grid2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
.t :focus-visible { outline-color: var(--leaf-500); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
@media print { .no-print { display: none !important; } body { background: #fff !important; } }

/* ═════════ tool UI (staff / admin / login) ═════════ */
.t { background: var(--s50); min-height: 100vh; font-size: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 9px; border: 0; font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .15s; text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--leaf-600); color: #fff; } .btn-primary:hover:not(:disabled) { background: var(--leaf-700); }
.btn-secondary { background: #fff; color: var(--s800); box-shadow: inset 0 0 0 1px var(--s300); } .btn-secondary:hover:not(:disabled) { background: var(--s50); }
.btn-ghost { background: transparent; color: var(--s700); } .btn-ghost:hover:not(:disabled) { background: var(--s100); }
.btn-danger { background: var(--kokum-600); color: #fff; } .btn-danger:hover:not(:disabled) { background: var(--kokum-700); }
.btn-text-danger { color: var(--kokum-700); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 7px; }
.btn-lg { height: 48px; padding: 0 20px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.input, .select, .textarea { width: 100%; height: 38px; padding: 0 11px; border: 1px solid var(--s300); border-radius: 9px; background: #fff; font-size: 14px; }
.textarea { height: auto; min-height: 80px; padding: 9px 11px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--leaf-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--leaf-500) 18%, transparent); }
.field { display: block; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--s800); margin-bottom: 5px; }
.field small { display: block; font-size: 12px; color: var(--s500); margin-top: 4px; }
.field .err { color: var(--kokum-600); }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.switch { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.switch b { display: block; font-size: 14px; font-weight: 600; }
.switch small { display: block; color: var(--s500); font-size: 12px; }
.toggle { position: relative; width: 42px; height: 24px; flex-shrink: 0; border-radius: 999px; border: 0; background: var(--s300); transition: background .15s; }
.toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.toggle[aria-checked="true"] { background: var(--leaf-500); }
.toggle[aria-checked="true"]::after { transform: translateX(18px); }
.toggle.danger[aria-checked="true"] { background: var(--kokum-500); }
.toggle.sm { width: 34px; height: 20px; } .toggle.sm::after { width: 16px; height: 16px; } .toggle.sm[aria-checked="true"]::after { transform: translateX(14px); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--s300); background: #fff; font-size: 13px; }
.chip[aria-pressed="true"], .chip.on { background: var(--leaf-600); border-color: var(--leaf-600); color: #fff; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: inset 0 0 0 1px currentColor; }
.b-green { color: var(--leaf-700); background: var(--leaf-50); box-shadow: inset 0 0 0 1px var(--leaf-100); }
.b-red { color: var(--kokum-700); background: var(--kokum-50); box-shadow: inset 0 0 0 1px var(--kokum-100); }
.b-amber { color: var(--amber-800); background: var(--amber-50); box-shadow: inset 0 0 0 1px #fde68a; }
.b-blue { color: var(--sky-800); background: var(--sky-50); box-shadow: inset 0 0 0 1px #bae6fd; }
.b-violet { color: var(--violet-800); background: var(--violet-50); box-shadow: inset 0 0 0 1px #ddd6fe; }
.b-gray { color: var(--s700); background: var(--s100); box-shadow: inset 0 0 0 1px var(--s200); }
.panel { background: #fff; border: 1px solid var(--s200); border-radius: 12px; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--s100); }
.panel-h h2 { margin: 0; font-size: 15px; }
.panel-b { padding: 18px; }
.tbl-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--s200); border-radius: 12px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; font-size: 12px; font-weight: 600; color: var(--s500); background: var(--s50); padding: 9px 14px; white-space: nowrap; }
.tbl td { padding: 10px 14px; border-top: 1px solid var(--s100); vertical-align: middle; }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: var(--leaf-50); }
.tbl .r { text-align: right; }
.empty { border: 1px dashed var(--s300); border-radius: 12px; padding: 44px 20px; text-align: center; }
.empty b { display: block; font-family: var(--font-head); font-size: 18px; }
.empty p { margin: 6px auto 0; max-width: 380px; color: var(--s500); }
.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--kokum-50); color: var(--kokum-700); border: 1px solid var(--kokum-100); }
.alert.ok { background: var(--leaf-50); color: var(--leaf-700); border-color: var(--leaf-100); }
.alert.warn { background: var(--amber-50); color: var(--amber-800); border-color: #fde68a; }
.spinner { width: 20px; height: 20px; border: 2.5px solid var(--s200); border-top-color: var(--leaf-500); border-radius: 50%; animation: spin .8s linear infinite; }
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px; color: var(--s500); }
@keyframes spin { to { transform: rotate(360deg); } }
.page-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.page-h h1 { margin: 0; font-family: var(--font-head); font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.page-h p { margin: 4px 0 0; color: var(--s600); max-width: 680px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--s200); margin-bottom: 18px; }
.tabs button { border: 0; background: none; padding: 9px 16px; font-weight: 600; color: var(--s500); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-current="page"] { color: var(--leaf-700); border-bottom-color: var(--leaf-600); }
.seg { display: inline-flex; background: var(--s100); padding: 3px; border-radius: 9px; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 7px; font-weight: 600; color: var(--s600); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--s900); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 12px 2px; color: var(--s600); font-size: 13px; }

/* modal + toast */
.modal-bg { position: fixed; inset: 0; z-index: 50; background: rgba(28,25,23,.42); display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 640px) { .modal-bg { align-items: center; padding: 20px; } }
.modal { background: #fff; width: 100%; max-height: 92vh; display: flex; flex-direction: column; border-radius: 18px 18px 0 0; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
@media (min-width: 640px) { .modal { border-radius: 18px; } }
.modal.sm { max-width: 420px; } .modal.md { max-width: 560px; } .modal.lg { max-width: 760px; } .modal.xl { max-width: 1000px; }
.modal-h { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--s200); }
.modal-h h2 { margin: 0; font-family: var(--font-head); font-size: 19px; }
.modal-b { padding: 18px 20px; overflow-y: auto; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--s200); }
.x { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--s500); padding: 4px 8px; border-radius: 6px; }
.x:hover { background: var(--s100); }
#toasts { position: fixed; left: 0; right: 0; bottom: 16px; z-index: 70; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { pointer-events: auto; max-width: 440px; padding: 11px 16px; border-radius: 12px; color: #fff; font-weight: 500; background: var(--leaf-700); box-shadow: 0 10px 30px rgba(0,0,0,.2); animation: pop .35s cubic-bezier(.2,.9,.3,1.2); }
.toast.error { background: var(--kokum-700); }
@keyframes pop { 0% { transform: scale(.7); opacity: 0 } 70% { transform: scale(1.04) } 100% { transform: scale(1); opacity: 1 } }

/* ═════════ login ═════════ */
.login { display: grid; min-height: 100vh; background: var(--leaf-900); }
@media (min-width: 1000px) { .login { grid-template-columns: 1fr 480px; } }
.login-art { display: none; flex-direction: column; justify-content: flex-end; padding: 56px; color: var(--leaf-50); }
@media (min-width: 1000px) { .login-art { display: flex; } }
.login-art p.big { font-family: var(--font-head); font-size: 76px; font-weight: 800; line-height: .95; letter-spacing: -0.03em; margin: 0; }
.login-art p.sub { font-size: 18px; color: color-mix(in srgb, var(--leaf-100) 80%, transparent); max-width: 440px; }
.login-form { background: #fff; display: flex; align-items: center; justify-content: center; padding: 32px; }
.login-form form { width: 100%; max-width: 360px; }

/* ═════════ staff board ═════════ */
.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--s200); }
.brandmark { font-family: var(--font-head); font-weight: 800; color: var(--leaf-600); font-size: 18px; line-height: 1; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.live-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.live-pill.on { color: var(--leaf-700); background: var(--leaf-50); }
.live-pill.off { color: var(--amber-800); background: var(--amber-50); }
.board { display: flex; gap: 12px; padding: 12px; overflow-x: auto; height: calc(100vh - 62px); background: var(--s100); }
.col { display: flex; flex-direction: column; min-width: 280px; width: 300px; flex-shrink: 0; background: color-mix(in srgb, var(--s200) 60%, transparent); border-radius: 12px; border-top: 4px solid var(--s400); }
@media (min-width: 1500px) { .col { flex: 1; width: auto; } }
.col.new { border-top-color: var(--amber-400); } .col.accepted { border-top-color: var(--sky-500); } .col.preparing { border-top-color: var(--violet-500); }
.col.ready { border-top-color: var(--leaf-500); } .col.cancelled { border-top-color: var(--kokum-500); }
.col h2 { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 10px 12px; font-size: 14px; color: var(--s700); }
.col h2 span { font-variant-numeric: tabular-nums; background: #fff; border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.col.new h2 span.hot { background: var(--amber-400); color: #451a03; }
.col ul { list-style: none; margin: 0; padding: 0 8px 8px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.ticket { background: #fff; border-radius: 10px; padding: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.06); border: 1px solid var(--s200); }
.ticket.fresh { border: 2px solid var(--amber-400); animation: pop .45s cubic-bezier(.2,.9,.3,1.2); }
.ticket.dim { opacity: .7; }
.ticket .no { font-family: var(--font-head); font-size: 30px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.ticket ul.items { list-style: none; padding: 0; margin: 10px 0 0; display: block; overflow: visible; }
.ticket ul.items li { font-size: 14px; padding: 1px 0; }
.ticket .note { display: block; padding-left: 20px; font-size: 12px; font-weight: 600; color: var(--kokum-700); }
.ticket .late { color: var(--kokum-600); font-weight: 700; }
.ticket .acts { display: flex; gap: 6px; margin-top: 10px; }
.ticket .acts .btn-primary { flex: 1; }

/* ═════════ pickup screen ═════════ */
.screen { height: 100vh; overflow: hidden; display: flex; flex-direction: column; background: var(--leaf-900); color: var(--leaf-50); font-family: var(--font-body); }
.screen header { display: flex; justify-content: space-between; align-items: center; padding: 2vh 3vw; }
.screen .rname { font-family: var(--font-head); font-size: 3.2vh; font-weight: 800; line-height: 1; }
.screen .clock { font-family: var(--font-head); font-size: 4vh; font-weight: 700; font-variant-numeric: tabular-nums; }
.screen .cols { flex: 1; display: grid; grid-template-columns: 2fr 3fr; gap: 2vw; padding: 0 3vw 3vh; min-height: 0; }
.screen h2 { margin: 0; padding-bottom: 1.5vh; font-family: var(--font-head); font-size: 4vh; border-bottom: 1px solid rgba(213,232,221,.15); }
.screen .prep-list { list-style: none; margin: 2vh 0 0; padding: 0; display: grid; gap: 1vh 2vw; grid-template-columns: repeat(auto-fill, minmax(13vw, 1fr)); align-content: start; overflow: hidden; }
.screen .prep-list li { font-family: var(--font-head); font-size: 7vh; font-weight: 700; line-height: 1.1; color: rgba(213,232,221,.75); font-variant-numeric: tabular-nums; }
.screen .ready-box { background: rgba(255,255,255,.04); border-radius: 2vh; padding: 1.5vh 2vw 0; display: flex; flex-direction: column; min-height: 0; }
.screen .ready-list { list-style: none; margin: 2vh 0 0; padding: 0; display: grid; gap: 1.5vh; grid-template-columns: repeat(auto-fill, minmax(17vw, 1fr)); align-content: start; overflow: hidden; }
.screen .ready-list li { background: #fff; border-radius: 1.5vh; text-align: center; padding: 2.5vh 0; font-family: var(--font-head); font-size: 13vh; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.screen .ready-list li.new { animation: flash 1s ease-in-out 4; }
.screen .ready-list li.collected { background: transparent; font-size: 8vh; opacity: .3; padding: 2vh 0; }
.screen .ready-list li.collected small { display: block; font-size: 1.8vh; font-weight: 500; }
.screen .empty-note { margin-top: 3vh; font-size: 2.4vh; color: rgba(213,232,221,.4); }
@keyframes flash { 0%, 100% { background: #fff } 50% { background: #ffe48c } }
.screen .start { position: absolute; inset: 0; border: 0; background: rgba(12,34,25,.92); color: var(--leaf-50); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.screen .start b { font-family: var(--font-head); font-size: 6vh; }

/* ═════════ admin shell ═════════ */
.admin { display: grid; min-height: 100vh; }
@media (min-width: 1024px) { .admin { grid-template-columns: 248px 1fr; } }
.side { position: fixed; inset: 0 auto 0 0; width: 248px; z-index: 40; background: #fff; border-right: 1px solid var(--s200); transform: translateX(-100%); transition: transform .2s; overflow-y: auto; }
.side.open { transform: none; }
@media (min-width: 1024px) { .side { position: sticky; top: 0; height: 100vh; transform: none; } }
.side-h { height: 62px; display: flex; flex-direction: column; justify-content: center; padding: 0 18px; border-bottom: 1px solid var(--s200); }
.side nav { padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 500; color: var(--s700); }
.side nav a:hover { background: var(--s100); }
.side nav a[aria-current="page"] { background: var(--leaf-600); color: #fff; }
.side nav a.kitchen { margin-top: 12px; box-shadow: inset 0 0 0 1px var(--s200); }
.admin-top { position: sticky; top: 0; z-index: 20; height: 62px; display: flex; align-items: center; gap: 12px; padding: 0 20px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--s200); }
.admin-main { padding: 24px; max-width: 1280px; margin: 0 auto; width: 100%; }
@media (max-width: 640px) { .admin-main { padding: 16px; } }
.menu-btn { display: inline-flex; } @media (min-width: 1024px) { .menu-btn { display: none; } }
.hero-kpi { background: var(--leaf-700); color: #fff; border-radius: 14px; padding: 24px; }
.hero-kpi .big { font-family: var(--font-head); font-size: 46px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.hero-kpi .sub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.hero-kpi .sub span { display: block; color: var(--leaf-100); font-size: 13px; }
.hero-kpi .sub b { font-size: 20px; font-variant-numeric: tabular-nums; }
.tile { background: #fff; border: 1px solid var(--s200); border-radius: 12px; padding: 16px; }
.tile span { color: var(--s500); font-size: 13px; }
.tile b { display: block; font-family: var(--font-head); font-size: 28px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.tile small { color: var(--s500); }
.rank li { list-style: none; margin-bottom: 12px; }
.rank .bar { height: 6px; border-radius: 999px; background: var(--s100); margin-top: 4px; }
.rank .bar i { display: block; height: 6px; border-radius: 999px; background: var(--leaf-500); }
.qr-card { background: #fff; border: 1px solid var(--s200); border-radius: 12px; padding: 14px; }
.qr-card.sel { border-color: var(--leaf-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--leaf-500) 20%, transparent); }
.qr-card img, .qr-card canvas { width: 110px; height: 110px; border-radius: 8px; border: 1px solid var(--s200); image-rendering: pixelated; }
.phone { width: 340px; margin: 0 auto; border: 10px solid var(--s900); border-radius: 36px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,.2); }
.phone > div { height: 620px; overflow-y: auto; }
.thumb { width: 42px; height: 42px; border-radius: 8px; background: var(--s100); object-fit: cover; flex-shrink: 0; }
.savebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: rgba(255,255,255,.95); border-top: 1px solid var(--s200); padding: 12px 24px; display: flex; justify-content: flex-end; gap: 8px; }
@media (min-width: 1024px) { .savebar { left: 248px; } }

/* ═════════ customer (themed) ═════════ */
.c { background: var(--page); color: var(--ink); min-height: 100vh; font-family: var(--font-body); font-size: 15px; }
.c h1, .c h2, .c h3 { font-family: var(--font-head); }
.c .wrapc { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.c .hdr { background: var(--accent); color: #fff; }
.c .hdr .wrapc { padding-top: 18px; padding-bottom: 22px; }
.c .logo { width: 44px; height: 44px; border-radius: 12px; background: #fff; object-fit: contain; padding: 3px; }
.c .tablebox { background: #fff; color: var(--accent); border-radius: 16px; padding: 6px 14px; text-align: center; }
.c .tablebox small { display: block; font-size: 11px; font-weight: 600; }
.c .tablebox b { display: block; font-family: var(--font-head); font-size: 30px; line-height: 1; }
.c .pillbtn { border: 0; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; padding: 8px 13px; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.c .sticky { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--page) 94%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--ink-10); }
.c .search { width: 100%; height: 44px; border-radius: var(--radius-btn); border: 1px solid var(--ink-10); background: var(--surface); padding: 0 14px; font-size: 15px; }
.c .search:focus { outline: none; border-color: var(--brand); }
.c .hscroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.c .hscroll::-webkit-scrollbar { display: none; }
.c .cchip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--ink-10); background: var(--surface); border-radius: 999px; padding: 6px 13px; font-size: 14px; font-weight: 500; }
.c .cchip[aria-checked="true"], .c .cchip[aria-pressed="true"] { background: var(--ink); color: var(--page); border-color: var(--ink); }
.c .cattab { flex-shrink: 0; border: 0; background: none; padding: 6px 8px 9px; font-weight: 600; color: var(--ink-60); border-bottom: 2px solid transparent; text-decoration: none; font-size: 14px; }
.c .cattab.on { color: var(--brand); border-bottom-color: var(--brand); }
.c .sec { padding-top: 30px; scroll-margin-top: 150px; }
.c .sec h2 { margin: 0; font-size: 25px; font-weight: 800; letter-spacing: -0.02em; }
.c .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
@media (min-width: 640px) { .c .grid { grid-template-columns: repeat(3, 1fr); } }
.c .card { background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--ink-10); display: flex; flex-direction: column; }
.c .card .ph { aspect-ratio: 4/3; background: color-mix(in srgb, var(--accent) 12%, transparent); border: 0; padding: 0; width: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 34px; font-weight: 800; color: color-mix(in srgb, var(--accent) 45%, transparent); }
.c .card .ph img { width: 100%; height: 100%; object-fit: cover; }
.c .card .bd { padding: 11px; display: flex; flex-direction: column; flex: 1; }
.c .card .nm { border: 0; background: none; padding: 0; text-align: left; font-weight: 600; line-height: 1.25; display: flex; gap: 6px; }
.c .card .ft { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.c .list { margin-top: 10px; }
.c .list > div { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--ink-10); }
.c .list .tx { flex: 1; min-width: 0; border: 0; background: none; padding: 0; text-align: left; }
.c .list .pic { width: 96px; height: 96px; border-radius: 16px; overflow: hidden; background: color-mix(in srgb, var(--accent) 12%, transparent); border: 0; padding: 0; }
.c .list .pic img { width: 100%; height: 100%; object-fit: cover; }
.c .clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c .add { position: relative; border: 0; border-radius: var(--radius-btn); background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 14px; padding: 6px 16px; }
.c .add .cnt { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.c .unavail { opacity: .55; }
.c .soldtxt { font-size: 12px; font-weight: 600; color: var(--ink-60); }
.c .bigbtn { width: 100%; height: 54px; border: 0; border-radius: var(--radius-btn); background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 17px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; text-decoration: none; }
.c .bigbtn:disabled { opacity: .5; }
.c .outline { width: 100%; height: 46px; border: 0; border-radius: var(--radius-btn); background: transparent; box-shadow: inset 0 0 0 1px var(--ink-10); font-weight: 600; color: var(--ink); }
.c .cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px; }
.c .cartbar .bigbtn { max-width: 760px; margin: 0 auto; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.c .cartbar .vc { background: rgba(255,255,255,.2); border-radius: var(--radius-btn); padding: 5px 12px; font-size: 14px; }
.c .sheet-bg { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 640px) { .c .sheet-bg { align-items: center; padding: 24px; } }
.c .sheet { background: var(--surface); color: var(--ink); width: 100%; max-width: 520px; max-height: 94vh; display: flex; flex-direction: column; border-radius: 26px 26px 0 0; }
@media (min-width: 640px) { .c .sheet { border-radius: 26px; } }
.c .sheet-h { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 8px; }
.c .sheet-h h2 { margin: 0; font-size: 21px; }
.c .sheet-b { padding: 0 20px 16px; overflow-y: auto; flex: 1; }
.c .sheet-f { border-top: 1px solid var(--ink-10); padding: 12px 20px; }
.c .close { border: 0; background: none; color: var(--ink-60); font-weight: 600; padding: 6px 10px; border-radius: 999px; }
.c .stepper { display: inline-flex; align-items: center; border-radius: var(--radius-btn); background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.c .stepper button { border: 0; background: none; width: 38px; height: 38px; font-size: 20px; font-weight: 700; color: var(--brand); }
.c .stepper b { min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; }
.c .opt { display: block; border: 1px solid var(--ink-10); border-radius: 14px; padding: 12px; text-align: left; background: none; width: 100%; font-weight: 600; }
.c .opt[aria-pressed="true"], .c .opt.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, transparent); color: var(--brand); }
.c .opt small { display: block; font-weight: 400; color: var(--ink-60); }
.c .cin { width: 100%; height: 44px; border: 1px solid var(--ink-10); border-radius: 12px; background: var(--surface); padding: 0 12px; font-size: 15px; }
.c textarea.cin { height: auto; min-height: 64px; padding: 10px 12px; }
.c .cin:focus { outline: none; border-color: var(--brand); }
.c .bill { background: var(--page); border-radius: 16px; padding: 14px 16px; font-variant-numeric: tabular-nums; }
.c .bill div { display: flex; justify-content: space-between; padding: 3px 0; }
.c .bill .tot { font-weight: 800; font-size: 17px; border-top: 1px solid var(--ink-10); margin-top: 6px; padding-top: 9px; }
.c .msg { background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); border-radius: 12px; padding: 10px 14px; font-weight: 500; }
.c .steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; background: var(--surface); border-radius: 18px; padding: 12px; box-shadow: inset 0 0 0 1px var(--ink-10); margin-top: -16px; position: relative; }
.c .steps li { list-style: none; text-align: center; font-size: 11px; color: var(--ink-60); }
.c .steps li i { display: flex; margin: 0 auto 6px; width: 28px; height: 28px; border-radius: 50%; align-items: center; justify-content: center; background: var(--ink-10); font-style: normal; font-weight: 700; font-size: 12px; }
.c .steps li.done { color: var(--ink); font-weight: 600; }
.c .steps li.done i { background: var(--accent); color: #fff; }
.c .steps li.cur i { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.c .box { background: var(--surface); border-radius: 18px; padding: 18px; box-shadow: inset 0 0 0 1px var(--ink-10); }
.c .stars button { border: 0; background: none; font-size: 32px; padding: 2px; color: var(--ink-10); }
.c .stars button.on { color: var(--brand); }
.diet { display: inline-flex; flex-shrink: 0; }
.skel { background: var(--ink-10); border-radius: 8px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5 } }
