/* Tablet Menu — shared styles for every page (splash · menu · product-detail).
   Colours come only from tokens.css (--tm-* roles, global tokens). Type is in rem so the
   «Aa» text-size control can scale it: <html data-text="lg"> takes the root from 16 to 20px (×1.25).
   Layout stays in px — the device is a fixed 820 × 1180 iPad (portrait). */

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; }
html[data-text="lg"] { font-size: 20px; }
body { margin: 0; min-height: 100vh; background: var(--grey-300); font-family: var(--font-inter); -webkit-font-smoothing: antialiased; }
button { font-family: inherit; color: inherit; }
img { display: block; }
[hidden] { display: none !important; }

/* ════════ PROTOTYPE CHROME — not part of the app (delete when implementing) ════════ */
.proto { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 14px 16px; font: 600 12px/1 var(--font-inter); }
.proto-group { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 10px; background: var(--white-500); box-shadow: var(--shadow-sm); }
.proto-label { padding: 0 6px 0 8px; color: var(--text-200); }
.proto-btn { height: 28px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--text-300); font: inherit; text-decoration: none; display: inline-flex; align-items: center; cursor: pointer; }
.proto-btn:hover { background: var(--grey-200); }
.proto-btn.on { background: var(--text-500); color: var(--white-500); }
.stage { display: flex; justify-content: center; padding: 0 16px 32px; }
.device-fit { position: relative; }
.device { position: absolute; top: 0; left: 0; width: 864px; height: 1224px; padding: 22px; border-radius: 48px; background: #101012; box-shadow: 0 0 0 2px #2A2A2E, 0 30px 80px rgba(0, 0, 0, .28); transform-origin: top left; }

/* ════════ SCREEN ════════ */
.screen { position: relative; width: 820px; height: 1180px; border-radius: 26px; overflow: hidden; background: var(--tm-bg); color: var(--tm-text); font-family: var(--font-inter); }
.scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }
.ic { flex: none; }

