/* ===================== Berweuli dergi menü ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #3b2a1a;
  --ink-soft: #5d4733;
  --brown: #6e4b2a;
  --gold: #b8913a;
  --gold-soft: rgba(184,145,58,.45);
  --red: #b3321f;
  --green: #2e6b3e;
  --paper: #f5efe3;
  --bar-h: 56px;
  --pager-h: 52px;
  --s: 1;               /* sayfa ölçeği: JS ayarlar */
}

html, body { height: 100%; }
/* iOS'un yazıları kendiliğinden büyütmesini kapat (ölçülen ile görünen yazı aynı olsun) */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: radial-gradient(ellipse at 30% 0%, #3a160d 0%, #1c1008 55%, #0d1a10 100%) fixed;
  color: #f3e9d8;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
body.scroll-mode { overflow-y: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- üst bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; height: calc(var(--bar-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
  display: flex; align-items: center; gap: 12px; z-index: 50;
  background: rgba(20,11,5,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(184,145,58,.22);
}
.tb-home img { height: 36px; display: block; border-radius: 6px; }
.tb-cat { flex: 1; min-width: 0; display: flex; justify-content: center; }
.tb-cat select {
  width: 100%; max-width: 340px; appearance: none; -webkit-appearance: none;
  font: 500 14px 'DM Sans', sans-serif; color: #f3e9d8;
  background: rgba(255,255,255,.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a84c' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid rgba(184,145,58,.35); border-radius: 999px; padding: 9px 34px 9px 16px; cursor: pointer;
  text-overflow: ellipsis;
}
[dir="rtl"] .tb-cat select { background-position: left 12px center; padding: 9px 16px 9px 34px; }
.tb-cat select option { color: #222; }
.tb-right { display: flex; align-items: center; gap: 8px; }
.tb-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(184,145,58,.35);
  background: rgba(255,255,255,.06); color: #e9d9b8; cursor: pointer; display: grid; place-items: center;
}
.tb-btn svg { width: 18px; height: 18px; }
/* açılır dil seçici */
.tb-lang { position: relative; }
.tb-lang-btn {
  display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(184,145,58,.45); background: rgba(184,145,58,.12); color: #f1dfb6;
  font: 600 13px 'DM Sans', sans-serif; letter-spacing: .5px;
}
.tb-lang-btn .globe { width: 17px; height: 17px; color: #c9a84c; }
.tb-lang-btn .chev { width: 11px; height: 8px; transition: transform .2s; color: #c9a84c; }
.tb-lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.tb-lang-list {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 190px; max-height: min(70vh, 420px); overflow-y: auto;
  list-style: none; padding: 6px; border-radius: 14px; z-index: 80;
  background: rgba(28,16,8,.97); border: 1px solid rgba(184,145,58,.35);
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
  transform-origin: top right; animation: langIn .16s ease-out;
}
[dir="rtl"] .tb-lang-list { right: auto; left: 0; transform-origin: top left; }
.tb-lang-list[hidden] { display: none; }
@keyframes langIn { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
.tb-lang-list a {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 9px;
  color: #f3e9d8; text-decoration: none; font: 500 14px 'DM Sans', sans-serif;
}
.tb-lang-list a:hover, .tb-lang-list a:focus-visible { background: rgba(184,145,58,.16); outline: none; }
.tb-lang-list a.on { background: rgba(184,145,58,.22); }
.tb-lang-list .fl { font-size: 18px; width: 24px; text-align: center; }
.tb-lang-list .nm { flex: 1; }
.tb-lang-list .ck { color: #c9a84c; font-weight: 700; }
@media (max-width: 560px) {
  :root { --bar-h: 52px; --pager-h: 48px; }
  .tb-home img { height: 30px; }
  .tb-lang-btn { padding: 0 10px; gap: 5px; }
  .tb-lang-list { position: fixed; top: calc(var(--bar-h) + env(safe-area-inset-top) + 6px); right: 10px; left: auto; }
  [dir="rtl"] .tb-lang-list { right: auto; left: 10px; }
  .tb-cat select { font-size: 13px; padding: 8px 30px 8px 12px; }
}
@media (max-width: 360px) { .tb-home { display: none; } }

/* ---------- sahne ---------- */
.stage {
  position: fixed; left: 0; right: 0;
  top: calc(var(--bar-h) + env(safe-area-inset-top));
  bottom: calc(var(--pager-h) + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
  /* yatay kaydırmayı tarayıcı değil menü yakalasın; dikey kaydırma ve yakınlaştırma serbest */
  touch-action: pan-y pinch-zoom;
}
body.scroll-mode .stage { touch-action: auto; }
/* sayfadaki resimler sürüklenmesin / seçilmesin (kaydırma hareketini bozuyordu) */
.book, .bflip { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.book img, .bflip img, .scroll-book img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }
.book { margin: 0 auto; }
/* tek sayfa modunda geri / uzak sayfaya geçiş animasyonu */
.book.anim-back { animation: bwBack .38s cubic-bezier(.2,.8,.2,1); }
.book.anim-fwd { animation: bwFwd .38s cubic-bezier(.2,.8,.2,1); }
@keyframes bwBack { from { transform: translateX(-34px) rotateY(8deg); opacity: .25; } to { transform: none; opacity: 1; } }
@keyframes bwFwd { from { transform: translateX(34px) rotateY(-8deg); opacity: .25; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .book.anim-back, .book.anim-fwd { animation: none; } }

/* tek sayfa modunda geri sayfa çevirme */
.bflip { position: absolute; z-index: 5; perspective: 1800px; pointer-events: none; }
.bflip-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.5), rgba(0,0,0,.12) 70%, rgba(0,0,0,0));
  animation: bwShade .65s ease-out both;
}
.bflip-page {
  position: absolute; inset: 0; overflow: hidden; background: var(--paper);
  transform-origin: 0 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 0 28px rgba(0,0,0,.35);
  animation: bwTurnBack .65s cubic-bezier(.3,.6,.25,1) both;
}
.bflip-page > .pg { transform: scale(var(--s)); transform-origin: 0 0; }
.bflip-light {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to left, rgba(0,0,0,.32), rgba(0,0,0,0) 30%, rgba(255,255,255,.18) 55%, rgba(0,0,0,0) 80%);
  animation: bwLight .65s ease-out both;
}
@keyframes bwTurnBack { from { transform: rotateY(-100deg); } to { transform: rotateY(0deg); } }
@keyframes bwShade { from { opacity: 0; } 35% { opacity: .9; } to { opacity: 0; } }
@keyframes bwLight { from { opacity: 1; } to { opacity: 0; } }
.book .page { background: var(--paper); overflow: hidden; }
.book .page > .pg { transform: scale(var(--s)); transform-origin: 0 0; }

/* kaydırmalı görünüm */
body.scroll-mode .stage { position: static; display: block; padding: calc(var(--bar-h) + env(safe-area-inset-top) + 12px) 8px calc(var(--pager-h) + 24px); }
.scroll-book { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.scroll-book .page {
  width: calc(var(--pw, 600px) * var(--s)); height: calc(var(--ph, 848px) * var(--s)); overflow: hidden; position: relative;
  border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.45); background: var(--paper);
}
.scroll-book .page > .pg { transform: scale(var(--s)); transform-origin: 0 0; }
body.scroll-mode .pager .pg-btn { visibility: hidden; }

/* ---------- alt sayfa çubuğu ---------- */
.pager {
  position: fixed; inset: auto 0 0 0; height: calc(var(--pager-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex; align-items: center; justify-content: center; gap: 18px; z-index: 50;
  background: rgba(20,11,5,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(184,145,58,.22);
}
.pg-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(184,145,58,.45);
  background: rgba(184,145,58,.12); color: #f1dfb6; font-size: 24px; line-height: 1; cursor: pointer;
}
.pg-btn:disabled { opacity: .3; cursor: default; }
.pg-info { direction: ltr; unicode-bidi: isolate; min-width: 80px; text-align: center; font: 500 13px 'DM Sans', sans-serif; color: #d8c49c; letter-spacing: .5px; }

/* ölçüm alanı (görünmez) */
.measure { position: absolute; left: -9999px; top: 0; width: var(--pw, 600px); visibility: hidden; }

/* ===================== SAYFA TASARIMI (600 × 848) ===================== */
.pg {
  position: relative; width: var(--pw, 600px); height: var(--ph, 848px); overflow: hidden;
  font-family: 'EB Garamond', Georgia, serif; color: var(--ink);
  display: flex; flex-direction: column;
}
.pg-paper {
  background:
    radial-gradient(ellipse at 15% 10%, rgba(255,255,255,.65), transparent 55%),
    radial-gradient(ellipse at 90% 95%, rgba(184,145,58,.16), transparent 50%),
    linear-gradient(160deg, #f8f2e6 0%, #f1e8d6 100%);
}
.pg-paper::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
}
.pg-paper::after {
  content: ''; position: absolute; inset: 16px; border: 1px solid var(--gold-soft); pointer-events: none;
  outline: 1px solid rgba(184,145,58,.18); outline-offset: 4px;
}

/* kategoriye özel arka plan görseli: kâğıdın üstünde, yazıların altında */
.pg-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: center / cover no-repeat;
}
.pg-paper > .pg-bg + * { position: relative; }
.pg-head { padding: 40px 48px 6px; text-align: center; position: relative; z-index: 1; }
.pg-head .kicker {
  font: 600 13px 'Cormorant Garamond', serif; letter-spacing: 4px; text-transform: uppercase; color: var(--gold);
}
.pg-head h2 {
  font: 700 38px/1.05 'Cormorant Garamond', serif; color: var(--brown); text-transform: uppercase; letter-spacing: 2px;
}
.pg-head .orn { display: flex; align-items: center; gap: 12px; justify-content: center; margin-top: 8px; color: var(--gold); font-size: 11px; letter-spacing: 4px; }
.pg-head .orn::before, .pg-head .orn::after { content: ''; height: 1px; width: 90px; background: linear-gradient(90deg, transparent, var(--gold)); }
.pg-head .orn::after { transform: scaleX(-1); }
.pg-head.small { padding-top: 34px; }
.pg-head.small .kicker { font-size: 12px; }

.pg-body { flex: 1; min-height: 0; padding: 14px 48px 0; position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.pg-note { font: italic 400 14px/1.35 'EB Garamond', serif; color: var(--red); text-align: center; padding: 0 10px; }

.pg-foot {
  height: 58px; padding: 0 44px 26px; display: flex; align-items: flex-end; justify-content: center; position: relative; z-index: 1;
}
.pg-foot .slogan {
  font: 700 12px 'Cormorant Garamond', serif; letter-spacing: 2px; text-transform: uppercase; color: var(--brown);
  text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px;
}
.pg-foot .num { position: absolute; right: 44px; bottom: 24px; font: 500 20px 'Cormorant Garamond', serif; color: var(--brown); }
.pg.even .pg-foot .num { right: auto; left: 44px; }

/* ---------- ürün: detaylı ---------- */
.it { position: relative; }
.it-row { display: flex; gap: 20px; align-items: center; }
.it.flip .it-row { flex-direction: row-reverse; }
.it-img {
  flex: 0 0 170px; height: 170px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 10px 22px rgba(60,35,10,.28), 0 0 0 4px #fff, 0 0 0 5px var(--gold-soft);
}
.it-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.it-txt { flex: 1; min-width: 0; }
.it-name {
  font: 700 23px/1.12 'Cormorant Garamond', serif; color: var(--brown); text-transform: uppercase; letter-spacing: .6px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px;
}
.it-desc { font: 400 15.5px/1.42 'EB Garamond', serif; color: var(--ink-soft); margin-top: 5px; text-align: justify; hyphens: auto; }
.it-note { font: italic 400 14px/1.3 'EB Garamond', serif; color: var(--red); margin-top: 4px; }
.it-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 6px; }
.it-time { font: 500 14px 'EB Garamond', serif; color: var(--ink-soft); white-space: nowrap; }
.it-time::before { content: '⏱'; margin-right: 5px; font-size: 12px; opacity: .7; }
.it-price { font: 700 26px/1 'Cormorant Garamond', serif; color: var(--brown); white-space: nowrap; margin-left: auto; }
.it + .it::before {
  content: ''; position: absolute; top: -9px; left: 25%; right: 25%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}

/* ---------- ürün: kompakt (içecek, sos, meze) ---------- */
.it.compact + .it.compact::before { display: none; }
.pg-body.has-compact { gap: 11px; }
.c-row { display: flex; align-items: baseline; gap: 8px; }
.c-row .it-name { font-size: 19px; flex: 0 1 auto; }
.c-row .dots { flex: 1; min-width: 20px; border-bottom: 2px dotted rgba(110,75,42,.45); transform: translateY(-5px); }
.c-row .it-price { font-size: 22px; margin-left: 0; }
.it.compact .it-desc { font-size: 14.5px; margin-top: 1px; text-align: start; font-style: italic; }
.it.compact .it-time { font-size: 13px; }

/* ---------- rozetler ---------- */
.bdg { display: inline-flex; gap: 6px; align-items: center; }
/* diyet rozetleri: emojili yuvarlak çip (glütensiz / vejetaryen / vegan) */
.b-chip {
  position: relative; width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto;
  display: inline-grid; place-items: center; letter-spacing: 0; text-transform: none;
  border: 2px solid currentColor; background: #fffaf0; box-shadow: 0 1px 3px rgba(60,35,10,.18);
}
.b-chip i { font-style: normal; font-size: 16px; line-height: 1; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
.b-gf { color: #b8913a; }
.b-gf::after {            /* üstü çizili başak = glütensiz */
  content: ''; position: absolute; left: 3px; right: 3px; top: 50%; height: 2px; margin-top: -1px;
  background: #b3321f; transform: rotate(-45deg); border-radius: 2px;
}
.b-veg { color: #4f8a2b; background: #f3f9ec; }
.b-vegan { color: #2e6b3e; background: #ecf6ef; }
.b-sig { height: 26px; width: auto; display: block; }
.b-trabzon {
  font: 700 9px/1 'DM Sans', sans-serif; color: #fff; background: var(--red); letter-spacing: .8px;
  padding: 5px 7px; border-radius: 3px; transform: rotate(-4deg); text-transform: uppercase;
}
.c-row .b-chip { width: 26px; height: 26px; }
.c-row .b-chip i { font-size: 14px; }

/* kalori */
.it-kcal { font: 500 14px 'EB Garamond', serif; color: var(--ink-soft); white-space: nowrap; }
.it-meta .it-time + .it-kcal { margin-left: 14px; }
[dir="rtl"] .it-meta .it-time + .it-kcal { margin-left: 0; margin-right: 14px; }
.it.compact .it-kcal { font-size: 13px; }

/* ---------- kapaklar ---------- */
.pg-cover { background: #1c1008; }
.pg-cover img.full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pg-cover img.cover-fill {
  position: absolute; inset: -6%; width: 112%; height: 112%; object-fit: cover;
  filter: blur(18px) brightness(.55) saturate(1.1);
}
.pg-gen {
  background: radial-gradient(ellipse at 30% 20%, #4a1a0e 0%, #1c1008 60%, #10200f 100%);
  color: #f3e3c3; align-items: center; justify-content: center; text-align: center; padding: 60px;
}
.pg-gen::after { content: ''; position: absolute; inset: 22px; border: 1px solid rgba(201,168,76,.45); }
.pg-gen .gen-k { font: 600 14px 'Cormorant Garamond', serif; letter-spacing: 6px; text-transform: uppercase; color: #c9a84c; }
.pg-gen h2 { font: 700 66px/1 'Cormorant Garamond', serif; text-transform: uppercase; letter-spacing: 3px; margin: 18px 0; }
.pg-gen .gen-logo { width: 220px; margin-bottom: 24px; border-radius: 12px; }
.pg-gen .gen-sub { font: italic 500 22px 'Cormorant Garamond', serif; color: #e5d2aa; }

/* ---------- içindekiler: kutucuklar ---------- */
.toc-grid { display: grid; margin-top: 2px; }
.toc-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 6px 6px; text-decoration: none; color: var(--brown); text-align: center; min-width: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.75), rgba(244,234,214,.7));
  border: 1px solid rgba(184,145,58,.35); border-radius: 16px;
  box-shadow: 0 2px 0 rgba(184,145,58,.18), 0 6px 14px rgba(60,35,10,.08);
  transition: transform .18s, box-shadow .18s, background .18s;
}
.toc-tile:hover, .toc-tile:focus-visible { transform: translateY(-2px); background: #fff8ea; box-shadow: 0 10px 20px rgba(60,35,10,.16); outline: none; }
.toc-tile:active { transform: scale(.97); }
.tt-img {
  flex: 0 0 auto; border-radius: 50%; background: #e9dcc2 center 58% / cover no-repeat;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(184,145,58,.55), 0 6px 12px rgba(60,35,10,.22);
}
.tt-ini {
  display: grid; place-items: center; color: #fff; font-family: 'Cormorant Garamond', serif; font-weight: 700;
  background: radial-gradient(circle at 30% 25%, #c0392b, #6e1a0e);
}
.tt-name {
  font: 700 15.5px/1.1 'Cormorant Garamond', 'Noto Naskh Arabic', serif; text-transform: uppercase; letter-spacing: .6px;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; max-width: 100%;
}
.tt-name.tt-long { font-size: 12.5px; letter-spacing: .2px; }
.tt-pn {
  position: absolute; top: 6px; right: 8px; font: 700 13px 'Cormorant Garamond', serif; color: var(--gold);
  direction: ltr; unicode-bidi: isolate;
}
[dir="rtl"] .tt-pn { right: auto; left: 8px; }
.legend { margin-top: auto; margin-bottom: 4px; padding-top: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font: 400 13.5px 'EB Garamond', serif; color: var(--ink-soft); }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.legend .b-chip { width: 24px; height: 24px; }
.legend .b-chip i { font-size: 13px; }
.legend .b-sig { height: 20px; }

/* RTL */
/* Sağdan sola diller (Arapça, Farsça): kitabın mekaniği (çevirme, oklar, sayfa numarası
   yeri) her dilde aynı kalır; yalnızca sayfa içindeki metin sağdan sola akar. */
.stage, .pager, .book, .scroll-book, .bflip { direction: ltr; }
[dir="rtl"] .pg { direction: rtl; }
[dir="rtl"] .pg, [dir="rtl"] .it-desc, [dir="rtl"] .it-note, [dir="rtl"] .pg-note, [dir="rtl"] .legend {
  font-family: 'EB Garamond', 'Noto Naskh Arabic', serif;
}
[dir="rtl"] .pg-head h2, [dir="rtl"] .pg-head .kicker, [dir="rtl"] .it-name, [dir="rtl"] .toc-tile,
[dir="rtl"] .pg-foot .slogan, [dir="rtl"] .pg-gen h2, [dir="rtl"] .pg-gen .gen-k, [dir="rtl"] .pg-gen .gen-sub {
  font-family: 'Cormorant Garamond', 'Noto Naskh Arabic', serif;
}
/* harf aralığı Arapça harflerin birbirine bağlanmasını bozar */
[dir="rtl"] .pg * { letter-spacing: 0 !important; }
[dir="rtl"] .it-desc { text-align: right; line-height: 1.6; }
[dir="rtl"] .it-name { line-height: 1.35; }
[dir="rtl"] .it-time::before { margin: 0 0 0 5px; }
[dir="rtl"] .it-time { direction: rtl; unicode-bidi: isolate; }
[dir="rtl"] .it-price, [dir="rtl"] .pg-foot .num { direction: ltr; unicode-bidi: isolate; }

.noscript { padding: 80px 20px; max-width: 700px; margin: 0 auto; }
.noscript h2 { margin: 20px 0 8px; color: #e4c98a; }
.noscript li { margin: 0 0 10px 18px; }

/* yükleniyor */
.loading { color: #d8c49c; font: 500 14px 'DM Sans', sans-serif; letter-spacing: 1px; }

/* ===================== öne çıkan etiket şeridi ===================== */
.it-tag {
  display: inline-flex; align-items: center; gap: 5px; margin: 0 0 6px;
  font: 700 10.5px/1 'DM Sans', sans-serif; letter-spacing: 1.3px; text-transform: uppercase; color: #fff;
  padding: 5px 12px 5px 9px; border-radius: 2px 12px 12px 2px;
  box-shadow: 0 3px 8px rgba(60,30,10,.22);
}
.it-tag::before { content: '★'; font-size: 10px; }
.it-tag.t-chef  { background: linear-gradient(135deg, #8b1a0e, #c0392b); }
.it-tag.t-new   { background: linear-gradient(135deg, #1a3d25, #2e6b3e); }
.it-tag.t-daily { background: linear-gradient(135deg, #8a6a22, #c9a84c); }
.it.compact.has-tag .it-tag { margin-bottom: 4px; }
[dir="rtl"] .it-tag { border-radius: 12px 2px 2px 12px; padding: 5px 9px 5px 12px; letter-spacing: 0; }

/* ===================== fotoğraf: dokununca büyüt ===================== */
button.it-img { padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; font: inherit; color: inherit; }
.it-img .zoom-ic {
  position: absolute; right: 12px; bottom: 12px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: 15px; color: #fff; background: rgba(28,16,8,.6);
  box-shadow: 0 2px 6px rgba(0,0,0,.3); pointer-events: none;
}
.zoom {
  position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(10,6,3,.0); backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0);
  transition: background .22s, backdrop-filter .22s;
}
.zoom[hidden] { display: none; }
.zoom.on { background: rgba(10,6,3,.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.zoom-fig {
  position: relative; width: 100%; max-width: 560px; max-height: 100%; overflow: auto; margin: 0;
  background: var(--paper); border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.55);
  transform: translateY(18px) scale(.96); opacity: 0; transition: transform .25s cubic-bezier(.2,.8,.2,1), opacity .22s;
}
.zoom.on .zoom-fig { transform: none; opacity: 1; }
.zoom-img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px 16px 0 0; background: #e9e0cf; }
.zoom-x {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(28,16,8,.65); color: #fff; font-size: 18px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
[dir="rtl"] .zoom-x { right: auto; left: 10px; }
.zoom-cap { padding: 16px 20px 20px; color: var(--ink); font-family: 'EB Garamond', 'Noto Naskh Arabic', serif; }
.zoom-cap h3 {
  font: 700 26px/1.15 'Cormorant Garamond', 'Noto Naskh Arabic', serif; color: var(--brown); text-transform: uppercase;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
}
.zoom-cap .zd { font-size: 17px; line-height: 1.5; color: var(--ink-soft); margin-top: 8px; }
.zoom-cap .zn { font-style: italic; color: var(--red); margin-top: 6px; }
.zoom-cap .zm { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; }
.zoom-cap .zp { font: 700 30px 'Cormorant Garamond', serif; color: var(--brown); direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .zoom-cap { direction: rtl; text-align: right; }
[dir="rtl"] .zoom-cap * { letter-spacing: 0 !important; }
body.zoom-open { overflow: hidden; }
@media (min-width: 900px) and (min-height: 560px) {
  .zoom-fig { max-width: 860px; display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; }
  .zoom-img { height: 100%; aspect-ratio: auto; min-height: 420px; border-radius: 16px 0 0 16px; }
  [dir="rtl"] .zoom-img { border-radius: 0 16px 16px 0; }
  .zoom-cap { padding: 28px 28px 26px; overflow: auto; align-self: center; }
}

/* ===================== açılış animasyonu ===================== */
.intro {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; cursor: pointer;
  background: radial-gradient(ellipse at 30% 20%, #3a140b 0%, #140a04 55%, #0b170d 100%);
  transition: opacity .55s ease, visibility .55s;
}
.intro.out { opacity: 0; visibility: hidden; }
.intro-in { text-align: center; color: #f3e3c3; padding: 24px; }
.intro-logo {
  width: min(220px, 56vw); border-radius: 18px; display: block; margin: 0 auto 18px;
  box-shadow: 0 14px 40px rgba(160,40,20,.35), 0 0 0 1px rgba(201,168,76,.3);
  animation: introLogo 1s cubic-bezier(.2,.8,.2,1) both;
}
.intro-title {
  font: 600 clamp(34px, 9vw, 54px)/1 'Cormorant Garamond', serif; letter-spacing: 3px;
  animation: introUp .9s .25s cubic-bezier(.2,.8,.2,1) both;
}
.intro-orn { color: #c9a84c; letter-spacing: 6px; font-size: 13px; margin: 12px 0 8px; animation: introUp .9s .4s both; }
.intro-sub {
  font: 500 13px 'DM Sans', sans-serif; letter-spacing: 4px; text-transform: uppercase; color: #d8c49c;
  animation: introUp .9s .5s both;
}
@keyframes introLogo { from { opacity: 0; transform: scale(.82) translateY(10px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes introUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
body.intro-on .topbar, body.intro-on .pager { opacity: 0; }
.topbar, .pager { transition: opacity .6s .2s; }
body.intro-reveal .book { animation: bookIn .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes bookIn { from { opacity: 0; transform: translateY(26px) scale(.94); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .intro, .intro * { animation: none !important; transition: none !important; }
  .zoom, .zoom-fig { transition: none; }
}

/* ===================== logo plakası =====================
   Logonun siyah yazısı koyu zeminlerde kayboluyordu; koyu zeminlerde logo
   açık krem, ince altın çerçeveli bir plakanın üzerinde gösterilir. */
.tb-home img, .intro-logo, .pg-gen .gen-logo {
  background: #fbf6ec;
  border: 1px solid rgba(201,168,76,.55);
  box-shadow: 0 2px 10px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.6);
  object-fit: contain;
}
.tb-home img { height: 40px; padding: 3px 8px; border-radius: 9px; }
.intro-logo { padding: 12px 18px; }
.pg-gen .gen-logo { padding: 14px 20px; border-radius: 16px; }
@media (max-width: 560px) { .tb-home img { height: 34px; padding: 2px 6px; } }


/* ===================== telefona özel dar sayfa düzeni (body.compact) =====================
   Sayfa 420 px genişlikte ve ekran oranında tasarlanır; yazı boyutları aynı kalır, ama sayfa
   ekrana sığdırılırken daha az küçültüldüğü için telefonda ~%45 daha büyük görünür. */
body.compact .pg-head { padding: 30px 26px 4px; }
body.compact .pg-head h2 { font-size: 33px; }
body.compact .pg-head .orn::before, body.compact .pg-head .orn::after { width: 56px; }
body.compact .pg-head.small { padding-top: 26px; }
body.compact .pg-body { padding: 12px 24px 0; gap: 15px; }
body.compact .pg-body.has-compact { gap: 12px; }
body.compact .pg-foot { height: 50px; padding: 0 22px 20px; }
body.compact .pg-foot .num { right: 22px; bottom: 18px; font-size: 18px; }
body.compact .pg.even .pg-foot .num { left: 22px; right: auto; }
body.compact .pg-foot .slogan { font-size: 11px; letter-spacing: 1.5px; }
body.compact .pg-paper::after { inset: 11px; outline-offset: 3px; }
body.compact .it-row { gap: 14px; align-items: flex-start; }
body.compact .it-img { flex-basis: 112px; height: 112px; margin-top: 4px; }
body.compact .it-name { font-size: calc(22px * var(--mfs, 1)); }
body.compact .it-desc { font-size: calc(16px * var(--mfs, 1)); line-height: 1.45; text-align: start; }
body.compact .it-note { font-size: calc(15px * var(--mfs, 1)); }
body.compact .it-time, body.compact .it-kcal { font-size: calc(14.5px * var(--mfs, 1)); }
body.compact .it-price { font-size: calc(26px * var(--mfs, 1)); }
body.compact .it-meta { flex-wrap: wrap; row-gap: 2px; }
body.compact .c-row .it-name { font-size: calc(19px * var(--mfs, 1)); }
body.compact .it.compact .it-desc { font-size: calc(15px * var(--mfs, 1)); }
body.compact .it.compact .it-time, body.compact .it.compact .it-kcal { font-size: calc(13.5px * var(--mfs, 1)); }
body.compact .c-row .it-price { font-size: calc(22px * var(--mfs, 1)); }
body.compact .pg-note { font-size: calc(14px * var(--mfs, 1)); }
body.compact .pg-gen { padding: 40px 28px; }
body.compact .pg-gen h2 { font-size: 46px; }
body.compact .pg-gen .gen-logo { width: 180px; }
body.compact .legend { gap: 6px 14px; font-size: 13px; }

/* telefonda İçindekiler: 2 sütun, yatay kutucuk (resim solda, ad ortada, sayfa no sağda) */
.toc-grid.toc-row .toc-tile {
  flex-direction: row; justify-content: flex-start; text-align: start;
  padding: 6px 10px 6px 7px; gap: 9px; border-radius: 12px;
}
.toc-grid.toc-row .tt-name {
  font-size: 13.5px; line-height: 1.1; letter-spacing: .2px; flex: 1; min-width: 0;
  overflow-wrap: anywhere; hyphens: auto; -webkit-line-clamp: 3;
}
.toc-grid.toc-row .tt-name.tt-long { font-size: 12px; }
.toc-grid.toc-row .tt-pn { position: static; font-size: 14px; flex: 0 0 auto; }

/* tek başına sayfaya sığmayan ürün için yedek düzenler (sayfalama otomatik uygular) */
.it.stack .it-row { flex-direction: column; align-items: center; gap: 10px; }
.it.stack .it-img { flex: 0 0 auto; width: 120px; height: 120px; margin: 0; }
.it.stack .it-txt { width: 100%; }
.it.tight .it-desc { font-size: 14px; line-height: 1.35; }
body.compact .it.tight .it-desc { font-size: calc(14px * var(--mfs, 1)); line-height: 1.35; }
.it.tighter .it-desc { font-size: 12.5px; line-height: 1.3; }
body.compact .it.tighter .it-desc { font-size: calc(12.5px * var(--mfs, 1)); line-height: 1.3; }
