/* KampüsJet: Akdeniz Üniversitesi renkleri, yaygın yemek siparişi uygulaması düzeni.
   Renkler AÜ logo kılavuzundaki CMYK değerlerinden: lacivert, Akdeniz mavisi, logo turuncusu (mercan).
   Beyaz zemin, kalın başlıklar, yuvarlak kartlar. PC'de sol menü + içerik + sağ sepet. */

@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(fonts/barlow-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(fonts/barlow-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url(fonts/barlow-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url(fonts/barlow-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(fonts/barlow-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(fonts/barlow-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url(fonts/barlow-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url(fonts/barlow-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Akdeniz Üniversitesi */
  --navy: #1040b8;        /* Akdeniz kobaltı: %30 rolü */
  --navy-2: #1b4fcb;
  --navy-3: #3465de;
  /* 60-30-10: %60 nötr zemin · %30 lacivert (metin, seçim, odak, koyu kartlar) · %10 mercan (yalnızca ana eylem) */
  --accent: #d63a1e;      /* nar: beyaz yazıyla 4,7:1 */
  --accent-press: #b52c14;
  --blue: var(--navy);    /* eski ad: seçim, odak ve ilerleme rengi artık lacivert */
  --blue-press: var(--navy-2);
  --blue-tint: #e6edff;
  --coral: #ff5350;       /* C0 M67 Y68 K0: logo turuncusu */
  --coral-ink: #c2321a;   /* beyaz üstünde metin için koyulaştırılmış */
  --coral-tint: #ffe9e8;
  --sand-tint: #fff3df;
  --navy-tint: #e6edff;
  --brand-ink: #0c2f8a;
  --link: var(--navy);
  --link-strong: var(--navy);
  /* nötr */
  --bg: #ffffff;
  --bg-2: #f3f5f9;
  --line: #d6dae4;
  --line-2: #aeb5c4;
  --ink: #12182b;
  --muted: #5a6175;
  /* mutfak zeminleri: her kategori kendi rengiyle kaplanır, -ink aynı rengin koyusu */
  --t-burger: #ffd591; --t-burger-ink: #6b3400;
  --t-wrap: #d3e9a8; --t-wrap-ink: #31500a;
  --t-pizza: #ffc4b3; --t-pizza-ink: #7c1d0c;
  --t-bowl: #aee5d9; --t-bowl-ink: #0a4c42;
  --t-toast: #ffe7a1; --t-toast-ink: #5e4400;
  --t-coffee: #e8d0ba; --t-coffee-ink: #4c2c14;
  --t-cake: #ffc9da; --t-cake-ink: #7b1242;
  --plate: rgba(255, 255, 255, .55); --star: #a86400;
  /* durum */
  --ok: #157347; --ok-tint: #dcf2e5;
  --warn: #b42318; --warn-tint: #fde4e1;
  --late: #7a4b00; --late-tint: #fdeccc;
  --hot: #9a3412; --hot-tint: #ffeadb;

  /* koyu kabuk (panel kenar çubuğu, sipariş durumu kartı) için takma adlar */
  --felt: var(--navy);
  --felt-2: var(--navy-2);
  --felt-3: var(--navy-3);
  --felt-line: rgba(255, 255, 255, .16);
  --felt-ink: #ffffff;
  --felt-muted: #d5dfff;
  --accent-on-dark: #ffc857;
  --mustard: var(--accent-on-dark);
  --red: var(--coral-ink);
  --red-press: #a82712;
  --ground: var(--bg-2);
  --surface: #ffffff;
  --surface-2: var(--bg-2);

  --font: "Barlow", system-ui, sans-serif;
  --board: "Barlow", system-ui, sans-serif;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --top-h: 64px;
  --rail-w: 232px;
  --cart-w: 340px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --shadow-1: 0 1px 2px rgba(18, 24, 43, .06), 0 1px 6px rgba(18, 24, 43, .05);
  --shadow-2: 0 8px 28px rgba(18, 24, 43, .16);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font: 400 16px/1.45 var(--font); -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
  -webkit-tap-highlight-color: transparent; caret-color: var(--blue);
}
::selection { background: var(--blue-tint); color: var(--brand-ink); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: var(--r-sm); }
.felt :focus-visible, .felt:focus-visible { outline-color: #fff; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.num { font-variant-numeric: tabular-nums; }
.ic { flex: none; display: block; }
button, a, label, summary { touch-action: manipulation; }
button, .tabbar a, .rail a, .btn { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.felt { background: var(--felt); color: #fff; }

/* ---------- kabuk ---------- */
.shell { min-height: 100dvh; padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
.shell.has-cartbar { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
.page { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }

.topbar { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 12px; min-height: var(--top-h); padding: 8px 16px; max-width: 1600px; margin: 0 auto; }
.logo { display: inline-flex; align-items: center; font-weight: 700; font-size: 1.5rem; letter-spacing: -.02em; color: var(--brand-ink); line-height: 1; white-space: nowrap; }
.logo span { color: var(--coral-ink); }
/* KampüsJet adı uzun: dar telefonlarda teslim noktası kutusuna yer kalsın */
@media (max-width: 440px) {
  .topbar .where { gap: 6px; padding: 0 10px; }
  .topbar .where-text strong { font-size: .875rem; letter-spacing: -.01em; }
  .topbar-inner { gap: 8px; }
  .topbar .account { border-color: transparent; padding: 0 11px; background: var(--felt-2); }
  .logo { font-size: 1.1875rem; letter-spacing: -.03em; }
}
.felt .logo { color: #fff; }
.felt .logo span { color: var(--accent-on-dark); }

.where {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; min-width: 0;
  border-radius: 999px; border: 0; background: var(--bg-2); color: var(--ink); text-align: left;
}
.where:hover { background: var(--line); }
.where > .ic:first-child { color: var(--link); }
.where-text { display: grid; min-width: 0; line-height: 1.15; }
.where-text small { font-size: .75rem; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.where-text strong { font-weight: 700; font-size: .9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.where.is-empty strong { color: var(--link); }

.search { position: relative; flex: 1; min-width: 0; display: block; }
.search .ic { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 44px; padding: 0 16px 0 42px; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg-2); font-size: 16px; color: var(--ink);
}
.search input::placeholder { color: #6b7286; }
.search input:focus { outline: none; background: var(--surface); border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }

.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.account {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: .9375rem; max-width: 180px;
}
.account:hover { background: var(--bg-2); }
.account span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 700; white-space: nowrap;
}
.cart-btn:hover { background: var(--accent-press); }
.desk-only { display: none; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; flex: none;
  background: none; border: 0; color: inherit;
}
.icon-btn:hover { background: var(--bg-2); }
.felt .icon-btn:hover { background: var(--navy-2); }

/* sol menü (PC) */
.rail { display: none; }
.rail-nav { display: grid; gap: 2px; }
.rail a, .rail button {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: var(--r-sm);
  border: 0; background: none; font-weight: 600; color: var(--ink); text-align: left; width: 100%;
}
.rail a:hover, .rail button:hover { background: var(--bg-2); }
.rail .is-active { background: var(--blue-tint); color: var(--brand-ink); }
.rail .is-active .ic { color: var(--link); }
.rail h3 { font-size: .8125rem; font-weight: 700; color: var(--muted); margin: 20px 12px 6px; }
.rail .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--coral-ink); color: #fff; font-size: .75rem; font-weight: 700; line-height: 22px; text-align: center; }
.rail-foot { margin: 20px 12px 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }

/* ---------- başlıklar ---------- */
.h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 32px 0 14px; }
.section-head h2 { font-size: 1.375rem; font-weight: 700; letter-spacing: -.01em; }
.section-head .small { color: var(--muted); }

/* ---------- kategori çemberleri ---------- */
.cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 16px -16px 0; padding: 4px 16px; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; display: grid; justify-items: center; gap: 6px; width: 76px; padding: 6px 0; border: 0; background: none; border-radius: var(--r-md); font-size: .8125rem; font-weight: 600; color: var(--ink); }
.cat i { display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--r-lg); background: var(--bg-2); color: var(--brand-ink); transition: box-shadow .15s, transform .12s var(--ease-out); }
.cat.is-active i { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--blue); }
.cat i:not([class*="t-"]) { background: var(--felt); color: #fff; }
.cat:active i { transform: scale(.95); }
.cat.is-active { color: var(--brand-ink); }

/* ---------- tanıtım kartları ---------- */

/* ---------- işletme kartları ---------- */
.store-grid { display: grid; gap: 20px 16px; grid-template-columns: 1fr; }
.store-card { display: grid; gap: 10px; border-radius: var(--r-md); }
.tile { position: relative; display: grid; place-items: center; aspect-ratio: 2 / 1; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); color: var(--brand-ink); }
.tile > .ic { width: 30%; height: auto; max-width: 84px; stroke-width: 1.4; }
.tile-closed { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(18, 24, 43, .62); color: #fff; font-weight: 700; text-align: center; padding: 12px; }
.tile > .art { transition: transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .store-card:hover .art, .dish:hover .art, .menu-card:hover .art { transform: scale(1.05); } }
.store-card-link .tile, .dish-open .tile { transition: transform .12s var(--ease-out); }
.store-card-link:active .tile, .dish-open:active .tile { transform: scale(.98); }
.store-name { font-size: 1.125rem; font-weight: 700; line-height: 1.25; }
.store-meta { display: flex; flex-wrap: wrap; gap: 2px 6px; color: var(--muted); font-size: .875rem; }
.store-meta b { color: var(--ink); font-weight: 600; }
.store-card.is-closed .store-name { color: var(--muted); }

/* yemek kartı (yatay kaydırma) */

.dish { display: grid; gap: 8px; align-content: start; }
.dish .tile { aspect-ratio: 1; }
.dish .tile > .ic { width: 42%; }
.dish .add, .dish .stepper { position: absolute; right: 8px; bottom: 8px; }
.dish h3 { font-size: .9375rem; font-weight: 700; line-height: 1.25; }
.dish p { font-size: .8125rem; color: var(--muted); }
.price { font-weight: 700; font-variant-numeric: tabular-nums; }

.footnote { text-align: center; color: var(--muted); font-size: .8125rem; margin: 32px 0 0; }

/* ---------- işletme sayfası ---------- */

.store-logo { flex: none; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 999px; }
.store-logo > .ic { width: 34px; max-width: none; stroke-width: 1.8; }
.store-title { min-width: 0; }
.store-sub { color: var(--muted); font-size: .9375rem; margin-top: 4px; }
.store-stats { display: grid; grid-template-columns: repeat(3, auto) 1fr; margin: 18px 0 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.store-stats > div { padding: 10px 14px; min-width: 0; }
.store-stats > div + div { border-left: 1px solid var(--line); }
.store-stats dt { font-size: .75rem; font-weight: 600; color: var(--muted); }
.store-stats dd { margin: 2px 0 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-stats .link { text-decoration: none; }
.store-stats .link:hover { text-decoration: underline; }

.menu-toolbar {
  position: sticky; top: var(--top-h); z-index: 6; display: flex; align-items: center; gap: 12px;
  margin: 18px -16px 0; padding: 8px 16px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.menu-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-jump { flex: none; min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font-weight: 600; font-size: .9375rem; color: var(--muted); }
.menu-jump:hover { background: var(--bg-2); color: var(--ink); }
.menu-search { position: relative; flex: none; width: 200px; }
.menu-search .ic { position: absolute; left: 12px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.menu-search input { width: 100%; height: 38px; padding: 0 12px 0 34px; border-radius: 999px; border: 1px solid transparent; background: var(--bg-2); font-size: 16px; color: var(--ink); }
.menu-search input:focus { outline: none; border-color: var(--blue); background: var(--surface); }

.menu-section { scroll-margin-top: calc(var(--top-h) + 64px); padding-top: 22px; }
.menu-section-title { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 4px; }
.menu-section-title .muted { font-size: .9375rem; font-weight: 600; margin-left: 4px; }



.stepper-lg { height: 48px; box-shadow: none; border: 1px solid var(--line-2); }
.stepper-lg button { width: 44px; height: 44px; }
.stepper-lg button:disabled { opacity: .35; cursor: not-allowed; }

.add {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 0;
  background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(18, 24, 43, .22); transition: transform .12s var(--ease-out), background-color .15s;
}
.add:hover { background: var(--bg-2); }
.add:active { transform: scale(.92); }
.stepper { display: inline-flex; align-items: center; height: 40px; border-radius: 999px; background: var(--surface); box-shadow: 0 2px 8px rgba(18, 24, 43, .22); padding: 0 2px; }
.stepper button { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; border: 0; background: none; }
.stepper button:hover { background: var(--bg-2); }
.stepper span { min-width: 18px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-line .stepper { box-shadow: none; border: 1px solid var(--line-2); }

/* ---------- sepet paneli (PC/tablet sağ sütun) ---------- */

.cart-line:first-of-type { border-top: 0; }
.cart-line .name { font-weight: 600; font-size: .9375rem; line-height: 1.25; }
.cart-line .stepper button { width: 30px; height: 30px; }

/* ---------- düğmeler ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border-radius: 999px; border: 0; background: var(--accent); color: #fff; font-weight: 700; font-size: 1rem; text-align: center;
  transition: background-color .15s, transform .12s var(--ease-out);
}
.btn:hover { background: var(--accent-press); }
.btn:active { transform: scale(.98); }
.btn:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; transform: none; }
.felt .btn:disabled { background: var(--navy-3); color: var(--felt-muted); }
.btn-dark { background: var(--felt); color: #fff; }
.btn-dark:hover { background: var(--felt-2); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-danger { background: var(--surface); color: var(--warn); border: 1px solid #f0b8b2; }
.btn-danger:hover { background: var(--warn-tint); }
.btn-block { width: 100%; }
.btn-split { justify-content: space-between; }
.link { background: none; border: 0; padding: 0; color: var(--link); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.chip {
  flex: none; min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); font-weight: 600; font-size: .9375rem; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s;
}
.chip:hover { background: var(--bg-2); }
.chip.is-active { background: var(--navy); border-color: var(--brand-ink); color: #fff; }
.chips { display: flex; gap: 8px; }
.chips.wrap { flex-wrap: wrap; }

.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--bg-2); color: var(--ink); font-weight: 700; font-size: .875rem; font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.pill-hot { background: var(--hot-tint); color: var(--hot); }
.pill-out, .pill-iptal { background: var(--warn-tint); color: var(--warn); }
.pill-late { background: var(--late-tint); color: var(--late); }
.pill-teslim { background: var(--ok-tint); color: var(--ok); }
.pill-active { background: var(--navy); color: #fff; }
.pill-new { background: var(--coral-ink); color: #fff; }

/* ---------- formlar ve gruplar ---------- */
.group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; }
.group + .group { margin-top: 12px; }
.group-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 12px; }
.group .hint { color: var(--muted); font-size: .875rem; margin-top: 10px; }

.point-pick { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); }
.point-pick:hover { background: var(--bg-2); }
.point-pick strong { display: block; }
.point-pick small { display: block; color: var(--muted); font-size: .8125rem; }
.point-pick > .ic:first-child { color: var(--link); }

.radio { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--r-md); cursor: pointer; font-weight: 600; }
.radio:has(input:checked) { border-color: var(--blue); background: var(--blue-tint); box-shadow: inset 0 0 0 1px var(--blue); }
.radio input { width: 18px; height: 18px; accent-color: var(--blue); margin: 0; }

.field { display: flex; gap: 8px; }
.input, textarea { width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); font-size: 16px; color: var(--ink); }
textarea { padding: 12px 14px; resize: vertical; min-height: 76px; line-height: 1.4; }
.input:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.input::placeholder, textarea::placeholder { color: #6b7286; }
.field .input { flex: 1; min-width: 0; text-transform: uppercase; }
.field .input::placeholder { text-transform: none; }

details.disclose summary { cursor: pointer; color: var(--link); font-weight: 600; font-size: .9375rem; padding: 10px 0 0; list-style: none; display: flex; align-items: center; gap: 4px; }
details.disclose summary::-webkit-details-marker { display: none; }
details.disclose[open] summary .ic { rotate: 180deg; }
.coupon { padding: 12px 0; border-top: 1px solid var(--line); margin-top: 10px; }
.coupon strong { letter-spacing: .04em; }
.coupon ul { margin: 6px 0 8px; padding-left: 18px; color: var(--muted); font-size: .875rem; }

.summary-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-variant-numeric: tabular-nums; }
.summary-rows .total { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 700; font-size: 1.125rem; }
.notice { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: var(--r-sm); font-size: .875rem; font-weight: 500; }
.notice .ic { margin-top: 1px; }
.notice-warn { background: var(--warn-tint); color: var(--warn); }
.notice-info { background: var(--bg-2); color: var(--muted); }
.notice-ok { background: var(--ok-tint); color: var(--ok); }

.split { display: grid; gap: 16px; padding-top: 16px; }
.page-title { display: flex; align-items: center; gap: 4px; padding-top: 12px; }
.page-title .icon-btn { margin-left: -10px; }

/* ---------- sipariş takibi ---------- */
.track-card { border-radius: var(--r-lg); padding: 22px; background: var(--navy); color: #fff; }
.status { font-weight: 700; font-size: clamp(1.625rem, 4vw, 2.25rem); letter-spacing: -.02em; line-height: 1.1; }
.status-sub { margin-top: 6px; color: var(--felt-muted); font-size: .9375rem; }

.track-card.is-iptal { background: #5c1a14; }
.track-card.is-teslim { background: #0f5132; }

.flap { display: inline-block; }
.flap.is-new > span > span { display: inline-block; animation: flap .42s var(--ease-out) both; animation-delay: calc(var(--i) * 18ms); }
@keyframes flap { from { transform: translateY(-60%) rotateX(80deg); opacity: 0; } to { transform: none; opacity: 1; } }

.code-block { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.code { font-weight: 700; font-size: 2.5rem; letter-spacing: .24em; line-height: 1; font-variant-numeric: tabular-nums; margin-right: -.24em; color: var(--brand-ink); }

.check-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; border-top: 1px solid var(--line); }
.check-row:first-of-type { border-top: 0; }
.check-row select { min-height: 40px; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); }
.check-row input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--blue); }

.order-list { display: grid; gap: 12px; }
.order-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); }
.order-card .tile { aspect-ratio: 1; border-radius: var(--r-sm); }
.order-card .tile > .ic { width: 50%; }
.order-card h3 { font-size: 1rem; font-weight: 700; }
.order-card p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; color: var(--muted); font-size: .875rem; }
.order-card .amount { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- alt çubuklar (telefon/tablet) ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; }
.cartbar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; width: calc(100% - 24px); max-width: 640px;
  margin: 0 auto 10px; padding: 0 20px; min-height: 54px; border-radius: 999px; background: var(--accent); color: #fff;
  box-shadow: var(--shadow-2); font-weight: 700;
}
.cartbar:hover { background: var(--accent-press); }
.cartbar { position: relative; overflow: hidden; }
.cartbar-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .85); transform-origin: left; transition: transform .3s var(--ease-out); }

/* Zeigarnik: yarım kalan iş kartı */
.resume { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.resume:hover { border-color: var(--line-2); }
.resume > .ic:first-child { color: var(--link); }
.resume-head { display: grid; gap: 2px; flex: 1; min-width: 0; }
.resume-head small { color: var(--muted); font-size: .8125rem; font-weight: 600; }
.resume-head b { font-size: 1.0625rem; }
.resume.felt { display: block; border: 0; background: var(--felt); color: #fff; }
.resume.felt small { color: var(--felt-muted); }
.resume.felt .progress { margin-top: 12px; }
/* Kampanyalar kupon bileti gibidir: kesik çizgi ve iki yanda çentik. İlk kart koyu, diğerleri mutfak renginde. */
.carousel.campaigns .carousel-track { grid-auto-columns: min(320px, 82%); gap: 12px; }
.campaign {
  --foot: 76px; display: grid; grid-template-rows: 1fr var(--foot); gap: 0; padding: 0 18px; border-radius: var(--r-lg); background: var(--t-toast); color: var(--t-toast-ink);
  mask: radial-gradient(circle 9px at 0 calc(100% - var(--foot)), #0000 97%, #000) 0 0 / 51% 100% no-repeat, radial-gradient(circle 9px at 100% calc(100% - var(--foot)), #0000 97%, #000) 100% 0 / 51% 100% no-repeat;
}
.campaign:nth-child(3n) { background: var(--t-bowl); color: var(--t-bowl-ink); }
.campaign > div:first-child { padding: 18px 0 14px; }
.campaign h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.25; }
.campaign p { margin-top: 4px; font-size: .9375rem; }
.campaign-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 2px dashed currentColor; border-color: color-mix(in srgb, currentColor 35%, transparent); }
.campaign-foot .btn { min-height: 40px; padding: 0 14px; font-size: .875rem; white-space: nowrap; }
.campaign .btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.campaign .coupon-code { font-weight: 700; font-size: .9375rem; letter-spacing: .04em; }
.campaign.is-lead { border-color: transparent; background: var(--felt); color: #fff; }
.campaign.is-lead p, .campaign.is-lead .campaign-foot .small { color: rgba(255, 255, 255, .85); }
.cartbar span { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cartbar b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cartbar span .num, .cartbar .ic { flex-shrink: 0; }
.tabbar { background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar-inner { max-width: 640px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; color: var(--muted); font-size: .75rem; font-weight: 600; }
.tabbar a.is-active { color: var(--brand-ink); }
.tabbar a > .ic { box-sizing: content-box; padding: 3px 16px; border-radius: 999px; transition: background-color .15s; }
.tabbar a.is-active > .ic { color: var(--link); background: var(--blue-tint); }
.tabbar .count { position: absolute; top: 7px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--coral-ink); color: #fff; font-size: .6875rem; font-weight: 700; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.cta { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.cta .btn { max-width: 640px; margin: 0 auto; display: flex; width: 100%; }

/* ---------- boş ve hata ---------- */
.empty { padding: 56px 16px; text-align: center; display: grid; justify-items: center; gap: 14px; color: var(--muted); }
.empty .ic { color: var(--line-2); }
.empty p { max-width: 34ch; }
.offline { position: sticky; top: 0; z-index: 30; display: flex; justify-content: center; align-items: center; gap: 8px; padding: 8px 16px; background: var(--late-tint); color: var(--late); font-size: .875rem; font-weight: 600; }

/* ---------- alt sayfa ---------- */
.sheet { position: fixed; inset: 0; z-index: 40; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(12, 18, 38, .5); transition: opacity .2s ease-out; }
.sheet-panel {
  position: absolute; bottom: 0; left: 50%; translate: -50% 0; width: min(560px, 100%); max-height: 88dvh; overflow-y: auto;
  overscroll-behavior: contain; background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 10px 20px calc(20px + env(safe-area-inset-bottom)); transition: translate .28s var(--ease-drawer), scale .26s var(--ease-drawer), opacity .2s ease-out;
}
.sheet-panel::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 999px; background: var(--line-2); margin: 0 auto 14px; }
.sheet-panel h2 { font-weight: 700; font-size: 1.5rem; letter-spacing: -.01em; line-height: 1.15; }
.sheet-panel .lead { color: var(--muted); font-size: .9375rem; margin-top: 6px; }
/* Giriş hareketi geçişle yapılır: yarıda kesilip yön değiştirebilir (src/overlay.js kaydırarak kapatma) */
@starting-style {
  .sheet-backdrop { opacity: 0; }
  .sheet-panel { translate: -50% 100%; }
}
.sheet-group h3 { font-size: .875rem; font-weight: 700; color: var(--muted); margin: 18px 0 6px; }
.point-option { width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; margin-top: 6px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.point-option:hover { background: var(--bg-2); }
.point-option strong { display: block; font-weight: 600; }
.point-option small { display: block; color: var(--muted); font-size: .8125rem; }
.point-option .mins { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.point-option.is-selected { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: var(--blue-tint); }
.sheet-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

.auth-form { display: grid; gap: 12px; margin-top: 16px; }
.auth-form label { display: grid; gap: 6px; font-size: .875rem; font-weight: 600; color: var(--muted); }
.auth-form [data-auth-error]:empty { display: none; }
.auth-form label.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; line-height: 1.4; color: var(--ink); }
.consent input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--blue); }
.consent a, .account-out a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.link-btn { background: none; border: 0; padding: 10px 0; min-height: 44px; font: inherit; font-weight: 600; cursor: pointer; width: 100%; }
.danger-link { color: var(--red); }
.danger-link:hover { text-decoration: underline; }
.seg-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-top: 14px; border-radius: 999px; background: var(--bg-2); }
.seg-tabs button { min-height: 40px; border: 0; border-radius: 999px; background: none; font-weight: 600; color: var(--muted); }
.seg-tabs button.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }

.toast {
  position: fixed; left: 50%; bottom: calc(150px + env(safe-area-inset-bottom)); z-index: 50; translate: -50% 12px; opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 999px; background: var(--navy); color: #fff;
  box-shadow: var(--shadow-2); font-weight: 600; font-size: .9375rem; transition: opacity .2s, translate .3s var(--ease-out);
}
.toast.show { opacity: 1; translate: -50% 0; }

.track-split { display: grid; gap: 12px; padding-top: 16px; }
.track-split > div > .group + .group, .track-split > div > .group { margin-top: 0; }
.track-split > div { display: grid; gap: 12px; align-content: start; }

/* panelin kullandığı sınıflar */
.badge-shop { width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.0625rem; }
.board-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }

/* =====================================================================
   DoorDash benzeri sistemler: mod anahtarı, şeritler, çekmece, ürün penceresi,
   işletme kapağı, ödeme seçimleri, takip ilerlemesi, hesap.
   ===================================================================== */

/* Teslimat / Gel-al */
.mode-switch { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; border-radius: 999px; background: var(--bg-2); flex: none; }
.mode-switch button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font-weight: 700; font-size: .875rem; color: var(--muted); white-space: nowrap; }
.mode-switch button.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.mode-switch.small button { min-height: 32px; padding: 0 12px; font-size: .8125rem; }
.where.is-static { cursor: default; }
.where.is-static:hover { background: var(--bg-2); }
.top-search { flex: 1; min-width: 0; max-width: 560px; }
.mobile-bar { display: grid; grid-template-columns: auto 1fr; gap: 8px; padding: 0 16px 12px; }
.rail .count.is-alert { background: var(--coral-ink); }
.rail .count:not(.is-alert) { background: var(--bg-2); color: var(--muted); }

/* yuvarlak simge düğmeleri */
.icon-btn.round { width: 40px; height: 40px; background: var(--surface); box-shadow: var(--shadow-1); color: var(--ink); }
.icon-btn.round:hover { background: var(--bg-2); }
.icon-btn.outline { box-shadow: none; border: 1px solid var(--line-2); }

/* kalp (kaydet) */
.heart { position: absolute; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 999px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.heart.on-tile { top: 10px; right: 10px; }
.heart.is-on { color: var(--coral-ink); }
.heart.is-on .ic { fill: currentColor; }
.heart:hover { transform: scale(1.06); }

/* filtre çipleri */
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 10px -16px 0; padding: 4px 16px; }
.filters::-webkit-scrollbar { display: none; }
.filters .chip { display: inline-flex; align-items: center; gap: 6px; }

/* mağaza kartı */
.store-card { position: relative; }
.store-card-link { display: grid; gap: 10px; }

/* yatay şerit */
.carousel { margin-top: 8px; }
.carousel .section-head { align-items: center; }
.carousel-nav { display: none; gap: 8px; margin-left: auto; }
.carousel-track { display: grid; grid-auto-flow: column; gap: 16px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px 8px; scroll-snap-type: x proximity; scroll-padding-inline: 16px; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel.stores .carousel-track { grid-auto-columns: minmax(260px, 78%); }
.carousel.dishes .carousel-track { grid-auto-columns: 164px; }
.carousel-track > * { scroll-snap-align: start; }

/* yemek kartı */
.dish { position: relative; }
.dish-open { display: grid; gap: 6px; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: inherit; }
.dish-open .tile { aspect-ratio: 1; }
.dish-open .tile > .ic { width: 40%; }
.dish-name { font-weight: 700; font-size: .9375rem; line-height: 1.25; }
.dish-sub { font-size: .8125rem; color: var(--muted); }
.dish { container-type: inline-size; }
/* + düğmesi kare görselin sağ alt köşesinde */
.dish > .add { position: absolute; right: 8px; top: calc(100cqw - 48px); }
.dish-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }

/* + düğmesi adet rozeti */
.add.has-qty { background: var(--ink); color: var(--bg); font-weight: 700; font-size: .9375rem; }

/* mutfak ızgarası (arama sayfası) */
.cuisine-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cuisine { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); font-weight: 700; text-align: left; }
.cuisine i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--bg-2); color: var(--brand-ink); }
.cuisine:hover { background: var(--bg-2); }

