/* Santral — online sipariş sayfası (mobil öncelikli) */

:root {
  --accent: #2563eb;
  --accent-rgb: 37 99 235;
  --accent-ink: #ffffff;
  --accent-strong: #1d4ed8;

  --bg: #f5f9ff;
  --surface: #ffffff;
  --surface-2: #f1f5fb;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e3eaf4;

  --ok: #047857;
  --ok-bg: #e6f7f0;
  --warn: #92400e;
  --warn-bg: #fff6e6;
  --danger: #c81e1e;
  --danger-bg: #fdeeee;

  --r-sm: 12px;
  --r: 16px;
  --r-lg: 20px;

  --sh-1: 0 1px 2px rgb(15 23 42 / .04), 0 2px 10px rgb(15 23 42 / .05);
  --sh-2: 0 4px 14px rgb(15 23 42 / .07), 0 14px 36px rgb(15 23 42 / .08);
  --sh-3: 0 -10px 44px rgb(15 23 42 / .2);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-h: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box }
[hidden] { display: none !important }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100% }
html.is-locked { overflow: hidden }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body.has-cartbar { padding-bottom: calc(92px + var(--safe-b)) }
img { display: block; max-width: 100% }
button, input, textarea { font: inherit; color: inherit }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent }
button:disabled { cursor: not-allowed }
a { color: var(--accent-strong); -webkit-tap-highlight-color: transparent }
h1, h2, h3 { font-family: var(--font-h); letter-spacing: -.015em; margin: 0; color: var(--ink) }
p { margin: 0 }
:focus-visible { outline: 3px solid rgb(var(--accent-rgb) / .5); outline-offset: 2px }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0 }
.svg { width: 20px; height: 20px; flex: none }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px }
.muted { color: var(--muted) }
.small { font-size: 13px }
.noscript { padding: 24px; text-align: center }

/* ---------- yükleniyor */
.boot { min-height: 100vh; display: grid; place-items: center; color: var(--accent) }
.spinner { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; flex: none }
.spinner-lg { width: 34px; height: 34px; border-width: 3px }
.sk { background: linear-gradient(90deg, #e7eef8 25%, #f2f6fc 50%, #e7eef8 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; border-radius: var(--r) }

/* ---------- üst bölüm */
.hero { position: relative }
.hero-bg {
  position: relative; height: 172px; overflow: hidden;
  background:
    radial-gradient(90% 120% at 0% 0%, rgb(255 255 255 / .28), transparent 60%),
    radial-gradient(70% 90% at 100% 100%, rgb(0 0 0 / .18), transparent 70%),
    var(--accent);
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover }
.hero.has-cover .hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(15 23 42 / .32) 0%, rgb(15 23 42 / 0) 42%, rgb(15 23 42 / .28) 100%);
}
.hero-bar { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; justify-content: flex-end; padding-top: max(12px, env(safe-area-inset-top)) }
.acct-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; max-width: 60vw; padding: 0 14px 0 10px; border-radius: 999px;
  background: rgb(255 255 255 / .94); color: var(--ink); font-weight: 600; font-size: 14px; box-shadow: var(--sh-1);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.acct-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.acct-btn .svg { color: var(--accent-strong) }
.acct-btn-member { height: 46px; padding: 0 10px 0 5px; gap: 9px }
.acct-av { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800 }
.acct-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; min-width: 0 }
.acct-txt small { font-size: 11px; font-weight: 600; color: var(--muted) }
.acct-txt b { max-width: 28vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px }
.acct-btn em { font-style: normal; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft, rgb(var(--accent-rgb) / .12)); color: var(--accent-strong); font-size: 12px; font-weight: 700; white-space: nowrap }
.acct-btn em .svg { width: 13px; height: 13px }
.acct-btn em.acct-gift { background: #fef3c7; color: #b45309 }
.acct-btn-member > .svg:last-child { width: 16px; height: 16px; color: var(--muted) }
.hero-card {
  position: relative; margin-top: -48px; padding: 50px 18px 18px; background: var(--surface);
  border-radius: var(--r-lg); box-shadow: var(--sh-2);
}
.hero-card .logo { position: absolute; top: -38px; left: 18px }
.hero-card h1 { font-size: 24px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere }
.sector { margin-top: 2px; color: var(--muted); font-size: 14px }
.welcome { margin-top: 12px; color: var(--ink-2); overflow-wrap: anywhere }

.logo {
  position: relative; width: 76px; height: 76px; flex: none; border-radius: 22px; overflow: hidden;
  display: grid; place-items: center; background: var(--accent); color: var(--accent-ink);
  font: 800 32px/1 var(--font-h); box-shadow: 0 0 0 4px var(--surface), var(--sh-2);
}
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; opacity: 0; transition: opacity .25s }
.logo img.is-loaded { opacity: 1 }
.logo-sm { width: 36px; height: 36px; border-radius: 11px; font-size: 16px; box-shadow: 0 0 0 1px var(--line) }

