/* ModulerMenu · herkese açık menü
   Tek işaretleme, üç tema: [data-theme="classic|modern|chef"]. Mobil önce; ≥1024px yan menülü yerleşim. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font: 400 1rem/1.5 var(--font-body); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Tema değişkenleri ────────────────────────────────────────────────── */
[data-theme="classic"] { --head: var(--font-display); --head-w: 400; --r: 10px; --r-lg: 16px; --head-track: -.01em; }
[data-theme="modern"]  { --head: var(--font-body);    --head-w: 700; --r: 18px; --r-lg: 26px; --head-track: -.03em; }
[data-theme="chef"]    { --head: var(--font-display); --head-w: 400; --r: 14px; --r-lg: 22px; --head-track: 0; }

.app { min-height: 100vh; }
.wrap { width: 100%; max-width: 44rem; margin-inline: auto; padding-inline: 1.1rem; }

/* ── Üst çubuk ────────────────────────────────────────────────────────── */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: max(.9rem, env(safe-area-inset-top)) .4rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; min-width: 0; }
.brand-logo { height: 2.2rem; width: auto; border-radius: 6px; }
.brand-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.brand-name { font: var(--head-w) 1.05rem/1.1 var(--head); letter-spacing: var(--head-track); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tools { display: flex; gap: .4rem; }
.icon-btn {
    display: grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0;
    border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted); cursor: pointer;
    transition: color .2s, border-color .2s, transform .2s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--accent); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico-sun { display: none; }
[data-mode="dark"] .ico-sun { display: block; }
[data-mode="dark"] .ico-moon { display: none; }

