/* =========================================================
   KOMŞU ESNAF — MOBİL ÖNCELİKLİ STİL
   ========================================================= */
:root {
  --bg: #F6F4EF;
  --surface: #FFFFFF;
  --surface-2: #FAF8F4;
  --ink: #141A16;
  --ink-2: #4A544D;
  --ink-3: #79837C;
  --line: #E8E4DB;
  --line-soft: #F1EEE7;
  --brand: #0B7A5A;
  --brand-ink: #065A42;
  --brand-soft: #E2F2EA;
  --amber: #E89B00;
  --amber-soft: #FDF1D4;
  --amber-ink: #8A5A00;
  --red: #CF3F2C;
  --red-soft: #FBE5E1;
  --red-ink: #A32A1A;
  --blue: #2560A6;
  --blue-soft: #E2ECF8;
  --blue-ink: #1B4C85;
  --wa: #1FAF55;
  /* Ters yüzey: sepet çubuğu, seçili çip, toast gibi zeminle zıt duran öğeler.
     Koyu temada bunlar açık zemin + koyu yazıya döner. */
  --ters: #141A16;
  --ters-ink: #FFFFFF;
  --radius: 16px;
  --radius-sm: 10px;
  /* Tek bir yükseklik basamağı: yüzeyler çizgiyle ayrılır, gölge yalnızca
     gerçekten yüzen öğelere (alt menü, sepet çubuğu, sayfa penceresi) kalır.
     Önceden her kartın gölgesi vardı ve tek ekranda 37 gölge birikiyordu. */
  --shadow: 0 1px 2px rgba(20,26,22,.04), 0 2px 8px rgba(20,26,22,.04);
  --shadow-yuzen: 0 6px 24px rgba(20,26,22,.12);
  --tab-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Koyu tema ----------
   Marka rengi yönetim panelinden geldiği için --brand / --brand-soft
   düzen dosyasındaki satır içi <style> bloğunda ayrıca tanımlanıyor;
   burada yalnızca yüzey ve metin tonları değişir. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12150F;
    --surface: #1B1F1B;
    --surface-2: #232823;
    --ink: #ECEFEA;
    --ink-2: #A9B2AA;
    --ink-3: #7E877F;
    --line: #2D332E;
    --line-soft: #242A25;
    --amber-soft: #3A2E12;
    --amber-ink: #F0C048;
    --red-soft: #3B1F1A;
    --red-ink: #F08E7C;
    --blue-soft: #18283C;
    --blue-ink: #8FBCF0;
    --ters: #ECEFEA;
    --ters-ink: #12150F;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 2px 8px rgba(0,0,0,.25);
    --shadow-yuzen: 0 6px 24px rgba(0,0,0,.45);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
/* Ölçüsü verilmemiş bir ikon, esnek kapta 300x150 varsayılanına düşüp
   devleşiyordu. Bu taban ölçüyü aşağıdaki her kural ezer. */
svg { width: 20px; height: 20px; flex: none; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

/* ---------- Uygulama iskeleti ---------- */
.app {
  max-width: 760px;
  margin: 0 auto;
  min-height: 100dvh;
  padding-bottom: calc(var(--tab-h) + var(--safe-b) + 16px);
}
.screen { padding: 0 16px; animation: fade .18s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- Üst bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  margin: 0 -16px; padding: 12px 16px;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.topbar.bordered { border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 18px; font-weight: 700; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--surface);
  border: 1px solid var(--line);
}
.icon-btn svg { width: 22px; height: 22px; }
.brand { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.brand .mark { width: 36px; height: 36px; flex: none; border-radius: 11px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 19px; }
.brand b { font-size: 17px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.satir-sar { margin-top: 2px; }
.addr-chip { flex: 1; min-width: 0; text-align: left; display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.addr-chip.satir { width: 100%; padding: 8px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.addr-chip .pin { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.addr-chip .pin svg { width: 20px; height: 20px; }
.addr-chip small { display: block; font-size: 12px; color: var(--ink-3); }
.addr-chip b { display: flex; align-items: center; gap: 4px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.addr-chip b svg { width: 16px; height: 16px; flex: none; }
.addr-chip.bos .pin { background: var(--red-soft); color: var(--red); animation: nabiz 2s ease-in-out infinite; }
.addr-chip.bos b { color: var(--red); }
@keyframes nabiz { 50% { box-shadow: 0 0 0 6px rgba(207,63,44,.12); } }

/* ---- Bölge (il/ilçe) ---- */
.satir-sar { display: flex; align-items: stretch; gap: 8px; }
.bolge-chip { flex: none; display: flex; align-items: center; gap: 6px; padding: 8px 12px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: inherit; text-align: left; }
.bolge-chip small { display: block; font-size: 11px; color: var(--ink-3); line-height: 1.2; }
.bolge-chip b { display: block; font-size: 14px; white-space: nowrap; }
.bolge-chip svg { width: 16px; height: 16px; flex: none; color: var(--ink-3); }

/* İlçe seçim ekranı — il + ilçe açılır listeleri */
.bolge-ekran { max-width: 460px; margin: 0 auto; }
.bolge-form { margin-top: 20px; display: grid; gap: 14px; }
.bolge-alan { display: block; }
.bolge-alan > span { display: block; font-size: 13px; font-weight: 600;
  color: var(--ink-2); margin-bottom: 7px; }
.bolge-form .btn { margin-top: 4px; }
.adres-cagri { width: 100%; text-align: left; border: 1.5px dashed color-mix(in srgb, var(--red) 34%, var(--bg)); background: var(--red-soft); }
.adres-cagri .ico { background: var(--red-soft); }
.adres-cagri + .list { margin-top: 12px; }

/* ---------- Genel parçalar ---------- */
.section { margin-top: 24px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.section-head a, .link { color: var(--brand); font-weight: 600; font-size: 14px; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.pad { padding: 16px; }
.stack > * + * { margin-top: 10px; }

/* ---------- Kategori ikonları (SVG) ----------
   Emoji yerine çizgi ikon kullanılıyor: her cihazda aynı görünüyor ve
   marka rengini alabiliyor. Boyut kabın font-size'ından bağımsız olsun diye
   em değil px; hizalama için currentColor. */
.kat-ikon { width: 1.4em; height: 1.4em; }
svg.kat-ikon, .avatar > svg, .cat > svg, .cat-pill > span > svg { display: block; }
.kat-ikon.mini {
  width: 17px; height: 17px;
  vertical-align: -3px; margin-right: 5px;
  color: var(--ink-3); flex: none;
}
/* Taşınmamış (hâlâ emoji) kategori satırları bozulmasın */
.kat-emoji { font-style: normal; line-height: 1; }

/* Emojiden SVG'ye dönen küçük işaretler: kabın yüksekliğini aşmasınlar */
.badge svg { width: 13px; height: 13px; }
.vitrin-basi svg, .group-title svg { width: 16px; height: 16px; }
.promo .end svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; }
.brand .mark svg { width: 20px; height: 20px; }
.empty svg.big { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--ink-3); }
/* Boş durum / sonuç sayfalarındaki büyük tek simge */
.buyuk-simge, .simge {
  width: 64px; height: 64px; margin: 0 auto 4px; border-radius: 20px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-ink);
}
.buyuk-simge svg, .simge svg { width: 30px; height: 30px; }
.duyuru-ico svg { width: 20px; height: 20px; }
.row-card .ico svg, .nobet .ico svg, .info-tile .e svg { width: 22px; height: 22px; }
.mode .e svg { width: 22px; height: 22px; }
.kat-ikon-onizleme { width: 22px; height: 22px; vertical-align: middle; margin-right: 6px; color: var(--brand); }

.search {
  display: flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 16px; margin-top: 4px;
  background: var(--surface); border-radius: 14px; border: 1px solid var(--line);
  color: var(--ink-3);
}
.search svg { width: 20px; height: 20px; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; color: var(--ink); }

.hscroll {
  display: flex; gap: 12px; overflow-x: auto;
  margin: 0 -16px; padding: 2px 16px 8px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex: none; }

.badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.open { background: var(--brand-soft); color: var(--brand-ink); }
.badge.closed { background: var(--line-soft); color: var(--ink-3); }
.badge.near { background: var(--amber-soft); color: #8A5A00; }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.blue { background: var(--blue-soft); color: var(--blue); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 38px; padding: 0 14px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
.chip.on { background: var(--ters); border-color: var(--ters); color: var(--ters-ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 20px; border-radius: 14px;
  font-weight: 700; font-size: 16px;
  background: var(--brand); color: #fff;
}
.btn svg { width: 20px; height: 20px; }
.btn.block { width: 100%; }
.btn.wa { background: var(--wa); }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn.soft { background: var(--brand-soft); color: var(--brand-ink); }
.btn.red { background: var(--red); }
.btn:active, .chip:active, .icon-btn:active, .tap:active { transform: scale(.98); }

/* ---------- Karşılama / konum ---------- */
.welcome { min-height: 100dvh; display: flex; flex-direction: column; padding: 24px 16px 32px; max-width: 520px; margin: 0 auto; }
.welcome .logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.welcome .logo span { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 22px; }
.welcome h2 { font-size: 30px; line-height: 1.15; letter-spacing: -.02em; margin-top: 36px; }
.welcome h2 em { font-style: normal; color: var(--brand); }
.welcome p.lead { color: var(--ink-2); margin-top: 10px; font-size: 16px; }
.field { margin-top: 18px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field label i { font-style: normal; font-weight: 500; color: var(--ink-3); }
.input, .select, .textarea {
  width: 100%; min-height: 54px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--surface); font-size: 16px; outline: 0;
}
.select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%237A847D' stroke-width='2'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 42px; }
.textarea { padding: 14px; min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); }
.select:disabled, .input:disabled { opacity: .55; background-color: var(--line-soft); }
.welcome .grow { flex: 1; min-height: 24px; }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); font-size: 14px; margin-top: 18px; }

/* ---------- 3 ana kutu ----------
   Eskiden üçü de doygun gradyan zeminliydi; yan yana konunca sayfadaki her
   şeyden yüksek sesle bağırıyor, altındaki kampanya ve esnaf listesini
   eziyorlardı. Artık zemin sakin, rengi yalnız ikon karesi taşıyor. */
.big-boxes { display: grid; gap: 10px; margin-top: 16px; }
.big-box {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; border-radius: var(--radius); text-align: left;
  min-height: 78px; position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
}
.big-box .ico {
  width: 46px; height: 46px; flex: none; border-radius: 13px;
  display: grid; place-items: center;
}
.big-box .ico svg { width: 23px; height: 23px; }
.big-box b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.big-box small { display: block; font-size: 13.5px; color: var(--ink-3); margin-top: 1px; }
.big-box .arr { margin-left: auto; width: 20px; height: 20px; flex: none; color: var(--ink-3); }
.big-box.g .ico { background: var(--brand-soft); color: var(--brand-ink); }
.big-box.b .ico { background: var(--blue-soft);  color: var(--blue-ink); }
.big-box.o .ico { background: var(--amber-soft); color: var(--amber-ink); }

/* ---------- Nöbetçi eczane kartı ---------- */
.nobet { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-left: 5px solid var(--red); }
.nobet .ico { width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--red-soft); display: grid; place-items: center; font-size: 26px; }
.nobet b { display: block; }
.nobet .meta { flex: 1; min-width: 0; }

/* ---------- Esnaf konum haritası ---------- */
.harita-kutu {
  margin-top: 14px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-2);
  aspect-ratio: 16 / 10;
}
.harita-kutu iframe { width: 100%; height: 100%; border: 0; display: block; }
.harita-not { display: flex; align-items: flex-start; gap: 6px; margin-top: 8px; }
.harita-not svg { width: 15px; height: 15px; margin-top: 2px; }
@media (min-width: 640px) { .harita-kutu { aspect-ratio: 16 / 7; } }

/* ---------- Nöbetçi eczane kartı ---------- */
.nobet-kart { text-align: center; }
.nobet-ad { font-size: 21px; line-height: 1.25; letter-spacing: -.01em; margin-top: 10px; }
.nobet-adres { margin-top: 6px; }
.nobet-tarif {
  margin-top: 6px; display: inline-flex; align-items: flex-start;
  gap: 5px; text-align: left;
}
.nobet-tarif svg { width: 15px; height: 15px; margin-top: 2px; }
.nobet-dugmeler { display: flex; gap: 10px; margin-top: 16px; }
/* Numara dar düğmede iki satıra kırılıyordu; yazıyı küçültüp kırılmayı kapat */
.nobet-dugmeler .btn { font-size: 15px; white-space: nowrap; padding: 0 12px; }
@media (max-width: 380px) { .nobet-dugmeler .btn { font-size: 14px; padding: 0 10px; } }
.nobet-sayfa { display: inline-block; margin-top: 12px; }

/* ---------- Kampanya kartı ---------- */
.promo { width: 250px; padding: 16px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 6px; min-height: 150px; }
.promo.kirmizi { background: var(--red-soft); }
.promo.sari { background: var(--amber-soft); }
.promo.yesil { background: var(--brand-soft); }
.promo.mavi { background: var(--blue-soft); }
.promo .who { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.promo h3 { font-size: 18px; line-height: 1.25; }
.promo p { font-size: 14px; color: var(--ink-2); }
.promo .end { margin-top: auto; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.promo.full { width: auto; }

/* ---------- Kategori ızgarası ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cat {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 600; text-align: center; line-height: 1.2;
}
.cat span { font-size: 28px; line-height: 1; color: var(--brand); }
.cat span svg { width: 27px; height: 27px; }
.cat-pill { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 76px; font-size: 12px; font-weight: 600; text-align: center; line-height: 1.2; }
.cat-pill span {
  width: 60px; height: 60px; border-radius: 18px;
  background: var(--brand-soft); border: 1px solid transparent; color: var(--brand-ink);
  display: grid; place-items: center; font-size: 28px;
}
.cat-pill span svg { width: 26px; height: 26px; }

/* ---------- Esnaf kartı ---------- */
.list { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.list > * { min-width: 0; }
.esnaf {
  display: flex; gap: 12px; align-items: center;
  padding: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.avatar { width: 56px; height: 56px; flex: none; border-radius: 15px; display: grid; place-items: center; font-size: 28px; background: var(--brand-soft); color: var(--brand-ink); }
.avatar svg { width: 26px; height: 26px; }
.esnaf .body { flex: 1; min-width: 0; }
.esnaf .name { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.esnaf .sub { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.esnaf .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rating { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 700; }
.rating svg { width: 14px; height: 14px; color: var(--amber); }
.fav-btn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; color: var(--ink-3); border-radius: 50%; }
.fav-btn svg { width: 22px; height: 22px; }
.fav-btn.on { color: var(--red); }
.group-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink-2); margin: 22px 0 10px; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.empty { text-align: center; padding: 32px 16px; color: var(--ink-3); }
.empty .big { font-size: 44px; display: block; margin-bottom: 8px; }

/* ---------- Esnaf detay ---------- */
.cover {
  margin: 0 -16px; padding: 16px 16px 22px;
  background: linear-gradient(160deg, var(--brand-soft), var(--bg));
}
.cover .top { display: flex; justify-content: space-between; }
.cover .hero { display: flex; gap: 14px; align-items: center; margin-top: 14px; }
.cover .avatar { width: 76px; height: 76px; font-size: 38px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.cover .avatar svg { width: 34px; height: 34px; }
.cover h1 { font-size: 23px; line-height: 1.2; letter-spacing: -.01em; }
.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.action { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; }
.action svg { width: 22px; height: 22px; }
.action.wa { color: var(--wa); }
.action.on { color: var(--red); }
.info-list { display: grid; }
.info-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.info-row:last-child { border-bottom: 0; }
.info-row svg { width: 20px; height: 20px; flex: none; color: var(--ink-3); margin-top: 1px; }
.tabs { display: flex; gap: 4px; margin: 20px 0 12px; padding: 4px; background: var(--line-soft); border-radius: 12px; position: sticky; top: 8px; z-index: 10; outline: 8px solid var(--bg); }
.tab { flex: 1; height: 40px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.tab.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.prod { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.prod:last-child { border-bottom: 0; }
.prod .body { flex: 1; min-width: 0; }
.prod b { display: block; font-weight: 600; }
.prod .price { font-weight: 700; color: var(--brand-ink); font-size: 15px; }
.grp { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin-top: 14px; }
.stepper { display: flex; align-items: center; gap: 2px; background: var(--brand-soft); border-radius: 99px; padding: 3px; }
.stepper button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--brand-ink); font-size: 20px; font-weight: 700; }
.stepper button.add { background: var(--brand); color: #fff; }
.stepper span { min-width: 22px; text-align: center; font-weight: 700; }
.btn.mini { min-height: 40px; padding: 0 14px; font-size: 14px; }
.check { color: var(--brand); font-weight: 800; font-size: 18px; }
.add-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 22px; font-weight: 700; display: grid; place-items: center; }
.review { padding: 14px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review .h { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.stars { color: var(--amber); letter-spacing: 1px; }
.star-pick { display: flex; gap: 6px; font-size: 36px; color: var(--line); }
.star-pick button.on { color: var(--amber); }

/* ---------- Sepet çubuğu ---------- */
.cart-bar {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 30;
  bottom: calc(var(--tab-h) + var(--safe-b) + 10px);
  width: calc(100% - 32px); max-width: 728px;
  display: flex; align-items: center; gap: 12px;
  min-height: 58px; padding: 8px 10px 8px 18px; border-radius: 16px;
  background: var(--ters); color: var(--ters-ink); box-shadow: var(--shadow-yuzen);
}
.cart-bar .t { flex: 1; font-size: 14px; }
.cart-bar .t b { display: block; font-size: 16px; }
.has-cart .app { padding-bottom: calc(var(--tab-h) + var(--safe-b) + 90px); }
.cart-bar .go { background: var(--brand); padding: 0 16px; min-height: 42px; border-radius: 11px; font-weight: 700; display: flex; align-items: center; }

/* ---------- Alt sekme menüsü ----------
   Beş sekme ekrana sığar; kaydırma ve kenardaki solma efekti kalktı.
   Kaydırmalı menüde son beş sekme hiç görünmüyordu. */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: var(--safe-b);
}
.tabbar-inner {
  max-width: 760px; margin: 0 auto; height: var(--tab-h);
  display: flex; padding: 0 4px;
}
.ti {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--ink-3); font-size: 11px; font-weight: 600; position: relative;
  padding-top: 2px;
}
.ti span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ti svg { width: 23px; height: 23px; }
.ti.on { color: var(--brand); }
.ti.on::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand);
}
.ti .cnt {
  position: absolute; top: 5px; left: 50%; margin-left: 4px;
  min-width: 17px; height: 17px; padding: 0 5px; border-radius: 99px;
  background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700;
  display: grid; place-items: center;
}

/* ---------- "Daha fazla" satır listesi ---------- */
.menu-list {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.menu-row {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 14px; border-bottom: 1px solid var(--line-soft);
}
.menu-row:last-child { border-bottom: 0; }
.mr-ico {
  width: 38px; height: 38px; flex: none; border-radius: 11px;
  background: var(--brand-soft); color: var(--brand-ink);
  display: grid; place-items: center;
}
.mr-ico svg { width: 20px; height: 20px; }
.mr-body { flex: 1; min-width: 0; }
.mr-body b { display: block; font-size: 15px; font-weight: 600; }
.mr-body small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.mr-sayi {
  flex: none; font-style: normal; min-width: 22px; height: 22px; padding: 0 7px;
  border-radius: 99px; background: var(--red); color: #fff;
  font-size: 12px; font-weight: 700; display: grid; place-items: center;
}
.mr-ok { width: 18px; height: 18px; flex: none; color: var(--ink-3); }

/* ---------- Anasayfa başlığı ve esnaf çağrısı ---------- */
.hos-geldin {
  font-size: 23px; line-height: 1.2; letter-spacing: -.025em;
  font-weight: 700; margin: 14px 0 12px;
}
.cagri {
  display: flex; gap: 13px; align-items: center;
  padding: 14px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--line);
}
.cagri-ico {
  width: 42px; height: 42px; flex: none; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand-ink);
  display: grid; place-items: center;
}
.cagri-ico svg { width: 21px; height: 21px; }
.cagri-metin { flex: 1; min-width: 0; }
.cagri-metin b { display: block; font-size: 15px; }
.cagri-metin small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }

/* ---------- Alt pencere (sheet) ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 60; background: rgba(15,20,17,.45); display: flex; align-items: flex-end; justify-content: center; animation: fadebg .15s; }
@keyframes fadebg { from { opacity: 0; } }
.sheet {
  width: 100%; max-width: 560px; max-height: 88dvh; overflow-y: auto;
  background: var(--bg); border-radius: 22px 22px 0 0;
  padding: 10px 16px calc(20px + var(--safe-b));
  animation: up .22s ease-out;
}
@keyframes up { from { transform: translateY(40px); opacity: .5; } }
.sheet .grab { width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 12px; }
.sheet h3 { font-size: 20px; }

/* ---------- Bilgi / eczane / pazar ---------- */
.row-card { display: flex; gap: 14px; align-items: center; padding: 14px 16px; }
.row-card .ico { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: var(--brand-soft); }
.row-card .meta { flex: 1; min-width: 0; }
.row-card .meta small, .row-card .meta .small, .nobet .meta small, .nobet .meta .small { display: block; }
.row-card > svg { width: 20px; height: 20px; flex: none; color: var(--ink-3); }
.row-card b { display: block; }
.call { width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; }
.call svg { width: 22px; height: 22px; }
.call.red { background: var(--red); }
.day-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day { height: 58px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.day b { font-size: 15px; color: var(--ink); }
.day.on { background: var(--ters); color: color-mix(in srgb, var(--ters-ink) 72%, transparent); }
.day.on b { color: #fff; }
.day.has::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); margin-top: 3px; }
.duyuru { padding: 14px 16px; }
.duyuru .h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.duyuru p { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.info-tile { padding: 16px; display: flex; flex-direction: column; gap: 8px; min-height: 118px; }
.info-tile .e { font-size: 30px; }
.info-tile b { font-size: 16px; }
.info-tile small { color: var(--ink-3); font-size: 13px; }

/* ---------- Esnaf paneli ---------- */
.mode-list { display: grid; gap: 10px; }
.mode { width: 100%; display: flex; gap: 12px; align-items: flex-start; padding: 14px; text-align: left; background: var(--surface); border: 2px solid var(--line); border-radius: 16px; }
.mode.on { border-color: var(--brand); background: var(--brand-soft); }
.mode .e { font-size: 26px; line-height: 1; }
.mode b { display: block; }
.mode .small { display: block; }
.mode .radio { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); }
.mode.on .radio { border: 7px solid var(--brand); }
.mode .ornek { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding: 7px 10px; border-radius: 10px; background: var(--surface); border: 1px dashed var(--line); font-size: 13px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0 0; cursor: pointer; }
.tgl { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; flex: none; margin: 0; border-radius: 99px; background: var(--line); position: relative; cursor: pointer; transition: background .15s; }
.tgl::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .15s; }
.tgl:checked { background: var(--brand); }
.tgl:checked::after { left: 23px; }
.kalem { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.kalem .input { min-height: 46px; font-size: 15px; }
.kalem-top { display: flex; gap: 8px; }
.kalem .row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.del { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; }
.del svg { width: 20px; height: 20px; }
.renk-sec { width: 44px; min-height: 44px; padding: 0; border-radius: 12px; border: 2px solid transparent; }
.renk-sec.on { border-color: var(--ink); }
.save-bar { position: sticky; bottom: calc(var(--tab-h) + var(--safe-b) + 8px); z-index: 15; display: flex; gap: 10px; margin-top: 20px; padding: 10px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-yuzen); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 84px); transform: translateX(-50%); z-index: 80; background: var(--ters); color: var(--ters-ink); padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-yuzen); animation: fade .2s; max-width: calc(100% - 32px); text-align: center; }

/* ---------- Geniş ekranlar ---------- */
@media (min-width: 640px) {
  .list.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .big-boxes { grid-template-columns: repeat(3, 1fr); }
  .big-box { flex-direction: column; align-items: flex-start; min-height: 170px; }
  .big-box .arr { position: absolute; right: 16px; top: 16px; }
  .cat-grid { grid-template-columns: repeat(6, 1fr); }
  .info-grid { grid-template-columns: repeat(3, 1fr); }
  .ti { width: auto; flex: 1; min-width: 72px; }
  .tabbar::after { display: none; }
}
@media (max-width: 360px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .actions .action { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

/* =========================================================
   SUNUCUDA ÜRETİLEN SÜRÜME EK
   Kartlar artık gerçek bağlantı (<a>) olduğu için iç öğeler span;
   blok davranışını burada geri veriyoruz.
   ========================================================= */
a.esnaf { color: inherit; }
.esnaf .body, .esnaf .name, .esnaf .sub { display: block; }
.esnaf .tags { display: flex; }

/* Öne çıkan (VIP) esnaf */
.esnaf.vip { border: 1.5px solid var(--amber); box-shadow: 0 1px 2px rgba(23,32,27,.06), 0 4px 14px rgba(232,155,0,.18); }
.badge.vip-rozet { background: var(--amber-soft); color: #8A5A00; }
.vitrin-basi { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #8A5A00; margin: 20px 0 10px; }
.vitrin-basi::after { content: ""; flex: 1; height: 1px; background: var(--amber-soft); }

/* Alt menü öğesi (demo ile aynı) */
.ti.on { color: var(--brand); }
.ti svg { width: 23px; height: 23px; }

/* Adres seçim ekranı */
.sokak-liste { display: grid; gap: 8px; margin-top: 10px; }
.sokak-liste button, .sokak-liste a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; text-align: left; padding: 13px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  font-size: 15px; font-weight: 600;
}
.sokak-liste .on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }

/* Arama sonuç sayısı */
.sonuc-bilgi { font-size: 13px; color: var(--ink-3); margin: 12px 0 2px; }

/* ---------- Site alt bilgi ---------- */
.site-alt { margin-top: 40px; padding: 22px 0 10px; border-top: 1px solid var(--line); text-align: center; }
.site-alt nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-bottom: 12px; }
.site-alt nav a { font-size: 13.5px; color: var(--ink-2); font-weight: 500; }
.site-alt nav a:hover { color: var(--brand); }
.site-alt p { font-size: 12.5px; color: var(--ink-3); }

/* ---------- Kimliğe bürünme şeridi (ziyaretçi tarafı) ---------- */
.burunme-site {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 9px 16px; background: #7C2D12; color: #FED7AA;
  font-size: 13px; border-bottom: 2px solid #EA580C;
}
.burunme-site b { color: #fff; }
.burunme-site a {
  margin-left: auto; padding: 5px 12px; border-radius: 8px;
  background: #fff; color: #7C2D12; font-weight: 700; font-size: 12.5px; white-space: nowrap;
}
/* Şerit yapışkan olduğu için sayfa üst barı normal aksın */
body:has(.burunme-site) .topbar { position: static; }

/* Paket seçim kartı (bayilik başvurusu) */
.paket-sec { border: 1.5px solid transparent; transition: border-color .15s; }
.paket-sec.on { border-color: var(--brand); background: var(--brand-soft); }

/* =========================================================
   Çerez onay bandı
   Yalnızca izleme kodu tanımlıysa ve henüz karar verilmemişse çıkar.
   Alt köşede durur; sayfayı kapatmaz, okuyacak şeyin önünü kesmez.
   ========================================================= */
.cerez-bant{
  position:fixed;z-index:60;left:12px;right:12px;bottom:12px;
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  max-width:620px;margin:0 auto;padding:14px 16px;
  background:var(--surface);border:1px solid var(--line);
  border-radius:14px;box-shadow:0 10px 30px -8px rgba(12,17,29,.25);
}
.cerez-bant p{flex:1 1 260px;margin:0;font-size:13.5px;line-height:1.5;color:var(--ink-2)}
.cerez-bant a{color:var(--blue);text-decoration:underline;text-underline-offset:2px}
.cerez-dugmeler{display:flex;gap:8px;flex:0 0 auto}
@media (max-width:480px){
  .cerez-bant{bottom:calc(12px + env(safe-area-inset-bottom))}
  .cerez-dugmeler{flex:1 1 100%}
  .cerez-dugmeler .btn{flex:1}
}

/* =========================================================
   Bayilik başvuru formu — süre seçimi, mahalle kutuları, canlı tutar
   ========================================================= */
.sure-sec{display:inline-flex;gap:4px;padding:4px;border-radius:99px;background:var(--line-soft)}
.sure-dugme{position:relative;cursor:pointer;padding:8px 20px;border-radius:99px;font-size:14px;font-weight:600;color:var(--ink-3)}
.sure-dugme input{position:absolute;opacity:0;pointer-events:none}
.sure-dugme.on{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgba(12,17,29,.12)}

.mahalle-kutular{display:grid;gap:8px}
.mahalle-kutu{display:flex;align-items:center;gap:8px}
.mahalle-kutu .input{flex:1;min-width:0}
.mk-no{flex:none;width:26px;height:26px;display:grid;place-items:center;border-radius:50%;
  background:var(--line-soft);color:var(--ink-3);font-size:12.5px;font-weight:700}
.mk-sil{flex:none;width:34px;height:34px;border:0;border-radius:8px;background:transparent;
  color:var(--ink-3);font-size:22px;line-height:1;cursor:pointer}
.mk-sil:hover{background:var(--line-soft);color:var(--ink)}
.mk-sil[hidden]{display:none}

.tutar-panel{margin-top:16px;padding:14px 16px;border-radius:14px;
  background:var(--brand-soft);border:1px solid var(--brand)}
.tp-satir{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.tp-satir span{font-size:13.5px;color:var(--ink-3)}
.tp-satir b{font-size:20px;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.tp-kampanya{margin-top:6px;font-size:13px;font-weight:600;color:var(--brand-ink)}
