/* QR Menu — PUBLIC + ortak temel CSS. TÜM sayfalar yükler. Panele-özel stiller panel.css'te. */



:root {
  
  --bg:        #faf7f0;
  --surface:   #ffffff;
  --text:      #1a1612;
  --accent:    #c8714b;
  --muted:     #7a6f64;
  --rule:      rgba(26, 22, 18, 0.10);

  
  --p-bg:        #f5f5f4;
  --p-surface:   #ffffff;
  --p-surface-2: #fafaf9;
  --p-text:      #18181b;
  --p-text-2:    #3f3f46;
  --p-muted:     #71717a;
  --p-rule:      #e4e4e7;
  --p-line:      #d4d4d8;
  --p-accent:    #c8714b;
  --p-accent-fg: #ffffff;
  --p-danger:    #be1717;
  --p-ok:        #15803d;
  --p-warn:      #b45309;
  --p-info:      #2563eb;
  --p-sidebar:   #18181b;
  --p-sidebar-fg:#e4e4e7;
  --p-sidebar-active: #27272a;

  
  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans:  'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;
  --maxw:        1100px;
  --maxw-narrow: 720px;
  --sidebar-w:   240px;

  
  --sh-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 1px rgba(0,0,0,0.03);
  --sh-md: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --sh-lg: 0 12px 32px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.05);
  --sh-xl: 0 24px 60px rgba(0,0,0,0.18), 0 8px 14px rgba(0,0,0,0.06);
}

[data-theme="dark"] {
  --p-bg:        #0a0a0a;
  --p-surface:   #161616;
  --p-surface-2: #1f1f1f;
  --p-text:      #f4f4f5;
  --p-text-2:    #d4d4d8;
  --p-muted:     #a1a1aa;
  --p-rule:      #27272a;
  --p-line:      #3f3f46;
  --p-accent:    #e08a64;
  --p-accent-fg: #0a0a0a;
  --p-info:      #60a5fa;
  --p-sidebar:   #050505;
  --p-sidebar-fg:#e4e4e7;
  --p-sidebar-active: #18181b;
  --sh-sm: 0 1px 2px rgba(0,0,0,0.4);
  --sh-md: 0 4px 12px rgba(0,0,0,0.5), 0 2px 4px rgba(0,0,0,0.35);
  --sh-lg: 0 12px 32px rgba(0,0,0,0.6), 0 4px 8px rgba(0,0,0,0.4);
  --sh-xl: 0 24px 60px rgba(0,0,0,0.7);
}


*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.theme-public {
  background: var(--bg);
  color: var(--text);
}
body.theme-panel  {
  background: var(--p-bg);
  color: var(--p-text);
}

a { color: inherit; }
img, svg, video { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

::selection { background: var(--accent); color: #fff; }
.theme-panel ::selection { background: var(--p-accent); color: var(--p-accent-fg); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}


.root-home {
  min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center;
  padding: 6vh 22px;
  background: var(--bg);
}
.root-home__inner { max-width: 600px; text-align: center; width: 100%; }
.root-home__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 24px;
}
.root-home__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(54px, 14vw, 132px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0 0 22px;
  color: var(--text);
}
.root-home__title em { font-style: italic; font-weight: 400; color: var(--accent); }
.root-home__lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 2.4vw, 22px);
  line-height: 1.45;
  margin: 0 0 30px;
}
.root-home__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 32px;
}
.root-home__langs {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.root-home__langs a { text-decoration: none; opacity: 0.45; padding: 6px 8px; }
.root-home__langs a.is-on { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }


.r-home { min-height: 100dvh; }

.r-topbar {
  position: sticky; top: 0;
  z-index: 6;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.r-topbar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  min-height: 48px;
}
.r-topbar__brand {
  display: inline-flex; align-items: baseline; gap: 6px;
  min-width: 0;
}
.r-topbar__mark {
  font-family: var(--serif);
  font-style: italic; font-weight: 600;
  font-size: 22px; letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.r-topbar__lang {
  display: flex; gap: 2px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  border-radius: var(--r-pill);
  padding: 3px;
}
.r-topbar__lang a {
  text-decoration: none;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  color: var(--muted);
}
.r-topbar__lang a.is-on {
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}


.r-cover {
  position: relative;
  max-width: var(--maxw);
  margin: 14px auto 0;
  padding: 0 16px;
}
.r-cover__img {
  width: 100%;
  aspect-ratio: 21/9;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--text) 6%, var(--bg));
}
.r-cover--gradient {
  width: calc(100% - 32px);
  aspect-ratio: 21/9;
  max-height: 200px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 35%, var(--bg)) 0%,
    color-mix(in srgb, var(--accent) 14%, var(--bg)) 60%,
    var(--bg) 100%);
  position: relative;
  margin: 0 16px;
  overflow: hidden;
}
.r-cover--gradient::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--accent) 25%, transparent) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, color-mix(in srgb, var(--text) 8%, transparent) 0%, transparent 50%);
}