.badge { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 600 }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor }
.badge-open { background: var(--ok-bg); color: var(--ok) }
.badge-open .dot { animation: pulse-dot 2s infinite }
.badge-closed { background: var(--danger-bg); color: var(--danger) }

.facts { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px }
.facts li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 13px; font-weight: 500 }
.facts .svg { width: 16px; height: 16px; color: var(--accent-strong) }

/* ---------- bilgi bantları */
.banners { display: grid; gap: 10px; margin-top: 14px }
.banners:empty { display: none }
.banner {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; border-radius: var(--r);
  background: var(--surface); box-shadow: var(--sh-1); color: inherit; text-align: left; text-decoration: none;
}
.banner strong { display: block; font-weight: 600; line-height: 1.35 }
.banner p { margin-top: 2px; font-size: 13.5px; color: var(--muted); line-height: 1.4 }
.banner > div { min-width: 0; flex: 1 }
.banner-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgb(var(--accent-rgb) / .1); color: var(--accent-strong) }
.banner .chev { color: var(--muted) }
.banner-warn { background: #fffaf0; box-shadow: inset 0 0 0 1px #fde2b3 }
.banner-warn .banner-ic { background: var(--warn-bg); color: var(--warn) }
.banner-warn p { color: #7c5a2e }
.banner-loyal { background: linear-gradient(120deg, rgb(var(--accent-rgb) / .09), rgb(var(--accent-rgb) / .03)); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / .18) }
a.banner:hover, button.banner:hover { box-shadow: var(--sh-2) }
.banner-loyal:hover { box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / .35) !important }

/* ---------- arama */
.search { position: relative; margin-top: 16px }
.search > .svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none }
.search input {
  width: 100%; height: 50px; padding: 0 46px; border: 1px solid var(--line); border-radius: 14px; outline: none;
  background: var(--surface); font-size: 16px; box-shadow: var(--sh-1); -webkit-appearance: none; appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
.search input::placeholder { color: #94a3b8 }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .15) }
.search input::-webkit-search-cancel-button { display: none }
.search-clear { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--muted) }
.search-clear:hover { background: var(--surface-2); color: var(--ink) }

/* ---------- kategori sekmeleri */
.tabs {
  position: sticky; top: 0; z-index: 20; margin-top: 10px;
  background: rgb(245 249 255 / .9); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.tabs.is-stuck { border-bottom-color: var(--line); box-shadow: 0 8px 24px rgb(15 23 42 / .06) }
.tabs-in { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; overscroll-behavior-x: contain }
.tabs-in::-webkit-scrollbar { display: none }
.tab {
  flex: none; display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: 14px;
  text-decoration: none; white-space: nowrap; transition: background .18s, color .18s, border-color .18s;
}
.tab:hover { border-color: rgb(var(--accent-rgb) / .4) }
.tab.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink) }

/* ---------- menü */
.menu { padding-top: 4px; padding-bottom: 28px }
.cat { padding-top: 22px; scroll-margin-top: 70px }
.cat h2 { font-size: 20px; font-weight: 800; outline: none }
.cat-desc { margin-top: 4px; color: var(--muted); font-size: 14px }
.grid { display: grid; gap: 12px; margin-top: 14px }

.pcard {
  position: relative; display: flex; gap: 14px; width: 100%; min-height: 124px; padding: 14px; text-align: left;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-1); border: 1px solid rgb(15 23 42 / .035);
  transition: box-shadow .18s, transform .12s;
}
.pcard:hover { box-shadow: var(--sh-2) }
.pcard:active { transform: scale(.99) }
.pcard-text { flex: 1; min-width: 0; display: flex; flex-direction: column }
.pcard.no-img .pcard-text { padding-right: 42px }
.pcard-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px }
.pcard-badges:empty { display: none }
.pcard-name { font-weight: 600; font-size: 16px; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere }
/* Sunucunun çizdiği kart (article + h3) SPA'daki düğmeyle aynı görünsün */
h3.pcard-name { font-family: inherit; letter-spacing: normal }
article.pcard:active { transform: none }
.pcard-desc {
  margin-top: 4px; color: var(--muted); font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard-price { margin-top: auto; padding-top: 10px; font-weight: 700; font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums }
.pcard-price small { font-size: 12px; font-weight: 500; color: var(--muted) }
.pcard-img { flex: none; width: 108px; height: 108px; border-radius: 14px; overflow: hidden; background: var(--surface-2) }
.pcard-img img { width: 100%; height: 100%; object-fit: cover }
.pcard-add {
  position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  background: var(--surface); color: var(--accent-strong); box-shadow: 0 2px 10px rgb(15 23 42 / .16);
}
.pcard-add .svg { width: 18px; height: 18px; stroke-width: 2.5 }
.pcard-qty {
  position: absolute; top: 10px; right: 10px; min-width: 26px; height: 26px; padding: 0 8px; display: grid; place-items: center;
  border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12.5px; font-weight: 700; box-shadow: 0 2px 8px rgb(var(--accent-rgb) / .4);
}
.pcard.is-out .pcard-name, .pcard.is-out .pcard-price { color: var(--muted) }
.pcard.is-out .pcard-img img { filter: grayscale(1); opacity: .7 }

.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .01em }
.tag .svg { width: 12px; height: 12px }
.tag-pop { background: #fff3e2; color: #a2470b }
.tag-out { background: var(--surface-2); color: var(--muted) }

.empty { padding: 40px 16px; text-align: center; color: var(--muted) }
.empty .svg { width: 36px; height: 36px; margin: 0 auto 10px; color: #94a3b8 }
.empty strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px }

/* ---------- alt bilgi */
.foot { padding: 8px 0 32px; color: var(--muted); font-size: 14px }
.foot-info { padding: 18px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1); color: var(--ink-2) }
.foot-info h2 { font-size: 15px; margin-bottom: 8px }
.foot-info + .foot-info { margin-top: 12px }
.hours { display: grid; gap: 4px; margin: 0 }
.hours div { display: flex; justify-content: space-between; gap: 12px }
.hours dt { color: var(--ink-2) }
.hours dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums }
.pre { white-space: pre-wrap; overflow-wrap: anywhere }
.powered-wrap { margin-top: 20px; text-align: center }
.powered { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 500; text-decoration: none; padding: 6px 10px; border-radius: 10px }
.powered:hover { color: var(--ink); background: var(--surface) }
.powered .svg { width: 15px; height: 15px }

