/* =====================================================================
   QR Menü — müşteri arayüzü ("Deniz" teması)
   Tasarım dili: lacivert marka + kâğıt beyazı menü panosu, fırça darbesi başlıklar,
   hareket: açılışta deniz sahnesi, listede kaydırdıkça yumuşak beliriş.
   prefers-reduced-motion'da tüm dekoratif hareket kapatılır.
   ===================================================================== */
:root {
    --brand: #0b2350;
    --navy-950: #06142e;
    --navy-900: var(--brand);
    --navy-800: #13306b;
    --blue-600: #1f5fc4;
    --blue-500: #2f7de1;
    --sky-300: #9ccbff;
    --sky-100: #e4f0ff;
    --paper: #f3f5f9;
    --surface: #ffffff;
    --ink: #0b1b3a;
    --muted: #4a5a74;
    --line: #dde3ec;
    --fat: #ec9a24;
    --carb: #2f7de1;
    --prot: #13a085;
    --radius: 18px;
    --shadow-sm: 0 2px 8px -2px rgba(11, 35, 80, .12);
    --shadow: 0 14px 32px -16px rgba(11, 35, 80, .35);
    --ease-out: cubic-bezier(.2, .8, .2, 1);
    --dock-h: 118px;
    --font-head: 'Montserrat', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-script: 'Caveat', cursive;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--paper);
    padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom));
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
img { display: block; max-width: 100%; }
body.lock { overflow: hidden; }
.ic { width: 1.15em; height: 1.15em; flex: 0 0 auto; vertical-align: -.2em; }
.ic-emoji { display: inline-grid; place-items: center; font-size: 1em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 200; padding: 10px 14px; border-radius: 10px; background: #fff; color: var(--navy-900); font-weight: 700; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; border-radius: 8px; }
.script { font-family: var(--font-script); font-weight: 700; }
.muted { color: var(--muted); }

/* Kaydırınca beliriş (JS yoksa içerik görünür kalır) */
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.in {
    opacity: 1; transform: none;
    transition: opacity .55s ease, transform .6s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 55ms);
}

/* ---------------------------------------------------------------------
   Deniz sahnesi
   --------------------------------------------------------------------- */
.sea { position: absolute; left: 0; right: 0; bottom: 0; height: 130px; overflow: hidden; pointer-events: none; }
/* 4 periyotluk yol %400 genişlikte: telefonda bir dalga ≈ ekran genişliği kadar, yumuşak görünür */
.wave { position: absolute; left: 0; bottom: 0; width: 400%; height: 100%; animation: wave-move 16s linear infinite; }
.wave path { fill: currentColor; }
.wave.w3 { color: rgba(156, 203, 255, .22); height: 92%; animation-duration: 26s; bottom: 16px; }
.wave.w2 { color: rgba(47, 125, 225, .55); height: 74%; animation-duration: 18s; animation-direction: reverse; bottom: 6px; }
.wave.w1 { color: var(--paper); height: 48%; animation-duration: 12s; }
@keyframes wave-move { to { transform: translateX(-50%); } }

.sea-band { height: 22px; }
.sea-band .wave.w3 { display: none; }
.sea-band .wave.w2 { color: rgba(156, 203, 255, .35); height: 100%; bottom: 0; animation-duration: 20s; }
.sea-band .wave.w1 { height: 70%; animation-duration: 14s; }

.boat {
    position: absolute; left: 10%; bottom: 44px; width: 104px; color: #eaf3ff;
    transform-origin: 50% 90%;
    animation: bob 5s ease-in-out infinite;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .25));
}
@keyframes bob {
    0%, 100% { transform: translateY(0) rotate(-2.5deg); }
    50% { transform: translateY(-7px) rotate(2.5deg); }
}
.jumper { position: absolute; right: 20%; bottom: 30px; width: 56px; color: #d6e8ff; animation: jump 7s ease-in-out infinite; opacity: 0; }
@keyframes jump {
    0%, 56% { transform: translate(0, 60px) rotate(-70deg); opacity: 0; }
    60% { opacity: 1; }
    74% { transform: translate(42px, -58px) rotate(-5deg); }
    88% { transform: translate(84px, 16px) rotate(65deg); opacity: 1; }
    94%, 100% { transform: translate(92px, 60px) rotate(80deg); opacity: 0; }
}
.gull { position: absolute; width: 26px; height: 12px; color: rgba(255, 255, 255, .85); animation: fly 24s linear infinite, flap .7s ease-in-out infinite alternate; }
.gull.g1 { top: -80px; animation-delay: -4s, 0s; }
.gull.g2 { top: -60px; width: 18px; animation-duration: 30s, .6s; animation-delay: -16s, -.3s; opacity: .7; }
.gull.g3 { top: -96px; width: 20px; animation-duration: 34s, .8s; animation-delay: -24s, -.2s; }
@keyframes fly { from { translate: -60px 0; } to { translate: 110vw -30px; } }
@keyframes flap { to { transform: scaleY(.45); } }
.bubbles i {
    position: absolute; bottom: -10px; width: 8px; height: 8px; border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .08);
    animation: rise 8s ease-in infinite;
}
.bubbles i:nth-child(1) { left: 12%; animation-delay: 0s; }
.bubbles i:nth-child(2) { left: 28%; width: 5px; height: 5px; animation-delay: 2.2s; animation-duration: 7s; }
.bubbles i:nth-child(3) { left: 46%; animation-delay: 4.1s; }
.bubbles i:nth-child(4) { left: 61%; width: 11px; height: 11px; animation-delay: 1.3s; animation-duration: 9s; }
.bubbles i:nth-child(5) { left: 74%; width: 6px; height: 6px; animation-delay: 5.5s; }
.bubbles i:nth-child(6) { left: 86%; animation-delay: 3.3s; animation-duration: 10s; }
.bubbles i:nth-child(7) { left: 94%; width: 5px; height: 5px; animation-delay: 6.4s; }
@keyframes rise {
    0% { transform: translate(0, 0); opacity: 0; }
    15% { opacity: 1; }
    100% { transform: translate(10px, -170px); opacity: 0; }
}