/* ---------- katmanlar ---------- */
.layer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.layer-head .icon-btn { margin: -6px -10px 0 0; }
.sheet.layer-drawer .sheet-panel {
  left: auto; right: 0; top: 0; bottom: 0; translate: none; width: min(440px, 100%); max-height: none; height: 100dvh;
  border-radius: 0; padding: 18px 20px 0; display: flex; flex-direction: column; touch-action: pan-y;
}
.sheet.layer-drawer .sheet-panel::before { display: none; }
@starting-style { .sheet.layer-drawer .sheet-panel { translate: 40px 0; opacity: 0; } }
.drawer-body { flex: 1; overflow-y: auto; margin: 14px -20px 0; padding: 0 20px 12px; }
.drawer-foot { margin: 0 -20px; padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.drawer-foot .btn { margin-top: 12px; }
.drawer-foot .notice { margin-top: 10px; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.cart-line:first-child { border-top: 0; }
.cart-line-main { display: grid; gap: 2px; min-width: 0; }
.cart-line-main .name { font-weight: 700; }
.cart-line-main .opts { font-size: .8125rem; color: var(--muted); }
.cart-line-main .price { font-weight: 600; margin-top: 2px; }
.cart-line .stepper { height: 36px; box-shadow: none; border: 1px solid var(--line-2); grid-column: auto; }
.cart-line .stepper button { width: 32px; height: 32px; }
.btn.is-disabled { background: var(--line); color: var(--muted); pointer-events: none; }

/* ürün penceresi */
.sheet.layer-modal .sheet-panel { padding: 0; max-height: 92dvh; display: flex; flex-direction: column; overflow: hidden; }
.sheet.layer-modal .sheet-panel::before { display: none; }
.item-modal { display: flex; flex-direction: column; min-height: 0; flex: 1; overflow-y: auto; }
.item-hero { position: relative; display: grid; place-items: center; height: 220px; flex: none; aspect-ratio: auto; border-radius: 0; }
.item-hero > .ic { width: 80px; max-width: none; stroke-width: 1.3; }
.close-on-hero { position: absolute; top: 12px; right: 12px; }
.item-body { padding: 18px 20px 8px; display: grid; gap: 6px; }
.item-body h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; }
.item-price { font-weight: 700; font-size: 1.0625rem; }
.item-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.item-tags:empty { display: none; }
.opt-group { border: 0; margin: 14px 0 0; padding: 0; border-top: 8px solid var(--bg-2); padding-top: 14px; }
.opt-group legend { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; width: 100%; padding: 0; margin-bottom: 6px; }
.opt-title { font-weight: 700; font-size: 1.0625rem; }
.opt-rule { font-size: .8125rem; font-weight: 600; color: var(--muted); padding: 2px 8px; border-radius: 999px; background: var(--bg-2); white-space: nowrap; }
.opt-rule.req { color: var(--ink); }
.opt-group.is-missing .opt-rule { background: var(--warn-tint); color: var(--warn); }
.opt { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); cursor: pointer; }
.opt input { width: 20px; height: 20px; margin: 0; accent-color: var(--blue); }
.opt-name { font-weight: 500; }
.opt-price { color: var(--muted); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.opt.is-full { opacity: .5; cursor: not-allowed; }
.opt-note { display: grid; gap: 6px; margin-top: 18px; border-top: 8px solid var(--bg-2); padding-top: 14px; }
.opt-note small { font-size: .8125rem; }
.item-foot { position: sticky; bottom: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); margin-top: auto; }
.btn.is-soft { opacity: .85; }

