/* Müşteri sitesi bileşenleri. Renk/yazı tipi değerleri theme.css'ten gelir. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 64px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.ico { width: 20px; height: 20px; flex: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Üst bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--header-h);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { max-width: var(--maxw); margin: 0 auto; height: 100%; padding: 0 16px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand__logo { width: 40px; height: 40px; border-radius: 12px; object-fit: contain; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-pill {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); white-space: nowrap;
}
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill.is-closed { background: var(--danger-soft); color: var(--danger); }
.topnav { display: none; }

/* ---------- Yerleşim ---------- */
.layout { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.view { outline: none; min-width: 0; padding-bottom: 24px; }
.cart-panel { display: none; }

/* ---------- Banner ---------- */
.banners { position: relative; margin: 14px 0 0; }
.banners__track {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; border-radius: var(--radius);
}
.banners__track::-webkit-scrollbar { display: none; }
.banners__slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 21 / 8; border-radius: var(--radius); overflow: hidden; background: var(--brand-soft); }
.banners__slide img { width: 100%; height: 100%; object-fit: cover; }
.banners__dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.banners__dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: var(--line); transition: width .2s, background .2s; }
.banners__dots button.is-active { width: 20px; background: var(--brand); }

/* ---------- İşletme kartı ---------- */
.info-card {
  margin: 14px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; grid-template-columns: 1fr 1fr; box-shadow: var(--shadow);
}
.info-item { display: flex; gap: 10px; align-items: center; padding: 12px 14px; min-width: 0; border: 0; background: none; text-align: left; }
.info-item:nth-child(odd) { border-right: 1px solid var(--line); }
.info-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.info-item .ico { color: var(--brand); width: 22px; height: 22px; }
.info-item small { display: block; font-size: 11.5px; color: var(--ink-3); line-height: 1.2; }
.info-item strong { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
button.info-item { cursor: pointer; }
.notice {
  margin: 12px 0 0; padding: 12px 14px; border-radius: var(--radius); display: flex; gap: 10px; align-items: flex-start;
  background: var(--warn-soft); color: var(--warn); font-weight: 500; font-size: 14px;
}
.notice.is-danger { background: var(--danger-soft); color: var(--danger); }
.notice .ico { margin-top: 1px; }

/* ---------- Kategori sekmeleri ---------- */
.cats {
  position: sticky; top: var(--header-h); z-index: 20; margin: 14px -16px 0; padding: 10px 16px;
  background: var(--bg); display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.cats a {
  flex: none; text-decoration: none; padding: 9px 16px; border-radius: var(--radius-pill); font-weight: 600; font-size: 14px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: background .15s, color .15s, border-color .15s;
}
.cats a:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.cats a.is-active { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

/* ---------- Ürünler ---------- */
.cat-section { margin-top: 18px; }
.cat-section h2 { font-size: 20px; margin: 0 0 10px; }
.products { display: grid; gap: 10px; }
.product {
  display: grid; grid-template-columns: 1fr 96px; gap: 12px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px;
  cursor: pointer; text-align: left; width: 100%; transition: border-color .15s, box-shadow .15s;
}
.product:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: var(--shadow); }
.product__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; min-height: 96px; }
.product__name { font-weight: 700; font-size: 16px; color: var(--ink); letter-spacing: -0.01em; }
.product__desc { color: var(--ink-2); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product__foot { margin-top: auto; display: flex; align-items: center; gap: 8px; }
.price { font-weight: 800; color: var(--brand); font-size: 16px; white-space: nowrap; }
.badge { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--brand-soft); color: var(--brand); }
.product__media { position: relative; width: 96px; height: 96px; }
.product__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-2); }
.add-btn {
  position: absolute; right: -6px; bottom: -6px; width: 38px; height: 38px; border-radius: var(--radius-pill); border: 3px solid var(--surface);
  background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 40%, transparent);
}
.add-btn:active { transform: scale(.94); }
.qty-chip {
  position: absolute; left: -6px; top: -6px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px;
  background: var(--ink); color: var(--surface); font-size: 12px; font-weight: 700; display: grid; place-items: center;
}

