/* Hayme Sultan — QR menü */
:root {
  --bg: #0e0c0a;
  --bg-2: #14110e;
  --surface: #191512;
  --surface-2: #221d18;
  --line: rgba(212, 171, 90, .16);
  --line-strong: rgba(212, 171, 90, .38);
  --gold: #d4ab5a;
  --gold-2: #ecd39b;
  --gold-ink: #1a1308;
  --text: #f4ede1;
  --muted: #a69a88;
  --faint: #6f665a;
  --red: #d0563c;
  --green: #8fae6b;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .7);
  --radius: 18px;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bar-h: 58px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f5efe4;
  --bg-2: #efe6d7;
  --surface: #fffaf1;
  --surface-2: #f6ecdc;
  --line: rgba(140, 100, 40, .16);
  --line-strong: rgba(140, 100, 40, .35);
  --gold: #a5772a;
  --gold-2: #7d5717;
  --gold-ink: #fffaf1;
  --text: #2a2017;
  --muted: #74675a;
  --faint: #a59887;
  --red: #b4432b;
  --green: #5d7d3d;
  --shadow: 0 18px 40px -24px rgba(90, 60, 20, .35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- Kapak ---------- */
.hero {
  position: relative;
  min-height: min(78vh, 560px);
  display: grid;
  place-items: end center;
  padding: calc(48px + env(safe-area-inset-top)) 20px 34px;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.04); animation: heroZoom 14s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-pattern {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(212, 171, 90, .18), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23d4ab5a' stroke-opacity='.13' stroke-width='1'%3E%3Crect x='21' y='21' width='30' height='30'/%3E%3Crect x='21' y='21' width='30' height='30' transform='rotate(45 36 36)'/%3E%3Cpath d='M0 0l21 21M72 0L51 21M0 72l21-21M72 72L51 51'/%3E%3C/g%3E%3C/svg%3E") center / 72px 72px,
    var(--bg-2);
}
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14, 12, 10, .25) 0%, rgba(14, 12, 10, .35) 40%, var(--bg) 100%);
}
.hero:not(.has-cover) .hero-shade { background: linear-gradient(180deg, transparent 50%, var(--bg) 100%); }
:root[data-theme="light"] .hero.has-cover { color: #f7f0e3; }
:root[data-theme="light"] .hero.has-cover .hero-shade { background: linear-gradient(180deg, rgba(20, 14, 8, .2) 0%, rgba(20, 14, 8, .45) 55%, rgba(20, 14, 8, .82) 100%); }
:root[data-theme="light"] .hero.has-cover .tagline, :root[data-theme="light"] .hero.has-cover .chip { color: #efe4d0; }
:root[data-theme="light"] .hero.has-cover { --gold: #e1bb6c; --line-strong: rgba(225, 187, 108, .45); }
.hero-inner { max-width: 640px; animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.logo, .monogram {
  width: 104px; height: 104px; margin: 0 auto 18px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 6px rgba(212, 171, 90, .07), var(--shadow);
}
.monogram { display: grid; place-items: center; position: relative; }
.monogram::before { content: ''; position: absolute; inset: 9px; border: 1px solid var(--line-strong); transform: rotate(45deg); }
.monogram::after { content: ''; position: absolute; inset: 9px; border: 1px solid var(--line-strong); }
.monogram span { font: 600 46px/1 var(--serif); color: var(--gold); position: relative; z-index: 1; }

.eyebrow { margin: 0 0 6px; font-size: 11.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.hero h1 { margin: 0; font: 600 clamp(46px, 13vw, 84px)/.95 var(--serif); letter-spacing: -.01em; }
.tagline { margin: 12px auto 0; font: 500 italic clamp(18px, 4.6vw, 22px)/1.35 var(--serif); color: var(--muted); max-width: 30ch; }

.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 20px auto; color: var(--gold); }
.ornament span { height: 1px; width: 56px; background: linear-gradient(90deg, transparent, var(--line-strong)); }
.ornament span:last-child { transform: scaleX(-1); }
.ornament i { width: 8px; height: 8px; border: 1px solid currentColor; transform: rotate(45deg); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(14, 12, 10, .35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 13px; color: var(--text);
}
:root[data-theme="light"] .hero:not(.has-cover) .chip { background: rgba(255, 250, 241, .6); }
.chip svg { color: var(--gold); font-size: 15px; }
a.chip:active { transform: scale(.97); }

.announce {
  margin: 0 16px; padding: 12px 16px; border-radius: 14px;
  background: linear-gradient(90deg, rgba(212, 171, 90, .14), rgba(212, 171, 90, .06));
  border: 1px solid var(--line-strong);
  text-align: center; font-size: 14px; color: var(--gold-2);
  max-width: 1080px;
}
@media (min-width: 1112px) { .announce { margin: 0 auto; } }

/* ---------- Kategori çubuğu ---------- */
.catbar {
  position: sticky; top: 0; z-index: 20;
  margin-top: 18px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
  padding-top: env(safe-area-inset-top);
}
.catbar.stuck { border-color: var(--line); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6); }
.catbar-inner { max-width: 1112px; margin: 0 auto; display: flex; align-items: center; gap: 6px; height: var(--bar-h); padding: 0 8px 0 0; }
.cat-scroll {
  flex: 1; min-width: 0;
  display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 0 16px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent 100%);
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-link {
  flex: none; scroll-snap-align: center;
  padding: 8px 15px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; white-space: nowrap; color: var(--muted);
  border: 1px solid transparent;
  transition: color .2s, background .25s, border-color .2s;
}
.cat-link:hover { color: var(--text); }
.cat-link.active { background: var(--gold); color: var(--gold-ink); font-weight: 700; }
.icon-btn {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; font-size: 18px; color: var(--text);
  transition: border-color .2s, transform .15s;
}
.icon-btn:hover { border-color: var(--line-strong); }
.icon-btn:active { transform: scale(.94); }

.searchbar { padding: 0 12px 12px; }
.searchbar-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 0 4px 0 16px; height: 48px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
}
.searchbar-inner > svg { color: var(--gold); font-size: 18px; }
.searchbar input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--text); font: 500 16px var(--sans); }
.searchbar input::placeholder { color: var(--faint); }
.searchbar input::-webkit-search-cancel-button { display: none; }
.searchbar .icon-btn { width: 38px; height: 38px; border: 0; background: none; }

/* ---------- İçerik ---------- */
.wrap { max-width: 1112px; margin: 0 auto; padding: 8px 16px 40px; }
.section-kicker {
  margin: 22px 0 14px; text-align: center;
  font: 600 12px/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--gold);
}
.empty, .no-result { text-align: center; color: var(--muted); padding: 60px 0; font: 500 italic 20px var(--serif); }