@media (min-width: 768px) {
  .r-cover { padding: 0 22px; margin-top: 22px; }
  .r-cover__img { max-height: 360px; }
  .r-cover--gradient { margin: 0 22px; max-height: 260px; }
}


.r-intro {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 18px 8px;
  text-align: left;
}
.r-intro__eyebrow {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}
.r-intro__title {
  font-family: var(--serif);
  font-weight: 500; font-style: italic;
  font-size: clamp(30px, 6.5vw, 52px);
  line-height: 1.04; letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--text);
  word-break: break-word;
}
.r-intro__socials {
  display: flex; gap: 10px;
  margin: 4px 0 0;
}
.social-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--accent);
  text-decoration: none;
  transition: background 0.15s, transform 0.08s;
}
.social-btn:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); transform: translateY(-1px); }
.social-btn:active { transform: translateY(0); }
.social-btn svg { width: 18px; height: 18px; }
@media (min-width: 768px) {
  .r-intro { padding: 26px 22px 6px; }
  .social-btn { width: 44px; height: 44px; }
  .social-btn svg { width: 20px; height: 20px; }
}


.r-section { padding: 24px 18px 32px; max-width: var(--maxw); margin: 0 auto; }
@media (min-width: 768px) { .r-section { padding: 30px 22px 40px; } }
.r-section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 0 0 22px;
  gap: 10px;
}
.r-section__title {
  font-family: var(--serif);
  font-weight: 500; font-style: italic;
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: -0.01em;
  margin: 0;
}
.r-section__sub {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.search-btn {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--rule);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.08s;
}
.search-btn:hover { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); transform: translateY(-1px); }
.search-btn svg { width: 18px; height: 18px; }
.r-section__head-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }


.r-catnav__search {
  flex-shrink: 0;
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: var(--r-pill);
  border: 1px solid var(--rule);
  background: var(--surface);
  color: inherit;
}
.r-catnav__search svg { width: 16px; height: 16px; }


.r-search {
  display: none;
}
body.search-open .r-search { display: block; }
body.search-open [data-search-hide] { display: none !important; }
.r-search__bar {
  position: sticky; top: 0;
  z-index: 8;
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.r-search__icon {
  display: inline-grid; place-items: center;
  width: 24px; height: 24px;
  color: var(--muted);
  flex-shrink: 0;
}
.r-search__icon svg { width: 20px; height: 20px; }
.r-search__input {
  flex: 1; min-width: 0;
  font-family: var(--sans);
  font-size: 16px;
  padding: 11px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  outline: none;
}
.r-search__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.r-search__close {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--rule);
  color: var(--text);
  flex-shrink: 0;
}
.r-search__close svg { width: 18px; height: 18px; }
.r-search__results { max-width: var(--maxw); margin: 0 auto; padding: 20px 16px 60px; }
.r-search__hint {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  padding: 28px 12px;
  margin: 0;
  font-size: 15px;
}
.r-search__results .item-grid { padding: 0; }
@media (min-width: 768px) {
  .r-search__bar { padding: 14px 22px; }
  .r-search__results { padding: 22px 22px 60px; }
}


