/* E-Katalog — Instagram tarzı herkese açık ürün kataloğu (/e-katalog). */

/* ---------- 1) Tema (Instagram paleti) ---------- */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --text: #000000;
  --text-2: #737373;
  --text-3: #8e8e8e;
  --border: #dbdbdb;
  --border-2: #efefef;
  --blue: #0095f6;
  --blue-hover: #1877f2;
  --red: #ed4956;
  --green: #2ea043;
  --btn: #efefef;
  --btn-hover: #dbdbdb;
  --link: #00376b;
  --skel: #efefef;
  --skel-hi: #f7f7f7;
  --shadow: 0 12px 44px rgba(0, 0, 0, .15);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .6));
  --glass-bd: rgba(0, 0, 0, .06);
  --glass-sh: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .05);
  --maxw: 935px;
}
/* data-theme yoksa sistem temasını izler; düğmeyle seçilince data-theme sistemi geçersiz kılar. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #000000; --surface: #000000; --surface-2: #121212;
    --text: #f5f5f5; --text-2: #a8a8a8; --text-3: #7a7a7a;
    --border: #262626; --border-2: #1f1f1f;
    --blue-hover: #1a8cff;
    --btn: #262626; --btn-hover: #363636; --link: #e0f1ff;
    --skel: #1a1a1a; --skel-hi: #262626;
    --shadow: 0 12px 44px rgba(0, 0, 0, .6);
    --glass: rgba(255, 255, 255, .05); --glass-bd: rgba(255, 255, 255, .08); --glass-sh: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000; --surface: #000000; --surface-2: #121212;
  --text: #f5f5f5; --text-2: #a8a8a8; --text-3: #7a7a7a;
  --border: #262626; --border-2: #1f1f1f;
  --blue-hover: #1a8cff;
  --btn: #262626; --btn-hover: #363636; --link: #e0f1ff;
  --skel: #1a1a1a; --skel-hi: #262626;
  --shadow: 0 12px 44px rgba(0, 0, 0, .6);
  --glass: rgba(255, 255, 255, .05); --glass-bd: rgba(255, 255, 255, .08); --glass-sh: none;
}

/* ---------- 2) Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
html.locked, body.locked { overflow: hidden; overscroll-behavior: none; }
/* iOS güvenli kilit: body'yi mevcut kaydırma konumunda dondurur (top, JS'den -scrollY gelir). */
body.locked { position: fixed; left: 0; right: 0; width: 100%; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.icon { display: inline-flex; align-items: center; justify-content: center; }
.icon svg, .btn svg, .info-icon svg { display: block; }
.empty { padding: 56px 20px; text-align: center; color: var(--text-2); }

@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cartUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes addedPulse { 0% { transform: scale(1); } 45% { transform: scale(1.035); } 100% { transform: scale(1); } }

.skel-box, .skel-line {
  background: linear-gradient(100deg, var(--skel) 30%, var(--skel-hi) 50%, var(--skel) 70%);
  background-size: 200% 100%; animation: shimmer 1.2s linear infinite;
}
.skel-line { display: block; height: 11px; border-radius: 4px; margin: 7px 0; }
.skel-line.short { width: 55%; }

/* ---------- 3) Başlık ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 24px 18px 64px; }

.profile-header { display: flex; flex-direction: column; align-items: center; text-align: center; }
.logo-ring {
  display: inline-block; padding: 3px; border-radius: 50%;
  background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
}
.logo {
  display: block; width: 110px; height: 110px; border-radius: 50%; object-fit: contain;
  border: 3px solid var(--bg); background: #fff;
}
/* İşletme adı görünmez: logo altında yer kaplamaz, ekran okuyucu ve arama motorları için h1 olarak kalır. */
.business-name {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.business-name + .bio { margin-top: 8px; }
.bio { margin: 4px 0 0; max-width: 480px; line-height: 1.35; font-size: 11.5px; color: var(--text-2); }
/* Minimal özet: çerçevesiz, tek satır "4 ÜRÜN · 4 KATEGORİ"; küçük rakam, küçük büyük-harf etiket. */
.stats { display: flex; align-items: center; justify-content: center; width: fit-content; max-width: 100%; margin: 10px auto 0; }
.stat { position: relative; display: flex; align-items: baseline; gap: 4px; padding: 0 8px; min-width: 0; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 10px; transform: translateY(-50%);
  background: var(--border);
}
.stat-n { font-size: 12px; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-l {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 8.5px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3);
}
.stat-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--green); flex: 0 0 auto; }

/* ---------- 4) İletişim düğmeleri ---------- */
.contact { max-width: 600px; margin: 16px auto 0; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.btn {
  height: 32px; padding: 0 16px; border: none; border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-secondary { background: var(--btn); color: var(--text); }
.btn-secondary:hover { background: var(--btn-hover); }
.btn.disabled, .btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* ---------- 5) Sekme çubuğu (Instagram profil sekmesi gibi, tek ızgara simgesi) ---------- */
.tabs {
  display: flex; margin-top: 16px; border-top: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50; background: var(--bg);
}
.tab {
  flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; color: var(--text-3);
  height: 44px; margin-top: -1px; position: relative; border-radius: 0;
  -webkit-appearance: none; appearance: none; touch-action: manipulation;
}
.tab .icon svg { width: 22px; height: 22px; }
.tab { -webkit-tap-highlight-color: transparent; outline: none; }
.tab:focus:not(:focus-visible) { outline: none; box-shadow: none; }
/* Odak halkası sekmenin İÇİNDE: dışarı taşıp çubuğun kenarında kesilip tek taraflı çizgiye dönüşmesin */
.tab:focus-visible { outline: 2px solid var(--blue); outline-offset: -4px; border-radius: 8px; }
/* Etkin sekme çizgisi box-shadow yerine pseudo-element: gölge kenarlarında oluşan ince çizgi/dikiş görüntüsü olmaz */
.tab.active, .tabs.single .tab { color: var(--text); }
.tab.active::after, .tabs.single .tab::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--text); pointer-events: none; }
.tabs.single .tab { cursor: default; }

/* ---------- 6) Arama + ürün ızgarası ---------- */
.search {
  position: relative; display: flex; align-items: center; margin-top: 14px;
  background: var(--btn); border-radius: 10px;
}
.search-ic { position: absolute; left: 12px; display: inline-flex; color: var(--text-3); pointer-events: none; }
.search-ic svg { width: 17px; height: 17px; }
.search input {
  width: 100%; height: 38px; border: none; background: transparent; color: var(--text);
  padding: 0 14px 0 38px; font-size: 16px; font-family: inherit; outline: none;
}
.search input::placeholder { color: var(--text-3); }
.search:focus-within { box-shadow: 0 0 0 2px var(--blue); }
.filter-summary { margin-top: 10px; font-size: 12px; color: var(--text-2); min-height: 16px; }

