/* ==========================================================================
   MEŞREB — Dijital Menü
   Editorial / architectural / menu-book / tactile hospitality interface.
   Typography dominates. Tactile interaction yalnızca gerçek kontrollerde
   (index aç, ara, önemli toggle, CTA) — kategoriler, ürünler, navigasyon
   fiziksel kutulara dönüşmez.
   ========================================================================== */

:root {
  --page: #F4F0E8;
  --panel: #FBF9F5;
  --socket: #DED0B4;
  --face: #FBF8F3;
  --line: #DED2BC;
  --line-soft: #E7DFCE;

  --ink: #221D18;
  --ink-soft: #6E6255;
  --ink-faint: #9A8F7E;

  --bronze: #97643C;
  --bronze-dark: #74491F;
  --bronze-tint: #EEE2CF;
  --deep-accent: #4E3C2E;

  --edge-hi: rgba(255, 255, 255, 0.85);
  --edge-lo: rgba(58, 46, 34, 0.38);
  --shadow-ambient: rgba(40, 34, 29, 0.15);

  --radius-sm: 6px;
  --radius-lg: 18px;

  --font-display: 'Spectral', Georgia, 'Times New Roman', serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --header-h: 54px;
  --sidebar-w: 244px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body { padding-bottom: 40px; }
img { max-width: 100%; display: block; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 2px; }
ol, ul { list-style: none; margin: 0; padding: 0; }

/* ==========================================================================
   HEADER — ince, mimari, tek marka tekrarı
   ========================================================================== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 14px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

/* Gerçek Meşreb logosu. Dosya beyaz/transparan olduğu için açık zeminde
   CSS mask ile mürekkep rengine boyanıyor — şekil ve oran birebir korunur,
   yeniden çizim/efekt yok. Oran 2034:786 ≈ 2.588 */
.wordmark {
  display: block;
  width: 96px;
  height: auto;
}

/* Marka kilidi: logo + mekân kimliği alt satırı */
.brand-lockup { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.brand-sub {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}

.wordmark-drawer { width: 104px; }

.brand-lockup { display: none; }
.topbar-actions { display: flex; align-items: center; gap: 4px; }

.icon-plain {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink-soft);
  transition: background 140ms ease;
}
.icon-plain:active { background: var(--line-soft); }

/* ==========================================================================
   KÜÇÜK TACTILE SİSTEM — yalnızca gerçek kontroller: index aç, ara,
   yukarı çık. Kategoriler/ürünler/navigasyon bu sistemi kullanmaz.
   ========================================================================== */

.tactile-sm {
  --r: 12px;
  --g: 3px;
  position: relative;
  background: var(--socket);
  border-radius: var(--r);
  padding: var(--g);
  justify-self: start;
}

.tactile-sm-face {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--face);
  border-radius: calc(var(--r) - var(--g));
  color: var(--ink-soft);
  transform: translateY(0);
  box-shadow:
    inset 0 1px 0 var(--edge-hi),
    0 2px 0 var(--edge-lo),
    0 4px 8px var(--shadow-ambient);
  transition: transform 140ms ease, box-shadow 140ms ease, color 140ms ease;
}
@media (hover: hover) {
  .tactile-sm:hover .tactile-sm-face {
    box-shadow: inset 0 1px 0 var(--edge-hi), 0 2px 0 var(--edge-lo), 0 5px 10px var(--shadow-ambient);
  }
}
.tactile-sm:active .tactile-sm-face {
  transform: translateY(2px);
  box-shadow: inset 0 1px 0 var(--edge-hi), 0 0px 0 var(--edge-lo), 0 1px 2px var(--shadow-ambient);
}

/* ==========================================================================
   APP SHELL — mobilde tek sütun + kayan çekmece;
   masaüstünde (≥1024px) kalıcı sol sütun + sağda kayan belge.
   ========================================================================== */

.app-shell { display: flex; align-items: flex-start; }
.content-column { flex: 1; min-width: 0; }