/* Kategori kutuları: görsel her zaman kareye oturur, taşma yok */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 600px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 1 / 1; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  animation: rise .6s calc(var(--i) * 45ms) cubic-bezier(.2, .7, .2, 1) both;
}
@media (min-width: 600px) { .tile { aspect-ratio: 4 / 3; } }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.tile:hover img { transform: scale(1.05); }
.tile .ph { position: absolute; width: 56%; height: auto; left: 22%; top: 12%; color: var(--line-strong); z-index: -2; }
.tile-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(10, 8, 6, .85) 100%); }
.tile.no-img .tile-shade { background: linear-gradient(180deg, transparent 40%, var(--surface-2) 100%); }
.tile-text { position: absolute; left: 14px; right: 14px; bottom: 12px; display: grid; gap: 1px; }
.tile-text b { font: 600 22px/1.05 var(--serif); color: #f7efe2; }
.tile.no-img .tile-text b { color: var(--text); }
.tile-text small { font-size: 11.5px; letter-spacing: .08em; color: rgba(247, 239, 226, .72); }
.tile.no-img .tile-text small { color: var(--muted); }

/* Kategori bölümleri */
.cat { padding-top: 34px; scroll-margin-top: calc(var(--bar-h) + 8px); }
.cat-head { margin-bottom: 16px; text-align: center; }
.cat-banner { aspect-ratio: 16 / 7; border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; border: 1px solid var(--line); background: var(--surface); }
@media (min-width: 900px) { .cat-banner { aspect-ratio: 16 / 5; } }
.cat-banner img { width: 100%; height: 100%; object-fit: cover; }
.cat-title { display: flex; align-items: center; gap: 14px; justify-content: center; }
.cat-title h2 { margin: 0; font: 600 clamp(30px, 8vw, 40px)/1.1 var(--serif); text-align: center; }
.cat-title .rule { flex: 1; max-width: 90px; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong)); position: relative; }
.cat-title .rule:last-child { transform: scaleX(-1); }
.cat-title .rule::after { content: ''; position: absolute; right: -2px; top: -3px; width: 6px; height: 6px; border: 1px solid var(--gold); transform: rotate(45deg); }
.cat-desc { margin: 6px auto 0; max-width: 52ch; color: var(--muted); font: 500 italic 17px/1.4 var(--serif); }