/* ---------------------------------------------------------------------
   Açılış ekranı
   --------------------------------------------------------------------- */
.intro {
    position: fixed; inset: 0; z-index: 120; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 24px 20px 250px;
    color: #fff; text-align: center;
    background:
        radial-gradient(120% 70% at 50% 0%, rgba(47, 125, 225, .45) 0%, transparent 60%),
        linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 55%, #123a86 100%);
}
.intro[hidden] { display: none; }
.intro .sea { height: 230px; overflow: visible; }
.intro .wave.w3 { height: 150px; bottom: 44px; }
.intro .wave.w2 { height: 120px; bottom: 16px; color: rgba(47, 125, 225, .5); }
.intro .wave.w1 { height: 84px; color: #081a3d; }
.intro .boat { bottom: 92px; left: 8%; width: 118px; }
.intro .jumper { bottom: 70px; width: 64px; }
.intro .gull.g1 { top: -20px; }
.intro .gull.g2 { top: 10px; }
.intro .gull.g3 { top: -40px; }
@media (max-height: 700px) {
    .intro { padding-bottom: 200px; }
    .intro-logo { width: 140px; height: 140px; }
    .intro .sea { height: 190px; }
}
.intro-glow { position: absolute; top: 10%; left: 50%; width: 360px; height: 360px; margin-left: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(156, 203, 255, .28), transparent 65%); animation: glow 5s ease-in-out infinite; }
@keyframes glow { 50% { transform: scale(1.12); opacity: .7; } }
.intro-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.intro-logo { position: relative; width: 184px; height: 184px; animation: logo-in 1s var(--ease-out) both; }
.intro-logo img { position: relative; width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .6); }
.intro-logo strong { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #fff; color: var(--navy-900); font: 800 24px var(--font-head); }
.intro-logo .ring { position: absolute; inset: -10px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 60%, rgba(156, 203, 255, .9) 75%, transparent 90%); animation: spin 4s linear infinite; -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%); mask: radial-gradient(circle, transparent 62%, #000 63%); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes logo-in { from { opacity: 0; transform: scale(.6) rotate(-12deg); } }
.intro-slogan { margin: 6px 0 0; font: 700 clamp(26px, 7.5vw, 34px)/1.15 var(--font-script); color: var(--sky-300); max-width: 320px; animation: fade-up .8s .35s var(--ease-out) both; }
.intro-table { margin: 0; display: inline-flex; gap: 6px; align-items: center; font-size: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); animation: fade-up .8s .5s var(--ease-out) both; }
.intro-btn {
    position: relative; display: inline-flex; align-items: center; gap: 10px; margin-top: 10px;
    min-height: 56px; padding: 0 28px; border-radius: 999px;
    font: 800 17px var(--font-head); letter-spacing: .02em; color: var(--navy-900);
    background: linear-gradient(180deg, #fff, #dcebff);
    box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .55), inset 0 -2px 0 rgba(11, 35, 80, .12);
    animation: fade-up .8s .65s var(--ease-out) both;
    transition: transform .18s var(--ease-out);
}
.intro-btn .ic { width: 22px; height: 22px; }
.intro-btn::after { content: ""; position: absolute; inset: -6px; border-radius: 999px; border: 2px solid rgba(156, 203, 255, .6); animation: pulse-ring 2s ease-out 1.6s infinite; }
.intro-btn:active { transform: scale(.97); }
@keyframes pulse-ring { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.18); } }
.intro-silent { font-size: 14px; color: rgba(255, 255, 255, .78); padding: 10px 14px; min-height: 44px; animation: fade-up .8s .8s var(--ease-out) both; text-decoration: underline; text-underline-offset: 3px; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } }
.intro.leaving .intro-content { transition: opacity .5s ease, transform .6s var(--ease-out); opacity: 0; transform: scale(1.08) translateY(-10px); }
.intro.leaving .sea { transition: height .9s var(--ease-out); height: 120vh; }
.intro.leaving { transition: opacity .45s ease .75s; opacity: 0; }

/* ---------------------------------------------------------------------
   Ana sayfa
   --------------------------------------------------------------------- */
.hero {
    position: relative; overflow: hidden;
    padding: max(28px, env(safe-area-inset-top)) 20px 150px;
    color: #fff; text-align: center;
    background:
        radial-gradient(90% 60% at 50% 0%, rgba(47, 125, 225, .5), transparent 70%),
        linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 45%, #16438f 100%);
}
.hero-sky { position: absolute; inset: 0; background-image: radial-gradient(1.5px 1.5px at 20% 20%, rgba(255, 255, 255, .5), transparent), radial-gradient(1px 1px at 70% 12%, rgba(255, 255, 255, .45), transparent), radial-gradient(1.5px 1.5px at 85% 30%, rgba(255, 255, 255, .35), transparent), radial-gradient(1px 1px at 35% 8%, rgba(255, 255, 255, .4), transparent); }
.hero-inner { position: relative; z-index: 2; max-width: 520px; margin: 0 auto; }
.hero-logo { width: 148px; height: 148px; margin: 0 auto; border-radius: 50%; padding: 4px; background: linear-gradient(145deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .08)); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6); }
.hero-logo img { width: 100%; height: 100%; border-radius: 50%; }
.hero-logo-text { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #fff; color: var(--navy-900); font: 800 20px var(--font-head); }
.hero-title { font: 800 28px var(--font-head); margin: 12px 0 0; }
.hero-slogan { margin: 14px 0 0; font: 700 30px/1.1 var(--font-script); color: var(--sky-300); }
.hero-tagline { margin: 6px 0 0; font: 700 12px var(--font-head); letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.hero-actions a {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px;
    font-size: 14px; font-weight: 600; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s;
}
.hero-actions a:hover { background: rgba(255, 255, 255, .2); }

.paper {
    position: relative; max-width: 760px; margin: 0 auto; padding: 4px 16px 24px;
}
.table-hello { display: flex; gap: 10px; align-items: center; margin: 4px 0 18px; padding: 12px 14px; border-radius: 14px; background: var(--sky-100); color: var(--navy-900); font-size: 14.5px; }
.table-hello .ic { width: 20px; height: 20px; color: var(--blue-600); }

.menu-block { margin-bottom: 28px; }
.block-head { display: flex; align-items: center; gap: 10px; margin: 8px 0 14px; }
.block-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--navy-900); color: #fff; box-shadow: var(--shadow-sm); }
.block-ic .ic { width: 22px; height: 22px; }
.block-head h2 {
    margin: 0; padding: 7px 18px 7px 14px;
    font: 800 17px var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: #fff;
    background: var(--navy-900);
    /* Menü panosundaki fırça darbesi bant */
    clip-path: polygon(0 12%, 4% 0, 96% 6%, 100% 30%, 98% 72%, 100% 100%, 6% 94%, 0 70%);
}
.block-all { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; min-height: 44px; font-size: 14px; font-weight: 700; color: var(--blue-600); }

.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
.cat-card {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
    min-height: 138px; padding: 16px 14px 20px; border-radius: var(--radius);
    color: #fff;
    background: linear-gradient(150deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--blue-600) 100%);
    box-shadow: var(--shadow);
    transition: transform .25s var(--ease-out), box-shadow .25s;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -16px rgba(11, 35, 80, .5); }