.featured-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 75%;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 20px 8px;
  margin: 0 -20px;
  scrollbar-width: none;
}
.featured-row::-webkit-scrollbar { display: none; }
@media (min-width: 600px) { .featured-row { grid-auto-columns: 45%; } }
/* Single horizontal scroll strip on all sizes (mobile + desktop). On desktop each
   card is ~30% so ~3 show with the next peeking, signalling it scrolls sideways. */
@media (min-width: 900px) { .featured-row { grid-auto-columns: 30%; } }


.cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 600px) { .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 900px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }

.cat-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  aspect-ratio: 16/10;
  isolation: isolate;
}
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.cat-card__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.cat-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    transparent 35%,
    rgba(0,0,0,0.72) 100%);
}
.cat-card--no-img {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 18%, var(--bg)),
    var(--bg));
}
.cat-card--no-img .cat-card__overlay { display: none; }
.cat-card__body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 18px;
  color: #fff;
}
.cat-card--no-img .cat-card__body { color: var(--text); }
.cat-card__name {
  font-family: var(--serif);
  font-weight: 500; font-style: italic;
  font-size: clamp(22px, 3.4vw, 28px);
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  line-height: 1.1;
}
.cat-card__count {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}
.cat-card__count::before { content: "·"; margin-right: 6px; opacity: 0.6; }


.r-catnav {
  position: sticky; top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.r-catnav__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  min-width: 0;
}
@media (min-width: 768px) { .r-catnav__inner { padding: 12px 22px; gap: 12px; } }
.r-catnav__back {
  flex-shrink: 0;
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: var(--r-pill);
  border: 1px solid var(--rule);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}
.r-catnav__back svg { width: 18px; height: 18px; }
.r-catnav__chips {
  display: flex; gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}
.r-catnav__chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  background: var(--surface);
  border: 1px solid var(--rule);
  color: var(--muted);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip:hover { color: var(--text); border-color: color-mix(in srgb, var(--text) 30%, transparent); }
.chip.is-active {
  background: var(--text); color: var(--bg); border-color: var(--text);
}

.r-cat__head {
  max-width: var(--maxw); margin: 0 auto;
  padding: 28px 20px 14px;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px;
}
.r-cat__head-text { min-width: 0; }
.r-cat__title {
  font-family: var(--serif);
  font-weight: 500; font-style: italic;
  font-size: clamp(28px, 5vw, 42px);
  letter-spacing: -0.02em;
  margin: 0;
}
.r-cat__sub {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}