/* ── Top bar (menu) ── */
.topbar { position: sticky; top: 0; z-index: 20; height: 88px; padding: 0 32px; display: flex; align-items: center; gap: 16px; background: var(--tm-bg); }
.brand { flex: none; max-width: 240px; display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand img { width: 52px; height: 52px; border-radius: var(--radius-xl); object-fit: cover; }
.brand-name { font-size: 1.25rem; font-weight: 700; letter-spacing: -.3px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-table { margin-top: 2px; font-size: .8125rem; font-weight: 500; color: var(--tm-text-2); }

/* ── Tool group: Aa · language ── */
.tools { display: flex; align-items: center; height: 52px; padding: 0 4px; border-radius: var(--radius-full); background: var(--tm-surface); border: 1px solid var(--tm-border); }
.tool { height: 44px; min-width: 44px; padding: 0 10px; border: 0; border-radius: var(--radius-full); background: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 1rem; font-weight: 700; letter-spacing: .3px; cursor: pointer; }
.tool:active { background: var(--tm-surface-2); }
.tool.on { background: var(--tm-accent-soft); color: var(--tm-accent-text); }
.tool-sep { width: 1px; height: 24px; margin: 0 2px; background: var(--tm-border); }
.aa { display: inline-flex; align-items: baseline; gap: 1px; font-weight: 700; line-height: 1; letter-spacing: 0; }
.aa span:first-child { font-size: 13px; }
.aa span:last-child { font-size: 20px; }
.glass { background: var(--tm-glass-bg); border: 1px solid var(--tm-glass-border); color: var(--white-500); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.glass .tool-sep { background: var(--tm-glass-border); }
.glass .tool:active { background: rgba(255, 255, 255, .14); }
.glass .tool.on { background: var(--white-500); color: var(--text-500); }

/* ── Category rail ── */
.rail { position: sticky; top: 88px; z-index: 19; padding-bottom: 12px; background: var(--tm-bg); transition: box-shadow .2s; }
.rail.stuck { box-shadow: 0 1px 0 var(--tm-border); }
.rail-track { display: flex; gap: 12px; padding: 8px 32px; overflow-x: auto; scrollbar-width: none; }
.rail-track::-webkit-scrollbar { display: none; }
.tile { position: relative; flex: none; width: 148px; height: 96px; padding: 0; border: 0; border-radius: var(--radius-xl); overflow: hidden; background: var(--tm-surface-2); cursor: pointer; transition: box-shadow .15s; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, var(--tm-photo-fade)); opacity: .85; }
.tile span { position: absolute; left: 12px; right: 10px; bottom: 10px; z-index: 1; color: var(--white-500); font-size: 1rem; font-weight: 600; line-height: 1.2; text-align: left; }
.tile.on { box-shadow: 0 0 0 3px var(--tm-bg), 0 0 0 6px var(--tm-accent); }

/* ── Category section + grid ── */
.section { padding: 24px 32px 8px; }
.section h2 { margin: 0; font-size: 1.625rem; font-weight: 700; letter-spacing: -.4px; line-height: 1.25; }
.lead { margin: 6px 0 20px; font-size: 1rem; line-height: 1.5; color: var(--tm-text-2); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.menu-end { height: 128px; }

/* ── Dish card ── */
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-2xl); overflow: hidden; background: var(--tm-surface); box-shadow: var(--tm-card-shadow); color: inherit; text-decoration: none; }
.card:active { transform: scale(.985); }
.card-img { position: relative; aspect-ratio: 4 / 3; background: var(--tm-surface-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.card-name { font-size: 1.125rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-desc { font-size: .875rem; line-height: 1.45; color: var(--tm-text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-size: 1.125rem; font-weight: 700; white-space: nowrap; }
.meta { display: inline-flex; align-items: center; gap: 4px; font-size: .8125rem; font-weight: 500; color: var(--tm-text-2); white-space: nowrap; }
.badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.badge { height: 28px; padding: 0 10px 0 8px; border-radius: var(--radius-full); display: inline-flex; align-items: center; gap: 4px; background: rgba(255, 255, 255, .94); color: var(--text-500); font-size: .8125rem; font-weight: 600; }
.badge-ic { width: 28px; padding: 0; justify-content: center; }
.badge-out { padding: 0 10px; background: var(--text-500); color: var(--white-500); }
.card-img.none { display: flex; align-items: center; justify-content: center; color: var(--tm-text-3); }
.card.out .card-img img { filter: grayscale(1); opacity: .6; }
.card.out .card-name, .card.out .price { color: var(--tm-text-2); }
mark { background: var(--tm-accent-soft); color: inherit; border-radius: var(--radius-sm); padding: 0 1px; }

/* Diet glyph colours — same on cards and chips */
.d-spicy .ic { color: var(--error-500); }
.d-vegan .ic, .d-vegeterian .ic { color: var(--success-800); }
.d-halal .ic, .d-kosher .ic { color: var(--primary-600); }
[data-theme="dark"] :is(.chip, .row-ic):is(.d-vegan, .d-vegeterian) .ic { color: var(--success-400); }
[data-theme="dark"] .chip:is(.d-halal, .d-kosher) .ic { color: var(--primary-300); }

/* ── «Ofisiantı çağır» — floating, on every screen ── */
.fab { position: absolute; right: 32px; bottom: 32px; z-index: 30; height: 60px; padding: 0 26px 0 20px; border: 0; border-radius: var(--radius-full); background: var(--tm-accent); color: var(--tm-on-accent); display: inline-flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 700; box-shadow: var(--shadow-lg); cursor: pointer; transition: background .2s; }
.fab:active { transform: scale(.97); }
.fab.glass { background: var(--tm-glass-bg); border: 1px solid var(--tm-glass-border); color: var(--white-500); box-shadow: none; }
.fab.called { background: var(--success-800); color: var(--white-500); border-color: transparent; }

/* ── Language popover ── */
.pop { position: absolute; top: 80px; right: 32px; z-index: 45; width: 280px; padding: 8px; border-radius: var(--radius-2xl); background: var(--tm-surface); border: 1px solid var(--tm-border); box-shadow: var(--dropdown-shadow); color: var(--tm-text); transform-origin: top right; transform: scale(.96); opacity: 0; pointer-events: none; transition: opacity .16s, transform .16s; }
.pop.open { transform: none; opacity: 1; pointer-events: auto; }
.pop-title { padding: 10px 14px 8px; font-size: .8125rem; font-weight: 600; color: var(--tm-text-2); }
.lang { width: 100%; height: 56px; padding: 0 14px; border: 0; border-radius: var(--radius-xl); background: transparent; display: flex; align-items: center; gap: 12px; font-size: 1rem; font-weight: 500; text-align: left; cursor: pointer; }
.lang:active { background: var(--tm-surface-2); }
.lang-code { width: 36px; height: 28px; border-radius: var(--radius-md); background: var(--tm-surface-2); display: flex; align-items: center; justify-content: center; font-size: .6875rem; font-weight: 700; color: var(--tm-text-2); text-transform: uppercase; }
.lang.on { background: var(--tm-accent-soft); }
.lang.on .lang-code { background: var(--tm-surface); color: var(--tm-accent-text); }
.lang .ic { margin-left: auto; color: var(--tm-accent-text); }

/* ── Confirm dialog ── */
.scrim { position: absolute; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: var(--tm-scrim); opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.dialog { width: 480px; padding: 36px 32px 28px; border-radius: var(--radius-3xl); background: var(--tm-surface); color: var(--tm-text); text-align: center; box-shadow: var(--shadow-lg); transform: translateY(12px) scale(.98); transition: transform .2s; }
.scrim.open .dialog { transform: none; }
.dialog-ic { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--tm-accent-soft); color: var(--tm-accent-text); }
.dialog h3 { margin: 0; font-size: 1.4375rem; font-weight: 700; letter-spacing: -.3px; }
.dialog p { margin: 8px 0 0; font-size: 1rem; line-height: 1.5; color: var(--tm-text-2); }
.table-chip { display: inline-flex; align-items: center; height: 32px; margin-top: 16px; padding: 0 14px; border-radius: var(--radius-full); background: var(--tm-surface-2); font-size: .875rem; font-weight: 600; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.btn { height: 56px; border: 0; border-radius: var(--radius-xl); font-size: 1.25rem; font-weight: 700; cursor: pointer; }
.btn-primary { background: var(--tm-accent); color: var(--tm-on-accent); }
.btn-ghost { background: var(--tm-surface-2); color: var(--tm-text); }

/* ── Idle prompt ── */
.idle-ring { position: relative; width: 80px; height: 80px; margin: 0 auto 18px; }
.idle-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.idle-ring circle { fill: none; stroke: var(--tm-surface-2); stroke-width: 6; }
.idle-ring .idle-arc { stroke: var(--tm-accent); stroke-linecap: round; stroke-dasharray: 226.2; animation: idle-arc 10s linear forwards; }
#tm-idle:not(.open) .idle-arc { animation: none; }
.idle-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.625rem; font-weight: 700; font-variant-numeric: tabular-nums; }
@keyframes idle-arc { to { stroke-dashoffset: 226.2; } }

/* ── Toast ── */
.toast { position: absolute; left: 50%; bottom: 112px; z-index: 60; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 24px 10px 12px; border-radius: var(--radius-full); background: var(--tm-toast-bg); color: var(--tm-toast-text); font-size: 1rem; font-weight: 500; white-space: nowrap; box-shadow: var(--shadow-lg); opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-ic { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--success-800); color: var(--white-500); }

/* ── Search — always visible: a field in the menu top bar, results under it ── */
.searchbox { flex: 1; min-width: 0; height: 52px; padding: 0 4px 0 16px; display: flex; align-items: center; gap: 10px; border-radius: var(--radius-full); background: var(--tm-surface); border: 1px solid var(--tm-border); color: var(--tm-text-2); text-decoration: none; cursor: text; transition: border-color .15s, box-shadow .15s; }
.searchbox:focus-within { border-color: var(--tm-accent); box-shadow: var(--focus-ring); }
.searchbox input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--tm-text); font: 500 1rem/1 var(--font-inter); }
.searchbox input::placeholder { color: var(--tm-text-3); }
.searchbox input::-webkit-search-cancel-button { -webkit-appearance: none; }
.searchbox .ph { flex: 1; min-width: 0; font-size: 1rem; font-weight: 500; color: var(--tm-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.searchbox.glass { background: var(--tm-glass-bg); border-color: var(--tm-glass-border); color: var(--white-500); }
.searchbox.glass .ph { color: rgba(255, 255, 255, .8); }
.search-clear { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--tm-surface-2); color: var(--tm-text-2); cursor: pointer; }
.results { position: absolute; top: 88px; left: 0; right: 0; bottom: 0; z-index: 25; overflow-y: auto; padding: 12px 32px 128px; background: var(--tm-bg); box-shadow: inset 0 1px 0 var(--tm-border); scrollbar-width: none; }
.text-btn { height: 48px; padding: 0 4px; border: 0; background: transparent; color: var(--tm-accent-text); font-size: 1.125rem; font-weight: 600; cursor: pointer; }
.search-count { margin: 4px 0 16px; font-size: .875rem; font-weight: 500; color: var(--tm-text-2); }
.empty { padding: 120px 40px 0; text-align: center; color: var(--tm-text-2); }
.empty-ic { width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--tm-surface-2); color: var(--tm-text-3); }
.empty h3 { margin: 0 0 6px; font-size: 1.25rem; font-weight: 700; color: var(--tm-text); }
.empty p { margin: 0; font-size: 1rem; line-height: 1.5; }

/* ── Product detail ── */
.hero { position: relative; height: 540px; background: var(--tm-surface-2); }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero img.out { filter: grayscale(1); }
.hero.none { height: 88px; background: var(--tm-bg); }
.hero.none::after { display: none; }
.hero.none + .sheet { margin-top: 0; padding-top: 12px; border-radius: 0; }
.hero::after { content: ""; position: absolute; inset: 0 0 auto; height: 160px; background: linear-gradient(180deg, rgba(0, 0, 0, .45), transparent); }
/* Dish-page bar: sticky over the photo in glass; turns solid once the sheet reaches it (or when there is no photo),
   so «← Menyu» and search never scroll away. */
.dbar { position: sticky; top: 0; z-index: 20; height: 88px; margin-bottom: -88px; padding: 0 32px; display: flex; align-items: center; gap: 16px; transition: background .2s, box-shadow .2s; }
.dbar.solid { background: var(--tm-bg); box-shadow: 0 1px 0 var(--tm-border); }
.dbar.solid .glass { background: var(--tm-surface); border-color: var(--tm-border); color: var(--tm-text); -webkit-backdrop-filter: none; backdrop-filter: none; }
.dbar.solid .glass .tool-sep { background: var(--tm-border); }
.dbar.solid .glass .tool.on { background: var(--tm-accent-soft); color: var(--tm-accent-text); }
.dbar.solid .searchbox.glass { color: var(--tm-text-2); }
.dbar.solid .searchbox.glass .ph { color: var(--tm-text-3); }
.back { flex: none;  height: 52px; padding: 0 22px 0 14px; border-radius: var(--radius-full); display: inline-flex; align-items: center; gap: 6px; font-size: 1rem; font-weight: 600; text-decoration: none; }
.sheet { position: relative; z-index: 3; margin-top: -40px; padding: 36px 40px 140px; border-radius: var(--radius-3xl) var(--radius-3xl) 0 0; background: var(--tm-bg); }
.out-banner { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 14px 18px; border-radius: var(--radius-xl); background: var(--tm-warn-bg); color: var(--tm-warn-text); font-size: 1rem; font-weight: 600; }
.eyebrow { font-size: .875rem; font-weight: 600; color: var(--tm-accent-text); }
.d-name { margin: 6px 0 0; font-size: 2rem; font-weight: 700; letter-spacing: -.6px; line-height: 1.2; }
.d-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.d-price { font-size: 1.4375rem; font-weight: 700; }
.d-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--tm-text-3); }
.d-meta .meta { font-size: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { height: 36px; padding: 0 14px 0 10px; border-radius: var(--radius-full); display: inline-flex; align-items: center; gap: 6px; background: var(--tm-surface-2); font-size: .875rem; font-weight: 600; }
.chip-warn { background: var(--tm-warn-bg); color: var(--tm-warn-text); }
.d-desc { max-width: 700px; margin: 20px 0 0; font-size: 1.125rem; line-height: 1.6; color: var(--tm-text-2); }
.block { margin-top: 36px; }
.block h3 { margin: 0 0 14px; font-size: 1.25rem; font-weight: 700; letter-spacing: -.2px; }
.block .chips { margin-top: 0; }
.opt-inline { margin: 0; font-size: 1.125rem; line-height: 1.6; color: var(--tm-text); }
.opt-inline .sep { margin: 0 10px; color: var(--tm-text-3); }
.opt-list { border-top: 1px solid var(--tm-border); }
.opt { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--tm-border); font-size: 1.125rem; }
.opt-price { font-weight: 600; color: var(--tm-text-2); white-space: nowrap; }
.muted { margin: 0; font-size: 1rem; color: var(--tm-text-2); }
.note { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; font-size: .875rem; line-height: 1.5; color: var(--tm-text-2); }
.recs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rec { display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; }
.rec img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-xl); margin-bottom: 8px; background: var(--tm-surface-2); }
.rec-ph { aspect-ratio: 4 / 3; margin-bottom: 8px; border-radius: var(--radius-xl); display: flex; align-items: center; justify-content: center; background: var(--tm-surface-2); color: var(--tm-text-3); }
.rec-name { font-size: 1rem; font-weight: 600; line-height: 1.3; }
.rec-price { font-size: .875rem; font-weight: 600; color: var(--tm-text-2); }