.cat-card:active { transform: scale(.98); }
.cat-card-ic { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, .12); color: var(--sky-300); }
.cat-card-ic .ic { width: 26px; height: 26px; }
.cat-card strong { font: 800 17px/1.2 var(--font-head); }
.cat-card small { font-size: 13px; color: rgba(255, 255, 255, .86); }
.cat-card-wave { position: absolute; left: 0; bottom: 0; width: 200%; height: 22px; z-index: -1; fill: rgba(255, 255, 255, .1); transition: transform 1.2s var(--ease-out); }
.cat-card:hover .cat-card-wave { transform: translateX(-25%); }

.ai-card {
    display: flex; gap: 14px; align-items: flex-start;
    margin: 6px 0 28px; padding: 18px; border-radius: var(--radius);
    background: linear-gradient(135deg, #fff 0%, var(--sky-100) 100%);
    border: 1px solid #cfe0f7; box-shadow: var(--shadow-sm);
}
.ai-card-ic { flex: 0 0 52px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--navy-900); color: var(--sky-300); }
.ai-card-ic .ic { width: 30px; height: 30px; animation: spin 14s linear infinite; }
.ai-card h2 { margin: 0; font: 800 18px var(--font-head); color: var(--navy-900); }
.ai-card p { margin: 4px 0 10px; font-size: 14.5px; color: var(--muted); }
.ai-card-chips, .ai-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-card-chips button, .ai-chips button {
    min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
    background: #fff; color: var(--navy-900); border: 1px solid #c5d6ee; transition: background .2s, transform .15s;
}
.ai-card-chips button:hover, .ai-chips button:hover { background: var(--sky-100); }
.ai-card-chips button:active, .ai-chips button:active { transform: scale(.96); }

.featured { margin-bottom: 26px; }
.h-scroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 10px; scrollbar-width: none; }
.h-scroll::-webkit-scrollbar { display: none; }
.f-card {
    flex: 0 0 154px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px;
    padding: 8px 8px 12px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); border: 1px solid var(--line);
    transition: transform .2s var(--ease-out);
}
.f-card:active { transform: scale(.97); }
.f-img { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; }
.f-img img { width: 100%; height: 100%; object-fit: cover; }
.f-ph { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(145deg, var(--navy-900), var(--blue-600)); color: var(--sky-300); }
.f-ph-ic { width: 38px; height: 38px; }
.f-card strong { font-size: 14px; line-height: 1.3; padding: 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.f-meta { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px; }
.f-meta b { font: 800 15px var(--font-head); color: var(--navy-900); }
.f-meta small { font-size: 12px; color: var(--muted); }

.site-foot { text-align: center; padding: 24px 8px 8px; color: var(--muted); font-size: 14px; }
.site-foot img { margin: 0 auto 4px; border-radius: 50%; }
.site-foot .script { font-size: 28px; color: var(--blue-600); margin: 0 0 8px; }
.site-foot p { margin: 4px 0; display: flex; gap: 6px; justify-content: center; align-items: flex-start; }
.site-foot a { color: var(--navy-900); font-weight: 600; }
.empty-note { text-align: center; color: var(--muted); padding: 30px 0; }

/* ---------------------------------------------------------------------
   Üst çubuk + kategori sekmeleri
   --------------------------------------------------------------------- */
.topbar { position: sticky; top: 0; z-index: 30; color: #fff; background: linear-gradient(180deg, var(--navy-950), var(--navy-900)); padding-top: env(safe-area-inset-top); }
.topbar-row { display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 12px; position: relative; z-index: 2; }
.topbar-back { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .12); }
.topbar-back .ic { width: 22px; height: 22px; }
.topbar-brand { display: flex; align-items: center; gap: 8px; min-width: 0; font: 800 15px var(--font-head); }
.topbar-brand img { border-radius: 50%; }
.topbar-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-group { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--sky-300); white-space: nowrap; }
.topbar .sea { position: relative; margin-top: -2px; }

.cat-tabs {
    position: sticky; top: calc(78px + env(safe-area-inset-top)); z-index: 29;
    display: flex; gap: 8px; overflow-x: auto; padding: 8px 14px 10px;
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs a {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: 999px;
    font-size: 14.5px; font-weight: 700; white-space: nowrap;
    color: var(--navy-900); background: var(--surface); border: 1px solid var(--line);
    transition: background .25s, color .25s, border-color .25s;
}
.cat-tabs a.active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

/* ---------------------------------------------------------------------
   Ürün listesi (menü panosu düzeni)
   --------------------------------------------------------------------- */
.menu-list { padding-top: 6px; }
.cat-section { margin-bottom: 26px; scroll-margin-top: 140px; }
.cat-head { display: flex; align-items: center; gap: 12px; margin: 10px 0 12px; }
.cat-head-ic { flex: 0 0 48px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--navy-900); color: var(--sky-300); box-shadow: var(--shadow-sm); }
.cat-head-ic .ic { width: 26px; height: 26px; }
.cat-head h2 { margin: 0; font: 800 21px/1.1 var(--font-head); letter-spacing: .04em; text-transform: uppercase; color: var(--navy-900); }
.cat-head .script { margin: 2px 0 0; font-size: 20px; line-height: 1.1; color: var(--blue-600); }
.cat-head small { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
.cat-banner-img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); margin-bottom: 12px; }