.grid-toggle {
  display: inline-flex;
  flex-shrink: 0;
  padding: 3px;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  gap: 2px;
}
.grid-toggle__btn {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  color: var(--muted);
  width: 34px; height: 30px;
  display: inline-grid; place-items: center;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.grid-toggle__btn svg { width: 16px; height: 16px; }
.grid-toggle__btn:hover { color: var(--text); }
.grid-toggle__btn.is-active {
  background: var(--text);
  color: var(--bg);
}
@media (min-width: 600px) {
  .grid-toggle { display: none; } 
}


.item-grid {
  max-width: var(--maxw); margin: 0 auto;
  padding: 18px 20px 60px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
/* 1<->2 sütun toggle'ı yalnız MOBİL bir kolaylık (toggle >=600px'te zaten gizli;
   grid o genişlikte otomatik çok-sütuna geçiyor). is-cols-2 override'larını mobile'a
   scope'la ki kalıcı/varsayılan 2-sütun tercihi masaüstü otomatik-sütunları ezmesin. */
@media (max-width: 599.98px) {
  .item-grid.is-cols-2 {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 18px 14px 60px;
  }
  .item-grid.is-cols-2 .item-card__body { padding: 10px 12px 12px; }
  .item-grid.is-cols-2 .item-card__name { font-size: 14px; }
  .item-grid.is-cols-2 .item-card__desc { font-size: 11.5px; -webkit-line-clamp: 2; }
  .item-grid.is-cols-2 .item-card__price { font-size: 12.5px; }
  .item-grid.is-cols-2 .item-card__chev { width: 24px; height: 24px; }
  .item-grid.is-cols-2 .item-card__chev svg { width: 12px; height: 12px; }
  .item-grid.is-cols-2 .item-card__pill { font-size: 8.5px; padding: 3px 6px; }
  .item-grid.is-cols-2 .ic-aller { min-width: 20px; height: 20px; font-size: 11.5px; padding: 0 4px; }
  /* Kategori listesi 2-sütun toggle'ı (menü anasayfası) — kompakt kategori kartları. */
  .cat-grid.is-cols-2 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-grid.is-cols-2 .cat-card { aspect-ratio: 4 / 3; }
  .cat-grid.is-cols-2 .cat-card__name { font-size: 17px; }
  .cat-grid.is-cols-2 .cat-card__body { padding: 10px 12px; }
  .cat-grid.is-cols-2 .cat-card__count { font-size: 9.5px; letter-spacing: 0.1em; }
}
@media (min-width: 600px) { .item-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (min-width: 900px) { .item-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

.item-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  padding: 0;
  scroll-snap-align: start;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s;
  position: relative;
}
.item-card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: color-mix(in srgb, var(--text) 18%, var(--rule)); }
.item-card.is-out { opacity: 0.6; }
.item-card__img {
  width: 100%;
  aspect-ratio: 4/3;
  background: color-mix(in srgb, var(--text) 5%, var(--bg));
  position: relative;
  overflow: hidden;
}
.item-card__img img { width: 100%; height: 100%; object-fit: cover; }
.item-card__img--empty {
  background: repeating-linear-gradient(135deg,
    color-mix(in srgb, var(--text) 4%, var(--bg)),
    color-mix(in srgb, var(--text) 4%, var(--bg)) 8px,
    color-mix(in srgb, var(--text) 7%, var(--bg)) 8px,
    color-mix(in srgb, var(--text) 7%, var(--bg)) 16px);
}
.item-card__body {
  padding: 14px 16px 16px;
  display: flex; flex-direction: column;
  gap: 6px;
  flex: 1;
}
.item-card__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px; line-height: 1.25;
  margin: 0;
  word-break: break-word;
}
.is-out .item-card__name { text-decoration: line-through; }
.item-card__desc {
  font-size: 13px; line-height: 1.45;
  color: color-mix(in srgb, var(--text) 78%, transparent);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.item-card__foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
  padding-top: 6px;
  gap: 10px;
}
.item-card__price {
  font-family: var(--mono);
  font-size: 14px; font-weight: 600;
  color: var(--text);
}
.item-card__chev {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--text) 6%, transparent);
  color: var(--muted);
}
.item-card__chev svg { width: 14px; height: 14px; }
.item-card__pill {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--mono);
  font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--accent); color: #fff;
  padding: 4px 8px;
  border-radius: var(--r-pill);
  font-weight: 500;
  z-index: 2;
}
.item-card__pill--out {
  background: color-mix(in srgb, var(--text) 80%, transparent);
}

/* Compact allergen icons on the card — a hint of what's inside; the full
   labelled list opens on tap. Overflow collapses to a "+N" badge. */
