/*
 * Müşteri menüsü. Düzen: telefonda tek sütun ve üstte yapışkan kategori şeridi;
 * geniş ekranda solda yapışkan kategori/filtre sütunu, sağda iki sütunlu ürün ızgarası.
 */
:root { --whatsapp: #0e7a6d;
  --bg: #f1f2ee;          /* taş rengi zemin, hafif yeşil eğilimli */
  --surface: #fbfcf9;
  --ink: #1b221e;
  --muted: #66706a;
  --line: #dde1d9;
  --accent: #0e5a4b;      /* koyu çini yeşili */
  --accent-soft: #dcebe5;
  --white: #fffdf8;       /* saf beyaz yerine sıcak kâğıt beyazı (koyu zemin üstü yazı, beyaz kartlar) */
  --black: #0e100f;       /* saf siyah yerine (hikâye görüntüleyici) */
  --story-kicker: #f2b45a;
  --saffron: #945b0b;     /* rozet ve vurgular */
  --saffron-soft: #f6e8d2;
  --warn: #b42318;
  --warn-soft: #fbe9e6;
  --shadow: 0 1px 2px rgba(27, 34, 30, .06), 0 8px 24px rgba(27, 34, 30, .06);
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  /* Tasarım değişkenleri (PRODUCT.md "Menü tasarım sistemi"): yazı ölçeği, köşe, gölge, katman, hareket */
  --fs-2xs: .72rem; --fs-xs: .8rem; --fs-sm: .88rem; --fs-body: .95rem; --fs-md: 1.08rem; --fs-lg: 1.25rem; --fs-xl: 1.6rem; --fs-2xl: 2rem;
  --fs-cat: clamp(1.15rem, 5vw, 1.45rem);
  --display-weight: 600;  /* temanın başlık yazı tipinde bulunan kalınlık (Gün Işığı: 400) */
  --radius-xs: 4px; --radius-sm: 6px; --radius-md: 12px; --radius-lg: 18px; --radius-sheet: 28px; --radius-pill: 999px;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, .18);
  --shadow-lg: var(--shadow), 0 12px 32px rgba(0, 0, 0, .18);
  --z-sticky: 5; --z-head-open: 7; --z-callbar: 29; --z-bar: 30; --z-overlay: 100;
  --ease-out: cubic-bezier(.22, 1, .36, 1); --dur-fast: .15s; --dur: .25s; --dur-slow: .4s;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111613;
    --surface: #181e1b;
    --ink: #e8ece9;
    --muted: #a2aca6;
    --line: #2b332f;
    --accent: #6cc9b0;
    --accent-soft: #1d3a32;
    --saffron: #e5ac57;
    --saffron-soft: #3a2d18;
    --warn: #ff8f84;
    --warn-soft: #3c1f1c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
html[dir="rtl"] body { --font-display: "Geeza Pro", "Noto Naskh Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, serif; --font-body: "Geeza Pro", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font-body); font-synthesis-weight: none; /* yerel yazı tipinde olmayan kalınlık taklit edilmesin */
  --focus: var(--accent-ink, var(--accent)); /* body düzeyinde: tema ve marka rengi aynı öğede tanımlı */ }
html[dir="rtl"] body { line-height: 1.75; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.m-gutter, .m-head-inner, .m-layout, .m-foot-inner {
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Üst bar */
.m-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.m-head-inner { max-width: 1180px; margin: 0 auto; padding-block: 20px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.m-name { margin: 0; font: var(--display-weight) clamp(1.6rem, 5vw, 2.3rem)/1.1 var(--font-display); letter-spacing: -.01em; text-wrap: balance; }
.m-city { margin: 4px 0 0; color: var(--muted); font-size: var(--fs-sm); }
html.not-latin .m-city { text-transform: none; letter-spacing: 0; }
.m-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.m-seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 4px; background: var(--bg); }
.m-seg a, .m-seg button {
  border: 0; background: none; min-height: 36px; padding: 4px 12px; border-radius: var(--radius-pill); font-size: var(--fs-sm); color: var(--muted);
  text-decoration: none; cursor: pointer; min-width: 36px; text-align: center;
}
.m-seg [aria-current="true"], .m-seg [aria-pressed="true"] { background: var(--accent); color: var(--on-accent, var(--surface)); font-weight: 600; }

/* Yerleşim */
.m-layout { max-width: 1180px; margin: 0 auto; }
.m-side { position: sticky; top: env(safe-area-inset-top, 0px); z-index: var(--z-sticky); background: var(--bg); margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--line); }
.m-cats { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.m-cats::-webkit-scrollbar { display: none; }
.m-cats a { position: relative; /* içindeki .sr-only kaydırma alanında kalsın: yoksa telefonda sayfayı genişletip menüyü küçültüyordu */
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: var(--fs-body); white-space: nowrap;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.m-cats a.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.m-cat-count { font-size: var(--fs-2xs); opacity: .6; font-variant-numeric: tabular-nums; }
.m-filters { display: flex; flex-direction: column; gap: 12px; }
.m-main { padding-block: 8px 32px; min-width: 0; }

/* Filtreler (telefonda kategori şeridinin altında, yapışkan değil) */
.m-mobile-filters { padding-block: 8px 0; }
.m-filter-group { display: flex; flex-direction: column; gap: 8px; }
.m-filter-label { margin: 0; font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
html.not-latin .m-filter-label { letter-spacing: 0; }
.m-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.m-chip { position: relative; }
.m-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.m-chip span {
  display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: var(--radius-pill); border: 1px solid var(--line);
  background: var(--surface); font-size: var(--fs-sm); cursor: pointer; transition: background var(--dur-fast), border-color var(--dur-fast);
}
.m-chip b { font-variant-numeric: tabular-nums; font-size: var(--fs-xs); color: var(--muted); }
.m-chip-tag input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent, var(--surface)); font-weight: 600; }
.m-chip-al input:checked + span { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); font-weight: 600; }
.m-chip-al input:checked + span b { color: inherit; }
.m-chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.m-filter { padding-block: 4px; }
/* "Alerjim var": kutunun iki kenarına dayanan şerit düğme */
.m-filter summary {
  cursor: pointer; display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 8px 12px; box-sizing: border-box;
  border: 1px solid var(--warn); border-radius: var(--radius-md); background: var(--warn-soft); color: var(--warn);
  font-size: var(--fs-body); font-weight: 600; list-style: none; transition: filter var(--dur-fast);
}
.m-filter summary:hover { filter: brightness(.97); }
.m-filter summary::-webkit-details-marker { display: none; }
.m-filter summary::before { content: "⚠"; }
.m-filter summary::after { content: "▾"; margin-inline-start: auto; }
.m-filter[open] summary::after { content: "▴"; }
.m-filter[open] summary { margin-bottom: 8px; }
.m-count { background: var(--warn); color: var(--surface); border-radius: var(--radius-sm); padding: 0 8px; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.m-help { margin: 4px 0 8px; font-size: var(--fs-sm); color: var(--muted); }
.m-filter-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; font-size: var(--fs-sm); flex-wrap: wrap; }
.m-btn-quiet { background: none; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 8px 12px; cursor: pointer; font-size: var(--fs-sm); }

/* Kategoriler ve kartlar */
.m-cat { scroll-margin-top: 72px; }
.m-cat h2 { font: var(--display-weight) var(--fs-xl)/1.2 var(--font-display); margin: 28px 0 12px; display: flex; align-items: center; gap: 12px; }
.m-cat h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.m-grid { display: grid; gap: 12px; }
.m-item { animation: m-rise .45s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 35ms); }
.m-open {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 16px; align-items: start; text-align: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; cursor: pointer;
  transition: transform var(--dur-fast), box-shadow var(--dur-fast), border-color var(--dur-fast);
}
.m-open:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.m-open:active { transform: scale(.99); }
/* Odak çerçevesi kartın içinde: akordeon paneli taşmayı keser, dışa çizilen çerçevenin sağı solu görünmüyordu */
.m-open:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.m-item-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.m-item-name { font: var(--display-weight) var(--fs-md)/1.25 var(--font-display); }
.m-desc { color: var(--muted); font-size: var(--fs-sm); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 0; }
.m-tag { font-size: var(--fs-2xs); font-weight: 600; padding: 2px 8px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-ink, var(--accent)); }
.m-tag-aci { background: var(--warn-soft); color: var(--warn); }
.m-tag-sef, .m-tag-yeni { background: var(--saffron-soft); color: var(--saffron); }
.m-item-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.m-prices { display: flex; flex-direction: column; gap: 2px; }
.m-price-row { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.m-var { font-size: var(--fs-xs); color: var(--muted); }
.m-price { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.m-fx { font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.m-al-nums { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.m-al-num {
  min-width: 24px; height: 24px; padding: 0 8px; border-radius: var(--radius-sm); gap: 4px; display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--fs-xs); font-weight: 600; border: 1px solid var(--line); color: var(--ink); font-variant-numeric: tabular-nums;
}
.m-al-num.hit { background: var(--warn); border-color: var(--warn); color: var(--surface); }
.m-thumb { position: relative; width: 96px; aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden; background: var(--line); max-width: 100%; }
.m-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow), opacity var(--dur-slow) ease; }
/* Küçük görsel yüklenirken parıltı (menu.js is-loading); gelince yumuşakça belirir */
.m-thumb.is-loading img, .m-acc-thumb.is-loading img { opacity: 0; }
.m-thumb.is-loading::after, .m-acc-thumb.is-loading::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%) 0 0 / 250% 100%; animation: m-shimmer 1.3s linear infinite; }
@media (prefers-reduced-motion: reduce) { .m-thumb.is-loading::after, .m-acc-thumb.is-loading::after { animation: none; } }
.m-thumb.is-sample img { opacity: .9; }
.m-warn { color: var(--warn); font-weight: 700; font-size: var(--fs-sm); }
.m-item.is-flagged .m-open { border-color: var(--warn); background: var(--warn-soft); }
.m-pill { display: inline-block; width: fit-content; font-size: var(--fs-2xs); font-weight: 700; padding: 2px 8px; border-radius: var(--radius-sm); }
html.not-latin .m-pill { letter-spacing: 0; }
.m-pill-out { background: var(--ink); color: var(--bg); }

/* Tükendi: silinmez, soluk ve üstü çizili */
.m-item.is-sold-out .m-open { background: var(--bg); }
.m-item.is-sold-out .m-item-name, .m-item.is-sold-out .m-price { text-decoration: line-through; color: var(--muted); }
.m-item.is-sold-out .m-desc, .m-item.is-sold-out .m-tags { opacity: .6; }
.m-item.is-sold-out .m-thumb img { filter: grayscale(1); opacity: .5; }