.items { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); overflow: hidden; }
.item {
    display: flex; gap: 12px; align-items: center;
    padding: 14px 16px; border-bottom: 1px dashed var(--line);
    transition: background .2s;
}
.item-wrap .item { border-bottom: 0; }
.item:last-child { border-bottom: 0; }
.item-wrap { position: relative; }
.item-wrap + .item-wrap { border-top: 1px dashed var(--line); }

/* Listeden tek dokunuşla masaya ekle */
.can-add .item-desc, .can-add .item-meta { padding-right: 96px; }
.can-add .item-body { min-height: 62px; }
.item-add {
    position: absolute; right: 14px; bottom: 12px;
    display: inline-flex; align-items: center; gap: 4px; min-height: 40px; min-width: 44px; padding: 0 14px 0 12px; border-radius: 999px;
    font-weight: 700; font-size: 14px; color: #fff;
    background: linear-gradient(135deg, var(--blue-600), var(--navy-900));
    box-shadow: 0 6px 14px -6px rgba(11, 35, 80, .6);
    transition: transform .15s var(--ease-out);
}
.item-add:active { transform: scale(.92); }
.qa-plus { font-size: 20px; line-height: 1; margin-top: -2px; }
.qa-count:empty { display: none; }
.qa-count { min-width: 22px; height: 22px; padding: 0 6px; margin-left: 2px; border-radius: 11px; display: grid; place-items: center; font-size: 12.5px; color: var(--navy-900); background: #fff; }
.item-add.bump { animation: bump .35s var(--ease-out); }
.cart-bar.bump { animation: bump-bar .4s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.15); } }
@keyframes bump-bar { 40% { transform: translateX(-50%) scale(1.04); } }