.item-card__allergens {
  display: flex; flex-wrap: wrap; align-items: center; gap: 5px;
  margin-top: 2px;
}
.ic-aller {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 5px;
  font-size: 12.5px; line-height: 1;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--text) 7%, transparent);
}
.ic-aller--good { background: color-mix(in srgb, #15803d 15%, transparent); }
.ic-aller--custom { background: color-mix(in srgb, #eab308 30%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, #eab308 55%, transparent); }
.ic-aller--more {
  font-family: var(--mono);
  font-size: 11px; font-weight: 600;
  color: var(--muted);
  background: color-mix(in srgb, var(--text) 11%, transparent);
}


.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-backdrop.is-open { opacity: 1; pointer-events: auto; }

.modal {
  position: fixed;
  z-index: 100;
  background: var(--surface);
  color: var(--text);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.25s ease;

  
  inset: auto 0 0 0;
  max-height: 92vh;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  transform: translateY(40px);
}
.modal.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }

@media (min-width: 720px) {
  .modal {
    inset: 50% auto auto 50%;
    transform: translate(-50%, calc(-50% + 20px));
    width: min(720px, 92vw);
    max-height: 90vh;
    border-radius: var(--r-xl);
    box-shadow: var(--sh-xl);
  }
  .modal.is-open { transform: translate(-50%, -50%); }
}

.modal__scroll {
  max-height: inherit;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal__close {
  position: absolute; top: 12px; right: 12px;
  z-index: 5;
  width: 38px; height: 38px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.92);
  color: #1a1612;
  border: 1px solid rgba(0,0,0,0.08);
  display: inline-grid; place-items: center;
  box-shadow: var(--sh-sm);
}
.modal__close svg { width: 18px; height: 18px; }
.modal__handle {
  display: block;
  width: 44px; height: 4px;
  background: rgba(0,0,0,0.18);
  border-radius: var(--r-pill);
  margin: 8px auto 0;
}
@media (min-width: 720px) { .modal__handle { display: none; } }

.modal__img {
  width: 100%;
  aspect-ratio: 4/3;
  background: color-mix(in srgb, var(--text) 6%, var(--bg));
  overflow: hidden;
  position: relative;
}
.modal__img img { width: 100%; height: 100%; object-fit: cover; }
.modal__img--empty {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 15%, var(--bg)),
    var(--bg));
  aspect-ratio: 4/2;
}
.modal__body { padding: 22px 22px 28px; }
.modal__row {
  display: flex; align-items: baseline; gap: 12px;
  margin: 0 0 8px;
  flex-wrap: wrap;
}
.modal__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 4vw, 28px);
  line-height: 1.2;
  margin: 0;
  flex: 1; min-width: 0;
  word-break: break-word;
}
.is-out .modal__name { text-decoration: line-through; color: var(--muted); }
.modal__price {
  font-family: var(--mono);
  font-size: 18px; font-weight: 600;
  color: var(--text);
}
.modal__pills {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 4px 0 14px;
}
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.pill--out {
  background: color-mix(in srgb, var(--text) 8%, transparent);
  color: var(--muted);
  border-color: var(--rule);
}
.modal__desc {
  font-size: 15px; line-height: 1.6;
  color: color-mix(in srgb, var(--text) 86%, transparent);
  margin: 0 0 18px;
}
.modal__section {
  margin: 18px 0 0;
}
.modal__label {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.modal__ingredients {
  font-size: 14px; line-height: 1.55;
  color: color-mix(in srgb, var(--text) 84%, transparent);
  margin: 0;
}
.allergen-list {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.allergen {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--rule);
  color: var(--text);
}
.allergen__icon {
  width: 18px; height: 18px;
  display: inline-grid; place-items: center;
  font-size: 13px;
}
.allergen--good { background: color-mix(in srgb, #15803d 12%, transparent); border-color: color-mix(in srgb, #15803d 35%, transparent); color: #15803d; }
.allergen--warn { background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--accent); }
.allergen--custom { background: color-mix(in srgb, #eab308 18%, transparent); border-color: color-mix(in srgb, #eab308 50%, transparent); color: #a16207; }


.public-message {
  min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center;
  padding: 6vh 22px;
  background: var(--bg);
}
.public-message__inner { max-width: 540px; text-align: center; }
.public-message__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(40px, 9vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  color: var(--text);
}
.public-message__title em { font-style: italic; font-weight: 400; color: var(--accent); }
.public-message__lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--muted);
  margin: 0;
}




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


body.modal-open { overflow: hidden; }


html, body {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}
.app-shell, .app-main, .page,
.r-home, .r-section, .r-intro, .r-cover, .r-search,
.cat-grid, .item-grid, .cats, .items {
  min-width: 0;
  max-width: 100%;
}
.cat-block, .it-row, .rest-card, .card {
  min-width: 0;
  max-width: 100%;
}
.it-row__main, .it-row__info, .cat-block__head, .cat-block__title-wrap {
  min-width: 0;
}
.cat-block__title, .it-row__name { min-width: 0; }



/* ===== Anasayfa: "Bizimle iletişime geç" formu ===== */
.root-contact {
  background: var(--bg);
  padding: 8vh 22px 12vh;
  border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
}
.root-contact__inner { max-width: 560px; margin: 0 auto; text-align: center; }
.root-contact__title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(28px, 6vw, 44px); letter-spacing: -0.02em;
  margin: 0 0 10px; color: var(--text);
}
.root-contact__lede { color: var(--muted); margin: 0 0 28px; font-size: 16px; }
.contact-form { display: grid; gap: 12px; text-align: left; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .contact-form__row { grid-template-columns: 1fr; } }
.contact-form input,
.contact-form textarea {
  width: 100%; font: inherit; font-family: var(--sans); color: var(--text);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--text) 16%, transparent);
  border-radius: 12px; padding: 13px 15px; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
