/* Herkese açık menü sayfası — müşterinin telefonunda açılır.
   --bg, --ink, --accent, --on-accent sunucudan gelir; diğer tonlar bunlardan türetilir. */
:root {
  --bg: #ffffff;
  --ink: #161614;
  --accent: #b4232c;
  --on-accent: #ffffff;
  --ink-2: color-mix(in srgb, var(--ink) 74%, var(--bg));
  --muted: color-mix(in srgb, var(--ink) 50%, var(--bg));
  --line: color-mix(in srgb, var(--ink) 12%, var(--bg));
  --line-2: color-mix(in srgb, var(--ink) 24%, var(--bg));
  --card: color-mix(in srgb, var(--ink) 4%, var(--bg));
  --accent-soft: color-mix(in srgb, var(--accent) 12%, var(--bg));
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", -apple-system, "Segoe UI", sans-serif;
  --w: 640px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 128px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
[hidden] { display: none !important; }

/* ---------- başlık ---------- */
.masthead { max-width: var(--w); margin: 0 auto; padding: 48px 20px 28px; text-align: center; }
.monogram, .logo { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; }
.logo { display: block; object-fit: cover; border: 1px solid var(--line); }
.monogram {
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  font: 400 30px/1 var(--serif);
}
.masthead h1 { margin: 0; font: 400 clamp(40px, 11vw, 56px)/0.95 var(--serif); letter-spacing: -0.01em; }
.masthead p { margin: 12px auto 0; max-width: 34ch; color: var(--ink-2); font-size: 15px; }

/* ---------- yatay kaydırılan şeritler ---------- */
.track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 20px 4px;
  scroll-padding: 0 20px;
}
.track::-webkit-scrollbar { display: none; }
.promos, .featured { max-width: var(--w); margin: 0 auto 20px; }

/* kampanyalar */
.promo {
  position: relative;
  flex: 0 0 min(86%, 420px);
  display: flex;
  min-height: 132px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--on-accent);
  overflow: hidden;
  scroll-snap-align: start;
}
.promos .track > :only-child { flex-basis: 100%; }
.promo-txt { position: relative; padding: 18px 20px; display: flex; flex-direction: column; justify-content: flex-end; }
.promo-badge {
  align-self: flex-start;
  margin-bottom: auto;
  padding: 3px 9px;
  border: 1px solid color-mix(in srgb, var(--on-accent) 45%, transparent);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.promo h2 { margin: 14px 0 0; font: 400 26px/1.05 var(--serif); }
.promo p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.4; opacity: 0.88; }
.promo.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.08)); }
.promo.has-img { color: #fff; min-height: 170px; aspect-ratio: 16 / 9; }
.promo.has-img .promo-txt { z-index: 1; }
.promo.has-img .promo-badge { border-color: rgba(255, 255, 255, 0.5); }

/* öne çıkanlar */
.strip-title {
  margin: 0 0 10px;
  padding: 0 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.feat {
  flex: 0 0 136px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  scroll-snap-align: start;
}
.feat-img {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  margin-bottom: 8px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font: 400 44px/1 var(--serif);
  overflow: hidden;
}
.feat-img img { width: 100%; height: 100%; object-fit: cover; }
.feat-name { font-size: 14px; font-weight: 600; line-height: 1.25; }
.feat .price { font-size: 13.5px; }

/* ---------- arama ve sekmeler ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.search { display: flex; align-items: center; gap: 10px; max-width: var(--w); margin: 0 auto; padding: 12px 20px 4px; }
.search svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.search input {
  flex: 1;
  min-width: 0;
  padding: 8px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.search input::placeholder { color: var(--muted); }
.tabs { display: flex; gap: 22px; max-width: var(--w); margin: 0 auto; padding: 0 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none;
  padding: 10px 0 12px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.tabs a.on { color: var(--ink); border-bottom-color: var(--accent); }
body.is-searching .promos, body.is-searching .featured { display: none; }

/* ---------- ürünler ---------- */
main { max-width: var(--w); margin: 0 auto; padding: 8px 20px 24px; }
.cat { padding-top: 32px; }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.cat-head h2 { margin: 0; font: 400 30px/1.1 var(--serif); }
.cat-head span { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.cat ul { list-style: none; margin: 0; padding: 0; }
.item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); transition: background 0.6s; }
.item.flash { background: var(--accent-soft); }
.item-txt { flex: 1; min-width: 0; }
/* Ad, noktalar ve fiyat sığmazsa fiyat alt satıra (sağa yaslı) geçer; görselin altına taşmaz. */
.item-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.item h3 { min-width: 0; margin: 0; font-size: 16.5px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.leader { flex: 1; min-width: 16px; border-bottom: 1.5px dotted var(--line-2); transform: translateY(-4px); }
.price { flex: none; margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--accent); white-space: nowrap; }
.price s { margin-right: 4px; color: var(--muted); font-weight: 400; font-size: 0.88em; }
.item p { margin: 4px 0 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }
.item-img { flex: none; width: 84px; height: 84px; border-radius: 6px; object-fit: cover; background: var(--card); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); font-size: 12px; font-weight: 500; }
.tag-populer, .tag-yeni { border-color: var(--accent); color: var(--accent); }
.tag-indirim { border-color: var(--accent); background: var(--accent); color: var(--on-accent); font-weight: 600; }
.is-out h3, .is-out p { color: var(--muted); }
.price.is-out { color: var(--muted); font-weight: 500; font-size: 13px; }
.is-out .item-img { filter: grayscale(1); opacity: 0.5; }
.none, .empty { padding: 48px 0; text-align: center; color: var(--muted); }