/* ---------- sepet çubuğu */
.cartbar {
  position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 14px 16px calc(12px + var(--safe-b));
  background: linear-gradient(180deg, rgb(245 249 255 / 0), rgb(245 249 255 / .96) 45%); pointer-events: none;
}
.cartbar-btn {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; width: 100%; max-width: 560px; height: 60px; margin: 0 auto; padding: 0 18px 0 10px;
  border-radius: 18px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-align: left;
  box-shadow: 0 10px 28px rgb(var(--accent-rgb) / .38), var(--sh-1); animation: rise .32s cubic-bezier(.2, .8, .2, 1);
}
.cartbar-btn.bump { animation: bump .4s }
.cb-count { min-width: 40px; height: 40px; padding: 0 8px; display: grid; place-items: center; border-radius: 12px; background: rgb(255 255 255 / .22); font-weight: 700 }
.cb-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.cb-label small { font-weight: 500; opacity: .85; font-size: 13.5px }
.cb-total { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap }

/* ---------- düğmeler */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 20px; border-radius: 16px;
  font-weight: 600; font-size: 16px; text-decoration: none; text-align: center; line-height: 1.2;
  transition: filter .15s, transform .1s, background .15s, box-shadow .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px rgb(var(--accent-rgb) / .28) }
.btn-primary:hover:not(:disabled) { filter: brightness(1.06) }
.btn:active:not(:disabled) { transform: scale(.985) }
.btn:disabled, .btn[aria-disabled="true"] { background: #e2e8f0; color: #64748b; box-shadow: none }
.btn-soft { background: rgb(var(--accent-rgb) / .1); color: var(--accent-strong) }
.btn-soft:hover { background: rgb(var(--accent-rgb) / .16) }
.btn-ghost { background: var(--surface-2); color: var(--ink) }
.btn-ghost:hover { background: #e8eef7 }
.btn-block { width: 100% }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px }
.btn .price { font-variant-numeric: tabular-nums; white-space: nowrap }
.icon-btn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); color: var(--ink-2) }
.icon-btn:hover { background: #e8eef7; color: var(--ink) }
.link-btn { color: var(--accent-strong); font-weight: 600; text-decoration: underline; text-underline-offset: 3px }

/* ---------- alt sayfa (sheet) */
.overlay {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center;
  background: rgb(15 23 42 / 0); transition: background .25s;
}
.overlay.is-open { background: rgb(15 23 42 / .45) }
.overlay.is-closing { background: rgb(15 23 42 / 0) }
.sheet {
  position: relative; display: flex; flex-direction: column; width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh;
  background: var(--surface); border-radius: 24px 24px 0 0; box-shadow: var(--sh-3); overflow: hidden; outline: none;
  transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.overlay.is-open .sheet { transform: none }
.overlay.is-closing .sheet { transform: translateY(100%) }
.sheet > form { display: flex; flex-direction: column; flex: 1; min-height: 0 }
.sheet-grab { width: 40px; height: 5px; margin: 8px auto 0; border-radius: 9px; background: #d5dde8; flex: none }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px 10px; flex: none }
.sheet-head h2 { flex: 1; min-width: 0; font-size: 20px; font-weight: 800 }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 4px 16px 22px }
.sheet-foot { flex: none; display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--surface) }
.sheet-foot .btn { flex: 1; min-width: 0 }

/* ürün */
.sheet-product .sheet-body { padding-top: 0 }
.p-media { margin: 0 -16px; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden }
.p-media img { width: 100%; height: 100%; object-fit: cover }
.p-close { position: absolute; z-index: 3; top: 12px; right: 12px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / .96); color: var(--ink); box-shadow: var(--sh-1) }
.p-head { padding-top: 18px }
.p-head.no-media { padding-top: 22px; padding-right: 50px }
.p-head h2 { font-size: 22px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere }
.p-desc { margin-top: 8px; color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere }
.p-price { margin-top: 10px; font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums }
.p-price small { color: var(--muted); font-weight: 500; font-size: 13px }