/* Masadaki QR okutulmadan açıldığında sipariş yönlendirmesi */
.order-hint { display: flex; gap: 12px; align-items: center; margin: 6px 0 18px; padding: 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; color: var(--navy-900); background: #fff7e6; border: 1px solid #f3dfb2; }
.order-hint-ic { flex: 0 0 44px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--navy-900); color: #fff; }
.order-hint-ic svg { width: 24px; height: 24px; }
.pd-noorder { display: flex; gap: 10px; align-items: center; margin-top: 18px; padding: 12px 14px; border-radius: 14px; font-size: 14.5px; color: var(--navy-900); background: #fff7e6; border: 1px solid #f3dfb2; }
.pd-noorder .ic { width: 24px; height: 24px; flex: 0 0 24px; }

/* Ana sayfa: masanın ortak hesabı */
.bill-card {
    width: 100%; display: flex; align-items: center; gap: 12px; margin: -6px 0 22px; padding: 14px 16px; border-radius: 16px; text-align: left;
    color: #fff; background: linear-gradient(135deg, var(--navy-900), var(--blue-600)); box-shadow: var(--shadow);
}
.bill-card[hidden] { display: none; }
.bill-card-ic { flex: 0 0 44px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .15); }
.bill-card-ic .ic { width: 24px; height: 24px; }
.bill-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bill-card-body small { font-size: 12.5px; color: rgba(255, 255, 255, .8); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.bill-card-total { font: 800 22px var(--font-head); }
.bill-card-sub { font-size: 13px; color: rgba(255, 255, 255, .85); }
.bill-card-go { display: inline-flex; align-items: center; font-size: 13.5px; font-weight: 700; color: var(--sky-300); white-space: nowrap; }
.item:hover { background: #f8fafd; }
.item:active { background: var(--sky-100); }
.item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.item-line { display: flex; align-items: baseline; gap: 8px; }
.item-name { font-weight: 700; font-size: 16px; line-height: 1.3; }
.item-dots { flex: 1; min-width: 16px; border-bottom: 2px dotted #b3c0d4; transform: translateY(-4px); }
.item-price { font: 800 16px var(--font-head); color: var(--navy-900); white-space: nowrap; text-align: right; }
.item-price s, .pd-price s { display: block; font: 500 12px var(--font-body); color: var(--muted); }
.item-desc { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.item-img { flex: 0 0 76px; height: 76px; border-radius: 14px; overflow: hidden; }
.item-img img { width: 100%; height: 100%; object-fit: cover; }
.item.sold-out { opacity: .55; }
.item.sold-out .item-img { filter: grayscale(1); }

.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5; background: #eef2f8; color: #34435e; }
.chip .ic { width: 13px; height: 13px; }
.chip-kcal { background: #fff1e3; color: #9a4a06; }
.chip-popular { background: #ffece6; color: #a7331a; }
.chip-chef, .chip-new { background: #e8f0ff; color: #1b4ea8; }
.chip-vegan, .chip-vegetarian { background: #e5f6ee; color: #146c43; }
.chip-gluten_free { background: #f6f0e1; color: #7a5a12; }
.chip-spicy { background: #fde8e6; color: #b3261e; }
.chip-out { background: #fde8e6; color: #b3261e; }
.chip-alg { background: #f3f0fa; color: #4e3f7a; }
.list-foot { font-size: 13px; color: var(--muted); text-align: center; padding: 8px 12px 20px; }

/* ---------------------------------------------------------------------
   Alt dock, asistan butonu, müzik
   --------------------------------------------------------------------- */
.dock {
    position: fixed; z-index: 40; left: 50%; transform: translateX(-50%);
    bottom: max(12px, env(safe-area-inset-bottom));
    width: min(560px, calc(100% - 24px)); padding: 10px; border-radius: 22px;
    background: rgba(6, 20, 46, .88); color: #fff;
    backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .5);
}
.dock-search { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 14px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .78); font-size: 15px; text-align: left; }
.dock-actions { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 6px; }
.dock-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 44px; padding: 4px 0 0; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .82); border-radius: 10px; }
.dock-btn .ic { width: 21px; height: 21px; }
.dock-btn:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.dock-table { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px 8px; font-size: 13.5px; color: rgba(255, 255, 255, .88); }
.dock-table > span { display: inline-flex; align-items: center; gap: 4px; }
.dock-table button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--blue-600); color: #fff; }

/* "Kaptan'a Sor": alt menünün üst ortasına oturan sekme.
   --dock-top: alt menünün ekran altından üst kenarına uzaklığı (JS ölçer; masa satırı varken değişir). */
.ai-fab {
    position: fixed; z-index: 42; left: 0; right: 0; margin: 0 auto; width: max-content;
    bottom: calc(var(--dock-top, calc(var(--dock-h) + env(safe-area-inset-bottom))) - 6px);
    display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 18px 0 5px; border-radius: 999px;
    color: #fff; font: 800 14px var(--font-head); letter-spacing: .01em;
    background: linear-gradient(135deg, var(--blue-500), var(--navy-900) 85%);
    /* Sayfa renginde halka: menü çubuğuna gömülü çentik görünümü */
    box-shadow: 0 0 0 4px var(--paper), 0 10px 24px -8px rgba(11, 35, 80, .7);
    animation: fab-in .6s var(--ease-out) 1.2s both;
    transition: transform .2s var(--ease-out), bottom .3s var(--ease-out);
}
.ai-fab::before { content: ""; position: absolute; inset: -4px; border-radius: 999px; border: 2px solid rgba(47, 125, 225, .55); animation: pulse-ring 2.6s ease-out 2s infinite; pointer-events: none; }
.ai-fab:active { transform: scale(.96); }
.ai-fab-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.ai-fab-ic .ic { width: 21px; height: 21px; animation: spin 12s linear infinite; }
/* Sepet çubuğu açıkken onun üstüne kayar */
body.has-cart .ai-fab { bottom: calc(var(--dock-top, calc(var(--dock-h) + env(safe-area-inset-bottom))) + 62px); }
/* Ortadaki buton son satırları kapatmasın */
body.has-ai { padding-bottom: calc(var(--dock-h) + 44px + env(safe-area-inset-bottom)); }
body.has-ai.has-cart { padding-bottom: calc(var(--dock-h) + 108px + env(safe-area-inset-bottom)); }
body.is-home .ai-fab { animation-delay: 2.2s; }
@keyframes fab-in { from { opacity: 0; transform: translateY(20px) scale(.9); } }

.music-btn {
    position: fixed; z-index: 45; top: calc(12px + env(safe-area-inset-top)); right: 12px;
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    color: #fff; background: rgba(6, 20, 46, .55); border: 1px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.music-btn[hidden] { display: none; }
.music-btn.playing .ic { animation: beat 1s ease-in-out infinite; }
@keyframes beat { 50% { transform: scale(1.15); } }

/* ---------------------------------------------------------------------
   Çekmeceler (bottom sheet)
   --------------------------------------------------------------------- */
.sheet { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
#product-sheet { z-index: 65; } /* asistandaki ürün kartından açılınca üstte */
.sheet.open { visibility: visible; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(6, 20, 46, .55); opacity: 0; transition: opacity .25s; }
.sheet.open .sheet-backdrop { opacity: 1; }
.sheet-panel {
    position: absolute; left: 0; right: 0; bottom: 0; max-height: 94vh; max-height: 94dvh;
    overflow-y: auto; overscroll-behavior: contain;
    background: var(--surface); color: var(--ink); border-radius: 24px 24px 0 0;
    transform: translateY(100%); transition: transform .34s var(--ease-out);
    padding-bottom: env(safe-area-inset-bottom);
}
.sheet.open .sheet-panel { transform: none; }
.sheet-panel.small { padding: 8px 16px 24px; }
.sheet-grip { width: 42px; height: 5px; border-radius: 3px; background: var(--line); margin: 6px auto 10px; }
.sheet-title { margin: 0 0 10px; font: 800 19px var(--font-head); color: var(--navy-900); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head .sheet-title { margin: 0; }
.sheet-x { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); }
.sheet-x .ic { width: 20px; height: 20px; }
.sheet-sub { display: flex; gap: 4px; align-items: center; margin: 2px 0 12px; color: var(--muted); font-size: 14px; }
.sheet-loading { padding: 80px 0; text-align: center; color: var(--muted); }
.group-links { display: grid; gap: 8px; }
.group-links a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px; border-radius: 14px; background: var(--paper); font-weight: 700; }
.group-links a > .ic:last-child { margin-left: auto; color: var(--muted); }
.gi { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--navy-900); color: var(--sky-300); }
.gi .ic { width: 22px; height: 22px; }
@media (min-width: 720px) {
    .sheet-panel { left: 50%; right: auto; bottom: auto; top: 50%; width: 560px; max-height: 88vh; border-radius: 24px; transform: translate(-50%, -46%) scale(.97); opacity: 0; transition: transform .28s var(--ease-out), opacity .28s; }
    .sheet.open .sheet-panel { transform: translate(-50%, -50%); opacity: 1; }
}

/* ---------------------------------------------------------------------
   Ürün detayı
   --------------------------------------------------------------------- */
.pd-media { position: relative; background: var(--navy-900); }
.pd-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pd-slides::-webkit-scrollbar { display: none; }
.pd-slides img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; scroll-snap-align: start; }
.pd-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.pd-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .5); transition: all .2s; }
.pd-dots i.on { background: #fff; width: 18px; border-radius: 4px; }
.pd-ill { position: relative; height: 200px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(80% 90% at 50% 20%, #2a63c9 0%, var(--navy-900) 70%); }
.pd-ill-ic { position: relative; z-index: 2; display: grid; place-items: center; width: 96px; height: 96px; margin-bottom: 20px; border-radius: 50%; color: var(--sky-300); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); animation: float 5s ease-in-out infinite; }
.pd-ill-ic .ic { width: 52px; height: 52px; }
@keyframes float { 50% { transform: translateY(-8px); } }
.pd-ill .sea { height: 28px; }
.pd-ill .wave.w1 { color: var(--surface); }
.product-page .pd-ill .wave.w1 { color: var(--surface); }
.pd-tools { position: absolute; top: 12px; right: 12px; display: flex; gap: 8px; z-index: 3; }
.pd-tools button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--navy-900); box-shadow: 0 2px 10px rgba(0, 0, 0, .2); }
.pd-tools .ic { width: 19px; height: 19px; }
.pd-tools button.faved { color: #d61f4f; }
.pd-tools button.faved .ic { fill: currentColor; }
.product-page .pd-tools [data-close] { display: none; }

.pd-body { padding: 14px 18px 28px; }
.pd-crumb { display: flex; align-items: center; gap: 2px; font-size: 13px; color: var(--muted); }
.pd-crumb .ic { width: 14px; height: 14px; }
.pd-crumb a:hover { color: var(--blue-600); }
.pd-title { display: flex; align-items: flex-start; gap: 12px; margin-top: 6px; }
.pd-title h1 { flex: 1; margin: 0; font: 800 24px/1.2 var(--font-head); color: var(--navy-900); }
.pd-price { flex: 0 0 auto; padding: 8px 14px; border-radius: 12px; font: 800 17px var(--font-head); color: #fff; background: linear-gradient(135deg, var(--blue-600), var(--navy-900)); text-align: right; }
.pd-price s { color: rgba(255, 255, 255, .75); }
.pd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pd-desc { margin: 14px 0 0; color: #34435e; font-size: 15.5px; line-height: 1.6; }
.pd-block { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.pd-block-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.pd-block-head h4 { margin: 0; font: 800 13px var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--navy-900); }
.pd-block-head small { color: var(--muted); font-size: 12.5px; }

.nutri { display: flex; align-items: center; gap: 18px; }
.donut { position: relative; flex: 0 0 124px; width: 124px; height: 124px; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 11; }
.donut-track { stroke: #e9eef6; }
.donut-arc { stroke-dasharray: 0 var(--circ); stroke-dashoffset: var(--off); transition: stroke-dasharray 1.1s var(--ease-out) .15s; }
.pd.in .donut-arc { stroke-dasharray: var(--len) var(--circ); }
.arc-fat { stroke: var(--fat); }
.arc-carb { stroke: var(--carb); }
.arc-prot { stroke: var(--prot); }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut-center strong { font: 800 26px/1 var(--font-head); color: var(--navy-900); }
.donut-center span { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.macros { flex: 1; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.macros li { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: 14px; }
.m-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.m-val { font-weight: 700; color: var(--navy-900); }
.m-bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: #e9eef6; overflow: hidden; }
.m-bar i { display: block; height: 100%; width: 0; border-radius: 3px; transition: width 1s var(--ease-out) .3s; }
.pd.in .m-bar i { width: var(--w); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.fat, .m-bar .fat { background: var(--fat); }
.dot.carb, .m-bar .carb { background: var(--carb); }
.dot.prot, .m-bar .prot { background: var(--prot); }
.pd-prep { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.alg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.alg-chips span { font-size: 13.5px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: #f3f0fa; color: #4e3f7a; border: 1px solid #e2dcf2; }
.pd-ask { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; margin-top: 18px; padding: 10px 14px; border-radius: 14px; text-align: left; font-size: 14.5px; color: var(--navy-900); background: var(--sky-100); border: 1px solid #cfe0f7; }
.pd-ask .ic { width: 24px; height: 24px; color: var(--blue-600); }
.pd-similar { margin-top: 22px; }
.pd-similar h4 { margin: 0 0 10px; font: 800 17px var(--font-head); color: var(--navy-900); }
.pd-similar .h-scroll { margin: 0 -18px; padding-left: 18px; padding-right: 18px; }
.product-page { max-width: 640px; margin: 0 auto; background: var(--surface); min-height: 100vh; }

/* Sepete ekleme */
.pd-order {
    position: sticky; bottom: 0; z-index: 2;
    margin: 20px -18px 0; padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -18px rgba(0, 0, 0, .35);
}
.product-page .pd-order { bottom: calc(var(--dock-h) + 8px); }
.pd-order textarea, .cart-note { width: 100%; resize: none; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 16px; background: var(--paper); color: var(--ink); }
.pd-order-row { display: flex; gap: 10px; margin-top: 10px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.qty button { width: 44px; height: 48px; font-size: 22px; font-weight: 600; color: var(--blue-600); }
.qty span { min-width: 28px; text-align: center; font-weight: 700; }
.add-btn, .primary-btn { flex: 1; min-height: 48px; border-radius: 12px; font-weight: 700; font-size: 15.5px; color: #fff; background: linear-gradient(135deg, var(--blue-600), var(--navy-900)); }
.add-btn:active, .primary-btn:active { transform: scale(.98); }
.primary-btn { width: 100%; margin-top: 12px; }
.primary-btn[disabled] { opacity: .6; }
.ghost-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border-radius: 12px; border: 1px solid var(--line); font-weight: 700; font-size: 14.5px; background: var(--surface); color: var(--navy-900); }
.fine { font-size: 13px; color: var(--muted); text-align: center; margin: 10px 0 0; }

.cart-bar {
    position: fixed; z-index: 41; left: 50%; transform: translateX(-50%);
    bottom: calc(var(--dock-top, calc(var(--dock-h) + env(safe-area-inset-bottom))) + 6px);
    width: min(560px, calc(100% - 24px)); display: flex; align-items: center; gap: 10px;
    min-height: 52px; padding: 0 16px; border-radius: 16px; color: #fff; font-weight: 700; font-size: 15.5px;
    background: linear-gradient(135deg, var(--blue-600), var(--navy-900)); box-shadow: 0 12px 30px -10px rgba(11, 35, 80, .8);
    animation: pop .25s;
}
.cart-bar[hidden] { display: none; }
.cart-bar .cart-total { margin-left: auto; }
.cart-count { min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; background: rgba(255, 255, 255, .22); display: grid; place-items: center; font-size: 13px; }
@keyframes pop { from { transform: translate(-50%, 12px); opacity: 0; } }
body.has-table { --dock-h: 160px; }
body.has-cart { padding-bottom: calc(var(--dock-h) + 64px + env(safe-area-inset-bottom)); }

.cart-item { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item .ci-img { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; flex: 0 0 52px; }
.cart-item .ci-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .ci-img .f-ph { border-radius: 10px; }
.cart-item .ci-info { flex: 1; min-width: 0; }
.cart-item strong { display: block; font-size: 15px; }
.cart-item small { display: block; color: var(--muted); font-size: 13px; }
.cart-item .ci-note { font-style: italic; }
.cart-item .ci-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cart-item .ci-price { font-weight: 700; font-size: 14.5px; }
.cart-item .qty button { width: 36px; height: 36px; font-size: 18px; }
.cart-item .qty span { min-width: 22px; font-size: 14px; }
.cart-empty { text-align: center; color: var(--muted); padding: 30px 0; }
.cart-note { margin-top: 12px; }
.cart-sum { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; font-size: 15px; }
.cart-sum b { font: 800 21px var(--font-head); color: var(--navy-900); }
.is-done .cart-note, .is-done .cart-sum, .is-done .fine { display: none; }
.order-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.order-card header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.order-card ul { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.order-card li { display: flex; gap: 8px; padding: 3px 0; }
.order-card li b { min-width: 24px; }
.order-card li.cancel { text-decoration: line-through; color: var(--muted); }
.order-card li small { display: block; color: var(--muted); font-style: italic; }
.status { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #eef0ec; color: #535a56; }
.status-new { background: #fff4d6; color: #7a5600; }
.status-accepted, .status-preparing { background: #e3eefc; color: #1e56a0; }
.status-ready { background: #e3f6ea; color: #17693b; }
.status-cancelled { background: #fde8e6; color: #b3261e; }
.bill-total { display: flex; justify-content: space-between; padding: 12px 2px; font-size: 16px; font-weight: 700; border-top: 2px dashed var(--line); margin-top: 6px; }
.orders-actions { display: flex; gap: 8px; margin-top: 8px; }
.order-done { text-align: center; padding: 24px 8px 8px; }
.order-done .big { width: 64px; height: 64px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; background: #e3f6ea; color: #17693b; font-size: 32px; }
.order-done h3 { margin: 10px 0 4px; font-family: var(--font-head); }
.order-done p { color: var(--muted); margin: 0; }

/* ---------------------------------------------------------------------
   AI sohbet
   --------------------------------------------------------------------- */
.ai-panel { display: flex; flex-direction: column; height: 88vh; height: 88dvh; max-height: 88dvh; overflow: hidden; background: var(--paper); }
.ai-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; color: #fff; background: linear-gradient(135deg, var(--navy-950), var(--navy-900)); }
.ai-head strong { display: block; font: 800 17px var(--font-head); }
.ai-head small { color: var(--sky-300); font-size: 12.5px; }
.ai-head .sheet-x { margin-left: auto; background: rgba(255, 255, 255, .12); color: #fff; }
.ai-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: var(--sky-300); }
.ai-avatar .ic { width: 26px; height: 26px; animation: spin 14s linear infinite; }
.ai-log { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.ai-msg { max-width: 86%; padding: 11px 14px; border-radius: 18px; font-size: 15px; line-height: 1.5; animation: msg-in .3s var(--ease-out); }
.ai-msg p { margin: 0; }
.ai-msg p + p { margin-top: 6px; }
.ai-msg.bot { align-self: flex-start; background: var(--surface); color: var(--ink); border-bottom-left-radius: 6px; box-shadow: var(--shadow-sm); }
.ai-msg.user { align-self: flex-end; background: var(--navy-900); color: #fff; border-bottom-right-radius: 6px; }
.ai-msg.error { background: #fde8e6; color: #8c1d15; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } }
.ai-cards { display: flex; gap: 8px; overflow-x: auto; margin: 8px -4px 2px; padding: 2px 4px 4px; scrollbar-width: none; }
.ai-cards a { flex: 0 0 auto; display: flex; flex-direction: column; min-width: 128px; max-width: 170px; padding: 8px 10px; border-radius: 12px; background: var(--sky-100); border: 1px solid #cfe0f7; }
.ai-cards a strong { font-size: 13.5px; line-height: 1.25; }
.ai-cards a span { font: 800 13.5px var(--font-head); color: var(--navy-900); margin-top: 2px; }
.ai-cards a small { font-size: 12px; color: var(--muted); }
.ai-typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.ai-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-500); animation: typing 1.2s ease-in-out infinite; }
.ai-typing i:nth-child(2) { animation-delay: .15s; }
.ai-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.ai-chips { flex-wrap: nowrap; overflow-x: auto; padding: 8px 14px; scrollbar-width: none; }
.ai-chips button { flex: 0 0 auto; }
.ai-form { display: flex; gap: 8px; padding: 8px 14px 4px; background: var(--paper); }
.ai-form input { flex: 1; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid #c5d6ee; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.ai-form input:focus { outline: 2px solid var(--blue-500); outline-offset: 1px; }
.ai-form button { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--blue-600), var(--navy-900)); }
.ai-form button .ic { width: 20px; height: 20px; }
.ai-form button[disabled] { opacity: .5; }
.ai-note { margin: 0; padding: 4px 16px calc(10px + env(safe-area-inset-bottom)); font-size: 12px; color: var(--muted); text-align: center; }

/* ---------------------------------------------------------------------
   Arama, pop-up, bilgi, bildirim
   --------------------------------------------------------------------- */
.search-layer { position: fixed; inset: 0; z-index: 70; background: var(--paper); display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .2s, transform .2s, visibility .2s; }
.search-layer.open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s, visibility 0s; }
.search-head { display: flex; gap: 10px; align-items: center; padding: 12px 14px; padding-top: max(12px, env(safe-area-inset-top)); color: #fff; background: var(--navy-900); }
.search-input { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 12px; background: #fff; color: var(--muted); }
.search-input input { flex: 1; border: 0; background: none; min-height: 46px; font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.search-close { min-height: 44px; padding: 0 6px; font-weight: 700; color: var(--sky-300); }
.search-results { flex: 1; overflow-y: auto; padding: 14px; max-width: 760px; width: 100%; margin: 0 auto; }
.search-hint { color: var(--muted); text-align: center; margin-top: 40px; }
.search-results .item-cat { font-size: 12px; font-weight: 700; color: var(--blue-600); text-transform: uppercase; letter-spacing: .06em; }

.popup { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 24px; background: rgba(6, 20, 46, .72); animation: fade .25s; }
.popup[hidden] { display: none; }
.popup-card { position: relative; width: min(380px, 100%); border-radius: 20px; overflow: hidden; background: var(--navy-950); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.popup-card img { width: 100%; max-height: 70vh; object-fit: cover; }
.popup-title { padding: 14px 16px; color: #fff; font-weight: 700; }
.popup-close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; }
@keyframes fade { from { opacity: 0; } }

.info-page { display: grid; gap: 12px; padding-top: 14px; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.info-card h2 { margin: 0 0 10px; font: 800 17px var(--font-head); color: var(--navy-900); }
.info-card p { margin: 0; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 12px; }
.info-list li > .ic { width: 22px; height: 22px; color: var(--blue-600); margin-top: 2px; }
.info-list small { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.info-list a { color: var(--blue-600); font-weight: 600; }
.wifi-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.wifi-row > .ic { width: 20px; height: 20px; color: var(--blue-600); }
.wifi-row small { width: 44px; color: var(--muted); }
.copy-btn { margin-left: auto; min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--navy-900); background: var(--sky-100); }

/* Bildirim ekranın üstünde: alttaki menü, asistan butonu ve sepet çubuğuyla çakışmaz */
.toast { position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 72px); transform: translateX(-50%); z-index: 130; padding: 10px 16px; border-radius: 999px; font-size: 14px; color: #fff; background: var(--navy-950); box-shadow: var(--shadow); animation: fade .2s; max-width: calc(100% - 32px); text-align: center; }

/* ---------------------------------------------------------------------
   Online ödeme (PayTR)
   --------------------------------------------------------------------- */
.pay-main { padding-top: 16px; max-width: 560px; }
.pay-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: var(--radius); color: #fff; background: linear-gradient(135deg, var(--navy-900), var(--blue-600)); box-shadow: var(--shadow); }
.pay-summary small { display: block; font-size: 13px; color: rgba(255, 255, 255, .85); }
.pay-summary strong { font: 800 28px var(--font-head); }
.pay-secure { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--sky-300); text-align: right; }
.pay-test { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; color: #7a5600; background: #fff4d6; }
.pay-note { margin: 12px 2px; font-size: 13.5px; color: var(--muted); }
.pay-frame { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.pay-box { text-align: center; padding: 40px 20px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.pay-box h1 { margin: 14px 0 6px; font: 800 22px var(--font-head); color: var(--navy-900); }
.pay-box p { margin: 0 0 18px; color: var(--muted); }
.pay-box .primary-btn { display: inline-grid; place-items: center; max-width: 280px; }
.pay-state { width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font: 800 34px var(--font-head); }
.pay-state .ic { width: 34px; height: 34px; }
.pay-state.ok { background: #e3f6ea; color: #17693b; animation: pop-in .4s var(--ease-out); }
.pay-state.fail, .pay-state.warn { background: #fde8e6; color: #b3261e; }
.pay-state.wait { background: var(--sky-100); }
@keyframes pop-in { from { transform: scale(.6); opacity: 0; } }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 4px solid #c9dcf5; border-top-color: var(--blue-600); animation: spin .9s linear infinite; }
.pay-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; margin-top: 10px; border-radius: 14px; font-weight: 800; font-size: 16px; color: #fff; background: linear-gradient(135deg, #17a05d, #0e7a45); box-shadow: 0 10px 22px -12px rgba(14, 122, 69, .8); }
.pay-btn .ic { width: 22px; height: 22px; }
/* Ödeme paneli + hesap bölme */
.pay-panel { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.pay-panel h4 { margin: 0 0 4px; font: 800 13px var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--navy-900); }
.pay-busy { margin: 6px 0; padding: 8px 12px; border-radius: 10px; font-size: 13px; color: #7a5600; background: #fff4d6; }
.split-open { width: 100%; margin-top: 8px; }
.split-box { padding: 12px; border-radius: 14px; background: var(--sky-100); border: 1px solid #cfe0f7; }
.split-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 14.5px; color: var(--navy-900); }
.split-head span { font-size: 13px; font-weight: 700; color: var(--blue-600); }
.split-bar { height: 8px; margin: 8px 0 2px; border-radius: 4px; background: #fff; overflow: hidden; }
.split-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #17a05d, #0e7a45); transition: width .6s var(--ease-out); }
.split-pick { margin-top: 10px; padding: 12px; border-radius: 14px; background: var(--paper); }
.split-pick[hidden] { display: none; }
.split-pick p { margin: 0 0 8px; font-weight: 700; font-size: 14px; }
.split-nums { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.split-nums button { min-height: 44px; border-radius: 12px; font: 800 16px var(--font-head); color: var(--navy-900); background: #fff; border: 1px solid var(--line); }
.split-nums button:active { background: var(--navy-900); color: #fff; }
.link-btn { display: block; width: 100%; min-height: 44px; margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--blue-600); text-align: center; line-height: 44px; }
.pay-custom { margin-top: 8px; }
.pay-custom summary { min-height: 44px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--blue-600); cursor: pointer; list-style: none; }
.pay-custom summary::-webkit-details-marker { display: none; }
.pay-custom-form { display: flex; gap: 8px; }
.pay-custom-form input { flex: 1; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); font: inherit; font-size: 16px; }
.pay-custom-form button { min-width: 88px; border-radius: 12px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #17a05d, #0e7a45); }
.home-pay { margin: -12px 0 22px; }
.home-pay[hidden] { display: none; }
.bill-paid { display: flex; justify-content: space-between; font-size: 14px; color: #17693b; padding: 0 2px 6px; }

/* ---------------------------------------------------------------------
   Hareket azaltma: dekoratif animasyonlar durur, içerik hemen görünür
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
    .jumper, .gull, .bubbles { display: none; }
    .donut-arc { stroke-dasharray: var(--len) var(--circ); }
    .m-bar i { width: var(--w); }
}
