/* Tekkeköy Market — vitrin
   Dil: raf etiketi. Lacivert mürekkep, sis grisi zemin, etiket sarısı.
   Dar ve kalın tabela harfleri (Archivo), okunaklı gövde yazısı (Figtree). */

:root {
  --fog: #edf1f0;
  --paper: #ffffff;
  --ink: #10243a;
  --ink-2: #4a5d70;
  --line: #d2dbd9;
  --tag: #ffd43b;
  --tomato: #d63a2a;
  --tea: #1b7a4b;
  --tea-bg: #dff1e6;
  --display: Archivo, "Arial Narrow", Arial, sans-serif;
  --hdr-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 64px); }
body {
  margin: 0;
  background: var(--fog);
  color: var(--ink);
  font: 400 1rem/1.5 Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body { overflow-x: clip; }
body:has(dialog[open]) { overflow: hidden; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

.display, h1, h2, .logo-text, .px b, .facts dd, .done-code {
  font-family: var(--display);
  font-stretch: 72%;
  font-weight: 800;
  letter-spacing: -0.005em;
}

/* ───────── En üst WhatsApp destek şeridi + duyuru bandı ───────── */
.wa-bar { background: var(--tea); color: #fff; font-weight: 600; font-size: .9rem; }
.wa-bar-in { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 7px 20px; text-decoration: none; color: inherit; }
.wa-bar-in:hover { background: rgba(0, 0, 0, .08); }
.wa-bar-in:focus-visible { outline-color: var(--tag); outline-offset: -3px; }
.wa-bar svg { width: 18px; height: 18px; flex: none; fill: currentColor; }
.wa-cta { background: #fff; color: var(--tea); padding: 2px 10px; border-radius: 999px; font-weight: 800; font-size: .8125rem; white-space: nowrap; }

.banner { background: var(--tag); color: var(--ink); text-align: center; font-weight: 600; padding: 9px 20px; font-size: .9375rem; }
.banner.closed { background: var(--tomato); color: #fff; }

/* ───────── Başlık ───────── */
.hdr { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.hdr-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; gap: 12px; align-items: center; padding-block: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.logo-tag { width: 34px; height: 34px; flex: none; }
.logo-img { max-height: 48px; max-width: 250px; width: auto; height: auto; object-fit: contain; flex: none; }
.logo-text { font-size: 1.75rem; line-height: 1; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.search { position: relative; display: flex; align-items: stretch; max-width: 560px; height: 48px; border: 2px solid var(--ink); border-radius: 14px; background: #fff; overflow: hidden; box-shadow: 0 2px 0 rgba(16, 36, 58, .12); }
.search:focus-within { box-shadow: 0 0 0 4px rgba(255, 212, 59, .7); }
.search svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; pointer-events: none; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; border-radius: 0; padding: 0 10px 0 44px; font-weight: 600; }
.search input:focus { outline: none; }
.search input::placeholder { color: var(--ink-2); opacity: 1; font-weight: 500; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search-btn { flex: none; border: 0; border-left: 2px solid var(--ink); background: var(--tag); color: var(--ink); font-weight: 800; padding: 0 20px; }
.search-btn:hover { background: #ffc800; }
.search-btn:focus-visible { outline-offset: -4px; }

.deliv-chip { display: flex; align-items: center; gap: 10px; text-align: left; border: 2px solid var(--line); background: var(--fog); border-radius: 12px; padding: 5px 14px 5px 10px; min-height: 46px; line-height: 1.15; }
.deliv-chip svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--tea); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.deliv-chip small { display: block; font-size: .75rem; color: var(--ink-2); }
.deliv-chip b { display: block; font-weight: 700; white-space: nowrap; }

.track-btn { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 12px; font-weight: 700; white-space: nowrap; }
.track-btn:hover { background: var(--tag); }
.track-btn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.cart-btn { display: flex; align-items: center; gap: 10px; border: 0; background: var(--ink); color: #fff; border-radius: 12px; padding: 0 16px; min-height: 46px; font-weight: 700; }
.cart-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cart-btn:focus-visible, .cart-bar:focus-visible { outline-color: var(--tag); }
.cart-count { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--tag); color: var(--ink); font-size: .8125rem; display: grid; place-items: center; }
.cart-sum { font-variant-numeric: tabular-nums; }
.cart-btn.bump { animation: bump .32s ease-out; }
@keyframes bump { 40% { transform: scale(1.07); } }

/* ───────── Kahraman: teslimat etiketi ───────── */
.hero { padding: clamp(20px, 3vw, 36px) 0 clamp(22px, 3vw, 36px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.4rem); line-height: .94; font-weight: 850; letter-spacing: -0.012em; margin-bottom: 14px; text-wrap: balance; }
.lead { font-size: 1.125rem; line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.open-chip { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 14px; padding: 6px 14px 6px 11px; border-radius: 999px; background: #fdeceb; color: #9c2417; font-size: .9375rem; line-height: 1.25; }
.open-chip i { width: 10px; height: 10px; flex: none; border-radius: 50%; background: currentColor; }
.open-chip b { font-weight: 800; }
.open-chip span { font-weight: 600; }
.open-chip span::before { content: "·"; margin-right: 8px; }
.open-chip.on { background: var(--tea-bg); color: var(--tea); }
.open-chip.on i { box-shadow: 0 0 0 4px rgba(27, 122, 75, .18); }
.perks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; }
.perks li { display: flex; align-items: center; gap: 8px; }
.perks li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--tea) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }

.zone-wrap { filter: drop-shadow(0 18px 22px rgba(16, 36, 58, .2)); }
.zone-tag {
  position: relative;
  background: var(--tag);
  padding: 40px 24px 22px;
  clip-path: polygon(48px 0, 100% 0, 100% 100%, 0 100%, 0 48px);
  transform-origin: 26px 26px;
  transform: rotate(-1.6deg);
  animation: hang 1.1s cubic-bezier(.2, .7, .3, 1) both;
}
.zone-tag::before { content: ""; position: absolute; left: 20px; top: 20px; width: 14px; height: 14px; border-radius: 50%; background: var(--fog); box-shadow: inset 0 2px 3px rgba(16, 36, 58, .35); }
@keyframes hang { 0% { transform: rotate(-11deg); } 45% { transform: rotate(1.6deg); } 70% { transform: rotate(-2.4deg); } 100% { transform: rotate(-1.6deg); } }

.zt-kicker { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: .875rem; margin-bottom: 8px; }
.zt-kicker svg { width: 20px; height: 20px; flex: none; fill: var(--ink); }
.zt-kicker svg path { stroke: var(--tag); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.zt-title { font-size: clamp(1.7rem, 2.7vw, 2.2rem); line-height: .98; margin-bottom: 14px; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 14px; margin: 0; padding-top: 12px; border-top: 2px dashed rgba(16, 36, 58, .35); }
.facts dt { font-size: .8125rem; font-weight: 600; opacity: .75; }
.facts dd { margin: 0; font-size: 1.6rem; line-height: 1.05; white-space: nowrap; }
.zt-note { margin-top: 12px; font-size: .9375rem; font-weight: 700; }
.zt-sub { margin-top: 8px; font-size: .8125rem; font-weight: 600; opacity: .82; }

/* ───────── İndirimdekiler şeridi ───────── */
.deals { padding-bottom: 22px; }
.deals .sec-head { margin-bottom: 12px; }
.deals .sec-head h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
.deals-row { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-left: 2px; padding: 2px 2px 10px; margin: -2px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; -webkit-overflow-scrolling: touch; }
.deals-row .tile { flex: 0 0 168px; scroll-snap-align: start; }

/* ───────── Yönetici resim düzenleme ───────── */
.adm-bar { background: var(--ink); color: #fff; font-size: .875rem; }
.adm-bar-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 14px; padding: 6px 20px; }
.adm-bar svg { width: 16px; height: 16px; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.adm-bar a { color: var(--tag); font-weight: 700; }
.adm-cam { position: absolute; right: 8px; top: 8px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--ink); background: var(--tag); color: var(--ink); display: grid; place-items: center; padding: 0; box-shadow: 0 3px 8px rgba(16, 36, 58, .25); }
.adm-cam svg, .adm-tools svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.tile.out .adm-cam { filter: none; }
.adm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border: 2px dashed var(--line); border-radius: 12px; }
.adm-tools b { font-size: .8125rem; color: var(--ink-2); margin-right: 4px; }
.adm-tools .btn { min-height: 38px; padding: 0 14px; font-size: .875rem; }
.btn.alt.danger { color: var(--tomato); border-color: var(--tomato); }
.adm-busy { opacity: .55; pointer-events: none; }
.adm-toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 600; box-shadow: 0 8px 24px rgba(16, 36, 58, .3); max-width: calc(100vw - 32px); }
.adm-toast.bad { background: var(--tomato); }

/* ───────── Düğmeler ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 2px solid var(--ink); border-radius: 12px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.alt { background: transparent; color: var(--ink); }
.btn.block { width: 100%; }
.btn.tag { background: var(--tag); color: var(--ink); border-color: var(--tag); }
.btn:focus-visible { outline-offset: 3px; }
.btn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ───────── Ödeme adımı: etkileşimli harita, iğne ve çevredeki işletmeler ───────── */
.loc { display: grid; gap: 10px; margin-bottom: 18px; }
.loc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.loc-head b { font-size: .9375rem; }
.loc-head small { color: var(--ink-2); font-size: .8125rem; font-weight: 600; margin-left: 4px; }
.map-switch { display: inline-flex; background: var(--fog); border: 1.5px solid var(--line); border-radius: 999px; padding: 2px; gap: 2px; }
.map-switch button { border: 0; background: transparent; color: var(--ink-2); border-radius: 999px; padding: 3px 10px; font-size: .75rem; font-weight: 800; }
.map-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.loc-btn { min-height: 50px; font-size: 1rem; }
.map-box {
  height: 276px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: var(--fog);
  overflow: hidden;
  z-index: 0;
}
.map-box .leaflet-control-attribution { font-size: 10px; background: rgba(255, 255, 255, .82); }
.tm-pin { background: none; border: 0; }
.tm-pin svg { width: 38px; height: 46px; display: block; filter: drop-shadow(0 4px 6px rgba(16, 36, 58, .38)); transition: transform .15s ease; }
.leaflet-dragging .tm-pin svg { transform: translateY(-5px) scale(1.06); }
.tm-poi { background: none; border: 0; }
.tm-poi-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 2px 7px 2px 5px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(16, 36, 58, .22);
  transform: translate(-4px, -10px);
}
.tm-poi-dot i { width: 7px; height: 7px; border-radius: 50%; background: var(--tomato); flex: none; }
.tm-poi-dot b { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }

.loc-card { display: grid; gap: 4px; border-radius: 14px; padding: 11px 14px; background: var(--fog); font-size: .9375rem; font-weight: 600; }
.loc-card.ok { background: var(--tea-bg); }
.loc-card.bad { background: #fdeceb; color: #9c2417; }
.loc-card .addr { font-weight: 800; color: var(--ink); }
.loc-note { color: var(--ink-2); font-size: .8125rem; font-weight: 500; }
.loc-note.warn { color: #9c2417; font-weight: 700; }
.loc-special { color: var(--ink); font-size: .8125rem; font-weight: 700; }
.addr-note { color: var(--ink); font-size: .8125rem; font-weight: 700; }
.linkbtn { border: 0; background: none; padding: 0; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; justify-self: start; }

/* ───────── Kategoriler (oklarla, fareyle sürükleyerek ve parmakla kaydırma) ───────── */
.cats { position: sticky; top: var(--hdr-h); z-index: 20; background: var(--fog); border-bottom: 1px solid var(--line); }
.cats-bar { position: relative; max-width: 1240px; margin: 0 auto; display: flex; align-items: center; }
.cats-in {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 20px;
  width: 100%;
  scrollbar-width: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
}
.cats-in::-webkit-scrollbar { display: none; }
.cats-in.dragging { cursor: grabbing; scroll-behavior: auto; }
.cats-arr {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: 0 4px 12px rgba(16, 36, 58, .18);
}
.cats-arr.prev { left: 8px; }
.cats-arr.next { right: 8px; }
.cats-arr svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pill { flex: none; display: flex; align-items: center; gap: 8px; border: 2px solid transparent; background: var(--paper); border-radius: 999px; padding: 7px 16px 7px 12px; font-weight: 700; white-space: nowrap; }
.pill span { font-size: 1.2rem; line-height: 1; }
.pill[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ───────── Ürünler ───────── */
.shop { padding-block: 28px 88px; min-height: 60vh; }
.sec + .sec { margin-top: 44px; }
.sec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.sec-head h2 { font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1; }
.sec-head span { color: var(--ink-2); font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 22px 18px; }

.tile-img { position: relative; aspect-ratio: 1 / 0.96; border-radius: 20px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.tile-img .emo { font-size: clamp(3.4rem, 8vw, 4.6rem); line-height: 1; user-select: none; }
.tile-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; background: #fff; }
.price { position: absolute; left: 0; top: 10px; z-index: 2; display: flex; flex-direction: column; background: var(--tag); color: var(--ink); padding: 3px 14px 4px 18px; clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%); filter: drop-shadow(0 3px 6px rgba(16, 36, 58, .22)); }
.price.sale { background: #16803c; color: #fff; }
.price .old { font-size: .75rem; font-weight: 600; text-decoration: line-through; opacity: .9; line-height: 1.1; }
.px { display: inline-flex; align-items: flex-start; line-height: 1; white-space: nowrap; }
.px b { font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.px sup { font-family: var(--display); font-stretch: 72%; font-weight: 800; font-size: .95rem; margin: 2px 0 0 1px; }
.px i { font-style: normal; font-weight: 700; font-size: .8125rem; margin: 3px 0 0 3px; }
.ctl { position: absolute; right: 10px; bottom: 10px; z-index: 2; }
.add { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; color: var(--ink); font-size: 1.6rem; line-height: 1; display: grid; place-items: center; padding: 0 0 3px; box-shadow: 0 3px 8px rgba(16, 36, 58, .18); }
.step { display: flex; align-items: center; background: var(--ink); color: #fff; border-radius: 999px; height: 42px; box-shadow: 0 4px 12px rgba(16, 36, 58, .22); }
.step button { width: 38px; height: 42px; border: 0; background: transparent; color: inherit; font-size: 1.4rem; line-height: 1; padding: 0 0 2px; }
.step button:disabled { opacity: .4; cursor: not-allowed; }
.step button:focus-visible { outline-color: var(--tag); outline-offset: -3px; border-radius: 999px; }
.step output { min-width: 22px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.step.step-w button { width: 34px; }
.step.step-w output { min-width: 50px; padding: 0 4px; font-size: .875rem; color: var(--tag); }
.tile { min-width: 0; cursor: pointer; }
.tile:hover .tile-img { border-color: var(--ink-2); }
.tile-name { margin-top: 10px; font-family: Figtree, system-ui, sans-serif; font-stretch: 100%; font-size: 1rem; font-weight: 700; line-height: 1.25; letter-spacing: 0; }
.tile-link { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; width: 100%; border: 0; background: none; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; overflow-wrap: anywhere; }
.tile-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.opt-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.opt-btn { border: 1.5px solid var(--line); background: var(--paper); color: var(--ink-2); border-radius: 8px; padding: 4px 4px; font-size: .75rem; font-weight: 700; line-height: 1.15; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opt-btn:hover { border-color: var(--ink); color: var(--ink); }
.opt-btn.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.opt-btn.has-qty:not(.on) { border-color: var(--tea); color: var(--tea); background: var(--tea-bg); }
.opt-btn b { display: inline-block; background: var(--tag); color: var(--ink); border-radius: 999px; padding: 0 5px; font-size: .6875rem; margin-left: 2px; }
.tile-unit { color: var(--ink-2); font-size: .875rem; margin-top: 3px; overflow-wrap: anywhere; }
.tile-unit .low, .pd-unit .low { color: var(--tomato); font-weight: 700; margin-left: 6px; white-space: nowrap; }
.tile.out .tile-img { opacity: .55; filter: grayscale(.6); }
.tile .soldout { position: absolute; right: 10px; bottom: 12px; background: var(--ink); color: #fff; font-size: .8125rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.empty { text-align: center; padding: 56px 16px; color: var(--ink-2); }
.empty h2 { color: var(--ink); font-size: 2.2rem; margin-bottom: 8px; }
.empty.error h2 { color: var(--tomato); }

/* ───────── Alt bilgi ───────── */
.foot { background: var(--ink); color: #dbe4ec; padding: 44px 0 28px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.foot-name { font-family: var(--display); font-stretch: 72%; font-weight: 800; font-size: 1.9rem; color: #fff; margin-bottom: 8px; }
.foot-h { font-weight: 700; color: #fff; margin-bottom: 8px; }
.foot-line { margin-bottom: 6px; }
.foot a { text-underline-offset: 3px; }
.foot a:focus-visible { outline-color: var(--tag); }
.foot-copy { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .875rem; color: #9fb0c1; }

.cart-bar { display: none; position: fixed; z-index: 25; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); min-height: 56px; border: 0; border-radius: 16px; background: var(--ink); color: #fff; font-weight: 700; padding: 0 18px; justify-content: space-between; align-items: center; box-shadow: 0 10px 28px rgba(16, 36, 58, .35); }

/* ───────── Pencere ve çekmece ───────── */
dialog { padding: 0; border: 0; color: inherit; background: var(--paper); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(16, 36, 58, .55); }
.drawer { margin: 0 0 0 auto; width: min(484px, 100vw); height: 100dvh; }
.drawer[open] { animation: slide .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes slide { from { transform: translateX(40px); opacity: .4; } }
.drawer-in { display: flex; flex-direction: column; height: 100%; }
.d-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px 14px; border-bottom: 1px solid var(--line); }
.d-head h2 { font-size: 2.2rem; line-height: 1; }
.x { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--fog); font-size: 1.6rem; line-height: 1; padding: 0 0 3px; }
.d-body { flex: 1; overflow-y: auto; padding: 16px 22px; }
.d-foot { padding: 16px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }

.modal { margin: auto; width: min(580px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border-radius: 22px; overflow: auto; }
.modal[open] { animation: pop .22s ease-out; }
@keyframes pop { from { transform: translateY(14px); opacity: 0; } }
.modal-in { position: relative; padding: 28px; }
.modal-in > .x { position: absolute; right: 14px; top: 14px; z-index: 2; background: rgba(255, 255, 255, .8); }
.m-title { font-size: 2.4rem; line-height: 1; margin-bottom: 14px; }

.m-title { padding-right: 44px; }

/* ───────── Ürün detayı ───────── */
.prod { width: min(820px, calc(100vw - 24px)); }
.prod .modal-in > .x { background: var(--fog); }
.prod .modal-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 0; }
.pd-media { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; aspect-ratio: 1; background: #fff; border-right: 1px solid var(--line); overflow: hidden; }
.pd-media img { width: 100%; height: 100%; object-fit: contain; padding: 22px; }
.pd-media .emo { font-size: clamp(5rem, 16vw, 8rem); line-height: 1; user-select: none; }
.pd-media.out { filter: grayscale(.6); opacity: .6; }
.pd-info { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 30px 26px 26px; }
.pd-cat { color: var(--ink-2); font-size: .875rem; font-weight: 700; padding-right: 44px; }
.pd-name { font-family: Figtree, system-ui, sans-serif; font-stretch: 100%; font-size: 1.5rem; font-weight: 800; line-height: 1.2; letter-spacing: 0; overflow-wrap: anywhere; }
.pd-price { display: flex; align-items: baseline; gap: 12px; margin-top: 4px; }
.pd-price .px b { font-size: 2.6rem; }
.pd-price .px sup { font-size: 1.3rem; margin-top: 4px; }
.pd-price .px i { font-size: 1.05rem; margin-top: 6px; }
.pd-price.sale .px { color: #16803c; }
.pd-price .old { color: var(--ink-2); font-weight: 600; text-decoration: line-through; }
.pd-unit { color: var(--ink-2); font-size: .9375rem; }
.pd-label { display: block; font-size: .8125rem; font-weight: 700; margin-bottom: 4px; }
.pd-opts .opt-bar { margin-top: 0; }
.pd-opts .opt-btn { padding: 9px 6px; font-size: .875rem; }
.pd-desc { color: var(--ink-2); line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.pd-buy { margin-top: auto; padding-top: 14px; }
.pd-add { min-height: 54px; font-size: 1.0625rem; }
.pd-incart { color: var(--tea); font-weight: 600; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.pd-row { display: flex; gap: 10px; align-items: center; }
.pd-row .step { height: 54px; flex: none; }
.pd-row .step button { height: 54px; width: 46px; }
.pd-row .step output { min-width: 30px; font-size: 1.0625rem; }
.pd-row .step.step-w output { min-width: 62px; font-size: 1rem; }
.pd-go { flex: 1; min-width: 0; min-height: 54px; padding-inline: 12px; }

.line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; }
.line + .line { border-top: 1px solid var(--line); }
.line-img { width: 56px; height: 56px; border-radius: 14px; background: var(--tint, #e3e9e7); display: grid; place-items: center; font-size: 1.9rem; overflow: hidden; }
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.line-name { font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.line-sub { color: var(--ink-2); font-size: .875rem; font-variant-numeric: tabular-nums; }
.line .step { height: 38px; background: var(--fog); color: var(--ink); }
.line .step button { height: 38px; width: 34px; }
.line .step button:focus-visible { outline-color: var(--ink); }
.line .step.step-w output { color: var(--ink); }

.meter { background: var(--fog); border-radius: 14px; padding: 12px 14px; margin: 6px 0 14px; font-size: .9375rem; font-weight: 600; }
.meter.done { background: var(--tea-bg); color: var(--tea); }
.meter-bar { height: 8px; border-radius: 4px; background: #fff; margin-top: 8px; overflow: hidden; }
.meter-bar i { display: block; height: 100%; width: var(--p, 0%); background: var(--tea); border-radius: 4px; transition: width .3s ease; }
.warn { background: #fdeceb; color: #9c2417; border-radius: 12px; padding: 10px 14px; font-weight: 600; font-size: .9375rem; margin-bottom: 12px; }
.sum { display: grid; gap: 6px; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.sum div { display: flex; justify-content: space-between; gap: 10px; }
.sum .tot { font-weight: 800; font-size: 1.25rem; padding-top: 8px; border-top: 1px solid var(--line); }
.back { background: none; border: 0; padding: 0; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; margin-bottom: 14px; }

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 700; font-size: .9375rem; }
.field small { color: var(--ink-2); font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; border: 2px solid var(--line); border-radius: 12px; padding: 10px 14px; background: #fff; }
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.pay { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 0; padding: 0; margin: 0; }
.pay legend { font-weight: 700; font-size: .9375rem; margin-bottom: 6px; padding: 0; }
.pay label { position: relative; display: block; }
.pay input { position: absolute; opacity: 0; inset: 0; }
.pay span { display: block; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; font-weight: 700; text-align: center; }
.pay input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.pay input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.err { color: #9c2417; font-weight: 600; font-size: .9375rem; }

.done { text-align: center; padding: 10px 0 4px; }
.done h2 { font-size: 2.6rem; line-height: .95; margin-bottom: 10px; }
.done-code { display: inline-block; background: var(--tag); font-size: 2.6rem; padding: 6px 22px 8px; margin: 14px 0; clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); }
.done p { color: var(--ink-2); }
.done .btn { margin-top: 10px; }

.steps { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 0; }
.steps li { position: relative; padding: 0 0 18px 36px; font-weight: 600; color: var(--ink-2); }
.steps li::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: #fff; }
.steps li::after { content: ""; position: absolute; left: 10px; top: 25px; bottom: 1px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps li.on { color: var(--ink); }
.steps li.on::before { background: var(--ink); border-color: var(--ink); }
.steps li.now { font-weight: 800; }
.steps li.now::before { background: var(--tag); border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 212, 59, .35); }
.cancelled-note { background: #fdeceb; color: #9c2417; padding: 12px 14px; border-radius: 12px; font-weight: 700; margin: 14px 0; }
.t-items { margin: 0; padding: 0; list-style: none; font-size: .9375rem; color: var(--ink-2); }
.t-items li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }

/* ───────── Küçük ekranlar ───────── */
@media (max-width: 960px) {
  .hdr-in { grid-template-columns: minmax(0, 1fr) auto auto auto; }
  .search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .zone-wrap { max-width: 560px; }
}
@media (max-width: 720px) {
  h1 { font-size: clamp(2rem, 9.4vw, 2.9rem); margin-bottom: 10px; }
  .lead { font-size: 1rem; }
  .hero { padding: 18px 0 20px; }
  .open-chip { font-size: .875rem; margin-bottom: 10px; }
  .zone-tag { padding: 34px 18px 16px; }
  .zt-title { font-size: 1.6rem; margin-bottom: 10px; }
  .deals { padding-bottom: 16px; }
  .deals-row { gap: 12px; margin-inline: -14px; padding-inline: 14px; scroll-padding-left: 14px; scrollbar-width: none; }
  .deals-row::-webkit-scrollbar { display: none; }
  .deals-row .tile { flex-basis: 142px; }
  .hdr-in { grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; padding-block: 10px; }
  .search { height: 46px; }
  .search-btn { padding: 0 16px; }
  .wa-bar { font-size: .8125rem; }
  .wa-bar-in { padding: 6px 14px; gap: 8px; }
  .wa-long { display: none; }
  .banner { padding: 8px 14px; font-size: .875rem; }
  .cats-in { padding-block: 8px; }
  .pill { padding: 6px 14px 6px 10px; font-size: .9375rem; }
  .sec + .sec { margin-top: 32px; }
  .sec-head { margin-bottom: 12px; }
  .tile-img { border-radius: 16px; }
  .tile-name { font-size: .9375rem; }
  .tile-unit { font-size: .8125rem; }
  .ctl { right: 8px; bottom: 8px; }
  .tile .soldout { right: 8px; bottom: 10px; }
  .d-head { padding: 14px 16px 12px; }
  .d-head h2 { font-size: 1.9rem; }
  .d-body { padding: 14px 16px; }
  .d-foot { padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); }
  .m-title { font-size: 2rem; }
  .foot { padding: 32px 0 calc(96px + env(safe-area-inset-bottom)); }
  /* Ürün detayı telefonda alttan açılan sayfa olur */
  .prod { margin: auto 0 0; width: 100vw; max-width: 100vw; max-height: 92dvh; border-radius: 22px 22px 0 0; }
  .prod[open] { animation: sheet .26s cubic-bezier(.2, .8, .2, 1); }
  .prod .modal-in { grid-template-columns: minmax(0, 1fr); }
  .pd-media { aspect-ratio: auto; height: min(42dvh, 86vw); border-right: 0; border-bottom: 1px solid var(--line); }
  .pd-info { padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); gap: 8px; }
  .pd-cat { padding-right: 0; }
  .pd-name { font-size: 1.3125rem; }
  .pd-price .px b { font-size: 2.2rem; }
  .pd-buy { position: sticky; bottom: 0; margin-inline: -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); margin-bottom: calc(-16px - env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); }
  .hero-grid { gap: 22px; }
  .cart-btn { display: none; }
  .cart-bar:not([hidden]) { display: flex; }
  .logo-text { font-size: 1.5rem; }
  .logo-img { max-height: 40px; max-width: 170px; }
  .deliv-chip small { display: none; }
  .cats-arr { display: none !important; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .price { top: 8px; padding-left: 16px; }
  .px b { font-size: 1.45rem; }
  .tile-img .emo { font-size: 3.4rem; }
  .facts dd { font-size: 1.35rem; }
  .shop { padding-bottom: 120px; }
  .modal-in { padding: 22px 18px; }
}
@keyframes sheet { from { transform: translateY(60px); opacity: .4; } }
@media (max-width: 600px) {
  .hdr-in { grid-template-columns: minmax(0, 1fr) auto; }
  .deliv-chip { display: none; }
  .logo-img { max-width: 100%; }
}
@media (max-width: 420px) {
  .wrap { padding-inline: 14px; }
  .track-btn { padding: 0 11px; gap: 6px; font-size: .9375rem; }
  .grid { gap: 16px 10px; }
  .loc-head small { display: block; margin-left: 0; }
  .map-box { height: 240px; }
  .cats-in { padding-inline: 14px; }
  .facts { gap: 8px; }
  .facts dt { font-size: .75rem; }
  .facts dd { font-size: 1.2rem; }
}
@media (max-width: 350px) {
  .tb-more { display: none; }
  .px b { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