.og { min-width: 0; margin: 18px 0 0; padding: 16px; border: 0; border-radius: var(--r); background: var(--surface-2); transition: box-shadow .2s, background .2s }
.og legend { float: left; width: 100%; padding: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 700 16px/1.3 var(--font-h) }
.og legend > span:first-child { min-width: 0; overflow-wrap: anywhere }
.og-tag { flex: none; padding: 3px 9px; border-radius: 999px; background: var(--surface); color: var(--muted); font: 600 12px/1.4 var(--font) }
.og-tag.req { background: rgb(var(--accent-rgb) / .12); color: var(--accent-strong) }
.og-tag.done { background: var(--ok-bg); color: var(--ok) }
.og-sub { clear: both; padding-top: 3px; font-size: 13px; color: var(--muted) }
.og.has-err { background: #fff6f6; box-shadow: inset 0 0 0 2px var(--danger) }
.og-err { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--danger); font-size: 13.5px; font-weight: 600 }
.og-err .svg { width: 16px; height: 16px }

.chips { clear: both; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px }
.chip {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%; min-height: 44px; padding: 8px 14px; border-radius: 12px;
  background: var(--surface); border: 1.5px solid var(--line); font-weight: 500; font-size: 14.5px; text-align: left;
  transition: border-color .15s, background .15s, color .15s;
}
.chip:hover:not(:disabled) { border-color: rgb(var(--accent-rgb) / .45) }
.chip-name { overflow-wrap: anywhere }
.chip-price { color: var(--muted); font-size: 13px; white-space: nowrap }
.chip-check { display: none; width: 18px; height: 18px; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink) }
.chip-check .svg { width: 12px; height: 12px; stroke-width: 3 }
.chip.is-on { border-color: var(--accent); background: rgb(var(--accent-rgb) / .08); color: var(--accent-strong); font-weight: 600 }
.chip.is-on .chip-check { display: grid }
.chip.is-on .chip-price { color: inherit }
.chip:disabled { opacity: .45 }

.counts { clear: both; list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px }
.count-row { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; border-radius: 12px; background: var(--surface); border: 1.5px solid var(--line); transition: border-color .15s }
.count-row.is-on { border-color: var(--accent) }
.cr-name { flex: 1; min-width: 0; font-weight: 500; overflow-wrap: anywhere; line-height: 1.35 }
.cr-name small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400 }

.stepper { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2) }
.stepper button { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); transition: background .15s, color .15s }
.stepper button:hover:not(:disabled) { color: var(--accent-strong) }
.stepper button:disabled { opacity: .4; box-shadow: none }
.stepper .qty { min-width: 30px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums }
.stepper-sm button { width: 34px; height: 34px; border-radius: 10px }
.stepper-sm .svg { width: 17px; height: 17px }
.stepper .is-trash { color: var(--danger) }

/* form alanları */
.field { display: block; margin-top: 14px }
.field-label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px }
.field-label small { color: var(--muted); font-weight: 400; font-size: 13px }
.input {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; outline: none;
  background: var(--surface); font-size: 16px; line-height: 1.4; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
textarea.input { min-height: 84px; resize: vertical }
.input::placeholder { color: #94a3b8 }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .14) }
.input[aria-invalid="true"] { border-color: var(--danger) }
.field-err { margin-top: 6px; color: var(--danger); font-size: 13px; font-weight: 500 }
.form-err { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--danger-bg); color: var(--danger); font-weight: 500; font-size: 14px; outline: none }
.form-err .svg { margin-top: 1px }

.sec-title { margin: 22px 0 10px; font-size: 15px; font-weight: 800 }
.sec-title:first-child { margin-top: 6px }

/* teslimat şekli */
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 8px }
.seg-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 76px; padding: 10px 6px;
  border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; text-align: center; line-height: 1.25;
  transition: border-color .15s, background .15s, color .15s;
}
.seg-btn .svg { width: 22px; height: 22px; color: var(--muted) }
.seg-btn:hover { border-color: rgb(var(--accent-rgb) / .45) }
.seg-btn.is-on { border-color: var(--accent); background: rgb(var(--accent-rgb) / .08); color: var(--accent-strong) }
.seg-btn.is-on .svg { color: inherit }
.seg-hint { margin-top: 8px; font-size: 13px; color: var(--muted) }
.pill-info { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgb(var(--accent-rgb) / .08); color: var(--accent-strong); font-weight: 600 }

.tabs2 { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2) }
.tabs2 button { flex: 1; height: 42px; border-radius: 11px; font-weight: 600; color: var(--muted); transition: background .15s, color .15s }
.tabs2 button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1) }

