/* Masa customer menu — prototype CSS (docs/design/spec.md §4–§6).
   Every color, font, radius, shadow and type step is a @gkberk/ui theme token (theme-<template>.css).
   Layout-only values (widths, aspect ratios) are template layout constants, listed in spec §6.2. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--background); color: var(--foreground);
  font-family: var(--font-body); font-weight: var(--font-weight-body);
  font-size: var(--text-base); line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
:root {
  --s: var(--gk-spacing-unit);
  --gutter: calc(var(--s) * 4);
  --t-meta: max(var(--text-sm), 13px);     /* spec §6.3: no customer text below 13 px */
  --max: 760px;
}
@media (min-width: 768px) { :root { --gutter: calc(var(--s) * 6); } }
@media (min-width: 1024px) { :root { --gutter: calc(var(--s) * 8); } }

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: var(--font-weight-heading); line-height: var(--leading-heading); margin: 0; overflow-wrap: anywhere; hyphens: auto; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 16px; height: 16px; }
.num { font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: var(--radius-sm); }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: var(--gutter); top: -60px; z-index: 100; background: var(--primary); color: var(--primary-foreground); padding: 10px 16px; border-radius: var(--radius-md); font-weight: 600; text-decoration: none; }
.skip:focus { top: 8px; }

/* ---------- Buttons (ui-kit Button variants: outline, ghost, default) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 calc(var(--s) * 4); border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--card); color: var(--card-foreground);
  font: 600 var(--t-meta)/1.2 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--muted); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); border-color: transparent; }
.btn-primary:hover { background: var(--primary); filter: brightness(.94); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-block { width: 100%; }
.icon-btn { width: 44px; height: 44px; padding: 0; flex: none; }

/* ---------- Venue header ---------- */
.venue { padding-top: calc(var(--s) * 6); }
.venue-id { display: flex; align-items: center; gap: calc(var(--s) * 3); }
.venue-logo { width: 52px; height: 52px; border-radius: var(--radius-lg); object-fit: contain; flex: none; }
.venue-name { font-size: var(--text-2xl); letter-spacing: -0.01em; }
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted-foreground); font-size: var(--t-meta); margin-top: 4px; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); flex: none; }
.status.closed .dot { background: var(--muted-foreground); }
.venue-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: calc(var(--s) * 4); }
.venue-actions .spacer { flex: 1; }
.venue-actions .btn { padding: 0 calc(var(--s) * 3); }
.lang { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.lang a { min-width: 44px; min-height: 42px; display: grid; place-items: center; font: 600 var(--t-meta)/1 var(--font-body); text-decoration: none; color: var(--muted-foreground); }
.lang a[aria-current="true"] { background: var(--foreground); color: var(--background); }

/* ---------- Sticky category bar ---------- */
.catbar { position: sticky; top: 0; z-index: 20; background: var(--background); border-bottom: 1px solid var(--border); margin-top: calc(var(--s) * 5); }
.catbar-inner { display: flex; align-items: center; gap: 4px; min-height: 60px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; padding: 8px 2px;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
          mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 calc(var(--s) * 4); white-space: nowrap; text-decoration: none; font-weight: 500; font-size: var(--t-meta); color: var(--muted-foreground); border-radius: 999px; }
.chip[aria-current="true"] { color: var(--foreground); }
.filter-btn { position: relative; }
.filter-btn .count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--primary); color: var(--primary-foreground); font: 700 12px/18px var(--font-body); }