/* ==========================================================================
   INDEX / SIDEBAR (çekmece — mobilde overlay, masaüstünde sabit sütun)
   ========================================================================== */

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(24, 19, 14, 0.42);
  opacity: 0;
  transition: opacity 200ms ease;
}
.drawer-overlay.is-open { opacity: 1; }

.nav-drawer {
  position: fixed;
  top: var(--header-h);
  bottom: 0;
  left: 0;
  z-index: 45;
  width: min(84vw, var(--sidebar-w));
  background: var(--panel);
  box-shadow: 6px 0 24px rgba(0, 0, 0, 0.18);
  transform: translateX(-100%);
  transition: transform 220ms ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.nav-drawer.is-open { transform: translateX(0); }

/* Sidebar marka başlığı */
.drawer-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px 46px 14px 16px;
  border-bottom: 1px solid var(--line);
}
.drawer-brand .brand-sub { display: block; margin-top: 5px; font-size: 8px; letter-spacing: 1.3px; }
/* Kapat: marka bloğunun sağ üstünde, küçük ve göze batmayan.
   Özgüllük .drawer-brand ile artırıldı — dosya sonundaki dokunma hedefi
   kuralındaki position:relative bunu ezmesin diye. */
.drawer-brand .drawer-close-inline {
  position: absolute;
  top: 13px;
  right: 8px;
  opacity: .55;
  transition: opacity 140ms ease;
}
.drawer-brand .drawer-close-inline:hover { opacity: 1; }

.drawer-nav { flex: 1; padding: 0 0 8px; display: flex; flex-direction: column; }

/* Logo + bölüm sekmeleri + kapat: tek kompakt satır.
   Ayrı bir başlık satırı yok — çekmece üstünde boş alan bırakmaz. */
.index-section-switch {
  display: flex;
  gap: 4px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 8px;
}
.index-tab {
  flex: 1;
  min-width: 0;
  padding: 7px 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1px;
  text-align: center;
  white-space: nowrap;
  color: var(--ink-faint);
  border-bottom: 2px solid transparent;
}
.index-tab.is-active { color: var(--bronze-dark); border-bottom-color: var(--bronze); }

.index-list { padding: 2px 8px 8px; }
.index-list-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  text-align: left;
  font-size: 13px;
  line-height: 1.3;
  color: var(--ink-soft);
  transition: background 140ms ease, color 140ms ease;
}
.index-list-item.is-active {
  background: var(--deep-accent);
  color: #F6F1E7;
  font-weight: 600;
}

.index-filters { padding: 14px 18px 4px; border-top: 1px solid var(--line-soft); margin-top: 10px; }
.index-filters-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.index-filters-list { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.filter-toggle {
  font-size: 12.5px;
  color: var(--ink-soft);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.filter-toggle.is-selected { color: var(--bronze-dark); font-weight: 600; border-bottom-color: var(--bronze); }


.drawer-utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--line-soft);
  margin-top: auto;
}

.sound-toggle {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  background: var(--line-soft);
  color: var(--ink-faint);
  line-height: 0;
  transition: background 160ms ease, color 160ms ease;
}
.sound-toggle-icon { display: flex; align-items: center; }
.sound-toggle[aria-checked="true"] { background: var(--bronze-tint); color: var(--bronze-dark); }
.sound-toggle-knob {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-faint);
  transition: background 160ms ease;
}
.sound-toggle[aria-checked="true"] .sound-toggle-knob { background: var(--bronze); }

.lang-switch { display: flex; gap: 2px; background: var(--line-soft); border-radius: 999px; padding: 2px; }
.lang-btn {
  min-width: 30px;
  padding: 4px 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .3px;
  border-radius: 999px;
  color: var(--ink-faint);
  transition: background 140ms ease, color 140ms ease;
}
.lang-btn.is-selected { background: var(--panel); color: var(--bronze-dark); }