/* özet */
.summary { display: grid; gap: 8px; margin-top: 18px; padding: 16px; border-radius: var(--r); background: var(--surface-2) }
.sum-row { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); font-size: 14.5px }
.sum-row span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap }
.sum-row.discount { color: var(--ok); font-weight: 600 }
.sum-row.total { margin-top: 2px; padding-top: 10px; border-top: 1px dashed #cdd7e5; color: var(--ink); font: 800 17px/1.3 var(--font-h) }
.notice { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--warn-bg); color: var(--warn); font-size: 14px; line-height: 1.45 }
.notice .svg { margin-top: 1px }
.notice-info { background: rgb(var(--accent-rgb) / .07); color: var(--accent-strong) }

/* sepet satırları */
.lines { list-style: none; margin: 0; padding: 0 }
.line { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line) }
.line-main { flex: 1; min-width: 0 }
.line-name { font-weight: 600; overflow-wrap: anywhere }
.line-opts, .line-note { margin-top: 2px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere }
.line-note { font-style: italic }
.line-price { margin-top: 6px; font-weight: 700; font-variant-numeric: tabular-nums }
.more-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--accent-strong); font-weight: 600; font-size: 14.5px }

/* anahtar */
.switch-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface); text-align: left; transition: border-color .15s, background .15s }
.switch-row[aria-checked="true"] { border-color: var(--accent); background: rgb(var(--accent-rgb) / .06) }
.switch-row > div { flex: 1; min-width: 0 }
.switch-row strong { display: block; font-weight: 600 }
.switch-row small { display: block; color: var(--muted); font-size: 13px }
.switch { position: relative; width: 48px; height: 28px; flex: none; border-radius: 999px; background: #cbd5e1; transition: background .2s }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(15 23 42 / .25); transition: transform .2s }
[aria-checked="true"] .switch { background: var(--accent) }
[aria-checked="true"] .switch::after { transform: translateX(20px) }

/* sadakat */
.invite { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r); background: rgb(var(--accent-rgb) / .06); border: 1px dashed rgb(var(--accent-rgb) / .4) }
.invite > div { flex: 1; min-width: 0 }
.invite strong { display: block; font-weight: 600 }
.invite p { color: var(--muted); font-size: 13.5px; margin-top: 2px }
.invite-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px }
.earn { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--ok-bg); color: var(--ok); font-size: 14px; font-weight: 500 }