/* Izgara düzeni: config.ui.productLayout = "grid" */
.layout-grid .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.layout-grid .product { grid-template-columns: 1fr; padding: 0; overflow: hidden; }
.layout-grid .product__media { order: -1; width: 100%; height: auto; aspect-ratio: 4 / 3; }
.layout-grid .product__media img { border-radius: 0; }
.layout-grid .add-btn { right: 8px; bottom: 8px; }
.layout-grid .qty-chip { left: 8px; top: 8px; }
.layout-grid .product__body { padding: 10px 12px 12px; min-height: 0; }

/* ---------- Butonlar ve formlar ---------- */
/* Ana buton: dolgun turuncu, yuvarlak köşe (görseldeki "Sepete Ekle · ₺290") */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px;
  border-radius: var(--radius); border: 1px solid transparent; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; text-decoration: none;
  background: var(--brand); color: var(--brand-ink); transition: background .15s, opacity .15s, transform .1s;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 28%, transparent);
}
.btn:hover { background: var(--brand-strong); }
.btn:active { transform: scale(.985); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.ico-sm { width: 14px; height: 14px; vertical-align: -2px; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn--ghost:hover { background: var(--surface-2); }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: var(--radius-sm); box-shadow: none; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); text-decoration: none; }

/* Hap (chip): menü içeriği, çıkarılabilir içerikler, etiketler */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 16px;
  border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap;
}
.chip .ico { width: 15px; height: 15px; stroke-width: 2.4; }
.chip--static { min-height: 34px; padding: 0 14px; font-size: 13.5px; }
/* Çıkarılabilir içerik: ✓ yeşil (dahil) / ✕ kırmızı "…suz" (çıkarıldı) */
.chip--toggle { cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.chip--toggle .ico-check { color: var(--accent); }
.chip--toggle .ico-x { display: none; }
.chip--toggle:hover { border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); }
.chip--toggle[aria-pressed="true"] { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger); }
.chip--toggle[aria-pressed="true"] .ico-check { display: none; }
.chip--toggle[aria-pressed="true"] .ico-x { display: block; color: var(--danger); }
/* Sepet / sipariş satırlarında küçük "…suz" etiketi */
.chip--removed { min-height: 24px; padding: 0 9px; gap: 4px; font-size: 12px; background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger); }
.chip--removed .ico { width: 11px; height: 11px; }
/* Bej bilgi kutusu ("Menü içeriği") */
.panel-soft { background: var(--surface-2); border-radius: var(--radius); padding: 14px 16px; margin-top: 16px; }
.panel-soft__title { font-weight: 700; font-size: 14.5px; margin-bottom: 10px; color: var(--ink); }
.icon-btn.is-wa { color: #128c4b; border-color: #cdebd9; background: #f0fbf4; }
.link-btn { border: 0; background: none; padding: 0; color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label, .field .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 84px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.input[readonly] { background: var(--surface-2); color: var(--ink-2); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-error { color: var(--danger); background: var(--danger-soft); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 12px; }
.hint { font-size: 13px; color: var(--ink-3); }

/* Seçim kutuları (adres, ödeme, teslimat) */
.choices { display: grid; gap: 8px; }
.choice {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: var(--radius); border: 1.5px solid var(--line);
  background: var(--surface); cursor: pointer; position: relative;
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .ico { color: var(--ink-3); }
.choice__text { min-width: 0; flex: 1; }
.choice__text strong { display: block; font-size: 14.5px; }
.choice__text small { display: block; color: var(--ink-3); font-size: 13px; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.choice:has(input:checked) .ico { color: var(--brand); }
.choice:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.choices--2 { grid-template-columns: 1fr 1fr; }

/* ---------- Kart / sayfa blokları ---------- */
.page-head { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; }
.page-head h1 { font-size: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.card h2 { font-size: 17px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.card h2 .ico { color: var(--brand); }
.empty { text-align: center; padding: 40px 16px; color: var(--ink-3); }
.empty .ico { width: 44px; height: 44px; color: var(--line); margin: 0 auto 10px; }
.empty p { margin: 0 0 14px; }
.tabs { display: flex; gap: 6px; background: var(--surface); border: 1px solid var(--line); padding: 4px; border-radius: 12px; margin-bottom: 12px; overflow-x: auto; }
.tabs a { flex: 1; text-align: center; padding: 9px 10px; border-radius: 9px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.tabs { border-radius: var(--radius-pill); }
.tabs a { border-radius: var(--radius-pill); }
.tabs a.is-active { background: var(--brand); color: var(--brand-ink); }

/* ---------- Sepet ---------- */
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line__name { font-weight: 600; font-size: 14.5px; }
.removed { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.cart-line__price { font-weight: 700; text-align: right; }
/* Adet seçici: açık turuncu zemin, turuncu − / + */
.stepper { justify-self: start; display: inline-flex; align-items: center; border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent); border-radius: var(--radius-sm); overflow: hidden; background: var(--brand-soft); }
.stepper button { width: 34px; height: 34px; border: 0; background: none; display: grid; place-items: center; color: var(--brand); }
.stepper button:hover { background: color-mix(in srgb, var(--brand) 10%, transparent); }
.stepper button .ico { width: 17px; height: 17px; }
.stepper span { min-width: 26px; text-align: center; font-weight: 700; color: var(--ink); }
.stepper--lg { border-radius: var(--radius); }
.stepper--lg button { width: 44px; height: 50px; }
.stepper--lg span { min-width: 30px; font-size: 17px; }
.totals { display: grid; gap: 6px; padding-top: 12px; font-size: 14.5px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-weight: 800; font-size: 17px; padding-top: 6px; border-top: 1px dashed var(--line); }
.free { color: var(--accent); font-weight: 600; }

.cart-bar {
  position: fixed; z-index: 35; left: 12px; right: 12px; bottom: calc(var(--bottom-nav-h) + 10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 18px; border: 0; border-radius: var(--radius);
  background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 15px; box-shadow: var(--shadow-lg);
  animation: rise .25s ease-out;
}
.cart-bar__count { background: rgba(255,255,255,.22); border-radius: var(--radius-pill); padding: 2px 10px; }
.cart-bar__total { margin-left: auto; }
@keyframes rise { from { transform: translateY(20px); opacity: 0; } }
body.has-cart-bar .view { padding-bottom: 84px; }

/* ---------- Alt menü (mobil) ---------- */
.bottom-nav {
  position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--surface); border-top: 1px solid var(--line);
}
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.bottom-nav a .ico { width: 23px; height: 23px; }
.bottom-nav a.is-active { color: var(--brand); }

/* ---------- Alt pencere (ürün detayı, sepet) ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(20, 15, 12, .5); animation: fade .2s; }
.sheet__panel {
  position: relative; width: 100%; max-width: 560px; max-height: 92dvh; overflow: auto; overscroll-behavior: contain;
  background: var(--surface); border-radius: var(--radius-lg) var(--radius-lg) 0 0; animation: up .25s ease-out;
  padding-bottom: env(safe-area-inset-bottom);
}
.sheet__close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow); }
.sheet__img { width: 100%; aspect-ratio: 16 / 9; max-height: 36dvh; object-fit: cover; background: var(--surface-2); }
.sheet__body { padding: 20px 16px 18px; }
.sheet__title { display: flex; align-items: baseline; gap: 12px; }
.sheet__title h2 { font-size: 21px; font-weight: 800; flex: 1; min-width: 0; }
.sheet__title .price { font-size: 20px; }
.sheet__desc { margin: 8px 0 0; color: var(--ink-2); font-size: 14.5px; }
.sheet__foot { position: sticky; bottom: 0; display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--surface); border-top: 1px solid var(--line); }
.sheet__foot .btn { flex: 1; }
.section-label { font-weight: 700; font-size: 16px; margin: 20px 0 2px; color: var(--ink); }
.section-hint { font-size: 13px; color: var(--ink-3); margin: 0 0 10px; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Siparişlerim ---------- */
.order { padding: 14px; }
.order__head { display: flex; align-items: flex-start; gap: 10px; }
.order__head h3 { font-size: 16px; }
.order__meta { font-size: 13px; color: var(--ink-3); }
.order__actions { margin-left: auto; display: flex; gap: 6px; }
.status { white-space: nowrap; align-self: center; display: inline-block; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: var(--radius-pill); }
.status--new { background: #e8f0fe; color: #1d4ed8; }
.status--preparing { background: var(--warn-soft); color: var(--warn); }
.status--on_the_way { background: #f3e8ff; color: #7e22ce; }
.status--delivered { background: var(--accent-soft); color: var(--accent); }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 12px 0 6px; }
.progress span { height: 5px; border-radius: 9px; background: var(--line); }
.progress span.is-done { background: var(--brand); }
.progress-labels { display: grid; grid-template-columns: repeat(4, 1fr); font-size: 11px; color: var(--ink-3); text-align: center; }
.progress-labels .is-done { color: var(--ink); font-weight: 600; }
.order__items { margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); font-size: 14px; display: grid; gap: 3px; }
.order__total { display: flex; justify-content: space-between; margin-top: 8px; font-weight: 700; }

.address-card { display: flex; gap: 12px; align-items: flex-start; }
.address-card .ico { color: var(--brand); margin-top: 2px; }
.address-card__text { flex: 1; min-width: 0; font-size: 14px; color: var(--ink-2); }
.address-card__text strong { color: var(--ink); display: block; font-size: 15px; }

/* Teslimat zamanı */
.day-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.day-chips label { flex: none; }
.day-chips input { position: absolute; opacity: 0; }
.day-chips span { display: block; padding: 8px 16px; border-radius: var(--radius-pill); border: 1px solid var(--line); font-weight: 600; font-size: 14px; cursor: pointer; background: var(--surface); text-align: center; }
.day-chips span small { display: block; font-weight: 500; font-size: 11.5px; color: var(--ink-3); }
.day-chips input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.time-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.time-grid label { position: relative; }
.time-grid input { position: absolute; opacity: 0; }
.time-grid span { display: block; text-align: center; padding: 10px 0; border-radius: var(--radius-pill); border: 1px solid var(--line); font-weight: 600; font-size: 14px; cursor: pointer; background: var(--surface); }
.time-grid input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

.success { text-align: center; padding: 36px 16px; }
.success__icon { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.success__icon .ico { width: 36px; height: 36px; }
.success h1 { font-size: 24px; margin-bottom: 6px; }

.hours-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.hours-table td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.hours-table td:last-child { text-align: right; font-weight: 600; }
.hours-table tr.is-today td { color: var(--brand); font-weight: 700; }

.auth-wrap { max-width: 420px; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 32px; background: var(--footer-bg); color: var(--footer-ink); }
.site-footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 32px 16px 24px;
  display: grid; gap: 28px;
}
.site-footer__logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--footer-ink); }
.site-footer__logo img { width: 44px; height: 44px; border-radius: 12px; }
.site-footer__logo span { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.site-footer__slogan { margin: 10px 0 14px; color: var(--footer-ink-2); font-size: 14.5px; max-width: 30ch; }
.site-footer__col h2 { font-size: 15px; font-weight: 700; margin: 0 0 12px; color: var(--footer-ink); }
.site-footer .chip--footer { min-height: 32px; padding: 0 12px; font-size: 13px; background: transparent; border-color: var(--footer-line); color: var(--footer-ink); }
.site-footer .chip--footer .ico { color: var(--brand); width: 14px; height: 14px; }
.site-footer__list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; font-size: 14px; color: var(--footer-ink-2); }
.site-footer__list li { display: flex; align-items: flex-start; gap: 10px; }
.site-footer__list .ico { width: 17px; height: 17px; color: var(--footer-ink-2); margin-top: 1px; }
.site-footer__list a { color: var(--footer-ink); text-decoration: none; }
.site-footer__list a:hover { color: var(--brand); }
.site-footer__links { margin-top: 0; gap: 0; }
.site-footer__links li { align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--footer-line); }
.site-footer__links li:first-child { padding-top: 0; }
.site-footer__links .ico { margin: 0; width: 16px; height: 16px; }
.site-footer__bottom {
  max-width: var(--maxw); margin: 0 auto; padding: 16px; border-top: 1px solid var(--footer-line);
  font-size: 12.5px; color: var(--footer-ink-2); text-align: center;
}
body.has-cart-bar .site-footer { padding-bottom: 76px; }

/* ---------- Yasal metinler ---------- */
.legal { font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.legal h2 { font-size: 16.5px; color: var(--ink); margin: 22px 0 8px; }
.legal p { margin: 0 0 10px; }
.legal ul { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 6px; }
.legal strong { color: var(--ink); }
.legal-meta { font-size: 12.5px; color: var(--ink-3); }
.legal-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 6px 0 12px; display: block; overflow-x: auto; }
.legal-table th, .legal-table td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { color: var(--ink); font-weight: 700; white-space: nowrap; }
.legal code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: 12.5px; }

/* Ürün fotoğrafı lisans atfı (yalnızca atıf gerektiren demo fotoğraflarda) */
.sheet__media { position: relative; }
.photo-credit {
  position: absolute; right: 8px; bottom: 8px; max-width: calc(100% - 16px);
  padding: 2px 8px; border-radius: var(--radius-pill); background: rgba(0, 0, 0, .38);
  color: rgba(255, 255, 255, .88); font-size: 10px; line-height: 1.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.photo-credit a { color: inherit; text-decoration: none; }
.photo-credit a:hover { text-decoration: underline; }

/* ---------- Bildirim ---------- */
.toast {
  position: fixed; z-index: 80; left: 50%; bottom: calc(var(--bottom-nav-h) + 80px); transform: translate(-50%, 20px);
  background: var(--ink); color: var(--surface); padding: 11px 16px; border-radius: 12px; font-weight: 600; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); text-align: center;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Masaüstü ---------- */
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .bottom-nav, .cart-bar { display: none !important; }
  body.has-cart-bar .view { padding-bottom: 24px; }
  .status-pill { margin-left: 8px; }
  .topnav { display: flex; margin-left: auto; gap: 4px; }
  .topnav a { text-decoration: none; padding: 8px 14px; border-radius: 10px; font-weight: 600; color: var(--ink-2); }
  .topnav a.is-active { background: var(--brand-soft); color: var(--brand); }
  .layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
  .layout.no-cart { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
  .cart-panel {
    display: block; position: sticky; top: calc(var(--header-h) + 16px); margin-top: 14px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h) - 32px); overflow: auto;
  }
  .layout.no-cart .cart-panel { display: none; }
  .site-footer__inner { grid-template-columns: 1.3fr 1.2fr 1fr; gap: 48px; padding: 44px 16px 32px; }
  .site-footer__bottom { text-align: left; }
  .info-card { grid-template-columns: repeat(4, 1fr); }
  .info-item:nth-child(-n+2) { border-bottom: 0; }
  .info-item:not(:last-child) { border-right: 1px solid var(--line); }
  .cats { margin: 14px 0 0; padding: 10px 0; }
  .products { grid-template-columns: 1fr 1fr; }
  .layout-grid .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sheet { align-items: center; }
  .sheet__panel { border-radius: var(--radius-lg); max-height: 88vh; }
  .toast { bottom: 28px; }
}