/* Desktop side navigation (minimal, bistro) */
.layout { display: block; }
.side-nav { display: none; }
@media (min-width: 1024px) {
  .has-side .layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: calc(var(--s) * 10); max-width: calc(var(--max) + 220px + var(--s) * 10 + var(--gutter) * 2); }
  .has-side .side-nav { display: block; position: sticky; top: 76px; align-self: start; padding-top: calc(var(--s) * 8); }
  .has-side .side-nav a { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: var(--radius-md); text-decoration: none; color: var(--muted-foreground); font-weight: 500; }
  .has-side .side-nav a[aria-current="true"] { background: var(--muted); color: var(--foreground); }
  .has-side .side-nav h2 { font: 600 var(--t-meta)/1.4 var(--font-body); color: var(--muted-foreground); padding: 0 12px 8px; }
  .has-side .chips { display: none; }
  .has-side .venue .wrap, .has-side .catbar .wrap { max-width: calc(var(--max) + 220px + var(--s) * 10 + var(--gutter) * 2); }
  .has-side .catbar-inner { padding-left: calc(var(--gutter) + 220px + var(--s) * 10); gap: 8px; }
  .has-side .search-btn { display: none; }
  .has-side .search-field { display: flex; }
  .has-side .filter-btn { width: auto; padding: 0 calc(var(--s) * 4); border-color: var(--border); background: var(--card); }
  .has-side .filter-btn .lbl { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .has-side .filter-btn .count { position: static; margin-left: 2px; }
}
.search-field { display: none; flex: 1; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid var(--input); border-radius: var(--radius-md); background: var(--card); color: var(--muted-foreground); text-decoration: none; }
.filter-btn .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Sections and items (shared) ---------- */
.cat { padding-top: calc(var(--s) * 10); }
.cat-head { margin-bottom: calc(var(--s) * 4); }
.cat-title { font-size: var(--text-xl); }
.cat-desc { color: var(--muted-foreground); margin-top: 4px; max-width: 60ch; }
.item { position: relative; }
.card { position: relative; }
.card-link { text-decoration: none; color: inherit; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:has(.card-link:focus-visible) { outline: 2px solid var(--ring); outline-offset: 3px; }
.card-link:focus-visible { outline: none; }
.card-title { font-size: var(--text-lg); }
.card-price { font-weight: 600; font-size: var(--text-base); }
.card-desc { color: var(--muted-foreground); margin-top: 4px; overflow-wrap: anywhere; }
.prices { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; }
.prices li { display: inline-flex; gap: 6px; align-items: baseline; }
.prices .lbl { color: var(--muted-foreground); font-size: var(--t-meta); }
.prices b { font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; font-size: var(--t-meta); color: var(--muted-foreground); }
.tag { display: inline-flex; align-items: center; gap: 4px; }
.meta { color: var(--muted-foreground); font-size: var(--t-meta); margin-top: 6px; }
.out-badge { display: inline-flex; align-items: center; gap: 4px; font: 600 var(--t-meta)/1 var(--font-body); color: var(--foreground); background: var(--muted); border: 1px solid var(--border); padding: 5px 8px; border-radius: var(--radius-sm); white-space: nowrap; }
.is-out .card-title, .is-out .card-price, .is-out .prices b { color: var(--muted-foreground); }
.is-out .card-media img, .is-out .tile-media img { filter: grayscale(1); opacity: .5; }
.foot { color: var(--muted-foreground); font-size: var(--t-meta); padding-block: calc(var(--s) * 12) calc(var(--s) * 10); }

/* ---------- Sheets (ui-kit Sheet side="bottom" < 768 px, Dialog ≥ 768 px) ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; display: none; }
.sheet:target, .sheet.is-open { display: block; }
.sheet-scrim { position: absolute; inset: 0; background: rgb(0 0 0 / .5); }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 90vh; overflow: auto; background: var(--popover); color: var(--popover-foreground);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0; box-shadow: var(--shadow-lg); padding: 8px var(--gutter) calc(var(--s) * 6); overscroll-behavior: contain; }
.sheet-grab { width: 40px; height: 4px; border-radius: 2px; background: var(--border); margin: 0 auto 8px; }
.sheet-close { position: absolute; top: 12px; right: 12px; z-index: 2; border-radius: 999px; }
@media (min-width: 768px) {
  .sheet-panel { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 48px)); max-height: 86vh; border-radius: var(--radius-xl); padding-top: calc(var(--s) * 6); }
  .sheet-grab { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .sheet:target .sheet-panel { animation: sheet-in .22s cubic-bezier(.2, .8, .2, 1); }
  @keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } }
  @media (min-width: 768px) { @keyframes sheet-in { from { transform: translate(-50%, calc(-50% + 12px)); opacity: 0; } } }
}
.sheet h2 { font-size: var(--text-xl); padding-right: 48px; }
.detail-media { margin: 0 calc(var(--gutter) * -1) calc(var(--s) * 4); aspect-ratio: 4 / 3; overflow: hidden; background: var(--muted); }
@media (min-width: 768px) { .detail-media { margin: calc(var(--s) * -6) calc(var(--gutter) * -1) calc(var(--s) * 4); border-radius: var(--radius-xl) var(--radius-xl) 0 0; } }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-prices { margin-top: 12px; border-top: 1px solid var(--border); }
.detail-prices li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.detail-prices li.single { border: 0; padding: 4px 0 0; font-size: var(--text-lg); }
.detail-desc { margin-top: 16px; }
.facts { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.facts h3 { font: 600 var(--text-base)/1.3 var(--font-body); margin-bottom: 10px; }
.facts dl { display: grid; grid-template-columns: minmax(96px, auto) 1fr; gap: 8px 16px; }
.facts dt { color: var(--muted-foreground); font-size: var(--t-meta); padding-top: 2px; }
.facts dd { overflow-wrap: anywhere; }
.allergen-list { display: flex; flex-wrap: wrap; gap: 6px; }
.allergen-list li { padding: 3px 10px; border-radius: 999px; background: var(--secondary); color: var(--secondary-foreground); font-size: var(--t-meta); font-weight: 500; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: var(--radius-md); background: var(--muted); color: var(--foreground); margin-top: 12px; font-size: var(--t-meta); }
.notice .i { margin-top: 1px; }
.flags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.flag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius-md); font-weight: 600; font-size: var(--t-meta); }
.order-slot { display: none; } /* R14: M3 "Sepete ekle" slot, renders nothing in v1 */

/* Info sheet */
.info-block { padding: 14px 0; border-bottom: 1px solid var(--border); }
.info-block:last-child { border-bottom: 0; }
.info-block h3 { font: 600 var(--t-meta)/1.3 var(--font-body); color: var(--muted-foreground); margin-bottom: 8px; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.hours .today { font-weight: 700; }
.row-link { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.row-link .i { color: var(--muted-foreground); }
.row-link span { flex: 1; overflow-wrap: anywhere; }
.wifi { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: center; }
.wifi dt { color: var(--muted-foreground); font-size: var(--t-meta); }
.wifi dd { font-weight: 600; font-family: var(--font-body); overflow-wrap: anywhere; }

/* Filter sheet */
.fgroup { padding: 12px 0; }
.fgroup h3 { font: 600 var(--text-base)/1.3 var(--font-body); margin-bottom: 4px; }
.fgroup p { color: var(--muted-foreground); font-size: var(--t-meta); margin-bottom: 10px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: var(--t-meta); }
.check .box { width: 20px; height: 20px; border: 1.5px solid var(--input); border-radius: var(--radius-sm); display: grid; place-items: center; flex: none; background: var(--background); }
.check.on .box { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.sheet-foot { position: sticky; bottom: calc(var(--s) * -6); background: var(--popover); display: flex; gap: 8px; padding: 12px 0 calc(var(--s) * 6); margin-bottom: calc(var(--s) * -6); border-top: 1px solid var(--border); }
.sheet-foot .btn-primary { flex: 1; }

/* Search / filter result states */
.searchbar { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.searchbar .field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--input); border-radius: var(--radius-md); background: var(--card); }
.searchbar input { border: 0; background: transparent; font: inherit; color: var(--foreground); flex: 1; min-width: 0; outline: none; }
.result-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 16px; color: var(--muted-foreground); font-size: var(--t-meta); }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 6px 0 12px; border-radius: 999px; background: var(--secondary); color: var(--secondary-foreground); font-size: var(--t-meta); font-weight: 600; }
.fchip button { width: 32px; height: 32px; border: 0; background: transparent; color: inherit; display: grid; place-items: center; border-radius: 999px; }
.empty { text-align: center; padding: calc(var(--s) * 14) 0; }
.empty .i { width: 32px; height: 32px; color: var(--muted-foreground); margin: 0 auto 12px; }
.empty h2 { font-size: var(--text-lg); }
.empty p { color: var(--muted-foreground); margin: 6px auto 16px; max-width: 34ch; }

/* =====================================================================
   Template 1 — Sade / modern ("list"): typography first, hairlines, optional 1:1 thumbs.
   ===================================================================== */
.t-minimal { --max: 720px; }
.t-minimal .venue-cover { margin-bottom: calc(var(--s) * 5); }
.t-minimal .venue-cover img { width: 100%; height: auto; aspect-ratio: 16 / 5; object-fit: cover; border-radius: var(--radius-lg); }
.t-minimal .venue-logo { border-radius: 50%; width: 48px; height: 48px; }
.t-minimal .venue-name { font-size: var(--text-2xl); letter-spacing: -0.02em; }
.t-minimal .catbar { background: color-mix(in srgb, var(--background) 96%, transparent); }
.t-minimal .chip { border-radius: 0; padding: 0 10px; position: relative; }
.t-minimal .chip[aria-current="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2px; background: var(--primary); }
.t-minimal .cat-title { font-size: var(--text-xl); letter-spacing: -0.015em; }
.t-minimal .items > li { border-top: 1px solid var(--border); }
.t-minimal .items > li:last-child { border-bottom: 1px solid var(--border); }
.t-minimal .card { display: flex; gap: calc(var(--s) * 4); padding: calc(var(--s) * 4) 0; }
.t-minimal .card-body { flex: 1; min-width: 0; }
.t-minimal .card-head { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; }
.t-minimal .card-title { font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.01em; }
.t-minimal .card-price { font-size: var(--text-lg); font-weight: 500; }
.t-minimal .card-media { width: 76px; height: 76px; flex: none; border-radius: var(--radius-md); overflow: hidden; background: var(--muted); order: 2; }
.t-minimal .card-media img { width: 100%; height: 100%; object-fit: cover; }
.t-minimal .out-badge { margin-top: 8px; }
@media (min-width: 768px) { .t-minimal .card-media { width: 96px; height: 96px; } .t-minimal .venue-name { font-size: var(--text-3xl); } }

/* =====================================================================
   Template 2 — Sıcak bistro ("photo-cards"): 4:3 photo cards, warm surfaces, serif headings.
   ===================================================================== */
.t-bistro { --max: 1040px; }
.t-bistro .venue { padding-top: 0; }
.t-bistro .venue-cover img { width: 100%; height: 220px; object-fit: cover; }
@media (min-width: 768px) { .t-bistro .venue-cover img { height: 320px; } }
.t-bistro .venue-card { position: relative; margin-top: -48px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); padding: calc(var(--s) * 5); }
.t-bistro .venue:not(:has(.venue-cover)) .venue-card { margin-top: calc(var(--s) * 6); }
.t-bistro .venue-logo { width: 60px; height: 60px; }
.t-bistro .venue-name { font-size: var(--text-2xl); }
.t-bistro .catbar { border-bottom: 0; margin-top: calc(var(--s) * 3); }
.t-bistro .chip { background: var(--secondary); color: var(--secondary-foreground); }
.t-bistro .chip[aria-current="true"] { background: var(--primary); color: var(--primary-foreground); }
.t-bistro .cat-title { font-size: var(--text-xl); }
.t-bistro .items { display: grid; grid-template-columns: 1fr; gap: calc(var(--s) * 4); }
@media (min-width: 640px) { .t-bistro .items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .t-bistro .items { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.t-bistro .card { height: 100%; background: var(--card); color: var(--card-foreground); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; }
.t-bistro .card-media { aspect-ratio: 4 / 3; background: var(--muted); position: relative; }
.t-bistro .card-media img { width: 100%; height: 100%; object-fit: cover; }
.t-bistro .card-media .out-badge { position: absolute; left: 12px; top: 12px; z-index: 2; }
/* R16: photo-less product in a photo category — a deliberate type plate keeps the grid rhythm (≥ 640 px only) */
.t-bistro .plate { display: none; }
@media (min-width: 640px) { .t-bistro .plate { display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; background: var(--secondary); color: var(--secondary-foreground); font: italic var(--font-weight-heading) var(--text-xl)/1.2 var(--font-heading); overflow-wrap: anywhere; } }
.t-bistro .card-body { padding: calc(var(--s) * 4); display: flex; flex-direction: column; flex: 1; }
.t-bistro .card-head { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; }
.t-bistro .card-title { font-size: var(--text-lg); }
.t-bistro .card-price { font-size: var(--text-lg); font-weight: 600; }
.t-bistro .card-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.t-bistro .tags .tag { background: var(--muted); color: var(--foreground); padding: 3px 10px; border-radius: 999px; }
.t-bistro .no-media .out-badge, .t-minimal .out-badge, .t-premium .out-badge { align-self: flex-start; margin-top: 10px; }
/* R16: category without any photo → list surface */
.t-bistro .items.as-list { display: block; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 0 calc(var(--s) * 4); box-shadow: var(--shadow-sm); }
.t-bistro .as-list > li + li { border-top: 1px solid var(--border); }
.t-bistro .as-list .card { border: 0; box-shadow: none; border-radius: 0; background: transparent; }
.t-bistro .as-list .card-body { padding: calc(var(--s) * 4) 0; border: 0; }
.t-bistro .as-list .card-desc { -webkit-line-clamp: unset; }
@media (min-width: 1024px) { .t-bistro.has-side .layout, .t-bistro.has-side .venue .wrap, .t-bistro.has-side .catbar .wrap { max-width: 1320px; } .t-bistro .venue-card { display: flex; align-items: center; gap: 24px; } .t-bistro .venue-card .venue-actions { margin: 0 0 0 auto; } }

/* =====================================================================
   Template 3 — Koyu / premium ("editorial"): dark, centered narrow column, serif, few images.
   ===================================================================== */
.t-premium { --max: 620px; }
.t-premium .venue { padding-top: 0; text-align: center; }
.t-premium .venue-cover img { width: 100%; height: 200px; object-fit: cover; }
@media (min-width: 768px) { .t-premium .venue-cover img { height: 300px; } }
.t-premium .venue-id { flex-direction: column; gap: 14px; padding-top: calc(var(--s) * 8); }
.t-premium .venue-logo { width: 64px; height: 64px; border-radius: 50%; }
.t-premium .venue-name { font-size: var(--text-3xl); font-weight: 500; letter-spacing: 0.005em; }
.t-premium .rule { width: 48px; height: 1px; background: var(--primary); margin: 14px auto 0; }
.t-premium .status { justify-content: center; }
.t-premium .venue-actions { justify-content: center; }
.t-premium .venue-actions .spacer { display: none; }
.t-premium .btn { background: transparent; border-color: var(--border); }
.t-premium .catbar { margin-top: calc(var(--s) * 8); }
@media (min-width: 1024px) { .t-premium .catbar .wrap { max-width: 1000px; } .t-premium .chips { justify-content: center; -webkit-mask-image: none; mask-image: none; } }
.t-premium .chip { border-radius: 0; position: relative; padding: 0 12px; font-size: var(--text-base); }
.t-premium .chip[aria-current="true"] { color: var(--foreground); }
.t-premium .chip[aria-current="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 1px; background: var(--primary); }
.t-premium .cat { padding-top: calc(var(--s) * 14); }
.t-premium .cat-head { text-align: center; margin-bottom: calc(var(--s) * 8); }
.t-premium .cat-title { font-size: var(--text-2xl); font-style: italic; font-weight: 400; color: var(--primary); }
.t-premium .cat-desc { margin: 8px auto 0; }
.t-premium .items > li + li { margin-top: calc(var(--s) * 7); }
.t-premium .card-head { display: flex; gap: 16px; align-items: baseline; justify-content: space-between; }
.t-premium .card-title { font-size: var(--text-lg); font-weight: 500; }
.t-premium .card-price { color: var(--primary); font-weight: 500; font-size: var(--text-base); }
.t-premium .prices .lbl { font-style: italic; }
.t-premium .prices b { color: var(--primary); font-weight: 500; }
.t-premium .tags { color: var(--primary); font-style: italic; }
.t-premium .foot { text-align: center; }

/* =====================================================================
   Template 4 — Oyuncu / renkli ("grid"): brand band header, 1:1 tiles, filled badges.
   ===================================================================== */
.t-playful { --max: 1180px; }
.t-playful .venue { background: var(--primary); color: var(--primary-foreground); padding: calc(var(--s) * 6) 0 calc(var(--s) * 7); border-radius: 0 0 var(--radius-xl) var(--radius-xl); }
.t-playful .venue-cover { margin: calc(var(--s) * -6) 0 calc(var(--s) * 5); }
.t-playful .venue-cover img { width: 100%; height: 200px; object-fit: cover; }
.t-playful .venue-logo { width: 64px; height: 64px; border-radius: var(--radius-lg); box-shadow: 0 0 0 3px var(--primary-foreground); }
.t-playful .venue-name { font-size: var(--text-3xl); font-weight: 800; letter-spacing: -0.02em; }
.t-playful .venue .status { color: var(--primary-foreground); font-weight: 600; }
.t-playful .venue .status .dot { background: var(--accent); box-shadow: 0 0 0 2px var(--primary-foreground); }
.t-playful .venue .btn { background: var(--primary); color: var(--primary-foreground); border: 2px solid var(--primary-foreground); }
.t-playful .venue .lang { border: 2px solid var(--primary-foreground); }
.t-playful .venue .lang a { color: var(--primary-foreground); }
.t-playful .venue .lang a[aria-current="true"] { background: var(--primary-foreground); color: var(--primary); }
.t-playful .catbar { border-bottom: 0; margin-top: calc(var(--s) * 2); }
.t-playful .chip { border: 2px solid var(--border); background: var(--card); color: var(--foreground); font-weight: 700; }
.t-playful .chip[aria-current="true"] { background: var(--accent); color: var(--accent-foreground); border-color: var(--foreground); }
.t-playful .cat-title { font-size: var(--text-2xl); font-weight: 800; letter-spacing: -0.02em; }
.t-playful .items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(var(--s) * 3); }
@media (min-width: 768px) { .t-playful .items { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(var(--s) * 4); } }
@media (min-width: 1100px) { .t-playful .items { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.t-playful .card { height: 100%; background: var(--card); color: var(--card-foreground); border: 2px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.t-playful .card-media { aspect-ratio: 1 / 1; position: relative; background: var(--secondary); }
.t-playful .card-media img { width: 100%; height: 100%; object-fit: cover; }
.t-playful .card-media .out-badge { position: absolute; left: 8px; top: 8px; z-index: 2; background: var(--foreground); color: var(--background); border: 0; }
.t-playful .poster { height: 100%; display: flex; align-items: flex-end; padding: 12px; font: 800 var(--text-xl)/1.05 var(--font-heading); color: var(--secondary-foreground); overflow-wrap: anywhere; letter-spacing: -0.02em; }
.t-playful .card-body { padding: 10px 12px 14px; display: flex; flex-direction: column; flex: 1; }
.t-playful .card-head { display: contents; }
.t-playful .card-title { order: 0; } .t-playful .card-desc { order: 1; } .t-playful .meta { order: 2; } .t-playful .tags { order: 3; } .t-playful .card-price, .t-playful .prices { order: 4; } .t-playful .out-badge { order: 5; }
.t-playful .card-title { font-size: var(--text-base); font-weight: 800; line-height: 1.25; }
.t-playful .card-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: var(--t-meta); }
.t-playful .card-price { font: 800 var(--text-lg)/1.2 var(--font-heading); margin-top: auto; padding-top: 8px; }
.t-playful .prices { flex-direction: column; gap: 2px; margin-top: auto; padding-top: 8px; }
.t-playful .prices li { justify-content: space-between; }
.t-playful .prices b { font: 800 var(--text-base)/1.3 var(--font-heading); }
.t-playful .tags { gap: 4px; margin-top: 6px; }
.t-playful .tag { padding: 3px 8px; border-radius: 999px; font-weight: 700; font-size: var(--t-meta); line-height: 1.2; }
.t-playful .tag-vegan, .t-playful .tag-vegetarian { background: var(--success); color: var(--success-foreground); }
.t-playful .tag-spicy { background: var(--primary); color: var(--primary-foreground); }
.t-playful .tag-new { background: var(--accent); color: var(--accent-foreground); }
.t-playful .tag-chef_pick { background: var(--secondary); color: var(--secondary-foreground); }
.t-playful .meta { margin-top: 4px; }
.t-playful .items.as-list { display: block; background: var(--card); border: 2px solid var(--border); border-radius: var(--radius-xl); padding: 0 calc(var(--s) * 4); }
.t-playful .as-list > li + li { border-top: 2px dashed var(--border); }
.t-playful .as-list .card { border: 0; box-shadow: none; border-radius: 0; flex-direction: row; align-items: center; }
.t-playful .as-list .card-body { flex-direction: row; align-items: center; gap: 12px; padding: 12px 0; }
.t-playful .as-list .card-head { flex: 1; }
.t-playful .as-list .card-price, .t-playful .as-list .meta { margin: 0; padding: 0; }
.t-playful .foot { text-align: left; }
.searchbar .field:focus-within { outline: 2px solid var(--ring); outline-offset: 1px; }

/* =====================================================================
   Round 2 — first-screen budget (spec §4.13), band focus ring (§11.1), category index (§4.3), hours (§4.6)
   ===================================================================== */
.catbar { margin-top: calc(var(--s) * 2); }
.catbar-inner { min-height: 52px; gap: 2px; }
.chips { padding: 4px 2px; }
.chip { padding: 0 calc(var(--s) * 3); }
main > .cat:first-of-type { padding-top: calc(var(--s) * 4); }
.venue-actions { margin-top: calc(var(--s) * 3); flex-wrap: nowrap; }
.index-btn .lbl, .search-btn .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 1024px) { .has-side .index-btn { display: none; } }
.index-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 4px; border-bottom: 1px solid var(--border); text-decoration: none; font-weight: 500; }
.index-list a span { color: var(--muted-foreground); font-size: var(--t-meta); font-weight: 400; white-space: nowrap; }
.index-list a[aria-current="true"] { font-weight: 700; }

/* Hours: one interval per line; "Bugün" is a badge next to the day (no nowrap overflow at 320 px) */
.hours { grid-template-columns: minmax(0, auto) minmax(0, 1fr); align-items: start; }
.hours dt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.hours dd span { display: block; }
.today-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--secondary); color: var(--secondary-foreground); font: 600 var(--t-meta)/1.5 var(--font-body); }

/* Sade */
@media (min-width: 768px) { .t-minimal .venue-cover img { max-height: 200px; } }

/* Bistro: <640 compact header; card head (name + price) above the photo so the first screen shows products */
@media (max-width: 639px) {
  .t-bistro .venue-cover img { height: 140px; }
  .t-bistro .venue-card { margin-top: -32px; padding: calc(var(--s) * 3) calc(var(--s) * 4); }
  .t-bistro .venue-logo { width: 44px; height: 44px; }
  .t-bistro .venue-name { font-size: var(--text-xl); }
  .t-bistro .items:not(.as-list) .card-body { display: contents; }
  .t-bistro .items:not(.as-list) .card-head { order: 0; padding: calc(var(--s) * 3) calc(var(--s) * 4) calc(var(--s) * 2.5); }
  .t-bistro .items:not(.as-list) .card-media { order: 1; }
  .t-bistro .items:not(.as-list) .card-body > :not(.card-head) { order: 2; margin-inline: calc(var(--s) * 4); }
  .t-bistro .items:not(.as-list) .card-body > .card-desc { margin-top: calc(var(--s) * 3); }
  .t-bistro .items:not(.as-list) .card::after { content: ""; order: 3; height: calc(var(--s) * 4); }
  .t-bistro .catbar { margin-top: calc(var(--s) * 1); }
}
@media (min-width: 640px) { .t-bistro .venue-cover img { height: 220px; } }
@media (min-width: 1024px) { .t-bistro .venue-cover img { height: 144px; } .t-bistro .venue-card { margin-top: -40px; } }

/* Premium: <768 logo beside the name, 120 px cover, no rule */
@media (max-width: 767px) {
  .t-premium .venue-cover img { height: 120px; }
  .t-premium .venue-id { flex-direction: row; justify-content: center; gap: 12px; padding-top: calc(var(--s) * 5); }
  .t-premium .venue-id > div { text-align: left; }
  .t-premium .venue-logo { width: 44px; height: 44px; }
  .t-premium .venue-name { font-size: var(--text-2xl); }
  .t-premium .rule { display: none; }
  .t-premium .status { justify-content: flex-start; }
  .t-premium .catbar { margin-top: calc(var(--s) * 3); }
  .t-premium main > .cat:first-of-type { padding-top: calc(var(--s) * 5); }
  .t-premium .cat-head { margin-bottom: calc(var(--s) * 5); }
}
@media (min-width: 768px) {
  .t-premium .venue-cover img { height: 200px; }
  .t-premium .venue-id { padding-top: calc(var(--s) * 5); gap: 10px; }
  .t-premium .venue-logo { width: 52px; height: 52px; }
  .t-premium .catbar { margin-top: calc(var(--s) * 5); }
  .t-premium main > .cat:first-of-type { padding-top: calc(var(--s) * 8); }
  .t-premium .cat-head { margin-bottom: calc(var(--s) * 6); }
}

/* Oyuncu: tighter band; focus ring on the band uses primary-foreground (ring = primary would vanish on the band) */
.t-playful .venue { padding: calc(var(--s) * 4) 0 calc(var(--s) * 5); --ring: var(--primary-foreground); }
.t-playful .venue-cover { margin: calc(var(--s) * -4) 0 calc(var(--s) * 4); }
.t-playful .venue-logo { width: 52px; height: 52px; }
.t-playful .venue :focus-visible { outline: 3px solid var(--primary-foreground); outline-offset: 3px; }
@media (max-width: 767px) { .t-playful .venue-name { font-size: var(--text-2xl); } .t-playful .venue-cover img { height: 140px; } }

/* R16 round 2: photo-less product = honest text card (bistro) / brand-mark placeholder (oyuncu); the name is never repeated */
.t-bistro .items:not(.as-list) > li.no-media { align-self: start; }
.t-bistro .items:not(.as-list) .no-media .card { background: var(--muted); box-shadow: none; }
.t-playful .card-media.no-photo { display: grid; place-items: center; }
.t-playful .card-media.no-photo img { width: 34%; height: auto; opacity: .9; border-radius: var(--radius-lg); }

/* =====================================================================
   Round 3 — first-screen rule with realistic data (spec §4.2, §4.13): long names, oyuncu with a cover
   ===================================================================== */
.venue-name.name-m { font-size: var(--text-xl); }
.venue-name.name-l { font-size: var(--text-lg); }
@media (min-width: 768px) { .venue-name.name-m { font-size: var(--text-2xl); } .venue-name.name-l { font-size: var(--text-xl); } }
@media (max-width: 639px) { .t-bistro .venue-name.name-m, .t-bistro .venue-name.name-l { font-size: var(--text-lg); } }
/* Oyuncu: < 640 px the cover lives at the top of the Info panel, not above the band (a 72–88 px strip still pushes
   the first product name to ~586 px at 360×640). ≥ 1024 px: 104 px cover and a single-row band. */
.info-cover { display: none; }
@media (max-width: 639px) {
  .t-playful .venue .venue-cover { display: none; }
  .t-playful .info-cover { display: block; margin: 0 calc(var(--gutter) * -1) calc(var(--s) * 3); }
  .t-playful .info-cover img { width: 100%; height: 140px; object-fit: cover; }
}
@media (min-width: 1024px) {
  .t-playful .venue { padding: calc(var(--s) * 3) 0 calc(var(--s) * 4); }
  .t-playful .venue-cover { margin: calc(var(--s) * -3) 0 calc(var(--s) * 3); }
  .t-playful .venue-cover img { height: 104px; }
  .t-playful .venue > .wrap { display: flex; align-items: center; gap: calc(var(--s) * 6); }
  .t-playful .venue > .wrap > .venue-id { flex: 1; min-width: 0; }
  .t-playful .venue-actions { margin-top: 0; flex: none; }
}