/* ---------- alt bilgi ---------- */
.foot { max-width: var(--w); margin: 24px auto 0; padding: 28px 20px 48px; text-align: center; }
.info { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 14px; font-size: 14.5px; }
.info span { display: block; margin-bottom: 2px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.info a { text-decoration: none; border-bottom: 1px solid var(--line); }
.note { margin: 0 auto; max-width: 36ch; color: var(--muted); font-size: 12.5px; }
.made { display: inline-block; margin-top: 28px; color: var(--muted); font-size: 12px; text-decoration: none; }
.made b { color: var(--ink-2); font-weight: 600; }
.made:hover { color: var(--ink); }
.report { display: block; margin-top: 10px; color: var(--muted); font-size: 11.5px; text-decoration: none; opacity: 0.8; }
.report:hover { color: var(--ink); text-decoration: underline; }

/* =================================================================
   ŞABLON: MODERN — kartlar, sade yazı
   ================================================================= */
.t-modern .masthead h1 { font: 700 clamp(32px, 9vw, 44px)/1.05 var(--sans); letter-spacing: -0.03em; }
.t-modern .monogram { border: 0; background: var(--accent); color: var(--on-accent); font: 700 24px/1 var(--sans); border-radius: 16px; }
.t-modern .promo h2 { font: 700 21px/1.15 var(--sans); letter-spacing: -0.01em; }
.t-modern .feat-img { font: 700 36px/1 var(--sans); border-radius: 16px; }
.t-modern .cat-head { border-bottom: 0; padding-bottom: 12px; }
.t-modern .cat-head h2 { font: 700 22px/1.2 var(--sans); letter-spacing: -0.02em; }
.t-modern .cat-head span {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--card);
}
.t-modern .cat ul { display: grid; gap: 10px; }
.t-modern .item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg) 60%, #fff);
}
.t-modern .item-line { flex-direction: column; gap: 4px; }
.t-modern .leader { display: none; }
.t-modern .price { order: 3; margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); font-size: 14px; }
.t-modern .item-txt { display: flex; flex-direction: column; }
.t-modern .item-txt .item-line { display: contents; }
.t-modern .item-txt h3 { order: 1; }
.t-modern .item-txt p { order: 2; }
.t-modern .item-txt .price { align-self: flex-start; }
.t-modern .item-txt .tags { order: 4; }
.t-modern .item-img { width: 96px; height: 96px; border-radius: 12px; }

/* =================================================================
   ŞABLON: GECE — koyu, ortalı, büyük harf
   ================================================================= */
