/* =====================================================================
   Hazırlansın — Müşteri ekranı (mobil öncelikli)
   Renk: Domates/paprika turuncusu + krem + safran
   ===================================================================== */
:root {
  --primary: #E8552D;
  --primary-dark: #C4411D;
  --primary-soft: #FDE7DF;
  --accent: #FFB547;
  --accent-soft: #FFF1D9;
  --bg: #FFF8F1;
  --card: #FFFFFF;
  --ink: #2B1D14;
  --muted: #8A7A6E;
  --line: #F0E4D8;
  --ok: #2E9E5B;
  --ok-soft: #E3F5EA;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(43, 29, 20, .08);
  --safe-b: env(safe-area-inset-bottom, 0px);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.4; }
body.no-scroll { overflow: hidden; position: fixed; left: 0; right: 0; width: 100%; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea { font: inherit; color: inherit; }

.app { max-width: 640px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; padding-bottom: calc(110px + var(--safe-b)); }

/* ---------- Başlık ---------- */
.m-header {
  background: linear-gradient(135deg, var(--primary) 0%, #F27A3F 100%);
  color: #fff; padding: 18px 18px 26px; border-radius: 0 0 28px 28px; position: relative;
}
.m-header .row { display: flex; align-items: center; gap: 12px; }
.m-header .logo { width: 48px; height: 48px; border-radius: 14px; background: #fff; object-fit: cover; flex: none; }
.m-header h1 { font-size: 1.25rem; margin: 0; font-weight: 800; line-height: 1.15; }
.m-header .table-pill {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
  background: rgba(255,255,255,.22); padding: 3px 10px; border-radius: 99px; font-weight: 700; font-size: .85rem;
}
.m-header .welcome { margin: 12px 0 0; opacity: .95; font-size: .92rem; }
.m-header .my-orders-btn {
  margin-left: auto; background: rgba(255,255,255,.2); color: #fff; border-radius: 12px; padding: 8px 10px;
  font-weight: 700; font-size: .8rem; white-space: nowrap;
}

/* ---------- Arama ---------- */
.search { margin: -18px 16px 0; position: relative; z-index: 2; }
.search input {
  width: 100%; border: 0; background: #fff; border-radius: 14px; padding: 14px 16px 14px 44px;
  box-shadow: var(--shadow); outline: none; font-size: 1rem;
}
.search::before { content: "🔍"; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: .95rem; opacity: .6; }

/* ---------- Hızlı iste ---------- */
.quick { margin: 18px 0 4px; }
.quick h3 { margin: 0 16px 8px; font-size: .9rem; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.quick .strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px 16px 6px; scrollbar-width: none; }
.quick .strip::-webkit-scrollbar { display: none; }
.quick-chip {
  flex: none; display: flex; align-items: center; gap: 8px; background: var(--accent-soft); border: 1.5px solid #FFE0AA;
  padding: 10px 14px; border-radius: 14px; font-weight: 800;
}
.quick-chip small { font-weight: 700; color: var(--primary-dark); }
.quick-chip:active { transform: scale(.97); }

/* ---------- Kategori çubuğu ---------- */
.cats {
  position: sticky; top: 0; z-index: 10; background: rgba(255, 248, 241, .96); backdrop-filter: blur(8px);
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px; scrollbar-width: none; border-bottom: 1px solid var(--line);
}
.cats::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: none; padding: 9px 14px; border-radius: 99px; background: #fff; border: 1.5px solid var(--line);
  font-weight: 700; font-size: .92rem; white-space: nowrap;
}
.cat-chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Ürün listesi ---------- */
.section { padding: 8px 16px 4px; scroll-margin-top: 64px; }
.section h2 { font-size: 1.15rem; margin: 14px 2px 10px; font-weight: 800; }
.product {
  display: flex; gap: 12px; background: var(--card); border-radius: var(--radius); padding: 14px;
  margin-bottom: 10px; box-shadow: 0 1px 0 var(--line); width: 100%; text-align: left; align-items: stretch;
}
.product:active { background: #FFFBF7; }
.product .info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.product .name { font-weight: 800; font-size: 1rem; }
.product .desc {
  color: var(--muted); font-size: .86rem; margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product .price { margin-top: auto; padding-top: 8px; font-weight: 800; color: var(--primary-dark); }
.product .thumb { position: relative; width: 96px; height: 96px; flex: none; }
.product .thumb img, .product .thumb .ph {
  width: 96px; height: 96px; border-radius: 14px; object-fit: cover; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; font-size: 2.2rem;
}
.product .add {
  position: absolute; right: -4px; bottom: -4px; width: 36px; height: 36px; border-radius: 12px;
  background: var(--primary); color: #fff; font-size: 1.4rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(232, 85, 45, .35); border: 3px solid #fff;
}
.product .in-cart {
  position: absolute; left: -4px; top: -4px; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 800;
  border-radius: 99px; min-width: 24px; height: 24px; padding: 0 6px; display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}
.empty-search { text-align: center; color: var(--muted); padding: 40px 20px; }

/* ---------- Alt çubuk ---------- */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; pointer-events: none;
  padding: 12px 14px calc(12px + var(--safe-b));
  background: linear-gradient(to top, rgba(255,248,241,1) 55%, rgba(255,248,241,0));
}
.bottom-bar .inner { max-width: 640px; margin: 0 auto; display: flex; gap: 10px; pointer-events: auto; }
.waiter-btn {
  flex: none; height: 58px; padding: 0 16px; border-radius: 18px; background: #fff; border: 2px solid var(--ink);
  font-weight: 800; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow);
}
.waiter-btn .bell { font-size: 1.35rem; }
.cart-btn {
  flex: 1; height: 58px; border-radius: 18px; background: var(--primary); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: space-between; padding: 0 18px; box-shadow: 0 8px 22px rgba(232, 85, 45, .38);
  transition: transform .15s;
}
.cart-btn .count { background: #fff; color: var(--primary); border-radius: 99px; min-width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; margin-right: 8px; padding: 0 6px; }
.cart-btn.hidden { display: none; }
.cart-btn.bump { animation: bump .35s; }
@keyframes bump { 40% { transform: scale(1.05); } }

/* ---------- Alt sayfa (bottom sheet) ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; visibility: hidden; }
.sheet.open { visibility: visible; }
.sheet .backdrop { position: absolute; inset: 0; background: rgba(30, 18, 10, .45); opacity: 0; transition: opacity .2s; }
.sheet.open .backdrop { opacity: 1; }
.sheet .panel {
  position: relative; width: 100%; max-width: 640px; max-height: 92vh; background: var(--bg);
  border-radius: 26px 26px 0 0; display: flex; flex-direction: column; transform: translateY(100%);
  transition: transform .26s cubic-bezier(.2,.9,.3,1); overflow: hidden;
}
.sheet.open .panel { transform: translateY(0); }
.sheet.full .panel { height: 92vh; }
/* iPhone Safari'de vh adres/araç çubuklarını saymıyor; pencere görünen alana sığsın (dvh) */
@supports (height: 100dvh) {
  .sheet .panel { max-height: calc(100dvh - 12px - env(safe-area-inset-top, 0px)); }
  .sheet.full .panel { height: calc(100dvh - 12px - env(safe-area-inset-top, 0px)); }
}
.sheet .grab { width: 44px; height: 5px; border-radius: 9px; background: #E2D3C5; margin: 10px auto 0; flex: none; }
.sheet .close {
  position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.92); font-size: 1.2rem; z-index: 3; box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.sheet-body { overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.sheet-foot { flex: none; padding: 12px 16px calc(12px + var(--safe-b)); background: #fff; border-top: 1px solid var(--line); }

.sheet-pad { padding: 8px 18px 18px; }
.sheet-title { font-size: 1.35rem; font-weight: 800; margin: 8px 0 4px; padding-right: 40px; }
.sheet-sub { color: var(--muted); margin: 0 0 8px; }
.hero { width: 100%; height: 220px; object-fit: cover; }
.hero-ph { height: 140px; display: flex; align-items: center; justify-content: center; font-size: 4rem; background: var(--accent-soft); }

.opt-group { background: #fff; border-radius: 16px; padding: 14px; margin-top: 12px; }
.opt-group h4 { margin: 0 0 2px; font-size: 1rem; font-weight: 800; }
.opt-group .hint { margin: 0 0 10px; color: var(--muted); font-size: .84rem; }

.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button {
  flex: 1 1 0; min-width: 84px; padding: 11px 8px; border-radius: 12px; border: 2px solid var(--line); background: #fff;
  font-weight: 800; display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.seg button small { font-weight: 700; color: var(--muted); font-size: .78rem; }
.seg button.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 9px 13px; border-radius: 99px; border: 2px solid var(--ok); background: var(--ok-soft); color: #1E6E3E; font-weight: 700; font-size: .92rem;
}
.tag::before { content: "✓ "; }
.tag.off { border-color: #E9C9BF; background: #fff; color: #B4553A; text-decoration: line-through; }
.tag.off::before { content: "✕ "; }

.check-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-top: 1px solid var(--line); width: 100%; text-align: left;
}
.check-row:first-of-type { border-top: 0; }
.check-row .box {
  width: 24px; height: 24px; border-radius: 7px; border: 2px solid #D8C6B6; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .85rem; font-weight: 900;
}
.check-row.on .box { background: var(--primary); border-color: var(--primary); }
.check-row .lbl { flex: 1; font-weight: 700; }
.check-row .plus { color: var(--muted); font-weight: 700; font-size: .9rem; }

textarea.note {
  width: 100%; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; resize: none; min-height: 64px; outline: none; background: #fff;
}
textarea.note:focus { border-color: var(--accent); }

.stepper { display: inline-flex; align-items: center; background: #fff; border: 2px solid var(--line); border-radius: 14px; }
.stepper button { width: 44px; height: 44px; font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.stepper span { min-width: 30px; text-align: center; font-weight: 800; font-size: 1.05rem; }
.stepper.sm button { width: 36px; height: 36px; font-size: 1.2rem; }

.foot-row { display: flex; gap: 10px; align-items: center; }
.btn-primary {
  flex: 1; height: 54px; border-radius: 16px; background: var(--primary); color: #fff; font-weight: 800; font-size: 1.02rem;
  display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 6px 18px rgba(232, 85, 45, .3);
}
.btn-primary:disabled { opacity: .55; }
.btn-primary.dark { background: var(--ink); box-shadow: none; }
.btn-light { flex: 1; height: 54px; border-radius: 16px; background: #fff; border: 2px solid var(--line); font-weight: 800; }

/* ---------- Sepet ---------- */
.cart-head { padding: 14px 18px 4px; }
.cart-item { background: #fff; border-radius: 16px; padding: 14px; margin: 10px 16px 0; }
.cart-item .top { display: flex; gap: 10px; align-items: flex-start; }
.cart-item .t { flex: 1; font-weight: 800; }
.cart-item .p { font-weight: 800; color: var(--primary-dark); white-space: nowrap; }
.cart-item .meta { color: var(--muted); font-size: .86rem; margin-top: 4px; }
.cart-item .meta .rm { color: #B4553A; }
.cart-item .meta .ex { color: #1E6E3E; }
.cart-item .bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.cart-item .edit { color: var(--primary-dark); font-weight: 800; font-size: .9rem; padding: 6px 2px; }
.cart-sum { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.1rem; padding: 16px 18px 4px; }
.cart-empty { text-align: center; padding: 50px 24px; color: var(--muted); }
.cart-empty .big { font-size: 3.4rem; }

/* ---------- Garson ---------- */
.waiter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.waiter-opt {
  background: #fff; border-radius: 18px; border: 2px solid var(--line); padding: 20px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 800;
}
.waiter-opt .ic { font-size: 2.4rem; }
.waiter-opt.main { border-color: var(--primary); background: var(--primary-soft); }
.waiter-opt:disabled { opacity: .5; }

/* ---------- Sonuç ---------- */
.result { text-align: center; padding: 30px 24px 10px; }
.result .ok-ic {
  width: 86px; height: 86px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 2.8rem; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center; animation: pop .45s cubic-bezier(.2,1.6,.4,1);
}
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.result h3 { margin: 0 0 6px; font-size: 1.3rem; }
.result p { color: var(--muted); margin: 0; }

/* ---------- Siparişlerim ---------- */
.my-order { background: #fff; border-radius: 16px; padding: 14px; margin: 10px 16px 0; }
.my-order .h { display: flex; justify-content: space-between; font-weight: 800; }
.my-order ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: .9rem; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .8rem; font-weight: 800; }
.st-new { background: #FFF1D9; color: #A86400; }
.st-prep { background: #FDE7DF; color: var(--primary-dark); }
.st-served { background: var(--ok-soft); color: #1E6E3E; }
.st-paid { background: #E8E4F7; color: #4B3C99; }
.st-cancel { background: #EEE; color: #777; }

/* ---------- Bildirim ---------- */
.toast {
  position: fixed; left: 50%; top: 14px; transform: translate(-50%, -140%); z-index: 80; background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 14px; font-weight: 700; box-shadow: var(--shadow); transition: transform .25s; max-width: 92vw; text-align: center;
}
.toast.show { transform: translate(-50%, 0); }
.toast.ok { background: var(--ok); }
.toast.err { background: #B33A1C; }

/* ---------- Geçersiz / bilgi sayfaları ---------- */
.center-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.center-card { background: #fff; border-radius: 24px; padding: 32px 24px; max-width: 420px; box-shadow: var(--shadow); }
.center-card .big { font-size: 3.6rem; }
.center-card h1 { font-size: 1.4rem; margin: 10px 0 8px; }
.center-card p { color: var(--muted); margin: 0 0 6px; }
.center-card a.btn-primary { text-decoration: none; margin-top: 18px; }

.landing { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.landing img { width: 84px; height: 84px; margin: 0 auto 14px; }
.landing h1 { font-size: 2.4rem; margin: 0; color: var(--primary); font-weight: 900; letter-spacing: -.02em; }
.landing p { color: var(--muted); max-width: 420px; }
.landing a { margin-top: 18px; text-decoration: none; padding: 0 28px; flex: none; }

@media (min-width: 680px) {
  .m-header { border-radius: 0 0 28px 28px; }
  .sheet .panel { border-radius: 26px; margin-bottom: 20px; max-height: min(88vh, calc(100dvh - 40px)); }
}

/* ---------- Onay / ödeme ---------- */
.approval-note { margin: 14px 16px 0; background: #fff; border: 1.5px dashed #FFD08A; border-radius: 14px; padding: 10px 12px; font-size: .86rem; font-weight: 700; color: #7A4A00; }
.result .ok-ic.wait { background: var(--accent); color: var(--ink); font-size: 2.4rem; }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; padding-bottom: 8px; }
.pay-opt { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 18px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 800; }
.pay-opt span { font-size: 2rem; }
.pay-opt:active { border-color: var(--primary); background: var(--primary-soft); }
.pay-opt:disabled { opacity: .5; }
.st-pending { background: #FFE3B3; color: #8A4B00; }

/* ---------- Bekleme ekranı ---------- */
.busy {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 248, 241, .6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .18s; cursor: wait;
}
.busy[hidden] { display: none; }
.busy.on { opacity: 1; }
.busy-card {
  background: #fff; border-radius: 22px; padding: 26px 34px 22px; min-width: 240px; text-align: center;
  box-shadow: 0 24px 60px rgba(43, 29, 20, .18); border: 1px solid var(--line);
  transform: translateY(8px) scale(.97); transition: transform .2s;
}
.busy.on .busy-card { transform: none; }
.busy-card b { display: block; font-size: 1.05rem; margin-top: 12px; }
.busy-card small { display: block; color: var(--muted); font-weight: 700; margin-top: 2px; }
.busy-plate { position: relative; width: 64px; height: 64px; margin: 14px auto 0; }
.busy-plate img { width: 64px; height: 64px; animation: plate 1.2s ease-in-out infinite; }
.busy-plate .steam {
  position: absolute; top: -16px; width: 5px; height: 16px; border-radius: 4px; background: var(--accent);
  opacity: 0; animation: steam 1.4s ease-in-out infinite;
}
.busy-plate .s1 { left: 18px; } .busy-plate .s2 { left: 30px; animation-delay: .25s; } .busy-plate .s3 { left: 42px; animation-delay: .5s; }
.busy-bar { height: 4px; border-radius: 4px; background: #F3EBE3; overflow: hidden; margin-top: 16px; }
.busy-bar span { display: block; height: 100%; width: 40%; border-radius: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); animation: bar 1.1s ease-in-out infinite; }
@keyframes plate { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(-4deg); } }
@keyframes steam { 0% { opacity: 0; transform: translateY(6px) scaleY(.6); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-10px) scaleY(1.1); } }
@keyframes bar { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
body.is-busy { cursor: wait; }
@media (prefers-reduced-motion: reduce) { .busy-plate img, .busy-plate .steam, .busy-bar span { animation-duration: 3s; } }

/* ---------- Self servis / hazır bildirimi / hesap bölme ---------- */
.st-ready { background: #DFF3E7; color: #17663A; }
.self-note { margin: 14px 16px 0; background: #fff; border: 1.5px solid #BFE3CD; border-radius: 14px; padding: 11px 13px; font-size: .88rem; line-height: 1.45; }
.self-note small { display: block; color: var(--muted); margin-top: 3px; font-weight: 700; }
.split-ask { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 0; }
.split-ask .hint { margin: 0; }
.my-order.is-ready { border: 2px solid var(--ok); }
.ready-line { margin-top: 8px; background: var(--ok-soft); color: #17663A; font-weight: 800; border-radius: 10px; padding: 7px 10px; font-size: .88rem; }
.ready-alert { text-align: center; padding: 26px 22px 12px; }
.ready-alert .bell-big { font-size: 4.2rem; display: inline-block; animation: ring 1s ease-in-out infinite; transform-origin: 50% 10%; }
.ready-alert h3 { font-size: 1.6rem; margin: 6px 0 10px; color: #17663A; }
.ready-alert p { color: var(--muted); font-weight: 700; margin: 10px 0 0; }
.ready-nos { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.ready-nos span { background: var(--ink); color: #fff; font-size: 1.6rem; font-weight: 900; border-radius: 14px; padding: 6px 16px; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-4deg); } 75% { transform: rotate(0); } }

/* =====================================================================
   Gel-Al: mekan sayfası
   ===================================================================== */
.m-header .addr { opacity: .9; font-size: .85rem; margin-top: 6px; }
.back-home { display: inline-block; margin: 12px 16px 0; color: var(--primary-dark); font-weight: 800; text-decoration: none; font-size: .9rem; }
.closed-note { margin: 14px 16px 0; background: #F1ECE7; border-radius: 14px; padding: 11px 13px; font-weight: 800; color: #6B5A4E; }
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot { border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; }
.slot b { font-size: .95rem; }
.slot small { color: var(--muted); font-weight: 700; font-size: .75rem; }
.slot:first-child { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 8px; }
.slot.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }
.slot-more { margin-top: 10px; min-height: 0; height: 46px; padding: 0 12px; }
input.note.field { min-height: 0; height: 50px; font-weight: 700; }
.kvkk { color: var(--muted); font-size: .78rem; margin: 12px 4px 0; line-height: 1.4; }
.pickup-card { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 6px; }
.pickup-card > div { background: #fff; border-radius: 14px; padding: 10px; border: 1.5px solid var(--line); }
.pickup-card small { display: block; color: var(--muted); font-weight: 700; font-size: .78rem; }
.pickup-card b { font-size: 1.3rem; }
.pickup-card .code { grid-column: 1 / -1; background: var(--ink); border-color: var(--ink); color: #fff; }
.pickup-card .code small { color: var(--accent); }
.pickup-card .code b { font-size: 2.2rem; letter-spacing: .25em; }
.hint-line { color: var(--muted); font-size: .88rem; margin-top: 10px !important; }
.my-pickup { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; background: var(--accent-soft); border-radius: 10px; padding: 7px 10px; font-size: .88rem; font-weight: 700; }
.my-pickup b { letter-spacing: .15em; }
.ready-code { margin-top: 12px; background: var(--ink); color: #fff; border-radius: 14px; padding: 10px; font-weight: 800; }
.ready-code b { font-size: 1.8rem; letter-spacing: .25em; margin-left: 6px; color: var(--accent); }

/* =====================================================================
   Ana sayfa (mekan listesi)
   ===================================================================== */
.home { max-width: 1080px; margin: 0 auto; padding: 0 16px 60px; }
.home-nav { display: flex; align-items: center; gap: 10px; padding: 16px 0; }
.home-nav .logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.35rem; color: var(--ink); text-decoration: none; }
.home-nav .logo img { width: 40px; height: 40px; }
.home-nav .biz { margin-left: auto; font-weight: 800; color: var(--ink); text-decoration: none; font-size: .9rem; border: 2px solid var(--line); border-radius: 12px; padding: 8px 12px; background: #fff; }
.home-hero {
  position: relative; overflow: hidden; border-radius: 28px; color: #fff; padding: 40px 28px 60px;
  background: radial-gradient(circle at 90% 0%, rgba(255,181,71,.5) 0, transparent 40%), linear-gradient(150deg, #F26A38, #E8552D 50%, #C93F1C);
}
.home-hero::after { content: ""; position: absolute; inset: 0; opacity: .1; background-image: radial-gradient(#fff 1.2px, transparent 1.2px); background-size: 20px 20px; pointer-events: none; }
.home-hero > * { position: relative; z-index: 1; }
.home-hero h1 { margin: 0; font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.08; font-weight: 900; letter-spacing: -.02em; }
.home-hero h1 em { font-style: normal; background: var(--accent); color: var(--ink); padding: 0 .2em; border-radius: .2em; }
.home-hero p { font-size: 1.05rem; max-width: 560px; margin: 14px 0 0; opacity: .95; }
.home-hero-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.home-hero-steps span { background: rgba(255,255,255,.18); border-radius: 99px; padding: 6px 12px; font-weight: 800; font-size: .88rem; }
.finder { display: flex; gap: 8px; margin-top: -24px; position: relative; z-index: 2; padding: 0 12px; flex-wrap: wrap; }
.finder input, .finder select { height: 52px; border: 0; border-radius: 14px; padding: 0 16px; font: inherit; font-weight: 700; background: #fff; box-shadow: var(--shadow); outline: none; }
.finder input { flex: 1 1 260px; }
.finder select { flex: 0 1 180px; }
.finder button { height: 52px; border: 0; border-radius: 14px; padding: 0 22px; background: var(--ink); color: #fff; font-weight: 900; box-shadow: var(--shadow); }
.home h2 { margin: 30px 4px 14px; font-size: 1.3rem; }
.venues { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.venue { display: flex; flex-direction: column; background: #fff; border-radius: 20px; padding: 16px; text-decoration: none; color: var(--ink); box-shadow: 0 1px 0 var(--line); border: 1.5px solid var(--line); transition: transform .12s, box-shadow .12s; }
.venue:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.venue .vt { display: flex; gap: 12px; align-items: center; }
.venue img { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; background: var(--accent-soft); flex: none; }
.venue h3 { margin: 0; font-size: 1.08rem; }
.venue .loc { color: var(--muted); font-weight: 700; font-size: .85rem; }
.venue .wel { color: #5C4B40; font-size: .88rem; margin: 10px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.venue .vf { display: flex; gap: 8px; align-items: center; margin-top: auto; padding-top: 12px; }
.venue .open { background: var(--ok-soft); color: #17663A; border-radius: 99px; padding: 3px 10px; font-weight: 800; font-size: .78rem; }
.venue .closed { background: #F1ECE7; color: #7A6A5E; border-radius: 99px; padding: 3px 10px; font-weight: 800; font-size: .78rem; }
.venue .eta { color: var(--muted); font-weight: 800; font-size: .82rem; }
.venue .go { margin-left: auto; color: var(--primary-dark); font-weight: 900; }
.no-venue { background: #fff; border-radius: 20px; padding: 36px 20px; text-align: center; color: var(--muted); }
.biz-band { margin-top: 36px; background: var(--ink); color: #fff; border-radius: 24px; padding: 26px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.biz-band h3 { margin: 0 0 4px; font-size: 1.25rem; }
.biz-band p { margin: 0; opacity: .8; }
.biz-band a { margin-left: auto; background: var(--accent); color: var(--ink); font-weight: 900; text-decoration: none; border-radius: 14px; padding: 12px 18px; }
.home-foot { text-align: center; color: var(--muted); font-size: .85rem; font-weight: 700; margin-top: 26px; }

/* ---------- Düzeltmeler ---------- */
.product .in-cart[hidden] { display: none; }
.sheet-foot > .btn-primary, .sheet-foot > .btn-light { width: 100%; }
.cart-btn > span { white-space: nowrap; }
.waiter-btn { white-space: nowrap; }
input.note.field, select.note.slot-more {
  display: block; width: 100%; border: 2px solid var(--line); border-radius: 12px; padding: 0 14px; background: #fff; outline: none; font-size: 1rem;
}
input.note.field:focus, select.note.slot-more:focus { border-color: var(--accent); }
@media (max-width: 420px) {
  .waiter-btn { padding: 0 12px; font-size: .92rem; }
  .cart-btn { padding: 0 14px; font-size: .95rem; }
}

/* ---------- Gel-al: saatler, kapalı durumu, güvenli müşteri ---------- */
.closed-note b { color: var(--ink); }
.closed-note .cn-note { display: block; font-weight: 700; font-style: italic; margin-top: 4px; color: #5C4B40; }
.closed-note .cn-sub { display: block; font-weight: 700; font-size: .85rem; margin-top: 4px; color: var(--muted); }
.slot:first-child { flex-direction: column; }
.slot:first-child small { color: var(--primary-dark); }
.call-note { background: #ECE7FA; color: #3F318A; border-radius: 14px; padding: 12px; font-size: .92rem; margin-top: 12px; text-align: left; }
.trusted-note { background: var(--ok-soft); color: #17663A; border-radius: 14px; padding: 10px 12px; font-weight: 800; font-size: .92rem; margin-top: 12px; }
.venue .closed-why { color: #A2321A; font-style: italic; }
.venue .preorder { margin: 6px 0 0; color: #17663A; font-weight: 800; font-size: .82rem; }

/* ---------- Müşteri iptali ---------- */
.mo-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.mo-cancel { color: #B33A1C; font-weight: 800; font-size: .88rem; border: 1.5px solid #F0C9BD; border-radius: 10px; padding: 6px 12px; background: #fff; margin-right: auto; }
.result .mo-cancel { margin-right: 0; }

/* iPhone Safari (tarayıcı içinde): alt çubuk Safari'nin araç çubuğu bölgesinden biraz yukarıda dursun */
html.ios-browser .bottom-bar { padding-bottom: calc(22px + var(--safe-b)); }
html.ios-browser .app { padding-bottom: calc(124px + var(--safe-b)); }
.bottom-bar button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