/* ---------- işletme sayfası (kapak + tanıtım) ---------- */
.store-page { padding-top: 0; }
.store-cover { position: relative; display: grid; place-items: center; height: 150px; margin: 0 -16px; border-radius: 0; aspect-ratio: auto; width: auto; }
.store-cover > .ic { width: 96px; max-width: none; stroke-width: 1.2; opacity: .85; }
.cover-back { position: absolute; left: 12px; top: 12px; }
.heart.cover-heart { top: 12px; right: 12px; width: 40px; height: 40px; }
.store-intro { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: end; margin-top: -34px; }
.store-intro .store-logo { width: 76px; height: 76px; border: 4px solid var(--bg); }
.store-intro .store-logo > .ic { width: 34px; max-width: none; }
.store-title { padding: 42px 0 4px; min-width: 0; }
.store-box { grid-column: 1 / -1; display: grid; gap: 10px; margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); }
.store-box .mode-switch { justify-self: start; }
.store-box .store-stats { margin: 0; border: 0; border-radius: 0; grid-template-columns: repeat(4, auto); }
.store-box .store-stats > div { padding: 0 8px; }
.store-box .store-stats > div:first-child { padding-left: 0; }
.store-point { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 0; border-radius: var(--r-sm); background: var(--bg-2); font-weight: 600; text-align: left; }
.store-point span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-point > .ic:first-child { color: var(--link); }
.store-logo.sm { width: 40px; height: 40px; border: 0; border-radius: 999px; display: grid; place-items: center; flex: none; }
.store-logo.sm > .ic { width: 18px; max-width: none; }
.store-body { margin-top: 8px; }
.carousel.in-store { margin-top: 0; }
.carousel.in-store .section-head { margin-top: 0; }
@media (max-width: 899.98px) { .is-store .topbar { border-radius: 0; } }
.store-content { min-width: 0; }
.menu-side { display: none; }