/* ==========================================================================
   ARAMA PANELİ
   ========================================================================== */

.search-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--page);
  overflow-y: auto;
}
.search-panel-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--panel);
}
#search-input {
  flex: 1;
  height: 40px;
  padding: 0 4px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-size: 15px;
  color: var(--ink);
  border-radius: 0;
}
#search-input:focus { outline: none; border-bottom-color: var(--bronze); }
.search-count { margin: 12px 20px 2px; font-size: 12px; color: var(--ink-faint); }

/* ==========================================================================
   EDİTORYAL AÇILIŞ — klasik hero değil
   ========================================================================== */

.opening {
  padding: 26px 20px 6px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.opening-text { max-width: 520px; }

.opening-eyebrow {
  margin: 0 0 10px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--bronze-dark);
}

.opening-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 33px;
  line-height: 1.12;
  letter-spacing: -0.6px;
  color: var(--ink);
}

/* Açılışta metin başlık yerine gerçek logo — marka tutarlılığı için
   header/çekmece ile aynı dosya, aynı mask tekniği. */

.opening-desc {
  margin: 0;
  max-width: 42ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.opening-photo {
  width: 100%;
  margin: 0;
  aspect-ratio: 16 / 10;
  background-image: url(../assets/img/mesreb-ana.webp?v=2);
  background-size: cover;
  background-position: center 42%;
}

/* İkinci atmosfer fotoğrafı — yalnızca masaüstünde, metin sütununun
   altındaki boşluğu doldurur. Mobilde gizli (dikey akışı uzatmamak için). */

/* ==========================================================================
   BÖLÜM SEÇİCİ — ince tipografik sekme, iki büyük kutu değil
   ========================================================================== */

.section-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

/* Kompakt kabartmalı 3D pill — küçük tactile sistemin metin versiyonu.
   İki dev eşit kutu DEĞİL; her sekme kendi içeriğine göre boyutlanır. */
.section-tab {
  --r: 999px;
  --g: 3px;
  position: relative;
  background: var(--socket);
  border-radius: var(--r);
  padding: var(--g);
}
.section-tab-face {
  display: block;
  padding: 9px 20px;
  border-radius: calc(var(--r) - var(--g));
  background: var(--face);
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transform: translateY(0);
  box-shadow:
    inset 0 1px 0 var(--edge-hi),
    0 2px 0 var(--edge-lo),
    0 4px 8px var(--shadow-ambient);
  transition: transform 140ms ease, box-shadow 140ms ease, color 140ms ease;
}
@media (hover: hover) {
  .section-tab:hover .section-tab-face {
    box-shadow: inset 0 1px 0 var(--edge-hi), 0 2px 0 var(--edge-lo), 0 5px 10px var(--shadow-ambient);
  }
}
.section-tab:active .section-tab-face {
  transform: translateY(2px);
  box-shadow: inset 0 1px 0 var(--edge-hi), 0 0px 0 var(--edge-lo), 0 1px 2px var(--shadow-ambient);
}
.section-tab.is-active .section-tab-face {
  color: var(--bronze-dark);
  font-weight: 600;
  transform: translateY(2px);
  box-shadow:
    inset 0 2px 5px rgba(40, 34, 29, 0.3),
    inset 0 -1px 0 var(--edge-hi),
    0 1px 0 var(--edge-lo);
}

/* ==========================================================================
   YAPIŞKAN BELGE NAVİGASYONU
   ========================================================================== */

.doc-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 20px;
  background: var(--page);
  border-bottom: 1px solid var(--line);
}
.doc-nav-btn {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.doc-nav-current {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--bronze-dark);
  text-align: center;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   MİNİ BÖLÜMLER (Meşreb'in Seçtikleri / Son Baktıklarım)
   ========================================================================== */

.mini-section { padding: 10px 0 6px; }
.mini-section-title {
  margin: 0 0 10px;
  padding: 0 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}
.mini-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 20px 6px;
  scrollbar-width: none;
}
.mini-scroll::-webkit-scrollbar { display: none; }
.mini-card {
  flex: none;
  width: 150px;
  text-align: left;
  padding: 0;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.mini-card-name { margin: 0 0 4px; font-size: 12.5px; font-weight: 500; line-height: 1.35; color: var(--ink); }
.mini-card-price { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 12.5px; color: var(--ink); }

/* ==========================================================================
   MENÜ BELGESİ — kategoriler numaralı bölümler olarak tek akışta
   ========================================================================== */

#menu-document { padding: 6px 20px 20px; }

.doc-category { scroll-margin-top: calc(var(--header-h) + 62px); }

.doc-category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 42px 0 6px;
}
.doc-category:first-child .doc-category-header { margin-top: 6px; }
.doc-category-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.doc-category-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 23px;
  letter-spacing: -0.3px;
  color: var(--ink);
  white-space: nowrap;
}

