/* ByKook QR menü (müşteri ekranı) */
:root {
    --bg: #f7f1ea;
    --surface: #fffdf9;
    --surface-2: #f3e9de;
    --ink: #21140d;
    --muted: #8a7466;
    --line: #ecdfd1;
    --brand: #5c3520;
    --accent: #c98a45;
    --accent-ink: #21140d;
    --price-bg: #f6e6d3;
    --price-ink: #6b3a1c;
    --toolbar-bg: rgba(247, 241, 234, .82);
    --shadow: 0 1px 2px rgba(33, 20, 13, .05), 0 8px 24px -12px rgba(33, 20, 13, .18);
    --shadow-lg: 0 24px 60px -20px rgba(33, 20, 13, .45);
    --radius: 20px;
    --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --toolbar-h: 120px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #120b07;
        --surface: #1d140f;
        --surface-2: #2a1d15;
        --ink: #f6eadf;
        --muted: #b6a091;
        --line: #33251c;
        --brand: #e6b07a;
        --accent: #e0a868;
        --price-bg: #3a2718;
        --price-ink: #f2c89a;
        --toolbar-bg: rgba(18, 11, 7, .8);
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .7);
        --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .8);
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--toolbar-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.5 var(--font-body);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; }
svg { display: block; }

/* ---------- Başlık ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 48px 20px 64px;
    text-align: center;
    color: #f8ecdf;
    background:
        radial-gradient(120% 90% at 50% 0%, #7b4a2b 0%, #3a2116 45%, #1c110b 100%);
}
.hero::before {
    /* ince nokta dokusu */
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 18px 18px;
    mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
}
.hero-glow {
    position: absolute; left: 50%; top: -120px; width: 420px; height: 420px; transform: translateX(-50%);
    background: radial-gradient(circle, rgba(232, 168, 98, .35), transparent 65%);
    filter: blur(10px);
}
.hero-inner { position: relative; max-width: 560px; margin: 0 auto; animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.hero-logo svg {
    width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 22px;
    box-shadow: 0 12px 40px -8px rgba(201, 138, 69, .65), 0 0 0 6px rgba(255, 255, 255, .06);
}
.hero-title { margin: 0; line-height: 0; }
.hero-wordmark {
    display: block; width: min(440px, 84vw); height: auto; margin: 0 auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .45)) drop-shadow(0 0 40px rgba(232, 168, 98, .18));
}
.mini-wordmark { display: block; height: 34px; width: auto; }
/* Google yorumları (QR menü) */
.reviews { max-width: 820px; margin: 0 auto; padding: 36px 16px 8px; text-align: center; }
.reviews .eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.reviews h2 { font-family: var(--font-display); font-size: 26px; }
.rating-summary { display: inline-flex; align-items: center; gap: 14px; margin-top: 14px; padding: 12px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-align: left; box-shadow: var(--shadow); }
.rating-summary > strong { font-family: var(--font-display); font-size: 38px; line-height: 1; color: var(--brand); }
.rating-summary small { display: block; color: var(--muted); font-weight: 600; font-size: 13px; }
.stars { display: inline-flex; gap: 2px; font-size: 17px; line-height: 1; }
.star { background: linear-gradient(90deg, #f2b43c var(--fill), color-mix(in srgb, var(--muted) 35%, transparent) var(--fill)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.review-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px); gap: 12px; overflow-x: auto; margin-top: 18px; padding: 4px 2px 14px; scroll-snap-type: x mandatory; text-align: left; }
.review-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.review-card blockquote { margin: 0; flex: 1; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.review-card figcaption { display: flex; align-items: center; gap: 10px; }
.review-card figcaption img, .avatar-letter { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; }
.avatar-letter { display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--brand); }
.review-card figcaption span { display: grid; line-height: 1.3; font-weight: 700; font-size: 14px; }
.review-card figcaption a { color: inherit; text-decoration: none; }
.review-card figcaption small { color: var(--muted); font-weight: 600; }
.reviews-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.reviews-actions a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 800; font-size: 14px; text-decoration: none; }
.reviews-actions .btn-primary { color: #24150e; background: linear-gradient(135deg, #f0c48f, #c98a45); }
.reviews-actions .btn-glass { color: var(--ink); border: 1px solid var(--line); background: var(--surface); }
.reviews-attribution { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.foot-home { margin-top: 6px; color: var(--brand); font-weight: 700; text-decoration: none; }
.consent {
    position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60;
    max-width: 560px; margin: 0 auto; padding: 16px 18px; border-radius: 18px;
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.consent[hidden] { display: none; }
.consent p { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.consent-actions { display: flex; justify-content: flex-end; gap: 8px; }
.consent-actions button { min-height: 40px; padding: 0 18px; border-radius: 999px; font: 800 14px var(--font-body); cursor: pointer; }
.consent .btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.consent .btn-primary { border: 0; color: #24150e; background: linear-gradient(135deg, #f0c48f, #c98a45); }
.foot-wordmark { display: block; width: min(220px, 60vw); height: auto; margin-bottom: 4px; }
.hero-eyebrow {
    margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: #e0b98f;
}
.hero h1 {
    margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(42px, 11vw, 60px);
    line-height: 1; letter-spacing: -.01em; color: #fff;
}
.hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.hero-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
    font-size: 14px; font-weight: 600; color: #fff;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* ---------- Sabit arama + kategori çubuğu ---------- */
.toolbar {
    position: sticky; top: 0; z-index: 20;
    margin-top: -28px;
    padding-top: 0;
    transition: background .25s, box-shadow .25s;
}
.toolbar.is-stuck {
    background: var(--toolbar-bg);
    backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
    box-shadow: 0 1px 0 var(--line);
}
.toolbar-inner { max-width: 820px; margin: 0 auto; padding: 0 16px 10px; }
.toolbar-top { display: flex; align-items: center; gap: 12px; padding-top: 0; transition: padding .25s; }
.toolbar.is-stuck .toolbar-top { padding-top: 10px; }

.mini-brand {
    display: none; align-items: center; gap: 8px; flex-shrink: 0;
    font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none;
}
.mini-logo svg { width: 32px; height: 32px; border-radius: 9px; }
.toolbar.is-stuck .mini-brand { display: inline-flex; animation: fade-in .3s ease both; }

.search {
    flex: 1; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
    transition: border-color .2s, box-shadow .2s;
}
.toolbar.is-stuck .search { min-height: 44px; box-shadow: none; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.search svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input {
    flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink);
    font: 500 16px var(--font-body);
}
.search input::placeholder { color: var(--muted); }

.cats {
    display: flex; gap: 8px; margin-top: 12px; padding: 2px 2px 4px; overflow-x: auto; scrollbar-width: none;
    scroll-snap-type: x proximity;
}
.cats::-webkit-scrollbar { display: none; }
.cats.dimmed { opacity: .35; pointer-events: none; }
.cats a {
    flex-shrink: 0; scroll-snap-align: start;
    display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px 9px 12px; border-radius: 999px;
    text-decoration: none; font-weight: 700; font-size: 14.5px; white-space: nowrap;
    color: var(--ink); background: var(--surface); border: 1px solid var(--line);
    transition: background .2s, color .2s, border-color .2s, transform .1s;
}
.cats a span { font-size: 17px; line-height: 1; }
.cats a:active { transform: scale(.96); }
.cats a.active {
    color: #fff; border-color: transparent;
    background: linear-gradient(135deg, color-mix(in srgb, var(--cat) 85%, #fff), var(--cat));
    box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--cat) 70%, transparent);
}

/* ---------- Menü ---------- */
.menu { max-width: 820px; margin: 0 auto; padding: 8px 16px 32px; }
.cat-section { padding-top: 26px; }
/* Belirme animasyonu yalnızca JS çalışıyorsa; aksi halde içerik hep görünür kalır. */
.js-reveal .cat-section:not(.revealed) { opacity: 0; transform: translateY(14px); }
.js-reveal .cat-section { transition: opacity .5s ease, transform .5s cubic-bezier(.2, .8, .2, 1); }
.cat-section[hidden] { display: none; }
.cat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cat-icon {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 24px;
    background: color-mix(in srgb, var(--cat) 16%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--cat) 25%, transparent);
}
.cat-head h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 25px; line-height: 1.1; }
.cat-head p { margin: 2px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); }

.items { display: grid; gap: 12px; }
.item {
    display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center;
    width: 100%; padding: 10px; text-align: left; cursor: pointer;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .15s ease, box-shadow .2s ease, border-color .2s;
}
.item[hidden] { display: none; }
.item:hover { border-color: color-mix(in srgb, var(--cat) 35%, var(--line)); }
.item:active { transform: scale(.985); }
.item:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.item-media {
    position: relative; width: 96px; height: 96px; border-radius: 14px; overflow: hidden;
    background: var(--surface-2);
}
.item-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-placeholder, .sheet-placeholder {
    display: grid; place-items: center; width: 100%; height: 100%; font-size: 40px;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .55), transparent 55%),
        linear-gradient(145deg, color-mix(in srgb, var(--cat) 22%, var(--surface)), color-mix(in srgb, var(--cat) 45%, var(--surface)));
}
.item-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-right: 4px; }
.item-name { font-weight: 800; font-size: 17px; line-height: 1.25; }
.item-desc {
    font-size: 13.5px; color: var(--muted); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item-price {
    align-self: flex-start; margin-top: 4px; padding: 4px 11px; border-radius: 999px;
    font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums;
    color: var(--price-ink); background: var(--price-bg);
}

.no-result, .menu-empty { text-align: center; color: var(--muted); padding: 56px 16px; }
.menu-empty h2 { margin: 0 0 6px; font-family: var(--font-display); color: var(--ink); }
.empty-icon { font-size: 44px; margin-bottom: 8px; }

/* ---------- Ürün detayı ---------- */
.sheet {
    width: min(520px, 100%); max-width: 100%; max-height: 92vh; margin: auto auto 0; padding: 0;
    border: 0; border-radius: 28px 28px 0 0; overflow: hidden;
    background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
}
.sheet[open] { animation: sheet-up .32s cubic-bezier(.2, .9, .25, 1) both; }
.sheet::backdrop { background: rgba(20, 11, 6, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sheet-media { aspect-ratio: 4 / 3; background: var(--surface-2); }
.sheet-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sheet-placeholder { font-size: 88px; }
.sheet-body { padding: 22px 22px calc(26px + env(safe-area-inset-bottom)); }
.sheet-body h3 { margin: 0; font-family: var(--font-display); font-size: 28px; line-height: 1.15; }
.sheet-body p { margin: 10px 0 0; color: var(--muted); font-size: 16px; }
.item-tag {
    align-self: flex-start; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800;
    color: var(--muted); background: var(--surface-2); text-transform: uppercase; letter-spacing: .05em;
}
.sheet-options { display: grid; gap: 12px; margin-top: 16px; }
.sheet-options:empty { display: none; }
.sheet-option-group strong { display: block; font-size: 14px; margin-bottom: 6px; }
.sheet-option-list { display: flex; flex-wrap: wrap; gap: 6px; }
.sheet-option-list span {
    padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600;
    background: var(--surface-2); border: 1px solid var(--line);
}
.sheet-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.sheet-price { padding: 8px 16px; border-radius: 999px; font-size: 20px; font-variant-numeric: tabular-nums; color: var(--price-ink); background: var(--price-bg); }
.sheet-price[hidden] { display: none; }
.sheet-hint { font-size: 13px; color: var(--muted); }
.sheet-close {
    position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px;
    border: 0; border-radius: 50%; cursor: pointer; background: rgba(20, 11, 6, .55); color: #fff;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.sheet-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* ---------- Başa dön ---------- */
.to-top {
    position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 15;
    display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer;
    color: #fff; background: linear-gradient(135deg, #8a5531, #5c3520); box-shadow: 0 10px 24px -8px rgba(92, 53, 32, .7);
    opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .25s, transform .25s;
}
.to-top.visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Alt bilgi ---------- */
.foot {
    display: grid; justify-items: center; gap: 6px; text-align: center;
    padding: 36px 16px calc(40px + env(safe-area-inset-bottom));
    color: var(--muted); font-size: 14px;
}
.foot-logo svg { width: 36px; height: 36px; border-radius: 10px; opacity: .9; }
.foot strong { font-family: var(--font-display); font-size: 20px; color: var(--ink); }

/* ---------- Animasyonlar ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes sheet-up { from { transform: translateY(100%); } }

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

/* ---------- Geniş ekran ---------- */
@media (min-width: 720px) {
    .hero { padding: 64px 24px 80px; }
    .items { grid-template-columns: 1fr 1fr; }
    .item { grid-template-columns: 104px minmax(0, 1fr); }
    .item-media { width: 104px; height: 104px; }
    .sheet { margin: auto; border-radius: 28px; }
    .sheet[open] { animation: fade-in .2s ease both; }
}

@media (max-width: 380px) {
    .item { grid-template-columns: 80px minmax(0, 1fr); gap: 12px; }
    .item-media { width: 80px; height: 80px; }
    .mini-wordmark { height: 28px; }
}