.t-gece .masthead { padding-top: 56px; }
.t-gece .masthead h1 { font-style: italic; }
.t-gece .monogram { font-style: italic; }
.t-gece .cat-head { justify-content: center; gap: 14px; border-bottom: 0; padding-bottom: 8px; }
.t-gece .cat-head::before, .t-gece .cat-head::after { content: ""; flex: 1; height: 1px; background: var(--line-2); align-self: center; }
.t-gece .cat-head h2 { font-style: italic; color: var(--accent); }
.t-gece .cat-head span { display: none; }
.t-gece .item h3 { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.t-gece .item { border-bottom-color: color-mix(in srgb, var(--ink) 8%, var(--bg)); }
.t-gece .tabs a.on { color: var(--accent); }

/* =================================================================
   ŞABLON: BISTRO — krem kâğıt, ortalı serif
   ================================================================= */
.t-bistro .masthead { padding-bottom: 32px; }
.t-bistro .masthead h1 { font-size: clamp(46px, 13vw, 64px); }
.t-bistro .masthead::after {
  content: "";
  display: block;
  width: 120px;
  height: 5px;
  margin: 22px auto 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.t-bistro .cat-head { flex-direction: column; align-items: center; border-bottom: 0; padding-bottom: 4px; }
.t-bistro .cat-head h2 { font-size: 36px; font-style: italic; }
.t-bistro .cat-head span { display: none; }
.t-bistro .cat-head::after { content: "✦"; margin-top: 4px; color: var(--accent); font-size: 12px; }
.t-bistro .item { border-bottom: 0; padding: 14px 0; }
.t-bistro .item h3 { font: 400 22px/1.15 var(--serif); }
.t-bistro .price { font: 400 21px/1 var(--serif); }
.t-bistro .item p { font-style: italic; }
.t-bistro .tag { border-color: var(--line-2); }

/* 404 */
.notfound { padding: 18vh 20px; text-align: center; }
.notfound .nf-code { margin: 0; font: italic 400 88px/1 var(--serif); color: var(--accent); }
.notfound h1 { margin: 8px 0; font: 400 34px/1.1 var(--serif); }
.notfound p { color: var(--ink-2); }
.notfound a { display: inline-block; margin-top: 16px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.t-modern .feat .price { align-self: flex-start; margin-top: 4px; }

/* Dar ekranlar (ör. paneldeki önizleme, küçük telefonlar) */
@media (max-width: 360px) {
  .item { gap: 12px; }
  .item-img { width: 64px; height: 64px; }
  .t-modern .item-img { width: 72px; height: 72px; }
}
.feat .price, .t-modern .item-txt .price { margin-left: 0; }

/* Paneldeki önizleme: masaüstü kaydırma çubuğu telefon görünümünde sağda boşluk bırakmasın. */
html:has(body.is-preview) { scrollbar-width: none; }
html:has(body.is-preview)::-webkit-scrollbar { display: none; }

/* Google yorum kartı */
.review-card {
  max-width: var(--w);
  margin: 32px auto 0;
  padding: 28px 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.review-card .stars { display: flex; justify-content: center; gap: 4px; margin-bottom: 10px; }
.review-card .stars svg { width: 20px; height: 20px; fill: #f2b01e; }
.review-card h2 { margin: 0; font: 400 28px/1.1 var(--serif); }
.t-modern .review-card h2 { font: 700 21px/1.2 var(--sans); }
.review-card p { margin: 6px 0 16px; color: var(--ink-2); font-size: 14.5px; }
.review-btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

/* =================================================================
   SAYFA DÜZENİ
   Telefon: tek sütun (başlık → kampanyalar → öne çıkanlar → arama/sekmeler → ürünler).
   Masaüstü (≥1024px): solda sabit kenar çubuğu (başlık, arama, kategoriler), sağda içerik.
   ================================================================= */
.page, .side, .content { display: contents; }
body { display: flex; flex-direction: column; min-height: 100vh; }
.masthead { order: 1; width: 100%; }
.promos { order: 2; width: 100%; }
.featured { order: 3; width: 100%; }
.bar { order: 4; }
main { order: 5; width: 100%; }
.review-card { order: 6; width: 100%; }
.foot { order: 7; width: 100%; }

@media (min-width: 1024px) {
  html { scroll-padding-top: 32px; }
  body { display: block; }
  .page {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 56px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    align-items: start;
  }
  .side {
    display: block;
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow-y: auto;
    padding: 48px 0 32px;
    scrollbar-width: none;
  }
  .side::-webkit-scrollbar { display: none; }
  .content { display: block; min-width: 0; padding: 48px 0 0; }

  .masthead { max-width: none; padding: 0; text-align: left; }
  .monogram, .logo { margin: 0 0 16px; }
  .masthead h1 { font-size: 46px; }
  .masthead p { margin: 10px 0 0; max-width: none; }
  .t-modern .masthead h1 { font-size: 36px; }
  .t-bistro .masthead::after { margin: 18px 0 0; }

  .bar { position: static; margin-top: 28px; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; }
  .search { max-width: none; margin: 0; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 999px; }
  .tabs { flex-direction: column; gap: 2px; max-width: none; margin: 18px 0 0; padding: 0; overflow: visible; }
  .tabs a {
    padding: 9px 14px;
    border-bottom: 0;
    border-left: 2px solid transparent;
    border-radius: 0 8px 8px 0;
    font-size: 15px;
    white-space: normal;
  }
  .tabs a:hover { color: var(--ink); background: var(--card); }
  .tabs a.on { border-left-color: var(--accent); background: var(--card); color: var(--ink); }

  .promos, .featured { max-width: none; margin: 0 0 36px; }
  .track { display: grid; overflow: visible; padding: 0; scroll-snap-type: none; gap: 16px; }
  .promos .track { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .featured .track { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
  .feat {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 14px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    transition: border-color 0.15s, background 0.15s;
  }
  .feat:hover { border-color: var(--line-2); background: var(--card); }
  .feat-img { grid-row: 1 / 3; width: 60px; margin: 0; border-radius: 10px; font-size: 28px; }
  .feat-name { align-self: end; }
  .feat .price { align-self: start; }
  .promo, .feat { flex: none; }
  .strip-title { padding: 0; }

  main { max-width: none; padding: 0 0 24px; }
  .cat { padding-top: 40px; }
  .promos + .featured + main .cat:first-child,
  main .cat:first-child { padding-top: 0; }
  .cat ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
  .t-modern .cat ul { gap: 12px; }
  .review-card, .foot { max-width: none; }
  .foot { padding-bottom: 56px; }
}