.doc-products { display: flex; flex-direction: column; }

.doc-product {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: background 160ms ease;
}
@media (hover: hover) {
  .doc-product:hover { background: rgba(151, 100, 60, 0.035); }
}

.doc-product-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  width: 100%;
  min-height: 30px;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* Ürün görsel alanı. Fotoğraf eklendiğinde (.has-photo) otomatik olarak
   fotoğrafa geçer; yoksa kategoriye uygun çizgi ikon yer tutucu. */
.doc-product-media {
  flex: none;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  color: var(--ink-faint);
  opacity: .85;
  background-size: cover;
  background-position: center;
  transition: opacity 160ms ease;
}
.doc-product-media.has-photo {
  border-color: transparent;
  opacity: 1;
}
@media (hover: hover) {
  .doc-product:hover .doc-product-media { opacity: 1; }
}

.doc-product-body { flex: 1; min-width: 0; }

.doc-product-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

/* Klasik basılı menü tipografisi: ürün adı ile fiyat arasında ince
   noktalı bağlayıcı — fiyatlar optik olarak hizalanır. */

.doc-product-name {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: -0.1px;
}

.doc-product-weight { margin-left: 8px; font-size: 11.5px; font-weight: 400; color: var(--ink-faint); }

.doc-product-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  white-space: nowrap;
}

.doc-product-desc {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 58ch;
}

.doc-product-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.doc-tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--bronze-dark);
}
.doc-tag::before { content: "· "; color: var(--ink-faint); }
.doc-tag:first-child::before { content: ""; }

.doc-product-fav {
  flex: none;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  background: var(--panel);
  color: var(--ink-faint);
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease, transform 140ms ease;
}
.doc-product-fav:active { transform: scale(0.88); }
.doc-product-fav.is-fav { color: var(--bronze); border-color: var(--bronze-tint); }
.doc-product-fav svg { fill: none; transition: fill 140ms ease; }
.doc-product-fav.is-fav svg { fill: var(--bronze); }

.empty-note { padding: 24px 20px; text-align: center; color: var(--ink-soft); font-size: 13px; }

/* ==========================================================================
   BOTTOM SHEET (Favoriler / Ürün Detayı) — editorial, sade
   ========================================================================== */

.sheet-overlay { position: fixed; inset: 0; z-index: 70; background: rgba(24, 19, 14, 0.42); }

.bottom-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--panel);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -6px 24px rgba(20, 16, 12, 0.16);
  padding: 6px 0 22px;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.sheet-header h2 { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin: 0; }

.detail-sheet { padding-top: 0; }
.detail-sheet .detail-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  background: var(--panel);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