/* Ürün kartları */
.items { display: grid; gap: 10px; }
@media (min-width: 820px) { .items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
.item {
  display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 10px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 70%, var(--bg)));
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color .25s, transform .2s, box-shadow .25s;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 420px) { .item { grid-template-columns: 116px minmax(0, 1fr); } }
@media (hover: hover) { .item:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); } }
.item:active { transform: scale(.99); }
.item-media {
  position: relative; aspect-ratio: 1 / 1; width: 100%;
  border-radius: 13px; overflow: hidden;
  background: var(--surface-2);
}
.item-media img { width: 100%; height: 100%; object-fit: cover; }
.item-media .ph { width: 60%; height: 60%; margin: 20%; color: var(--line-strong); }
.out-tag {
  position: absolute; inset: auto 6px 6px; padding: 3px 0; border-radius: 8px;
  background: rgba(10, 8, 6, .78); color: #f4ede1; text-align: center;
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.item.is-out .item-media img { filter: grayscale(.85) brightness(.75); }
.item.is-out h3, .item.is-out .price { opacity: .55; }
.item.is-out .price { text-decoration: line-through; }

.item-body { min-width: 0; padding: 4px 4px 2px 0; display: grid; gap: 6px; align-content: start; }
.item-head { display: flex; align-items: baseline; gap: 8px; }
.item-head h3 { margin: 0; font: 600 21px/1.15 var(--serif); min-width: 0; overflow-wrap: anywhere; }
.leader { flex: 1; min-width: 12px; border-bottom: 1px dotted var(--line-strong); transform: translateY(-4px); }
.price { flex: none; font: 700 15px/1 var(--sans); color: var(--gold); white-space: nowrap; font-variant-numeric: tabular-nums; }
.desc {
  margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.variants { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 4px; }
.variants li { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; color: var(--muted); }
.variants li::after { content: ''; order: 1; flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-3px); }
.variants b { order: 2; color: var(--gold); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.badges { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px 3px 6px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  color: var(--gold-2); background: rgba(212, 171, 90, .1); border: 1px solid var(--line);
}
.badge svg { font-size: 12px; }
.badge-aci { color: #f08a6e; background: rgba(208, 86, 60, .12); border-color: rgba(208, 86, 60, .3); }
.badge-vejetaryen { color: #a8c785; background: rgba(143, 174, 107, .12); border-color: rgba(143, 174, 107, .3); }
:root[data-theme="light"] .badge-aci { color: var(--red); }
:root[data-theme="light"] .badge-vejetaryen { color: var(--green); }

.item.hidden, .cat.hidden, .overview.hidden { display: none; }

/* ---------- Alt bilgi ---------- */
.footer { margin-top: 40px; padding: 36px 20px calc(48px + env(safe-area-inset-bottom)); text-align: center; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer .ornament { margin-top: 0; }
.footer-name { margin: 0 0 16px; font: 600 30px/1 var(--serif); }
.footer-info { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 10px; max-width: 420px; color: var(--muted); font-size: 14px; }
.footer-info li { display: flex; gap: 10px; align-items: center; justify-content: center; }
.footer-info svg { color: var(--gold); font-size: 16px; }
.footer-info a { border-bottom: 1px solid var(--line); }
.footer-note { margin: 20px 0 0; font-size: 12px; color: var(--faint); letter-spacing: .04em; }

.to-top {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 15;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: var(--gold-ink); border: 0; font-size: 20px; cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.to-top svg { stroke-width: 2.2; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Ürün detayı ---------- */
.sheet { padding: 0; border: 0; background: none; max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; color: var(--text); overflow: hidden; }
.sheet::backdrop { background: rgba(6, 5, 4, .66); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet[open] { display: flex; align-items: flex-end; justify-content: center; }
.sheet-card {
  position: relative; width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--line); border-bottom: 0;
  border-radius: 26px 26px 0 0;
  padding-bottom: env(safe-area-inset-bottom);
  animation: sheetUp .38s cubic-bezier(.2, .8, .2, 1);
}
.sheet.closing .sheet-card { animation: sheetDown .25s ease-in forwards; }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes sheetDown { to { transform: translateY(100%); } }
@media (min-width: 700px) {
  .sheet[open] { align-items: center; padding: 24px; }
  .sheet-card { border-radius: 26px; border-bottom: 1px solid var(--line); animation: pop .3s cubic-bezier(.2, .8, .2, 1); }
  .sheet.closing .sheet-card { animation: fade .2s ease-in forwards; }
  @keyframes pop { from { opacity: 0; transform: scale(.96) translateY(10px); } }
  @keyframes fade { to { opacity: 0; transform: scale(.97); } }
  .sheet-grip { display: none; }
}
.sheet-grip { position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: rgba(255, 255, 255, .45); z-index: 2; }
.sheet-close { position: absolute; top: 12px; right: 12px; z-index: 3; background: rgba(14, 12, 10, .55); border-color: rgba(255, 255, 255, .15); color: #f4ede1; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sheet-media { aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; display: grid; place-items: center; }
.sheet-media img { width: 100%; height: 100%; object-fit: cover; }
.sheet-media .ph { width: 34%; height: auto; color: var(--line-strong); }
.sheet-media.out img { filter: grayscale(.85) brightness(.75); }
.sheet-body { padding: 20px 22px 28px; display: grid; gap: 10px; }
.sheet-body h3 { margin: 0; font: 600 34px/1.05 var(--serif); }
.sheet-body p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; white-space: pre-line; }
.sheet-body p:empty { display: none; }
.sheet-price { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.sheet-price .price { font-size: 22px; }
.sheet-price .out { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.sheet-variants { list-style: none; margin: 6px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.sheet-variants li { display: flex; align-items: baseline; gap: 10px; font-size: 15px; }
.sheet-variants li::after { content: ''; order: 1; flex: 1; border-bottom: 1px dotted var(--line-strong); transform: translateY(-4px); }
.sheet-variants b { order: 2; color: var(--gold); font-size: 17px; white-space: nowrap; }
body.locked { overflow: hidden; }