.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.prod-card { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; min-width: 0; text-align: left; background: none; border: none; padding: 0; cursor: pointer; color: var(--text); }
/* Ürün fotoğrafları 1200×1800 (2:3; 2026-11-20 tüm görseller): kutu aynı oranda, kırpılmadan tam görünür. */
.prod-media { position: relative; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; background: var(--skel); }
.prod-media.loading::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--skel) 30%, var(--skel-hi) 50%, var(--skel) 70%);
  background-size: 200% 100%; animation: shimmer 1.2s linear infinite;
}
.prod-media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s ease; }
.prod-media img.loaded { opacity: 1; }
.prod-media.no-image, .media-error { background: var(--surface-2); }
.no-image-ic { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--text-3); }
.no-image-ic svg { width: 40px; height: 40px; }
.cell-badge {
  position: absolute; top: 8px; right: 8px; z-index: 2; color: #fff; pointer-events: none;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5));
}
.cell-badge svg { width: 20px; height: 20px; }
.cat-badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: rgba(255, 255, 255, .96); color: #262626;
  font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}
.cat-badge.out-of-stock { background: #ef4444; color: #fff; }
.stock-badge.out-of-stock {
  display: inline-block; font-size: 12px; font-weight: 600;
  color: #ef4444; background: rgba(239, 68, 68, .12);
  padding: 3px 8px; border-radius: 6px;
}
.prod-card.out-of-stock .prod-media img { opacity: .6; filter: grayscale(50%); }
.prod-text { padding: 8px 2px 0; }
.prod-name {
  font-size: 14px; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
/* Aramada varyant adı/lakabı/SKU/barkodu ile bulunan ürün: uyan seçenek etiketi (ızgara kartı + liste satırı). */
.prod-match {
  display: inline-flex; align-items: center; gap: 4px; max-width: 100%; margin-top: 3px;
  padding: 2px 7px; border-radius: 6px; font-size: 12px; font-weight: 600;
  color: var(--blue); background: color-mix(in srgb, var(--blue) 12%, transparent);
}
.prod-match svg { width: 12px; height: 12px; flex: none; }
.prod-match span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prod-price { margin-top: 3px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price { font-size: 14px; font-weight: 600; color: var(--blue); }
.price-from { font-size: 12px; color: var(--text-2); }
.price-text { font-size: 13px; font-weight: 600; color: var(--text-2); }
.cat-sentinel { height: 10px; margin-top: 10px; }
.cat-more { display: flex; justify-content: center; margin-top: 14px; }
.chip {
  height: 32px; padding: 0 15px; border-radius: 16px; border: none; background: var(--btn); color: var(--text);
  font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.chip:hover { background: var(--btn-hover); }

/* ---------- 7) Ürün detayı: masaüstü yan yana, mobil tam ekran ---------- */
.detail-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .85); z-index: 1000;
  display: flex; align-items: center; justify-content: center; animation: fade .2s ease;
}
.detail-close { position: fixed; top: 12px; right: 14px; z-index: 1003; color: #fff; background: none; border: none; cursor: pointer; }
.detail-close svg { width: 26px; height: 26px; }
/* Ürün bağlantısını paylaş (telefonda paylaşım menüsü, masaüstünde kopyalar): kapat düğmesinin yanında. */
.detail-share { position: fixed; top: 14px; right: 56px; z-index: 1003; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: none; border-radius: 15px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.detail-share:hover { background: rgba(255, 255, 255, .24); }
.detail-share svg { width: 16px; height: 16px; }
.detail-share[hidden] { display: none; }
/* "Ürün Detayları" başlığının altı: minimal WhatsApp'ta paylaş + linki kopyala */
.detail-sharerow { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 15px; border: 1px solid var(--border); border-radius: 13px; background: transparent; color: var(--text-2); font-size: 12px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.share-btn svg { width: 14px; height: 14px; flex: 0 0 auto; }
.share-btn.wa svg { color: #25d366; }
.share-btn:hover { color: var(--text); background: var(--btn); }
.ek-swal-link { margin-top: 2px; padding: 8px 10px; border-radius: 8px; background: var(--btn); font-size: 13px; word-break: break-all; }
.overlay-nav {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 1002;
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #1a1a1a;
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .25);
}
.overlay-nav:active { transform: translateY(-50%) scale(.93); }
.overlay-nav svg { width: 20px; height: 20px; }
.overlay-nav.prev { left: 16px; }
.overlay-nav.next { right: 16px; }

.detail {
  display: grid; grid-template-columns: auto 360px; grid-template-rows: minmax(0, 1fr) auto;
  background: var(--surface); overflow: hidden;
  max-width: 95vw; height: min(86vh, 760px); border-radius: 6px; box-shadow: var(--shadow);
}
.detail-scroll { display: contents; }
.detail-media { position: relative; grid-column: 1; grid-row: 1 / 3; height: 100%; aspect-ratio: 2 / 3; background: #000; }
.detail-info { grid-column: 2; grid-row: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; border-left: 1px solid var(--border); }
.detail-foot { grid-column: 2; grid-row: 2; }
.detail-info .lb-head { flex: 0 0 auto; }
.detail-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; }
.detail-name { font-size: 20px; font-weight: 600; line-height: 1.25; }
.detail-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.detail-price .price { font-size: 20px; }
.detail-desc-wrap { margin-top: 4px; }
.detail-desc { margin: 0; font-size: 14px; line-height: 1.55; white-space: pre-line; word-break: break-word; }
.detail-desc.clamped {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden;
}
.desc-toggle {
  background: none; border: none; padding: 4px 0; font-size: 13px; font-weight: 600;
  color: var(--text-2); cursor: pointer; margin-top: 2px;
}
.desc-toggle:hover { color: var(--text); text-decoration: underline; }
.variant-label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.variant-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.variant-chip {
  font-size: 13px; padding: 6px 13px; border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); background: transparent; cursor: pointer;
}
.variant-chip:hover { border-color: var(--text-2); }
.variant-chip.active { border-color: var(--blue); background: var(--blue); color: #fff; }
.variant-chip.soldout { color: var(--text-3); text-decoration: line-through; }
.variant-chip.active.soldout { color: #fff; opacity: .7; }

.lb-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.lb-head .mini-logo { display: block; width: 32px; height: 32px; border-radius: 50%; object-fit: contain; background: #fff; }
.lb-head-text { flex: 1 1 auto; min-width: 0; }
.lb-name { font-weight: 600; font-size: 14px; }
.avatar-ring {
  display: inline-flex; flex: 0 0 auto; padding: 2px; border-radius: 50%;
  background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
}
.avatar-ring .mini-logo { border: 2px solid var(--bg); }

.detail-foot {
  position: sticky; bottom: 0; z-index: 1;
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface); border-top: 1px solid var(--border);
  box-shadow: 0 -6px 16px rgba(0, 0, 0, .06);
  padding: 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom));
}
.detail-foot .btn { width: 100%; height: 46px; justify-content: center; }
.detail-buy { display: flex; gap: 8px; }
.detail-buy .detail-add { flex: 1 1 auto; width: auto; min-width: 0; }
.buy-qty { flex: 0 0 auto; display: flex; align-items: center; height: 46px; border-radius: 8px; background: var(--btn); }
.buy-btn { width: 36px; height: 46px; border: none; background: none; color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }
.buy-btn svg { width: 15px; height: 15px; }
.buy-btn:disabled, .buy-n:disabled { opacity: .5; cursor: not-allowed; }
.buy-n { width: 58px; height: 46px; border: none; background: none; color: var(--text); text-align: center; font-size: 16px; font-weight: 600; font-family: inherit; padding: 0; outline: none; font-variant-numeric: tabular-nums; }
.buy-qty:focus-within { box-shadow: 0 0 0 2px rgba(0, 149, 246, .35); }
.detail-foot .btn svg { width: 18px; height: 18px; }
.detail-add.added { background: var(--text); color: var(--bg); animation: addedPulse .32s ease; }

/* Detay alt barındaki sepet özeti (alt sepet çubuğuyla aynı koyu dil) */
.detail-cart {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: var(--text); color: var(--bg); border: none; cursor: pointer;
  border-radius: 10px; padding: 10px 14px; font-size: 13.5px;
}
.detail-cart .cart-bar-ic svg { width: 19px; height: 19px; }
.detail-cart .dc-count { font-weight: 600; }
.cart-bar-action {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28);
}
.cart-bar-action .cart-bar-total, .cart-bar-action .dc-total { font-size: 14px; font-weight: 700; color: #fff; line-height: 1; }
.cart-bar-action .chev { display: inline-flex; }
.cart-bar-action .chev svg { width: 15px; height: 15px; color: #fff; transform: rotate(180deg); }
@media (hover: hover) { .cart-bar:hover .cart-bar-action, .detail-cart:hover .cart-bar-action { background: var(--blue-hover); } }

@media (max-width: 1023px) {
  .detail-overlay { background: var(--bg); display: block; }
  .detail-close {
    top: 12px; left: 12px; right: auto; width: 34px; height: 34px; border-radius: 50%;
    background: rgba(0, 0, 0, .5); display: inline-flex; align-items: center; justify-content: center;
  }
  .detail-close svg { width: 20px; height: 20px; }
  .detail-share { top: 12px; right: 12px; height: 34px; padding: 0 12px; border-radius: 17px; background: rgba(0, 0, 0, .5); }
  .detail {
    display: flex; flex-direction: column; position: absolute; inset: 0; width: auto; max-width: none; height: auto;
    border-radius: 0; box-shadow: none; overflow: hidden;
  }
  .detail-scroll { display: block; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .detail-media { width: 100%; height: auto; aspect-ratio: 2 / 3; }
  .detail-info { display: block; overflow: visible; border-left: none; }
  .detail-body { overflow: visible; }
  .detail-foot { flex: 0 0 auto; }
  .overlay-nav { display: none; }
}

/* ---------- 8) Galeri (ürün ve varyant görselleri) ---------- */
.media-wrap { position: relative; width: 100%; height: 100%; overflow: hidden; background: #000; }
.carousel-track { display: flex; height: 100%; transition: transform .3s ease; }
.slide { flex: 0 0 100%; height: 100%; }
.slide.loading {
  background: linear-gradient(100deg, var(--skel) 30%, var(--skel-hi) 50%, var(--skel) 70%);
  background-size: 200% 100%; animation: shimmer 1.2s linear infinite;
}
.slide img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s ease; }
.slide img.loaded { opacity: 1; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 26px; height: 26px;
  border-radius: 50%; background: rgba(255, 255, 255, .85); color: #1a1a1a; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 3;
}
.carousel-arrow svg { width: 16px; height: 16px; }
.carousel-arrow.prev { left: 8px; }
.carousel-arrow.next { right: 8px; }
.carousel-counter {
  position: absolute; top: 10px; right: 10px; z-index: 3; background: rgba(0, 0, 0, .6);
  color: #fff; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 12px;
}
.carousel-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; z-index: 3; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.dot.active { background: #fff; }
.media-empty { display: flex; align-items: center; justify-content: center; height: 100%; color: #777; }
.media-empty svg { width: 56px; height: 56px; }
@media (max-width: 1023px) { .carousel-arrow { display: none; } }

/* ---------- 9) Sepet çubuğu + sepet sheet'i + sipariş formu ---------- */
.cart-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; border: none; margin: 0; cursor: pointer;
  background: var(--text); color: var(--bg);
  padding: 14px 18px; padding-bottom: max(14px, env(safe-area-inset-bottom));
  box-shadow: 0 -6px 20px rgba(0, 0, 0, .16); animation: cartUp .3s cubic-bezier(.22, 1, .36, 1);
}
body.locked .cart-bar { display: none; }
body.has-cart-bar .container { padding-bottom: 108px; }
.cart-bar-inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.cart-bar-ic { display: inline-flex; }
.cart-bar-ic svg { width: 22px; height: 22px; display: block; }
.cart-bar-label { font-size: 14.5px; font-weight: 600; }

.cart-list-wrap { position: relative; border-bottom: 1px solid var(--border-2); }
.cart-list { display: flex; flex-direction: column; max-height: 320px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.cart-more {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 34px; border: none; border-top: 1px solid var(--border-2);
  background: var(--surface-2); color: var(--blue); cursor: pointer; font-family: inherit; font-size: 12.5px; font-weight: 600;
}
.cart-more[hidden] { display: none; }
.cart-more:hover { background: var(--btn); }
.cart-line { flex: 0 0 auto; box-sizing: border-box; display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border-2); }
.cart-line-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cart-line-top { display: flex; align-items: flex-start; gap: 8px; }
.cart-line-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cart-line:last-child { border-bottom: none; }
.cart-thumb { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--skel); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-text { flex: 1 1 auto; min-width: 0; }
.cart-line-name { font-size: 13.5px; font-weight: 600; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cart-line-variant { font-size: 12px; color: var(--text-2); margin-top: 1px; }
.cart-line-price { min-width: 0; text-align: right; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.cart-line-price b { font-size: 18px; font-weight: 700; color: var(--blue); white-space: nowrap; }
.cart-line-price b.unpriced { font-size: 12px; font-weight: 600; color: var(--text-2); white-space: normal; }
.cart-line-price small { font-size: 11px; color: var(--text-3); margin-top: 2px; white-space: nowrap; }
.cart-line-warn { font-size: 12px; font-weight: 600; color: var(--red); margin-top: 2px; }
.cart-qty { flex: 0 0 auto; display: flex; align-items: center; background: var(--btn); border-radius: 8px; padding: 2px; }
.qty-btn { width: 30px; height: 30px; border: none; background: none; border-radius: 6px; cursor: pointer; color: var(--text); display: inline-flex; align-items: center; justify-content: center; }
.qty-btn svg { width: 14px; height: 14px; }
.qty-btn:hover { background: var(--btn); }
.qty-n { width: 56px; height: 30px; padding: 0; border: none; background: var(--surface); outline: none; color: var(--text); font-family: inherit; text-align: center; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; border-radius: 6px; }
.qty-n:focus { box-shadow: 0 0 0 2px rgba(0, 149, 246, .35); }
.cart-remove { flex: 0 0 auto; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 1px solid rgba(237, 73, 86, .45); border-radius: 8px; cursor: pointer; color: var(--red); padding: 0; margin: 0; }
.cart-remove:hover { background: rgba(237, 73, 86, .1); border-color: var(--red); }
.cart-remove svg { width: 16px; height: 16px; }

.order-form { display: grid; gap: 12px; padding: 16px; border-bottom: 1px solid var(--border-2); }
.order-form-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 5px; }
.field label b { color: var(--red); }
.field input {
  width: 100%; height: 44px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface-2); color: var(--text); padding: 0 12px; font-size: 16px; font-family: inherit; outline: none;
}
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(0, 149, 246, .25); }
.field.invalid input { border-color: var(--red); }
.field-err { min-height: 0; margin-top: 4px; font-size: 12px; color: var(--red); }
.field-err:empty { display: none; }
.order-error { padding: 10px 12px; border-radius: 8px; font-size: 13px; background: rgba(237, 73, 86, .1); color: var(--red); }
.order-error:empty { display: none; }

.cart-foot {
  position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--border);
  padding: 14px 16px; padding-bottom: max(14px, env(safe-area-inset-bottom));
}
.cart-total-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-size: 14px; }
.cart-total { font-weight: 700; }
.cart-total-note { font-weight: 400; font-size: 11px; color: var(--text-2); }
/* Sipariş düğmesi. Aktif: WhatsApp yeşili degrade. Pasif (toptan minimum tutar dolmadı): sepetteki ilerleme çubuğunun
   mavi-mor-pembe renkleri, sönük. İki hal arasında yumuşak geçiş. */
.cart-send {
  width: 100%; height: 46px; justify-content: center; color: #fff; font-weight: 600; letter-spacing: .01em;
  background-color: #25d366;
  background-image: linear-gradient(135deg, #3be88f 0%, #25d366 46%, #128c7e 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 6px 16px rgba(37, 211, 102, .28);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .12);
  transition: filter .2s ease, box-shadow .25s ease, transform .12s ease, background-image .25s ease;
}
.cart-send:hover { filter: brightness(1.07) saturate(1.05); }
.cart-send:active { transform: scale(.985); }
.cart-send:disabled,
.cart-send.is-disabled {
  opacity: 1; cursor: not-allowed; color: rgba(255, 255, 255, .78); filter: none; text-shadow: none;
  background-image: linear-gradient(135deg, hsl(238 42% 50%) 0%, hsl(280 38% 52%) 52%, hsl(330 42% 56%) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}
/* is-disabled gerçek disabled değildir (tıklanınca SweetAlert uyarısı çıkar); üzerine gelince/basınca da pasif davranır. */
.cart-send.is-disabled:hover { filter: none; }
.cart-send.is-disabled:active { transform: none; }

/* SweetAlert2 uyarısı: sheet ve detay katmanlarının (z-index 1100) üstünde, sayfanın diliyle */
.swal2-container { z-index: 1400 !important; }
.swal2-popup.ek-swal { width: min(92vw, 380px); padding: 22px 20px 20px; border-radius: 18px; border: 1px solid var(--border); font-family: inherit; box-shadow: var(--shadow); }
.ek-swal .swal2-icon { margin: 4px auto 10px; transform: scale(.85); }
.ek-swal-title { padding: 0; font-size: 17px !important; font-weight: 700; letter-spacing: -.01em; }
.ek-swal-text { margin: 8px 0 0 !important; font-size: 13.5px !important; line-height: 1.55; color: var(--text-2) !important; }
.ek-swal-text b { color: var(--text); }
.swal2-confirm.ek-swal-btn {
  margin-top: 14px; height: 42px; padding: 0 20px; border: 0; border-radius: 10px; font-size: 13.5px; font-weight: 600; font-family: inherit;
  background: linear-gradient(135deg, hsl(238 100% 66%), hsl(280 90% 68%), hsl(330 90% 68%)) !important; box-shadow: none !important;
}
.swal2-confirm.ek-swal-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.swal2-cancel.ek-swal-cancel {
  margin-top: 14px; height: 42px; padding: 0 20px; border-radius: 10px; font-size: 13.5px; font-weight: 600; font-family: inherit;
  background: transparent !important; color: var(--text-2) !important; border: 1px solid var(--border) !important; box-shadow: none !important;
}
.swal2-cancel.ek-swal-cancel { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.swal2-cancel.ek-swal-cancel:hover { color: var(--text) !important; }
/* Sipariş tamamlandı penceresi: onay rozeti, fiş özeti, "son adım" kutusu ve WhatsApp düğmesi */
.swal2-popup.ek-done { padding: 26px 20px 20px; }
.ek-done-body { margin: 0 !important; padding: 0 !important; display: block; text-align: center; color: var(--text) !important; }
.od-badge { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(46, 160, 67, .14); color: var(--green); animation: odPop .45s cubic-bezier(.22, 1, .36, 1); }
.od-badge svg { width: 30px; height: 30px; stroke-width: 2.6; }
.od-badge.warn { background: rgba(245, 158, 11, .15); color: #f59e0b; }
.od-title { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.od-sub { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.od-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.od-meta span { background: var(--btn); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; color: var(--text-2); }
.od-meta b { color: var(--text); font-weight: 700; }
.od-step { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; padding: 12px 14px; text-align: left; border-radius: 12px; background: rgba(37, 211, 102, .1); border: 1px solid rgba(37, 211, 102, .35); }
.od-step-ic { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #25d366; color: #fff; }
.od-step-ic svg { width: 19px; height: 19px; }
.od-step-tx { font-size: 12.5px; line-height: 1.45; color: var(--text-2); }
.od-step-tx b { display: block; margin-bottom: 2px; font-size: 13.5px; color: var(--text); }
.ek-done .swal2-actions.ek-done-actions { width: 100%; flex-direction: column; gap: 4px; margin: 16px 0 0; }
.swal2-confirm.ek-done-wa { width: 100%; height: 48px; margin: 0; border: 0; border-radius: 12px; display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; font-size: 14.5px; font-weight: 700; font-family: inherit; background: #25d366 !important; color: #fff !important; box-shadow: 0 8px 18px -8px rgba(37, 211, 102, .7) !important; }
.swal2-confirm.ek-done-wa:hover { filter: brightness(1.06); }
.ek-done-wa svg { width: 20px; height: 20px; }
.swal2-cancel.ek-done-close { width: 100%; height: 40px; margin: 0; border: 0 !important; background: transparent !important; color: var(--text-2) !important; box-shadow: none !important; font-size: 13.5px; font-weight: 600; font-family: inherit; }
.swal2-cancel.ek-done-close:hover { color: var(--text) !important; }
.swal2-confirm.ek-done-wa:focus-visible, .swal2-cancel.ek-done-close:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@keyframes odPop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.cart-send svg { width: 18px; height: 18px; }
.cart-send.busy { opacity: .7; pointer-events: none; }
.cart-clear { background: none; border: none; cursor: pointer; color: var(--text-2); font-family: inherit; font-size: 12.5px; font-weight: 600; padding: 4px 0 4px 8px; }
.cart-clear:hover { color: var(--text); }
.cart-clear.arm { color: var(--red); }

/* ---------- 10) Alttan açılan sheet + bilgi satırları ---------- */
.sheet-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 1100;
  display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .28s ease;
}
.sheet-overlay.open { opacity: 1; }
.sheet {
  width: 100%; max-width: 460px; background: var(--surface); border-radius: 14px 14px 0 0;
  max-height: 88vh; overflow-y: auto; overscroll-behavior: contain; padding-bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .32s cubic-bezier(.22, 1, .36, 1);
}
.sheet-overlay.open .sheet { transform: translateY(0); }
.sheet-handle { width: 38px; height: 4px; border-radius: 3px; background: var(--border); margin: 8px auto 2px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 12px; border-bottom: 1px solid var(--border); }
.sheet-title { font-weight: 600; font-size: 16px; }
.sheet-head-right { display: flex; align-items: center; gap: 10px; }
.sheet-close { background: none; border: none; cursor: pointer; color: var(--text); }
.sheet-close svg { width: 22px; height: 22px; }

.info-list { display: flex; flex-direction: column; }
.info-row { display: flex; align-items: flex-start; gap: 14px; padding: 15px 16px; border-bottom: 1px solid var(--border-2); color: var(--text); }
.info-row:last-child { border-bottom: none; }
a.info-row:hover { background: var(--surface-2); }
.info-icon { flex: 0 0 auto; margin-top: 1px; }
.info-icon svg { width: 22px; height: 22px; }
.info-text { display: flex; flex-direction: column; min-width: 0; }
.info-text .label { font-size: 12px; color: var(--text-2); }
.info-text .value { font-size: 14px; word-break: break-word; }

/* ---------- 10b) Kategori çipleri, açık/kapalı rozeti, saat tablosu, IBAN, iletişim + SSS sekmesi ---------- */
/* Kategoriler alt alta sarılır; kapalıyken yalnız ilk satır + "+N kategori" düğmesi (fitChips), açınca hepsi + "Daha az".
   Eskiden tek satırda yana kayıyordu, sağdakiler görünmüyordu (kullanıcı isteği 2026-11-20). */
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0 4px; }
.chip { flex: 0 0 auto; }
.chip[hidden] { display: none; }
/* "+N kategori": e-katalog mavisi (Ara düğmesiyle aynı), dikkat çeksin diye büyük yazı + hafif mavi gölge. */
.chip.chips-more { display: inline-flex; align-items: center; gap: 5px; padding: 0 16px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 3px 10px rgb(0 149 246 / .35); }
.chip.chips-more:hover { background: var(--blue-hover); color: #fff; box-shadow: 0 4px 14px rgb(0 149 246 / .45); }
.chip.chips-more svg { width: 16px; height: 16px; transition: transform .2s ease; }
.chips.is-open .chip.chips-more svg { transform: rotate(180deg); }
.chip.active { background: var(--text); color: var(--bg); }
.chip:disabled { opacity: .45; cursor: default; }
.filter-label { margin-top: 14px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.filter-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Özet hapı ve açık/kapalı durumu yan yana; sığmazsa alta iner. */
.meta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; margin-top: 10px; }
.meta-row .stats { margin: 0; }
.open-status {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 4px 2px; font-size: 12px; color: var(--text);
}
.open-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex: 0 0 auto; }
.open-status .os-text { font-weight: 600; color: var(--text-2); }
.open-status .os-detail { color: var(--text-2); }
.open-status.is-open .dot { background: var(--green); }
.open-status.is-open .os-text { color: var(--green); }

.hours-table { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.hours-day { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; padding: 2px 4px; }
.hours-day .hd-name { color: var(--text-2); }
.hours-day.today {
  font-weight: 600; background: rgba(0, 0, 0, .045); border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 999px; padding: 3px 12px; margin: 1px 0;
}
.hours-day.today .hd-name { color: var(--text); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hours-day.today { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .12); }
}
:root[data-theme="dark"] .hours-day.today { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .12); }

.iban-sheet-body { padding: 8px 16px 20px; }
.iban-sheet .info-list { border-radius: 10px; overflow: hidden; border: 1px solid var(--border-2); }
.iban-highlight-row { background: rgba(0, 149, 246, .05); }
.iban-value { font-family: monospace, -apple-system, sans-serif; font-size: 13px !important; font-weight: 600; letter-spacing: .5px; word-break: break-all; color: var(--blue); }
.iban-copy-btn { width: 100%; height: 46px; justify-content: center; margin-top: 18px; font-size: 14.5px; }
.iban-copy-btn svg { width: 18px; height: 18px; }
.iban-copy-btn.copied { background: var(--green); color: #fff; }

.faq { margin-top: 4px; }
.faq-section-title { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; margin: 16px 0 8px; padding: 0 2px; }
.faq-section-title svg { width: 16px; height: 16px; color: var(--text-2); }
.faq-contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 20px; }
.faq-info-card {
  display: flex; align-items: flex-start; gap: 8px; padding: 10px 11px; min-width: 0;
  background: var(--surface); border: 1px solid var(--border-2); border-radius: 8px; color: var(--text); font-size: 11.5px;
}
a.faq-info-card { cursor: pointer; transition: background .12s ease, border-color .12s ease; }
@media (hover: hover) { a.faq-info-card:hover { background: var(--surface-2); border-color: var(--border); } }
.faq-info-card.full-span { grid-column: 1 / -1; flex-direction: column; gap: 6px; }
.faq-info-card .fic-icon { flex: 0 0 auto; color: var(--text-2); margin-top: 1px; display: flex; }
.faq-info-card .fic-icon svg { width: 16px; height: 16px; }
.faq-info-card .fic-text { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.faq-info-card .fic-label { font-size: 10.5px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .3px; }
.faq-info-card .fic-val { font-size: 11.5px; font-weight: 500; line-height: 1.35; word-break: break-word; }
.faq-info-card .fic-head { display: flex; align-items: center; gap: 6px; }
.faq-info-card .hours-table { width: 100%; margin-top: 2px; }
.faq-info-card .hours-day { font-size: 11.5px; }
.faq-list { display: flex; flex-direction: column; margin-top: 4px; }
.faq-item { border-bottom: 1px solid var(--border-2); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: none; border: none; cursor: pointer; color: var(--text); text-align: left;
  padding: 16px 2px; font-size: 15px; font-weight: 500; line-height: 1.35;
}
.faq-q svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--text-3); transition: transform .25s ease; }
.faq-item.open .faq-q { font-weight: 600; }
.faq-item.open .faq-q svg { transform: rotate(180deg); color: var(--text); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 600px; }
.faq-a p { margin: 0; padding: 2px 2px 18px; font-size: 14px; line-height: 1.6; color: var(--text-2); white-space: pre-line; }
.lb-loc { font-size: 12px; color: var(--text-2); }

/* ---------- 10c) Ürün detayları, barkod kartı, toptan fiyat satırı, şifre (PIN) ekranı ---------- */
/* Minimal: küçük ve ince yazı, şeffaf zemin, ince çerçeve, sönük ikon. */
.specs-title { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-2); letter-spacing: .02em; margin-top: 6px; }
.specs-title svg { width: 13px; height: 13px; }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.spec {
  display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px 10px;
  background: transparent; border: 1px solid var(--border-2); border-radius: 10px;
}
.spec-ic { flex: 0 0 auto; display: inline-flex; color: var(--text-3); }
.spec-ic svg { width: 14px; height: 14px; }
.spec-tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.spec-l { font-size: 10px; font-weight: 400; color: var(--text-3); }
.spec-v { font-size: 12px; font-weight: 400; word-break: break-word; }
.spec.wide { grid-column: 1 / -1; }

/* Başlık + kartlar + barkod / videolar arasında düzenli boşluk */
.detail-specs, .detail-videos { display: flex; flex-direction: column; gap: 10px; }
.detail-specs:empty, .detail-videos:empty, .detail-ws:empty { display: none; }

/* Barkod: küçük, yatay kart. Okunabilirlik için zemin hep beyaz. */
.barcode-card {
  display: flex; align-items: center; gap: 14px; padding: 9px 14px;
  background: #fff; color: #111; border: 1px solid var(--border); border-radius: 12px;
}
.barcode-card img { flex: 0 0 auto; width: 118px; height: auto; }
.bc-side { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bc-l { display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 400; color: #8e8e8e; }
.bc-l svg { width: 12px; height: 12px; }
.bc-n { font-family: monospace, -apple-system, sans-serif; font-size: 12px; font-weight: 400; letter-spacing: 1px; color: #262626; word-break: break-all; }

/* Stok durumu kartı: nokta + renkli değer */
.spec-v.st { display: inline-flex; align-items: center; gap: 6px; }
.spec-v.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: 0 0 auto; }
.spec-v.st.low { color: #d97706; }
.spec-v.st.low::before { background: #f59e0b; }
.spec-v.st.out { color: var(--red); }
.spec-v.st.out::before { background: var(--red); }

/* Videolar: önizleme görseli + oynat düğmesi; dokununca gömülü oynatıcı açılır. */
.vids { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.vid {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--border-2);
  border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--skel);
}
.vid img { width: 100%; height: 100%; object-fit: cover; }
.vid.media-error img { display: none; }   /* önizleme yüklenemezse kırık görsel simgesi görünmesin */
.vid.media-error { background: var(--surface-2); }
.vid-play {
  position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .6); color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .85);
}
.vid-play svg { width: 18px; height: 18px; margin-left: 2px; }
.vid.on { grid-column: 1 / -1; cursor: default; background: #000; }
.vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Açıklama (ürün detayının en altı) */
.desc-box { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }

.ws-row {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; text-align: left;
  border-radius: 12px; border: 1px dashed var(--border); background: var(--surface-2); color: var(--text); cursor: pointer;
}
.ws-row .ws-ic { flex: 0 0 auto; display: inline-flex; width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center; background: var(--btn); }
.ws-row .ws-ic svg { width: 16px; height: 16px; }
.ws-row .ws-tx { flex: 1 1 auto; min-width: 0; font-size: 13px; font-weight: 600; }
.ws-row .ws-chev { display: inline-flex; color: var(--text-3); transform: rotate(-90deg); }
.ws-row .ws-chev svg { width: 16px; height: 16px; }
/* Kilitli toptan fiyat: panel üst çubuğundaki POS düğmesiyle (.pos-launch) aynı görünüm — koyu dolgu,
   dönen mavi-mor-pembe gradyan çerçeve (conic-gradient + maske) ve sonsuz ışık süpürmesi. */
@property --ek-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.ws-row.locked {
  position: relative; overflow: hidden; isolation: isolate; border: 0; padding: 9px 12px; border-radius: 12px;
  color: #fff; background-color: hsl(240 8% 14%);
  background-image: linear-gradient(135deg, hsl(240 4% 30%) 0%, hsl(240 6% 15%) 52%, hsl(240 10% 7%) 100%);
  box-shadow: inset 0 1px 0 hsl(0 0% 100% / .14), inset 0 0 0 1px hsl(0 0% 100% / .08);
}
.ws-row.locked:hover { background-image: linear-gradient(135deg, hsl(240 4% 38%) 0%, hsl(240 6% 19%) 52%, hsl(240 10% 9%) 100%); }
.ws-row.locked:active { transform: scale(.985); }
.ws-row.locked::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; z-index: 1; pointer-events: none;
  background: conic-gradient(from var(--ek-a), transparent 0 30%, hsl(238 100% 66%) 52%, hsl(280 90% 68%) 70%, hsl(330 90% 68%) 86%, hsl(0 0% 100% / .9) 95%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: ekSpin 3s linear infinite;
}
.ws-row.locked::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 38%; z-index: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent, hsl(0 0% 100% / .32), transparent); transform: skewX(-20deg);
  animation: ekShine 2.6s ease-in-out infinite;
}
.ws-row.locked > * { position: relative; z-index: 2; }
.ws-row.locked .ws-ic { width: 28px; height: 28px; background: linear-gradient(135deg, hsl(238 100% 66%), hsl(280 90% 68%), hsl(330 90% 68%)); color: #fff; }
.ws-row.locked .ws-ic svg { width: 14px; height: 14px; }
.ws-row.locked .ws-tx { display: flex; flex-direction: column; gap: 1px; font-size: 12px; font-weight: 700; letter-spacing: .03em; line-height: 1.3; }
.ws-row.locked .ws-sub { font-size: 10px; font-weight: 400; letter-spacing: .02em; color: hsl(0 0% 100% / .66); }
.ws-row.locked .ws-chev { color: #fff; }
.ws-row.locked .ws-chev svg { width: 14px; height: 14px; }
@keyframes ekSpin { to { --ek-a: 360deg; } }
@keyframes ekShine { 0%, 45% { left: -60%; } 100% { left: 130%; } }
/* Genel "hareketi azalt" kuralı (aşağıda) tüm animasyonları durduruyordu; POS düğmesi gibi bu düğme de bilerek
   süslü bir giriş noktası olduğu için o kuraldan muaf tutulur (yoksa sistem animasyonları kapalıyken donuk kalır). */
@media (prefers-reduced-motion: reduce) {
  .ws-row.locked::before { animation-duration: 3s !important; animation-iteration-count: infinite !important; }
  .ws-row.locked::after { animation-duration: 2.6s !important; animation-iteration-count: infinite !important; }
}
.ws-row.open { cursor: default; border-style: solid; background: rgba(46, 160, 67, .08); border-color: rgba(46, 160, 67, .35); }
.ws-row.open .ws-ic { background: rgba(46, 160, 67, .18); color: var(--green); }
.ws-row .ws-l { display: block; font-size: 11px; font-weight: 600; color: var(--text-2); }
.ws-row .ws-v { font-size: 16px; font-weight: 700; }

/* Şifre (PIN) ekranı: Instagram doğrulama kodu ekranı gibi — degrade halkalı kilit, 4 yuvarlak kutu, mavi onay düğmesi. */
.pin-body { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 22px 8px; }
.pin-ring {
  display: inline-flex; padding: 3px; border-radius: 50%;
  background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
}
.pin-lock {
  display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%;
  background: var(--bg); color: var(--text); border: 3px solid var(--bg);
}
.pin-lock svg { width: 30px; height: 30px; }
.pin-title { margin: 14px 0 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.pin-sub { margin: 6px 0 0; max-width: 300px; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.pin-boxes { display: flex; gap: 10px; margin-top: 20px; }
.pin-box {
  width: 54px; height: 62px; text-align: center; font-size: 26px; font-weight: 700; font-family: inherit;
  color: var(--text); background: var(--surface-2); border: 1.5px solid var(--border); border-radius: 14px; outline: none;
  caret-color: var(--blue); transition: border-color .15s, box-shadow .15s, transform .12s;
}
.pin-box:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 149, 246, .22); }
.pin-box.filled { border-color: var(--text-2); }
.pin-boxes.error .pin-box { border-color: var(--red); box-shadow: 0 0 0 3px rgba(237, 73, 86, .15); }
.pin-boxes.shake { animation: pinShake .42s cubic-bezier(.36, .07, .19, .97); }
@keyframes pinShake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); } }
.pin-err { min-height: 18px; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--red); }
.pin-submit { width: 100%; max-width: 320px; height: 44px; margin-top: 8px; justify-content: center; border-radius: 10px; }
.pin-help { margin: 14px 0 8px; font-size: 12.5px; font-weight: 600; color: var(--link); }
.pin-help:hover { text-decoration: underline; }

/* Toptan oturum uyarısı (başlıkta) */
.ws-banner {
  display: flex; align-items: center; gap: 10px; width: 100%; max-width: 440px; margin-top: 12px; padding: 9px 12px; text-align: left;
  border-radius: 14px; background: rgba(46, 160, 67, .1); border: 1px solid rgba(46, 160, 67, .4); animation: fade .3s ease;
}
.wsb-ic { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(46, 160, 67, .2); color: var(--green); }
.wsb-ic svg { width: 15px; height: 15px; }
.wsb-tx { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 11.5px; line-height: 1.35; color: var(--text-2); }
.wsb-tx strong { font-size: 12.5px; color: var(--text); }
.wsb-tx b { color: var(--text); }

/* Sepette toptan minimum tutar uyarısı + ilerleme çubuğu */
.min-note { margin-bottom: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border-2); }
.min-top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.min-ic { display: inline-flex; color: var(--text-2); }
.min-ic svg { width: 15px; height: 15px; }
.min-bar { height: 6px; margin-top: 8px; border-radius: 3px; background: var(--btn); overflow: hidden; }
.min-bar i { display: block; height: 100%; border-radius: 3px; transition: width .3s ease; background: linear-gradient(90deg, hsl(238 100% 66%), hsl(280 90% 68%), hsl(330 90% 68%)); }
.min-sub { margin-top: 6px; font-size: 12px; color: var(--text-2); }
.min-note.ok .min-bar i { background: var(--green); }
.min-note.ok .min-ic { color: var(--green); }
.ws-tag { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 6px; font-size: 10.5px; font-weight: 600; background: rgba(46, 160, 67, .15); color: var(--green); }

/* ---------- 11) Tema düğmesi, bildirim, alt bilgi ---------- */
.theme-toggle {
  position: fixed; top: 10px; left: 10px; z-index: 60; width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  cursor: pointer; box-shadow: var(--shadow);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle:active { transform: scale(.92); }
body.locked .theme-toggle { display: none; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1300;
  max-width: min(92vw, 420px); padding: 11px 16px; border-radius: 10px; font-size: 13.5px; text-align: center;
  background: var(--text); color: var(--bg); box-shadow: var(--shadow); animation: fade .2s ease;
}
body.has-cart-bar .toast { bottom: 90px; }

.site-footer { margin-top: 32px; text-align: center; color: var(--text-3); font-size: 12px; }

/* ---------- 12) Dokunma geri bildirimi, hareket tercihi, küçük ekran ---------- */
.btn, .chip, .prod-card, .qty-btn, .variant-chip { transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease; }
.btn:active, .chip:active, .qty-btn:active, .variant-chip:active { transform: scale(.96); }
.prod-card:active { transform: scale(.985); }
.prod-grid { animation: fade .3s ease; }

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

@media (max-width: 767px) {
  .container { padding: 14px 0 48px; }
  .profile-header, .contact { padding-left: 16px; padding-right: 16px; }
  .logo { width: 90px; height: 90px; }
  .catalog, .faq { padding: 0 16px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  /* İletişim düğmeleri: hepsi tek satırda, eşit genişlikte; simge üstte, etiket altta. */
  .actions { flex-wrap: nowrap; gap: 6px; }
  .actions .btn {
    flex: 1 1 0; min-width: 0; height: 46px; padding: 0 2px; flex-direction: column; justify-content: center; gap: 3px;
    font-size: 11px; font-weight: 600; white-space: nowrap;
  }
  .actions .btn svg { width: 17px; height: 17px; }
  .actions .btn-x { display: none; }
}

/* Cloudflare Turnstile (sipariş formu): ad/telefon alanlarının altında ortalı */
.ts-box { display: flex; justify-content: center; min-height: 65px; margin-top: 4px; }

/* ---------- Mobil düzeltmeleri (mobil-hata.md F8, F9, F10) ---------- */
/* F8: dokunmatikte sepet adet / sil, çip ve düğmeler parmakla rahat basılır (≥ 40-44 px). */
@media (pointer: coarse) {
  .qty-btn { width: 34px; height: 34px; }
  .qty-btn svg { width: 16px; height: 16px; }
  .qty-n { height: 34px; }
  .cart-remove { width: 32px; height: 32px; }
  .chip { height: 40px; }
  .btn { height: 44px; }
}
/* F9: 8,5 px etiket okunmuyordu. */
.stat-l { font-size: 9px; }
/* F10: iOS araç çubuğu görününce taşmasın. */
.sheet { max-height: 88vh; max-height: 88dvh; }

/* ---------- Liste sekmesi: tüm ürünler satır satır ---------- */
/* Arama solda, sıralama sağda; tek satır (başlık yok). */
.plist-bar { display: flex; gap: 8px; align-items: center; margin-top: 14px; }
.plist-bar .search { flex: 1 1 0; min-width: 0; margin-top: 0; }
.plist-sort { display: inline-flex; align-items: center; flex: 0 1 auto; min-width: 0; }
.plist-sort select { max-width: 140px; text-overflow: ellipsis; }
.plist-sort select {
  height: 38px; padding: 0 30px 0 12px; border: none; border-radius: 10px; background-color: var(--btn); color: var(--text);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; outline: none; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e8e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 14px;
}
.plist-sort select:focus-visible { box-shadow: 0 0 0 2px var(--blue); }

.plist { display: flex; flex-direction: column; margin-top: 6px; }
.prow {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 10px 2px; border-bottom: 1px solid var(--border-2);
}
.prow:last-child { border-bottom: 0; }
.prow.skel { grid-template-columns: 56px minmax(0, 1fr); }
.prow-thumb {
  position: relative; width: 56px; height: 56px; padding: 0; border: none; border-radius: 10px; overflow: hidden;
  background: var(--surface-2); cursor: pointer; display: grid; place-items: center; color: var(--text-3);
}
.prow-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s ease; }
.prow-thumb img.loaded { opacity: 1; }
.prow-thumb.no-image-ic svg, .prow-thumb .no-image-ic svg { width: 22px; height: 22px; }
.prow-thumb.loading::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--skel) 30%, var(--skel-hi) 50%, var(--skel) 70%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear;
}
.prow.out .prow-thumb img { opacity: .55; filter: grayscale(60%); }
.prow-main { min-width: 0; }
.prow-name { font-size: 14px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prow-sub { margin-top: 1px; font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow-price { margin-top: 3px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.prow-chip { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--btn); color: var(--text-2); align-self: center; }
.prow-chip.out { color: var(--red); background: rgba(237, 73, 86, .12); }
.prow-chip.low { color: #b26a00; background: rgba(255, 159, 10, .15); }

.prow-act { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.prow-add, .prow-var {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 12px; border: none; border-radius: 8px;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background-color .15s, transform .1s, filter .15s;
}
/* Liste satırı: yalnız simgeli, küçük kare düğme. */
.prow-act .prow-add { width: 32px; height: 32px; padding: 0; border-radius: 6px; }
.prow-act .prow-add svg { width: 16px; height: 16px; display: block; }
.prow-main[role="button"] { cursor: pointer; }
.prow-main[role="button"]:focus-visible { outline-offset: 3px; }
.prow-add { background: var(--blue); color: #fff; }
.prow-add:hover:not(:disabled) { background: var(--blue-hover); }
.prow-add:active:not(:disabled), .prow-var:active { transform: scale(.96); }
.prow-add:disabled { background: var(--btn); color: var(--text-3); cursor: not-allowed; }
.prow-add.added { background: var(--green); }
.prow-add-ic svg, .prow-var-ic svg { width: 16px; height: 16px; display: block; }
@media (max-width: 560px) {
  .prow { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; padding: 8px 2px; }
  .prow.skel { grid-template-columns: 52px minmax(0, 1fr); }
  .prow-thumb { width: 52px; height: 52px; }
}