.loyal-card {
  position: relative; overflow: hidden; padding: 20px; border-radius: var(--r-lg); color: var(--accent-ink);
  background: radial-gradient(120% 140% at 100% 0%, rgb(255 255 255 / .22), transparent 55%), var(--accent);
  box-shadow: 0 12px 30px rgb(var(--accent-rgb) / .3);
}
.loyal-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px }
.loyal-label { font-size: 13px; font-weight: 600; opacity: .9 }
.loyal-amount { margin-top: 2px; font: 800 34px/1.1 var(--font-h); color: inherit; font-variant-numeric: tabular-nums }
.loyal-amount small { font-size: 18px; opacity: .75 }
.loyal-left { padding: 5px 11px; border-radius: 999px; background: rgb(255 255 255 / .2); font-size: 12.5px; font-weight: 700; white-space: nowrap }
.loyal-note { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13.5px; font-weight: 500; opacity: .95 }
.loyal-note .svg { width: 16px; height: 16px; flex: none }
.stamps { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 6px; margin-top: 16px }
.stamp { aspect-ratio: 1; max-width: 40px; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / .14); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .35) }
.stamp .svg { width: 52%; height: 52%; stroke-width: 2.4 }
.stamp.is-on { background: #fff; color: var(--accent-strong); box-shadow: 0 3px 8px rgb(15 23 42 / .18); animation: pop .35s ease-out both }
.stamp.is-on .svg { fill: currentColor }
.stamp.is-next { border: 2px solid #fff; animation: ring 1.8s infinite }
.stamp.is-gift { color: #fff; background: rgb(255 255 255 / .22) }
@keyframes pop { from { transform: scale(.6); opacity: 0 } to { transform: none; opacity: 1 } }

.loyal-card.is-ready { text-align: center; padding: 26px 20px 22px; background: radial-gradient(120% 120% at 50% 0%, rgb(255 255 255 / .28), transparent 60%), linear-gradient(160deg, var(--accent), var(--accent-strong)) }
.gift-badge { width: 64px; height: 64px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 22px; background: #fff; color: var(--accent-strong); box-shadow: 0 10px 24px rgb(15 23 42 / .22); animation: wiggle 2.4s ease-in-out infinite }
.gift-badge .svg { width: 32px; height: 32px }
.gift-title { font: 800 26px/1.15 var(--font-h); margin-top: 2px }
.gift-text { margin-top: 6px; display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgb(255 255 255 / .2); font-weight: 700 }
.gift-how { margin-top: 12px; font-size: 13px; opacity: .92 }
.confetti i { position: absolute; width: 8px; height: 8px; border-radius: 2px; background: #fff; opacity: .55; animation: float 3.2s ease-in-out infinite }
.confetti i:nth-child(1) { left: 12%; top: 18%; background: #fde68a }
.confetti i:nth-child(2) { left: 84%; top: 14%; border-radius: 50%; animation-delay: .4s }
.confetti i:nth-child(3) { left: 22%; top: 70%; border-radius: 50%; background: #a7f3d0; animation-delay: .9s }
.confetti i:nth-child(4) { left: 78%; top: 64%; background: #fbcfe8; animation-delay: 1.3s }
.confetti i:nth-child(5) { left: 6%; top: 44%; width: 6px; height: 6px; animation-delay: 1.8s }
.confetti i:nth-child(6) { left: 92%; top: 40%; width: 6px; height: 6px; background: #fde68a; animation-delay: .2s }
@keyframes wiggle { 0%, 100% { transform: rotate(0) } 8% { transform: rotate(-8deg) } 16% { transform: rotate(7deg) } 24% { transform: rotate(0) } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0) } 50% { transform: translateY(-8px) rotate(25deg) } }
@media (prefers-reduced-motion: reduce) { .gift-badge, .confetti i, .stamp.is-on, .stamp.is-next { animation: none } }

.profile { display: flex; align-items: center; gap: 12px; margin: 4px 0 16px }
.profile > div { min-width: 0 }
.profile strong { display: block; font-size: 16px; overflow-wrap: anywhere }
.profile span { color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere }
.avatar { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgb(var(--accent-rgb) / .12); color: var(--accent-strong); font: 800 20px/1 var(--font-h) }

.list { list-style: none; margin: 0; padding: 0 }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none }
.list-item > div { flex: 1; min-width: 0 }
.list-item strong { display: block; font-weight: 600 }
.list-item small { color: var(--muted); font-size: 13px }
.list-item .amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap }
.list-item .amt.plus { color: var(--ok) }
a.list-item:hover strong { color: var(--accent-strong) }
.status-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 600 }
.status-pill.s-delivered { background: var(--ok-bg); color: var(--ok) }
.status-pill.s-canceled { background: var(--danger-bg); color: var(--danger) }
.status-pill.s-active { background: rgb(var(--accent-rgb) / .1); color: var(--accent-strong) }

.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; color: var(--muted); font-size: 13px }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line) }
.gsi { display: flex; justify-content: center; min-height: 44px }
.auth-intro { display: flex; gap: 12px; align-items: center; margin-bottom: 16px }
.auth-intro p { color: var(--muted); font-size: 14px }

/* ---------- sipariş takibi */
.topbar { position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line) }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 62px }
.back-link { display: inline-flex; align-items: center; gap: 2px; padding: 8px 6px 8px 0; color: var(--accent-strong); font-weight: 600; text-decoration: none; white-space: nowrap }
.topbar-store { display: flex; align-items: center; gap: 10px; min-width: 0; font: 700 15px var(--font-h) }
.topbar-store span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.track { max-width: 640px; display: grid; gap: 16px; padding-top: 20px; padding-bottom: 32px }
.card { padding: 20px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1) }
.card h2 { font-size: 17px; font-weight: 800; margin-bottom: 4px }
.track-hero { text-align: center; padding-top: 26px }
.eyebrow { color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase }
.order-no { margin-top: 4px; color: var(--accent-strong); font: 800 clamp(26px, 8.4vw, 40px)/1.1 var(--font-h); letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap }
.status-title { margin-top: 14px; font: 800 22px/1.25 var(--font-h) }
.status-desc { margin-top: 4px; color: var(--ink-2) }
.track-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px }
.track-meta span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 13px; font-weight: 500 }
.track-meta .svg { width: 15px; height: 15px; color: var(--accent-strong) }
.is-canceled .order-no { color: var(--danger) }
.cancel-box { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; padding: 12px; border-radius: 14px; background: var(--danger-bg); color: var(--danger); font-weight: 600 }

.track-steps { position: relative; margin: 26px auto 0; max-width: 460px }
.track-bar { position: absolute; left: 10%; right: 10%; top: 19px; height: 4px; border-radius: 4px; background: var(--line) }
.track-bar span { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .6s ease }
.timeline { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) }
.tl { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center }
.tl-dot { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); color: var(--muted); transition: all .3s }
.tl-dot .svg { width: 19px; height: 19px }
.tl.is-done .tl-dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink) }
.tl.is-current .tl-dot { width: 48px; height: 48px; margin-top: -3px; background: var(--surface); border: 3px solid var(--accent); color: var(--accent-strong); box-shadow: 0 6px 16px rgb(var(--accent-rgb) / .25); animation: ring 1.8s infinite }
.tl-label { font-size: 11.5px; line-height: 1.25; font-weight: 600; color: var(--ink); padding: 0 2px; overflow-wrap: anywhere }
@media (max-width: 420px) { .tl-dot { width: 36px; height: 36px } .tl.is-current .tl-dot { width: 42px; height: 42px } .track-bar { top: 16px } .tl-dot .svg { width: 16px; height: 16px } }
.tl:not(.is-done):not(.is-current) .tl-label { color: var(--muted); font-weight: 500 }
.tl.is-current .tl-label { color: var(--accent-strong); font-weight: 700 }