/* ── Splash ── */
.splash { position: absolute; inset: 0; color: var(--white-500); cursor: pointer; }
.splash-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.splash::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(10, 10, 20, .5) 0%, transparent 18%, transparent 36%, rgba(10, 10, 20, .78) 64%, var(--tm-photo-fade) 100%); }
.splash-mid, .splash-bottom { z-index: 1; }
.splash-mid { position: absolute; left: 0; right: 0; bottom: 168px; padding: 0 64px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.splash-logo { width: 112px; height: 112px; border-radius: var(--radius-3xl); box-shadow: 0 0 0 1px var(--tm-glass-border), 0 12px 32px rgba(0, 0, 0, .35); }
.splash-welcome { margin-top: 28px; font-size: 1.125rem; font-weight: 500; opacity: .8; }
.splash-name { margin: 6px 0 0; font-size: 2.5625rem; font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.splash-tag { max-width: 540px; margin: 12px 0 0; font-size: 1.125rem; line-height: 1.5; opacity: .85; }
.splash-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 660px; margin-top: 32px; }
.lang-pill { height: 48px; padding: 0 20px; border-radius: var(--radius-full); font-size: 1rem; font-weight: 600; cursor: pointer; }
.lang-pill.on { background: var(--white-500); border-color: var(--white-500); color: var(--text-500); }
.splash-cta { margin-top: 28px; height: 68px; min-width: 340px; padding: 0 32px; border-radius: var(--radius-full); display: inline-flex; align-items: center; justify-content: center; gap: 12px; background: var(--tm-accent); color: var(--tm-on-accent); font-size: 1.25rem; font-weight: 700; text-decoration: none; animation: pulse 2.4s ease-out infinite; }
.splash-hint { margin-top: 18px; font-size: .875rem; opacity: .7; }
.splash-bottom { position: absolute; left: 32px; right: 32px; bottom: 32px; height: 60px; display: flex; align-items: center; }
.glass-chip { height: 44px; padding: 0 16px; border-radius: var(--radius-full); display: inline-flex; align-items: center; font-size: 1rem; font-weight: 600; }
.powered { position: absolute; left: 50%; transform: translateX(-50%); font-size: .8125rem; opacity: .6; white-space: nowrap; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tm-accent) 55%, transparent), 0 12px 32px rgba(0, 0, 0, .3); }
  70%  { box-shadow: 0 0 0 20px transparent, 0 12px 32px rgba(0, 0, 0, .3); }
  100% { box-shadow: 0 0 0 0 transparent, 0 12px 32px rgba(0, 0, 0, .3); }
}
@media (prefers-reduced-motion: reduce) { .splash-cta { animation: none; } * { transition: none !important; } }

