/* =========================================================
   The DiA — menü sayfası (QR ile açılan ana deneyim)
   ========================================================= */
body.menu-page { background: var(--cream); }

/* ---------- başlık ---------- */
.mhero { position: relative; color: var(--cream); background: var(--espresso); overflow: hidden; isolation: isolate; }
.mhero-bg { position: absolute; inset: 0; z-index: -1; }
.mhero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; opacity: .55; }
.mhero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26, 17, 11, .7) 0%, rgba(26, 17, 11, .35) 45%, rgba(26, 17, 11, .92) 100%);
}
.mhero-top { height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.mhero-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; opacity: .85; justify-self: start; padding: 8px 0; }
.mhero-back .ico { width: 20px; height: 20px; }
.mhero-back span:last-child { display: none; }
.mhero-logo img { width: 70px; height: auto; }
.mhero-top .status { justify-self: end; font-size: 12px; padding: 6px 12px 6px 10px; }
.mhero-top .status .status-detail { display: none; }
.mhero-body { padding-top: 34px; padding-bottom: 34px; }
.mhero-body .eyebrow { color: var(--terra-300); }
.mhero h1 {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: clamp(64px, 17vw, 120px); line-height: .95; margin: 10px 0 10px -3px;
}
.mhero-body p { font-size: 14px; letter-spacing: .06em; color: rgba(247, 241, 232, .75); }

/* ---------- yapışkan araç çubuğu ---------- */
.toolbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(247, 241, 232, .92);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 var(--line);
  transition: box-shadow .3s;
}
.toolbar.is-stuck { box-shadow: 0 1px 0 var(--line), 0 10px 24px -18px rgba(36, 24, 15, .45); }
.toolbar-row { display: flex; gap: 10px; padding-top: 12px; padding-bottom: 10px; }
.home-btn {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: var(--cream);
  box-shadow: 0 0 0 1px var(--line); transition: transform .3s var(--ease-out), box-shadow .3s;
}
.home-btn img { width: 100%; height: 100%; transform: scale(1.12); }
.home-btn:hover { box-shadow: 0 0 0 1.5px var(--terra); }
.home-btn:active { transform: scale(.94); }
.search {
  flex: 1; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 6px 0 14px;
  background: var(--white); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .25s;
}
.search:focus-within { box-shadow: inset 0 0 0 1.5px var(--terra); }
.search > span .ico, .search > [data-icon="search"] .ico { width: 19px; height: 19px; color: var(--muted); }
.search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink);
}
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.search-clear .ico { width: 16px; height: 16px; }
.filter-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px;
  border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 500;
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.filter-btn .ico { width: 19px; height: 19px; }
.filter-btn.is-active { background: var(--ink); color: var(--cream); box-shadow: none; }
.filter-label { display: none; }
.filter-badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--terra); color: var(--white);
  font-size: 12px; display: grid; place-items: center;
}
.chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px var(--gutter) 12px; scroll-padding: 0 var(--gutter);
  scrollbar-width: none; -webkit-mask: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 24px), transparent);
          mask: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 24px), transparent);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 15px 0 12px;
  border-radius: 999px; font-size: 14px; white-space: nowrap; color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line); background: transparent;
  transition: background-color .3s var(--ease), color .3s, box-shadow .3s;
}
.chip .ico { width: 18px; height: 18px; color: var(--terra); transition: color .3s; }
.chip.is-active { background: var(--terra); color: var(--white); box-shadow: none; }
.chip.is-active .ico { color: var(--white); }
.chip.is-empty { opacity: .35; }

.filter-note { background: var(--ink); color: var(--cream); font-size: 14px; }
.filter-note .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 11px; padding-bottom: 11px; }
.filter-note button { color: var(--terra-300); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; flex-shrink: 0; }