.track-lines { list-style: none; margin: 8px 0 0; padding: 0 }
.track-lines li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line) }
.track-lines li:last-child { border-bottom: 0 }
.track-lines .q { min-width: 30px; color: var(--accent-strong); font-weight: 700 }
.track-lines .n { flex: 1; min-width: 0; overflow-wrap: anywhere }
.track-lines .n small { display: block; color: var(--muted); font-style: italic }
.track-lines .p { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap }
.track-note { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); color: var(--ink-2); font-size: 14px }
.track-actions { display: grid; gap: 10px }
.poll-note { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 13px; text-align: center }
.poll-note .svg { width: 15px; height: 15px }

/* ---------- bulunamadı */
.nf { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px }
.nf-card { width: 100%; max-width: 420px; padding: 34px 24px 26px; border-radius: 24px; background: var(--surface); box-shadow: var(--sh-2); text-align: center }
.nf-icon { width: 64px; height: 64px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 20px; background: rgb(var(--accent-rgb) / .1); color: var(--accent-strong) }
.nf-icon .svg { width: 30px; height: 30px }
.nf-card h1 { font-size: 20px; line-height: 1.35 }
.nf-card p { margin-top: 10px; color: var(--muted) }
.nf-card .btn { margin-top: 20px }

/* ---------- bildirim */
.toast {
  position: fixed; z-index: 70; left: 50%; bottom: calc(96px + var(--safe-b)); width: max-content; max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: 14px; background: #0f172a; color: #fff; font-size: 14px; font-weight: 500; box-shadow: var(--sh-2);
  opacity: 0; transform: translate(-50%, 16px); transition: opacity .25s, transform .25s; pointer-events: none;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0) }
html.is-locked .toast { top: calc(14px + env(safe-area-inset-top, 0px)); bottom: auto; transform: translate(-50%, -16px) }
html.is-locked .toast.is-show { transform: translate(-50%, 0) }

/* ---------- geniş ekran */
@media (min-width: 720px) {
  .hero-bg { height: 250px }
  .hero-card { margin-top: -64px; padding: 26px 28px 24px 132px; min-height: 140px }
  .hero-card .logo { top: -30px; left: 26px; width: 88px; height: 88px; border-radius: 26px; font-size: 38px }
  .hero-card h1 { font-size: 30px }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px }
  .cat h2 { font-size: 22px }
  .overlay { align-items: center; padding: 24px }
  .sheet { max-height: min(88vh, 860px); border-radius: 24px; opacity: 0; transform: translateY(18px) scale(.98); transition: transform .24s cubic-bezier(.2, .8, .2, 1), opacity .2s }
  .overlay.is-open .sheet { opacity: 1; transform: none }
  .overlay.is-closing .sheet { opacity: 0; transform: translateY(18px) scale(.98) }
  .sheet-grab { display: none }
  .sheet-foot { padding-bottom: 14px }
  .toast { bottom: 104px }
}
@media (max-width: 360px) {
  .pcard-img { width: 88px; height: 88px }
  .hero-card h1 { font-size: 22px }
  .stepper button { width: 38px; height: 38px }
  .order-no { font-size: clamp(26px, 8.4vw, 40px) }
}

/* ---------- animasyonlar */
@keyframes spin { to { transform: rotate(360deg) } }
@keyframes shimmer { from { background-position: 200% 0 } to { background-position: -200% 0 } }
@keyframes rise { from { transform: translateY(24px); opacity: 0 } to { transform: none; opacity: 1 } }
@keyframes bump { 0%, 100% { transform: scale(1) } 40% { transform: scale(1.035) } }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 0 rgb(4 120 87 / .45) } 60% { box-shadow: 0 0 0 6px rgb(4 120 87 / 0) } }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgb(var(--accent-rgb) / .35) } 60% { box-shadow: 0 0 0 9px rgb(var(--accent-rgb) / 0) } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important }
}