/* honeypot — ekranda yok, sadece botlar doldurur */
.contact-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.contact-form__btn {
  justify-self: start; margin-top: 4px; font: inherit; font-family: var(--sans);
  font-weight: 600; background: var(--accent); color: #fff; border: none;
  border-radius: 12px; padding: 13px 30px; cursor: pointer; transition: filter .15s ease;
}
.contact-form__btn:hover { filter: brightness(1.06); }
.contact-form__btn:disabled { opacity: .6; cursor: default; }
.contact-form__msg { margin: 6px 0 0; font-size: 14px; font-weight: 500; }
.contact-form__msg.is-ok  { color: #15803d; }
.contact-form__msg.is-err { color: #dc2626; }


/* ===== Anasayfa CTA butonları (demo + iletişim) ===== */
.root-home__cta {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin: 28px 0 26px;
}
.root-btn {
  display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 15px;
  text-decoration: none; border-radius: 999px; padding: 13px 26px;
  border: 1px solid transparent; transition: filter .15s ease, transform .15s ease, background .15s ease;
}
.root-btn--primary { background: var(--accent); color: #fff; }
.root-btn--primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.root-btn--ghost {
  background: transparent; color: var(--text);
  border-color: color-mix(in srgb, var(--text) 22%, transparent);
}
.root-btn--ghost:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.contact-form__flash { margin: 0 0 18px; text-align: center; font-size: 15px; }

/* ===== Anasayfa "Örnek menümüz" canlı önizlemesi ===== */
.root-demo {
  background: var(--bg);
  border-top: 1px solid var(--rule);
  padding: 56px 22px 64px;
}
.root-demo__inner { max-width: 560px; margin: 0 auto; text-align: center; }
.root-demo__title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(28px, 5vw, 40px); letter-spacing: -0.02em;
  margin: 0 0 10px; color: var(--text);
}
.root-demo__lede { color: var(--muted); font-size: 16px; margin: 0 0 30px; }
.root-demo__phone { display: flex; justify-content: center; margin: 0 0 28px; }
.phone-mock {
  width: 320px; max-width: 100%; height: 620px;
  border: 10px solid #14110d; border-radius: 38px;
  background: #14110d; box-shadow: 0 24px 60px rgba(0,0,0,.28);
  overflow: hidden; position: relative;
}
.phone-mock__screen {
  display: block; border: 0; background: #fff;
  width: 375px; height: 750px;
  transform: scale(0.8); transform-origin: 0 0;
}
.root-demo__more { margin-top: 2px; }
@media (max-width: 420px) {
  .phone-mock { width: 280px; height: 545px; border-radius: 32px; }
  .phone-mock__screen { transform: scale(0.6933); }
}

/* Görsel olarak gizli ama ekran okuyucu + arama motorları için erişilebilir metin */
.sr-only {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ===== Anasayfa SEO içerik + SSS bölümü ===== */
.root-seo {
  background: var(--bg);
  border-top: 1px solid var(--rule);
  padding: 56px 22px 60px;
}
.root-seo__inner { max-width: 760px; margin: 0 auto; }
.root-seo__title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(26px, 4.5vw, 36px); letter-spacing: -0.02em;
  margin: 0 0 14px; color: var(--text); text-align: center;
}
.root-seo__lede {
  color: var(--muted); font-size: 16px; line-height: 1.7;
  margin: 0 auto 34px; max-width: 640px; text-align: center;
}
.root-seo__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 50px;
}
.root-seo__card {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 16px; padding: 22px 20px;
}
.root-seo__card h3 { font-family: var(--serif); font-size: 18px; margin: 0 0 8px; color: var(--text); }
.root-seo__card p  { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0; }
.root-faq { max-width: 640px; margin: 0 auto; }
.root-faq__item { border-bottom: 1px solid var(--rule); }
.root-faq__item summary {
  cursor: pointer; list-style: none; padding: 17px 30px 17px 2px; position: relative;
  font-family: var(--serif); font-size: 17px; color: var(--text);
}
.root-faq__item summary::-webkit-details-marker { display: none; }
.root-faq__item summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 22px; line-height: 1; color: var(--accent);
}
.root-faq__item[open] summary::after { content: '\2212'; }
.root-faq__item p { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0 2px 17px; }
@media (max-width: 640px) {
  .root-seo__grid { grid-template-columns: 1fr; }
}