.m-no-results { margin: 24px 0; color: var(--muted); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.m-empty { max-width: 760px; margin: 40px auto; padding: 0 16px; color: var(--muted); }

/* Ürün detayı: telefonda alttan açılan sayfa, geniş ekranda ortada pencere */
.m-dialog {
  border: 0; padding: 0; background: transparent; color: var(--ink);
  width: 100%; max-width: 100%; max-height: 100%; margin: auto auto 0;
}
.m-dialog::backdrop { background: rgba(10, 14, 12, .5); }
.m-dialog[open] { animation: m-sheet .32s var(--ease-out); }
.m-dialog-inner {
  position: relative; background: var(--surface); border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 92vh; overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom, 0px); overscroll-behavior: contain;
}
/* Telefonda aşağı çekerek kapatma tutamacı (menu.js) */
@media (max-width: 959px) {
  .m-dialog-inner::before { content: ""; position: sticky; top: 0; display: block; width: 40px; height: 5px; margin: -5px auto 0; border-radius: 3px;
    background: var(--muted); opacity: .6; z-index: 3; transform: translateY(8px); }
  /* Fotoğrafın üstünde beyaz + gölge (koyu ve açık fotoğrafta da seçilsin) */
  .m-dialog-inner:has(.m-d-media:not(.is-sample))::before { background: #fff; opacity: .9; box-shadow: 0 1px 4px rgba(0, 0, 0, .45); }
}
.m-close {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .9); color: #1b221e; font-size: var(--fs-xl); line-height: 1; cursor: pointer; box-shadow: var(--shadow);
}
.m-d-media { position: relative; background: var(--line); }
.m-d-media img { width: 100%; max-height: 52vh; object-fit: cover; }
.m-d-media:not(.is-sample) { width: 100%; aspect-ratio: 4 / 3; max-height: 52vh; overflow: hidden; } /* width: oran + yükseklik sınırı genişliği daraltmasın */
.m-d-media:not(.is-sample) img { height: 100%; }
.m-d-ph { position: absolute; inset: 0; filter: blur(16px); transform: scale(1.1); }
.m-d-full { position: relative; transition: opacity var(--dur) ease; }
.m-d-media.is-loading .m-d-full { opacity: 0; }
.m-d-media.is-loading::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%) 0 0 / 250% 100%; animation: m-shimmer 1.3s linear infinite; }
@keyframes m-shimmer { from { background-position: 125% 0; } to { background-position: -125% 0; } }
@media (prefers-reduced-motion: reduce) { .m-d-media.is-loading::after { animation: none; } .m-d-full { transition: none; } }
.m-d-media.is-sample { display: flex; justify-content: center; padding: 28px 16px 24px; background: var(--bg); }
.m-d-media.is-sample img { width: 180px; aspect-ratio: 1; border-radius: var(--radius-lg); }
.m-sample-note {
  position: absolute; bottom: 10px; inset-inline-start: 12px; font-size: var(--fs-2xs); padding: 2px 8px; border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, .45); color: var(--white);
}
.m-d-body { padding: 20px max(20px, env(safe-area-inset-left, 0px)) 28px; display: flex; flex-direction: column; gap: 12px; }
.m-d-name { margin: 0; font: var(--display-weight) var(--fs-xl)/1.2 var(--font-display); text-wrap: balance; }
.m-d-desc { margin: 0; color: var(--muted); max-width: 60ch; }
.m-d-prices { padding: 12px 0; border-block: 1px solid var(--line); gap: 8px; }
.m-d-prices .m-price { font-size: var(--fs-lg); }
.m-d-facts { margin: 0; display: grid; grid-template-columns: 1fr; gap: 2px 16px; }
.m-d-facts dt { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; margin-top: 12px; }
html.not-latin .m-d-facts dt { letter-spacing: 0; }
.m-d-facts dd { margin: 0; }
.m-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.m-badge { font-size: var(--fs-xs); padding: 4px 8px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-ink, var(--accent)); font-weight: 600; }
.m-badge b { font-variant-numeric: tabular-nums; }
.m-badge.flag { background: var(--saffron-soft); color: var(--saffron); }
.m-badge.hit { background: var(--warn); color: var(--surface); }

/* Alt bilgi */
.m-foot { border-top: 1px solid var(--line); background: var(--surface); }
.m-foot-inner { max-width: 1180px; margin: 0 auto; padding-block: 20px 40px; font-size: var(--fs-sm); color: var(--muted); }
.m-foot p { margin: 8px 0; max-width: 75ch; }
.m-foot strong { color: var(--ink); }
.m-legend summary { cursor: pointer; }
.m-add-marks { font-size: .62em; font-weight: 500; opacity: .75; margin-inline-start: 2px; letter-spacing: 0; vertical-align: super; line-height: 0; }
.m-add-legend { margin: 8px 0; padding: 0; list-style: none; columns: 2 220px; }
.m-add-legend li { break-inside: avoid; }
.m-salt { font-size: .85em; margin-inline-start: 2px; }
.m-origin { display: block; font-size: var(--fs-xs); opacity: .8; margin-top: 2px; }
.m-legend ol { margin: 8px 0; padding-inline-start: 24px; columns: 2 220px; }
.m-made a, .m-privacy a, .m-contact a { display: inline-block; padding-block: 12px; } /* dokunma alanı 44 px */
.m-made a { color: var(--muted); }
.m-contact a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; }

@keyframes m-rise { from { opacity: .3; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes m-sheet { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }

/* Tablet ve üstü: kartlarda daha büyük görsel */
@media (min-width: 640px) {
  .m-open { grid-template-columns: minmax(0, 1fr) 120px; padding: 16px; }
  .m-thumb { width: 120px; }
}

/* Geniş ekran: yan sütun + iki sütunlu ızgara, detay ortada pencere */
@media (min-width: 960px) {
  html { scroll-padding-top: 20px; }
  .m-cat { scroll-margin-top: 20px; }
  .m-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: start; }
  .m-side {
    position: sticky; top: 0; margin: 0; padding: 24px 0; border: 0; max-height: 100vh; overflow-y: auto;
    display: flex; flex-direction: column; gap: 24px;
  }
  .m-cats { flex-direction: column; overflow: visible; padding: 0; gap: 2px; }
  .m-cats a { background: none; border: 0; border-radius: var(--radius-md); padding: 8px 12px; justify-content: space-between; font-size: var(--fs-body); white-space: normal; line-height: 1.3; }
  .m-cats a:hover { background: var(--surface); }
  .m-cats a.is-active { background: var(--surface); color: var(--accent-ink, var(--accent)); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
  html[dir="rtl"] .m-cats a.is-active { box-shadow: inset -3px 0 0 var(--accent); }
  .m-filters { display: flex; flex-direction: column; gap: 16px; }
  .m-mobile-filters { display: none; }
  .m-main { padding-block: 12px 48px; }
  .m-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .m-dialog { max-width: 720px; margin: auto; }
  .m-dialog-inner { border-radius: var(--radius-lg); max-height: 88vh; }
  .m-dialog[open] { animation: m-pop .25s var(--ease-out); }
  .m-d-body { padding: 24px 32px 32px; }
  .m-d-facts { grid-template-columns: 160px 1fr; align-items: baseline; }
  .m-d-facts dt { margin-top: 8px; }
  .m-d-facts dd { margin-top: 8px; }
}
@keyframes m-pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .m-item, .m-dialog[open] { animation: none; }
  .m-open, .m-thumb img, .m-cats a { transition: none; }
}

/* =====================================================================
   TEMALAR — her tema renk, yazı ve kart düzenini birlikte değiştirir.
   Tek görünümlü temalar (Kor, Tabildot) telefonun koyu/açık ayarından bağımsızdır.
   ===================================================================== */

/* Ortak yardımcı: fotoğrafa dayanmayan temalarda örnek görselleri gizle */
body.theme-kahve .m-item:not(.has-photo) .m-thumb,
body.theme-esnaf .m-item:not(.has-photo) .m-thumb { display: none; }
body.theme-kahve .m-item:not(.has-photo) .m-open,
body.theme-esnaf .m-item:not(.has-photo) .m-open { grid-template-columns: minmax(0, 1fr); }

/* ---------- KAVRUM (kahveci): kraft kâğıt, basılı menü ---------- */
body.theme-kahve {
  --bg: #e9dfcf; --surface: #f3ecdf; --ink: #2b1a12; --muted: #6e5646; --line: #cdbca4;
  --accent: #4a2c1d; --accent-soft: #e2d2bb; --saffron: #9a5b1f; --saffron-soft: #ecd8b8;
  --warn: #a3241b; --warn-soft: #f3dcd3; --shadow: none;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Work Sans", -apple-system, "Segoe UI", sans-serif;
  --radius: 4px; color-scheme: light;
  background-image: radial-gradient(rgba(74, 44, 29, .05) 1px, transparent 1px);
  background-size: 6px 6px;
}
.theme-kahve .m-head { background: transparent; border-bottom: 2px solid var(--ink); }
.theme-kahve .m-head-inner { padding-block: 28px 20px; }
.theme-kahve .m-name { font-weight: 700; font-size: clamp(2rem, 7vw, 3rem); letter-spacing: -.02em; }
.theme-kahve .m-city { font-size: var(--fs-xs); letter-spacing: .25em; }
.theme-kahve .m-seg { background: transparent; border-color: var(--ink); }
.theme-kahve .m-side { background: var(--bg); }
.theme-kahve .m-cats a { background: transparent; border-color: var(--line); border-radius: 2px; font-size: var(--fs-sm); }
.theme-kahve .m-cats a.is-active { background: var(--ink); color: var(--bg); }
.theme-kahve .m-cat h2 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; justify-content: center; margin-top: 36px; }
.theme-kahve .m-cat h2::before { content: ""; flex: 1; height: 1px; background: var(--ink); }
.theme-kahve .m-cat h2::after { background: var(--ink); }
.theme-kahve .m-grid { gap: 0; }
.theme-kahve .m-open { background: transparent; border: 0; border-bottom: 1px dashed var(--line); border-radius: 0; padding: 16px 2px; }
.theme-kahve .m-open:hover { box-shadow: none; background: rgba(255, 255, 255, .25); }
.theme-kahve .m-item-name { font-size: var(--fs-lg); font-weight: 500; }
.theme-kahve .m-item-foot { margin-top: 2px; }
.theme-kahve .m-price { font-family: var(--font-display); font-size: var(--fs-md); }
.theme-kahve .m-thumb { border-radius: 2px; filter: sepia(.15); }
.theme-kahve .m-tag { background: transparent; border: 1px solid currentColor; border-radius: 2px; }
.theme-kahve .m-dialog-inner { border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: var(--surface); }