/* ---------- liste ---------- */
.mlayout { padding-top: 8px; padding-bottom: 72px; }
.side { display: none; }
.cat { padding-top: 34px; }
.cat[hidden] { display: none; }
.cat-head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.cat-ico {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--terra-50); color: var(--terra);
}
.cat-ico .ico { width: 24px; height: 24px; }
.cat-head h2 { font-family: var(--font-serif); font-weight: 600; font-size: 32px; line-height: 1.05; }
.cat-count { margin-left: auto; font-size: 12px; letter-spacing: .14em; color: var(--muted); }

.items { display: grid; }
.item {
  display: block; width: 100%; text-align: left; padding: 18px 2px 18px; border-bottom: 1px solid var(--line);
  position: relative; transition: opacity .35s var(--ease), background-color .3s;
  -webkit-tap-highlight-color: transparent;
}
.item[hidden] { display: none; }
.item:active { background: rgba(199, 63, 20, .04); }
.item-top { display: flex; align-items: baseline; gap: 8px; }
.item-name { font-size: 17px; font-weight: 500; line-height: 1.3; color: var(--ink); }
.item-lead { flex: 1; min-width: 14px; border-bottom: 1.5px dotted rgba(36, 24, 15, .22); transform: translateY(-4px); }
.item-price { font-size: 17px; font-weight: 500; color: var(--terra); white-space: nowrap; font-variant-numeric: tabular-nums; }
.item-alt { display: block; margin-top: 2px; text-align: right; font-size: 13px; color: var(--ink-2); }
.item-alt b { font-weight: 500; color: var(--terra); }
.item-desc {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); max-width: 54ch;
}
.item-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.kcal { display: inline-flex; align-items: center; gap: 4px; }
.kcal .ico { width: 15px; height: 15px; color: var(--terra-300); }
.al-mini { display: inline-flex; align-items: center; gap: 3px; }
.al-mini .ico { width: 19px; height: 19px; padding: 2px; border-radius: 50%; background: var(--paper); color: var(--ink-2); stroke-width: 1.6; }
.al-mini em { font-style: normal; font-size: 12px; margin-left: 2px; }
.item-more { margin-left: auto; font-size: 12px; letter-spacing: .08em; color: var(--terra); opacity: 0; transition: opacity .3s; }
.item:hover .item-more, .item:focus-visible .item-more { opacity: 1; }
.item-warn { display: none; margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--terra-600); }
.item.is-excluded { opacity: .38; }
.item.is-excluded .item-warn { display: flex; align-items: center; gap: 6px; }
.item.is-excluded .item-warn .ico { width: 15px; height: 15px; }
.item mark { background: rgba(199, 63, 20, .14); color: inherit; border-radius: 3px; padding: 0 1px; }

.empty { padding: 72px 0; text-align: center; color: var(--ink-2); }
.empty h3 { font-family: var(--font-serif); font-weight: 500; font-style: italic; font-size: 34px; color: var(--ink); margin-bottom: 8px; }
.empty .btn { margin-top: 22px; }