.qty.qty-w { min-width: 4.2em; font-size: .92em; white-space: nowrap }
.chip.is-removed .chip-name { text-decoration: line-through; opacity: .6 }
.chip.is-removed .chip-price { color: var(--danger, #b91c1c) }
.verified { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--ok-bg, #ecfdf5); color: var(--ok, #047857); font-style: normal; font-size: 11.5px; font-weight: 700; vertical-align: 1px }
.verified .svg { width: 12px; height: 12px }
.verify-box { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: #fffbeb; border: 1px solid #fde68a; color: #78350f; font-size: 13.5px }
.verify-box > span .svg { width: 18px; height: 18px; color: #d97706; margin-top: 1px }
.verify-box p { flex: 1; min-width: 180px; margin: 0 }
.verify-box strong { display: block; color: #78350f }

/* Yapay zekâyla sipariş */
.banner-ai { background: linear-gradient(120deg, rgb(var(--accent-rgb) / .12), rgb(var(--accent-rgb) / .04)); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / .28) }
.banner-ai:hover { box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / .5) !important }
.banner-ai .banner-ic { background: var(--accent); color: var(--accent-ink) }
.banner-ai-cta { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 13.5px }
.ai-intro { color: var(--muted); font-size: 14.5px; line-height: 1.5 }
.ai-chips { display: flex; flex-wrap: nowrap; gap: 8px; margin: 12px -16px 0; padding: 0 16px 4px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch }
.ai-chips::-webkit-scrollbar { display: none }
.ai-chips .chip { flex: none; white-space: nowrap; scroll-snap-align: start; padding: 9px 14px; border-radius: 999px; background: var(--surface-2); font-size: 14px }
.ai-chips .chip:hover { background: #e8eef7 }
/* Öneri şeridi sabit yükseklikte tek satır: klavye, ekran genişliği ya da metin uzunluğu dikeyde sıkıştırmaz */
.sheet-ai .sheet-body > * { flex-shrink: 0 }
.ai-chips { flex: none; height: 52px; align-items: center; overflow-x: auto; overflow-y: hidden; padding-top: 0; padding-bottom: 0; overscroll-behavior-x: contain; touch-action: pan-x }
.ai-chips .chip { height: 40px; min-height: 40px; max-width: none; padding: 0 14px; line-height: 40px; overflow: visible; flex: 0 0 auto }
.ai-note { margin-bottom: 12px; color: var(--ink); line-height: 1.5 }
.ai-card { padding: 14px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line, #e2e8f0); margin-bottom: 12px }
.ai-title { font-weight: 700; font-size: 16px }
.ai-why { margin-top: 2px; color: var(--muted); font-size: 13.5px; line-height: 1.45 }
.ai-lines { list-style: none; margin: 10px 0 12px; padding: 0; display: grid; gap: 6px; font-size: 14px }
.ai-lines li { display: flex; justify-content: space-between; gap: 10px }
.ai-lines li span:first-child { min-width: 0 }
.ai-disclaimer { margin-top: 4px; font-size: 12.5px; color: var(--muted) }
/* Klavye açıkken alt sayfa görünür alana sığar */
.sheet { max-height: min(92dvh, calc(100% - 8px)) }
.overlay.has-keyboard .sheet { border-radius: 18px 18px 0 0 }
.overlay.has-keyboard .sheet-grab { display: none }
.sheet-ai textarea.input { min-height: 72px }

/* İleri tarihli sipariş */
.day-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none }
.day-chips::-webkit-scrollbar { display: none }
.day-chips .chip { flex: none; white-space: nowrap }
.chip.is-on { border-color: var(--accent); background: rgb(var(--accent-rgb) / .1); color: var(--accent-strong); font-weight: 600 }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px }
.slot { padding: 10px 0; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line, #e2e8f0); font-weight: 600; font-variant-numeric: tabular-nums; background: #fff }
.slot:hover { box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / .45) }
.slot.is-on { background: var(--accent); color: var(--accent-ink); box-shadow: none }
.meta-later { color: var(--accent-strong); font-weight: 600 }

/* Firma bağlantıları */
.store-links { display: flex; gap: 8px; margin: 14px -16px 0; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch }
.store-links::-webkit-scrollbar { display: none }
.store-link { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line, #e2e8f0); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap }
.store-link .svg { width: 18px; height: 18px; color: var(--accent-strong) }
.store-link:hover { box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / .45) }

/* Rezervasyon (firma açtıysa): kahraman kartında ikincil bağlantı ve alt sayfa */
.resv-entry { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 14px; padding: 11px 14px; border-radius: 14px; background: var(--surface-2); color: var(--ink); font-weight: 600; font-size: 14.5px; text-align: left; transition: background .15s, box-shadow .15s }
.resv-entry:hover { background: rgb(var(--accent-rgb) / .08); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / .25) }
.resv-entry .svg { width: 19px; height: 19px; color: var(--accent-strong); flex: none }
.resv-entry span { flex: 1; min-width: 0 }
.resv-entry .chev { color: var(--muted); width: 16px; height: 16px }
.resv-last { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--ok-bg); color: var(--ok); font-size: 13.5px; line-height: 1.4 }
.resv-last .svg { width: 16px; height: 16px; flex: none; margin-top: 1px }
.resv-party { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px }
.resv-party .field-label { margin: 0; font-size: 15px; font-weight: 800; color: var(--ink) }
.resv-done { padding: 28px 8px 12px; text-align: center }
.resv-done strong { display: block; margin-top: 12px; font-size: 19px; font-weight: 800 }
.resv-done p { margin-top: 6px; font-size: 15px }
.resv-done .muted { font-size: 14px; line-height: 1.5 }
.resv-done-ic { width: 56px; height: 56px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; background: rgb(var(--accent-rgb) / .12); color: var(--accent-strong) }
.resv-done-ic .svg { width: 28px; height: 28px }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0 }
.sheet-resv .sheet-body > * { flex-shrink: 0 }
.sheet-resv .day-chips { padding-top: 2px }
.resv-last.is-pending { background: var(--warn-bg); color: var(--warn) }
.resv-last.is-bad { background: var(--danger-bg); color: var(--danger) }