/* ── Giriş bölümü ─────────────────────────────────────────────────────── */
.intro { padding-block: 1.4rem 1.1rem; }
.intro h1 { margin: 0; font: var(--head-w) clamp(2.3rem, 9vw, 3.4rem)/1 var(--head); letter-spacing: var(--head-track); text-wrap: balance; }
.intro .tagline { margin: .55rem 0 0; color: var(--muted); max-width: 36ch; }
.search { display: flex; align-items: center; gap: .6rem; margin-top: 1.2rem; padding: 0 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search svg { width: 1.05rem; height: 1.05rem; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; min-height: 2.9rem; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; outline: none; }
.search input::placeholder { color: var(--muted); opacity: .8; }
.search-clear { border: 0; background: none; color: var(--muted); cursor: pointer; padding: .3rem; font-size: 1.1rem; line-height: 1; }

.tagfilter { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.tagfilter button {
    padding: .3rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: none;
    font-size: .8rem; font-weight: 500; color: var(--muted); cursor: pointer; transition: all .2s;
}
.tagfilter button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }

/* ── Kategori şeridi (mobil: yatay çipler) ────────────────────────────── */
.cats { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-block: 1px solid var(--line); }
.cats { margin-inline: -1.1rem; padding-inline: 0; }
.cats-inner { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; padding: .65rem 1.1rem; scroll-padding-inline: 1.1rem; overscroll-behavior-x: contain; }
/* Kaydırılabilir şeritler: kenarda yarım çip yerine yumuşak solma (JS .fade-l / .fade-r ekler) */
.cats-inner, .cats-tags { --fade: 1.6rem; --fl: 0px; --fr: 0px; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%); }
.cats-inner.fade-l, .cats-tags.fade-l { --fl: var(--fade); }
.cats-inner.fade-r, .cats-tags.fade-r { --fr: var(--fade); }
.cats-inner::-webkit-scrollbar { display: none; }
.cats a {
    flex: none; padding: .45rem .95rem; border: 1px solid var(--line); border-radius: 999px;
    font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--muted); background: var(--surface);
    transition: background-color .2s, color .2s, border-color .2s;
}
.cats a .n { margin-left: .3rem; font-weight: 500; opacity: .6; font-size: .8em; }
.cats a.is-current, [data-theme] .cats a.is-current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ── Bölümler ─────────────────────────────────────────────────────────── */
.layout { }
.cat { padding-top: 2rem; scroll-margin-top: 4.2rem; }
.cat-cover { position: relative; height: 9.5rem; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); margin-bottom: 1rem; }
.cat-cover img { width: 100%; height: 100%; object-fit: cover; }
.cat-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, hsl(var(--h) 40% 6% / .72), transparent 70%); }
.cat-cover h2 { position: absolute; left: 1rem; bottom: .8rem; z-index: 1; margin: 0; color: #fff; font: var(--head-w) 1.8rem/1.05 var(--head); letter-spacing: var(--head-track); }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); margin-bottom: .2rem; }
.cat-head h2 { margin: 0; font: var(--head-w) 1.8rem/1.05 var(--head); letter-spacing: var(--head-track); }
.cat-head .count { color: var(--muted); font-size: .82rem; }
.cat.has-cover .cat-head { display: none; }

.items { list-style: none; margin: 0; padding: 0; }
.item[hidden] { display: none; }
.item-btn { display: flex; width: 100%; gap: 1rem; align-items: flex-start; padding: 1rem 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.item:last-child .item-btn { border-bottom: 0; }
.item-body { flex: 1; min-width: 0; }
.item-line { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; }
.item-name { font-weight: 600; line-height: 1.3; }
.item-price { flex: none; font: 400 1.12rem var(--font-display); color: var(--accent); white-space: nowrap; }
.item-desc { margin: .25rem 0 0; color: var(--muted); font-size: .88rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.chip { padding: .12rem .55rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .72rem; font-weight: 600; }
.thumb { flex: none; width: 5.4rem; height: 5.4rem; border-radius: var(--r); overflow: hidden; background: var(--surface-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-empty { display: grid; place-items: center; width: 100%; height: 100%; background: var(--accent-soft); color: var(--accent); font: 400 1.8rem var(--font-display); }
.empty { padding: 3rem 0; text-align: center; color: var(--muted); }

/* ── Alt bilgi ────────────────────────────────────────────────────────── */
.foot { display: grid; gap: .3rem; justify-items: center; text-align: center; padding-block: 2.4rem calc(2.6rem + env(safe-area-inset-bottom)); margin-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.foot p { margin: 0; }
.foot a { color: var(--text); }
.foot .credit { margin-top: 1.1rem; font-size: .74rem; opacity: .6; letter-spacing: .02em; }

/* ── Ürün detay sayfası (alttan açılır) ───────────────────────────────── */
.sheet { width: min(32rem, 100vw); max-height: 92vh; margin: auto auto 0; padding: 0; border: 0; border-radius: 22px 22px 0 0; background: var(--bg); color: var(--text); overflow: auto; box-shadow: var(--shadow); }
.sheet::backdrop { background: var(--scrim); backdrop-filter: blur(3px); }
.sheet[open] { animation: sheet-in .35s var(--ease); }
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }
.sheet-media { position: relative; aspect-ratio: 4/3; background: var(--surface-2); }
.sheet-media img { width: 100%; height: 100%; object-fit: cover; }
.sheet-close { position: absolute; top: .75rem; right: .75rem; background: color-mix(in srgb, var(--bg) 85%, transparent); }
.sheet-body { padding: 1.2rem 1.3rem 1.8rem; }
.sheet-body h3 { margin: 0; font: var(--head-w) 1.7rem/1.1 var(--head); letter-spacing: var(--head-track); }
.sheet-price { margin: .4rem 0 0; font: 400 1.5rem var(--font-display); color: var(--accent); }
.sheet-desc { margin: .8rem 0 0; color: var(--muted); }
.sheet-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }

/* ═════════ TEMA: KLASİK — liste satırları, serif başlıklar ═════════ */
[data-theme="classic"] .item-name { font-size: 1.02rem; }

/* ═════════ TEMA: MODERN — iki sütun kartlar ═════════ */
[data-theme="modern"] .items { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: .9rem; }
[data-theme="modern"] .item-btn { flex-direction: column; gap: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; height: 100%; box-shadow: var(--shadow); transition: transform .3s var(--ease); }
[data-theme="modern"] .item-btn:active { transform: scale(.985); }
[data-theme="modern"] .item:last-child .item-btn { border-bottom: 1px solid var(--line); }
[data-theme="modern"] .thumb { width: 100%; height: auto; aspect-ratio: 1; border-radius: 0; }
[data-theme="modern"] .item-body { padding: .8rem .9rem 1rem; width: 100%; }
[data-theme="modern"] .item-line { flex-direction: column; gap: .15rem; }
[data-theme="modern"] .item-name { font-size: .95rem; }
[data-theme="modern"] .item-price { font: 700 .98rem var(--font-body); }
[data-theme="modern"] .item-desc { font-size: .8rem; -webkit-line-clamp: 2; }
[data-theme="modern"] .cat-head h2 { font-size: 1.6rem; }
[data-theme="modern"] .cat-head { border-bottom: 0; padding-bottom: 0; }

/* ═════════ TEMA: KOYU ŞEF — büyük görselli kartlar ═════════ */
[data-theme="chef"] .items { display: grid; gap: 1rem; margin-top: 1rem; }
[data-theme="chef"] .item-btn { position: relative; flex-direction: column; gap: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
[data-theme="chef"] .item:last-child .item-btn { border-bottom: 1px solid var(--line); }
[data-theme="chef"] .thumb { width: 100%; height: auto; aspect-ratio: 16/9; border-radius: 0; }
[data-theme="chef"] .item-body { padding: 1rem 1.1rem 1.2rem; width: 100%; }
[data-theme="chef"] .item-name { font: 400 1.3rem/1.15 var(--font-display); }
[data-theme="chef"] .item-price { font-size: 1.25rem; }
[data-theme="chef"] .item-desc { -webkit-line-clamp: 3; }
[data-theme="chef"] .cat-head h2, [data-theme="chef"] .intro h1 { text-transform: none; }
[data-theme="chef"] .cats a:not(.is-current) { background: transparent; }
[data-theme="chef"] .cats a.is-current { box-shadow: 0 0 0 4px var(--accent-soft); }

/* ═════════ Geniş ekran (masaüstü / tablet yatay) ═════════ */
@media (min-width: 1024px) {
    .wrap { max-width: 78rem; padding-inline: 2.5rem; }
    .top { padding-block: 1.4rem .6rem; }
    .brand-logo { height: 2.8rem; }
    .brand-name { font-size: 1.25rem; }
    .intro { padding-block: 2.2rem 1.6rem; display: grid; grid-template-columns: 1fr minmax(18rem, 26rem); gap: 1rem 3rem; align-items: end; }
    .intro .tagline { font-size: 1.1rem; }
    .intro-tools { display: block; }
    .search { margin-top: 0; }

    .layout { display: grid; grid-template-columns: 15rem 1fr; gap: 3rem; align-items: start; }
    .cats { position: sticky; top: 1.2rem; z-index: 1; background: none; backdrop-filter: none; border: 0; margin-inline: 0; padding-inline: 0; }
    .cats-inner { flex-direction: column; overflow: visible; gap: .15rem; padding: 0; -webkit-mask-image: none; mask-image: none; }
    .cats a { padding: .6rem .9rem; border: 0; border-radius: var(--r); background: none; font-size: .95rem; display: flex; justify-content: space-between; }
    .cats a:hover { background: var(--surface-2); color: var(--text); }
    .cats a.is-current { background: var(--accent-soft); color: var(--accent); }
    .cats a .n { margin: 0; }
    .cat { padding-top: 0; padding-bottom: 2.4rem; scroll-margin-top: 1rem; }
    .cat-cover { height: 10rem; }
    .cat-head h2, .cat-cover h2 { font-size: 2.1rem; }

    [data-theme="classic"] .items { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
    [data-theme="modern"] .items { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
    [data-theme="chef"] .items { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
    .thumb { width: 6rem; height: 6rem; }
    [data-theme="modern"] .thumb { width: 100%; height: auto; aspect-ratio: 4/3; }
    [data-theme="chef"] .thumb { width: 100%; height: auto; }

    .sheet { margin: auto; border-radius: 22px; width: 36rem; }
}
@media (max-width: 1023px) { .intro-tools { display: block; } }

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

/* ── Etiket süzgeci: kategori şeridiyle birlikte yapışkan ─────────────── */
.cats-tags { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding: 0 1.1rem .65rem; scroll-padding-inline: 1.1rem; overscroll-behavior-x: contain; align-items: center; }
.cats-tags::-webkit-scrollbar { display: none; }
.cats-tags-label { flex: none; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-right: .2rem; }
.cats-tags button { flex: none; padding: .28rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: none; font: inherit; font-size: .8rem; font-weight: 500; color: var(--muted); cursor: pointer; transition: all .2s; }
.cats-tags button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
@media (min-width: 1024px) {
    .cats-tags { flex-wrap: wrap; overflow: visible; margin-top: 1.4rem; padding: 1.1rem .9rem 0; border-top: 1px solid var(--line); -webkit-mask-image: none; mask-image: none; }
    .cats-tags-label { width: 100%; margin-bottom: .2rem; }
}

/* ── Dil düğmesi (çoklu dil modülü) ── */
.lang-switch { display: inline-flex; align-items: center; gap: .1rem; padding: .18rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.lang-switch a { padding: .28rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; color: var(--muted); }
.lang-switch a:hover { color: var(--text); }
.lang-switch a.is-active { background: var(--accent); color: var(--on-accent); }
.tools { align-items: center; }

/* ── Siteye dön (isteğe bağlı: Menu:BackUrl) ── */
.back-link { display: inline-flex; align-items: center; padding: 0 .9rem; height: 2.4rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .8rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.back-link::before { content: "\2190"; margin-right: .4rem; }
.back-link:hover { color: var(--text); border-color: var(--accent); }

/* ═════════════════════════════════════════════════════════════════════════
   YENİ TEMALAR: bistro · grid · tiles · editorial · sans
   Aynı işaretleme, yalnızca CSS. Her tema kendi --head/--r değişkenlerini verir (vitrin ekranı da bunları kullanır).
   ═════════════════════════════════════════════════════════════════════════ */
[data-theme="bistro"]    { --head: var(--font-display); --head-w: 400; --r: 6px;  --r-lg: 10px; --head-track: .01em; }
[data-theme="grid"]      { --head: var(--font-body);    --head-w: 700; --r: 12px; --r-lg: 16px; --head-track: -.02em; }
[data-theme="tiles"]     { --head: var(--font-display); --head-w: 400; --r: 14px; --r-lg: 22px; --head-track: 0; }
[data-theme="editorial"] { --head: var(--font-display); --head-w: 400; --r: 2px;  --r-lg: 4px;  --head-track: -.02em; }
[data-theme="sans"]      { --font-body: "Poppins", "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; --head: var(--font-body); --head-w: 700; --r: 16px; --r-lg: 22px; --head-track: -.02em; }

/* ── BISTRO: fotoğrafsız, baskı menü görünümü (noktalı fiyat çizgisi) ─────── */
@media (max-width: 1023px) { [data-theme="bistro"] .intro { text-align: center; } [data-theme="bistro"] .intro .tagline { margin-inline: auto; } }
[data-theme="bistro"] .intro h1 { font-size: clamp(2.1rem, 8vw, 3rem); }
[data-theme="bistro"] .intro .tagline { font-style: italic; }
[data-theme="bistro"] .cat { padding-top: 2.2rem; }
/* Kapaklı kategoriler de yazı başlığına dönüşür (fotoğraf yok); iki yanda ince çizgi */
[data-theme="bistro"] .cat-cover { display: flex; align-items: center; justify-content: center; gap: 1rem; height: auto; margin-bottom: .2rem; border-radius: 0; overflow: visible; background: none; }
[data-theme="bistro"] .cat-cover img { display: none; }
[data-theme="bistro"] .cat-cover h2 { position: static; color: var(--text); }
[data-theme="bistro"] .cat-head { align-items: center; justify-content: center; gap: 1rem; border: 0; padding-bottom: .5rem; }
[data-theme="bistro"] .cat-head::before, [data-theme="bistro"] .cat-head::after,
[data-theme="bistro"] .cat-cover::before, [data-theme="bistro"] .cat-cover::after { content: ""; position: static; inset: auto; flex: 1; height: 1px; background: var(--line); }
[data-theme="bistro"] .cat-head h2, [data-theme="bistro"] .cat-cover h2 { font-size: 1.15rem; letter-spacing: .16em; text-transform: uppercase; text-align: center; }
[data-theme="bistro"] .thumb { display: none; }
[data-theme="bistro"] .item-btn { padding: .8rem 0; border-bottom: 0; }
[data-theme="bistro"] .item-line { gap: .5rem; }
[data-theme="bistro"] .item-name { order: 0; flex: 0 1 auto; font-size: 1.02rem; }
[data-theme="bistro"] .item-line::after { content: ""; order: 1; flex: 1 1 1rem; min-width: 1rem; border-bottom: 2px dotted color-mix(in srgb, var(--muted) 50%, transparent); transform: translateY(-.3em); }
[data-theme="bistro"] .item-price { order: 2; font: 600 1.02rem var(--font-body); color: var(--text); }
[data-theme="bistro"] .item-desc { font-style: italic; font-size: .86rem; max-width: 92%; }
[data-theme="bistro"] .chip { background: none; border: 1px solid var(--line); color: var(--muted); }

/* ── GRID: kompakt, yoğun kartlar (fast food, tatlıcı, uzun menüler) ───────── */
[data-theme="grid"] .items { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .8rem; }
[data-theme="grid"] .item-btn { flex-direction: column; gap: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; height: 100%; transition: transform .25s var(--ease), border-color .2s; }
[data-theme="grid"] .item-btn:active { transform: scale(.985); }
[data-theme="grid"] .item:last-child .item-btn { border-bottom: 1px solid var(--line); }
[data-theme="grid"] .thumb { width: 100%; height: auto; aspect-ratio: 4/3; border-radius: 0; }
[data-theme="grid"] .item-body { width: 100%; padding: .55rem .7rem .75rem; }
[data-theme="grid"] .item-line { flex-direction: column; gap: .12rem; }
[data-theme="grid"] .item-name { font-size: .88rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
[data-theme="grid"] .item-price { font: 700 .95rem var(--font-body); }
[data-theme="grid"] .item-desc { font-size: .76rem; -webkit-line-clamp: 1; margin-top: .15rem; }
[data-theme="grid"] .item-tags { display: none; }
[data-theme="grid"] .cat-head { border-bottom: 0; padding-bottom: 0; }
[data-theme="grid"] .cat-head h2, [data-theme="grid"] .cat-cover h2 { font-size: 1.5rem; }
[data-theme="grid"] .cat-cover { height: 7rem; }
@media (min-width: 600px) and (max-width: 1023px) { [data-theme="grid"] .items { grid-template-columns: repeat(3, 1fr); } }

/* ── TILES: önce kategori kartları, sonra ürünler ─────────────────────────── */
.cat-tiles { display: none; }
[data-theme="tiles"] .cat-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; padding-top: 1.2rem; }
[data-theme="tiles"] #board.is-filtering .cat-tiles { display: none; }
.cat-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 4/3; padding: .85rem .95rem; border-radius: var(--r-lg); overflow: hidden; isolation: isolate; text-decoration: none; color: #fff; background: linear-gradient(135deg, var(--accent-soft), var(--surface-2)); box-shadow: var(--shadow); }
.cat-tile:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 2/1; }
.cat-tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat-tile:hover img { transform: scale(1.04); }
.cat-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, hsl(var(--h) 40% 6% / .78), transparent 62%); }
.cat-tile-letter { position: absolute; top: .5rem; right: .9rem; z-index: -1; font: 400 4.2rem/1 var(--font-display); color: var(--accent); opacity: .35; }
.cat-tile-name { font: var(--head-w) 1.3rem/1.05 var(--head); letter-spacing: var(--head-track); text-shadow: 0 1px 12px #0006; }
.cat-tile-count { margin-top: .2rem; font-size: .74rem; opacity: .85; }
.cat-tile:not(:has(img)) { color: var(--text); }
.cat-tile:not(:has(img))::after { display: none; }
.cat-tile:not(:has(img)) .cat-tile-name { text-shadow: none; }
[data-theme="tiles"] .cat { padding-top: 2.4rem; }
[data-theme="tiles"] .cat-head h2, [data-theme="tiles"] .cat-cover h2 { font-size: 1.9rem; }

/* ── EDITORIAL: dergi sayfası; numaralı bölümler, büyük başlıklar ─────────── */
[data-theme="editorial"] #board { counter-reset: cat; }
[data-theme="editorial"] .cat { counter-increment: cat; padding-top: 3rem; }
[data-theme="editorial"] .intro h1 { font-size: clamp(2.7rem, 12vw, 4.4rem); line-height: .95; }
[data-theme="editorial"] .intro .tagline { font-size: 1.05rem; font-style: italic; }
[data-theme="editorial"] .cat-cover { height: 11rem; border-radius: 0; margin-bottom: 1.2rem; }
[data-theme="editorial"] .cat-head { display: block; border-bottom: 1px solid var(--text); padding-bottom: .7rem; margin-bottom: .4rem; }
[data-theme="editorial"] .cat-head h2, [data-theme="editorial"] .cat-cover h2 { font-size: clamp(2.1rem, 9vw, 3.1rem); line-height: .95; }
[data-theme="editorial"] .cat-head h2::before, [data-theme="editorial"] .cat-cover h2::before { content: counter(cat, decimal-leading-zero); display: block; margin-bottom: .55rem; font: 600 .7rem/1 var(--font-body); letter-spacing: .22em; color: var(--accent); }
[data-theme="editorial"] .cat-cover h2::before { color: #fff; opacity: .85; }
[data-theme="editorial"] .item-btn { flex-direction: row-reverse; gap: 1.1rem; padding: 1.35rem 0; }
[data-theme="editorial"] .thumb { width: 6.2rem; height: 7.6rem; border-radius: var(--r); }
[data-theme="editorial"] .item-line { flex-direction: column; gap: .3rem; }
[data-theme="editorial"] .item-name { font: 400 1.32rem/1.12 var(--font-display); letter-spacing: -.01em; }
[data-theme="editorial"] .item-price { order: 2; font: 600 .86rem var(--font-body); letter-spacing: .08em; color: var(--accent); }
[data-theme="editorial"] .item-desc { margin-top: .5rem; font-size: .9rem; -webkit-line-clamp: 3; }
[data-theme="editorial"] .chip { padding: 0; background: none; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
[data-theme="editorial"] .item-tags { gap: .8rem; }
[data-theme="editorial"] .cats a { border-radius: 2px; }

/* ── SANS ("Canlı", Poppins): uygulama gibi yuvarlak kartlar ───────────────── */
[data-theme="sans"] body { font-size: .94rem; }
[data-theme="sans"] .intro h1 { font-size: clamp(2rem, 8.5vw, 3rem); line-height: 1.05; font-weight: 700; }
[data-theme="sans"] .items { display: grid; gap: .7rem; margin-top: .9rem; }
[data-theme="sans"] .item-btn { align-items: center; gap: .85rem; padding: .7rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); transition: transform .25s var(--ease); }
[data-theme="sans"] .item-btn:active { transform: scale(.985); }
[data-theme="sans"] .item:last-child .item-btn { border-bottom: 1px solid var(--line); }
[data-theme="sans"] .thumb { width: 5.2rem; height: 5.2rem; border-radius: 16px; }
[data-theme="sans"] .thumb-empty, [data-theme="sans"] .sheet-price { font-family: var(--font-body); font-weight: 600; }
[data-theme="sans"] .item-line { align-items: flex-start; gap: .6rem; }
[data-theme="sans"] .item-name { font-size: .95rem; font-weight: 600; }
[data-theme="sans"] .item-price { font: 600 .8rem var(--font-body); padding: .22rem .65rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
[data-theme="sans"] .item-desc { font-size: .8rem; }
[data-theme="sans"] .cat-head { border-bottom: 0; padding-bottom: 0; }
[data-theme="sans"] .cat-head h2 { font-size: 1.4rem; }
[data-theme="sans"] .cat-head h2::after { content: ""; display: inline-block; width: .42rem; height: .42rem; margin-left: .45rem; border-radius: 50%; background: var(--accent); vertical-align: .05em; }
[data-theme="sans"] .cat-cover h2 { font-size: 1.5rem; }
[data-theme="sans"] .cats a { font-weight: 500; }

/* ── Yeni temalar: geniş ekran ────────────────────────────────────────────── */
@media (min-width: 1024px) {
    [data-theme="bistro"] .items { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3.5rem; }
    [data-theme="grid"] .items { grid-template-columns: repeat(4, 1fr); gap: .8rem; }
    [data-theme="tiles"] .cat-tiles { grid-template-columns: repeat(3, 1fr); }
    [data-theme="tiles"] .cat-tile:last-child:nth-child(odd) { grid-column: auto; aspect-ratio: 4/3; }
    [data-theme="tiles"] .items { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
    [data-theme="editorial"] .items { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; }
    [data-theme="editorial"] .cat-cover { height: 13rem; }
    [data-theme="sans"] .items { grid-template-columns: 1fr 1fr; gap: .9rem; }
}

/* ── Boy / porsiyon seçenekleri ve rozetler (Faz C) ─────────────────── */
.item-badges, .sheet-badges { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 .3rem; }
.sheet-badges { margin: .5rem 0 0; }
.badge { display: inline-flex; align-items: center; padding: .1rem .5rem; border-radius: 999px; font: 700 .62rem/1.5 var(--font-body); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.badge.b-new { background: var(--accent); color: var(--bg); }
.badge.b-featured { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent); }
.badge.b-featured::before { content: "★"; margin-right: .3em; font-size: .9em; }
.badge.b-soldout { background: color-mix(in srgb, var(--text) 14%, transparent); color: var(--text); }
.item-opts { display: flex; flex-wrap: wrap; gap: .3rem .4rem; margin-top: .45rem; }
.item-opts .opt { display: inline-flex; align-items: baseline; gap: .35rem; padding: .1rem .55rem; border: 1px solid var(--line); border-radius: 999px; font-size: .76rem; color: var(--muted); white-space: nowrap; }
.item-opts .opt-p { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.item.is-soldout .thumb, .item.is-soldout .item-line, .item.is-soldout .item-desc, .item.is-soldout .item-opts, .item.is-soldout .item-tags, .item.is-soldout .item-info { opacity: .5; }
.item.is-soldout .thumb img { filter: grayscale(1); }
.item.is-soldout .item-price, .item.is-soldout .opt-p { text-decoration: line-through; }
.sheet-opts { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .1rem; }
.sheet-opts li { display: flex; align-items: baseline; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.sheet-opts li::after { content: none; }
.sheet-opts span { flex: 1; font-weight: 500; }
.sheet-opts b { font: 400 1.2rem var(--font-display); color: var(--accent); white-space: nowrap; }
[data-theme="sans"] .sheet-opts b { font-family: var(--font-body); font-weight: 600; font-size: 1rem; }
/* Kompakt ızgarada kart küçük: başlıkta fiyat aralığı yeter, ayrıntı dokununca açılan pencerede */
[data-theme="grid"] .item-opts { display: none; }
[data-theme="modern"] .item-opts .opt, [data-theme="chef"] .item-opts .opt { font-size: .72rem; }
[data-theme="bistro"] .item-opts .opt { border: 0; padding: 0; font-style: italic; }
[data-theme="bistro"] .item-opts .opt:not(:last-child)::after { content: "·"; margin-left: .2rem; color: var(--muted); }
[data-theme="editorial"] .item-opts .opt { border: 0; padding: 0; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; }
[data-theme="editorial"] .item-opts .opt:not(:last-child)::after { content: "/"; margin-left: .35rem; opacity: .5; }
[data-theme="grid"] .badge { font-size: .56rem; padding: 0 .4rem; }

/* ── Alerjen, içindekiler ve besin değerleri ────────────────────────── */
/* Kart içeriği: etiket + bilgi satırı her zaman kartın altında, kartlar aynı yükseklikte ve çizgiler hizalı */
.items > .item { display: flex; }
.items > .item[hidden] { display: none; }
.items > .item > .item-btn { flex: 1 1 auto; min-width: 0; }
.item-body { display: flex; flex-direction: column; }
.item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; margin-top: 0; padding-top: .5rem; min-height: 1.9rem; box-sizing: content-box; }
.item-meta .item-tags { margin-top: 0; }
.item-meta .item-info { margin-top: 0; }
.item-info { display: block; font-size: .76rem; color: var(--muted); line-height: 1.4; }
.item-info .dot { margin: 0 .25em; opacity: .6; }
.item-info b { font-weight: 700; color: var(--text); opacity: .8; }
.item-info .kcal { white-space: nowrap; }
.sheet-info { margin-top: 1rem; display: grid; gap: .85rem; }
.sheet-info[hidden], .sheet-info > [hidden] { display: none; }
.sheet-info h4 { margin: 0 0 .35rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.sheet-info p { margin: 0; color: var(--text); font-size: .92rem; }
.allergen-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.allergen-chips .achip { padding: .15rem .6rem; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); font-size: .76rem; font-weight: 700; }
.allergen-chips .achip.warn { border-color: var(--line); color: var(--text); background: var(--line); background: color-mix(in srgb, var(--text) 7%, transparent); }
.nutri-table { display: grid; gap: .5rem; }
.nutri-row { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: .5rem; }
.nutri-row div { min-width: 0; padding: .55rem .3rem .5rem; border: 1px solid var(--line); border-radius: 10px; text-align: center; }
.nutri-row b { display: block; font-size: 1.02rem; line-height: 1.2; white-space: nowrap; }
.nutri-row span { display: block; margin-top: .15rem; font-size: .62rem; line-height: 1.2; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; overflow-wrap: anywhere; }
.allergen-note { margin: 1.2rem 0 0; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; font-size: .84rem; color: var(--muted); }

/* Kart temalarında gövde yüksekliği içeriğe göre; satır temalarında görsel yüksekliği kadar */
/* Kenarlıklı kart temalarında rozet/kcal satırı kartın altına oturur; liste temalarında metnin hemen altında akar (ortada boşluk kalmaz) */
[data-theme="modern"] .item-meta, [data-theme="grid"] .item-meta, [data-theme="chef"] .item-meta { margin-top: auto; }
[data-theme="modern"] .item-body, [data-theme="grid"] .item-body, [data-theme="chef"] .item-body { flex: 1; }

/* Kart temalarında boyut/fiyat seçenekleri kartta gösterilmez (fiyat aralığı zaten başlıkta, ayrıntı detay panelinde) → kartlar eşit boy kalır */
[data-theme="modern"] .item-opts, [data-theme="grid"] .item-opts, [data-theme="chef"] .item-opts { display: none; }

/* Alerjen durumu satırı (detay paneli): "Alerjen içermez" / "bilgi için danışın" */
.al-state { margin: 0; font-size: .86rem; color: var(--muted); }
.al-state[hidden] { display: none; }
.al-state.free { display: inline-block; justify-self: start; padding: .2rem .7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-weight: 700; font-size: .78rem; }