.skeleton { display: grid; gap: 14px; padding-top: 34px; }
.skeleton div { height: 74px; border-radius: 12px; background: linear-gradient(90deg, var(--paper) 0%, #f6efe4 50%, var(--paper) 100%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
.skeleton div:first-child { height: 46px; width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- ürün detayı ---------- */
.d-cat { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--terra); margin: 6px 0 12px; }
.d-cat .ico { width: 18px; height: 18px; }
.d-name { font-family: var(--font-serif); font-weight: 600; font-size: clamp(34px, 9vw, 44px); line-height: 1.02; padding-right: 40px; }
.d-prices { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.d-price {
  display: inline-flex; flex-direction: column; padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--white); box-shadow: inset 0 0 0 1px var(--line); min-width: 110px;
}
.d-price small { font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.d-price strong { font-size: 24px; font-weight: 500; color: var(--terra); line-height: 1.2; }
.d-desc { margin-top: 20px; font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.d-block { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.d-block h3 { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.d-kcal { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.d-kcal .ico { color: var(--terra-300); }
.d-als { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.d-als li {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 8px; border-radius: 999px;
  background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px;
}
.d-als li.is-hit { background: var(--terra); color: var(--white); box-shadow: none; }
.d-als .ico { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--paper); color: var(--ink); }
.d-als li.is-hit .ico { background: rgba(255, 255, 255, .2); color: var(--white); }
.d-none { color: var(--ink-2); font-size: 15px; }
.d-note { margin-top: 20px; display: flex; gap: 10px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.d-note .ico { width: 18px; height: 18px; margin-top: 1px; }

/* ---------- filtre paneli ---------- */
.sheet-title { font-family: var(--font-serif); font-weight: 600; font-size: 34px; line-height: 1.1; margin-top: 6px; padding-right: 44px; }
.sheet-sub { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.al-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.al-toggle {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; text-align: left; line-height: 1.25;
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.al-toggle .ico { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--paper); color: var(--ink); transition: background-color .25s, color .25s; }
.al-toggle[aria-pressed="true"] { background: var(--ink); color: var(--cream); box-shadow: none; }
.al-toggle[aria-pressed="true"] .ico { background: var(--terra); color: var(--white); }
.switch { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-size: 15px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-ui { width: 46px; height: 28px; border-radius: 999px; background: var(--line); position: relative; flex-shrink: 0; transition: background-color .25s; }
.switch-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .3s var(--ease-out); }
.switch input:checked + .switch-ui { background: var(--terra); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--terra); outline-offset: 2px; }
.sheet-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 24px; }
.sheet-actions .btn--ghost { color: var(--ink); }

/* ---------- alerjen listesi ---------- */
.legend { background: var(--white); padding: 64px 0 72px; border-top: 1px solid var(--line); }
.legend h2 { font-family: var(--font-serif); font-weight: 600; font-size: 38px; margin: 14px 0 12px; }
.legend-note { max-width: 70ch; color: var(--ink-2); font-size: 15px; }
.legend-grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.legend-grid li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.legend-grid .ico { width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: var(--paper); color: var(--ink); }
.legend-grid b { font-weight: 500; color: var(--muted); font-size: 12px; min-width: 16px; }
.footer--slim { padding-top: 8px; }
.footer--slim .footer-bottom { margin-top: 0; border-top: 0; }

/* =========================================================
   GENİŞ EKRAN
   ========================================================= */
@media (min-width: 600px) {
  .filter-label { display: inline; }
  .mhero-back span:last-child { display: inline; }
  .mhero-top .status .status-detail { display: inline; }
  .legend-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 760px) {
  .mhero-top { height: 76px; }
  .mhero-body { padding-top: 56px; padding-bottom: 56px; }
  .items { grid-template-columns: 1fr 1fr; column-gap: 44px; }
  .chips { justify-content: flex-start; }
}
@media (min-width: 1024px) {
  .chips { display: none; }
  .toolbar-row { max-width: var(--maxw); padding-top: 14px; padding-bottom: 14px; }
  .search { max-width: 520px; }
  .filter-btn { margin-left: auto; }
  .mlayout { display: grid; grid-template-columns: 232px 1fr; gap: 56px; }
  .side { display: block; }
  .side-nav { position: sticky; top: 98px; padding-top: 34px; display: grid; gap: 2px; max-height: calc(100vh - 110px); overflow-y: auto; scrollbar-width: thin; }
  .side-nav a {
    display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; font-size: 15px; color: var(--ink-2);
    transition: background-color .25s, color .25s;
  }
  .side-nav a .ico { width: 19px; height: 19px; color: var(--terra); }
  .side-nav a small { margin-left: auto; font-size: 12px; color: var(--muted); }
  .side-nav a:hover { background: var(--paper); }
  .side-nav a.is-active { background: var(--terra); color: var(--white); }
  .side-nav a.is-active .ico, .side-nav a.is-active small { color: var(--white); }
  .cat-head h2 { font-size: 40px; }
  .legend-grid { grid-template-columns: repeat(4, 1fr); }
}