/* ---------- KOR (ızgara/steak): kömür siyahı, köz turuncusu, büyük fotoğraf ---------- */
body.theme-izgara {
  --bg: #151211; --surface: #1f1a18; --ink: #f1e9e2; --muted: #a8988c; --line: #332b27;
  --accent: #e8622c; --accent-soft: #3a2117; --accent-ink: #ee7a4a; --saffron: #f2a541; --saffron-soft: #3a2b16;
  --warn: #ff7a6b; --warn-soft: #3d1b18; --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --font-display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", -apple-system, "Segoe UI", sans-serif;
  --radius: 6px; color-scheme: dark;
}
.theme-izgara .m-head {
  background: linear-gradient(180deg, rgba(232, 98, 44, .16), transparent 70%), var(--bg);
  border-bottom: 1px solid var(--line);
}
.theme-izgara .m-head-inner { padding-block: 32px 20px; }
.theme-izgara .m-name { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: clamp(2.2rem, 9vw, 3.4rem); }
.theme-izgara .m-city { color: var(--accent-ink, var(--accent)); letter-spacing: .3em; }
.theme-izgara .m-cats a { font-family: var(--font-display); font-weight: 500; border-radius: var(--radius-xs); }
.theme-izgara .m-cats a.is-active { background: var(--accent); border-color: var(--accent); color: #151211; }
.theme-izgara .m-cat h2 { font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: var(--fs-xl); }
.theme-izgara .m-cat h2::after { background: linear-gradient(90deg, var(--accent), transparent); height: 2px; }
.theme-izgara .m-open { grid-template-columns: minmax(0, 1fr); padding: 0; overflow: hidden; gap: 0; }
.theme-izgara .m-thumb { order: -1; width: 100%; aspect-ratio: 16 / 9; border-radius: 0; }
.theme-izgara .m-item:not(.has-photo) .m-thumb { display: none; }
.theme-izgara .m-item:not(.has-photo) .m-open { box-shadow: inset 0 1px 0 var(--accent), var(--shadow); }
.theme-izgara .m-item-text { padding: 16px 16px 16px; }
.theme-izgara .m-item-name { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; font-size: var(--fs-lg); }
.theme-izgara .m-price { color: var(--accent-ink, var(--accent)); font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; }
.theme-izgara .m-tag-aci { background: var(--accent); color: #151211; }
.theme-izgara .m-pill-out { background: var(--accent); color: #151211; }
.theme-izgara .m-close { background: var(--accent); color: #151211; }

/* ---------- GÜN IŞIĞI (kafe): gökyüzü panelleri, iki sütun kutucuk ---------- */
body.theme-kafe {
  --display-weight: 400; /* Young Serif yalnız 400 */
  --bg: #eef3f8; --surface: var(--white); --ink: #1f3c5a; --muted: #566c7f; --line: #d6e2ec;
  --accent: #1f3c5a; --accent-soft: #e3edf6; --saffron: #906300; --saffron-soft: #fdf0c9;
  --warn: #b42318; --warn-soft: #fbe9e6; --shadow: 0 6px 22px rgba(31, 60, 90, .10);
  --font-display: "Young Serif", "Iowan Old Style", Georgia, serif;
  --font-body: "Nunito Sans", -apple-system, "Segoe UI", sans-serif;
  --radius: 22px; color-scheme: light;
  background: linear-gradient(180deg, #cfe0ef 0, #eef3f8 340px) no-repeat, #eef3f8;
}
.theme-kafe .m-head { background: transparent; border: 0; }
.theme-kafe .m-head-inner { padding-block: 36px 12px; align-items: flex-end; }
.theme-kafe .m-name { font-weight: 400; font-size: clamp(2.4rem, 10vw, 3.6rem); letter-spacing: -.02em; }
.theme-kafe .m-seg { background: var(--surface); border-color: transparent; }
.theme-kafe .m-side { background: var(--bg); border: 0; }
.theme-kafe .m-cats a { border: 0; box-shadow: 0 1px 0 var(--line); }
.theme-kafe .m-cat h2 { font-weight: 400; font-size: var(--fs-xl); }
.theme-kafe .m-cat h2::after { display: none; }
.theme-kafe .m-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.theme-kafe .m-open { grid-template-columns: minmax(0, 1fr); align-content: start; padding: 8px 8px 16px; gap: 12px; border: 0; box-shadow: var(--shadow); height: 100%; }
.theme-kafe .m-thumb { order: -1; width: 100%; border-radius: var(--radius-lg); }
.theme-kafe .m-item-text { padding-inline: 8px; }
.theme-kafe .m-item-name { font-weight: 400; font-size: var(--fs-md); }
.theme-kafe .m-desc { font-size: var(--fs-xs); }
.theme-kafe .m-item-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
.theme-kafe .m-cat:nth-of-type(4n+2) .m-open { background: #fff8e6; }
.theme-kafe .m-cat:nth-of-type(4n+3) .m-open { background: #eef8f1; }
.theme-kafe .m-cat:nth-of-type(4n+4) .m-open { background: #fbeff3; }
.theme-kafe .m-item.is-sold-out .m-open { background: #eef1f4; }
.theme-kafe .m-dialog-inner { border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; }
@media (min-width: 600px) { .theme-kafe .m-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } } /* tablette bir ekrana iki dev kart sığıyordu */
@media (min-width: 960px) {
  .theme-kafe .m-dialog-inner { border-radius: var(--radius-sheet); }
  .theme-kafe .m-side { background: transparent; }
}

/* ---------- OCAKBAŞI (kebapçı): pul biber kırmızısı, safran, çini şerit ---------- */
body.theme-kebap {
  --bg: #fbf6ef; --surface: var(--white); --ink: #2a1512; --muted: #7a5e57; --line: #ecdcd2;
  --accent: #8e1b16; --accent-soft: #f6e1dc; --saffron: #955e00; --saffron-soft: #fbecc8;
  --warn: #b42318; --warn-soft: #fbe3df; --shadow: 0 4px 16px rgba(142, 27, 22, .08);
  --font-display: "Rubik", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Rubik", -apple-system, "Segoe UI", sans-serif;
  --radius: 16px; color-scheme: light;
}
.theme-kebap .m-head { background: var(--accent); color: #fff6ea; border: 0; position: relative; }
.theme-kebap .m-head::after {
  content: ""; display: block; height: 14px;
  background:
    radial-gradient(circle at 7px 7px, #d39b2a 3px, transparent 3.5px) 0 0 / 14px 14px,
    linear-gradient(#6f1410, #6f1410);
}
.theme-kebap .m-head-inner { padding-block: 28px 24px; }
.theme-kebap .m-name { font-weight: 800; letter-spacing: -.01em; font-size: clamp(2rem, 8vw, 3rem); }
.theme-kebap .m-city { color: #f3c96b; }
.theme-kebap .m-seg { background: rgba(0, 0, 0, .18); border-color: rgba(255, 255, 255, .2); }
.theme-kebap .m-seg a, .theme-kebap .m-seg button { color: #fbe9d6; }
.theme-kebap .m-seg [aria-current="true"], .theme-kebap .m-seg [aria-pressed="true"] { background: #f3c96b; color: #5a0f0b; }
.theme-kebap .m-cats a { font-weight: 500; }
.theme-kebap .m-cats a.is-active { background: var(--accent); border-color: var(--accent); color: var(--white); }
.theme-kebap .m-cat h2 { font-weight: 800; color: var(--accent-ink, var(--accent)); }
.theme-kebap .m-cat h2::before { content: ""; width: 14px; height: 14px; transform: rotate(45deg); background: var(--saffron); border-radius: 2px; flex: none; }
.theme-kebap .m-cat h2::after { background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 10px); height: 2px; }
.theme-kebap .m-open { grid-template-columns: 84px minmax(0, 1fr); border-color: var(--line); }
.theme-kebap .m-thumb { order: -1; width: 84px; border-radius: 50%; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--saffron); }
.theme-kebap .m-item:not(.has-photo) .m-thumb img { transform: scale(1.15); }
.theme-kebap .m-item-name { font-weight: 600; font-size: var(--fs-md); }
.theme-kebap .m-price { color: var(--accent-ink, var(--accent)); font-weight: 800; font-size: var(--fs-md); }
.theme-kebap .m-tag-sef { background: var(--accent); color: var(--white); }
@media (min-width: 640px) {
  .theme-kebap .m-open { grid-template-columns: 104px minmax(0, 1fr); }
  .theme-kebap .m-thumb { width: 104px; }
}

/* ---------- TABİLDOT (esnaf lokantası): kara tahta, tebeşir ---------- */
body.theme-esnaf {
  --bg: #1e2a23; --surface: #24322a; --ink: #f4f1e6; --muted: #b9c2b4; --line: #3c4c42;
  --accent: #f2d16b; --accent-soft: #3a3f2b; --saffron: #f2d16b; --saffron-soft: #3a3f2b;
  --warn: #ff9b8a; --warn-soft: #4a2a25; --shadow: none;
  --font-display: "Kalam", "Comic Sans MS", "Bradley Hand", cursive;
  --font-body: "Source Sans 3", -apple-system, "Segoe UI", sans-serif;
  --radius: 4px; color-scheme: dark;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255, 255, 255, .06), transparent 50%),
    radial-gradient(ellipse at 80% 60%, rgba(255, 255, 255, .04), transparent 55%),
    #1e2a23;
}
.theme-esnaf .m-head { background: transparent; border-bottom: 6px solid #5b3a24; box-shadow: 0 1px 0 #7a5236; }
.theme-esnaf .m-head-inner { padding-block: 28px 20px; }
.theme-esnaf .m-name { font-weight: 700; font-size: clamp(2.2rem, 9vw, 3.2rem); transform: rotate(-1deg); }
.theme-esnaf .m-city { font-family: var(--font-display); text-transform: none; letter-spacing: 0; font-size: var(--fs-md); color: var(--accent-ink, var(--accent)); }
.theme-esnaf .m-seg { background: transparent; border-color: var(--line); }
.theme-esnaf .m-seg [aria-current="true"], .theme-esnaf .m-seg [aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.theme-esnaf .m-side { background: var(--bg); }
.theme-esnaf .m-cats a { background: transparent; font-family: var(--font-display); font-size: var(--fs-md); border-style: dashed; }
.theme-esnaf .m-cats a.is-active { background: var(--ink); color: var(--bg); border-style: solid; }
.theme-esnaf .m-cat h2 { font-weight: 700; font-size: var(--fs-xl); color: var(--accent-ink, var(--accent)); }
.theme-esnaf .m-cat h2::after { background: none; border-bottom: 2px dashed rgba(244, 241, 230, .35); }
.theme-esnaf .m-grid { gap: 0; }
.theme-esnaf .m-open { background: transparent; border: 0; border-bottom: 1px dashed rgba(244, 241, 230, .2); border-radius: 0; padding: 16px 2px; }
.theme-esnaf .m-open:hover { box-shadow: none; background: rgba(255, 255, 255, .03); }
.theme-esnaf .m-item-name { font-weight: 700; font-size: var(--fs-lg); }
.theme-esnaf .m-price { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); color: var(--accent-ink, var(--accent)); }
.theme-esnaf .m-item-foot { margin-top: 0; }
.theme-esnaf .m-tag { background: transparent; border: 1px dashed currentColor; color: var(--muted); }
.theme-esnaf .m-al-num { border-style: dashed; }
.theme-esnaf .m-pill-out { background: transparent; color: var(--warn); border: 2px solid var(--warn); transform: rotate(-3deg); }
.theme-esnaf .m-item.is-sold-out .m-open { background: transparent; }
.theme-esnaf .m-dialog-inner { background: #24322a; }
.theme-esnaf .m-foot, .theme-izgara .m-foot { background: transparent; }

/* Koyu tek görünümlü temalarda açık renkli örnek çizimleri yumuşat */
.theme-esnaf .m-d-media.is-sample, .theme-izgara .m-d-media.is-sample { background: var(--surface); }
.theme-esnaf .m-d-media.is-sample img, .theme-izgara .m-d-media.is-sample img { opacity: .8; }

/* Alt kategoriler */
.m-sub { scroll-margin-top: 72px; }
.m-sub + .m-sub, .m-grid + .m-sub { margin-top: 20px; }
.m-sub h3 {
  margin: 0 0 12px; font: 600 var(--fs-sm)/1.3 var(--font-body); color: var(--muted);
}
html.not-latin .m-sub h3 { letter-spacing: 0; font-size: var(--fs-body); }
.m-sub-link { display: none !important; }
@media (min-width: 960px) {
  .m-sub { scroll-margin-top: 20px; }
  .m-sub-link { display: flex !important; font-size: var(--fs-sm) !important; padding: 4px 12px 4px 28px !important; color: var(--muted) !important; }
  .m-sub-link[hidden] { display: none !important; }
  .m-sub-link:hover { color: var(--ink) !important; }
}
.theme-kahve .m-sub h3, .theme-esnaf .m-sub h3 { text-align: center; }
.theme-esnaf .m-sub h3 { font: 700 var(--fs-lg)/1.2 var(--font-display); letter-spacing: 0; text-transform: none; color: var(--ink); }
.theme-izgara .m-sub h3 { font-family: var(--font-display); color: var(--accent-ink, var(--accent)); letter-spacing: .1em; }
.theme-kebap .m-sub h3 { color: var(--accent-ink, var(--accent)); }
.theme-kafe .m-sub h3 { font: 400 var(--fs-lg)/1.2 var(--font-display); letter-spacing: 0; text-transform: none; color: var(--ink); }

/* Latin dışı alfabeler: tema yazı tipleri bu harfleri içermediği için sistem yazı tipleri */
html[lang="ru"] body, html[lang="bg"] body {
  --font-display: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
html[lang="ka"] body {
  --font-display: "Noto Serif Georgian", "BPG Glaho", "Sylfaen", serif;
  --font-body: "Noto Sans Georgian", "BPG Arial", "Helvetica Neue", "Sylfaen", sans-serif;
}
html[lang="ja"] body {
  --font-display: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --font-body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, "Noto Sans JP", sans-serif;
}
html[lang="ko"] body {
  --font-display: "Apple SD Gothic Neo", "Noto Serif KR", "Malgun Gothic", serif;
  --font-body: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}
html[lang="zh"] body {
  --font-display: "Songti SC", "STSong", "Noto Serif SC", serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
html[lang="ja"] body, html[lang="ko"] body, html[lang="zh"] body { line-height: 1.7; }
html.not-latin .m-cats a, html.not-latin .m-cat h2 { letter-spacing: 0; }

/* Çok dilli seçici */
.m-langs { position: relative; }
.m-langs summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--bg); font-size: var(--fs-sm); color: var(--ink);
}
.m-langs summary::-webkit-details-marker { display: none; }
.m-langs summary::after { content: "▾"; font-size: var(--fs-2xs); color: var(--muted); }
.m-langs-list {
  position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: var(--z-bar); min-width: 190px; max-height: 70vh; overflow-y: auto;
  display: flex; flex-direction: column; padding: 8px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
}
.m-langs-list a { padding: 8px 12px; border-radius: var(--radius-md); color: var(--ink); text-decoration: none; font-size: var(--fs-body); text-align: start; }
.m-langs-list a:hover { background: var(--bg); }
.m-langs-list a[aria-current="true"] { background: var(--accent); color: var(--on-accent, var(--surface)); font-weight: 600; }
.theme-kebap .m-langs summary { background: rgba(0, 0, 0, .18); border-color: rgba(255, 255, 255, .25); color: #fbe9d6; }
/* Dil adları her alfabede düzgün görünsün diye sayfanın diline bağlı olmayan sistem yazı tipi */
.m-langs-list a, .m-langs summary {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}

/* ===== Garsona göster kartı ===== */
.m-staff-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 4px;
  min-height: 44px; padding: 8px 16px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: var(--fs-body); cursor: pointer;
}
.m-staff-dialog .m-d-body { gap: 16px; }
.m-staff-check { display: flex; align-items: flex-start; gap: 12px; font-size: var(--fs-body); cursor: pointer; }
.m-staff-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--warn); }
.m-staff-severe { padding: 12px 12px; border-radius: var(--radius-md); background: var(--warn-soft); color: var(--warn); font-weight: 600; }
.m-staff-diets { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.m-staff-show {
  padding: 16px; border: 0; border-radius: var(--radius-md); background: var(--ink); color: var(--bg); font-weight: 700; font-size: var(--fs-md); cursor: pointer;
}

/* Tam ekran kart: personel okuyacağı için temadan bağımsız, yüksek kontrastlı ve büyük */
html.staff-card-open, html.staff-card-open body { overflow: clip; }
.m-staff-card {
  position: fixed; inset: 0; z-index: var(--z-overlay); overflow-y: auto; background: var(--white); color: #111111;
  display: flex; flex-direction: column;
  padding: max(20px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.m-staff-card[hidden] { display: none !important; }
.m-staff-card-inner { flex: 1; max-width: 760px; width: 100%; margin: 0 auto; }
.m-staff-heading {
  margin: 0 0 16px; padding: 12px 16px; border-radius: var(--radius-md); background: #b42318; color: var(--white);
  font-size: clamp(1.6rem, 7vw, 2.4rem); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; text-align: center;
}
.m-staff-intro, .m-staff-diet-intro { margin: 16px 0 8px; font-size: clamp(1.25rem, 5.4vw, 1.6rem); font-weight: 700; line-height: 1.3; }
.m-staff-list, .m-staff-diets-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.m-staff-list li {
  font-size: clamp(1.5rem, 6.8vw, 2.2rem); font-weight: 800; line-height: 1.2; padding: 12px 16px;
  border: 3px solid #111111; border-radius: var(--radius-md);
}
.m-staff-diets-list li { font-size: var(--fs-cat); font-weight: 700; line-height: 1.3; padding: 8px 16px; border-left: 6px solid #111111; }
.m-staff-severe-line {
  margin: 16px 0 0; padding: 12px 16px; border-radius: var(--radius-md); background: #fde7e4; color: #8a1810; border: 3px solid #b42318;
  font-size: var(--fs-cat); font-weight: 800; line-height: 1.3;
}
.m-staff-footer { margin: 20px 0 0; font-size: clamp(1.05rem, 4.6vw, 1.3rem); font-weight: 600; line-height: 1.4; }
.m-staff-guest { max-width: 760px; width: 100%; margin: 20px auto 0; display: flex; flex-direction: column; gap: 12px; color: #444444; font-size: var(--fs-body); }
.m-staff-guest summary { cursor: pointer; font-weight: 600; }
.m-staff-guest ul { padding-inline-start: 20px; }
.m-staff-back {
  padding: 16px; border-radius: var(--radius-md); border: 2px solid #111111; background: var(--white); color: #111111; font-weight: 700; font-size: 1rem; cursor: pointer;
}
@media (orientation: landscape) and (max-height: 500px) {
  .m-staff-list { flex-direction: row; flex-wrap: wrap; }
}

.m-partner { color: var(--muted); }

/* En alttaki küçük "Çerezler ve gizlilik" bağlantısı */
.m-privacy { margin: 0; font-size: var(--fs-xs); }
.m-privacy a { color: var(--muted); }

/* ===== Garson çağır / hesabı iste (WhatsApp) ===== */
.m-call { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.m-call-table { margin: 0; font-weight: 700; font-size: var(--fs-body); color: var(--accent-ink, var(--accent)); }
.m-call-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m-call-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 12px; border-radius: var(--radius-md);
  border: 1px solid var(--line); background: var(--surface); color: var(--accent-ink, var(--accent)); font-weight: 600; font-size: var(--fs-body); cursor: pointer;
}
.m-call-dialog .m-d-body { gap: 16px; }
.m-call-label { display: flex; flex-direction: column; gap: 8px; font-weight: 600; }
.m-call-label input {
  font: inherit; font-size: var(--fs-xl); font-weight: 700; padding: 12px 12px; border-radius: var(--radius-md); border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); max-width: 12ch;
}
.m-call-note { margin: 0; }
#cart-nick { max-width: none; font-size: var(--fs-md); font-weight: 600; }
.m-field-hint { margin-top: -4px; font-size: var(--fs-xs); font-weight: 400; color: var(--muted); }
.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; }
.m-bill { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px; background: var(--bg); }
.m-bill-title { margin: 0 0 8px; font-size: 1rem; }
.m-bill-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.m-bill-items li, .m-bill-total { display: flex; justify-content: space-between; gap: 12px; }
.m-bill-sum, .m-bill-total strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.m-bill-total { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--line); font-weight: 700; }
/* Misafirin hesap özeti: ara toplam, kesin (✓) ve tahmini (≈) paylar, ödeyeceği */
.m-bill-sub { display: flex; justify-content: space-between; gap: 12px; margin: 4px 0 12px; color: var(--muted); font-size: var(--fs-sm); }
.m-bill-sub strong { font-variant-numeric: tabular-nums; color: var(--ink); }
.m-bill .m-bill-title + .m-bill-items { margin-bottom: 4px; }
.m-bill-est .m-bill-sum { color: var(--muted); }
.m-bill-mine { margin-bottom: 16px; }
/* Hesabı ödenmiş misafir: "Hesabı iste"de masa no ve gönder gizli, yalnız bilgi + yeni hesap */
.m-call-dialog.is-paid .m-call-fixed, .m-call-dialog.is-paid .m-call-label, .m-call-dialog.is-paid .m-call-note, .m-call-dialog.is-paid #call-go, .m-call-dialog.is-paid #call-result { display: none; }
.m-paid-title { color: var(--accent-ink, var(--accent)); }
.m-item-void { text-decoration: line-through; color: var(--muted); }
#orders-summary { margin: 12px 0; }
#orders-summary .m-bill-total, .m-bill-mine .m-bill-total { font-size: var(--fs-md); border-top-width: 2px; border-top-color: var(--ink); }
.m-move-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.m-move-actions > button { flex: 1 1 140px; min-height: 46px; }
/* WhatsApp'ın koyu yeşili: beyaz yazıyla okunur kontrast */
.m-call-go {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; border-radius: var(--radius-md);
  background: var(--whatsapp); color: var(--white); font-weight: 700; font-size: var(--fs-md); text-decoration: none;
}
.m-call-go.is-disabled { opacity: .45; }
.m-machine { margin: 0 0 8px; font-size: var(--fs-xs); color: var(--muted); }

/* Hikâyeler: menünün üstünde yatay kayan yuvarlaklar (Instagram benzeri) ve tam ekran görüntüleyici */
.m-stories { display: flex; gap: 16px; overflow-x: auto; padding: 12px max(16px, env(safe-area-inset-left, 0px)) 8px; scrollbar-width: none; max-width: 1200px; margin: 0 auto; }
.m-stories::-webkit-scrollbar { display: none; }
.m-story { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 76px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer; }
.m-story-ring { width: 70px; height: 70px; border-radius: 50%; padding: 4px; background: var(--accent); display: grid; place-items: center; }
.m-story-ring > img, .m-story-icon { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--bg); object-fit: cover; background: var(--saffron-soft); }
.m-story-icon { display: grid; place-items: center; font-size: var(--fs-2xl); }
.m-story.is-seen .m-story-ring { background: var(--line); }
.m-story-name { width: 100%; font-size: var(--fs-2xs); line-height: 1.2; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.m-story:focus-visible .m-story-ring { outline: 2px solid var(--focus); outline-offset: 2px; }
html.story-open { overflow: clip; } /* hikâye açıkken sayfa kaymaz; clip yapışkan öğeleri bozmaz */
.m-story-view { width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--black); color: var(--white); overflow: hidden; }
.m-story-view::backdrop { background: var(--black); }
.m-sv-stage { position: absolute; inset: 0; display: grid; place-items: center; }
.m-sv-slide { width: 100%; height: 100%; display: grid; place-items: center; }
.m-sv-image img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
@media (min-width: 700px) { .m-sv-image img { max-height: calc(100dvh - 40px); border-radius: var(--radius-md); } }
.m-sv-daily { align-content: center; justify-items: stretch; gap: 12px; max-width: 520px; margin: 0 auto; padding: 72px max(24px, env(safe-area-inset-left, 0px)) 40px; background: radial-gradient(circle at 50% 0, #5a3a1c, #1b120b 70%); box-sizing: border-box; overflow: hidden; }
@media (min-width: 560px) { .m-sv-daily { max-height: calc(100dvh - 40px); border-radius: var(--radius-md); } }
.m-sv-kicker { margin: 0; text-align: center; font-size: var(--fs-sm); font-weight: 700; color: var(--story-kicker); }
.m-sv-title { margin: 0; text-align: center; font-family: var(--font-display); font-size: var(--fs-2xl); color: var(--white); }
.m-sv-note { margin: 0; text-align: center; font-style: italic; color: #e9d9c4; }
.m-sv-list { list-style: none; margin: 8px 0 0; padding: 0; }
.m-sv-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 8px 0; border-top: 1px dashed rgba(255,255,255,.22); }
.m-sv-name { flex: 1 1 10em; min-width: 0; font-weight: 600; font-size: var(--fs-md); }
.m-sv-list .m-prices { margin-inline-start: auto; color: #f2b45a; font-weight: 700; }
.m-sv-list .m-price, .m-sv-list .m-var { color: inherit; } /* koyu hikâye zemininde temanın vurgu rengi (ör. mavi) okunmuyordu */
.m-sv-list .m-var { opacity: .75; font-weight: 400; }
.m-sv-hero { width: 100%; max-height: 28vh; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-md); }
.m-sv-list .is-sold-out .m-sv-name { text-decoration: line-through; opacity: .6; }
.m-sv-bars { position: absolute; z-index: 3; top: calc(env(safe-area-inset-top, 0px) + 10px); left: 10px; right: 10px; display: flex; gap: 4px; max-width: 520px; margin: 0 auto; }
.m-sv-bar { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.m-sv-bar i { display: block; height: 100%; width: 0; background: var(--white); }
.m-sv-close { position: absolute; z-index: 4; top: calc(env(safe-area-inset-top, 0px) + 20px); right: max(12px, env(safe-area-inset-right, 0px)); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0,0,0,.35); color: var(--white); font-size: var(--fs-xl); line-height: 1; cursor: pointer; }
.m-sv-nav { position: absolute; z-index: 2; top: 60px; bottom: 0; border: 0; background: none; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.m-sv-prev { left: 0; width: 33%; }
.m-sv-next { right: 0; width: 67%; }
.is-rtl .m-sv-prev { left: auto; right: 0; }
.is-rtl .m-sv-next { right: auto; left: 0; }
@media (prefers-reduced-motion: reduce) { .m-sv-bar i { transition: none !important; } }

/* Günün menüsü ("bugün ocakta"): menünün başında, temanın renkleriyle */
.m-daily { margin: 4px 0 20px; padding: 16px 16px 12px; background: var(--saffron-soft); border: 1px solid color-mix(in srgb, var(--saffron) 30%, transparent); border-radius: var(--radius); }
.m-daily-title { margin: 0 0 4px; font-family: var(--font-display); font-size: var(--fs-lg); color: var(--ink); }
.m-daily-note { margin: 0 0 8px; font-size: var(--fs-sm); font-style: italic; color: var(--muted); }
.m-daily-list { list-style: none; margin: 0; padding: 0; }
.m-daily-list li + li { border-top: 1px dashed var(--line); }
.m-daily-btn { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; width: 100%; padding: 8px 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: start; cursor: pointer; }
.m-daily-name { flex: 1 1 12em; min-width: 0; font-weight: 600; }
.m-daily-btn .m-prices { margin-inline-start: auto; color: var(--saffron); font-weight: 600; }
.m-daily-list .is-sold-out .m-daily-name { text-decoration: line-through; color: var(--muted); }

/* Zayıf internet: kayıttan gösterilen menü uyarısı */
.m-offline { margin: 0; padding: 8px max(16px, env(safe-area-inset-left, 0px)); font-size: var(--fs-sm); text-align: center; background: #fff4d6; color: #5c4400; border-bottom: 1px solid #f0d58a; }
@media print { .m-offline { display: none !important; } }
.m-al-free { color: var(--accent-ink, var(--accent)); font-weight: 600; }
.m-call-status { display: flex; align-items: center; gap: 12px; padding: 12px 8px 12px 12px; border-radius: var(--radius-md); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.m-call-status[hidden] { display: none; }
.m-call-status-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink, var(--accent)); }
.m-call-status-text { flex: 1; margin: 0; font-size: var(--fs-sm); line-height: 1.35; }
.m-call-status-text strong { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.m-call-status-text span { font-weight: 700; font-size: var(--fs-body); }
.m-call-status.is-ack { border-color: var(--saffron); background: var(--saffron-soft); }
.m-call-status.is-ack .m-call-status-icon { background: var(--saffron); color: var(--surface); }
.m-call-status-x { flex: none; width: 44px; height: 44px; border: 0; background: none; color: var(--muted); font-size: 1.4rem; cursor: pointer; border-radius: var(--radius-sm); }
.m-call-result { margin: 0; font-weight: 600; color: var(--accent-ink, var(--accent)); }
.m-call-result.is-error { color: var(--warn); }
button.m-call-go { border: 0; font: inherit; cursor: pointer; width: 100%; }

/* Masadan sipariş: ürün detayında "Sepete ekle", altta sepet çubuğu, sepet ve sipariş durumu penceresi */
.m-add-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.m-add { flex: 1 1 auto; min-height: 46px; padding: 0 16px; border: 0; border-radius: var(--radius-md); background: var(--accent); color: var(--on-accent, var(--surface)); font: inherit; font-weight: 700; cursor: pointer; }
.m-cartbar { position: fixed; z-index: var(--z-bar); left: 0; right: 0; bottom: 0; padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: linear-gradient(to top, var(--bg) 60%, transparent); pointer-events: none; }
.m-cartbar-btn { pointer-events: auto; display: block; width: 100%; max-width: 560px; margin: 0 auto; min-height: 54px; border: 0; border-radius: var(--radius-lg);
  background: var(--accent); color: var(--on-accent, var(--surface)); font: inherit; font-weight: 700; box-shadow: var(--shadow); cursor: pointer; }
body.has-cartbar { padding-bottom: 84px; }
html:has(body.has-cartbar) { scroll-padding-bottom: 92px; }
.m-cart-items, .m-orders, .m-order-items { list-style: none; margin: 0; padding: 0; }
.m-cart-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.m-cart-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.m-cart-name { font-weight: 600; }
.m-cart-warn { color: var(--warn); font-size: var(--fs-xs); font-weight: 600; }
.m-cart-qty { display: flex; align-items: center; gap: 8px; }
.m-qty-btn { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); font-size: var(--fs-md); cursor: pointer; }
.m-qty { min-width: 1.4em; text-align: center; font-weight: 700; }
.m-cart-price { font-weight: 600; white-space: nowrap; }
.m-cart-empty { color: var(--muted); }
.m-cart-total { font-variant-numeric: tabular-nums; display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0; font-size: var(--fs-md); }
#cart-form { display: flex; flex-direction: column; gap: 12px; }
#cart-form textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-md); font: inherit; background: var(--surface); color: var(--ink); }
.m-cart-legal { margin: 0; font-size: var(--fs-xs); }
#orders-section { margin-top: 20px; padding-top: 16px; border-top: 2px solid var(--line); }
.m-shared-item { display: flex; flex-direction: column; gap: 8px; padding: 8px 12px; margin-bottom: 4px; border: 1px solid var(--line); border-radius: var(--radius-md); }
.m-shared-row { display: flex; justify-content: space-between; gap: 12px; }
.m-share-btn { align-self: flex-start; min-height: 40px; }
/* Ortak işaretleri ("Masayla ortak", "Ben de kullandım") onay kutusu gibi: kutu + vurgulu çerçeve; seçiliyken dolu */
.m-share-btn[aria-pressed] { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--accent); color: var(--ink); font-weight: 600; }
.m-share-btn[aria-pressed]::before { content: ""; flex: none; display: grid; place-items: center; width: 18px; height: 18px; border: 2px solid var(--accent);
  border-radius: var(--radius-xs); box-sizing: border-box; font-size: var(--fs-xs); line-height: 1; }
.m-share-btn[aria-pressed="true"] { background: var(--accent-soft); }
.m-share-btn[aria-pressed="true"]::before { content: "✓"; background: var(--accent); color: var(--on-accent, var(--surface)); }
/* Bölüştürme işlemleri ("Aramızda böl", "Geri al") dolu düğme */
.m-share-hint { list-style: none; padding: 8px 0 0; }
.m-share-act { border: 0; background: var(--accent); color: var(--on-accent, var(--surface)); font-weight: 600; }
.m-order { padding: 12px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.m-order-head, .m-order-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.m-order-status { padding: 2px 12px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-ink, var(--accent)); font-weight: 700; font-size: var(--fs-sm); }
.m-order.is-bekliyor .m-order-status { background: var(--saffron-soft); color: var(--saffron); }
.m-order.is-hazir .m-order-status { background: var(--accent); color: var(--on-accent, var(--surface)); }
.m-order.is-iptal .m-order-status, .m-order.is-reddedildi .m-order-status { background: var(--warn-soft); color: var(--warn); }
.m-order-items { margin: 8px 0; font-size: var(--fs-body); }
/* Ad solda, "Masayla paylaş" sağda; ad uzunsa düğme alt satıra iner (ada yapışmasın) */
.m-order-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 4px 0; }
.m-order-note { margin: 0 0 8px; color: var(--muted); font-size: var(--fs-sm); }
.m-orders-closed { padding: 12px 12px; border-radius: var(--radius-md); background: var(--warn-soft); color: var(--warn); font-weight: 600; }

/* Sipariş hazır uyarısı (tam ekran) */
.m-keep-open { margin: 0 0 12px; padding: 8px 12px; border-radius: var(--radius-md); background: var(--accent-soft); color: var(--accent-ink, var(--accent)); font-size: var(--fs-sm); font-weight: 600; }
.m-ready { width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--accent); color: var(--on-accent, var(--surface)); }
.m-ready::backdrop { background: var(--accent); }
.m-ready-inner { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px max(24px, env(safe-area-inset-left, 0px)); text-align: center; }
.m-ready-icon { margin: 0; color: var(--accent-ink, var(--accent)); line-height: 0; animation: m-ring 1s ease-in-out 4; }
@keyframes m-ring { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
@media (prefers-reduced-motion: reduce) { .m-ready-icon { animation: none; } }
.m-ready h2 { margin: 0; font-family: var(--font-display); font-size: var(--fs-2xl); line-height: 1.1; }
.m-ready-no { margin: 0; display: flex; flex-direction: column; align-items: center; font-size: var(--fs-md); opacity: .95; }
.m-ready-no strong { font-size: 5.5rem; line-height: 1; letter-spacing: -.02em; }
/* Sipariş numarası boyu (Ayarlar → misafir ekranında sipariş numarası) */
.m-order-no { font-variant-numeric: tabular-nums; }
.m-order-no-big { font-size: var(--fs-2xl); line-height: 1; vertical-align: -.15em; }
.m-order-no-small, .m-order-title:has(.m-order-no-small) .m-order-label { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.m-ready-no strong.m-ready-big { font-size: 7rem; }
.m-ready-no strong.m-ready-small { font-size: 3rem; }
.m-ready-text { margin: 0; max-width: 22em; font-size: var(--fs-lg); }
.m-ready .m-call-go { max-width: 320px; background: var(--surface); color: var(--accent-ink, var(--accent)); }

/* Besin değerleri tablosu (ürün ayrıntısı) */
.m-nut-per { text-transform: none; letter-spacing: 0; font-weight: 400; }
.m-nut { border-collapse: collapse; width: 100%; max-width: 360px; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.m-nut th, .m-nut td { padding: 4px 0; border-bottom: 1px solid var(--line, rgba(0,0,0,.08)); font-weight: 400; }
.m-nut th { text-align: start; }
.m-nut td { text-align: end; white-space: nowrap; padding-inline-start: 12px; }
.m-nut tr.sub th { padding-inline-start: 12px; color: var(--muted); }

/* ---------- Pano: yönetim paneli sadeliği (DashStack esinli). Açık/koyu, telefonun ayarına göre. ---------- */
body.theme-pano {
  --bg: #f5f6fa; --surface: var(--white); --ink: #202224; --muted: #646d78; --line: #e6e8ee;
  --accent: #3466dc; --accent-soft: #ebf1ff; --saffron: #a05f00; --saffron-soft: #fff3dc;
  --warn: #cb3046; --warn-soft: #ffeef1; --shadow: 0 4px 18px rgba(32, 34, 36, .06);
  --font-display: "Nunito Sans", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Nunito Sans", -apple-system, "Segoe UI", sans-serif;
  --radius: 14px; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  body.theme-pano {
    --bg: #1b2431; --surface: #273142; --ink: #f1f3f7; --muted: #a3acba; --line: #34405a;
    --accent: #6f9bff; --accent-soft: #24365c; --accent-ink: #84a9ff; --saffron: #f0b45a; --saffron-soft: #3d311c;
    --warn: #ff8394; --warn-soft: #43232c; --shadow: 0 4px 18px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
.theme-pano .m-head { background: var(--surface); border-bottom: 0; box-shadow: 0 1px 0 var(--line); }
.theme-pano .m-name { font-weight: 800; letter-spacing: -.01em; }
.theme-pano .m-seg { border-radius: var(--radius-md); }
.theme-pano .m-cats a { border: 0; border-radius: var(--radius-md); background: var(--surface); box-shadow: 0 1px 0 var(--line); font-weight: 600; }
.theme-pano .m-cats a.is-active { background: var(--accent); color: var(--on-accent, var(--surface)); /* koyu modda yüzey koyu: açık mavi üstünde okunur */ box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 30%, transparent); }
.theme-pano .m-cat h2 { font-weight: 800; font-size: var(--fs-xl); }
.theme-pano .m-cat h2::after { display: none; }
.theme-pano .m-sub h3 { font: 700 var(--fs-sm)/1.2 var(--font-body); color: var(--muted); }
.theme-pano .m-open { border: 0; box-shadow: var(--shadow); }
.theme-pano .m-open:hover { box-shadow: 0 8px 26px rgba(32, 34, 36, .10); }
.theme-pano .m-item-name { font-weight: 700; }
.theme-pano .m-price { color: var(--accent-ink, var(--accent)); font-weight: 800; }
.theme-pano .m-tag { border-radius: var(--radius-sm); font-weight: 700; }
.theme-pano .m-thumb { border-radius: var(--radius-md); }
.theme-pano .m-dialog-inner { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
@media (min-width: 900px) {
  .theme-pano .m-side { background: transparent; border: 0; }
  .theme-pano .m-dialog-inner { border-radius: var(--radius-lg); }
}

/* Kategoriler açılır-kapanır, tüm temalar (assets/menu.js). transitions.dev "accordion expand": grid-rows 0fr↔1fr, ok scaleY ile döner. */
body {
  --acc-expand: 480ms;
  --acc-collapse: 340ms;
  --acc-chevron: 380ms;
  --acc-ease: cubic-bezier(0.32, 0.72, 0, 1); /* yumuşak yavaşlayan (telefon sistem animasyonlarına benzer) */
}
.m-cat.t-acc { margin-bottom: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding-inline: 12px; }
.m-cat.t-acc > h2 { margin: 0; font-size: var(--fs-cat); justify-content: stretch; }
.m-cat.t-acc > h2::before, .m-cat.t-acc > h2::after { display: none; }
.theme-kafe .m-cat.t-acc { background: rgba(255, 255, 255, .55); border: 0; }
.m-acc-thumb {
  position: relative; flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: calc(var(--radius) * .6);
  background: var(--accent-soft); color: var(--accent-ink, var(--accent)); overflow: hidden;
}
.m-acc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity var(--dur-slow) ease; }
.m-acc-title { min-width: 0; overflow-wrap: anywhere; }
.t-acc-panel-inner > :last-child { margin-bottom: 12px; } /* boşluk içeride: kapalıyken artık şerit kalmaz */
.t-acc-head {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px 8px; border: 0; background: none;
  font: inherit; color: inherit; text-align: start; cursor: pointer; border-radius: var(--radius-lg);
}
.m-acc-count { margin-inline-start: auto; font: 600 var(--fs-xs)/1 var(--font-body); color: var(--muted); background: var(--surface); padding: 4px 8px; border-radius: var(--radius-sm); font-variant-numeric: tabular-nums; }
.t-acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--acc-collapse) var(--acc-ease);
}
.t-acc[data-open="true"] .t-acc-panel {
  grid-template-rows: 1fr;
  transition: grid-template-rows var(--acc-expand) var(--acc-ease);
}
.t-acc-panel-inner {
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity calc(var(--acc-collapse) * .7) ease,
    transform var(--acc-collapse) var(--acc-ease);
}
.t-acc[data-open="true"] .t-acc-panel-inner {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--acc-expand) ease,
    transform var(--acc-expand) var(--acc-ease);
}
/* Açılırken ürünler sırayla, hafifçe yukarı kayarak gelir (ilk altısı kademeli, sonrası birlikte) */
.t-acc .m-item { animation: none; }
.t-acc[data-open="true"] .m-item { animation: m-acc-in .45s var(--acc-ease) both; animation-delay: 60ms; }
.t-acc[data-open="true"] .m-grid > .m-item:nth-child(2) { animation-delay: 100ms; }
.t-acc[data-open="true"] .m-grid > .m-item:nth-child(3) { animation-delay: 140ms; }
.t-acc[data-open="true"] .m-grid > .m-item:nth-child(4) { animation-delay: 180ms; }
.t-acc[data-open="true"] .m-grid > .m-item:nth-child(5) { animation-delay: 220ms; }
.t-acc[data-open="true"] .m-grid > .m-item:nth-child(n+6) { animation-delay: 260ms; }
@keyframes m-acc-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.t-acc-chevron {
  display: inline-flex;
  transform: scaleY(1);
  transform-origin: center;
  transition: transform var(--acc-chevron) var(--acc-ease);
}
.t-acc-chevron path { vector-effect: non-scaling-stroke; }
.t-acc[data-open="true"] .t-acc-chevron {
  transform: scaleY(-1);
}

@media (prefers-reduced-motion: reduce) {
  .t-acc-panel, .t-acc-panel-inner, .t-acc-chevron {
    transition: none !important;
  }
  .t-acc[data-open="true"] .m-item { animation: none; }
}

/* ---------- Açık / koyu görünüm (assets/mod.js: html[data-mode]; varsayılan cihazın ayarı, sağ üstteki düğmeyle değişir) ----------
 * Her temanın iki paleti var. data-mode yoksa (betik çalışmadı) temalar eski hâlinde: Sade ve Pano cihaza uyar, diğerleri sabit. */
.m-head-inner { position: relative; padding-inline-end: 56px; }
/* Açık dil listesi yapışkan kategori şeridinin (z-index 5) ve çentik bandının üstünde kalsın */
.m-head:has(.m-langs[open]) { position: relative; z-index: var(--z-head-open); }
.m-mode {
  position: absolute; top: 14px; inset-inline-end: 0; display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
}
.m-mode-moon, [data-mode="dark"] .m-mode-sun { display: none; }
[data-mode="dark"] .m-mode-moon { display: block; }

/* Sade */
html[data-mode="light"] body.theme-sade {
  --bg: #f1f2ee; --surface: #fbfcf9; --ink: #1b221e; --muted: #66706a; --line: #dde1d9; --accent: #0e5a4b; --accent-soft: #dcebe5;
  --saffron: #945b0b; --saffron-soft: #f6e8d2; --warn: #b42318; --warn-soft: #fbe9e6;
  --shadow: 0 1px 2px rgba(27, 34, 30, .06), 0 8px 24px rgba(27, 34, 30, .06); color-scheme: light;
}
html[data-mode="dark"] body.theme-sade {
  --bg: #111613; --surface: #181e1b; --ink: #e8ece9; --muted: #a2aca6; --line: #2b332f; --accent: #6cc9b0; --accent-soft: #1d3a32;
  --saffron: #e5ac57; --saffron-soft: #3a2d18; --warn: #ff8f84; --warn-soft: #3c1f1c;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25); color-scheme: dark;
}
html[data-mode="light"] body.theme-sade, html[data-mode="dark"] body.theme-sade { background: var(--bg); color: var(--ink); }

/* Pano */
html[data-mode="light"] body.theme-pano {
  --bg: #f5f6fa; --surface: var(--white); --ink: #202224; --muted: #646d78; --line: #e6e8ee; --accent: #3466dc; --accent-soft: #ebf1ff; --accent-ink: var(--accent);
  --saffron: #a05f00; --saffron-soft: #fff3dc; --warn: #cb3046; --warn-soft: #ffeef1; --shadow: 0 4px 18px rgba(32, 34, 36, .06); color-scheme: light;
}
html[data-mode="dark"] body.theme-pano {
  --bg: #1b2431; --surface: #273142; --ink: #f1f3f7; --muted: #a3acba; --line: #34405a; --accent: #6f9bff; --accent-soft: #24365c; --accent-ink: #84a9ff;
  --saffron: #f0b45a; --saffron-soft: #3d311c; --warn: #ff8394; --warn-soft: #43232c; --shadow: 0 4px 18px rgba(0, 0, 0, .25); color-scheme: dark;
}

/* Kavrum (kahve): koyuda espresso zemin, kraft yazı */
html[data-mode="dark"] body.theme-kahve {
  --bg: #1d140f; --surface: #271b14; --ink: #efe3d2; --muted: #b9a28b; --line: #47331f; --accent: #e0b58a; --accent-soft: #3a2a1c;
  --saffron: #e3a35c; --saffron-soft: #3d2b17; --warn: #ff8f84; --warn-soft: #3c1f1c; color-scheme: dark;
  background-image: radial-gradient(rgba(239, 227, 210, .04) 1px, transparent 1px);
}
html[data-mode="dark"] .theme-kahve .m-open:hover { background: rgba(255, 255, 255, .04); }

/* Kor (ızgara): açıkta kül beyazı zemin, köz turuncusu */
html[data-mode="light"] body.theme-izgara {
  --bg: #f4efea; --surface: var(--white); --ink: #1d1714; --muted: #6f6158; --line: #e3d8cf; --accent: #ae4519; --accent-soft: #fbe3d6; --accent-ink: var(--accent);
  --saffron: #975a09; --saffron-soft: #f8ead0; --warn: #b42318; --warn-soft: #fbe9e6; --shadow: 0 8px 24px rgba(29, 23, 20, .08); color-scheme: light;
}
html[data-mode="light"] .theme-izgara .m-close, html[data-mode="light"] .theme-izgara .m-tag-aci { color: var(--white); }

/* Gün Işığı (kafe): koyuda gece mavisi */
html[data-mode="dark"] body.theme-kafe {
  --display-weight: 400; /* Young Serif yalnız 400 */
  --bg: #121c27; --surface: #1b2836; --ink: #e8eff6; --muted: #9db2c6; --line: #2b3d50; --accent: #f2c14e; --accent-soft: #2e3a24;
  --saffron: #f2c14e; --saffron-soft: #3a3218; --warn: #ff8f84; --warn-soft: #3c1f1c; --shadow: 0 6px 22px rgba(0, 0, 0, .35); color-scheme: dark;
  background: linear-gradient(180deg, #1c2c3d 0, #121c27 340px) no-repeat, #121c27;
}
html[data-mode="dark"] .theme-kafe .m-cat .m-open,
html[data-mode="dark"] .theme-kafe .m-item.is-sold-out .m-open { background: var(--surface); }
html[data-mode="dark"] .theme-kafe .m-cat.t-acc { background: rgba(255, 255, 255, .04); }

/* Ocakbaşı (kebap): koyuda közlenmiş bordo */
html[data-mode="dark"] body.theme-kebap {
  --bg: #1a0e0c; --surface: #261513; --ink: #f6ebe1; --muted: #c4a79c; --line: #43251f; --accent: #c7362d; --accent-soft: #3f1d19; --accent-ink: #df8079; --on-accent: var(--white);
  --saffron: #e5a93b; --saffron-soft: #3d2c12; --warn: #ff8f84; --warn-soft: #43201c; --shadow: 0 4px 16px rgba(0, 0, 0, .4); color-scheme: dark;
}
html[data-mode="dark"] .theme-kebap .m-head { background: #a12c24; } /* sarı şehir adı ve para birimi yazısı 4,5:1 */

/* Tabildot (esnaf): açıkta tebeşir yerine kurşun kalem, krem defter */
html[data-mode="light"] body.theme-esnaf {
  --bg: #f4f1e6; --surface: #fbf9f1; --ink: #1e2a23; --muted: #5d6a61; --line: #d9d3bd; --accent: #7e6000; --accent-soft: #efe6c4;
  --saffron: #7e6000; --saffron-soft: #efe6c4; --warn: #b42318; --warn-soft: #fbe9e6; color-scheme: light;
  background: #f4f1e6;
}
html[data-mode="light"] .theme-esnaf .m-cat h2::after { border-bottom-color: var(--line); }
html[data-mode="light"] .theme-esnaf .m-open { border-bottom-color: var(--line); }
html[data-mode="light"] .theme-esnaf .m-open:hover { background: rgba(0, 0, 0, .03); }
html[data-mode="light"] .theme-esnaf .m-dialog-inner { background: var(--surface); }

/* Çizgi simgeler (inc/simgeler.php icon()): metinle aynı hizada, temanın rengini alır */
.ic { flex: none; vertical-align: -0.2em; }
.m-daily-title, .m-sv-kicker, .m-keep-open { display: flex; align-items: center; gap: 8px; }
.m-daily-title .ic { color: var(--saffron); }
.m-staff-btn, .m-call-btn, .m-call-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.m-story-icon { color: var(--saffron); }

/* Hareket (tek bir açılış anı + geri bildirim). "Hareketi azalt" açıksa hiçbiri çalışmaz. */
@media (prefers-reduced-motion: no-preference) {
  /* Menü açılınca ilk kategoriler sırayla, hafifçe yerine oturur (yalnız sayfa yüklenirken) */
  @keyframes m-rise { from { opacity: .6; transform: translateY(6px); } }
  .m-cat { animation: m-rise 240ms var(--ease-out) both; }
  /* Sepete ekleyince alttaki çubuk kısa bir "pop" yapar */
  @keyframes m-pop { 40% { transform: scale(1.04); } }
  .is-pop { animation: m-pop 260ms var(--ease-out); }
  /* Açık/koyu geçişi yumuşak */
  .m-mode svg { transition: transform var(--dur) var(--ease-out); }
  .m-mode:active svg { transform: rotate(-20deg) scale(.9); }
}

/* Sosyal medya bağlantıları (Ayarlar → Sosyal medya), alt bilginin başında */
.m-social { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.m-social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--radius-pill); border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font-weight: 600; text-decoration: none; }
.m-social a:hover { border-color: var(--accent); color: var(--accent-ink, var(--accent)); }
.m-add.is-added { filter: brightness(.9); }
.m-call-fixed { margin: 0 0 8px; font-weight: 700; font-size: var(--fs-md); }
.m-call-label[hidden] { display: none; }
/* Karttaki hızlı ekle: kartın köşesinde yuvarlak düğme (kart kendisi ayrıntıyı açan bir düğme olduğu için iç içe değil, kardeş) */
.m-item { position: relative; }
.m-quick { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 1; flex: none; width: 44px; min-height: 44px; height: 44px; padding: 0; border-radius: 50%;
  font-size: var(--fs-xl); line-height: 1; box-shadow: 0 2px 8px rgb(0 0 0 / .25); }
@media (prefers-reduced-motion: no-preference) { .m-add.is-added { animation: m-add-ok .3s ease-out; } }
@keyframes m-add-ok { from { transform: scale(.96); } to { transform: none; } }
/* Çentik bandı: sayfa kayarken içerik saatin arkasından görünmesin */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 6; }

/* ===== Telefonda sade ilk ekran: tercih + alerji tek açılır satır, personel/garson/hesap tek sıra ===== */
.m-filter-wrap > summary {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--surface); color: var(--ink); font-weight: 600; font-size: var(--fs-body); cursor: pointer; list-style: none;
}
.m-filter-wrap > summary::-webkit-details-marker { display: none; }
.m-filter-wrap > summary::after { content: "▾"; margin-inline-start: auto; color: var(--muted); }
.m-filter-wrap[open] > summary::after { content: "▴"; }
.m-filter-wrap-body { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; }
.m-call-btns.has-staff { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.m-call-btns.has-staff.no-staff { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* "Personele göster" kapalı */
/* Garson çağırma kapalı: yalnız "Personele göster", tam genişlik. Zeminle karışan açık kart yerine temanın yazı rengiyle dolu düğme
 * (her temada ve koyu modda yüksek kontrast, WCAG 1.4.11); başlık ve parantezli açıklama iki satır, sonda ok: dokunulacağı belli */
.m-call-btns.has-staff.m-staff-solo { grid-template-columns: 1fr; }
.m-call-btns.m-staff-solo > .m-staff-btn {
  flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 60px; padding: 8px 12px 8px 8px; font-size: var(--fs-body); text-align: start;
  background: var(--ink); border-color: var(--ink); color: var(--surface); box-shadow: var(--shadow-sm); transition: transform var(--dur-fast), opacity var(--dur-fast);
}
.m-call-btns.m-staff-solo > .m-staff-btn:active { transform: translateY(1px); opacity: .92; }
.m-staff-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 16%, transparent); }
.m-staff-label { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.m-staff-label strong { font-size: var(--fs-body); font-weight: 700; }
.m-staff-why { font-size: var(--fs-xs); font-weight: 400; opacity: .85; }
.m-staff-go { flex: none; opacity: .85; }
html[dir="rtl"] .m-staff-go { transform: scaleX(-1); }
.m-call-btns.has-staff > button { flex-direction: column; gap: 4px; padding: 8px 4px; font-size: var(--fs-xs); line-height: 1.2; text-align: center; color: var(--ink); }
.m-call-btns.has-staff .m-staff-btn { margin: 0; width: auto; border-radius: var(--radius-md); }
/* Telefonda personel düğmeleri altta yapışık çubuk: ilk ekranda kategoriler görünsün; sepet çubuğu bunun üstüne çıkar */
@media (max-width: 959px) {
  .m-call-btns.has-staff { position: fixed; z-index: var(--z-callbar); left: 0; right: 0; bottom: 0; gap: 8px; border-top: 1px solid var(--line); background: var(--bg);
    padding: 8px max(12px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
  .m-call-btns.has-staff > button { min-height: 52px; }
  body.has-callbar { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  body.has-callbar.has-cartbar { padding-bottom: calc(124px + env(safe-area-inset-bottom, 0px)); }
  /* Tek "Personele göster" iki satırlık açıklamayla daha uzun: son ürün ve sepet çubuğu onun arkasında kalmasın */
  body.has-callbar:has(.m-staff-solo) { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
  body.has-callbar.has-cartbar:has(.m-staff-solo) { padding-bottom: calc(148px + env(safe-area-inset-bottom, 0px)); }
  html:has(.m-staff-solo) { scroll-padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px)); }
  body.has-callbar:has(.m-staff-solo) .m-cartbar { bottom: calc(89px + env(safe-area-inset-bottom, 0px)); }
  html:has(body.has-callbar) { scroll-padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } /* klavye odağı yapışık çubuğun arkasında kalmasın */
  html:has(body.has-callbar.has-cartbar) { scroll-padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px)); }
  /* Sepet doluyken iki çubuk tek panel: sepet düğmesi çağrı düğmelerinin hemen üstünde, aynı zeminde ve daha alçak */
  body.has-callbar .m-cartbar { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); padding: 8px max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px));
    background: var(--bg); border-top: 1px solid var(--line); }
  body.has-callbar .m-cartbar-btn { max-width: none; min-height: 44px; border-radius: var(--radius-md); box-shadow: none; }
  body.has-callbar.has-cartbar .m-call-btns.has-staff { border-top: 0; }
  body.has-callbar.has-cartbar .m-call-btns.has-staff > button { min-height: 48px; }
  /* Çağrı durumu sayfanın başında kalmasın: düğmelerin hemen üstünde, nerede olursa olsun görünür */
  body.has-callbar .m-call-status { position: fixed; z-index: var(--z-callbar); left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px));
    bottom: calc(80px + env(safe-area-inset-bottom, 0px)); box-shadow: var(--shadow-lg); }
  body.has-callbar.has-cartbar .m-call-status { bottom: calc(128px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 960px) {
  .m-filter-wrap > summary { display: none; }
  .m-filter-wrap-body { padding-top: 0; gap: 16px; }
  .m-call-btns.has-staff { grid-template-columns: 1fr; }
  .m-call-btns.has-staff > button { flex-direction: row; font-size: var(--fs-body); padding: 8px 12px; }
}
.m-mobile-filters .m-filters { padding-bottom: 4px; } /* telefonda ilk kategori ekranın üst yarısında başlasın */

/* ===== İşletme logosu (inc/marka.php logo_url): ad yanında; açık kâğıt zeminli kutu, koyu temalarda da koyu logolar görünsün ===== */
.m-logo { display: block; max-height: 56px; max-width: 132px; width: auto; height: auto; object-fit: contain; padding: 4px; border-radius: var(--radius-md); background: var(--white); flex: none; }
.m-logo + .m-title { margin-inline-end: auto; }
@media (min-width: 960px) { .m-logo { max-height: 72px; max-width: 180px; } }

/* ===== Marka paketi: kapak görseli başlığın arkasında, temanın zemininden yarı saydam katmanla (yazı okunur kalsın) ===== */
.m-head.has-cover { position: relative; } /* overflow kesilmez: dil listesi başlığın dışına taşar */
.m-head.has-cover .m-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.m-head.has-cover::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 55%, transparent), color-mix(in srgb, var(--bg) 92%, transparent)); }
.m-head.has-cover .m-head-inner { position: relative; z-index: 1; padding-block: 40px 16px; }
@media (min-width: 960px) { .m-head.has-cover .m-head-inner { padding-block: 96px 28px; } }
.m-bill-shared { flex-wrap: wrap; }
.m-bill-shared .m-share-btn, .m-bill-note { flex-basis: 100%; }
.m-bill-note { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- Menü düzenleri (temadan ayrı; inc/temalar.php MENU_LAYOUTS, body.lay-<anahtar>) ---------- */
.m-acc-sub { display: block; margin-top: 6px; font: 400 .84rem/1.35 var(--font-body); color: var(--muted); text-transform: none; letter-spacing: 0; }

/* Şerit: açılır kategori başlığında görsel sağ yarıyı doldurur, kartın zeminine doğru erir */
.lay-serit .m-cat.t-acc { padding-inline: 0; overflow: hidden; }
.lay-serit .m-cat.t-acc > h2 { position: relative; }
.lay-serit .t-acc-head { padding: 16px; border-radius: 0; }
.lay-serit h2.has-img .t-acc-head { min-height: 116px; }
.lay-serit h2.has-img .m-acc-thumb {
  position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: 50%; height: auto; border-radius: 0; background: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 40%); mask-image: linear-gradient(to right, transparent, #000 40%);
}
/* Görsel kutuyu tam doldurur: ızgara öğesindeki height: 100% belirsiz kalıp resim doğal oranında taşıyordu (masaüstünde yalnız alt şerit görünüyordu) */
.lay-serit h2.has-img .m-acc-thumb img, .lay-akis .m-cat > h2.has-img .m-acc-thumb img, .lay-vitrin .m-cat > h2.has-img .m-acc-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; }
html[dir="rtl"] .lay-serit h2.has-img .m-acc-thumb { -webkit-mask-image: linear-gradient(to left, transparent, #000 40%); mask-image: linear-gradient(to left, transparent, #000 40%); }
.lay-serit h2.has-img .m-acc-title { position: relative; max-width: 56%; }
.lay-serit h2.has-img .m-acc-count { position: absolute; top: 12px; inset-inline-end: 12px; }
.lay-serit h2.has-img .t-acc-chevron {
  position: absolute; bottom: 12px; inset-inline-end: 12px; display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm);
}
.lay-serit h2.has-img .m-acc-count, .lay-serit h2.has-img .t-acc-chevron { z-index: 1; }

/* Vitrin: kategori kutuları; kategori kendi sayfasında (menu.js, body.vt-js / vt-open) */
.m-vitrin { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-block: 16px 24px; }
@media (max-width: 599px) {
  .m-vitrin:has(> .m-vt:nth-child(odd):last-child) > .m-vt:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; } /* tek sayıda kutu: ilki geniş, sonda yalnız kutu kalmasın */
}
.m-vt {
  position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; isolation: isolate;
  background: var(--accent-soft); color: var(--white); text-decoration: none; transition: transform var(--dur-fast);
}
.m-vt:active { transform: scale(.98); }
.m-vt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m-vt:not(.no-img)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0) 60%); }
.m-vt-cap { position: absolute; inset-inline: 12px; bottom: 12px; z-index: 1; display: grid; gap: 2px; }
.m-vt-cap strong {
  font: 400 var(--fs-md)/1.2 var(--font-display); overflow-wrap: anywhere; hyphens: auto;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.m-vt:not(.no-img) .m-vt-cap { text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.m-vt-cap > span { font-size: var(--fs-xs); opacity: .92; }
.m-vt.no-img { color: var(--accent-ink, var(--accent)); }
.m-vt-icon { position: absolute; top: 20px; inset-inline-start: 16px; }
.vt-js:not(.vt-open) .m-cat, .vt-open .m-cat:not(.is-shown), .vt-open .m-vitrin { display: none; }
@media (max-width: 959px) { .vt-js:not(.vt-open) .m-cats { display: none; } }
.m-vt-back { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-weight: 700; color: var(--accent-ink, var(--accent)); text-decoration: none; }

/* Vitrin kategori sayfası ve Akış: kategori geniş görsel bandıyla başlar */
.lay-akis .m-cat > h2.has-img, .lay-vitrin .m-cat > h2.has-img {
  position: relative; align-items: flex-end; aspect-ratio: 16 / 7; max-height: 320px; width: 100%; margin: 20px 0 12px; padding: 16px;
  border-radius: var(--radius); overflow: hidden; color: var(--white); font-size: clamp(1.3rem, 5.5vw, 1.8rem); text-transform: none; letter-spacing: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}
.lay-akis .m-cat > h2.has-img::before, .lay-vitrin .m-cat > h2.has-img::before {
  content: ""; position: absolute; inset: 0; z-index: 1; width: auto; height: auto; transform: none; border-radius: 0; flex: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .66), rgba(0, 0, 0, 0) 65%);
}
.lay-akis .m-cat > h2.has-img::after, .lay-vitrin .m-cat > h2.has-img::after { display: none; }
.lay-akis .m-cat > h2.has-img .m-acc-thumb, .lay-vitrin .m-cat > h2.has-img .m-acc-thumb { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }
.lay-akis .m-cat > h2.has-img > span:not(.m-acc-thumb), .lay-vitrin .m-cat > h2.has-img > span:not(.m-acc-thumb) { position: relative; z-index: 2; }
@media (max-width: 959px) { .lay-akis .m-cats a:has(.m-cat-dot) { padding-inline-start: 4px; } }
@media (min-width: 960px) { .m-cat-dot { display: none; } } /* masaüstü yan menüsü dikey liste: görsel adları kaydırıp hizayı bozuyordu */
.m-cat-dot { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }

/* Liste: basılı menü gibi; ürün fotoğrafı yok, ad ile fiyat arasında noktalı çizgi */
body.lay-liste .m-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
body.lay-liste .m-open {
  grid-template-columns: minmax(0, 1fr); height: auto; padding: 12px 2px; background: transparent !important; /* temaların sıra renkli kartlarını da ezer */
  border: 0; border-bottom: 1px dashed var(--line); border-radius: 0; box-shadow: none;
}
body.lay-liste .m-open:hover { box-shadow: none; }
body.lay-liste .m-thumb { display: none; }
body.lay-liste .m-item:has(.m-quick) .m-open { padding-inline-end: 56px; }
body.lay-liste .m-item-text { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; row-gap: 4px; }
body.lay-liste .m-item-text > * { grid-column: 1 / -1; }
body.lay-liste .m-item-name { grid-column: 1; display: flex; align-items: baseline; gap: 6px; }
body.lay-liste .m-item-name::after { content: ""; flex: 1; min-width: 16px; border-bottom: 2px dotted var(--line); }
body.lay-liste .m-item-foot { display: contents; }
body.lay-liste .m-prices { grid-column: 2; grid-row: 1; align-items: flex-end; font-weight: 700; }
body.lay-liste .m-acc-thumb { border-radius: 50%; }

/* İşlem sürerken (gönderiliyor) devre dışı düğmeler: tüm temalarda aynı görünüm; betik disabled verir (siparis.js, garson-cagir.js) */
.m-dialog button:disabled, .m-add:disabled, .m-call-go:disabled, .m-share-btn:disabled {
  opacity: .55; cursor: progress; transform: none; box-shadow: none;
}

/* Kapalı kategorinin içi çizilmez: geç yüklenen ürün fotoğrafları kategori açılana kadar inmez (Şerit'te ilk açılışta ~1 MB tasarruf) */
.t-acc:not([data-open="true"]) .t-acc-panel-inner { content-visibility: hidden; }
/* Telefonda tercihler satırının altında boşluk kalmasın: çağrı düğmeleri alt çubukta (fixed), kutunun kendisi boş yer tutuyordu */
@media (max-width: 959px) {
  .m-mobile-filters .m-filters { gap: 0; }
  .m-mobile-filters .m-filters > p:not([hidden]) { margin-top: 8px; }
  body.has-callbar .m-mobile-filters .m-call { margin-top: 0; }
}

/* Klavye: "Menüye geç" yalnız odaklanınca görünür (masaüstünde ürünlere gelmeden ~45 yan menü bağlantısı vardı) */
.m-skip {
  position: absolute; top: 8px; inset-inline-start: 8px; z-index: var(--z-overlay); transform: translateY(-200%);
  padding: 12px 16px; border-radius: var(--radius-md); background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none;
}
.m-skip:focus { transform: none; }
.m-main:focus { outline: none; }

/* Vitrin: tablette de 4 sütun (3 sütunda 7 kategoriden sonuncusu tek kalıyordu); açık fotoğraflarda yazı okunsun diye karartma koyu */
@media (min-width: 600px) { .m-vitrin { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.m-vt:not(.no-img)::after { background: linear-gradient(to top, rgba(0, 0, 0, .82) 0, rgba(0, 0, 0, .45) 40%, rgba(0, 0, 0, 0) 68%); }

/* Liste: masaüstünde ad ile fiyat arası çok açılmasın */
@media (min-width: 960px) { body.lay-liste .m-cat { max-width: 720px; } }

/* Karşılama ekranı (Ayarlar → Masa ve sipariş → Karşılama ekranı; assets/karsilama.js). Renk, yazı tipi ve köşeler temadan gelir.
 * Telefonda tam ekran: üstte işletmenin görseli, altta temanın yüzeyinde kart; düğme başparmak hizasında. Geniş ekranda ortada kart. */
html.has-welcome, html.has-welcome body { overflow: hidden; }
.m-welcome {
  --wel-r: calc(var(--radius) * 2);
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font-body); overflow-y: auto; overscroll-behavior: contain;
}
.m-welcome[open] { display: flex; flex-direction: column; }
.m-welcome::backdrop { background: rgba(14, 16, 15, .55); }
.m-wel-photo { position: relative; flex: 1 1 auto; min-height: 34vh; overflow: hidden; background: var(--line); }
.m-wel-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m-wel-body {
  position: relative; flex: none; display: flex; flex-direction: column; gap: 24px;
  padding: 32px max(24px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px));
  background: var(--surface);
}
.m-welcome.has-photo .m-wel-body { margin-top: calc(-1 * var(--wel-r)); border-radius: var(--wel-r) var(--wel-r) 0 0; padding-top: 48px; }
.m-welcome:not(.has-photo) .m-wel-body { flex: 1 1 auto; justify-content: flex-end; background: transparent; }
.m-wel-main { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.m-wel-logo { width: 72px; height: 72px; object-fit: contain; padding: 8px; border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.m-welcome.has-photo .m-wel-logo { position: absolute; top: -36px; inset-inline-start: max(24px, env(safe-area-inset-left, 0px)); }
.m-welcome:not(.has-photo) .m-wel-logo { width: 88px; height: 88px; margin-bottom: 16px; }
.m-wel-name { margin: 0; font: var(--display-weight) clamp(1.9rem, 8vw, 2.6rem)/1.08 var(--font-display); letter-spacing: -.01em; text-wrap: balance; }
.m-wel-city { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.m-wel-text { margin: 8px 0 0; font-size: var(--fs-md); line-height: 1.45; text-wrap: pretty; max-width: 34ch; }
.m-wel-counter {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; margin-top: 16px; padding: 12px 16px;
  border-radius: var(--radius-md); background: var(--accent-soft); color: var(--ink);
}
.m-wel-counter .m-wel-ic { flex: none; margin-top: 2px; color: var(--accent-ink, var(--accent)); }
.m-wel-counter p { margin: 0; font-size: var(--fs-sm); line-height: 1.4; }
.m-wel-counter strong { display: block; font-size: var(--fs-body); }
.m-wel-counter span { color: var(--muted); }
.m-wel-langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.m-wel-langs a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 4px 14px; border: 1px solid var(--line); border-radius: var(--radius-pill);
  color: var(--ink); text-decoration: none; font-size: var(--fs-sm);
}
.m-wel-more { width: 100%; margin-top: 16px; }
.m-wel-more summary {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 14px; border: 1px solid var(--line); border-radius: var(--radius-pill);
  width: fit-content; cursor: pointer; list-style: none; font-size: var(--fs-sm); font-weight: 600;
}
.m-wel-more summary::-webkit-details-marker { display: none; }
.m-wel-more-hint { color: var(--muted); font-weight: 400; }
.m-wel-more .m-wel-langs { margin-top: 12px; }
.m-wel-langs a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); font-weight: 600; }
.m-wel-go {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; padding: 0 24px; border: 0;
  border-radius: var(--radius-md); background: var(--accent); color: var(--on-accent, var(--surface)); font: inherit; font-size: var(--fs-md); font-weight: 700; cursor: pointer;
  transition: filter var(--dur-fast);
}
.m-wel-go:hover { filter: brightness(1.08); }
.m-wel-go:active { transform: translateY(1px); }
html[dir="rtl"] .m-wel-arrow { transform: scaleX(-1); }
/* Açılış: kart aşağıdan yerine oturur; kapanış: ekran söner. Hareketi azalt ayarında yok. */
@media (prefers-reduced-motion: no-preference) {
  .m-welcome[open] .m-wel-body { animation: m-wel-in var(--dur-slow) var(--ease-out) both; }
  .m-welcome[open] .m-wel-photo img { animation: m-wel-photo 1.2s var(--ease-out) both; }
  .m-welcome.is-leaving { opacity: 0; transition: opacity .2s ease-in; }
}
@keyframes m-wel-in { from { opacity: 0; transform: translateY(24px); } }
@keyframes m-wel-photo { from { transform: scale(1.04); } }
@media (min-width: 720px) {
  .m-welcome { width: min(440px, calc(100% - 32px)); height: auto; max-height: calc(100% - 48px); margin: auto; border-radius: var(--wel-r); box-shadow: var(--shadow-lg); }
  .m-wel-photo { flex: none; height: 300px; min-height: 0; }
  .m-welcome:not(.has-photo) .m-wel-body { padding-top: 40px; }
}
/* Dil seçimi ve sosyal bağlantılar aynı sessiz satırda (üçüncül eylemler; ana düğmelerle yarışmasın) */
.m-wel-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-top: 16px; }
.m-wel-meta > .m-wel-more, .m-wel-meta > .m-wel-langs { width: auto; margin-top: 0; }
.m-wel-meta > .m-wel-more[open] { flex-basis: 100%; }
.m-wel-social { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.m-wel-social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); transition: color var(--dur-fast), border-color var(--dur-fast); }
.m-wel-social a:hover { color: var(--ink); border-color: var(--ink); }
/* Kampanyalar: ikincil düğme, içeriğin önizlemesi (hikâye halkaları) ne açılacağını önceden söyler */
.m-wel-stories {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 16px 8px 8px; border: 1px solid var(--line);
  border-radius: var(--radius-md); background: transparent; color: var(--ink); font: inherit; font-weight: 600; text-align: start; cursor: pointer;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.m-wel-stories:hover { border-color: var(--ink); }
.m-wel-stories-text { flex: 1 1 auto; }
.m-wel-stories + .m-wel-go { margin-top: -12px; }
.m-wel-thumbs { display: flex; flex: none; }
.m-wel-thumbs > span {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--saffron-soft); color: var(--saffron);
  box-shadow: 0 0 0 2px var(--accent), 0 0 0 4px var(--surface);
}
.m-welcome:not(.has-photo) .m-wel-thumbs > span { box-shadow: 0 0 0 2px var(--accent), 0 0 0 4px var(--bg); }
.m-wel-thumbs > span + span { margin-inline-start: -10px; }
.m-wel-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media print { .m-welcome { display: none !important; } }

/* Self servis notu: menünün başında, karşılama ekranı kapalıyken de görünür */
.m-self { display: flex; align-items: center; gap: 8px; max-width: 1180px; margin: 12px auto 0; padding: 10px 14px; border-radius: var(--radius-md);
  background: var(--accent-soft); color: var(--ink); font-size: var(--fs-sm); font-weight: 600; }
.m-self .ic { flex: none; color: var(--accent-ink, var(--accent)); }