/* ════════ MENU VARIANT B — chip navigation, list rows, all-categories sheet ════════ */
.chipbar { position: sticky; top: 88px; z-index: 19; display: flex; align-items: center; gap: 12px; padding: 4px 0 14px 32px; background: var(--tm-bg); transition: box-shadow .2s; }
.chipbar.stuck { box-shadow: 0 1px 0 var(--tm-border); }
.cats-btn { flex: none; height: 44px; padding: 0 16px 0 12px; border: 1px solid var(--tm-border); border-radius: var(--radius-full); background: var(--tm-surface); display: inline-flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; }
.chip-track { display: flex; gap: 8px; overflow-x: auto; margin-left: -8px; padding: 0 32px 0 8px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 40px), transparent); }
.chip-track::-webkit-scrollbar { display: none; }
.chip-nav { flex: none; height: 44px; padding: 0 18px; border: 0; border-radius: var(--radius-full); background: var(--tm-surface-2); font-size: 1rem; font-weight: 600; white-space: nowrap; cursor: pointer; }
.chip-nav.on { background: var(--tm-text); color: var(--tm-bg); }
.list { border-radius: var(--radius-2xl); overflow: hidden; background: var(--tm-surface); box-shadow: var(--tm-card-shadow); }
.row { display: flex; align-items: center; gap: 16px; min-height: 76px; padding: 12px 16px 12px 20px; color: inherit; text-decoration: none; }
.row + .row { border-top: 1px solid var(--tm-border); }
.row:active { background: var(--tm-surface-2); }
.row > .ic { color: var(--tm-text-3); }
.row-main { flex: 1; min-width: 0; }
.row-name { display: flex; align-items: center; gap: 8px; font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.row-ic { display: inline-flex; }
.row-out { height: 24px; padding: 0 10px; border-radius: var(--radius-full); display: inline-flex; align-items: center; background: var(--text-500); color: var(--white-500); font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.row-desc { margin-top: 2px; font-size: .875rem; color: var(--tm-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.out .row-name > span:first-child, .row.out .price { color: var(--tm-text-2); }
.cats { position: absolute; inset: 0; z-index: 40; display: flex; flex-direction: column; background: var(--tm-bg); opacity: 0; pointer-events: none; transition: opacity .18s; }
.cats.open { opacity: 1; pointer-events: auto; }
.cats-head { flex: none; height: 88px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; }
.cats-head h2 { margin: 0; font-size: 1.625rem; font-weight: 700; letter-spacing: -.4px; }
.cats-grid { flex: 1; overflow-y: auto; padding: 4px 32px 128px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-content: start; scrollbar-width: none; }
.cat-tile { position: relative; height: 136px; padding: 0; border: 0; border-radius: var(--radius-2xl); overflow: hidden; background: var(--tm-surface); box-shadow: var(--tm-card-shadow); color: var(--tm-text); text-align: left; cursor: pointer; }
.cat-tile > .ic { position: absolute; top: 16px; left: 16px; color: var(--tm-text-3); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, var(--tm-photo-fade)); opacity: .85; }
.cat-tile span { position: absolute; left: 16px; right: 12px; bottom: 14px; z-index: 1; font-size: 1.125rem; font-weight: 700; line-height: 1.2; }
.cat-tile.photo span { color: var(--white-500); }
.cat-tile small { display: block; margin-top: 4px; font-size: .8125rem; font-weight: 500; opacity: .8; }
.cat-tile.on { box-shadow: 0 0 0 3px var(--tm-bg), 0 0 0 6px var(--tm-accent); }