/* ===== Anasayfa: yeni yönetmelik uyum bölümü ===== */
.root-compliance {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 6%, var(--bg)) 0%, var(--bg) 60%);
}
.root-compliance__badge {
  display: block; width: max-content; margin: 0 auto 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  padding: 6px 14px; border-radius: var(--r-pill);
}
.root-timeline {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  margin: 0 auto 40px; max-width: 640px;
}
.root-timeline__item {
  flex: 1 1 240px; display: flex; flex-direction: column; gap: 4px;
  background: var(--surface); border: 1px solid var(--rule);
  border-left: 3px solid var(--accent); border-radius: 12px; padding: 16px 18px;
}
.root-timeline__date {
  font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent);
}
.root-timeline__label { font-size: 14.5px; color: var(--text); line-height: 1.4; }

/* ===== Menü: kalori rozeti (kart) + besin değerleri (modal) ===== */
.item-card__kcal {
  margin-right: auto;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  color: var(--muted); letter-spacing: .02em; white-space: nowrap;
}
.nutri-facts { display: flex; flex-direction: column; }
.nutri-facts__row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px;
}
.nutri-facts__row:last-child { border-bottom: 0; }
.nutri-facts__k { color: var(--muted); }
.nutri-facts__v { color: var(--text); font-weight: 500; }
.nutri-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.nutri-flags:empty { display: none; }
.nutri-flag {
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

/* ===== Menü sayfası alt footer'ı (vipmenum kredisi) ===== */
.menu-footer {
  margin-top: 44px;
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid color-mix(in srgb, var(--text) 9%, transparent);
  display: flex; flex-wrap: wrap; gap: 4px 8px; justify-content: center; align-items: center;
  text-align: center; font-size: 12px; color: var(--muted);
}
.menu-footer a { color: var(--muted); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--muted) 40%, transparent); }
.menu-footer a:hover { color: var(--accent); border-color: var(--accent); }
.menu-footer__dot { opacity: .5; }

/* Boş-durum kutusu — public menü ("kategori/ürün yok", arama sonucu yok) + panel
   ortak kullanır; --p-* değişkenleri :root'ta tanımlı, public'te de çözülür. */
.empty {
  /* Shared by panel (has --p-* theme vars) AND public menu pages (no --p-* there).
     Fall back to the public theme vars so empty states stay themed in both. */
  background: var(--p-surface, var(--surface, #ffffff));
  border: 1px dashed var(--p-line, var(--rule, rgba(26, 22, 18, 0.10)));
  padding: 50px 20px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--p-muted, var(--muted, #7a6f64));
  border-radius: var(--r-md, 12px);
}