.detail-image {
  /* Kare alan — kare kırpılan ürün fotoğrafı tam ve büyük görünür */
  aspect-ratio: 1 / 1;
  width: 100%;
  background-color: #ECE5D9;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.detail-body { padding: 22px 22px 4px; }
.detail-sheet:has(.detail-image[hidden]) .detail-body { padding-top: 34px; }

.detail-body h2 { font-family: var(--font-display); font-weight: 600; font-size: 21px; margin: 0 0 6px; }
.detail-price { font-family: var(--font-display); font-size: 16px; color: var(--ink); font-weight: 600; margin: 0 0 4px; }
.detail-weight { font-size: 12.5px; color: var(--ink-faint); margin: 0 0 12px; }
.detail-desc { font-size: 13px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 10px; }
.detail-ingredients { font-size: 12px; line-height: 1.6; color: var(--ink-faint); margin: 0 0 14px; }
.detail-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; font-size: 11.5px; color: var(--bronze-dark); font-weight: 600; }

.doc-products, #fav-grid, #search-results { padding-left: 0; padding-right: 0; }
#fav-grid .doc-product, #search-results .doc-product { padding-left: 20px; padding-right: 20px; }

.fav-toggle-btn { width: calc(100% - 44px); margin: 6px 22px 0; }

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  font-size: 13.5px;
  font-weight: 500;
  background: var(--deep-accent);
  color: var(--panel);
  border-radius: 12px;
  transform: translateY(0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 3px 0 rgba(20, 14, 8, 0.5), 0 8px 16px rgba(20, 14, 8, 0.22);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, color 140ms ease;
}
@media (hover: hover) {
  .cta-btn:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 3px 0 rgba(20,14,8,.5), 0 10px 18px rgba(20,14,8,.26); }
}
.cta-btn:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 1px 0 rgba(20,14,8,.5), 0 2px 4px rgba(20,14,8,.2); }
.cta-btn.is-selected { background: var(--socket); color: var(--deep-accent); box-shadow: inset 0 2px 5px rgba(40, 34, 29, 0.3); }

/* ==========================================================================
   YUKARI ÇIK
   ========================================================================== */

.scroll-top-btn { position: fixed; right: 16px; bottom: 20px; z-index: 35; }
.scroll-top-btn .tactile-sm-face { color: var(--bronze-dark); width: 38px; height: 38px; }

/* ==========================================================================
   MASAÜSTÜ — sol sabit sütun + sağda kayan belge (Bayazhan'ın ortalanmış
   tek sütunlu web sitesinden kasıtlı olarak farklı bir kompozisyon)
   ========================================================================== */

@media (min-width: 1024px) {
  #index-btn { display: none; }
  .drawer-overlay { display: none !important; }

  .nav-drawer {
    position: sticky;
    top: var(--header-h);
    left: auto;
    z-index: 10;
    transform: none;
    box-shadow: none;
    border-right: 1px solid var(--line);
    width: var(--sidebar-w);
    height: calc(100vh - var(--header-h));
    flex: none;
  }


  .content-column { max-width: 1180px; }

  .opening {
    flex-direction: row;
    align-items: center;
    gap: 44px;
    padding: 30px 44px 20px;
    height: auto;
  }
  .opening-text {
    flex: 0 0 56%;
    max-width: 560px;
    display: block;
    padding: 0;
  }
  .opening-title { font-size: 46px; }
  .opening-photo {
    flex: 1 1 44%;
    width: auto;
    min-width: 0;
    aspect-ratio: auto;
    align-self: stretch;
    min-height: 320px;
  }

  .section-tabs { margin-top: 30px; }

  /* İkinci atmosfer fotoğrafı: sekmelerin altında kalan boşluğu doldurur.
     flex:1 ile mevcut boşluğu ne kadarsa o kadar kaplar — sabit yükseklik
     vermediğimiz için farklı ekran yüksekliklerinde de doğru davranır. */
  .doc-nav { display: none; }
  .mini-section-title, .mini-scroll { padding-left: 44px; padding-right: 44px; }
  #menu-document { padding: 10px 44px 44px; }

  .index-list-item { cursor: pointer; }

  /* Masaüstünde sidebar varsayılan açık; kapat butonu onu gizler ve
     header'daki index butonu görünür olur (JS: body.sidebar-hidden). */
  body.sidebar-hidden .nav-drawer { display: none; }
  body.sidebar-hidden #index-btn { display: flex; }
  body.sidebar-hidden .topbar { padding-left: 14px; }
  .drawer-brand { padding-right: 44px; }

  /* Masaüstünde index butonu gizli; header'daki arama/favori butonları
     içerik sütununun soluna hizalanır (logo kaldırıldı). */
  .topbar { padding-left: calc(var(--sidebar-w) + 28px); }

  /* Favoriler / ürün detay panelleri: masaüstünde alttan kayan mobil sheet
     değil, ortalanmış modal kart. */
  .bottom-sheet {
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(560px, 90vw);
    max-height: 82vh;
    border-radius: var(--radius-lg);
  }
  .detail-image { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
}

/* ==========================================================================
   ERİŞİLEBİLİRLİK
   ========================================================================== */

/* Dokunma hedefi genişletme: görsel boyutu bozmadan, görünmez ::after ile
   tıklama alanını min 44px'e çıkarır (WCAG 2.5.5). Küçük/zarif görünüm
   korunur, parmakla isabet kolaylaşır. */
.icon-plain,
.tactile-sm,
.doc-product-fav,
.sound-toggle,
.lang-btn,
.doc-nav-btn { position: relative; }

.icon-plain::after,
.tactile-sm::after,
.doc-product-fav::after,
.sound-toggle::after,
.lang-btn::after,
.doc-nav-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 44px;
  min-height: 44px;
  width: 100%;
  height: 100%;
}

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