/* menü kartı (sağda görsel, köşede +) */
.menu-grid { display: grid; gap: 12px; }
.menu-card { position: relative; }
.menu-card-main { display: grid; grid-template-columns: 1fr 112px; gap: 14px; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); text-align: left; color: inherit; transition: box-shadow .15s, border-color .15s; }
.menu-card-main:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); }
.menu-card-text { display: grid; gap: 4px; align-content: start; min-width: 0; }
.menu-card-name { font-weight: 700; font-size: 1.0625rem; line-height: 1.3; }
.menu-card-desc { color: var(--muted); font-size: .9375rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.menu-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .9375rem; margin-top: 4px; }
.menu-card-meta .dot { color: var(--line-2); }
.menu-card-thumb { display: grid; place-items: center; width: 112px; height: 112px; border-radius: var(--r-sm); }
.menu-card-thumb > .ic { width: 34px; max-width: none; stroke-width: 1.6; }
.menu-card > .add { position: absolute; right: 18px; bottom: 18px; }
.menu-card.is-out { opacity: .6; }

/* ---------- ödeme ---------- */
.group-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.group-head .group-title { margin: 0; }
.choices { display: grid; gap: 8px; }
.choice { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); text-align: left; color: inherit; }
.choice span { display: grid; gap: 1px; }
.choice small { color: var(--muted); font-size: .8125rem; }
.choice > .ic { color: var(--muted); }
.choice:disabled { opacity: .6; cursor: not-allowed; }
.plan-days { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; overflow-x: auto; scrollbar-width: none; }
.plan-days button { padding: 0 10px; white-space: nowrap; }
.push-card { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.push-card > .ic { color: var(--link); }
.choice.is-on { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: var(--blue-tint); }
.choice.is-on > .ic { color: var(--link); }
.point-pick.is-static { cursor: default; grid-template-columns: auto 1fr; }
.checkout-main > .group + .group { margin-top: 12px; }
.order-summary-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.order-summary-head > div { flex: 1; min-width: 0; }
.sum-line { align-items: flex-start; }
.sum-line > span:first-child { display: grid; gap: 1px; }
.sum-line small { color: var(--muted); font-size: .8125rem; }
.sum-sep { height: 1px; background: var(--line); margin: 8px 0; padding: 0 !important; }

/* ---------- takip ---------- */
.track-eta-label { color: var(--felt-muted); font-weight: 600; font-size: .9375rem; }
.track-eta { font-size: clamp(2rem, 6vw, 2.75rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 10px; }
.track-card .status { font-size: clamp(1.25rem, 3vw, 1.5rem); }
.progress { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.progress li { display: grid; gap: 6px; }
.progress .bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .25); overflow: hidden; position: relative; }
.progress li.done .bar { background: #fff; }
.progress li.now .bar::after { content: ""; position: absolute; inset: 0; width: 45%; border-radius: 999px; background: #fff; animation: progress-pulse 1.6s ease-in-out infinite; }
@keyframes progress-pulse { 0% { translate: -100% 0; } 100% { translate: 230% 0; } }
.progress .lbl { font-size: .8125rem; font-weight: 600; color: var(--felt-muted); }
.progress li.done .lbl, .progress li.now .lbl { color: #fff; }
.route { display: grid; grid-template-columns: minmax(0, auto) minmax(48px, 1fr) minmax(0, auto); gap: 12px; align-items: center; }
.route-end { display: flex; align-items: center; gap: 8px; min-width: 0; }
.route-end > .ic { color: var(--link); }
.route-end span { display: grid; min-width: 0; }
.route-end b { font-size: .9375rem; }
.route-end small { color: var(--muted); font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.route-end.is-end { flex-direction: row-reverse; text-align: right; }
.route-line { position: relative; height: 4px; border-radius: 999px; background: var(--line); }
.route-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--blue); transition: width .8s var(--ease-out); }
.route-dot-track { position: absolute; inset: 0; transition: transform .8s var(--ease-out); }
.route-dot { position: absolute; left: 0; top: 50%; width: 14px; height: 14px; border-radius: 999px; background: var(--blue); border: 3px solid var(--surface); box-shadow: var(--shadow-1); translate: -50% -50%; }
.person { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.person > div { display: grid; }
.person small { color: var(--muted); font-size: .8125rem; }

/* ---------- siparişler ---------- */
.order-card { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); grid-template-columns: 1fr; align-items: stretch; }
.order-card-link { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; }
.order-card .order-items { display: block; color: var(--muted); font-size: .8125rem; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-card > .btn { min-height: 40px; }
.order-card-link > div { min-width: 0; }

/* ---------- hesap ---------- */
.account-page { max-width: 720px; }
.account-page > .group, .account-page > .btn { margin-top: 12px; }
.email-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.email-addr { overflow-wrap: anywhere; min-width: 0; }
.profile { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.profile > div { flex: 1; display: grid; min-width: 0; }
.profile small { color: var(--muted); }
.avatar { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; font-size: 1.125rem; flex: none; }
.acc-list { padding: 4px 18px; }
.acc-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; width: 100%; min-height: 60px; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; color: inherit; }
.acc-row:last-child { border-bottom: 0; }
.acc-row span { display: grid; }
.acc-row small { color: var(--muted); font-size: .8125rem; }
.acc-row > .ic:first-child { color: var(--link); }
.seg-tabs.three { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
.help details { border-top: 1px solid var(--line); padding: 12px 0; }
.help details:first-of-type { border-top: 0; }
.help summary { cursor: pointer; font-weight: 600; }
.help details p { color: var(--muted); margin-top: 6px; }

/* ---------- duyarlı ---------- */
@media (max-width: 899.98px) { .desk-only { display: none !important; } .topbar-inner .where { flex: 1; } }
@media (min-width: 640px) {
  .carousel.stores .carousel-track { grid-auto-columns: minmax(280px, 44%); }
  .dish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cuisine-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .store-cover { height: 200px; margin: 16px 0 0; border-radius: var(--r-lg); }
  .store-intro { margin-top: -40px; padding-left: 20px; }
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet.layer-modal .sheet-panel { top: 50%; bottom: auto; translate: -50% -50%; width: min(560px, calc(100% - 32px)); border-radius: var(--r-lg); max-height: 88dvh; }
  @starting-style { .sheet.layer-modal .sheet-panel { translate: -50% -48%; scale: .97; opacity: 0; } }
}
@media (min-width: 900px) {
  .mobile-bar { display: none; }
  .store-intro { grid-template-columns: auto 1fr minmax(340px, 400px); align-items: start; }
  .store-title { padding-top: 50px; }
  .store-box { grid-column: auto; margin-top: 52px; align-self: end; }
  .carousel-nav { display: inline-flex; }
  .filters { margin: 14px 0 0; padding: 2px 0; overflow: visible; flex-wrap: wrap; }
}
@media (min-width: 1100px) {
  .carousel-track { margin: 0; padding: 4px 0 8px; scroll-padding-inline: 0; }
  .carousel.stores .carousel-track { grid-auto-columns: calc((100% - 32px) / 3); }
  .carousel.dishes .carousel-track { grid-auto-columns: 180px; }
  .store-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 20px; }
  .menu-side { display: grid; gap: 2px; position: sticky; top: calc(var(--top-h) + 16px); }
  .menu-side-head { font-weight: 700; font-size: 1.0625rem; padding: 0 12px 8px; }
  .menu-side .menu-jump { justify-content: flex-start; text-align: left; border-radius: var(--r-sm); min-height: 40px; }
  .mobile-tabs { display: none; }
  .menu-toolbar { margin: 0; padding: 0 0 8px; position: static; border: 0; }
  .menu-search { width: 100%; max-width: 420px; }
  .dish-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .order-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1500px) {
  .carousel.stores .carousel-track { grid-auto-columns: calc((100% - 48px) / 4); }
}


/* yardımcı aralıklar (satır içi stil yerine) */
.m-0 { margin: 0; }
.mt-8 { margin-top: 8px; } .mt-10 { margin-top: 10px; } .mt-12 { margin-top: 12px; } .mt-14 { margin-top: 14px; } .mt-20 { margin-top: 20px; }
.mb-4 { margin-bottom: 4px; } .mb-6 { margin-bottom: 6px; }
.w-full { width: 100%; } .d-block { display: block; } .span-all { grid-column: 1 / -1; }
.inline-icon { display: inline-flex; align-items: center; gap: 4px; }


/* geniş ekran: sayfa kenarları boş kalmasın */
@media (min-width: 1500px) {
  .page { max-width: 1600px; padding: 0 32px; }
}
@media (min-width: 900px) {
  .account-page { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 24px; align-content: start; }
  .account-page > .page-title { grid-column: 1 / -1; }
  .account-page > .group, .account-page > .btn { margin-top: 0; }
  .account-page > .profile { grid-column: 1 / -1; }
  .account-page > .help { grid-row: span 2; }
}

/* ---------- karanlık mod ----------
   Varsayılan: cihazın ayarı. Kullanıcı üstteki düğmeyle açık ya da koyuyu sabitleyebilir (html[data-theme]). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  /* %60 nötr: mavisiz grafit (lacivertle karışmasın) */
  --bg: #111214;
  --bg-2: #1c1d21;
  --surface: #18191c;
  --surface-2: #222328;
  --line: #2e3036;
  --line-2: #464952;
  --ink: #f2f2f4;
  --muted: #a9acb5;
  /* %30 rolü koyu modda lacivert değil camgöbeği */
  --brand-ink: #a6e6dd;
  --link: #7fdccf;
  --link-strong: #a6e6dd;
  --blue: #5fd0c0;
  --blue-press: #86ddd1;
  --blue-tint: #15302d;
  --coral-tint: #3b1b22;
  --sand-tint: #33280f;
  --navy-tint: #15302d;
  --t-burger: #4a2f10; --t-burger-ink: #ffd591;
  --t-wrap: #2b3d12; --t-wrap-ink: #cfe79f;
  --t-pizza: #4d2018; --t-pizza-ink: #ffb9a6;
  --t-bowl: #113f38; --t-bowl-ink: #a6e6dd;
  --t-toast: #453810; --t-toast-ink: #ffe08a;
  --t-coffee: #3d2c20; --t-coffee-ink: #e8cdb4;
  --t-cake: #4a1c30; --t-cake-ink: #ffc0d4;
  --plate: rgba(255, 255, 255, .1); --star: #f5b841;
  --ok: #6fd39b; --ok-tint: #10331f;
  --warn: #ff8a80; --warn-tint: #3d1512;
  --late: #f3c26b; --late-tint: #3a2a08;
  --hot: #ffab7a; --hot-tint: #3a1d0c;
  --felt: #0f4a45;
  --felt-2: #145a54;
  --felt-3: #1a6c65;
  --felt-muted: #a9d6cf;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 1px 8px rgba(0, 0, 0, .25);
  --shadow-2: 0 10px 30px rgba(0, 0, 0, .5);
  color-scheme: dark;
  }
:root:not([data-theme="light"]) input::placeholder, :root:not([data-theme="light"]) textarea::placeholder { color: var(--muted); }
:root:not([data-theme="light"]) .heart.is-on { color: var(--coral); }
:root:not([data-theme="light"]) .tile-closed { background: rgba(0, 0, 0, .7); }
:root:not([data-theme="light"]) .chip.is-active, :root:not([data-theme="light"]) .pill-active { background: var(--blue); border-color: var(--blue); color: #062b28; }
:root:not([data-theme="light"]) .rail .is-active { background: #15302d; }
:root:not([data-theme="light"]) .track-card { background: var(--felt); }
:root:not([data-theme="light"]) .track-card.is-iptal { background: #4a1712; }
:root:not([data-theme="light"]) .track-card.is-teslim { background: #0d3d27; }
:root:not([data-theme="light"]) .btn-danger { border-color: #6b2a24; }
:root:not([data-theme="light"]) .btn:disabled { background: #2a2c32; color: #8a8d96; }
:root:not([data-theme="light"]) .add, :root:not([data-theme="light"]) .stepper { box-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
:root:not([data-theme="light"]) .sheet-backdrop { background: rgba(0, 0, 0, .7); }
:root:not([data-theme="light"]) .toast { background: #145a54; }
:root:not([data-theme="light"]) .search input:focus { box-shadow: 0 0 0 3px #15302d; }
:root:not([data-theme="light"]) ::selection { background: #145a54; color: #fff; }
}
:root[data-theme="dark"] {
  /* %60 nötr: mavisiz grafit (lacivertle karışmasın) */
  --bg: #111214;
  --bg-2: #1c1d21;
  --surface: #18191c;
  --surface-2: #222328;
  --line: #2e3036;
  --line-2: #464952;
  --ink: #f2f2f4;
  --muted: #a9acb5;
  /* %30 rolü koyu modda lacivert değil camgöbeği */
  --brand-ink: #a6e6dd;
  --link: #7fdccf;
  --link-strong: #a6e6dd;
  --blue: #5fd0c0;
  --blue-press: #86ddd1;
  --blue-tint: #15302d;
  --coral-tint: #3b1b22;
  --sand-tint: #33280f;
  --navy-tint: #15302d;
  --t-burger: #4a2f10; --t-burger-ink: #ffd591;
  --t-wrap: #2b3d12; --t-wrap-ink: #cfe79f;
  --t-pizza: #4d2018; --t-pizza-ink: #ffb9a6;
  --t-bowl: #113f38; --t-bowl-ink: #a6e6dd;
  --t-toast: #453810; --t-toast-ink: #ffe08a;
  --t-coffee: #3d2c20; --t-coffee-ink: #e8cdb4;
  --t-cake: #4a1c30; --t-cake-ink: #ffc0d4;
  --plate: rgba(255, 255, 255, .1); --star: #f5b841;
  --ok: #6fd39b; --ok-tint: #10331f;
  --warn: #ff8a80; --warn-tint: #3d1512;
  --late: #f3c26b; --late-tint: #3a2a08;
  --hot: #ffab7a; --hot-tint: #3a1d0c;
  --felt: #0f4a45;
  --felt-2: #145a54;
  --felt-3: #1a6c65;
  --felt-muted: #a9d6cf;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 1px 8px rgba(0, 0, 0, .25);
  --shadow-2: 0 10px 30px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
:root[data-theme="dark"] input::placeholder, :root[data-theme="dark"] textarea::placeholder { color: var(--muted); }
:root[data-theme="dark"] .heart.is-on { color: var(--coral); }
:root[data-theme="dark"] .tile-closed { background: rgba(0, 0, 0, .7); }
:root[data-theme="dark"] .chip.is-active, :root[data-theme="dark"] .pill-active { background: var(--blue); border-color: var(--blue); color: #062b28; }
:root[data-theme="dark"] .rail .is-active { background: #15302d; }
:root[data-theme="dark"] .track-card { background: var(--felt); }
:root[data-theme="dark"] .track-card.is-iptal { background: #4a1712; }
:root[data-theme="dark"] .track-card.is-teslim { background: #0d3d27; }
:root[data-theme="dark"] .btn-danger { border-color: #6b2a24; }
:root[data-theme="dark"] .btn:disabled { background: #2a2c32; color: #8a8d96; }
:root[data-theme="dark"] .add, :root[data-theme="dark"] .stepper { box-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
:root[data-theme="dark"] .sheet-backdrop { background: rgba(0, 0, 0, .7); }
:root[data-theme="dark"] .toast { background: #145a54; }
:root[data-theme="dark"] .search input:focus { box-shadow: 0 0 0 3px #15302d; }
:root[data-theme="dark"] ::selection { background: #145a54; color: #fff; }

@media (hover: none) { .chip:hover { background: var(--surface); } .chip.is-active:hover { background: var(--navy); } }
/* Gönderilirken: buton kilitli, yanında dönen gösterge */
.btn[aria-busy="true"]::after { content: ""; width: 16px; height: 16px; border-radius: 999px; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }

/* Açılır bölümler (SSS, kuponlar) yüksekliği yumuşakça açılır; desteklemeyen tarayıcıda anında açılır */
:root { interpolate-size: allow-keywords; }
details::details-content { height: 0; overflow: clip; transition: height .24s var(--ease-out), content-visibility .24s allow-discrete; }
details[open]::details-content { height: auto; }

/* Form hatası sallanır; tema değişirken renk geçişleri kapalı */
.shake { animation: shake .32s var(--ease-out); }
@keyframes shake { 20% { translate: -6px 0; } 40% { translate: 5px 0; } 60% { translate: -3px 0; } 80% { translate: 2px 0; } }
.theme-switching *, .theme-switching *::before, .theme-switching *::after { transition: none !important; }

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

@media (max-width: 639.98px) {
  .menu-toolbar { flex-wrap: wrap; gap: 8px; }
  .menu-tabs { order: 2; flex-basis: 100%; }
  .menu-search { width: 100%; }

}

/* ---------- tablet ---------- */
@media (min-width: 640px) {
  .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .page { padding: 0 24px; }
  .topbar-inner { padding: 8px 24px; }
  .desk-only { display: inline-flex; }
  .mobile-only { display: none !important; }
  .split { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 24px; padding-top: 24px; }
  .split-side { position: sticky; top: calc(var(--top-h) + 16px); }

  .is-store .dock .cartbar { display: none; }
  .is-store.has-cartbar { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .track-split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; padding-top: 24px; }
  .track-split > :last-child { position: sticky; top: calc(var(--top-h) + 16px); }
  .cats { flex-wrap: wrap; overflow: visible; margin: 20px 0 0; padding: 4px 0; }
}

/* ---------- PC ---------- */
@media (min-width: 1100px) {
  .shell { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); grid-template-rows: auto 1fr; padding-bottom: 48px; }
  .shell.has-cartbar, .is-store.has-cartbar { padding-bottom: 48px; }
  .topbar { grid-column: 1 / -1; }
  .rail { display: block; position: sticky; top: var(--top-h); align-self: start; height: calc(100dvh - var(--top-h)); overflow-y: auto; padding: 16px 12px; border-right: 1px solid var(--line); }
  .dock { display: none; }
  .toast { bottom: 32px; }
  .store-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .menu-toolbar { margin: 18px 0 0; padding: 8px 0; }
}
@media (min-width: 1500px) {
  .store-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.account-out { align-self: start; text-align: center; }
/* Arama kısayolu ipucu: yalnızca fare/klavye olan geniş ekranlarda */
.kbd { display: none; position: absolute; right: 12px; top: 50%; translate: 0 -50%; pointer-events: none; background: var(--surface); padding: 2px 6px; border: 1px solid var(--line-2); border-radius: 6px; font: 600 .75rem var(--font); color: var(--muted); white-space: nowrap; }
@media (min-width: 900px) and (hover: hover) { .kbd { display: inline-block; } .search:focus-within .kbd { display: none; } .search input { padding-right: 72px; } }

.center { text-align: center; }

/* ---------- puanlar ---------- */
.rating { display: inline-flex; align-items: center; gap: 3px; color: var(--ink); }
.rating b { font-weight: 700; }
.stars { display: inline-flex; gap: 2px; color: var(--line-2); vertical-align: -3px; }
.stars .on, .rating > .ic { color: var(--star); }
.stars .on .ic, .rating > .ic, .star-pick .on .ic { fill: currentColor; }
.rate-box .rate-comment { margin: 8px 0 4px; }
.rate-reply { margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--line-2); background: var(--bg-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.rate-reply small { color: var(--muted); font-weight: 600; }
.rate-reply p { margin: 2px 0 0; }
.rv-open { display: inline-flex; align-items: center; gap: 3px; min-height: 44px; margin: -11px 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.rv-open > .ic { color: var(--muted); }
.rv-summary { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 12px 0 16px; }
.rv-score { display: grid; justify-items: center; gap: 4px; }
.rv-score b { font-size: 2.5rem; line-height: 1; }
.rv-dist { display: grid; gap: 4px; font-size: .8125rem; }
.rv-dist div { display: grid; grid-template-columns: 1em 1fr 2.2em; align-items: center; gap: 8px; }
.rv-dist i { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.rv-dist i b { display: block; height: 100%; border-radius: 99px; background: var(--star); }
.rv-list { list-style: none; margin: 0 0 12px; padding: 0; }
.rv-item { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); }
.rv-item p { margin: 0; overflow-wrap: anywhere; }
.rv-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.star-pick { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.star-pick button { display: grid; place-items: center; background: none; border: 0; padding: 4px; min-width: 44px; min-height: 44px; font-size: 2rem; line-height: 1; color: var(--line-2); cursor: pointer; transition: transform .12s ease, color .12s ease; }
.star-pick button.on { color: var(--star); }
.star-pick button:hover { transform: scale(1.1); }
.star-pick .small { margin-left: 8px; }
@media (prefers-reduced-motion: reduce) { .star-pick button { transition: none; } }

/* ---------- 60-30-10 alan payları ----------
   %60 nötr zemin · %30 lacivert yüzey (üst çubuk, kategori ve işletme kutuları) · %10 mercan (ana eylemler, sepete ekle) */
.topbar { background: var(--felt); border-bottom: 0; color: #fff; }
@media (max-width: 899.98px) { .topbar { border-radius: 0 0 var(--r-lg) var(--r-lg); } }
.topbar .logo { color: #fff; }
.topbar .logo span { color: var(--accent-on-dark); }
.topbar :focus-visible { outline-color: #fff; }
.topbar .where, .topbar .search input, .topbar .mode-switch { background: var(--felt-2); color: #fff; }
.topbar .where:hover { background: var(--felt-3); }
.topbar .where > .ic:first-child, .topbar .where.is-empty strong { color: #fff; }
.topbar .where-text small, .topbar .search .ic, .topbar .search input::placeholder { color: var(--felt-muted); }
.topbar .search input:focus { background: var(--surface); color: var(--ink); border-color: #fff; box-shadow: none; }
/* Ana sayfa kayınca arama kutusu beyaza döner */
.topbar .search input { transition: background-color .2s ease, color .2s ease; }
.is-compact .topbar:has(.mobile-bar) .search input { background: #fff; color: #14182b; }
.is-compact .topbar:has(.mobile-bar) .search input::placeholder, .is-compact .topbar:has(.mobile-bar) .search .ic { color: #5b6275; }
.is-compact .topbar:has(.mobile-bar) .search .kbd { border-color: #c9cedb; color: #5b6275; }
.is-compact .topbar:has(.mobile-bar) .search input:focus { box-shadow: 0 0 0 3px rgba(255, 255, 255, .45); }
.topbar .kbd { background: transparent; border-color: var(--felt-line); color: var(--felt-muted); }
.topbar .mode-switch button { color: var(--felt-muted); }
.topbar .mode-switch button.is-active { background: #fff; color: var(--felt); }
.topbar .account { background: transparent; border-color: var(--felt-line); color: #fff; }
.topbar .account:hover, .topbar .icon-btn:hover { background: var(--felt-2); }
/* mutfak renkleri */
.tile, .cat i { background: var(--navy-tint); }
.tile.t-burger, .cat i.t-burger, .cuisine i.t-burger { background: var(--t-burger); color: var(--t-burger-ink); }
.tile.t-wrap, .cat i.t-wrap, .cuisine i.t-wrap { background: var(--t-wrap); color: var(--t-wrap-ink); }
.tile.t-pizza, .cat i.t-pizza, .cuisine i.t-pizza { background: var(--t-pizza); color: var(--t-pizza-ink); }
.tile.t-bowl, .cat i.t-bowl, .cuisine i.t-bowl { background: var(--t-bowl); color: var(--t-bowl-ink); }
.tile.t-toast, .cat i.t-toast, .cuisine i.t-toast { background: var(--t-toast); color: var(--t-toast-ink); }
.tile.t-coffee, .cat i.t-coffee, .cuisine i.t-coffee { background: var(--t-coffee); color: var(--t-coffee-ink); }
.tile.t-cake, .cat i.t-cake, .cuisine i.t-cake { background: var(--t-cake); color: var(--t-cake-ink); }
/* tabak: çizimin arkasındaki açık daire */
.art { position: relative; display: block; width: 100%; height: 100%; }
.tile > .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .store-card:hover .photo, .dish:hover .photo, .menu-card:hover .photo { transform: scale(1.05); } }
.tile > .art { width: auto; height: 74%; aspect-ratio: 1; padding: 0; }
.tile:has(> .art)::before { content: ""; position: absolute; height: 92%; aspect-ratio: 1; border-radius: 999px; background: var(--plate); }
.cat i > .art { width: 46px; height: 46px; }
.cuisine i > .art { width: 34px; height: 34px; }
.tile-eta { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 700; font-size: .875rem; }
.add { background: var(--accent); color: #fff; }
.add:hover { background: var(--accent-press); }

/* ---------- doğrulama kodu ---------- */
.code-field { font-size: 1.5rem; letter-spacing: .3em; text-align: center; }

/* ---------- uygulama tam ekran: çentik payı ---------- */
:root { --top-h: calc(64px + env(safe-area-inset-top)); }
.topbar-inner { padding-top: calc(8px + env(safe-area-inset-top)); }
.sheet.layer-drawer .sheet-panel { padding-top: max(20px, env(safe-area-inset-top)); }
.offline { padding-top: calc(8px + env(safe-area-inset-top)); }

/* ---------- telefonda kayınca kısalan üst bölüm ----------
   İlk satır (logo, adres) sayfayla birlikte yukarı kayar, arama satırı yapışık kalır; yükseklik değişmediği için sıçrama olmaz. */
@media (max-width: 899.98px) {
  .topbar:has(.mobile-bar) { top: -56px; }
  .topbar:has(.mobile-bar) .topbar-inner { transition: opacity .15s; }
  .is-compact .topbar:has(.mobile-bar) .topbar-inner { opacity: 0; pointer-events: none; }
  .is-compact .mobile-bar { grid-template-columns: 1fr; }
  .is-compact .mobile-bar .mode-switch { display: none; }
}

/* ---------- iskelet ---------- */
.sk { display: block; border-radius: var(--r-sm); background: var(--bg-2); animation: sk 1.2s ease-in-out infinite alternate; }
@keyframes sk { to { opacity: .45; } }
.sk-store { display: grid; gap: 10px; }
.sk-tile { aspect-ratio: 2 / 1; border-radius: var(--r-lg); }
.sk-line { height: 16px; width: 70%; margin-top: 6px; }
.sk-line.short { width: 40%; }
.sk-thumb { width: 64px; height: 64px; }
.sk-block { height: 150px; margin-top: 12px; border-radius: var(--r-md); }
.sk-stack { padding-top: 12px; }

/* ---------- geri alınabilir bildirim ---------- */
.toast.has-action { display: flex; align-items: center; gap: 12px; padding: 4px 6px 4px 18px; width: max-content; }
.toast.has-action.show { pointer-events: auto; }
.toast button { flex: none; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--accent-on-dark); font-weight: 700; }
.toast button:hover { background: rgba(255, 255, 255, .12); }
.toast :focus-visible { outline-color: #fff; }

/* ---------- komut menüsü ---------- */
.cmd { width: min(560px, calc(100% - 24px)); max-height: min(520px, 80dvh); margin: 12dvh auto auto; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2); overflow: hidden; }
.cmd[open] { display: flex; flex-direction: column; }
.cmd::backdrop { background: rgba(12, 18, 38, .5); }
.cmd-search { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.cmd-search input { flex: 1; min-width: 0; height: 56px; border: 0; background: none; outline: none; font-size: 16px; color: var(--ink); }
.cmd-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 6px; }
.cmd-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; min-height: 48px; padding: 4px 12px; border-radius: var(--r-sm); cursor: pointer; scroll-margin: 6px; }
.cmd-row > .ic { color: var(--muted); }
.cmd-row span { display: grid; min-width: 0; }
.cmd-row b { font-weight: 600; }
.cmd-row small { color: var(--muted); font-size: .8125rem; }
.cmd-row[aria-selected="true"] { background: var(--blue-tint); }
.cmd-row[aria-selected="true"] > .ic { color: var(--link); }
.cmd-empty { padding: 24px; text-align: center; color: var(--muted); }
.cmd-foot { display: none; padding: 8px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; }
.cmd kbd { padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 6px; font: inherit; font-size: .75rem; color: var(--muted); }
.cmd kbd + kbd, .cmd-foot kbd:not(:first-child) { margin-left: 10px; }
.kbd-inline { position: static; translate: none; margin-left: auto; }
.rail .count + .kbd-inline { margin-left: 8px; }
.rail-cmd { margin-top: 2px; }
.side-tab .kbd-inline, .side-tab .count + .kbd-inline { margin-left: 8px; background: transparent; border-color: var(--felt-line); color: var(--felt-muted); }
.side-tab span:not(.count) + .kbd-inline { margin-left: auto; }
.search-mini:focus-within .kbd-inline { display: none; }
@media (hover: none), (max-width: 1099.98px) { .side-cmd, .side-tab .kbd-inline { display: none; } }
@media (hover: hover) and (min-width: 900px) { .cmd-foot { display: block; } }

/* ---------- ekran geçişi ---------- */
::view-transition { pointer-events: none; }
::view-transition-old(root) { animation: 90ms ease-out both vt-out; }
::view-transition-new(root) { animation: 180ms var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; translate: 0 6px; } }
.topbar { view-transition-name: topbar; }
.dock { view-transition-name: dock; }
.rail { view-transition-name: rail; }
::view-transition-group(*) { animation-duration: 180ms; }

/* ---------- dokunma alanı: görünen boy aynı, hedef en az 44px ---------- */
@media (pointer: coarse) {
  .chip, .menu-jump, .stepper button, .mode-switch button, button.link, .ticket-more, .btn-sm { position: relative; }
  .heart::after, .add::after, .icon-btn.round::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; }
  .icon-btn.round { position: relative; }
  .icon-btn.round.cover-back, .icon-btn.round.close-on-hero { position: absolute; }
  .chip::after, .menu-jump::after, .mode-switch button::after { content: ""; position: absolute; inset: -4px 0; }
  .mode-switch.small button::after, .ticket-more::after { content: ""; position: absolute; inset: -6px 0; }
  .stepper button::after { content: ""; position: absolute; inset: -6px; }
  .stepper-lg button::after { inset: -2px; }
  button.link::after { content: ""; position: absolute; inset: -10px 0; }
  .btn-sm:not([aria-busy="true"])::after { content: ""; position: absolute; inset: -4px 0; }
  a.logo { padding-block: 13px; margin-block: -13px; }
  .campaign .btn, .order-card > .btn { position: relative; }
  .campaign .btn::after, .order-card > .btn::after { content: ""; position: absolute; inset: -3px 0; }
  .menu-tabs { padding-block: 4px; }
}

/* ---------- yatay çentik payı ---------- */
@supports (padding: max(0px)) {
  .page { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .topbar-inner, .mobile-bar { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .tabbar { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  .sheet.layer-drawer .sheet-panel { padding-right: max(20px, env(safe-area-inset-right)); }
  @media (min-width: 900px) { .page, .topbar-inner { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); } }
  @media (min-width: 1500px) { .page { padding-left: 32px; padding-right: 32px; } }
}

/* ---------- sürekli köşe: destekleyen tarayıcıda; yoksa aynı border-radius ---------- */
@supports (corner-shape: squircle) {
  .tile, .cat i, .group, .campaign, .track-card, .resume, .menu-card-main, .order-card, .store-box, .choice, .cmd, .ticket, .sheet-panel { corner-shape: squircle; }
  .store-logo { corner-shape: round; }
}