[hidden] { display: none !important; }

/* Ürün satırı sağ sütunu: fiyat (kalp .doc-product ile kardeş kalır) */
.doc-product-aside {
  flex: none;
  display: flex;
  align-items: flex-start;
  padding-top: 1px;
}

/* ============================================================
   ALERJENLER — ürün satırı etiketleri + detay panel listesi
   SAĞLIK: ikon asla yazısız gösterilmez; her zaman ad eşlik eder.
   ============================================================ */
.allergen-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.allergen-tag{
  display:inline-flex;align-items:center;gap:5px;
  padding:3px 9px 3px 6px;border-radius:999px;
  border:1px solid var(--line,#DED4C4);
  background:var(--page-2,#EFE9DD);
  font-size:.72rem;font-weight:500;color:var(--ink-soft,#3A322A);
  line-height:1.3;
}
.allergen-tag img,.allergen-tag svg{width:14px;height:14px;flex:none;color:var(--bronze,#97643C)}

/* Detay panelinde seçili alerjenler */
.detail-allergens{margin:14px 0 2px}
.detail-allergens-title{
  display:block;font-size:.72rem;font-weight:700;
  letter-spacing:.14em;text-transform:uppercase;
  color:var(--muted,#75695E);margin-bottom:10px;
}
.allergen-list{display:flex;flex-wrap:wrap;gap:10px}
.allergen-chip{
  display:inline-flex;align-items:center;gap:7px;
  padding:7px 12px 7px 9px;border-radius:999px;
  border:1px solid var(--line,#DED4C4);
  background:var(--page-2,#EFE9DD);
  font-size:.82rem;font-weight:500;color:var(--ink,#221D18);
}
.allergen-chip img,.allergen-chip svg{width:18px;height:18px;flex:none;color:var(--bronze,#97643C)}
.allergen-warning{
  flex-basis:100%;margin:10px 0 0;
  font-size:.78rem;line-height:1.45;color:var(--muted,#75695E);
  padding-left:11px;border-left:2px solid var(--bronze,#97643C);
}

/* Menüden kurumsal siteye dönüş bağlantısı */
.back-to-site{
  display:inline-flex;align-items:center;gap:7px;
  margin:2px 0 14px;padding:7px 12px;
  border:1px solid var(--line); border-radius:999px;
  font-family:var(--font-body); font-size:12.5px; font-weight:500;
  color:var(--ink-soft,#3A322A); background:var(--page-2,#EFE9DD);
  transition:border-color .15s, color .15s;
  width:max-content;
}
.back-to-site:hover{border-color:var(--accent,#97643C); color:var(--accent,#97643C)}
.back-to-site svg{flex:none}

/* ============================================================
   GÖRSEL TAM EKRAN (LIGHTBOX) — ürün fotoğrafını tam gör
   ============================================================ */
.detail-image.is-tappable{cursor:zoom-in}
.lightbox[hidden]{display:none}
.lightbox{
  position:fixed; inset:0; z-index:200;
  display:flex; align-items:center; justify-content:center;
  padding:20px;
  background:rgba(18,14,10,.92);
  -webkit-backdrop-filter:blur(2px); backdrop-filter:blur(2px);
  animation:lb-in .18s ease;
}
@keyframes lb-in{from{opacity:0}to{opacity:1}}
.lightbox img{
  max-width:100%; max-height:100%;
  width:auto; height:auto;
  object-fit:contain;                 /* fotoğrafın TAMAMI görünür */
  border-radius:10px;
  box-shadow:0 20px 60px rgba(0,0,0,.5);
}
.lightbox-close{
  position:absolute; top:16px; right:16px;
  width:44px; height:44px; border-radius:50%;
  display:grid; place-items:center;
  background:rgba(255,255,255,.14); color:#fff;
  transition:background .15s;
}
.lightbox-close:hover{background:rgba(255,255,255,.26)}
@media (prefers-reduced-motion:reduce){.lightbox{animation:none}}

/* ============================================================
   SIDEBAR ÜST SATIR — Siteye Dön + arama + favori
   Mobilde arama/favori topbar'da; sidebar aksiyonları gizli.
   ============================================================ */
.drawer-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}
.drawer-top .back-to-site{margin:0}
.drawer-top-actions{display:none;align-items:center;gap:4px}
.drawer-top-actions .icon-plain{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;color:var(--ink-soft)}
.drawer-top-actions .icon-plain:hover{background:var(--page-2)}

@media (min-width: 1024px){
  /* Üstteki beyaz bar kaldırıldı; kontroller sidebar üstünde */
  .topbar{display:none !important;}
  .drawer-top-actions{display:flex;}
  .nav-drawer{top:0;height:100vh;}
  /* içerik üst boşluğu header yokken dengelensin */
  .content-column{padding-top:8px;}
  /* Sidebar kalıcı — kapatma butonu gizli (topbar olmadığı için geri açılamazdı) */
  .drawer-close-inline{display:none;}
}

/* ============================================================
   AÇILIŞ EKRANI (QR ilk açılış) — menüyü gör + bizi puanlayın
   ============================================================ */
.splash{position:fixed;inset:0;z-index:300;display:grid;place-items:center;
  background:var(--deep,#1C1712);color:var(--on-deep,#EDE4D5);
  transition:opacity .4s ease, visibility .4s ease}
.splash.hide{opacity:0;visibility:hidden;pointer-events:none}
.splash-bg{position:absolute;inset:0;z-index:0;
  background:url(../assets/img/mesreb-ana.webp?v=2) center/cover no-repeat;
  opacity:.28}
.splash::after{content:"";position:absolute;inset:0;z-index:1;
  background:linear-gradient(to bottom,rgba(20,16,12,.55),rgba(20,16,12,.8))}
.splash-inner{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;
  text-align:center;padding:28px;max-width:460px}
.splash-logo{height:72px;width:auto;object-fit:contain;margin-bottom:12px;
  filter:drop-shadow(0 4px 20px rgba(0,0,0,.4))}
.splash-sub{font-family:var(--font-body);font-size:.74rem;letter-spacing:.24em;text-transform:uppercase;
  color:var(--on-deep-muted,#B6A895);margin-bottom:40px}
.splash-enter{font-family:var(--font-body);font-weight:600;font-size:1.02rem;color:var(--deep,#1C1712);
  background:var(--on-deep,#EDE4D5);border-radius:999px;padding:16px 34px;
  box-shadow:0 10px 30px -12px rgba(0,0,0,.6);transition:transform .18s ease, background .18s ease;
  animation:splash-pulse 2.4s ease-in-out infinite}
.splash-enter:hover{transform:translateY(-2px);background:#fff}
@keyframes splash-pulse{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
.splash-rate{display:inline-flex;align-items:center;gap:8px;margin-top:22px;
  font-family:var(--font-body);font-size:.92rem;font-weight:500;
  color:#E7C9A6;border:1px solid rgba(231,201,166,.4);border-radius:999px;padding:10px 20px;
  transition:background .18s ease, border-color .18s ease}
.splash-rate:hover{background:rgba(231,201,166,.12);border-color:#E7C9A6}
.splash-rate svg{color:#E7C9A6}
@media (prefers-reduced-motion:reduce){.splash-enter{animation:none}}

/* Görsel kategori seçimi ve büyük ürün fotoğrafları */
.category-grid { display: grid; gap: 16px; }
.category-card { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 14px; overflow: hidden; text-align: left; cursor: pointer; background: #d9cfc1; color: white; }
.category-card-media { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1.72; background: #ded5c8; color: #a58b70; background-size: cover; background-position: center; }
.category-card-media svg { width: 64px; height: 64px; }
.category-card::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(39,30,22,.68)); pointer-events: none; }
.category-card-label { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 22px; font-size: clamp(22px, 4vw, 32px); font-weight: 600; }
.category-card:focus-visible, .category-back:focus-visible { outline: 3px solid var(--bronze); outline-offset: 4px; }
.category-back { border: 0; background: transparent; color: var(--bronze); padding: 16px 0; font: inherit; cursor: pointer; }
#menu-document { scroll-margin-top: 112px; }
#menu-document .doc-product { position: relative; display: block; padding: 24px 0; }
#menu-document .doc-product-main { display: flex; flex-direction: column; align-items: stretch; gap: 16px; width: 100%; padding: 0; }
#menu-document .doc-product-media { width: 100%; height: auto; aspect-ratio: 1; flex: none; border-radius: 14px; opacity: 1; background-color: #e5ddd1; }
#menu-document .doc-product-media svg { width: 56px; height: 56px; }
#menu-document .doc-product-body { padding-right: 44px; }
#menu-document .doc-product-name { font-size: 23px; line-height: 1.3; }
#menu-document .doc-product-aside { align-items: flex-start; padding: 0; }
#menu-document .doc-product-price { font-size: 27px; }
#menu-document .doc-product-fav { position: absolute; right: 0; bottom: 26px; }
.detail-image { background-color: #e5ddd1; }
@media (min-width: 768px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #menu-document .doc-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
}

.splash-instagram { margin-top: 12px; }

.doc-product-media, .category-card-media { overflow: hidden; }
.doc-product-media img, .category-card-media img { width: 100%; height: 100%; object-fit: cover; }
.topbar .brand-lockup { display: block; width: 88px; height: 30px; background: var(--ink); mask: url('../assets/img/logo.png') center / contain no-repeat; -webkit-mask: url('../assets/img/logo.png') center / contain no-repeat; }
@media (min-width: 1024px) { body:not(.sidebar-hidden) .topbar .brand-lockup { display: none; } }

/* Printed menu pictograms with readable text labels. */
.allergen-icon{object-fit:contain;border-radius:50%;flex-shrink:0}
.allergen-tag img{width:22px;height:22px}
.allergen-chip img{width:26px;height:26px}
.allergen-row{flex-wrap:wrap}

.doc-product-media { position: relative; }
.product-photo-note { position: absolute; bottom: 0; left: 0; right: 0; padding: 7px 10px; color: #fff; background: rgba(30, 24, 18, .8); font-size: 11px; line-height: 1.4; text-align: center; }
