/* ══════════════════════════════════════════════════════
   Site CSS
   Tüm değişkenler config 'deki themeCSS() fonksiyonu
   tarafından <style> olarak sayfaya eklenir.
   ══════════════════════════════════════════════════════ */

/* ── Reset & Base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #6366f1;
  --primary-rgb:   99,102,241;
  --primary-10:    rgba(99,102,241,.10);
  --primary-20:    rgba(99,102,241,.20);
  --primary-50:    rgba(99,102,241,.50);
  --btn-radius:    10px;
  --font:          'Inter', system-ui, sans-serif;
  --card-shadow:   0 4px 20px rgba(99,102,241,.10);
  --card-border:   none;
  /* Sayfa gövdesinin üst/alt boşluğu — tek yerden değişsin diye burada.
     Kullanımı: <div class="container page-pad"> (bkz. .page-pad) */
  --page-pad:        30px;
  --page-pad-bottom: 60px;

  --text:          #1e293b;
  --text-muted:    #64748b;
  --text-light:    #94a3b8;
  --border:        #e2e8f0;
  --bg:            #f8fafc;
  --surface:       #ffffff;
  --header-h:      64px;
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     16px;
  --transition:    .18s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }
/* iOS Safari buton metnini sistem mavisiyle boyar ve rengi miras aldırmaz;
   masaüstünde siyah görünen butonlar mobilde mavi çıkıyordu. */
button { color: inherit; -webkit-tap-highlight-color: transparent; }
ul, ol { list-style: none; }

/* ── Container ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Sayfa gövdesi boşluğu — sayfalarda satır içi padding yazmak yerine bu sınıflar
   kullanılır; değerler --page-pad / --page-pad-bottom değişkenlerinden gelir,
   yani tek yerden değiştirilir.
     .page-pad      → üst ve alt eşit (sepet, ödeme, hesap)
     .page-pad-lg   → üst dar, alt geniş (liste ve içerik sayfaları)
     .page-pad-b    → yalnız alt boşluk (üstte kendi başlığı olan sayfalar)
     .page-pad-min  → eşit boşluk + en az yarım ekran (kısa bilgi sayfaları) */
.page-pad {
  padding-top: var(--page-pad);
  padding-bottom: var(--page-pad);
}
.page-pad-lg {
  padding-top: var(--page-pad);
  padding-bottom: var(--page-pad-bottom);
}
.page-pad-b {
  padding-bottom: var(--page-pad-bottom);
}
.page-pad-min {
  padding-top: var(--page-pad);
  padding-bottom: var(--page-pad);
  min-height: 50vh;
}
@media (max-width: 640px) {
  :root { --page-pad: 20px; --page-pad-bottom: 40px; }
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--btn-radius);
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--primary) 85%, #000);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(var(--primary-rgb),.35);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary-10);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 17px; }
.btn-block { width: 100%; justify-content: center; }
/* Stoğu biten üründe buton yerinde durur ama soluk ve tıklanamaz —
   kart yüksekliği sabit kalsın, ızgara hizası kaymasın. */
.btn-soldout {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(1);
}
.btn:disabled { opacity: .5; pointer-events: none; }

/* Metin etiketli ikon butonları (Sepetim / Giriş Yap) — masaüstünde yazı, mobilde yalnız ikon */
.icon-btn.has-label {
  width: auto;
  gap: 7px;
  padding: 0 12px;
}
.icon-btn-label {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.icon-btn.has-label .cart-badge { right: auto; left: 26px; }
@media (max-width: 768px) {
  .icon-btn.has-label { width: 40px; padding: 0; gap: 0; }
  .icon-btn-label { display: none; }
  .icon-btn.has-label .cart-badge { right: 2px; left: auto; }
}

/* Header düğme biçimi (admin → Header Stili → Giriş / Sepet Düğmeleri)
   hact-icon      : yalnız ikon
   hact-icon-text : ikon + yazı (varsayılan)
   hact-text      : yalnız yazı */
body.hact-icon .icon-btn.has-label { width: 40px; padding: 0; gap: 0; }
body.hact-icon .icon-btn-label { display: none; }
body.hact-icon .icon-btn.has-label .cart-badge { right: 2px; left: auto; }

body.hact-text .icon-btn.has-label > svg { display: none; }
body.hact-text .icon-btn.has-label { width: auto; padding: 0 10px; gap: 0; }
/* İkon yokken rozet yazının sağ üstüne oturur */
body.hact-text .icon-btn.has-label .cart-badge { right: 0; left: auto; top: 2px; }

@media (max-width: 768px) {
  /* Yalnız yazı seçildiyse mobilde de yazı kalsın: kullanıcı ikonu
     bilerek kaldırmış, dar ekranda geri gelmesi şaşırtıcı olurdu */
  body.hact-text .icon-btn.has-label { width: auto; padding: 0 8px; }
  body.hact-text .icon-btn-label { display: inline; font-size: 12px; }
  body.hact-text .icon-btn.has-label .cart-badge { right: 0; left: auto; }
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}
.icon-btn:hover {
  background: var(--primary-10);
  color: var(--primary);
}

/* ── Header ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--surface);
  /* Ayırıcı istenmiyor: ne çizgi ne gölge — kaydırınca da eklenmez */
  border-bottom: 0;
  box-shadow: none;
}

/* Classic Header */
.classic-header .header-top { padding: var(--header-pt, 12px) 0 var(--header-pb, 12px); }
.classic-header .header-top-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}
/* Arama kutusu logo ile ikonların ORTASINDA durur; sola yaslı ve kenara
   kadar uzayınca header dengesiz görünüyordu. Genişlik admin →
   Header Stili → Arama Kutusu Genişliği ayarından gelir. */
.classic-header .search-form { flex: 1; max-width: var(--header-search-w, 520px); margin: 0 auto; }
/* .header-actions'ın margin-left:auto'su boşluğu paylaşınca kutu ortada
   değil sola yakın kalıyordu; kutu görünürken o otomatik boşluk kapatılır. */
body.hsearch-open .classic-header .header-top-inner .header-actions { margin-left: 0; }

/* Üst şerit bağlantıları (CMS sayfası → "Header üst şeridinde göster").
   Görünüm minimal header'daki menü butonlarıyla aynı; hiza da menü
   satırının hizasını izliyor (nav-align-*). Sığmazsa satır sarmak yerine
   yatay kayıyor — logo satırının yüksekliği bozulmasın. */
.classic-header .header-top-links {
  display: flex;
  align-items: center;
  /* Bağlantı aralığı admin → Header Stili → Üst Şerit Yazısı'ndan */
  gap: var(--header-top-gap, 2px);
  /* Büyümüyor: arama kutusu flex:1 ile ortalanıyor, şerit de büyürse
     kutuyu merkezden kaydırırdı. Hiza otomatik kenar boşluklarıyla. */
  flex: 0 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.classic-header .header-top-links::-webkit-scrollbar { display: none; }
/* Buton dolgusu kadar dışa taşır: metin logoyla aynı eksende başlasın */
.classic-header .header-top-links.nav-align-left  { margin-right: auto; margin-left: -14px; }
.classic-header .header-top-links.nav-align-center { margin-inline: auto; }
.classic-header .header-top-links.nav-align-right { margin-left: auto; margin-right: -14px; }

.classic-header .header-top-link {
  /* Renk ve boyut admin → Header Stili → Üst Şerit Yazısı'ndan gelir */
  color: var(--header-top-color, var(--text-secondary));
  padding: 9px 14px;
  font-size: var(--header-top-fs, 13.5px);
  font-weight: 500;
  letter-spacing: .1px;
  white-space: nowrap;
  text-decoration: none;
  border-radius: var(--btn-radius);
  transition: color .16s, background .16s;
}
.classic-header .header-top-link:hover {
  color: var(--primary);
  background: var(--primary-10);
}
.classic-header .header-top-link.active {
  color: var(--primary);
  background: var(--primary-10);
  font-weight: 600;
}
/* Dar ekranda logo + ikonlar zaten satırı dolduruyor; bu bağlantılar
   mobil menüde listeleniyor. */
@media (max-width: 992px) {
  .classic-header .header-top-links { display: none; }
}
.centered-header .header-side:first-child .search-form { width: 100%; max-width: var(--header-search-w, 520px); }

/* Minimal Header — tek satır: solda logo · ortada kategoriler · sağda ikonlar */
.minimal-header .mh-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  /* Yatay padding .container'dan gelsin — kısayol `padding` kullanılırsa ezilir
     ve içerik ekranın soluna/sağına yapışır. */
  padding-top: var(--header-pt, 12px);
  padding-bottom: var(--header-pb, 12px);
}
.minimal-header .mh-left  { flex-shrink: 0; }
.minimal-header .mh-right { display: flex; align-items: center; gap: 4px; justify-self: end; }

/* Ortadaki kategori menüsü — sticky şerit değil, header satırının parçası.
   Sığmayan kategoriler "Diğer" menüsüne toplanıyor (initNavOverflow);
   yatay kaydırma yalnızca o mekanizma çalışmazsa devreye giren emniyet. */
.minimal-header .mh-nav { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.minimal-header .mh-nav::-webkit-scrollbar { display: none; }
.minimal-header .mh-nav .nav-inner { flex-wrap: nowrap; overflow: visible; gap: 2px; }
/* Minimal dışındaki header stillerinde şerit menü: köşesiz, alt çizgiye yer bırakan padding */
.main-nav .nav-link {
  padding: 12px 12px 9px 18px;
  border-radius: 0;
}
.minimal-header .mh-nav .nav-link {
  /* Muted çok soluk kalıyordu; ikincil metin rengi hem okunur hem sakin */
  color: var(--text-secondary);
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .1px;
  white-space: nowrap;
  /* Minimal'de alt çizgi yok — vurgu yalnızca arka planla verilir */
  border-bottom: 0;
  /* Köşeler buton ayarını izler (admin → Buton Köşeleri) */
  border-radius: var(--btn-radius);
  transition: color .16s, background .16s;
}
.minimal-header .mh-nav .nav-link:hover {
  color: var(--primary);
  background: var(--primary-10);
}
/* Bulunulan kategori daha belirgin: dolgu değil, koyu metin + ince alt vurgu.
   Hover ile aynı görünseydi "neredeyim" bilgisi kaybolurdu. */
.minimal-header .mh-nav .nav-link.active {
  color: var(--primary);
  background: var(--primary-10);
  font-weight: 600;
}
/* Minimal header ince bir çizgiyle bitsin — gölge tek başına silik kalıyor */
.minimal-header { border-bottom: 1px solid var(--border); }

/* Arama satırı (mobil): masaüstünde satır yerine yukarıdaki kutu kullanılır */
.minimal-header .mh-search { display: none; border-top: 1px solid var(--border); }
.minimal-header .mh-search .search-form { margin: 10px 0; width: 100%; }
/* Minimal'de arama ikonu masaüstünde de görünür */
.minimal-header .search-toggle-btn { display: flex; }

/* Centered Header */
.centered-header .centered-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  /* Yatay padding .container'dan gelsin (kısayol `padding` onu ezip 0'lıyordu) */
  padding-top: var(--header-pt, 12px);
  padding-bottom: var(--header-pb, 12px);
}
.centered-logo { justify-self: center; }
.header-side { display: flex; align-items: center; gap: 8px; }
.header-side-right { justify-content: flex-end; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

/* Logo */
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo-img { height: var(--logo-height, 42px); width: auto; object-fit: contain; }
/* Mobil logo: yalnızca mobil genişlikte gösterilir (ayarlarda tanımlıysa) */
.site-logo-img--mobile { display: none; }
.site-logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.5px;
}
.footer-logo { height: 36px; width: auto; }
.footer-logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

/* Search */
.search-form {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-10);
}
.search-input {
  flex: 1;
  padding: 9px 16px;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--text);
}
.search-input::placeholder { color: var(--text-light); }
.search-btn {
  padding: 9px 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: color var(--transition);
}
.search-btn:hover { color: var(--primary); }
/* Kutunun içindeki büyüteç normalde yeterli; ama kutu zaten büyüteç
   ikonuna basılarak açıldıysa aynı ikonu iki kez göstermek anlamsız —
   orada düğme "Ara" yazısına dönüyor. */
.search-btn-label { display: none; font-size: 13px; font-weight: 600; white-space: nowrap; }
.hdr-search-inline .search-btn-icon  { display: none; }
.hdr-search-inline .search-btn-label { display: inline; }
.hdr-search-inline .search-btn {
  padding: 9px 14px;
  color: var(--primary);
  border-left: 1px solid var(--border);
}
.hdr-search-inline .search-btn:hover { background: var(--primary-10); }

/* Scroll Progress Bar */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--primary);
  z-index: 9999;
  transition: width .08s linear;
  pointer-events: none;
}

/* ── PayTR taksit tablosu (ürün detayı) ─────────────── */
.product-installments { margin-top: 28px; }
/* Sağ sütunda dar alan — kartlar tam genişliğe yayılsın */
.product-detail-wrap .product-installments .taksit-tablosu-wrapper {
  width: 100%;
  max-width: 320px;
  margin: 5px 0;
}
.product-detail-wrap .product-installments #paytr_taksit_tablosu { text-align: left; }
/* Sayfa sonundaki geniş yerleşim ortalanır */
.product-installments--bottom #paytr_taksit_tablosu { text-align: center; }
.product-installments h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
}
/* PayTR betiğinin ürettiği yapı — sınıf adları sağlayıcıya ait, değiştirilmemeli */
#paytr_taksit_tablosu {
  clear: both;
  font-size: 12px;
  max-width: 1200px;
  text-align: center;
  font-family: inherit;
}
#paytr_taksit_tablosu::before { display: table; content: " "; }
#paytr_taksit_tablosu::after  { content: ""; clear: both; display: table; }
.taksit-tablosu-wrapper {
  margin: 5px;
  width: 280px;
  padding: 12px;
  cursor: default;
  text-align: center;
  display: inline-block;
  border: 1px solid var(--border, #e1e1e1);
  border-radius: var(--radius-md, 8px);
  background: var(--surface, #fff);
}
.taksit-logo img { max-height: 28px; padding-bottom: 10px; }
.taksit-tutari-text { float: left; width: 126px; color: var(--text-muted, #a2a2a2); margin-bottom: 5px; }
.taksit-tutar-wrapper { display: inline-block; background-color: var(--bg, #f7f7f7); }
.taksit-tutar-wrapper:hover { background-color: var(--bg-soft, #e8e8e8); }
.taksit-tutari { float: left; width: 126px; padding: 6px 0; color: var(--text, #474747); border: 2px solid var(--surface, #fff); }
.taksit-tutari-bold { font-weight: bold; }
@media all and (max-width: 600px) {
  .taksit-tablosu-wrapper { margin: 5px 0; width: 100%; }
}

/* ── Şerit banner (header üstü / hero altı) ─────────── */
/* Aynı konumda birden fazla şerit varsa boyama sırası tersine çevrilir:
   üsttteki şerit altındakinin gölgesinin üzerinde kalır, böylece iki şeridin
   birleştiği yerde renk kirlenmesi olmaz. */
.bstrip-group > .banner-strip { position: relative; }
.bstrip-group > .banner-strip:nth-last-child(1)  { z-index: 1; }
.bstrip-group > .banner-strip:nth-last-child(2)  { z-index: 2; }
.bstrip-group > .banner-strip:nth-last-child(3)  { z-index: 3; }
.bstrip-group > .banner-strip:nth-last-child(4)  { z-index: 4; }
.bstrip-group > .banner-strip:nth-last-child(5)  { z-index: 5; }
.bstrip-group > .banner-strip:nth-last-child(6)  { z-index: 6; }
.bstrip-group > .banner-strip:nth-last-child(7)  { z-index: 7; }
.bstrip-group > .banner-strip:nth-last-child(8)  { z-index: 8; }
.bstrip-group > .banner-strip:nth-last-child(9)  { z-index: 9; }
.bstrip-group > .banner-strip:nth-last-child(10) { z-index: 10; }

.banner-strip {
  /* --bstrip-base / --bstrip-fg satır bazında (admin) atanır; yoksa tema rengi */
  --bstrip-base: var(--primary);
  /* 2. renk girilmediyse ana renge düşer — tanımsız kalırsa color-mix geçersiz
     olur ve tüm background kuralı düşerdi (şerit şeffaf görünürdü). */
  --bstrip-base2: var(--bstrip-base);
  --bstrip-fg: #fff;
  --bstrip-pad: 9px;
  background: var(--bstrip-base);
  color: var(--bstrip-fg);
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
}
/* Renk geçişli arka plan — tonlar ana renkten türetilir, yavaşça kayar */
.banner-strip.bstrip-bg-gradient {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--bstrip-base) 55%, #000) 0%,
    color-mix(in srgb, var(--bstrip-base) 78%, #000) 25%,
    var(--bstrip-base) 50%,
    color-mix(in srgb, var(--bstrip-base) 72%, #fff) 75%,
    color-mix(in srgb, var(--bstrip-base) 55%, #000) 100%);
  background-size: 200% 100%;
  animation: bstripGradient 14s linear infinite;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .28);
}
/* İki renkli geçiş — ikinci renk girildiğinde devreye girer.
   Beş durak: koyu → 2. renk → ana renk → açık → koyu.
   Baş ve son aynı olduğu için döngü kesintisiz görünür.
   Animasyon .bstrip-bg-gradient'ten miras alınır (14s linear infinite). */
.banner-strip.bstrip-bg-gradient.bstrip-duo {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--bstrip-base) 55%, #000) 0%,
    var(--bstrip-base2) 25%,
    var(--bstrip-base) 50%,
    color-mix(in srgb, var(--bstrip-base2) 70%, #fff) 75%,
    color-mix(in srgb, var(--bstrip-base) 55%, #000) 100%);
  background-size: 200% 100%;
}
@keyframes bstripGradient {
  from { background-position: 0 0; }
  to   { background-position: 200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .banner-strip.bstrip-bg-gradient { animation: none; }
}
.bstrip-icon { font-size: 1.05em; opacity: .95; }
/* Gölge seçeneği (admin → Gölge: Yok / Az / Orta / Çok).
   Negatif yayılım gölgeyi aşağı doğru tutar; üstteki şeride taşmaz. */
.banner-strip.bstrip-sm,
.banner-strip.bstrip-md,
.banner-strip.bstrip-lg { position: relative; }
.banner-strip.bstrip-sm { box-shadow: 0 3px  8px -4px rgba(0, 0, 0, .22); }
.banner-strip.bstrip-md { box-shadow: 0 6px 14px -5px rgba(0, 0, 0, .32); }
.banner-strip.bstrip-lg { box-shadow: 0 12px 26px -8px rgba(0, 0, 0, .45); }
.banner-strip .bstrip-link { color: inherit; text-decoration: none; display: block; }
.banner-strip .bstrip-link:hover { opacity: .9; }
.bstrip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: var(--bstrip-pad, 9px);
  padding-bottom: var(--bstrip-pad, 9px);
  text-align: center;
}
.bstrip-title { font-weight: 700; }
.bstrip-sub   { opacity: .85; }
.bstrip-pos-hero_bottom { margin-top: 0; }

/* Kayan yazı — içerik iki kez basılır, yarısı kadar kaydırılır (kesintisiz döngü) */
.bstrip-marquee { padding: var(--bstrip-pad, 9px) 0; width: 100%; }
.bstrip-track {
  display: flex;
  /* Şerit ekran genişliğinde: iki kopya birlikte en az iki ekran eder,
     böylece kısa metinlerde de kayan alan tüm genişliği kaplar. */
  min-width: 200%;
  white-space: nowrap;
  will-change: transform;
  animation: bstripScroll var(--bstrip-speed, 24s) linear infinite;
}
.bstrip-track:hover { animation-play-state: paused; }
.bstrip-seq {
  /* Boş alan iki kopya arasında eşit bölünür → her biri tam ekran genişliği */
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  /* Tek öğede ortalar, birden fazlaysa aralarına eşit boşluk bırakır */
  justify-content: space-evenly;
}
/* Aynı konumdaki her kayan yazı, aynı şeritte peş peşe akan bir öğedir */
.bstrip-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  white-space: nowrap;
}
a.bstrip-item { color: inherit; text-decoration: none; }
a.bstrip-item:hover { opacity: .85; }
@keyframes bstripScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .bstrip-track { animation: none; }
}

/* Nav */
.main-nav {
  background: var(--primary);
  display: block;
  position: sticky;
  top: 0;
  z-index: 500;
  /* Gölge yok: header'daki gölgeyle birlikte kaldırıldı, kaydırırken
     menü şeridinin altında koyu bir bant oluşuyordu. */
  box-shadow: none;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  overflow: visible;
}
/* Menü hizası — admin → Header Stili → Menü Hizası */
.main-nav.nav-align-left   .nav-inner,
.mh-nav.nav-align-left     .nav-inner { justify-content: flex-start; }
.main-nav.nav-align-center .nav-inner,
.mh-nav.nav-align-center   .nav-inner { justify-content: center; }
.main-nav.nav-align-right  .nav-inner,
.mh-nav.nav-align-right    .nav-inner { justify-content: flex-end; }

/* Minimal header: menü şeridi logoyla aynı arka planı paylaştığı için
   bağlantı metni fazladan içeri kaymamalı.
   Şeridin başındaki/sonundaki bağlantı boşluğu, şeridin kendisini o kadar
   dışarı çekerek kapatılıyor. Önceden ilk/son bağlantının yan dolgusu
   sıfırlanıyordu; o bağlantı aktif olduğunda vurgu kutusu bir yanda dar,
   öbür yanda geniş kalıp kayık görünüyordu. Negatif boşluk kaydırma
   kutusunun kendisine verildiği için içerik de kırpılmıyor. */
/* Logo ile kategori şeridi arasındaki boşluk yönetilebilir
   (admin → Header Stili → Menü Boşluğu). .mh-inner'ın 16px sütun
   boşluğu zaten var; ayar o değere göre düzeltiliyor. */
.minimal-header .mh-nav { margin-left: calc(var(--mh-nav-gap, 14px) - 16px); }
.minimal-header .mh-nav.nav-align-right { margin-right: -14px; }

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  white-space: nowrap;
  transition: all var(--transition);
  position: relative;
  /* Şeffaf alt çizgi hep duruyor — hover/active'de yalnızca rengi değişir,
     böylece yükseklik oynamaz ve yazılar dikeyde ortalı kalır.
     Kalınlık admin → Header Stili → Menü Alt Çizgisi ayarından gelir;
     kapalıyken 0 olur ve hover/active'de de çizgi çıkmaz. */
  border-bottom: var(--nav-underline, 3px) solid transparent;
}
.nav-link:hover,
.nav-link.active {
  color: #fff;
  border-bottom-color: rgba(255,255,255,.7);
  /* Arka plan admin → Header Stili → Menü Vurgu Rengi'nden gelir */
  background: var(--nav-hover-bg, rgba(255,255,255,.1));
}

/* ── Kategori Dropdown ───────────────────────────── */
.nav-item-wrap {
  position: relative;
  display: inline-flex;
  align-items: stretch;
}
.nav-item-wrap .nav-dropdown {
  display: none;
  position: fixed;
  top: -9999px;
  left: -9999px;
  min-width: 190px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
  z-index: 99999;
  padding: 4px 0;
}
.nav-dropdown-link {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  transition: background .15s, color .15s;
  border-left: 3px solid transparent;
}
.nav-dropdown-link:hover,
.nav-dropdown-link.active {
  background: var(--primary-10);
  color: var(--primary);
  border-left-color: var(--primary);
}
/* Sığmayan kategorilerin toplandığı "Diğer" öğesi.
   .nav-link ve .nav-item-wrap inline-flex olduğu için tarayıcının
   [hidden] kuralını eziyorlar — gizleme açıkça yazılmalı. */
#mainNav .nav-inner > [hidden] { display: none; }
.nav-more .nav-more-btn { cursor: pointer; }
.nav-more-menu { max-width: min(320px, 92vw); }
.nav-more-menu .nav-dropdown-link { white-space: normal; }

.nav-link-arrow {
  margin-left: 5px;
  font-size: 9px;
  opacity: .75;
  transition: transform .2s;
}
.nav-item-wrap:hover .nav-link-arrow { transform: rotate(180deg); }
/* Sidebar alt kategori hiyerarşi */
.filter-suboption {
  font-size: 13px;
  color: var(--text-muted);
}
.filter-suboption:hover { color: var(--primary); }
.filter-suboption.active {
  background: var(--primary-10);
  color: var(--primary);
  font-weight: 600;
}

/* Hiyerarşi wrapper — her seviyede sol çizgi + girinti */
.filter-suboption-group {
  border-left: 2px solid var(--border);
  margin-left: 14px;
  margin-top: 2px;
  margin-bottom: 2px;
  padding-top: 2px;
}
.filter-suboption-group .filter-suboption-group {
  border-left-color: var(--primary-20);
}

/* Minimal header nav */


/* Centered nav */
.centered-nav { background: var(--primary); }
.centered-nav .nav-inner { justify-content: center; }

/* Cart Badge */
.cart-btn { position: relative; }
.cart-badge {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 18px; height: 18px;
  /* Renk admin → Ayarlar → Site Teması → Rozet Rengi'nden gelir */
  background: var(--badge-bg, #ef4444);
  color: var(--badge-fg, #fff);
  font-size: 11px;
  font-weight: 700;
  /* Köşeler buton ayarını izler (admin → Buton Köşeleri) */
  border-radius: var(--btn-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* Mobile Menu */
.mobile-menu-btn { display: none; }
/* Mobil arama aç/kapat ikonu — masaüstünde arama kutusu zaten görünür */
.search-toggle-btn { display: none; }

/* ── Header arama modu (admin → Header Stili → Header Arama) ──
   hsearch-open   : kutu hep açık, ikona gerek yok
   hsearch-toggle : kutu gizli, arama ikonuna basınca ikonun solundan açılır

   Satır içi kap üç stilde de arama düğmesinin hemen solunda duruyor;
   kutu genişliğini 0'dan açtığı için ikondan çıkıyormuş gibi görünür.
   Ortada beliren kutu, basılan düğmeden kopuk duruyordu. */
.hdr-search-inline { display: none; align-items: center; min-width: 0; }
.hdr-search-inline .search-form {
  flex: 0 0 auto;
  width: 0;
  margin: 0;
  opacity: 0;
  border-width: 0;
  /* overflow:hidden .search-form'da zaten var — daralırken içerik kırpılır */
  transition: width .24s ease, opacity .18s ease;
}
.hdr-search-inline .search-input { padding-left: 12px; padding-right: 2px; }

body.hsearch-toggle .search-toggle-btn,
body.hsearch-toggle .hdr-search-inline { display: flex; }
body.hsearch-toggle .search-open .hdr-search-inline .search-form {
  width: clamp(200px, 26vw, 360px);
  max-width: 60vw;
  opacity: 1;
  border-width: 1.5px;
}
/* Bu modda stilin kendi yerleşik kutusu (ortadaki / soldaki / alttaki) kapalı */
body.hsearch-toggle .classic-header .header-top-inner > .search-form,
body.hsearch-toggle .centered-header .header-side:first-child,
body.hsearch-toggle .minimal-header .mh-search { display: none; }

/* Minimal'de "açık gelsin": minimal'in yerleşik masaüstü kutusu yok,
   satır içi kap baştan genişlemiş durur ve ikon gereksizleşir */
body.hsearch-open .minimal-header .hdr-search-inline { display: flex; }
body.hsearch-open .minimal-header .hdr-search-inline .search-form {
  width: var(--header-search-w, 300px);
  max-width: 100%;
  opacity: 1;
  border-width: 1.5px;
}
body.hsearch-open .minimal-header .search-toggle-btn { display: none; }
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 950;
}
.mobile-nav {
  position: fixed;
  top: 0; left: 0;
  width: 280px; height: 100%;
  background: var(--surface);
  z-index: 960;
  transform: translateX(-100%);
  transition: transform .25s ease;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0,0,0,.15);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-overlay.open { display: block; }
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Dikey boşluk ve logo yüksekliği admin → Header Stili'nden gelir */
  padding: var(--mnav-py, 18px) 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 17px;
}
/* Mobil menü logosu — tanımlıysa firma adının yerini alır */
.mobile-nav-logo { display: inline-flex; align-items: center; min-width: 0; }
.mobile-nav-logo img { max-height: var(--mnav-logo-h, 34px); max-width: 170px; width: auto; object-fit: contain; }
.mobile-nav-link {
  display: block;
  /* Yazı boyutu ve dikey boşluk admin → Header Stili'nden gelir */
  padding: var(--mnav-link-py, 14px) 20px;
  border-bottom: 1px solid var(--border);
  font-size: var(--mnav-link-fs, 15px);
  color: var(--text);
  transition: all var(--transition);
}
.mobile-nav-link:hover { background: var(--primary-10); color: var(--primary); padding-left: 28px; }
/* Bulunulan sayfa — sol kenardaki çizgi yerleşimi kaydırmaz (hover'daki
   padding sıçraması aktif bağlantıda istenmez). */
.mobile-nav-link.active {
  background: var(--primary-10);
  color: var(--primary);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--primary);
}
/* Sabit menü öğelerindeki ikonlar tek sütunda hizalı dursun */
.mobile-nav-link > i {
  display: inline-block;
  width: 18px;
  text-align: center;
  margin-right: 6px;
  opacity: .75;
}
.mobile-nav-link.active > i { opacity: 1; }
/* Kategori/sayfa işareti: alt öğesi olan "+", olmayan "-".
   Sabit genişlik + küçük punto — metin hizası bozulmaz. */
.mobile-nav-link > i.mnav-mark {
  display: inline-block;
  width: 14px;
  text-align: center;
  margin-right: 8px;
  font-size: 10px;
  opacity: .45;
  vertical-align: middle;
}
.mobile-nav-link.active > i.mnav-mark { opacity: .85; }

/* ── Main ───────────────────────────────────────────── */
.site-main { flex: 1; }

/* ── Cards ──────────────────────────────────────────── */
.product-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  border: var(--card-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(var(--primary-rgb),.18);
}
.product-card-img {
  width: 100%;
  /* Yükseklik ayardan gelir: 100 = kare, 130 = %30 daha uzun (ayarlar → ürün resmi) */
  aspect-ratio: 100 / var(--card-img-h, 100);
  object-fit: contain;
  object-position: center;
  padding: 12px;
  background: #fff;
  flex-shrink: 0;
  display: block;
}
/* ── Resim Doldur modu ─── */
.img-fit-cover .product-card-img {
  object-fit: cover;
  object-position: center;
  padding: 0;
}
.product-card-img-wrap {
  position: relative;
  overflow: hidden;
  background: #fff;
}
.img-fit-cover .product-card-img-wrap { background: var(--bg); }
/* İndirim yüzdesi rozeti — kart görselinin sol üst köşesi */
/* ── Galeri içi video ────────────────────────────────────── */
.gallery-main { position: relative; }
.gallery-video {
  /* Akış içinde durur: yükseklik videonun kendi oranından gelir,
     görselin yüksekliğine bağlı kalmaz. */
  position: relative;
  width: 100%;
  /* Başlangıç değeri; gerçek oran site.js'te videodan okunup yazılıyor. */
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: inherit;
  overflow: hidden;
}
.gallery-video iframe,
.gallery-video video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: contain;
  background: #000;
}
.gallery-thumb--video { position: relative; }
.gallery-thumb--video .gt-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(15, 23, 42, .38);
  pointer-events: none;
}
.gallery-thumb--video:not(:has(img)) { background: #0f172a; }

/* Kartta "video var" rozeti — indirim rozetiyle aynı köşede, ikisi varsa alt alta */
.card-video {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(15, 23, 42, .72);
  color: #fff;
  border-radius: var(--btn-radius, 8px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
  pointer-events: none;
}
.card-video--alt { top: 40px; }
.card-video svg { display: block; }

.card-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: var(--badge-bg, #ef4444);
  color: var(--badge-fg, #fff);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  padding: 3px 9px 2px 9px;
  /* Köşe yuvarlaması admin → Ayarlar → Buton Köşeleri ayarından gelir */
  border-radius: var(--btn-radius, 8px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
  pointer-events: none;
}
.product-card-img-wrap:hover .product-card-overlay { opacity: 1; }

/* ── Onay kutusu (siteConfirm) ─────────────────────── */
.sc-overlay {
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(15, 23, 42, .5);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; transition: opacity .18s ease;
}
.sc-overlay.is-open { opacity: 1; }
.sc-box {
  background: var(--bg, #fff);
  border-radius: 16px;
  padding: 28px 24px 20px;
  width: 100%; max-width: 380px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
  transform: translateY(10px) scale(.97);
  transition: transform .18s ease;
}
.sc-overlay.is-open .sc-box { transform: translateY(0) scale(1); }
.sc-icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.sc-icon svg { width: 34px; height: 34px; }
.sc-icon-warning  { background: #fef3c7; color: #d97706; }
.sc-icon-question { background: var(--primary-10, #eef2ff); color: var(--primary, #4f46e5); }
.sc-icon-success  { background: #d1fae5; color: #059669; }
.sc-icon-danger   { background: #fee2e2; color: #dc2626; }
.sc-title { font-size: 19px; font-weight: 700; color: var(--text, #111827); }
.sc-text  { font-size: 14px; color: var(--text-muted, #6b7280); margin-top: 8px; line-height: 1.6; }
.sc-actions { display: flex; gap: 10px; margin-top: 22px; }
.sc-btn {
  flex: 1; padding: 11px 16px; border-radius: var(--btn-radius, 10px);
  font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid var(--border, #e5e7eb);
  background: var(--bg-alt, #f8fafc); color: var(--text, #111827);
  transition: filter .15s ease, background .15s ease;
}
.sc-btn:hover { filter: brightness(.97); }
.sc-ok { background: var(--primary, #4f46e5); border-color: var(--primary, #4f46e5); color: #fff; }
.sc-ok.sc-danger { background: #dc2626; border-color: #dc2626; }

/* Galeri geçiş katmanı: yeni görsel hafif kayarak belirir (crossfade + slide) */
.pc-img-alt {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity .32s ease, transform .32s ease;
}
@media (prefers-reduced-motion: reduce) {
  .pc-img-alt { transition-duration: .01ms; }
}

/* ── Kart galerisi: görsel sayısı kadar nokta (sağ alt) ── */
.pc-dots {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: flex;
  gap: 5px;
  z-index: 3;
}
.pc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .22);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .6);
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.pc-dot:hover { background: rgba(0, 0, 0, .45); }
.pc-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

/* Görselin üzerine gelince çıkan sağ/sol oklar */
.pc-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, background .15s ease;
  cursor: pointer;
  z-index: 4;
}
.pc-nav:hover { background: #fff; }
.pc-prev { left: 8px; }
.pc-next { right: 8px; }
.product-card-img-wrap:hover .pc-nav,
.gallery-main:hover .pc-nav { opacity: 1; pointer-events: auto; }
/* Dokunmatik cihazlarda hover yok: oklar sürekli görünür ama daha küçük */
@media (hover: none) {
  .pc-nav {
    opacity: 1;
    pointer-events: auto;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, .85);
    box-shadow: 0 1px 5px rgba(0, 0, 0, .16);
  }
  .pc-nav svg { width: 12px; height: 12px; }
  .pc-prev { left: 5px; }
  .pc-next { right: 5px; }

  .gallery-main .pc-nav { width: 30px; height: 30px; }
  .gallery-main .pc-nav svg { width: 15px; height: 15px; }
  .gallery-main .pc-prev { left: 8px; }
  .gallery-main .pc-next { right: 8px; }
}
.product-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(var(--primary-rgb),.12);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.product-card-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-cat {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 0;
}
.product-card-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.compare-price {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: line-through;
}
.product-card-footer { padding: 0 14px 14px; }
/* "Stok tükendi" — düz yazı yerine rozet, "Son N adet!" ile aynı biçim */
.out-of-stock {
  display: inline-block;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  /* Köşeler buton ayarını izler (admin → Buton Köşeleri) */
  border-radius: var(--btn-radius);
  white-space: nowrap;
}
/* Fiyat satırının en sağına yaslanır (kart gövdesinde fiyatla aynı satırda) */
.product-card-price .badge-stock-low,
.product-card-price .out-of-stock { margin-left: auto; margin-bottom: 0; }
.badge-stock-low {
  display: inline-block;
  background: #fef9c3;
  color: #a16207;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  /* Köşeler buton ayarını izler (admin → Buton Köşeleri) */
  border-radius: var(--btn-radius);
  margin-bottom: 8px;
}

/* Product Grid */
.product-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(var(--grid-cols, 4), 1fr);
}

/* Bölümde sütun sayısından az ürün varsa: kartlar sütunu doldurmak
   için şişmesin — normal genişlikte kalıp satır ortalansın. Sütun
   genişliği tam ızgaradakiyle aynı hesaplanıyor (100% eksi boşluklar). */
.product-grid--few {
  grid-template-columns: repeat(
    var(--few-count, 1),
    minmax(0, calc((100% - (var(--grid-cols, 4) - 1) * 20px) / var(--grid-cols, 4)))
  );
  justify-content: center;
}

/* ── Slider / Banner ─────────────────────────────────── */
.slider-wrap {
  position: relative;
  overflow: hidden;
  background: var(--primary-10);
}
.slider-wrap.boxed { max-width: 1280px; margin: 0 auto; border-radius: var(--radius-lg); }
.slider-wrap.full-width {
  width: 100%;
  border-radius: 0 !important;
}
/* ── Vitrin — yanyana çok slaytlı carousel ──────────── */
.slider-wrap.vitrin {
  background: transparent;
  overflow: hidden;
}
.slider-wrap.vitrin .slider-inner {
  align-items: stretch;
  transition: transform .4s ease;
}
.slider-wrap.vitrin .slide {
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
}
.slider-wrap.vitrin.vitrin-full,
.slider-wrap.vitrin.vitrin-full .slide { border-radius: 0; }
.slider-wrap.vitrin .slide img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.slider-inner {
  display: flex;
  height: 100%;
  transition: transform .45s ease;
}
.slide {
  min-width: 100%;
  width: 100%;
  height: 100%;
  position: relative;
  flex-shrink: 0;
  /* Metin karartması (.slide-content::before) 100vw genişliğinde; kırpılmazsa
     komşu slayda taşıp görünen slaydın kenarını karartıyordu. */
  overflow: hidden;
}
.slide[data-href] { cursor: pointer; }
.slide img,
/* Video da görselle aynı kutuyu dolduruyor: slider yüksekliği ve
   "resim görünümü" ayarı ikisi için de geçerli olsun. */
.slide .banner-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}
/* Slider resmi görünümü — admin "Slider Resmi Görünümü" ayarı */
.slider-wrap.slider-fit-contain .slide img,
.slider-wrap.slider-fit-contain .slide video.banner-video,
.slider-wrap.slider-fit-contain.vitrin .slide img { object-fit: contain; }
.slider-wrap.slider-fit-cover   .slide img,
.slider-wrap.slider-fit-cover   .slide video.banner-video,
.slider-wrap.slider-fit-cover.vitrin   .slide img { object-fit: cover; }
.slider-wrap.slider-fit-none    .slide img,
.slider-wrap.slider-fit-none    .slide video.banner-video,
.slider-wrap.slider-fit-none.vitrin    .slide img { object-fit: none; }
/* Tam Genişlik — resim %100 ende, doğal yükseklikte (kırpılmaz); slider yüksekliği yerine resim boyu belirler.
   Yükseklik "Sabit" seçiliyse bu kural devre dışı kalır; girilen px değeri geçerli olur. */
.slider-wrap.slider-fit-fullwidth:not(.vitrin):not(.slider-h-fixed),
.slider-wrap.slider-fit-fullwidth:not(.vitrin):not(.slider-h-fixed) .slider-inner,
.slider-wrap.slider-fit-fullwidth:not(.vitrin):not(.slider-h-fixed) .slide { height: auto; }
.slider-wrap.slider-fit-fullwidth:not(.slider-h-fixed) .slide img { width: 100%; height: auto; object-fit: fill; }
/* Sabit yükseklik + Tam Genişlik: resim alanı doldurur, oranı bozulmaz */
.slider-wrap.slider-fit-fullwidth.slider-h-fixed .slide img { width: 100%; height: 100%; object-fit: cover; }
/* Slider metin katmanı — karartma ve konum admin ayarlarından gelir
   (--slider-overlay, --slider-align, --slider-text-align) */
.slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: var(--slider-align, flex-start);
  justify-content: center;
  text-align: var(--slider-text-align, left);
  /* İçerik container ile aynı hizada dursun */
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px;
  color: #fff;
}
/* Karartma ayrı katmanda: metin hizası değişse de tüm resmi kaplar */
.slide-content::before {
  content: '';
  position: absolute;
  inset: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: none;
  background: var(--slider-overlay, rgba(0,0,0,.45));
  pointer-events: none;
}
.slide-content > * { position: relative; z-index: 1; }
.slide-content h2 { font-size: clamp(22px, 4vw, 48px); font-weight: 800; margin-bottom: 12px; }
.slide-content p  { font-size: clamp(14px, 2vw, 20px); margin-bottom: 24px; opacity: .9; max-width: 500px; }

.slider-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 60%, #000) 100%);
  color: #fff;
}
.slider-placeholder-inner { text-align: center; }
.slider-placeholder-inner h2 { font-size: clamp(20px, 4vw, 42px); font-weight: 800; margin-bottom: 12px; }
.slider-placeholder-inner p  { font-size: clamp(14px, 2vw, 18px); opacity: .8; margin-bottom: 24px; }

.slider-controls { display: flex; gap: 8px; margin-top: 16px; }
.slider-btn-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  pointer-events: none;
}
.slider-nav-btn {
  pointer-events: all;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  transition: all var(--transition);
}
.slider-nav-btn:hover { background: #fff; transform: scale(1.1); }
.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.slider-dot {
  /* Daire garanti: esnek kapta yalnız width/height yetmiyor — flex-shrink
     yatayda, align-items:stretch dikeyde eziyordu. min/max ile ölçü
     kilitlenir, flex-basis sabitlenir. */
  width: 8px; height: 8px;
  min-width: 8px; max-width: 8px;
  min-height: 8px; max-height: 8px;
  flex: 0 0 8px;
  align-self: center;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all var(--transition);
}
.slider-dot.active {
  background: #fff;
  width: 24px;
  min-width: 24px; max-width: 24px;
  flex-basis: 24px;
  border-radius: 4px;
}

/* Mobil: nokta şeridi dar ekranda taşıp alt alta biniyordu. Tek satırda
   kalır, küçülür ve arkasına hafif bir şerit alarak açık görsellerde de
   okunur olur. */
@media (max-width: 768px) {
  .slider-dots {
    /* Şerit hem alta yaklaşsın hem alçak kalsın: dolgu inceltildi,
       noktalar dikeyde ortalandı. */
    bottom: 6px;
    gap: 6px;
    align-items: center;
    flex-wrap: nowrap;
    max-width: calc(100% - 32px);
    overflow: hidden;
    padding: 3px 8px;
    line-height: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, .35);
  }
  .slider-dot {
    width: 6px; height: 6px;
    min-width: 6px; max-width: 6px;
    min-height: 6px; max-height: 6px;
    flex: 0 0 6px;
  }
  .slider-dot.active {
    width: 18px;
    min-width: 18px; max-width: 18px;
    flex-basis: 18px;
    border-radius: 3px;
  }
}

/* Heights */
.slider-h-sm  { height: 240px; }
.slider-h-md  { height: 380px; }
.slider-h-lg  { height: 520px; }
.slider-h-full { height: min(600px, 55vw); }
/* Sabit yükseklik — gerçek değer tema CSS'inden gelir (admin → Slider Yüksekliği: Sabit).
   Buradaki değer yalnızca tema CSS'i yüklenemezse devreye giren yedektir. */
.slider-h-fixed { height: 380px; }

/* ── Section ────────────────────────────────────────── */
.section { padding: 60px 0; }
.section-sm { padding: 40px 0; }
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}
.section-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 40px; height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin-top: 6px;
}
.section-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.section-link:hover { gap: 8px; }

/* ── Category Cards ─────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(var(--home-cat-cols, 4), minmax(0, 1fr));
  gap: 16px;
}
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  border: var(--card-border);
  transition: all var(--transition);
  text-align: center;
}
.category-card:hover {
  background: var(--primary-10);
  color: var(--primary);
  transform: translateY(-3px);
}
.category-card-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--primary-10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 24px;
}
.category-card-name { font-size: 14px; font-weight: 600; }
.category-card-count { font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* Resimli kategori kartı */
.category-card.category-card-img { padding: 0; overflow: hidden; }
.category-card.category-card-img .category-card-img-wrap {
  width: 100%; aspect-ratio: 1/1; overflow: hidden;
}
.category-card.category-card-img .category-card-thumb {
  width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease;
}
/* Kategori kart resmi görünümü — panelden seçilir (Sığdır / Doldur).
   "Sığdır"da resmin tamamı görünür; boşta kalan alan kart zeminiyle dolar,
   yoksa şeffaf kalıp altındaki yazıyı gösteriyordu. */
.cat-fit-contain .category-card.category-card-img .category-card-thumb {
  object-fit: contain;
  background: var(--bg-soft, #f8fafc);
}
/* "Sığdır"da büyüterek kırpmak resmi kesiyor; yakınlaştırma kapatılır */
.cat-fit-contain .category-card.category-card-img:hover .category-card-thumb {
  transform: none;
}
.category-card.category-card-img:hover .category-card-thumb { transform: scale(1.06); }
.category-card.category-card-img .category-card-name,
.category-card.category-card-img .category-card-count {
  padding: 0 12px;
}
.category-card.category-card-img .category-card-name { padding-top: 10px; }
.category-card.category-card-img .category-card-count { padding-bottom: 12px; }


/* ── Hero altı vitrin şeridi ────────────────────────────
   Instagram "öne çıkanlar" düzeni. Öge genişliği SABİT bir oranla
   hesaplanıyor (esnek ızgara değil): masaüstünde 12, mobilde 4 tane ekrana
   sığar, fazlası yatay kaydırmayla gelir. Böylece 8 kayıtla 20 kayıt aynı
   büyüklükte görünür — esnek ızgarada her ekleme şeridi yeniden boyutlar. */
.showcase { padding: 22px 0 4px; }
.showcase__row {
  display: flex;
  gap: var(--showcase-gap, 14px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  /* overflow-x kutuyu DİKEYDE de kırpar: üstte yer bırakılmazsa üzerine
     gelince yukarı kalkan halkanın çerçevesi tepeden kesiliyordu. */
  padding-top: 6px;
  padding-bottom: 8px;
  /* Kaydırma çubuğu şeridi bozmasın; dokunmatikte zaten görünmüyor */
  scrollbar-width: thin;
}
.showcase__row::-webkit-scrollbar { height: 6px; }
.showcase__row::-webkit-scrollbar-thumb {
  background: var(--border, #e5e7eb); border-radius: 3px;
}
.showcase__row::-webkit-scrollbar-track { background: transparent; }

.showcase__item {
  /* Bağlantısız öge <button>: tarayıcı varsayılanları temizlenir */
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  --showcase-cols: 12;
  flex: 0 0 calc(
    (100% - (var(--showcase-cols) - 1) * var(--showcase-gap, 14px)) / var(--showcase-cols)
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  min-width: 0;
}

/* Halka: Instagram'daki gibi görselin çevresinde ince bir çerçeve */
.showcase__ring {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  /* Esnek öğenin otomatik en-küçük boyu (min-height:auto) içeriğin kendi
     boyudur; dikey bir görselde bu, aspect-ratio'nun verdiği yüksekliği
     eziyor ve daire elipse dönüyordu. Sıfırlanınca oran hep geçerli. */
  min-height: 0;
  flex: 0 0 auto;
  border-radius: 50%;
  padding: 3px;
  box-sizing: border-box;
  background: var(--surface, #fff);
  border: 2px solid var(--border, #e5e7eb);
  transition: border-color .18s ease, transform .18s ease;
  display: block;
}
/* Yukarı kalkma yalnız gerçek imleçte: dokunmatikte :hover dokunuştan sonra
   üzerinde kalıyor ve öge asılı duruyor. Renk değişimi her yerde geçerli. */
.showcase__item:hover .showcase__ring { border-color: var(--primary, #6366f1); }
@media (hover: hover) and (pointer: fine) {
  .showcase__item:hover .showcase__ring { transform: translateY(-2px); }
}
.showcase__img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.showcase__name {
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  color: var(--text, #111827);
  /* Uzun ad şeridi bozmasın: iki satırda kesilir */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.showcase__item:hover .showcase__name { color: var(--primary, #6366f1); }

@media (max-width: 768px) {
  .showcase { padding: 16px 0 2px; }
  .showcase__row { gap: 12px; }
  .showcase__item { --showcase-cols: 4; --showcase-gap: 12px; }
  .showcase__name { font-size: 11px; }
}



/* ── Vitrin hikâye görüntüleyici ────────────────────────
   Bağlantısız ögeye tıklanınca açılan tam ekran görünüm. */
body.sc-story-open { overflow: hidden; }

.sc-story {
  position: fixed; inset: 0; z-index: 1200;
  background: #000;
  display: flex; flex-direction: column;
}
.sc-story[hidden] { display: none; }

.sc-story__bars {
  display: flex; gap: 4px;
  padding: 12px 12px 6px;
  flex-shrink: 0;
}
.sc-story__bar {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,.32);
  overflow: hidden;
}
.sc-story__bar i {
  display: block; height: 100%; width: 0;
  background: #fff;
}

.sc-story__head {
  display: flex; align-items: center; gap: 12px;
  padding: 2px 14px 8px;
  flex-shrink: 0;
}
.sc-story__texts { flex: 1; min-width: 0; }
.sc-story__title {
  display: block;
  color: #fff; font-size: 14px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sc-story__sub {
  display: block;
  color: rgba(255,255,255,.78); font-size: 12px; line-height: 1.4;
  margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sc-story__sub[hidden] { display: none; }
.sc-story__close {
  width: 34px; height: 34px; flex-shrink: 0;
  border: none; background: transparent;
  color: #fff; font-size: 26px; line-height: 1;
  cursor: pointer; font-family: inherit;
}

.sc-story__stage {
  flex: 1; position: relative; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  /* Basılı tutunca durdurma dokunuşu kaydırmaya dönüşmesin */
  touch-action: pan-y;
}
.sc-story__img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  display: block;
  user-select: none; -webkit-user-drag: none;
}
/* Sol/sağ dokunma alanları — görünmez, Instagram'daki gibi */
.sc-story__nav {
  position: absolute; top: 0; bottom: 0;
  width: 32%;
  border: none; background: transparent;
  cursor: pointer; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.sc-story__prev { left: 0; }
.sc-story__next { right: 0; }

.sc-story__go {
  display: block;
  margin: 0 auto 22px;
  padding: 11px 26px;
  border-radius: 999px;
  background: #fff; color: #111827;
  font-size: 14px; font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
}
.sc-story__go[hidden] { display: none; }

@media (max-width: 768px) {
  .sc-story__go { margin-bottom: 18px; }
}

/* ── Banner Strip ───────────────────────────────────── */
.banner-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.banner-card {
  /* Yarıçap banner bazında ayarlanabilir; boşsa tema değeri */
  border-radius: var(--bcard-radius, var(--radius-md));
  overflow: hidden;
  position: relative;
  min-height: 180px;
  background: var(--primary-10);
}
.banner-card img,
.banner-card .banner-video { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
/* Kırpma kapalı: kart görselin kendi yüksekliğini alır. Sabit min-height ve
   ızgara gerdirmesi kalırsa görselin altında/üstünde zemin bandı kalıyordu. */
.banner-card.bfit-contain {
  min-height: 0;
  background: transparent;
  align-self: start;
}
.banner-card.bfit-contain img,
.banner-card.bfit-contain .banner-video {
  object-fit: contain;
  height: auto;
}

/* Gömülü oynatıcı (YouTube/Vimeo) object-fit bilmiyor: kutuyu kaplaması
   için en-boy oranı korunarak esnetiliyor. */
.banner-video--embed { aspect-ratio: 16 / 9; min-height: 100%; }
.banner-card-link { display: block; height: 100%; }
/* Resimli banner gölgesi (admin → Gölge). Kart zaten overflow:hidden olduğu
   için gölge dışa düşer; yarıçapla uyumlu kalması adına kart üzerinde. */
/* Aynı kademeler hero slider çerçevesinde de geçerli (gölgesi olan ilk banner).
   z-index şart: sonraki bölümün zemini gölgenin üstünü örtüyordu. */
.slider-wrap[class*="bshadow-"] { z-index: 1; }
/* Görünür payı kalmadığında gölge tamamen kapanır (site.js) */
.slider-wrap.slider-shadow-off { box-shadow: none; }
/* Saydamlık değişkene bağlı: slider yapışkan header'ın arkasına girerken
   gölge kademeli söner, header'ın altında çizgi gibi durmaz (site.js). */
.slider-wrap.bshadow-sm { box-shadow: 0 3px  10px -5px rgba(0, 0, 0, calc(.25 * var(--slider-shadow-a, 1))); }
.slider-wrap.bshadow-md { box-shadow: 0 8px  18px -7px rgba(0, 0, 0, calc(.35 * var(--slider-shadow-a, 1))); }
.slider-wrap.bshadow-lg { box-shadow: 0 16px 32px -10px rgba(0, 0, 0, calc(.48 * var(--slider-shadow-a, 1))); }

.banner-card.bshadow-sm { box-shadow: 0 3px  10px -5px rgba(0, 0, 0, .25); }
.banner-card.bshadow-md { box-shadow: 0 8px  18px -7px rgba(0, 0, 0, .35); }
.banner-card.bshadow-lg { box-shadow: 0 16px 32px -10px rgba(0, 0, 0, .48); }
.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.55) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #fff;
}
.banner-overlay h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.banner-overlay p  { font-size: 13px; opacity: .85; margin-bottom: 10px; }
.banner-card:hover .banner-overlay { background: linear-gradient(0deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.1) 100%); }

/* Yazı gölgesi (admin → Banner → Görünürlük). Açık görsellerde başlık
   okunmuyordu; kart gölgesinden bağımsız, üç kademe. */
/* Hero slaytı: başlık, alt başlık ve buton */
.slide.btshadow-sm .slide-content h2,
.slide.btshadow-sm .slide-content p,
.slide.btshadow-sm .slide-content .btn { text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.slide.btshadow-md .slide-content h2,
.slide.btshadow-md .slide-content p,
.slide.btshadow-md .slide-content .btn { text-shadow: 0 2px 5px rgba(0, 0, 0, .6); }
.slide.btshadow-lg .slide-content h2,
.slide.btshadow-lg .slide-content p,
.slide.btshadow-lg .slide-content .btn { text-shadow: 0 3px 9px rgba(0, 0, 0, .75); }

.banner-card.btshadow-sm .banner-overlay h3,
.banner-card.btshadow-sm .banner-overlay p,
.banner-card.btshadow-sm .banner-overlay .btn { text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.banner-card.btshadow-md .banner-overlay h3,
.banner-card.btshadow-md .banner-overlay p,
.banner-card.btshadow-md .banner-overlay .btn { text-shadow: 0 2px 5px rgba(0, 0, 0, .6); }
.banner-card.btshadow-lg .banner-overlay h3,
.banner-card.btshadow-lg .banner-overlay p,
.banner-card.btshadow-lg .banner-overlay .btn { text-shadow: 0 3px 9px rgba(0, 0, 0, .75); }

/* ── Urunler / Category Page ─────────────────────────── */
.cat-page-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

/* Sidebar filter */
.filter-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  padding: 20px;
  /* Yapışkan değil: filtre listesi (kategoriler + Renk/Beden) ekrandan uzun
     olduğu için üstten sabitlenince alt kısmına hiç erişilemiyordu. Artık
     sayfayla birlikte kayıyor, tüm filtreler görülebiliyor. */
  position: static;
  align-self: flex-start;
}
.filter-sidebar h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.filter-group { margin-bottom: 20px; }
.filter-group h4 {
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  margin-bottom: 10px;
  /* Ölçüt başlıkları altı çizili — gruplar birbirinden ayrışsın */
  text-decoration: underline;
  text-underline-offset: 4px;
}
.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
}
.filter-option:hover { background: var(--primary-10); color: var(--primary); }
/* Seçili satırda dolgu yok: vurgu rengi zemin yerine yazıda */
.filter-option.active { background: transparent; color: var(--primary); font-weight: 400; }
.filter-option input[type=checkbox] { accent-color: var(--primary); }

/* Varyant özelliği filtreleri (Renk, Beden…) — çok seçimli, kutucuklu */
.filter-option--check { text-decoration: none; }
.filter-check {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  background: var(--surface);
  color: var(--primary);
}
.filter-option--check.active .filter-check { border-color: var(--primary); color: var(--primary); }
.filter-option-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.filter-group--variant h4 { text-transform: none; }

/* "Özellik filtrelerini temizle" — yıkıcı olmayan ama dikkat çeken bağlantı */
.filter-option--clear {
  color: #dc2626;
  font-weight: 400;
}
.filter-option--clear:hover { background: #dc26260f; color: #b91c1c; }

/* Alt kategori ağacını kök öğeden görsel ayır */
.filter-suboption-group {
  border-left: 2px solid var(--border);
  margin-left: 12px;
  margin-top: 2px;
  margin-bottom: 2px;
}

/* Top filter bar */
.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}
/* Ayarlar → Kategori Sayfası → Kategori Liste Görünümü: Minimalist
   Kart kabı kalkar, etiketler doğrudan sayfa üzerinde durur. */
.filter-bar--minimal {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
}

/* Breadcrumb satırının en sağındaki eylemler — .breadcrumb zaten flex */
.breadcrumb-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
/* "Stokta olanları göster" anahtarı */
.stock-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--transition);
}
.stock-toggle:hover { color: var(--text); }
.stock-toggle.is-on { color: var(--primary); }
.stock-toggle-track {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: var(--border);
  flex-shrink: 0;
  transition: background var(--transition);
}
.stock-toggle.is-on .stock-toggle-track { background: var(--primary); }
.stock-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: left var(--transition);
}
.stock-toggle.is-on .stock-toggle-knob { left: 18px; }

/* Kaydırmalı filtre şeridi — etiketler alt satıra inmez, yana kayar */
.filter-bar--scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.filter-bar--scroll > * { flex-shrink: 0; }
.filter-bar--scroll::-webkit-scrollbar { height: 4px; }
.filter-bar--scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }

/* Kenar çubuğu kullanılmayan stillerde düzen tek sütun akar */
.cat-page-layout--plain { display: block; }

/* Masaüstü / mobil için ayrı filtre stili seçilebilir — karşı kırılımda gizlenir */
@media (max-width: 768px) { .flt-desk, .desk-only { display: none !important; } }
@media (min-width: 769px) { .flt-mob,  .mob-only  { display: none !important; } }

/* Filtrele butonu ile sıralama kutusu sayfa başlığında yan yana */
.page-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.page-header-actions .sort-select { margin-left: 0; }
/* Buton ve kutu aynı yükseklikte dursun. Dikey padding yerine sabit yükseklik
   veriliyor: .btn-outline 2px, .sort-select 1px çerçeve taşıdığı için eşit
   padding aynı yüksekliği vermiyordu (box-sizing: border-box zaten global). */
.page-header-actions .sort-select,
.page-header-actions .btn {
  height: 36px;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1;
}
/* ── Görünüm seçici (mobil): kart 2 / kart 1 / liste ─────────────── */
.view-switch {
  display: inline-flex;
  align-items: stretch;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--btn-radius, 8px);
  overflow: hidden;
  flex-shrink: 0;
}
.view-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  color: var(--text-muted);
  background: var(--bg);
  transition: all var(--transition);
}
.view-switch-btn + .view-switch-btn { border-left: 1px solid var(--border); }
.view-switch-btn.is-on { background: var(--primary); color: #fff; }
/* İkonlar tek bir kutu içinde çubuklarla çizilir — ek dosya gerekmez */
.vs-ico { display: flex; gap: 2px; width: 16px; height: 14px; }
.vs-ico i { background: currentColor; border-radius: 1px; display: block; }
.vs-ico-2 i { flex: 1; }
.vs-ico-1 i { flex: 1; }
.vs-ico-l  { flex-direction: column; justify-content: space-between; }
.vs-ico-l i { height: 3px; width: 100%; }

/* Liste görünümü — kart yatay: görsel solda, bilgi ve buton sağda.
   Yalnızca mobilde geçerli; masaüstü ızgarası ayarlardan gelmeye devam eder.
   Izgara kullanılıyor çünkü flex satırda gövde ile buton yan yana düşerdi. */
@media (max-width: 768px) {
  .product-grid--list { grid-template-columns: 1fr; }
  .product-grid--list .product-card {
    display: grid;
    /* Yerleşim isimli alan yerine açık satır/sütun ile veriliyor —
       adlandırma çözülmediğinde öğeler tüm genişliğe yayılıp görselin
       altında kalıyordu. */
    grid-template-columns: 116px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
  }
  .product-grid--list .product-card-img-wrap {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: stretch;
    /* aspect-ratio YOK: stretch ile birlikte yükseklikten genişlik türetiyor,
       kutu 116px sütunu aşıp (position:relative olduğu için üstte boyanarak)
       yazıların solunu örtüyordu. Genişlik sabit, görsel içeride sığdırılır. */
    width: 116px;
    overflow: hidden;
    min-width: 0;
  }
  .product-grid--list .product-card-img {
    width: 100%;
    height: 100%;
    /* Temel kuraldaki aspect-ratio burada height:100% ile çakışır */
    aspect-ratio: auto;
    object-fit: contain;
    padding: 8px;
  }
  .product-grid--list .product-card-body {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    padding: 12px 14px 6px;
  }
  .product-grid--list .product-card-footer {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    padding: 0 14px 12px;
  }
  .product-grid--list .product-card-name { -webkit-line-clamp: 3; }
}

/* Ürün sayısı — mobilde stok anahtarı bu satıra girer */
.page-header-count { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-header-count p { margin: 0; }
@media (max-width: 768px) {
  /* Dar ekranda ikili tam genişliğe yayılır, kutu kalan alanı alır */
  .page-header-actions { width: 100%; margin-left: 0; }
  .page-header-actions .sort-select { flex: 1; min-width: 0; }
  /* Anahtar ürün sayısının sağına yaslanır */
  .page-header-count .stock-toggle { margin-left: auto; }
}

/* ── Filtre yan paneli (Ayarlar → Kategori Sayfası → Filtre Stili: Yan Panel) ──
   Ortada kutu yerine sağdan açılan tam yükseklikte panel: çok kategorili
   mağazalarda liste dikeyde akar, dar ekranda da kırpılmaz. */
.filter-drawer-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  margin-left: 4px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--btn-radius, 8px);
}
.filter-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 9400;
  background: rgba(15, 23, 42, .45);
  opacity: 0;
  transition: opacity .22s ease;
}
.filter-drawer-overlay[hidden] { display: none; }
.filter-drawer-overlay.is-open { opacity: 1; }
.filter-drawer {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(360px, 88vw);
  background: var(--surface);
  box-shadow: -8px 0 32px rgba(0, 0, 0, .18);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .24s cubic-bezier(.4, 0, .2, 1);
}
.filter-drawer-overlay.is-open .filter-drawer { transform: translateX(0); }
.filter-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.filter-drawer-head h3 { font-size: 16px; font-weight: 700; margin: 0; }
.filter-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  border-radius: var(--btn-radius, 8px);
  flex-shrink: 0;
}
.filter-drawer-close:hover { color: var(--text); background: var(--bg); }
/* Uzun kategori listesi panel içinde kayar — sayfa değil */
.filter-drawer-body {
  padding: 16px 20px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 0;
}
/* Üst bar filtrelerinde özellik adı — etiket değil, ayraç görevinde */
.filter-tag-label {
  display: inline-flex;
  align-items: center;
  padding: 5px 2px 5px 6px;
  font-size: 11.5px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  white-space: nowrap;
}
/* Kaydırmalı barda kategori ile özellikleri ayıran ince çizgi */
.filter-bar-sep {
  flex-shrink: 0;
  align-self: center;
  width: 1px;
  height: 20px;
  background: var(--border);
}

/* Özellik filtreleri kendi satırında, kategori etiketlerinden bir tık küçük */
.filter-bar--attrs { margin-top: -4px; }
.filter-bar--attrs .filter-tag { padding: 4px 10px; font-size: 12px; }
.filter-bar--attrs .filter-tag-label { font-size: 10.5px; }

.filter-tag {
  padding: 5px 12px;
  /* Köşeler buton ayarını izler (admin → Buton Köşeleri) */
  border-radius: var(--btn-radius);
  font-size: 13px;
  font-weight: 400;
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text);
}
.filter-tag:hover, .filter-tag.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* "Temizle" tema rengine boyanmamalı: filtre eklemekle aynı görünürse
   yıkıcı olduğu anlaşılmıyor. Kurallar .filter-tag:hover'dan SONRA gelir,
   yoksa aynı özgüllükte olduğu için tema rengi kazanıyordu. */
.filter-tag--clear,
.filter-tag--clear:hover {
  background: transparent;
  color: #dc2626;
  border-color: #fca5a5;
  font-weight: 400;
}
.filter-tag--clear:hover { background: #dc26260f; color: #b91c1c; border-color: #dc2626; }

/* ===== Select: macOS'ta input gibi görünsün =====
   Varsayılan `-webkit-appearance: menulist` ile <select> işletim sisteminin
   kendi denetimi olarak çizilir; macOS'ta bu denetim padding ve yüksekliği
   yok sayıp kendi kompakt ölçüsünü dayatır. Windows'ta uyduğu için fark
   yalnızca Mac'te görülüyordu: sıralama kutusu yanındaki butondan/inputtan
   belirgin şekilde küçük çıkıyordu.

   Yerel görünümü kapatıp oku kendimiz çiziyoruz. multiple/size'lı listelerde
   açılır ok olmadığı için onlara dokunulmuyor. */
select:not([multiple]):not([size]) {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-sizing: border-box;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px 14px;
  padding-right: 28px;
}

.sort-select {
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  outline: none;
  margin-left: auto;
}
.sort-select:focus { border-color: var(--primary); }

.cat-main { flex: 1; min-width: 0; }

/* ── Pagination ─────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 32px 0;
}
.page-btn {
  min-width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all var(--transition);
}
.page-btn:hover { background: var(--primary-10); color: var(--primary); border-color: var(--primary-50); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Product Detail ─────────────────────────────────── */
.product-detail-wrap {
  display: grid;
  gap: 48px;
  align-items: start;
}
.product-detail-wrap.layout-left { grid-template-columns: 1fr 1fr; }
.product-detail-wrap.layout-right { grid-template-columns: 1fr 1fr; direction: rtl; }
.product-detail-wrap.layout-right > * { direction: ltr; }
.product-detail-wrap.layout-top { grid-template-columns: 1fr; }

/* ── "Diğer" düzeni (panelden ayarlanır) ── */
.product-detail-wrap.layout-custom { grid-template-columns: 1fr 1fr; }
/* Alan sabitken galeri sütunu da içeriğe göre daralır (kutu + varsa küçük
   görsel şeridi); kalan genişliği ürün bilgisi alır. */
.product-detail-wrap.layout-custom.imgfixed { grid-template-columns: auto 1fr; }
.product-detail-wrap.layout-custom.side-right { direction: rtl; }
.product-detail-wrap.layout-custom.side-right > * { direction: ltr; }

/* Ölçü sınırı verilmişse kare oran bırakılır, görsel oranını koruyarak sığar */
.layout-custom .gallery-main {
  aspect-ratio: auto;
  max-height: var(--pd-img-max-h, none);
  max-width:  var(--pd-img-max-w, none);
  border: var(--pd-img-border, 0) solid var(--pd-img-border-color, transparent);
}

/* Alan sabitlenince ölçüler üst sınır değil kesin boyuttur: her üründe
   aynı yer kaplar, küçük görselde sayfa yukarı kaymaz. */
.layout-custom.imgfixed .gallery-main {
  height: var(--pd-img-max-h, auto);
  /* Genişlik verilmediyse kutu sütunu doldurmaz, görselin genişliğini alır */
  width:  var(--pd-img-max-w, fit-content);
  /* Genişlik verilmişse sınır o değerdir; verilmemişse sütunu aşmasın diye %100 */
  max-width: var(--pd-img-max-w, 100%);
}

/* Görsel alanının ve içindeki görselin hizası (panelden) */
.layout-custom.imgalign-center .gallery-main { margin-inline: auto; justify-content: center; }
.layout-custom.imgalign-left   .gallery-main { margin-inline: 0 auto; justify-content: flex-start; }
.layout-custom.imgalign-right  .gallery-main { margin-inline: auto 0; justify-content: flex-end; }
.layout-custom .gallery-main img {
  max-height: var(--pd-img-max-h, none);
  max-width:  var(--pd-img-max-w, none);
  height: auto;
  width: auto;
  object-fit: contain;
}

/* Küçük görseller yanda: galeri sütunu satıra döner, şerit dikey olur */
.layout-custom.thumbs-left  .product-gallery,
.layout-custom.thumbs-right .product-gallery {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.layout-custom.thumbs-left  .gallery-thumbs { order: -1; }
.layout-custom.thumbs-left  .gallery-thumbs,
.layout-custom.thumbs-right .gallery-thumbs {
  flex: 0 0 auto;
  flex-direction: column;
  flex-wrap: nowrap;
  max-height: var(--pd-img-max-h, 520px);
  overflow-y: auto;
  /* Kaydırınca küçük resim yarım kalmasın: en yakın tam kutuya oturur */
  scroll-snap-type: y proximity;
}
.layout-custom.thumbs-left  .gallery-thumb,
.layout-custom.thumbs-right .gallery-thumb { scroll-snap-align: start; }

/* Masaüstünde yan şerit daha uzun olabilir: ana görsel yüksekliğine bağlı
   kalınca 6 kutu sığıyor ve 7.'si (çoğu üründe video) yarım görünüyordu. */
@media (min-width: 769px) {
  .layout-custom.thumbs-left  .gallery-thumbs,
  .layout-custom.thumbs-right .gallery-thumbs {
    max-height: max(var(--pd-img-max-h, 520px), 640px);
  }
}

/* Ana görsel ile ALTTAKİ küçük resimler arasındaki boşluk.
   .gallery-main'in margin-bottom'u sonraki genel kuralla, şeridin
   margin-top'u da ayrı bir kuralla sıfırlanıyordu; ikisi birleşince
   resimler birbirine yapışıyordu. Boşluk yalnız alttaki şeride verilir —
   yandaki düzende hizayı bozmasın. */
.layout-custom.thumbs-bottom .gallery-thumbs,
.product-detail-wrap:not(.layout-custom) .product-gallery .gallery-thumbs {
  margin-top: 12px;
}

/* Küçük görseller üstte: galeri sütuna döner, şerit ana görselin önüne geçer */
.layout-custom.thumbs-top .product-gallery {
  display: flex;
  flex-direction: column;
}
.layout-custom.thumbs-top .gallery-thumbs { order: -1; margin: 0 0 12px; }
.layout-custom.thumbs-top .gallery-main   { margin-bottom: 0; }
.layout-custom.thumbs-left  .gallery-main,
.layout-custom.thumbs-right .gallery-main {
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0;
}

/* Alan sabitken kutu esnemez: yan şeritli düzende flex-grow verilen
   genişliği aşıyordu (kurallar aynı özgüllükte, sıra belirleyici). */
.layout-custom.imgfixed .gallery-main {
  flex: 0 0 auto;
  width:     var(--pd-img-max-w, fit-content);
  max-width: var(--pd-img-max-w, 100%);
}


.product-gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.gallery-main {
  position: relative;   /* galeri noktaları için */
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  margin-bottom: 12px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Ürün detayında noktalar ve oklar kartlardakinden bir tık büyük */
.gallery-main .pc-dots { right: 12px; bottom: 12px; gap: 6px; }
.gallery-main .pc-dot  { width: 9px; height: 9px; }
.gallery-main .pc-nav  { width: 38px; height: 38px; }
.gallery-main .pc-prev { left: 12px; }
.gallery-main .pc-next { right: 12px; }
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
}
.gallery-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  /* Tarayıcının kalın gri çubuğu galeriye yakışmıyordu: ince, yuvarlak ve
     ürün görselleriyle aynı renk paletinde. */
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  scroll-behavior: smooth;
}
.gallery-thumbs::-webkit-scrollbar { width: 6px; height: 6px; }
.gallery-thumbs::-webkit-scrollbar-track { background: transparent; }
.gallery-thumbs::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}
.gallery-thumbs:hover::-webkit-scrollbar-thumb { background: var(--text-light, #9ca3af); }
.gallery-thumb {
  width: 72px; height: 72px;
  /* Ana görselle AYNI köşe (--radius-lg): galeri bir bütün görünsün.
     --btn-radius kullanılmıyor çünkü "Oval"de 999px oluyor ve 72x72 kare
     küçük görsel daireye dönüşüyordu. */
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition);
}
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

.product-info {}
.product-brand { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px; }
/* Ürün markası — kategori satırının üstünde, daha vurgulu */
/* Kart üzerindeki marka — kategori satırında, vurgulu */
.product-card-brand {
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.product-card-brand:hover { text-decoration: underline; }

/* Ürün markası — tıklanabilir rozet; o markanın ürünlerini listeler */
.product-brand-badge {
  display: inline-block;
  padding: 3px 10px;
  margin-bottom: 8px;
  /* Köşe yuvarlaması admin → Ayarlar → Buton Köşeleri ayarından gelir
     (indirim rozetiyle aynı kural; sabit hap biçimi ayarı yok sayıyordu) */
  border-radius: var(--btn-radius, 8px);
  background: var(--primary-10, rgba(99, 102, 241, .12));
  color: var(--primary);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  text-decoration: none;
  line-height: 1.7;
  transition: background .15s, color .15s;
}
.product-brand-badge:hover {
  background: var(--primary);
  color: #fff;
}
.product-title { font-size: 28px; font-weight: 800; line-height: 1.3; margin-bottom: 12px; }
.product-sku   { font-size: 12px; color: var(--text-light); margin-bottom: 16px; }

/* Üstü çizili fiyat üstte, satış fiyatı + indirim rozeti altında.
   Kıyas fiyatı gizlendiğinde flex gap uygulanmaz, boşluk kalmaz. */
.product-price-block {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.product-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
}
/* Üst satır: çizili fiyat + indirim rozeti yan yana */
.product-compare-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.product-compare-row.is-hidden { display: none; }
.product-compare {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: line-through;
  line-height: 1.2;
}
.product-compare.is-hidden { display: none; }
.product-discount {
  font-size: 12px;
  font-weight: 700;
  color: var(--badge-fg, #fff);
  background: var(--badge-bg, #ef4444);
  padding: 3px 9px 2px 9px;
  /* Köşe yuvarlaması admin → Ayarlar → Buton Köşeleri ayarından gelir */
  border-radius: var(--btn-radius, 8px);
  white-space: nowrap;
}
.product-discount.is-hidden { display: none; }
.product-vat { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ── Kişiselleştirme formu ──────────────────────────────
   Varyant seçicilerden GÖRSEL OLARAK AYRI durur: ikisi aynı sayfada olabiliyor
   ve müşteri "stok seçimi" ile "bilgi girişi"ni karıştırmamalı. Bu yüzden
   çerçeveli bir kutu içinde. */
.cform {
  margin-bottom: 24px;
  padding: 16px 18px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--btn-radius, 10px);
  background: var(--bg-soft, #f9fafb);
}
.cform__group + .cform__group {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--border, #e5e7eb);
}
.cform__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text, #111827);
  margin-bottom: 2px;
}
.cform__desc {
  font-size: 12.5px;
  color: var(--text-muted, #6b7280);
  line-height: 1.6;
  margin-bottom: 10px;
}
.cform__field + .cform__field { margin-top: 14px; }
.cform__field:first-of-type { margin-top: 12px; }

.cform__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #111827);
  margin-bottom: 6px;
}
.cform__req { color: #dc2626; margin-left: 3px; }

.cform__input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--btn-radius, 8px);
  background: #fff;
  color: var(--text, #111827);
  font-size: 14px;
  font-family: inherit;
  line-height: 1.5;
  outline: none;
  box-sizing: border-box;
}
.cform__input:focus { border-color: var(--primary, #6366f1); }
textarea.cform__input { resize: vertical; min-height: 76px; }

.cform__radios { display: flex; flex-direction: column; gap: 8px; }
.cform__radio,
.cform__check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text, #111827);
  cursor: pointer;
}
.cform__radio input,
.cform__check input { margin-top: 3px; flex-shrink: 0; cursor: pointer; }
.cform__radio b,
.cform__check b { color: var(--primary, #6366f1); }

.cform__help {
  font-size: 12px;
  color: var(--text-muted, #6b7280);
  line-height: 1.55;
  margin-top: 5px;
}
.cform__err {
  font-size: 12.5px;
  font-weight: 600;
  color: #dc2626;
  margin-top: 5px;
}
.cform__extra {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border, #e5e7eb);
  font-size: 13.5px;
  color: var(--text, #111827);
}
.cform__extra b { color: var(--primary, #6366f1); }

/* Sepet ve sipariş satırlarında girilen değerlerin dökümü */
.cform-lines {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-muted, #6b7280);
}
.cform-lines b { color: var(--text, #111827); font-weight: 600; }
.cform-lines .cform-plus { color: var(--primary, #6366f1); font-weight: 600; }

@media (max-width: 640px) {
  .cform { padding: 14px; }
}


/* ── Takım (set) içeriği ────────────────────────────────
   Kişiselleştirme kutusuyla aynı dilde ama ayrı bir kutu: biri "ne alıyorum",
   öteki "ne yazdırıyorum". İlaveye açık satır belirgin dursun diye kendi
   arka planı var — müşteri artırabileceği parçayı taramadan görmeli. */
.bundle {
  margin-bottom: 24px;
  padding: 16px 18px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--btn-radius, 10px);
  background: var(--bg-soft, #f9fafb);
}
.bundle__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text, #111827);
  margin-bottom: 12px;
}
.bundle__list { display: flex; flex-direction: column; gap: 10px; }
.bundle__row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--btn-radius, 8px);
  background: #fff;
}
.bundle__row--extra { border-color: var(--primary, #6366f1); }
.bundle__img {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 6px; object-fit: cover;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--bg-soft, #f9fafb);
}
.bundle__img--none { display: block; }
.bundle__info { flex: 1; min-width: 0; }
.bundle__name {
  font-size: 14px; font-weight: 600; line-height: 1.4;
  color: var(--text, #111827);
}
.bundle__name a { color: inherit; text-decoration: none; }
.bundle__name a:hover { text-decoration: underline; }
.bundle__note,
.bundle__hint {
  font-size: 12px; line-height: 1.55;
  color: var(--text-muted, #6b7280);
  margin-top: 2px;
}
/* İlaveye kapalı parçanın adedi — sayaçla aynı yükseklikte durur ki
   satırlar hizalansın; kutu değil, düz bir etiket olduğu belli olsun. */
.bundle__fixed {
  display: flex; align-items: center; justify-content: center;
  min-width: 56px; height: 34px; padding: 0 10px;
  flex-shrink: 0; white-space: nowrap;
  border: 1px dashed var(--border, #e5e7eb);
  border-radius: var(--btn-radius, 8px);
  font-size: 12.5px; color: var(--text-muted, #6b7280);
}
.bundle__fixed b { color: var(--text, #111827); font-size: 14px; margin-right: 3px; }
.bundle__ctrl {
  display: flex; align-items: center; flex-shrink: 0;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--btn-radius, 8px);
  overflow: hidden; background: #fff;
}
.bundle__btn {
  width: 34px; height: 34px;
  border: none; background: transparent;
  color: var(--text, #111827);
  font-size: 17px; line-height: 1; cursor: pointer;
  font-family: inherit;
}
.bundle__btn:hover { background: var(--bg-soft, #f3f4f6); }
.bundle__extra {
  width: 44px; height: 34px;
  border: none; border-left: 1px solid var(--border, #e5e7eb);
  border-right: 1px solid var(--border, #e5e7eb);
  text-align: center; font-size: 14px; font-weight: 600;
  font-family: inherit; color: var(--text, #111827);
  background: transparent; outline: none;
  -moz-appearance: textfield;
}
.bundle__extra::-webkit-outer-spin-button,
.bundle__extra::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bundle__total {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--border, #e5e7eb);
  font-size: 13.5px; color: var(--text, #111827);
}
.bundle__total-label { color: var(--text-muted, #6b7280); }
.bundle__total-val { font-weight: 700; color: var(--primary, #6366f1); }
.bundle__total-sum { margin-left: auto; color: var(--text-muted, #6b7280); }
.bundle__total-sum b { color: var(--text, #111827); font-size: 15px; }

/* Sepet / sipariş satırlarındaki set dökümü */
.bundle-lines .bundle-extra { color: var(--primary, #6366f1); font-weight: 600; }

@media (max-width: 640px) {
  .bundle { padding: 14px; }
  .bundle__img { width: 38px; height: 38px; }
  .bundle__name { font-size: 13.5px; }
}


/* ── Birlikte Al ───────────────────────────────────────
   Ürün kartı ızgarası DEĞİL, tek bir seçim kartı: üstte hangi ürünlerin
   bir arada olduğunu gösteren görsel şerit, altında işaretlenebilir
   satırlar, en altta toplam ve tek düğme. Dağınık kutucuklar hâlindeyken
   bölümün ne işe yaradığı anlaşılmıyordu. */
.cross { margin-top: 60px; }
.cross__card {
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius-md, 12px);
  background: var(--surface, #fff);
  padding: 22px;
}
.cross__head { margin-bottom: 16px; }
.cross__title {
  font-size: 19px; font-weight: 800; letter-spacing: -.2px;
  color: var(--text, #111827); margin: 0;
}
.cross__hint { font-size: 13px; color: var(--text-muted, #6b7280); margin: 4px 0 0; }

/* Görsel şerit — aralarında + işareti, dar ekranda yana kaydırılır */
.cross__strip {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 4px; margin-bottom: 18px;
  overflow-x: auto; scrollbar-width: none;
}
.cross__strip::-webkit-scrollbar { display: none; }
.cross__plus {
  font-size: 18px; font-weight: 300; line-height: 1;
  color: var(--text-light, #cbd5e1); flex-shrink: 0;
}
.cross__thumb {
  flex-shrink: 0; display: block; padding: 0; cursor: pointer;
  width: 92px; height: 92px; border-radius: 10px; overflow: hidden;
  border: 2px solid var(--border, #e5e7eb); background: #fff;
  transition: border-color .15s, opacity .15s, filter .15s;
}
.cross__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cross__thumb.is-on { border-color: var(--primary, #6366f1); }
/* Seçim dışı bırakılan ürün soluklaşır — hangilerinin sepete gideceği
   şeritten de görülsün */
.cross__thumb:not(.is-on):not(.cross__thumb--link) { opacity: .45; filter: grayscale(1); }
.cross__thumb--link { cursor: pointer; }
.cross__thumb:focus-visible { outline: 2px solid var(--primary, #6366f1); outline-offset: 2px; }

/* Satırlar */
.cross__rows { border-top: 1px solid var(--border-light, #f1f5f9); }
.cross__row {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--border-light, #f1f5f9);
  cursor: pointer;
}
.cross__row--off { cursor: default; }
.cross__row input { position: absolute; opacity: 0; width: 0; height: 0; }
.cross__box {
  width: 20px; height: 20px; border-radius: 5px; flex-shrink: 0;
  border: 2px solid var(--border, #d1d5db);
  display: block; position: relative; transition: all .15s;
}
.cross__row input:checked + .cross__box {
  background: var(--primary, #6366f1);
  border-color: var(--primary, #6366f1);
}
.cross__row input:checked + .cross__box::after {
  content: ''; position: absolute; left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.cross__row input:focus-visible + .cross__box { outline: 2px solid var(--primary, #6366f1); outline-offset: 2px; }
.cross__box--off { border-style: dashed; opacity: .5; }

.cross__row-name {
  flex: 1; min-width: 0; font-size: 14px; font-weight: 500; line-height: 1.45;
  color: var(--text, #111827); text-decoration: none;
}
a.cross__row-name:hover { color: var(--primary, #6366f1); }
.cross__row-price {
  flex-shrink: 0; font-size: 14px; font-weight: 700; color: var(--text, #111827);
  white-space: nowrap;
}
.cross__row-price s {
  font-size: 12px; font-weight: 400; color: var(--text-muted, #9ca3af); margin-left: 6px;
}
.cross__opts {
  flex-shrink: 0; white-space: nowrap; margin-left: 4px;
  padding: 6px 12px; border-radius: var(--btn-radius, 8px);
  border: 1px solid var(--primary, #6366f1);
  color: var(--primary, #6366f1);
  font-size: 12.5px; font-weight: 600; text-decoration: none;
}
.cross__opts:hover { background: var(--primary, #6366f1); color: #fff; }
.cross__opts--off {
  border-color: var(--border, #e5e7eb);
  color: var(--text-muted, #9ca3af);
  cursor: default;
}
.cross__opts--off:hover { background: transparent; color: var(--text-muted, #9ca3af); }

/* Alt bar: solda toplam, sağda tek düğme */
.cross__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-top: 18px;
}
.cross__sum { font-size: 13.5px; color: var(--text-muted, #6b7280); }
.cross__sum b { color: var(--text, #111827); font-size: 17px; font-weight: 800; }
.cross__add:disabled { opacity: .5; cursor: not-allowed; }

/* ── Model: ızgara ──────────────────────────────────────
   Ürün kartlarına alışkın müşteri için tanıdık düzen; seçim kutusu
   kartın sol üstünde durur. */
.cross--grid .cross__rows {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  border-top: 0;
}
.cross--grid .cross__row {
  position: relative;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius-sm, 10px);
  transition: border-color .15s;
}
.cross--grid .cross__row:has(input:checked) { border-color: var(--primary, #6366f1); }
.cross--grid .cross__box { position: absolute; top: 16px; left: 16px; z-index: 2; background: #fff; }
.cross--grid .cross__row-img { display: block; }
.cross--grid .cross__row-img img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius-sm, 8px); display: block;
}
.cross--grid .cross__row-name {
  font-size: 13px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cross--grid .cross__row-price { font-size: 15px; }
.cross--grid .cross__opts { align-self: flex-start; }

/* ── Model: kompakt ─────────────────────────────────────
   Dar tek sütun — sağ sütunda (sepetin altında) kullanılabilsin. */
.cross--compact .cross__card { padding: 16px; }
.cross--compact .cross__title { font-size: 16px; }
.cross--compact .cross__row { padding: 9px 2px; gap: 9px; }
.cross--compact .cross__row-img img {
  width: 40px; height: 40px; object-fit: cover; border-radius: 6px;
  border: 1px solid var(--border, #e5e7eb); display: block;
}
.cross--compact .cross__row-name { font-size: 13px; }
.cross--compact .cross__row-price { font-size: 13px; }
.cross--compact .cross__bar { flex-direction: column; align-items: stretch; gap: 10px; }
.cross--compact .cross__add { width: 100%; }
.cross--compact .cross__opts { padding: 4px 9px; font-size: 11.5px; }

/* Sağ sütuna basıldığında bölüm sayfa genişliğinde değil, sütun içinde */
.product-info .cross { margin-top: 24px; }

@media (max-width: 640px) {
  .cross__card { padding: 16px; }
  .cross__thumb { width: 76px; height: 76px; }
  .cross__bar { flex-direction: column; align-items: stretch; }
  .cross__add { width: 100%; }
  .cross--grid .cross__rows { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}


/* ── Değerlendirmeler ──────────────────────────────────
   Yıldızlar görsel değil CSS: renk temadan gelsin, yarım yıldız da
   ek dosya olmadan çizilebilsin. */
.rv { margin-top: 60px; }
.rv-stars { display: inline-flex; gap: 2px; vertical-align: middle; line-height: 1; }
.rv-star {
  width: var(--rv-star, 16px); height: var(--rv-star, 16px);
  display: inline-block; flex-shrink: 0;
  background: var(--border, #d1d5db);
  -webkit-mask: var(--rv-star-svg) center/contain no-repeat;
          mask: var(--rv-star-svg) center/contain no-repeat;
}
:root {
  --rv-star-svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l2.9 6.3 6.9.8-5.1 4.7 1.4 6.8L12 17.3 5.9 20.6l1.4-6.8L2.2 9.1l6.9-.8z'/></svg>");
  --rv-gold: #f59e0b;
}
.rv-star.is-full { background: var(--rv-gold); }
/* Yarım yıldız: soldan altın, sağdan gri */
.rv-star.is-half { background: linear-gradient(90deg, var(--rv-gold) 50%, var(--border, #d1d5db) 50%); }

/* Tek kart, iki sütun: solda form ve yorumlar, sağda özet.
   Özet/form/liste ayrı kartlardayken aynı konunun parçaları olduğu
   hâlde dağınık duruyordu. */
.rv__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 26px;
  padding: 22px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius-md, 12px);
  background: var(--surface, #fff);
}
.rv__main { min-width: 0; }
.rv__side {
  /* Sağ sütun ikinci sırada yazılıyor ama solda değil sağda dursun */
  grid-column: 2;
  grid-row: 1;
  padding-left: 24px;
  border-left: 1px solid var(--border-light, #f1f5f9);
}
.rv__score { text-align: center; }
.rv__avg { font-size: 40px; font-weight: 800; line-height: 1; color: var(--text, #111827); }
.rv__count { font-size: 12.5px; color: var(--text-muted, #6b7280); margin-top: 6px; }

.rv__dist { margin-top: 16px; }
.rv__dist-row { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.rv__dist-label { font-size: 12px; color: var(--text-muted, #6b7280); width: 10px; text-align: right; }
.rv__dist-bar {
  flex: 1; height: 7px; border-radius: 4px; overflow: hidden;
  background: var(--border-light, #f1f5f9);
}
.rv__dist-bar > span { display: block; height: 100%; background: var(--rv-gold); }
.rv__dist-n { font-size: 12px; color: var(--text-muted, #6b7280); width: 24px; }
/* Çağrı sağ sütunun altında, sütun genişliğinde */
.rv__cta { margin-top: 18px; text-align: center; }
.rv__cta .btn { width: 100%; }
/* Yazamama sebebi kendi kutusunda ortalanır; sağa yaslı tek uzun satır
   düğmenin yerinde dengesiz duruyordu. */
.rv__note {
  font-size: 13px; line-height: 1.6; color: var(--text-muted, #6b7280);
  margin: 0 auto; text-align: center; max-width: 300px;
}
.rv__note a { color: var(--primary, #6366f1); font-weight: 600; }

/* Form — kartın içinde, kendi çerçevesiyle ayrılıyor */
.rv__form {
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius-sm, 10px);
  background: var(--bg, #f8fafc);
  padding: 18px 20px; margin-bottom: 20px;
}
.rv__field { margin-bottom: 14px; }
.rv__label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text, #111827); }
.rv__label span { font-weight: 400; color: var(--text-muted, #9ca3af); }
.rv__input {
  width: 100%; box-sizing: border-box;
  padding: 10px 12px; font-size: 14px; font-family: inherit;
  border: 1.5px solid var(--border, #e5e7eb);
  border-radius: var(--radius-sm, 8px);
  background: var(--bg, #f8fafc); color: var(--text, #111827);
  outline: none; transition: border-color .15s;
}
.rv__input:focus { border-color: var(--primary, #6366f1); }

/* Puan seçimi: yıldızlar ters sırada basılıyor, böylece "seçilenin
   solundakiler de dolu" kuralı ~ (sonraki kardeş) ile kurulabiliyor. */
.rv__rate { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rv__rate input { position: absolute; opacity: 0; width: 0; height: 0; }
.rv__rate label { cursor: pointer; line-height: 0; }
.rv__rate label .rv-star { width: 28px; height: 28px; transition: background .12s; }
.rv__rate input:checked ~ label .rv-star,
.rv__rate label:hover .rv-star,
.rv__rate label:hover ~ label .rv-star { background: var(--rv-gold); }
.rv__rate input:focus-visible + label .rv-star { outline: 2px solid var(--primary, #6366f1); outline-offset: 2px; }

.rv__form-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.rv__hint { font-size: 12px; color: var(--text-muted, #6b7280); }

/* Liste */
.rv__item { padding: 16px 0; border-bottom: 1px solid var(--border-light, #f1f5f9); }
.rv__item:first-child { border-top: 1px solid var(--border-light, #f1f5f9); }
.rv__item-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rv__author { font-size: 13.5px; font-weight: 600; color: var(--text, #111827); }
.rv__badge {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 20px;
  background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0;
}
.rv__date { font-size: 12px; color: var(--text-muted, #9ca3af); margin-left: auto; }
.rv__item-title { font-size: 14.5px; font-weight: 700; margin: 8px 0 4px; color: var(--text, #111827); }
.rv__item-body { font-size: 14px; line-height: 1.7; color: var(--text-muted, #4b5563); margin: 4px 0 0; }
/* Mağaza yanıtı — yorumun altında girintili cevap balonu.
   Sol üstteki küçük dirsek, bunun bir üstteki yoruma cevap olduğunu
   gösteriyor; düz renkli şerit hangi yoruma ait olduğunu anlatmıyordu. */
.rv__reply {
  position: relative;
  margin: 12px 0 2px 30px;
  padding: 11px 14px 12px;
  background: var(--bg, #f8fafc);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius-sm, 10px);
}
.rv__reply::before {
  content: ''; position: absolute;
  left: -18px; top: -6px; width: 14px; height: 18px;
  border-left: 2px solid var(--border, #e5e7eb);
  border-bottom: 2px solid var(--border, #e5e7eb);
  border-bottom-left-radius: 8px;
}
.rv__reply-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.rv__reply-ico {
  width: 22px; height: 22px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--primary, #6366f1); color: #fff;
}
.rv__reply-ico svg { width: 13px; height: 13px; }
.rv__reply-who { font-size: 12.5px; font-weight: 700; color: var(--text, #111827); }
.rv__reply-tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: .2px;
  padding: 1px 7px; border-radius: 20px;
  background: var(--primary-10, #eef2ff); color: var(--primary, #6366f1);
}
.rv__reply-date { font-size: 11.5px; color: var(--text-muted, #9ca3af); margin-left: auto; }
.rv__reply p { font-size: 13.5px; line-height: 1.65; margin: 7px 0 0; color: var(--text-muted, #4b5563); }

.rv__pager { display: flex; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.rv__page {
  min-width: 34px; height: 34px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border, #e5e7eb); border-radius: var(--radius-sm, 8px);
  font-size: 13px; color: var(--text, #111827); text-decoration: none;
}
.rv__page.is-on { background: var(--primary, #6366f1); border-color: var(--primary, #6366f1); color: #fff; }
.rv__empty { font-size: 14px; color: var(--text-muted, #6b7280); }

/* ── Hesabım → Değerlendirmelerim ──────────────────────
   Durum rozeti şart: onay bekleyen yorum mağazada görünmüyor,
   müşteri "kayboldu" sanmasın. */
.myrv__list { display: flex; flex-direction: column; gap: 14px; }
.myrv {
  display: flex; gap: 14px;
  background: var(--surface, #fff);
  border-radius: var(--radius-md, 12px);
  box-shadow: var(--card-shadow, 0 1px 3px rgba(0,0,0,.06));
  padding: 16px;
}
.myrv__img { flex-shrink: 0; display: block; }
.myrv__img img {
  width: 64px; height: 64px; object-fit: cover;
  border-radius: var(--radius-sm, 8px); border: 1px solid var(--border, #e5e7eb); display: block;
}
.myrv__body { flex: 1; min-width: 0; }
.myrv__head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 7px; }
.myrv__name {
  font-size: 14px; font-weight: 700; color: var(--text, #111827); text-decoration: none;
}
.myrv__name:hover { color: var(--primary, #6366f1); }
.myrv__st {
  font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 20px; border: 1px solid;
}
.myrv__st--wait { color: #b45309; background: #fffbeb; border-color: #fde68a; }
.myrv__st--ok   { color: #059669; background: #ecfdf5; border-color: #a7f3d0; }
.myrv__st--no   { color: #dc2626; background: #fef2f2; border-color: #fecaca; }
.myrv__date { font-size: 11.5px; color: var(--text-muted, #9ca3af); margin-left: auto; }
.myrv__title { font-size: 13.5px; font-weight: 700; color: var(--text, #111827); margin-top: 6px; }
.myrv__text { font-size: 13.5px; line-height: 1.65; color: var(--text-muted, #4b5563); margin: 4px 0 0; }
.myrv__reply {
  margin-top: 9px; padding: 8px 12px; font-size: 13px; line-height: 1.6;
  background: var(--bg, #f8fafc); border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius-sm, 8px); color: var(--text-muted, #4b5563);
}
.myrv__acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.myrv__del { border: 1px solid var(--border, #e5e7eb); background: #fff; color: #dc2626; }
.myrv__del:hover { background: #fef2f2; border-color: #fecaca; }
.myrv__hint { font-size: 11.5px; color: var(--text-muted, #9ca3af); }
.myrv__inp { margin-top: 10px; }
/* Puan seçimi ürün sayfasındakiyle aynı mantık: ters sıra + ~ seçici */
.myrv__rate { display: inline-flex; flex-direction: row-reverse; gap: 3px; }
.myrv__rate input { position: absolute; opacity: 0; width: 0; height: 0; }
.myrv__rate label { cursor: pointer; line-height: 0; }
.myrv__rate label .rv-star { width: 24px; height: 24px; transition: background .12s; }
.myrv__rate input:checked ~ label .rv-star,
.myrv__rate label:hover .rv-star,
.myrv__rate label:hover ~ label .rv-star { background: var(--rv-gold); }

@media (max-width: 560px) {
  .myrv { flex-direction: column; }
  .myrv__img img { width: 56px; height: 56px; }
  .myrv__date { margin-left: 0; width: 100%; }
}

/* Ürün kartındaki puan satırı */
.pc-rating { display: flex; align-items: center; gap: 5px; margin-top: 4px; }
.pc-rating .rv__count-sm { font-size: 11.5px; color: var(--text-muted, #9ca3af); }

@media (max-width: 780px) {
  /* Dar ekranda tek sütun: özet üste çıkar, altında form ve yorumlar */
  .rv__card { grid-template-columns: 1fr; gap: 20px; padding: 18px; }
  .rv__side {
    grid-column: 1; grid-row: 1;
    padding-left: 0; padding-bottom: 18px;
    border-left: 0; border-bottom: 1px solid var(--border-light, #f1f5f9);
  }
  .rv__main { grid-column: 1; grid-row: 2; }
  .rv__score { display: flex; align-items: center; justify-content: center; gap: 14px; }
  .rv__avg { font-size: 32px; }
  .rv__dist { max-width: 320px; margin-inline: auto; }
}

.product-variants { margin-bottom: 24px; }
.variants-label { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 3px; text-transform: uppercase; }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
/* Her seçenek adı (Renk, Numara …) kendi başlığı ve buton satırıyla */
.variant-group + .variant-group { margin-top: 16px; }
/* Bu birleşim var ama stoğu yok — görünür kalsın, seçilemesin */
.variant-btn.is-oos { text-decoration: line-through; }
.variant-btn {
  /* Ölçüler .btn-sm ile aynı; sınıfı doğrudan kullanamayız çünkü .btn
     border:none tanımlıyor, seçili durumu 2px çerçeveyle gösteriyoruz */
  padding: 7px 14px;
  font-size: 13px;
  border: 2px solid var(--border);
  border-radius: var(--btn-radius);
  background: var(--surface);
  /* iOS Safari <button> metnini sistem mavisiyle boyar (renk miras alınmaz) —
     masaüstünde siyah, mobilde mavi görünmesinin sebebi buydu. */
  color: var(--text);
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  font-weight: 500;
  transition: all var(--transition);
}
.variant-btn:hover { border-color: var(--primary); color: var(--primary); }
.variant-btn.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.variant-btn:disabled { opacity: .4; pointer-events: none; }

.qty-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--btn-radius);
  overflow: hidden;
  width: fit-content;
  margin-bottom: 20px;
}
.qty-btn {
  width: 40px; height: 42px;
  border: none;
  background: var(--bg);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  color: var(--text);
}
.qty-btn:hover { background: var(--primary-10); color: var(--primary); }
.qty-input {
  width: 56px; height: 42px;
  border: none;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  outline: none;
  background: var(--surface);
}

.add-to-cart-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--btn-radius);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  width: 100%;
  justify-content: center;
  margin-bottom: 12px;
}
.add-to-cart-btn:hover {
  background: color-mix(in srgb, var(--primary) 85%, #000);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb),.35);
}
.add-to-cart-btn.sticky-btn {
  position: sticky;
  bottom: 20px;
  z-index: 50;
  box-shadow: 0 4px 20px rgba(var(--primary-rgb),.4);
}

/* ── Ürün videoları ─────────────────────────────────────── */
.product-videos {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border, #e5e7eb);
}
.product-videos h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.product-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.product-video { margin: 0; }
.product-video .pv-frame {
  position: relative;
  /* Yalnız başlangıç değeri: video metadata'sı gelince site.js gerçek
     oranı satır içi yazıyor (dikey ve kare videolar bantsız görünsün). */
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
/* Ürün videosu bölümünde dikey video kutuyu TAM doldurur: daraltılınca
   sağında solunda boşluk kalıyordu. Yükseklik videonun kendi oranından
   gelir (aspect-ratio satır içinde yazılı). */
.product-video .pv-frame.pv-dikey {
  max-width: 100%;
  margin-inline: 0;
}
/* Galeride ise kutu ürün bilgisinin yanında duruyor: çok uzayıp sayfayı
   aşağı itmesin diye yükseklik sınırlı, genişlik orandan (--pv-oran) türer. */
.gallery-video.pv-dikey {
  max-width: calc(min(70vh, 540px) * var(--pv-oran, 0.5625));
  margin-inline: auto;
}
.product-video .pv-frame iframe,
.product-video .pv-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.product-video figcaption {
  margin-top: 7px;
  font-size: 13px;
  color: var(--text-muted, #6b7280);
}

.product-description {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);

  /* Instagram'dan gelen açıklamalarda etiketler boşluksuz yazılabiliyor
     (#biretiket#digeretiket#...). Tarayıcı bunu TEK kelime sayıp kutuyu
     taşırıyor ve SAYFA yatay kayıyordu. `anywhere` gerektiğinde kelimenin
     ortasından kırar; normal metinde davranış değişmez. */
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}
.product-description h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }

/* Açıklama içindeki uzun bağlantı/önbiçimli metinler de kutuda kalsın */
.product-description a,
.product-description p,
.product-description li,
.product-description span { overflow-wrap: anywhere; }
.product-description pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.product-description img,
.product-description table,
.product-description iframe { max-width: 100%; }

/* Ürüne tanımlı özellikler tablosu */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.spec-table th,
.spec-table td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}
.spec-table th {
  width: 38%;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-soft, rgba(0,0,0,.02));
  white-space: nowrap;
}
.spec-table td { color: var(--text-muted); word-break: break-word; }
.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: none; }
@media (max-width: 480px) {
  .spec-table th { width: 45%; white-space: normal; }
  .spec-table th, .spec-table td { padding: 8px 10px; font-size: 13px; }
}
.prose, .cms-content {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 14px;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.prose p,
.cms-content p {
  display: block;
  margin-bottom: 0.75em;
}
.prose p:last-child,
.cms-content p:last-child { margin-bottom: 0; }
/* Shift+Enter satır kırılımı (paragraf içi) */
.prose p br,
.cms-content p br {
  display: block;
  margin-bottom: 0.35em;
}
/* Quill boş paragraf — gizle (cleanRichHtml ile de temizlenir) */
.prose p:has(> br:only-child),
.cms-content p:has(> br:only-child) {
  display: none;
  margin: 0;
  padding: 0;
}
.prose strong, .prose b,
.cms-content strong, .cms-content b { font-weight: 700; color: var(--text); }
.prose em, .prose i,
.cms-content em, .cms-content i { font-style: italic; }
.prose u, .cms-content u { text-decoration: underline; }
.prose ul, .prose ol,
.cms-content ul, .cms-content ol { padding-left: 20px; margin-bottom: 10px; }
.prose ul, .cms-content ul { list-style: disc; }
.prose ol, .cms-content ol { list-style: decimal; }
.prose li, .cms-content li { margin-bottom: 4px; }
.prose h1, .prose h2, .prose h3, .prose h4,
.cms-content h1, .cms-content h2, .cms-content h3, .cms-content h4 { color: var(--text); font-weight: 700; margin: 14px 0 6px; }
.prose h1, .cms-content h1 { font-size: 20px; }
.prose h2, .cms-content h2 { font-size: 18px; }
.prose h3, .cms-content h3 { font-size: 16px; }
.prose a, .cms-content a { color: var(--primary); text-decoration: underline; }
.prose blockquote, .cms-content blockquote {
  border-left: 4px solid var(--border);
  margin: 10px 0;
  padding-left: 16px;
  color: var(--text-muted);
}
.prose img, .cms-content img { max-width: 100%; height: auto; }
.prose .ql-align-center, .cms-content .ql-align-center { text-align: center; }
.prose .ql-align-right, .cms-content .ql-align-right { text-align: right; }
.prose .ql-align-justify, .cms-content .ql-align-justify { text-align: justify; }
/* Üçten fazla ardışık br gizle (çift boşluk korunur) */
.prose br + br + br,
.cms-content br + br + br { display: none; }

/* Quill editör HTML — madde işaretleri <ol><li data-list="bullet"> + .ql-ui */
.prose ol:has(> li[data-list]),
.cms-content ol:has(> li[data-list]) {
  list-style: none;
  counter-reset: list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
  padding-left: 1.5em;
}
.prose ol > li[data-list],
.cms-content ol > li[data-list] {
  list-style: none;
  padding-left: 1.5em;
  position: relative;
}
.prose ol > li[data-list] > .ql-ui::before,
.cms-content ol > li[data-list] > .ql-ui::before {
  display: inline-block;
  margin-left: -1.5em;
  margin-right: 0.3em;
  text-align: right;
  white-space: nowrap;
  width: 1.2em;
}
.prose ol > li[data-list="bullet"] > .ql-ui::before,
.cms-content ol > li[data-list="bullet"] > .ql-ui::before {
  content: "\2022";
}
.prose ol > li[data-list="ordered"],
.cms-content ol > li[data-list="ordered"] {
  counter-increment: list-0;
}
.prose ol > li[data-list="ordered"] > .ql-ui::before,
.cms-content ol > li[data-list="ordered"] > .ql-ui::before {
  content: counter(list-0, decimal) ". ";
}
/* .ql-ui yoksa yedek (eski kayıtlar) */
.prose ol > li[data-list="bullet"]:not(:has(.ql-ui))::before,
.cms-content ol > li[data-list="bullet"]:not(:has(.ql-ui))::before {
  content: "\2022";
  display: inline-block;
  margin-right: 0.35em;
}
.prose ol > li[data-list="ordered"]:not(:has(.ql-ui)),
.cms-content ol > li[data-list="ordered"]:not(:has(.ql-ui)) {
  list-style: decimal;
  padding-left: 0.25em;
}
.prose ol > li.ql-indent-1:not(.ql-direction-rtl),
.cms-content ol > li.ql-indent-1:not(.ql-direction-rtl) { padding-left: 4.5em; }
.prose ol > li.ql-indent-2:not(.ql-direction-rtl),
.cms-content ol > li.ql-indent-2:not(.ql-direction-rtl) { padding-left: 7.5em; }
.prose ol > li.ql-indent-3:not(.ql-direction-rtl),
.cms-content ol > li.ql-indent-3:not(.ql-direction-rtl) { padding-left: 10.5em; }

/* ── Cart ───────────────────────────────────────────── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}
.cart-table { background: var(--surface); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--card-shadow); }
.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 80px; height: 80px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: var(--bg);
  padding: 8px;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.cart-item-variant { font-size: 12px; color: var(--text-muted); }
.cart-item-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.cart-item-discount {
  font-size: 11px;
  font-weight: 700;
  color: var(--badge-fg, #fff);
  background: var(--badge-bg, #ef4444);
  padding: 3px 9px 2px 9px;
  /* Köşe yuvarlaması admin → Ayarlar → Buton Köşeleri ayarından gelir */
  border-radius: var(--btn-radius, 8px);
  white-space: nowrap;
}
.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  transition: color var(--transition);
  padding: 4px;
}
.cart-item-remove:hover { color: #ef4444; }

/* Mobil: resim solda tam yükseklik, sağ sütunda ürün adı; adın altında
   seçenek, fiyat, adet ve silme. Tek sırada dörde bölünce ad eziliyordu. */
@media (max-width: 640px) {
  .cart-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 10px;
    align-items: start;
    padding: 14px 16px;
  }
  .cart-item > a:first-child { grid-column: 1; grid-row: 1 / span 2; }
  .cart-item-img { width: 72px; height: 72px; }
  .cart-item-info { grid-column: 2; grid-row: 1; }
  /* Adet ve silme aynı satırı paylaşır: biri sola, diğeri sağa yaslanır */
  .cart-item .qty-wrap {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    margin-bottom: 0;
  }
  .cart-item-remove {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    align-self: center;
  }
}

.cart-summary {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  padding: 24px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.cart-summary h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.summary-row:last-of-type { border-bottom: none; }
.summary-total {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}
.empty-cart {
  text-align: center;
  padding: 80px 20px;
}
.empty-cart-icon { font-size: 64px; margin-bottom: 16px; }
.empty-cart h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.empty-cart p { color: var(--text-muted); margin-bottom: 24px; }

/* ── Auth / Forms ───────────────────────────────────── */
.auth-wrap {
  max-width: 460px;
  margin: 60px auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}
.auth-tab {
  flex: 1;
  padding: 16px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
}
.auth-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.auth-body { padding: 32px; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-10);
  background: var(--surface);
}
.form-control::placeholder { color: var(--text-light); }
.form-error { font-size: 12px; color: #ef4444; margin-top: 4px; }
.form-hint  { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 120px; }




/* ── Hesabım: hesap kredisi ─────────────────────────── */
.stat-card--link { text-decoration: none; color: inherit; transition: all var(--transition); }
.stat-card--link:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.10); }
.credit-hero {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  padding: 22px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.credit-hero-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.credit-hero-value { font-size: 30px; font-weight: 800; color: #059669; margin-top: 4px; }
.credit-hero-note  { font-size: 12px; color: #ef4444; margin-top: 4px; }
.credit-tx-list { display: flex; flex-direction: column; }
.credit-tx {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light, var(--border));
}
.credit-tx:last-child { border-bottom: 0; }
.credit-tx--muted { opacity: .7; }
.credit-tx-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
/* Uzun not/başlık sağdaki tutarı ezmesin */
.credit-tx-main { min-width: 0; }
.credit-tx-meta   { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.credit-tx-amount { font-size: 14px; font-weight: 700; white-space: nowrap; }

/* Yarım kalan bakiye yükleme satırındaki işlemler */
.credit-tx-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 6px;
}
/* İşlem adının yanındaki durum rozeti — renkleri satır içinde duruma göre
   veriliyor (metin rengi + %10 zemin, %20 kenarlık). */
.credit-tx-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .2px;
  white-space: nowrap;
}
.credit-tx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface, #fff);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: .15s;
}
.credit-tx-btn--pay { border-color: #059669; color: #059669; }
.credit-tx-btn--pay:hover { background: #059669; color: #fff; }
.credit-tx-btn--del { color: #ef4444; border-color: #fecaca; }
.credit-tx-btn--del:hover { background: #ef4444; border-color: #ef4444; color: #fff; }
.credit-tx-btn[disabled] { opacity: .55; cursor: default; }

/* ── Hesabım: adres defteri kartları ────────────────── */
.addr-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.addr-card-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.addr-card-title { font-size: 14px; font-weight: 700; color: var(--text); }
.addr-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--primary-10);
  color: var(--primary);
}
.addr-badge--kind { background: var(--bg); color: var(--text-muted); }
.addr-card-line { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.addr-card-muted { color: var(--text-muted); font-size: 12px; }
.addr-card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.addr-act {
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--btn-radius);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
}
.addr-act:hover { border-color: var(--primary); color: var(--primary); }
.addr-act.addr-del:hover { border-color: #ef4444; color: #ef4444; }

/* ── Checkout: kayıtlı adres kartları ───────────────── */
.addr-picker { margin-bottom: 18px; }
.addr-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.addr-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 9px 14px;
  min-width: 150px;
  border: 2px solid var(--border);
  border-radius: var(--btn-radius);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
  font-family: inherit;
}
.addr-chip:hover { border-color: var(--primary); }
.addr-chip.active { border-color: var(--primary); background: var(--primary-10); }
.addr-chip-title { font-size: 13px; font-weight: 700; color: var(--text); }
.addr-chip-city  { font-size: 11px; color: var(--text-muted); }
.addr-picker-hint { font-size: 11px; color: var(--text-muted); margin-top: 6px; }
.addr-save-row {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  padding: 10px 0 0;
  margin-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.addr-save-row input { width: 15px; height: 15px; accent-color: var(--primary); }

/* ── Checkout ───────────────────────────────────────── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}
/* Sipariş özeti sütunu satır yüksekliğine uzamalı — aksi halde sarmalayıcı
   özet kadar kısa kalıyor ve position:sticky kayacak yer bulamıyordu. */
.checkout-layout > * { min-width: 0; }
/* Form satırları: satır içi grid yerine sınıf — satır içi stili medya
   sorgusu ezemediği için mobilde alanlar yan yana sıkışıyordu. */
.checkout-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkout-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 768px) {
  .checkout-row-2, .checkout-row-3 { grid-template-columns: 1fr; gap: 0; }
}
.checkout-layout > :last-child { align-self: stretch; }
.checkout-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  padding: 28px;
  margin-bottom: 20px;
}
.checkout-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.payment-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  margin-bottom: 10px;
  transition: all var(--transition);
}
.payment-option:has(input:checked),
.payment-option.selected { border-color: var(--primary); background: var(--primary-10); }
.payment-option input[type=radio] { accent-color: var(--primary); margin-top: 3px; flex-shrink: 0; }
.payment-option-body h5 { font-size: 15px; font-weight: 600; }
.payment-option-body p  { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ── Account Page ───────────────────────────────────── */
.account-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}
.account-nav {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.account-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.account-nav-link:last-child { border-bottom: none; }
.account-nav-link:hover { background: var(--primary-10); color: var(--primary); padding-left: 26px; }
.account-nav-link.active { background: var(--primary-10); color: var(--primary); font-weight: 700; }
.account-main {}

.order-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  margin-bottom: 16px;
}
.order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.order-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  /* Köşeler buton ayarını izler (admin → Buton Köşeleri) */
  border-radius: var(--btn-radius);
  font-size: 12px;
  font-weight: 600;
}
.order-badge-pending    { background: #fef3c7; color: #92400e; }
.order-badge-processing { background: #dbeafe; color: #1e40af; }
.order-badge-shipped    { background: #d1fae5; color: #065f46; }
.order-badge-completed  { background: #dcfce7; color: #14532d; }
.order-badge-cancelled  { background: #fee2e2; color: #7f1d1d; }

/* ── Toast / Notifications ──────────────────────────── */
#toastContainer {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  background: var(--surface);
  border-left: 4px solid var(--primary);
  font-size: 14px;
  font-weight: 500;
  animation: slideIn .25s ease;
  max-width: 360px;
}
.toast.toast-success { border-left-color: #22c55e; }
.toast.toast-error   { border-left-color: #ef4444; }
.toast.toast-info    { border-left-color: var(--primary); }
@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);   opacity: 1; }
}

/* ── Alert ──────────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-success { background: #dcfce7; color: #14532d; border: 1px solid #86efac; }
.alert-error   { background: #fee2e2; color: #7f1d1d; border: 1px solid #fca5a5; }
.alert-info    { background: #dbeafe; color: #1e3a8a; border: 1px solid #93c5fd; }
.alert-warning { background: #fef9c3; color: #713f12; border: 1px solid #fde047; }
/* Tek satırlık stok uyarısı — ikon ile metin dikeyde ortalanır */
#stockNotice { align-items: center; }

/* ── Loading ────────────────────────────────────────── */
.spinner {
  width: 24px; height: 24px;
  border: 3px solid var(--primary-20);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
}

/* ── Sabit yuvarlak butonlar (WhatsApp / destek / yukarı çık) ──
   Üçü de aynı boyut ve aynı sağ hizada, alt alta dizilir. */
:root {
  --fab-size: 50px;
  --fab-gap: 12px;
  --fab-right: 24px;
  --fab-bottom: 24px;
}
@media (max-width: 640px) {
  :root { --fab-size: 46px; --fab-right: 16px; --fab-bottom: 16px; }
}
/* Sepet çubuğu varken üçü birlikte yukarı kayar */
body.has-sticky-cart   { --fab-bottom: 74px; }
body.has-floating-cart { --fab-bottom: 100px; }

.whatsapp-fab {
  position: fixed;
  bottom: var(--fab-bottom); right: var(--fab-right);
  width: var(--fab-size); height: var(--fab-size);
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  z-index: 150;
  transition: all var(--transition);
}
.whatsapp-fab svg { width: 26px; height: 26px; }
.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.5);
}

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  background: #121621;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}
.footer-main {
  padding: 52px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) repeat(3, minmax(140px, 1fr));
  gap: 40px 32px;
  align-items: start;
}
.footer-col-brand {
  max-width: 360px;
}
.footer-brand-name {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.footer-brand-name a {
  color: #fff;
  text-decoration: none;
}
.footer-brand-name a:hover {
  color: rgba(255, 255, 255, 0.9);
}
.footer-address {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
}
.footer-contact-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-contact-icon {
  flex-shrink: 0;
  width: 18px;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-contact-list a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.18s ease;
}
.footer-contact-list a:hover {
  color: #fff;
}
.footer-kart-img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  /* Sosyal ikonların (16px) yanında duruyor; eskisi (23px) onların yanında
     iri kalıyordu. */
  max-height: 18px;
  object-fit: contain;
  opacity: .8;
}
.footer-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
  text-transform: none;
}
.footer-title-icon {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.55);
}
.footer-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links-list a::before {
  content: "– ";
  color: rgba(255, 255, 255, 0.35);
}
.footer-links-list a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.18s ease;
}
.footer-links-list a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-bottom-inner {
  /* Üç bölüm: solda telif + ödeme görseli, ORTADA altyapı künyesi, sağda
     sosyal ikonlar. Yan sütunlar 1fr olduğu için orta bölüm sayfanın tam
     ortasında kalır — yanların genişliği değişse bile kaymaz. */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  /* Yatay padding .container'dan gelsin — kısayol `padding` onu ezip içeriği
     ekranın kenarına yapıştırıyordu. */
  padding-top: 20px;
  padding-bottom: 20px;
}
/* Görsel sıra = DOM sırası: `order` ile yer değiştirseydik klavyeyle gezen
   kişi gördüğünden farklı sırada dolaşırdı. */
.footer-bottom-inner .footer-bottom-left   { justify-self: start; }
.footer-bottom-inner .footer-bottom-center { justify-self: center; }
.footer-bottom-inner .footer-social-row    { justify-self: end; }

/* Sol bölüm: telif. Ödeme görseli sağdaki sosyal şeridin sonunda. */
.footer-bottom-left {
  display: flex;
  align-items: center;
  min-width: 0;
}
.footer-bottom-center { display: flex; align-items: center; }
.footer-copy {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}
/* Alt şeritte ödeme yöntemleri görseli (telif ile sosyal linkler arasında) */
.footer-creditcard {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
/* Altyapı künyesi — ödeme görselinin sağında, sönük ama okunur */
.footer-altyapi {
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s ease;
}
a.footer-altyapi:hover { color: rgba(255, 255, 255, .8); text-decoration: underline; }
.footer-altyapi:has(.footer-altyapi-logo):hover { text-decoration: none; }
/* Logo künyesi: kredi kartı görseliyle aynı yükseklikte kalsın */
.footer-altyapi-logo {
  height: 22px;
  width: auto;
  display: block;
  opacity: .75;
  transition: opacity .15s ease;
}
.footer-altyapi:hover .footer-altyapi-logo { opacity: 1; }
.footer-social-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
/* Ödeme görseli şeridin sonunda; ikonlardan biraz daha ayrı dursun */
.footer-social-row .footer-creditcard { margin-left: 4px; }
.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 13px;
  line-height: 1;          /* ikon ile yazı tam ortada hizalansın */
  transition: color 0.18s ease;
}
.footer-social-link:hover {
  color: #fff;
}
.footer-social-link svg {
  flex-shrink: 0;
  opacity: 0.85;
  /* inline SVG'nin taban çizgisi boşluğu ikonu metne göre kaydırıyordu */
  display: block;
  width: 16px;
  height: 16px;
}

/* ── Breadcrumb ─────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  /* Üst boşluk yok: sayfa kabının kendi üst boşluğuyla üst üste biniyordu. */
  padding: 0 0 14px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--text-light); }
.breadcrumb-active { color: var(--text); font-weight: 500; }

/* ── Ürün detayı: önceki / sonraki ürün ─────────────── */
/* Yol ve düğmeler aynı satırda: yol daralıp üç nokta ile kesilir, düğmeler
   sağda sabit kalır. Kap .breadcrumb zaten flex. */
.breadcrumb-path {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}
.breadcrumb-path .breadcrumb-active {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prod-nav { gap: 6px; }
.prod-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card, #fff);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
}
.prod-nav-btn:hover { color: var(--primary); border-color: var(--primary); }
/* Uçtaki ürün: düğme yerinde kalır ki satır zıplamasın, ama sönük ve tıklanmaz */
.prod-nav-btn.is-off { opacity: .38; pointer-events: none; }
/* Dar ekranda yalnız oklar: breadcrumb zaten uzun, ad satırı ikiye bölüyordu.
   Satır sarmalanmaz — düğmeler yolun altına düşüyor, hizasız duruyordu.
   Mobilde hem kategori kırılımları hem "Ana Sayfa" gizlenir; geriye
   "Ürünler / ürün adı" kalır — logo zaten ana sayfaya götürüyor. */
@media (max-width: 640px) {
  .prod-nav-txt { display: none; }
  .prod-nav-btn { padding: 0 8px; }
  .breadcrumb:has(.prod-nav) { flex-wrap: nowrap; }
  .breadcrumb-path { flex-wrap: nowrap; overflow: hidden; }
  .breadcrumb-path .bc-cat  { display: none; }
  .breadcrumb-path .bc-home { display: none; }
}

/* ── Page Header ────────────────────────────────────── */
/* ── İlgili Ürünler Slider ───────────────────────────── */
.related-slider-wrap {
  position: relative;
}
.related-slider {
  display: grid;
  grid-template-columns: repeat(var(--rel-cols, 4), minmax(0, 1fr));
  gap: 20px;
  overflow: hidden;
}
.related-slider-wrap.is-slider .related-slider {
  display: flex;
  overflow: hidden;
  gap: 0;
  transition: transform .35s ease;
  will-change: transform;
}
.related-slider-wrap.is-slider .related-slide {
  flex: 0 0 calc(100% / var(--rel-cols, 4));
  padding-right: 20px;
  box-sizing: border-box;
}
.related-prev,
.related-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  z-index: 2;
  transition: background .15s, box-shadow .15s;
}
.related-prev:hover, .related-next:hover {
  background: var(--primary);
  color: #fff;
}
.related-prev { left: -18px; }
.related-next { right: -18px; }

/* ── Kategori Banner ────────────────────────────────── */
.cat-banner-wrap {
  position: relative;
  width: 100%;
  max-height: 280px;
  overflow: hidden;
}
.cat-banner-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}
.cat-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.55) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
  display: flex;
  align-items: center;
}
.cat-banner-title {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.cat-banner-desc {
  font-size: 15px;
  color: rgba(255,255,255,.88);
  margin-top: 8px;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

.page-header {
  background: linear-gradient(135deg, var(--primary-10) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  margin-bottom: 5px;
}
.page-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ── CMS Page Blocks ──────────────────────────────────── */

.cms-page-wrap {
  max-width: 1280px;
  padding: 40px 20px;
}
/* Sayfa başlığı — kategori listesi .page-header h1 ile aynı */
.cms-page-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 24px;
  color: var(--text);
}
/* Sayfa kısa açıklaması — başlığın hemen altında */
.cms-page-lead {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: -14px 0 24px;
}
.cms-page-breadcrumb {
  padding: 0 0 16px;
}
.cms-page-children {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}
/* Alt sayfa listesi — ürün kartlarıyla aynı görünüm (.product-grid / .product-card) */
.cms-page-children-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cms-page-child-name {
  text-decoration: none;
}
.cms-page-child-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}
/* Kapak resmi olmayan kartın gövdesi tek başına kalınca dengeli dursun */
.cms-page-child-card > .product-card-body:first-child { padding-top: 18px; }

/* Base block spacing */
.cms-blocks { display: flex; flex-direction: column; gap: 0; }
.cms-block   { margin-bottom: 40px; }
.cms-block:last-child { margin-bottom: 0; }

/* ── Text block ── */
.block-text.prose,
.block-text .prose { font-size: 16px; line-height: 1.75; }

/* ── Image + Text block ── */
.block-image-text {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.block-image-text.vertical {
  flex-direction: column;
  gap: 20px;
}
/* DİKKAT: sıra PHP tarafında (sayfa.php) zaten kuruluyor — image_right'ta
   metin, image_left'te görsel önce basılıyor. Burada bir kez daha ters
   çevrilince iki işlem birbirini götürüyor ve panelden seçilen yön sitede
   hiç değişmiyordu. DOM sırası tek kaynak: okuma sırası da doğru kalır. */

/* Görsel gölgesi — panelden Yok / Az / Normal / Çok */
.block-image-text .img-col img { box-shadow: none; }
.block-image-text.ishadow-sm .img-col img { box-shadow: 0 2px  6px rgba(0, 0, 0, .10); }
.block-image-text.ishadow-md .img-col img { box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.block-image-text.ishadow-lg .img-col img { box-shadow: 0 14px 34px rgba(0, 0, 0, .28); }
/* Gölge kutunun dışına taşabilsin */
.block-image-text[class*="ishadow-"] .img-col { overflow: visible; }

.block-image-text .img-col { flex-shrink: 0; }
.block-image-text .img-col img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  display: block;
}
.block-image-text.vertical .img-col { width: 100% !important; }

.block-image-text .img-w-25 { width: 25%; }
.block-image-text .img-w-33 { width: 33.33%; }
.block-image-text .img-w-40 { width: 40%; }
.block-image-text .img-w-50 { width: 50%; }

.block-image-text .text-col { flex: 1 1 0; min-width: 0; }
.block-image-text .block-title {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

/* ── Full-width image block ── */
.block-full-image .full-image-img {
  width: 100%;
  border-radius: var(--radius-md);
  display: block;
}
.block-full-image .full-image-img--auto {
  height: auto;
  max-width: 100%;
}
.block-full-image .full-image-img--fixed {
  width: 100%;
  object-fit: cover;
}
.block-full-image .img-caption {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ── Gallery block ── */
.block-gallery {
  display: grid;
  /* Boşluk blok bazında ayarlanır (admin → galeri bloğu) */
  gap: var(--cms-gallery-gap, 12px);
}
.block-gallery.cols-1 { grid-template-columns: repeat(1, 1fr); }
.block-gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
.block-gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
.block-gallery.cols-4 { grid-template-columns: repeat(4, 1fr); }
.block-gallery.cols-5 { grid-template-columns: repeat(5, 1fr); }
.block-gallery.cols-6 { grid-template-columns: repeat(6, 1fr); }
.block-gallery.cols-7 { grid-template-columns: repeat(7, 1fr); }
.block-gallery.cols-8 { grid-template-columns: repeat(8, 1fr); }
.block-gallery.cols-9 { grid-template-columns: repeat(9, 1fr); }
.block-gallery.cols-10 { grid-template-columns: repeat(10, 1fr); }
.block-gallery.cols-11 { grid-template-columns: repeat(11, 1fr); }
.block-gallery.cols-12 { grid-template-columns: repeat(12, 1fr); }

.block-gallery.cols-mobile-1 { --cms-gallery-cols-mobile: 1; }
.block-gallery.cols-mobile-2 { --cms-gallery-cols-mobile: 2; }
.block-gallery.cols-mobile-3 { --cms-gallery-cols-mobile: 3; }
.block-gallery.cols-mobile-4 { --cms-gallery-cols-mobile: 4; }
.block-gallery.cols-mobile-5 { --cms-gallery-cols-mobile: 5; }
.block-gallery.cols-mobile-6 { --cms-gallery-cols-mobile: 6; }
.block-gallery.cols-mobile-7 { --cms-gallery-cols-mobile: 7; }
.block-gallery.cols-mobile-8 { --cms-gallery-cols-mobile: 8; }
.block-gallery.cols-mobile-9 { --cms-gallery-cols-mobile: 9; }
.block-gallery.cols-mobile-10 { --cms-gallery-cols-mobile: 10; }
.block-gallery.cols-mobile-11 { --cms-gallery-cols-mobile: 11; }
.block-gallery.cols-mobile-12 { --cms-gallery-cols-mobile: 12; }

/* Özgün boyut: görsel 4/3'e kırpılmaz, kendi oranıyla görünür */
.block-gallery.fit-original .gallery-item img {
  aspect-ratio: auto;
  object-fit: contain;
  height: auto;
}
/* Gölge seviyeleri — gölge görselin dışına taştığı için kırpma kapatılır */
.block-gallery[class*="shadow-"] .gallery-item { overflow: visible; }
.block-gallery.shadow-sm .gallery-item img { box-shadow: 0 2px  6px rgba(0, 0, 0, .10); }
.block-gallery.shadow-md .gallery-item img { box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.block-gallery.shadow-lg .gallery-item img { box-shadow: 0 14px 34px rgba(0, 0, 0, .28); }

/* Köşe yuvarlaklığı: blokta belirtilmezse Ayarlar › Buton Köşeleri */
.block-gallery .gallery-item,
.block-gallery .gallery-item img { border-radius: var(--cms-gallery-radius, min(var(--btn-radius, 8px), 24px)); }

.block-gallery .gallery-item { position: relative; overflow: hidden; }
.block-gallery .gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.block-gallery .gallery-item:hover img { transform: scale(1.04); }
/* Başlık görünümü blok bazında ayarlanır (Galeri + Başlık bloğu) */
.block-gallery .gallery-caption {
  font-size: var(--cms-cap-size, 12px);
  font-weight: var(--cms-cap-weight, 400);
  color: var(--cms-cap-color, var(--text-muted));
  text-align: var(--cms-cap-align, center);
  margin-top: var(--cms-cap-gap, 4px);
}

/* ── YouTube block ── */
.block-youtube {
  display: grid;
  /* Boşluk blok bazında ayarlanır (admin → youtube bloğu) */
  gap: var(--cms-youtube-gap, 20px);
}
.block-youtube.cols-1 { grid-template-columns: 1fr; }
.block-youtube.cols-2 { grid-template-columns: repeat(2, 1fr); }
.block-youtube.cols-3 { grid-template-columns: repeat(3, 1fr); }
.block-youtube.cols-4 { grid-template-columns: repeat(4, 1fr); }
.block-youtube.cols-5 { grid-template-columns: repeat(5, 1fr); }

.block-youtube.cols-mobile-1 { --cms-youtube-cols-mobile: 1; }
.block-youtube.cols-mobile-2 { --cms-youtube-cols-mobile: 2; }
.block-youtube.cols-mobile-3 { --cms-youtube-cols-mobile: 3; }
.block-youtube.cols-mobile-4 { --cms-youtube-cols-mobile: 4; }
.block-youtube.cols-mobile-5 { --cms-youtube-cols-mobile: 5; }

.block-youtube .youtube-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #0f172a;
}
.block-youtube .youtube-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.block-youtube .youtube-caption {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

/* ── Maps block ── */
.block-maps .maps-embed {
  position: relative;
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.block-maps .maps-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* ── Satır / Kolon ızgarası (CMS row bloğu) ──
   12 kolonluk grid. col-N mobil, col-md-N 768px ve üstü genişliği belirler. */
.block-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--cms-row-gap, 24px);
  align-items: start;
}
.block-row .cms-col { min-width: 0; }
/* Kolon içindeki son blok alt boşluk bırakmasın */
.block-row .cms-col > .cms-block:last-child { margin-bottom: 0; }
.block-row .col-1 { grid-column: span 1; }
.block-row .col-2 { grid-column: span 2; }
.block-row .col-3 { grid-column: span 3; }
.block-row .col-4 { grid-column: span 4; }
.block-row .col-5 { grid-column: span 5; }
.block-row .col-6 { grid-column: span 6; }
.block-row .col-7 { grid-column: span 7; }
.block-row .col-8 { grid-column: span 8; }
.block-row .col-9 { grid-column: span 9; }
.block-row .col-10 { grid-column: span 10; }
.block-row .col-11 { grid-column: span 11; }
.block-row .col-12 { grid-column: span 12; }
@media (min-width: 768px) {
  .block-row .col-md-1 { grid-column: span 1; }
  .block-row .col-md-2 { grid-column: span 2; }
  .block-row .col-md-3 { grid-column: span 3; }
  .block-row .col-md-4 { grid-column: span 4; }
  .block-row .col-md-5 { grid-column: span 5; }
  .block-row .col-md-6 { grid-column: span 6; }
  .block-row .col-md-7 { grid-column: span 7; }
  .block-row .col-md-8 { grid-column: span 8; }
  .block-row .col-md-9 { grid-column: span 9; }
  .block-row .col-md-10 { grid-column: span 10; }
  .block-row .col-md-11 { grid-column: span 11; }
  .block-row .col-md-12 { grid-column: span 12; }
}

/* Zorunlu alan yıldızı — tüm formlarda tek kaynak.
   Daha önce sayfa sayfa sabit renk yazılıyordu (#dc2626 / #ef4444 karışık). */
.req-star {
  color: var(--danger, #dc2626);
  font-weight: 700;
  margin-left: 2px;
}

/* ── Contact form block ── */
.block-contact-form {
  max-width: 560px;
}
/* Form kart içinde durur — sayfa içeriğinden görsel olarak ayrışsın */
.block-contact-form .cms-form-card {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius-md, 12px);
  box-shadow: var(--card-shadow, 0 1px 3px rgba(0, 0, 0, .08));
  padding: 24px;
}
.block-contact-form .cms-form-card .block-title {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.25rem;
}
.block-contact-form .cms-contact-form .form-group {
  margin-bottom: 14px;
}
.block-contact-form .cms-contact-form .form-control {
  width: 100%;
  box-sizing: border-box;
}
/* Sabitlenmiş alan — değeri panelden gelir, ziyaretçi değiştiremez */
.block-contact-form .cms-contact-form .cms-form-fixed {
  background: var(--bg-hover, #f3f4f6);
  color: var(--text-muted, #6b7280);
  cursor: default;
}
@media (max-width: 640px) {
  .block-contact-form .cms-form-card { padding: 18px 16px; }
  /* reCAPTCHA dar ekranda kartı taşırmasın */
  .block-contact-form .g-recaptcha {
    transform: scale(.86);
    transform-origin: center;
  }
}

/* ── Legal agreements ── */
.legal-agreements-wrap {
  margin: 16px 0;
}
.legal-agreement-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 10px;
  cursor: pointer;
}
.legal-agreement-item input {
  margin-top: 3px;
  flex-shrink: 0;
}
.legal-agreement-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}
.legal-req {
  color: var(--danger);
}
.legal-index-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.legal-index-list li {
  margin-bottom: 10px;
}
.legal-index-list a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.legal-index-list a:hover {
  text-decoration: underline;
}
.legal-doc-page .legal-doc-content {
  margin-top: 20px;
}

/* ── File download list ── */
.block-files-title {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 700;
  margin-bottom: 16px;
}
.block-files .file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.block-files .file-list-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  text-decoration: none;
  color: var(--text);
  transition: border-color .18s, box-shadow .18s;
}
.block-files .file-list-link:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.block-files .file-list-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #fee2e2;
  color: #dc2626;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Dosya türü renkleri — rozette uzantı yazısı yerine simge var */
.block-files .file-list-icon--pdf   { background: #fee2e2; color: #dc2626; }
.block-files .file-list-icon--word  { background: #dbeafe; color: #2563eb; }
.block-files .file-list-icon--excel { background: #dcfce7; color: #16a34a; }
.block-files .file-list-icon--zip   { background: #fef3c7; color: #d97706; }
.block-files .file-list-icon--other { background: #e2e8f0; color: #475569; }

/* Bağlantı satırı — dosya rozetinden ayrışsın diye ayrı renk ve simge */
.block-files .file-list-icon--link {
  background: color-mix(in srgb, var(--primary) 12%, var(--bg-card));
  color: var(--primary);
}
.block-files .file-list-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.block-files .file-list-name {
  font-weight: 600;
  font-size: 14px;
  word-break: break-word;
}
.block-files .file-list-size {
  font-size: 12px;
  color: var(--text-muted);
}
.block-files .file-list-dl {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--primary);
  opacity: .7;
}

/* ── CTA block ── */
.block-cta { border-radius: var(--radius-lg); overflow: hidden; }
.cta-inner  { padding: 48px 40px; }

.cta-align-left   .cta-inner { text-align: left; }
.cta-align-center .cta-inner { text-align: center; }
.cta-align-right  .cta-inner { text-align: right; }

.cta-style-primary {
  background: linear-gradient(135deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 70%, #000) 100%);
  color: #fff;
}
.cta-style-outline {
  background: var(--bg-card);
  border: 2px solid color-mix(in srgb, var(--primary) 35%, var(--border));
  color: var(--text);
}
.cta-style-ghost {
  background: color-mix(in srgb, var(--primary) 8%, var(--bg-card));
  border: 1px solid var(--border);
  color: var(--text);
}
.cta-style-light {
  background: var(--primary-10);
  border: 1px solid var(--border);
  color: var(--text);
}
.cta-style-dark {
  background: #1e293b;
  color: #fff;
}
/* Sade: zemin, çerçeve ve dolgu yok; buton metin bağlantısı gibi durur */
.cta-style-minimal {
  background: none;
  border: none;
  color: var(--text);
}
.cta-style-minimal .cta-inner { padding: 20px 0; }
.cta-style-minimal .cta-title { color: var(--text); }
.cta-style-minimal .cta-subtitle { color: var(--text-muted); }
.cta-style-minimal .btn-cta {
  background: none;
  border: none;
  padding: 2px 0;
  color: var(--primary);
  border-bottom: 2px solid color-mix(in srgb, var(--primary) 45%, transparent);
  border-radius: 0;
}
.cta-style-minimal .btn-cta:hover {
  border-bottom-color: var(--primary);
  transform: none;
  opacity: 1;
}

.block-cta .cta-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  margin-bottom: 10px;
}
.cta-style-primary .cta-title,
.cta-style-dark    .cta-title { color: #fff; }
.cta-style-outline .cta-title,
.cta-style-ghost   .cta-title,
.cta-style-light   .cta-title { color: var(--text); }

.block-cta .cta-subtitle {
  font-size: 16px;
  margin-bottom: 24px;
  opacity: .85;
}
.cta-style-outline .cta-subtitle,
.cta-style-ghost   .cta-subtitle { color: var(--text-muted); }

.block-cta .btn-cta {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--btn-radius);
  font-weight: 600;
  font-size: 15px;
  transition: opacity .18s, transform .18s, background .18s, border-color .18s, color .18s;
  text-decoration: none;
}
.block-cta .btn-cta:hover { opacity: .88; transform: translateY(-1px); }
.cta-style-primary .btn-cta {
  background: rgba(255, 255, 255, .2);
  border: 2px solid rgba(255, 255, 255, .5);
  color: #fff;
}
.cta-style-outline .btn-cta {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.cta-style-ghost .btn-cta {
  background: transparent;
  border: 2px solid transparent;
  color: var(--primary);
  box-shadow: none;
}
.cta-style-ghost .btn-cta:hover {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}
.cta-style-light .btn-cta { background: var(--primary); color: #fff; border: none; }
.cta-style-dark    .btn-cta { background: var(--primary); color: #fff; border: none; }

/* ── Divider block ── */
.block-divider { padding: 8px 0; }
.block-divider hr { border: none; }
.divider-solid  hr { border-top: 1px solid var(--border); }
.divider-dashed hr { border-top: 1px dashed var(--border); }
.divider-dotted hr { border-top: 1px dotted var(--border); }
.divider-thick  hr { border-top: 3px solid var(--border); }
.divider-none   hr { border: none; height: 32px; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .block-image-text:not(.vertical) {
    flex-direction: column !important;
  }
  .block-image-text .img-col {
    width: 100% !important;
  }
  /* Mobilde sıra: panelden seçilir. Sınıf yoksa masaüstü sırası (DOM) geçerli.
     İki çocuk olduğu için yalnız görsel sütununa order vermek yeterli. */
  .block-image-text.m-img-first  > .img-col { order: -1; }
  .block-image-text.m-text-first > .img-col { order: 1; }
  .block-gallery[class*="cols-mobile-"] {
    grid-template-columns: repeat(var(--cms-gallery-cols-mobile, 2), 1fr);
  }
  .block-youtube[class*="cols-mobile-"] {
    grid-template-columns: repeat(var(--cms-youtube-cols-mobile, 1), 1fr);
  }
  .cta-inner { padding: 32px 20px; }
}
.page-header h1 { font-size: 26px; font-weight: 800; }
.page-header p  { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* ── Utilities ──────────────────────────────────────── */
.text-primary  { color: var(--primary); }
.text-muted    { color: var(--text-muted); }
.text-center   { text-align: center; }
.font-bold     { font-weight: 700; }
.mt-auto       { margin-top: auto; }
.mb-0          { margin-bottom: 0; }
.gap-8         { gap: 8px; }
.flex          { display: flex; }
.flex-center   { display: flex; align-items: center; justify-content: center; }
.items-center  { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full        { width: 100%; }
.hidden        { display: none; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .cat-page-layout { flex-direction: column; }
  .filter-sidebar { width: 100%; position: static; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .account-layout { grid-template-columns: 1fr; }
  .account-nav { position: static; }
}

@media (max-width: 768px) {
  .product-detail-wrap.layout-left,
  .product-detail-wrap.layout-right,
  .product-detail-wrap.layout-custom,
  .product-detail-wrap.layout-custom.imgfixed { grid-template-columns: 1fr; direction: ltr; }
  /* Dar ekranda küçük görseller her zaman altta, şerit yatay */
  .layout-custom.thumbs-left  .product-gallery,
  .layout-custom.thumbs-right .product-gallery { display: block; }
  .layout-custom.thumbs-left  .gallery-thumbs,
  .layout-custom.thumbs-right .gallery-thumbs {
    order: 0;
    flex-direction: row;
    flex-wrap: wrap;
    max-height: none;
    margin-top: 12px;
  }
  /* Dar ekranda genişlik sınırı/sabiti anlamsız: ekran zaten dar, kutu
     ortada minicik kalıyordu. Yükseklik ayarı korunur. */
  .layout-custom .gallery-main,
  .layout-custom.imgfixed .gallery-main {
    width: auto;
    max-width: 100%;
    margin-inline: 0;
  }
  .layout-custom .gallery-main img { max-width: 100%; }
  .product-gallery { position: static; }
  .mobile-menu-btn { display: flex; }
  .main-nav { display: none; }
  .site-logo-img--desktop { display: none; }
  .site-logo-img--mobile  { display: inline-block; }

  /* Arama mobilde her modda ikonla açılır: kapalıyken gizli, açıkken
     header'ın altında tam genişlik. "Açık gelsin" seçilse bile dar
     ekranda kutuya yer yok. */
  .search-toggle-btn,
  body.hsearch-open .minimal-header .search-toggle-btn { display: flex; }
  /* Kutu mobilde ikinci satıra indiği için ikonlar yine sağa yaslanmalı */
  body.hsearch-open .classic-header .header-top-inner .header-actions { margin-left: auto; }

  /* Classic: arama zaten header-top-inner'ın doğrudan çocuğu */
  .classic-header .header-top-inner { flex-wrap: wrap; }
  .classic-header .search-form { order: 3; flex: 0 0 100%; max-width: none; display: none; }
  .classic-header.search-open .search-form { display: flex; }

  /* Minimal: ortadaki kategori menüsü gizlenir, yerini hamburger alır */
  .minimal-header .mh-inner { grid-template-columns: auto auto; justify-content: space-between; }
  .minimal-header .mh-nav { display: none; }
  /* Dar ekranda düğmenin soluna açılan kutuya yer yok: her modda
     alttaki tam genişlik satırına dönülür */
  body.hsearch-toggle .hdr-search-inline,
  body.hsearch-open   .hdr-search-inline { display: none; }
  .minimal-header.search-open .mh-search,
  body.hsearch-toggle .minimal-header.search-open .mh-search { display: block; }
  body.hsearch-toggle .classic-header .header-top-inner > .search-form { display: none; }
  body.hsearch-toggle .classic-header.search-open .header-top-inner > .search-form { display: flex; }
  body.hsearch-toggle .centered-header.search-open .header-side:first-child { display: flex; }

  /* Geniş logolu mağazalarda satır taşıyor, ikonlar (hesap/sepet/menü)
     ekranın dışına itiliyordu. Logo daralabilsin, ikonlar sabit kalsın. */
  .minimal-header .mh-left  { min-width: 0; overflow: hidden; }
  .minimal-header .mh-left .site-logo-img { max-width: 100%; }
  .minimal-header .mh-right { flex-shrink: 0; }

  /* Centered: arama grid'in 2. satırında tüm genişliği kaplar */
  .centered-header .header-side:first-child {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .centered-header.search-open .header-side:first-child { display: flex; }
  .centered-header .header-side:first-child .search-form { flex: 1 1 100%; }
  .classic-header .header-top-inner { gap: 8px; }
  .centered-header .centered-top { grid-template-columns: 1fr auto; }
  /* Logo 1. satırda tek başına 1fr sütunda kalıyor; justify-self:center kalırsa
     sola boşluk varmış gibi görünür → sola hizala. */
  .centered-header .centered-logo { justify-self: start; }

  .product-grid { grid-template-columns: repeat(var(--grid-cols-mobile, 2), 1fr); }
  /* Az ürünlü bölüm mobilde de kart genişliğini korusun */
  .product-grid--few {
    grid-template-columns: repeat(
      var(--few-count, 1),
      minmax(0, calc((100% - (var(--grid-cols-mobile, 2) - 1) * 20px) / var(--grid-cols-mobile, 2)))
    );
  }

  /* Kategori sayfa başlığı: mobilde dikey yığ — sıralama dropdown'u alta */
  .page-header { padding: 16px 0; margin-bottom: 0; }
  .page-header-inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .page-header h1 { font-size: 22px; }
  .cms-page-title { font-size: 22px; margin-bottom: 20px; }
  .cms-page-lead  { font-size: 15px; margin: -12px 0 20px; }
  .page-header .sort-select { width: 100%; }

  /* Mobilde "Kategoriler:" etiketi gerekmiyor */

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
  .footer-col-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
  /* Mobil: sosyal ikonlar ve ödeme görseli AYNI satırda yan yana,
     telif altlarında. Dar ekranda ikisini alt alta koymak şeridi
     gereksiz uzatıyordu. */
  /* Mobil: tek sütun, ortalanmış. Sıra: sosyal ikonlar → telif + ödeme
     görseli → altyapı künyesi (en altta, kendi satırında). */
  .footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding-top: 18px !important;
    padding-bottom: 18px !important;
  }
  /* Sıra: sosyal ikonlar + ödeme görseli → telif → altyapı künyesi (en altta) */
  .footer-bottom-inner .footer-social-row    { order: 1; }
  .footer-bottom-inner .footer-bottom-left   { order: 2; justify-content: center; }
  .footer-bottom-inner .footer-bottom-center { order: 3; }
  /* Sosyal linkler masaüstündeki gibi ikon + isim; tek satırda kalsın, alt alta düşmesin.
     Sığmazsa yatayda kaydırılır (gizli scrollbar). */
  .footer-social-row {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 12px;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .footer-social-row::-webkit-scrollbar { display: none; }
  .footer-social-link {
    flex-shrink: 0;
    gap: 6px;
    font-size: 12px;
    white-space: nowrap;
  }
  .footer-copy { font-size: 12px; }
  /* Mobilde yan yana banner sayısı — admin → Ayarlar → Banner. Değişken
     yoksa (eski tema önbelleği) tek sütuna düşer. */
  .banner-grid {
    grid-template-columns: repeat(var(--banner-cols-mobile, 1), minmax(0, 1fr));
    gap: 12px;
  }
  /* Kart yüksekliği sütun sayısıyla ölçeklenir; 110px'in altına düşmez.
     1 sütun → 200px, 2 → 110px, 3 → 110px */
  .banner-grid .banner-card {
    min-height: max(110px, calc(200px / var(--banner-cols-mobile, 1)));
  }
  /* Kırpma kapalıyken bu taban yükseklik görselin altında boş bant
     bırakıyordu; contain'de kartın boyunu görselin kendisi belirler. */
  .banner-grid .banner-card.bfit-contain { min-height: 0; }
  .section { padding: 40px 0; }
  /* Oklar 36px + 8px kenar boşluğu kaplıyor; yazı onların altına girmesin diye
     yatay iç boşluk buna göre verilir (8 + 36 + 8 = 52px). */
  .slider-btn-wrap { padding: 0 8px; }
  .slider-nav-btn  { width: 36px; height: 36px; }
  .slider-nav-btn svg { width: 16px; height: 16px; }
  .slide-content   { padding: 20px 52px; }
  /* Tek slaytta ok basılmaz — o zaman dar boşluk yeter */
  .slider-wrap:not(:has(.slider-btn-wrap)) .slide-content { padding: 20px; }
  .slider-h-lg { height: 280px; }
  .slider-h-full { height: 240px; }
  .category-grid { grid-template-columns: repeat(var(--home-cat-cols-mobile, 2), minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-col-brand {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(var(--grid-cols-mobile, 2), 1fr); gap: 12px; }
  .product-grid--few {
    grid-template-columns: repeat(
      var(--few-count, 1),
      minmax(0, calc((100% - (var(--grid-cols-mobile, 2) - 1) * 12px) / var(--grid-cols-mobile, 2)))
    );
  }
  .category-grid { grid-template-columns: repeat(var(--home-cat-cols-mobile, 2), minmax(0, 1fr)); }
  /* Yalnız yan boşluk: kısa yazım (padding: 0 14px) dikey değerleri de
     sıfırlıyordu ve bu kural .cms-page-wrap'ten SONRA geldiği için 480px
     altında CMS sayfasının üst/alt boşluğu kayboluyor, son blok footer'a
     yapışıyordu. */
  .container { padding-left: 14px; padding-right: 14px; }
  .product-title { font-size: 22px; }
  .product-price { font-size: 28px; }
  .auth-body { padding: 24px 20px; }
}

/* ── CMS lightbox (blog / sayfa) ─────────────────────── */
.pg-lb {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0, 0, 0, .92);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.pg-lb.is-open { display: flex; }
.pg-lb-stage {
  max-width: 100%; max-height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.pg-lb-stage img {
  max-width: 90vw; max-height: 80vh;
  object-fit: contain; display: block;
  user-select: none; -webkit-user-drag: none;
}
/* Büyütmedeki video: resimle aynı sınırlar, kendi oranını korur.
   [hidden] AYRICA yazılmalı: aşağıdaki "display" kuralları HTML'in kendi
   gizleme kuralını eziyor, video slaytında resim ekranda kalıyordu. */
.pg-lb-stage img[hidden],
.pg-lb-video[hidden] { display: none; }
.pg-lb-video { display: flex; align-items: center; justify-content: center; }
.pg-lb-video video,
.pg-lb-video iframe {
  max-width: 90vw; max-height: 80vh;
  width: auto; height: auto; border: 0;
  display: block; background: #000;
}
/* Gömülü oynatıcı kendi boyutunu bilmiyor: 16:9 kutu verilir */
.pg-lb-video iframe { width: min(90vw, 1280px); aspect-ratio: 16 / 9; height: auto; }

.pg-lb-cap {
  margin-top: 12px; max-width: 90vw;
  color: rgba(255, 255, 255, .85); font-size: 14px; text-align: center;
}
.pg-lb-close, .pg-lb-nav {
  position: absolute;
  background: rgba(255, 255, 255, .1); color: #fff; border: none;
  cursor: pointer; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit; line-height: 1;
  transition: background .15s;
}
.pg-lb-close:hover, .pg-lb-nav:hover { background: rgba(255, 255, 255, .22); }
.pg-lb-close { top: 20px; right: 20px; width: 42px; height: 42px; font-size: 26px; }
.pg-lb-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 32px; }
.pg-lb-prev { left: 20px; }
.pg-lb-next { right: 20px; }
.pg-lb-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, .85); font-size: 13px; font-weight: 600;
  background: rgba(0, 0, 0, .4); padding: 6px 14px; border-radius: 20px;
}
body.cms-lb-open { overflow: hidden; }
[data-cms-lightbox] img.cms-lb-ready,
[data-cms-lightbox] .cms-lb-trigger { cursor: zoom-in; }
.cms-lb-trigger {
  display: block; padding: 0; border: none; background: none;
  width: 100%; text-align: inherit; font: inherit;
}
@media (max-width: 640px) {
  .pg-lb-nav { width: 40px; height: 40px; font-size: 26px; }
  .pg-lb-prev { left: 8px; }
  .pg-lb-next { right: 8px; }
  .pg-lb-close { top: 12px; right: 12px; width: 36px; height: 36px; font-size: 22px; }
}

/* ── Referanslar (ana sayfa + referanslar sayfası) ─── */
.section-header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 24px;
}
.section-more-link {
  font-size: 14px; font-weight: 600; color: var(--primary);
  text-decoration: none; white-space: nowrap;
}
.section-more-link:hover { text-decoration: underline; }

.home-references { background: var(--surface, #fff); }

.refs-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
}
.refs-logo-grid--page {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  margin-top: 8px;
}
.refs-logo-item,
.refs-logo-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 20px 16px;
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 12px);
  text-decoration: none; color: inherit;
  transition: box-shadow .15s, border-color .15s;
}
.refs-logo-item:hover {
  border-color: var(--primary-20, rgba(99,102,241,.2));
  box-shadow: var(--card-shadow, 0 4px 20px rgba(0,0,0,.06));
}
.refs-logo-item img,
.refs-logo-card img {
  max-width: 80px; max-height: 56px; object-fit: contain;
}
.refs-logo-fallback {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary-10, rgba(99,102,241,.1));
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
}
.refs-logo-fallback--lg { width: 56px; height: 56px; font-size: 22px; }
.refs-logo-name {
  font-size: 12px; font-weight: 600; text-align: center;
  color: var(--text); line-height: 1.3;
}
.refs-logo-sector { font-size: 11px; color: var(--text-muted); text-align: center; }

.refs-page-wrap { padding: 40px 20px 80px; }
.refs-page-title {
  text-align: center; margin-bottom: 12px;
  font-size: clamp(22px, 4vw, 36px);
}
.refs-page-lead {
  text-align: center; color: var(--text-muted);
  margin-bottom: 48px; font-size: 15px;
}
.refs-empty { text-align: center; padding: 80px 20px; color: var(--text-muted); }
.refs-empty-icon { font-size: 48px; margin-bottom: 12px; }
.refs-empty-title { font-size: 16px; font-weight: 600; }

.refs-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px; margin-bottom: 48px;
}
.refs-testimonial-card {
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 12px);
  padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.refs-testimonial-head { display: flex; align-items: center; gap: 14px; }
.refs-testimonial-logo {
  width: 52px; height: 52px; object-fit: contain;
  border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg, #f8fafc);
}
.refs-testimonial-name { font-size: 15px; font-weight: 700; }
.refs-testimonial-sector { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.refs-stars { color: #f59e0b; font-size: 14px; margin-top: 2px; }
.refs-quote {
  margin: 0; font-size: 14px; color: var(--text-2, #4b5563);
  line-height: 1.6; font-style: italic;
}
.refs-website-link {
  font-size: 12px; color: var(--primary);
  text-decoration: none; align-self: flex-start;
}
.refs-website-link:hover { text-decoration: underline; }
.refs-subtitle {
  text-align: center; font-size: 18px; font-weight: 600;
  margin-bottom: 28px; color: var(--text);
}

/* ── İletişim sayfası ───────────────────────────────── */
.contact-page { padding: 32px 0 72px; }
.contact-page-header { text-align: center; margin-bottom: 40px; }
.contact-page-title {
  font-size: clamp(26px, 4vw, 38px); font-weight: 800;
  margin-bottom: 10px; color: var(--text);
}
.contact-page-lead { color: var(--text-muted); font-size: 15px; max-width: 520px; margin: 0 auto; }

.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-page-grid { grid-template-columns: 1fr; }
}

.contact-info-panel,
.contact-form-panel {
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 16px);
  padding: 28px;
}
.contact-info-heading { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.contact-info-list { list-style: none; display: flex; flex-direction: column; gap: 18px; margin-bottom: 24px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-icon { font-size: 20px; line-height: 1; flex-shrink: 0; }
.contact-info-icon i { font-size: 16px; line-height: 1; color: var(--primary); width: 20px; text-align: center; }
.contact-info-label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: 4px; }
.contact-info-value { font-size: 14px; color: var(--text); text-decoration: none; }
a.contact-info-value:hover { color: var(--primary); text-decoration: underline; }
.contact-info-address { line-height: 1.6; }

.contact-map-wrap { margin-top: 8px; }
.contact-map {
  width: 100%; height: 220px; border: 1px solid var(--border);
  border-radius: var(--radius-md, 12px);
}
.contact-map-link {
  display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600;
  color: var(--primary); text-decoration: none;
}
.contact-map-link:hover { text-decoration: underline; }

.contact-form-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.contact-form-alert {
  padding: 12px 14px; border-radius: var(--radius-sm, 8px);
  font-size: 14px; margin-bottom: 16px;
}
.contact-form-alert--success {
  background: #ecfdf5; color: #166534; border: 1px solid #bbf7d0;
}
.contact-form-alert--error {
  background: #fef2f2; color: #991b1b; border: 1px solid #fecaca;
}
.contact-form .form-row-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
@media (max-width: 560px) {
  .contact-form .form-row-2 { grid-template-columns: 1fr; }
}
.contact-form .form-group { margin-bottom: 14px; }
.contact-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%; padding: 10px 12px; font-size: 14px; font-family: inherit;
  border: 1px solid var(--border); border-radius: var(--radius-sm, 8px);
  background: var(--surface, #fff); color: var(--text);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-recaptcha-wrap { display: flex; justify-content: center; }

/* ============================================================
   MOBİL DOKUNMA HEDEFLERİ
   390px'te ölçülerek çıkarıldı: galeri noktaları 7px, bölüm ve
   marka bağlantıları 14–22px yükseklikteydi; parmakla ıskalanıyor.
   Görünüm bozulmadan yalnız dokunma alanı büyütülür.
   ============================================================ */
@media (max-width: 768px) {

  /* Ürün görseli galerisindeki noktalar */
  .pc-dots { gap: 12px; }
  .pc-dot  { width: 10px; height: 10px; position: relative; }
  .gallery-main .pc-dot { width: 12px; height: 12px; }
  /* Görünmez tutma payı — noktalar arası boşluk kadar, üst üste binmez */
  .pc-dot::after { content: ''; position: absolute; inset: -6px; }

  /* Metin bağlantıları: satır kutusunu bozmadan dikey pay */
  .section-link,
  .product-card-brand,
  .contact-info-value,
  .contact-item__link,
  .footer-col a,
  .footer-address a,
  .footer-bottom a,
  .site-footer a { display: inline-block; padding-block: 6px; }

  /* genel bağlantı payı: kırıntı yolu, menü ve içerik bağlantıları da
     34px'e yaklaşsın. Satır içi metin bağlantılarında da güvenli —
     padding-block satır aralığını değiştirmez. */
  a { padding-block: 7px; }

  /* Düğme görünümlü bağlantı ve düğmeler 36px'in altına inmesin */
  .btn, a.btn, button { min-height: 36px; }
  .btn { display: inline-flex; align-items: center; justify-content: center; }

  /* Onay kutuları — ödeme ekranında 13x13px ölçüldü.
     Sözleşme onayı ve "fatura adresim aynı" gibi zorunlu kutular
     parmakla ıskalanıyordu; işaretlenmeden sipariş tamamlanamıyor. */
  input[type="checkbox"],
  input[type="radio"] { width: 20px; height: 20px; accent-color: var(--primary, #111); }

  /* Kutunun etiketiyle birlikte tıklanabilir yüksekliği */
  label:has(> input[type="checkbox"]),
  label:has(> input[type="radio"]),
  .addr-save-row,
  .legal-agree { min-height: 34px; display: flex; align-items: center; gap: 10px; }
}

/* ── Yönetici temsili giriş şeridi (mağaza) ────────────────────
   Sayfanın en üstünde, gezinmeden önce. Renk kasten dikkat çekici:
   yönetici müşteri hesabında olduğunu bir bakışta görmeli. */
.temsil-bar {
  position: sticky;
  top: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 18px;
  background: #7c2d12;
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
}
.temsil-bar b { font-weight: 700; }
.temsil-bar__nokta {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fbbf24;
  flex-shrink: 0;
}
.temsil-bar__cik {
  margin-left: auto;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.temsil-bar__cik:hover { background: rgba(255, 255, 255, .15); }

@media (max-width: 768px) {
  .temsil-bar { padding: 8px 14px; font-size: 12px; }
  .temsil-bar__cik { margin-left: 0; width: 100%; text-align: center; }
}

/* ===== Ürün detayı: favori, bildirim ve paylaşım aksiyonları =====
   Bu kurallar urun.php'nin sayfa sonundaki <style> bloğundaydı; tarayıcı
   düğmeleri önce stilsiz çizip sonra biçimlendiriyor, gözle görülür bir
   sıçrama oluyordu (FOUC). Head'de yüklenen bu dosyaya taşındı. */
/* Favori düğmesi */
/* Bildirim düğmesi "stokta yok" uyarısının içinde; uyarı kutusu satır olur */
.pd-oos-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:16px}
/* .alert font-weight:500 veriyor; bu satırda düz metin isteniyor */
.pd-oos-text{flex:1 1 auto;min-width:0;font-weight:400}
.pd-oos-row > .pd-alert-cta{margin-top:0;flex:0 0 auto}
/* Üye girişliyken tam kutu: uyarının içinde değil, altında kendi satırında */
.pd-oos-row > .pd-alert{flex:1 1 100%;margin-top:0;background:var(--bg-card,#fff)}

/* Favori ve fiyat alarmı yan yana, ikisi de içerik genişliğinde. Üye
   girişliyken fiyat alarmı tam kutu olduğu için kendi satırına düşer. */
.pd-actions{display:flex;flex-wrap:wrap;align-items:stretch;gap:10px;margin-top:14px}
.pd-actions > .pd-fav-btn,.pd-actions > .pd-alert-cta{margin-top:0;flex:0 0 auto}
.pd-actions > .pd-alert{flex:1 1 100%;margin-top:0}
.pd-fav-btn{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;
  border:1px solid var(--border,#e5e7eb);border-radius:var(--btn-radius,8px);
  background:var(--bg-card,#fff);color:var(--text-secondary,#4b5563);
  font-size:13px;font-weight:600;font-family:inherit;cursor:pointer;
  transition:background .15s,border-color .15s,color .15s}
.pd-fav-btn:hover{border-color:#ef4444;color:#ef4444}
.pd-fav-btn.is-on{border-color:#ef4444;color:#ef4444;background:#ef444412}
.pd-fav-btn.is-on svg{fill:#ef4444}
.pd-fav-btn[disabled]{opacity:.6;cursor:default}

/* Stok / fiyat bildirim kutuları */
.pd-alert{margin-top:14px;padding:13px 15px;border:1px solid var(--border,#e5e7eb);
  border-radius:var(--btn-radius,8px);background:var(--bg-hover,#f9fafb)}
.pd-alert-head{display:flex;align-items:center;gap:8px;font-size:13.5px;font-weight:700;
  color:var(--text-primary,#111827);margin-bottom:6px}
.pd-alert-note{margin:0 0 9px;font-size:12.5px;color:var(--text-muted,#6b7280);line-height:1.6}
.pd-alert-form{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.pd-alert-form input[type=email],.pd-alert-dir{flex:1 1 180px;min-width:150px;padding:9px 11px;
  border:1px solid var(--border,#e5e7eb);border-radius:var(--btn-radius,8px);
  background:var(--bg-card,#fff);color:var(--text-primary,#111827);font-size:13px;
  font-family:inherit;outline:none;box-sizing:border-box}
.pd-alert-dir{cursor:pointer;flex:0 1 160px}
.pd-alert-form .btn{flex-shrink:0;display:inline-flex;align-items:center;gap:7px}
.pd-alert-form .btn svg{flex-shrink:0}
.pd-alert-consent{display:flex;align-items:flex-start;gap:7px;margin-top:9px;
  font-size:11.5px;color:var(--text-muted,#6b7280);line-height:1.5;cursor:pointer}
.pd-alert-consent input{margin-top:1px;flex-shrink:0}
.pd-alert-msg{margin-top:8px;font-size:12.5px;line-height:1.5}
.pd-alert-msg.is-ok{color:#059669}
.pd-alert-msg.is-err{color:#dc2626}
.pd-alert.is-done .pd-alert-form,.pd-alert.is-done .pd-alert-consent{display:none}

/* Üye olmayan ziyaretçi: kutu yerine tek satır ikonlu düğme.
   Uyarının içinde durduğu için zemini yok; rengini kapsayıcıdan alır. */
.pd-alert-cta{display:inline-flex;align-items:center;justify-content:center;gap:8px;
  margin-top:14px;padding:6px 10px;
  /* Çerçevesiz: uyarı kutusunun içinde duruyor, kendi kutusu olmasın */
  border:0;border-radius:var(--radius-sm,8px);
  background:transparent;color:inherit;
  font-size:13px;font-weight:400;line-height:1.3;text-decoration:underline;
  text-underline-offset:3px;transition:background .15s,opacity .15s}
.pd-alert-cta:hover{background:rgba(0,0,0,.05);color:inherit}
.pd-alert-cta svg{flex-shrink:0}
/* Sade metin: düğmenin kendisi giriş sayfasına götürdüğü için ek etiket yok */
.pd-alert-cta:hover small{color:var(--primary,#4f46e5)}

/* Paylaşım aksiyonları — sepete ekle bloğunun altında */
.pd-share{margin-top:18px;padding-top:16px;border-top:1px solid var(--border,#e5e7eb)}
.pd-share-title{display:block;font-size:12px;font-weight:600;color:var(--text-muted,#6b7280);
  text-transform:uppercase;letter-spacing:.05em;margin-bottom:9px}
.pd-share-btns{display:flex;flex-wrap:wrap;gap:8px}
.pd-share-btn{display:inline-flex;align-items:center;gap:7px;padding:8px 13px;
  border:1px solid var(--border,#e5e7eb);border-radius:var(--btn-radius,8px);
  background:var(--bg-card,#fff);color:var(--text-secondary,#4b5563);
  font-size:12.5px;font-weight:600;font-family:inherit;line-height:1;
  cursor:pointer;text-decoration:none;transition:background .15s,border-color .15s,color .15s}
.pd-share-btn svg{flex-shrink:0}

/* Kanal renkleri EVRENSELDİR: tema rengine bağlı değil, her mağazada aynı.
   Her düğme kendi --pd-c değerini verir; sade görünümde bu renk yalnız
   hover'da çerçeve ve yazıya, renkli görünümde zemine uygulanır. */
.pd-share-btn{--pd-c:#475569}
.pd-share-btn.is-wa,.pd-share-btn.is-ask{--pd-c:#25d366}
.pd-share-btn.is-mail{--pd-c:#ea4335}
#pdCopyLink{--pd-c:#64748b}
#pdNativeShare{--pd-c:#2563eb}

/* Sade görünüm — üzerine gelince kendi kanal rengi */
.pd-share-btn:hover{background:var(--bg-hover,#f9fafb);border-color:var(--pd-c);color:var(--pd-c)}
.pd-share-btn.is-copied{border-color:#10b981;color:#059669;background:#10b98114}

/* Renkli görünüm (Ayarlar → Paylaş Butonları Renkli) */
.pd-share.is-colored .pd-share-btn{background:var(--pd-c);color:#fff;border-color:transparent}
.pd-share.is-colored .pd-share-btn:hover{filter:brightness(.92);background:var(--pd-c);
  color:#fff;border-color:transparent}
.pd-share.is-colored .pd-share-btn.is-copied{background:#059669;color:#fff}
@media (max-width:480px){
  .pd-share-btn span{display:none}
  .pd-share-btn{padding:10px 13px}
  .pd-share-btn.is-ask span{display:inline}
}

/* ===== Ürün detayı: galeri, yapışkan düğme ve lightbox =====
   urun.php'nin sayfa sonundaki <style> bloğundan taşındı; sayfa sonunda
   durduğu için galeri ve lightbox ilk çizimde stilsiz görünüyordu.
   Kurallar site.css'in sonunda: yukarıdaki tanımları bilerek eziyorlar. */
/* Galeri varsayılanda akışta; yalnız görsel SOLDAYKEN yapışkan olur:
   sağdaki bilgi/açıklama sütunu kayarken resim ekranda kalır, o sütun
   bitince sayfa birlikte kayar. Grid'de align-items:start olduğu için
   sütun içeriği kadar yükselir, sticky'nin ihtiyaç duyduğu boşluk oluşur. */
.product-gallery{position:static;top:auto;z-index:auto}
.product-detail-wrap.layout-left > .product-gallery,
.product-detail-wrap.layout-custom:not(.side-right) > .product-gallery{
  position:sticky;top:calc(var(--header-h, 64px) + 20px);align-self:start;z-index:1
}
/* Tek sütuna düşen dar ekranda (kırılım 768px) yapışkanlık anlamsız.
   Seçiciler yukarıdakilerle AYNI özgüllükte olmalı: "> .product-gallery"
   tek başına daha zayıf kaldığı için mobilde sticky ezilmiyor, resim
   sayfayla birlikte kaymıyordu. */
@media (max-width:768px){
  .product-detail-wrap.layout-left > .product-gallery,
  .product-detail-wrap.layout-custom:not(.side-right) > .product-gallery,
  .product-detail-wrap > .product-gallery{position:static;top:auto;z-index:auto}
}
.product-gallery .gallery-thumbs{margin-top:0}

/* Ana resim: zorunlu kare aspect kaldırıldı, resim kendi oranında görünür */
.gallery-main{margin-bottom:0;aspect-ratio:auto;height:auto;display:block}
.gallery-main img{padding:0;width:100%;height:auto;object-fit:contain}

/* Breadcrumb ↔ galeri arası rahat boşluk */
.breadcrumb{padding:10px 0 22px}

/* Yapışkan Sepete Ekle: viewport tabanına gerçekten sabit, full width */
body.has-sticky-cart{padding-bottom:54px}
.add-to-cart-btn.sticky-btn{
  position:fixed;left:0;right:0;bottom:0;
  width:100%;max-width:100%;
  border-radius:0;margin:0;
  padding:14px 20px;
  z-index:80;
  box-shadow:0 -4px 16px rgba(0,0,0,.12);
}
.add-to-cart-btn.sticky-btn .atc-label{display:inline-block}

/* Yüzen (FAB) Sepete Ekle butonu — köşede yer aldığı için body padding yok */
.add-to-cart-btn.floating-btn{
  position:fixed;bottom:24px;right:24px;
  width:64px;height:64px;border-radius:50%;
  padding:0;margin:0;display:inline-flex;align-items:center;justify-content:center;gap:0;
  z-index:80;box-shadow:0 6px 20px rgba(0,0,0,.25);
}
.add-to-cart-btn.floating-btn .atc-label{display:none}
.add-to-cart-btn.floating-btn svg{width:26px;height:26px}
@media (max-width:640px){
  .add-to-cart-btn.floating-btn{width:56px;height:56px;bottom:16px;right:16px}
}

/* Benzer Ürünler — mobilde 2 sütun + yana kaydırmalı slider */
@media (max-width:768px){
  .related-grid{
    display:flex !important;
    grid-template-columns:none !important;
    gap:12px !important;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    padding:4px 4px 14px;
    margin:0 -4px;
    scrollbar-width:thin;
  }
  .related-grid > *{
    flex:0 0 calc(50% - 6px);
    min-width:calc(50% - 6px);
    scroll-snap-align:start;
  }
  .related-grid::-webkit-scrollbar{height:6px}
  .related-grid::-webkit-scrollbar-thumb{background:rgba(0,0,0,.15);border-radius:3px}
}
.gallery-thumbs{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;align-content:flex-start}
.gallery-thumb{appearance:none;-webkit-appearance:none;background:#fff;padding:0;width:72px;height:72px;border:2px solid var(--border,#e5e7eb);border-radius:var(--radius-lg,16px);overflow:hidden;cursor:pointer;flex:0 0 auto;display:block;line-height:0;transition:border-color .15s,transform .15s;box-shadow:none}
.gallery-thumb:hover,.gallery-thumb.active{border-color:var(--primary,#4f46e5)}
.gallery-thumb.active{box-shadow:0 0 0 2px rgba(79,70,229,.18)}
.gallery-thumb img{width:100%;height:100%;object-fit:cover;display:block;padding:0;margin:0;background:#fff}
@media (max-width:640px){.gallery-thumb{width:60px;height:60px}}

/* Lightbox */
.pg-lb{position:fixed;inset:0;z-index:9000;background:rgba(0,0,0,.92);display:none;align-items:center;justify-content:center;padding:24px}
.pg-lb.is-open{display:flex}
.pg-lb-stage{max-width:100%;max-height:100%;display:flex;align-items:center;justify-content:center}
.pg-lb-stage img{max-width:90vw;max-height:85vh;object-fit:contain;display:block;user-select:none;-webkit-user-drag:none}
.pg-lb-close,.pg-lb-nav{position:absolute;background:rgba(255,255,255,.1);color:#fff;border:none;cursor:pointer;border-radius:50%;display:flex;align-items:center;justify-content:center;font-family:inherit;line-height:1;transition:background .15s}
.pg-lb-close:hover,.pg-lb-nav:hover{background:rgba(255,255,255,.22)}
.pg-lb-close{top:20px;right:20px;width:42px;height:42px;font-size:26px}
.pg-lb-nav{top:50%;transform:translateY(-50%);width:48px;height:48px;font-size:32px}
.pg-lb-prev{left:20px}
.pg-lb-next{right:20px}
.pg-lb-counter{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);color:rgba(255,255,255,.85);font-size:13px;font-weight:600;background:rgba(0,0,0,.4);padding:6px 14px;border-radius:20px}
@media (max-width:640px){
  .pg-lb-nav{width:40px;height:40px;font-size:26px}
  .pg-lb-prev{left:8px} .pg-lb-next{right:8px}
  .pg-lb-close{top:12px;right:12px;width:36px;height:36px;font-size:22px}
}
body.pg-lb-open{overflow:hidden}

/* ===== Hesabım sayfası =====
   hesap.php içindeki sayfa sonu <style> bloğundan taşındı:
   orada kalınca içerik önce stilsiz çizilip sonra yerine oturuyordu. */
  .nav-badge {
    margin-left: auto;
    background: var(--primary);
    color: #fff;
    border-radius: 99px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
  }
  .nav-badge-orange { background: #f59e0b; }

  .dashboard-greeting {
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
    padding: 24px 28px;
    border-left: 4px solid var(--primary);
  }

  .dashboard-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
  }
  @media (max-width: 480px) {
    .dashboard-stats { grid-template-columns: 1fr; }
  }
  .stat-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .stat-value { font-size: 26px; font-weight: 800; line-height: 1; }
  .stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

  /* Ödeme son anı rozeti */
  .order-deadline {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
  }

  /* Ödemesi bekleyen sipariş için vurgulu buton — detay butonuyla aynı ölçüde */
  .order-pay-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: var(--btn-radius, 8px);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
  }

  .order-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: var(--btn-radius, 8px);
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s;
    white-space: nowrap;
    background: transparent;
  }
  .order-detail-btn:hover,
  .order-detail-btn.hovered {
    background: var(--primary);
    color: #fff;
  }

  .ticket-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
    padding: 18px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    transition: box-shadow .15s;
  }
  .ticket-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.12); }

  .ticket-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
  }
  .ticket-status-open       { background:#dcfce7; color:#16a34a; }
  .ticket-status-in_progress{ background:#dbeafe; color:#2563eb; }
  .ticket-status-closed     { background:#f3f4f6; color:#6b7280; }

  .msg-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.55;
    word-break: break-word;
  }
  .msg-bubble-customer {
    background: var(--primary);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
  }
  .msg-bubble-admin {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
  }
  .msg-meta {
    font-size: 11px;
    opacity: .7;
    margin-top: 4px;
    text-align: right;
  }
  .msg-meta-admin { text-align: left; }

  #ticketModal { animation: fadeIn .2s; }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }


/* ===== Sipariş detayı =====
   siparis-detay.php içindeki sayfa sonu <style> bloğundan taşındı:
   orada kalınca içerik önce stilsiz çizilip sonra yerine oturuyordu. */
@media(max-width:768px){
  /* Tek sütuna düşerken `1fr` yetmiyor: otomatik en küçük genişlik
     min-content olduğu için uzun ürün adı / takip satırı sütunu
     ekrandan taşırıyordu (390px'te 538px'lik sütun ölçüldü).
     minmax(0,1fr) sütunun kaba ile aynı genişlikte kalmasını garanti eder. */
  .container > div[style*="grid-template-columns:1fr 340px"]{
    grid-template-columns:minmax(0,1fr) !important;
  }
  /* Sütun daralınca içerideki esnek satırların da kısalabilmesi gerekir */
  .container > div[style*="grid-template-columns:1fr 340px"] div{ min-width:0; }
  /* Durum adımlarının 10px etiketi telefonda okunmuyordu */
  .order-step-label{ font-size:11.5px !important; }
}


/* ===== Destek talepleri =====
   destek.php içindeki sayfa sonu <style> bloğundan taşındı:
   orada kalınca içerik önce stilsiz çizilip sonra yerine oturuyordu. */
  /* Widget: sayfa kaymaz; yalnızca mesaj listesi kayar, yazma alanı hep altta sabit.
     Seçiciler body sınıfıyla nitelendi — aşağıdaki sayfa stilleri (ve iframe dar
     olduğu için devreye giren @media max-width:600px kuralları) bunları ezmesin. */
  /* DİKKAT: "html" seçicisi burada tek başına duramaz — destek.php içindeyken
     yalnız o sayfayı etkiliyordu, ortak dosyaya taşınınca TÜM sayfalarda
     kaydırmayı kapattı. Kural artık yalnız widget sayfasında geçerli. */
  html:has(body.support-widget-page), body.support-widget-page {
    height: 100%; margin: 0; overflow: hidden; background: var(--bg-alt, #f8fafc);
  }
  .support-widget-page .support-page {
    height: 100%; min-height: 0; padding: 0; align-items: stretch;
    display: flex; flex-direction: column;
  }
  .support-widget-page .support-wrap { max-width: none; height: 100%; min-height: 0; }
  .support-widget-page .support-header { border-radius: 0; padding: 0 16px 9px 16px; flex-shrink: 0; }
  .support-widget-page .support-messages {
    flex: 1 1 auto;
    min-height: 0;            /* flex çocuğunun taşmasını engeller */
    max-height: none;         /* 100vh hesabı iframe içinde yanlış çalışıyordu */
    overflow-y: auto;         /* mobil kuralı 'visible' yapıyordu → son mesaj kesiliyordu */
    padding: 16px;
  }
  .support-widget-page .support-quick-replies { flex-shrink: 0; padding: 10px 14px; }
  .support-widget-page .support-input-area    { flex-shrink: 0; border-radius: 0; padding: 12px 14px; }
  .support-widget-page .support-info-strip    { flex-shrink: 0; padding: 8px 0 10px; }
  .support-widget-page .support-info-strip .sis-br { display: inline; }
  /* Modalda dar olduğu için temizle butonu yalnızca ikon */
  .support-widget-page .support-clear-btn span { display: none; }
  .support-widget-page .support-clear-btn { padding: 6px 9px; }
  .support-widget-page .support-unavail       { flex: 1 1 auto; }
  /* Doğrulama modalı dar panele sığsın: üstten hizala, gerekirse kaydır */
  .support-widget-page .sv-overlay { align-items: flex-start; padding: 10px; overflow-y: auto; }
  .support-widget-page .sv-card    { padding: 18px 16px; border-radius: 14px; max-height: calc(100% - 20px); overflow-y: auto; }
  .support-widget-page .sv-card-sub { margin-bottom: 14px; }
  .support-widget-page .sv-field   { margin-bottom: 10px; }

.support-page {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px 60px;
  background: var(--bg-alt, #f8fafc);
}
.support-wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.support-header {
  background: var(--primary);
  color: #fff;
  border-radius: 16px 16px 0 0;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.support-bot-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
  overflow: hidden;
}
.support-bot-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.support-clear-btn {
  margin-left: auto; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12); color: #fff;
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: background .15s ease;
}
.support-clear-btn:hover { background: rgba(255,255,255,.25); }
/* display:inline-flex, [hidden] özniteliğini ezdiği için açıkça gizle */
.support-clear-btn[hidden] { display: none; }
@media(max-width:600px){ .support-clear-btn span { display: none; } .support-clear-btn { padding: 7px 9px; } }
.support-bot-name  { font-size: 16px; font-weight: 700; line-height: 1.2; }
.support-bot-status { font-size: 12px; opacity: .85; margin-top: 2px; }
.support-bot-status span {
  display: inline-block; width: 7px; height: 7px;
  background: #4ade80; border-radius: 50%; margin-right: 4px;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:.4} }

.support-messages {
  background: var(--bg, #fff);
  padding: 24px 20px;
  flex: 1;
  min-height: 320px;
  max-height: calc(100vh - 300px);
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 16px;
  scroll-behavior: smooth;
}
.support-messages::-webkit-scrollbar { width: 5px; }
.support-messages::-webkit-scrollbar-thumb { background: var(--border,#e5e7eb); border-radius: 3px; }

.support-msg { display: flex; align-items: flex-end; gap: 10px; max-width: 88%; animation: msg-in .2s ease; }
@keyframes msg-in { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:none} }
.support-msg.user  { flex-direction: row-reverse; align-self: flex-end; }
.support-msg.bot   { align-self: flex-start; }
.support-msg-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0; background: var(--bg-alt,#f3f4f6);
}
.support-msg.user .support-msg-avatar { background: var(--primary-bg,#ede9fe); color: var(--primary); }
.support-msg-bubble {
  padding: 11px 15px; border-radius: 16px;
  font-size: 14px; line-height: 1.6; word-break: break-word;
}
.support-msg.bot  .support-msg-bubble { background: var(--bg-alt,#f3f4f6); border-bottom-left-radius: 4px; }
.support-msg.user .support-msg-bubble { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.support-msg-bubble strong { font-weight: 700; }
.support-msg-bubble ul { margin: 6px 0 6px 16px; }
.support-msg-bubble a { color: inherit; text-decoration: underline; opacity: .85; }
.support-msg.user .support-msg-bubble a { color: #fff; }

.support-typing { display:flex; align-items:flex-end; gap:10px; align-self:flex-start; }
.support-typing-dots {
  background: var(--bg-alt,#f3f4f6); border-radius: 16px 16px 16px 4px;
  padding: 13px 16px; display:flex; gap:4px; align-items:center;
}
.support-typing-dots span {
  width:7px; height:7px; background:var(--text-muted,#9ca3af); border-radius:50%;
  animation: typing-bounce .8s infinite;
}
.support-typing-dots span:nth-child(2){animation-delay:.13s}
.support-typing-dots span:nth-child(3){animation-delay:.26s}
@keyframes typing-bounce{0%,80%,100%{transform:none}40%{transform:translateY(-5px)}}

.support-quick-replies {
  background: var(--bg,#fff);
  border-top: 1px solid var(--border,#e5e7eb);
  padding: 14px 20px 14px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.support-quick-btn {
  padding: 7px 14px;
  border: 1px solid var(--primary); border-radius: 20px;
  background: transparent; color: var(--primary);
  font-size: 13px; cursor: pointer; transition: all .15s; white-space: nowrap;
}
.support-quick-btn:hover { background: var(--primary); color: #fff; }

.support-input-area {
  background: var(--bg,#fff);
  border-top: 2px solid var(--primary-bg,#ede9fe);
  border-radius: 0 0 16px 16px;
  padding: 14px 16px;
  display: flex; align-items: flex-end; gap: 10px;
}
.support-input-area textarea {
  flex: 1; border: 1px solid var(--border,#e5e7eb); border-radius: 10px;
  padding: 10px 14px; font-size: 16px; resize: none; outline: none;
  min-height: 42px; max-height: 120px; line-height: 1.5; font-family: inherit;
  background: var(--bg,#fff); color: var(--text,#111827);
  transition: border-color .15s;
}
.support-input-area textarea:focus { border-color: var(--primary); }
.support-input-area textarea::placeholder { color: var(--text-muted,#9ca3af); }
.support-send-btn {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--primary); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: opacity .15s;
}
.support-send-btn:hover { opacity: .88; }
.support-send-btn:disabled { opacity: .45; cursor: not-allowed; }
.support-error-msg .support-msg-bubble { background: #fee2e2; color: #b91c1c; }
.support-info-strip {
  text-align: center; font-size: 12px; color: var(--text-muted,#9ca3af); padding: 12px 0 0;
}
/* Satır kırılımı: yalnızca dar ekranda ve modal (widget) içinde */
.support-info-strip .sis-br { display: none; }
.support-unavail {
  background: var(--bg,#fff); padding: 48px 24px; text-align: center;
  border-radius: 0 0 16px 16px;
}

@media(max-width:600px){
  .support-page { padding: 0px 0 40px; }
  .support-info-strip .sis-br { display: inline; }
  .support-wrap, .support-header, .support-input-area { border-radius: 0; }
  .support-messages { max-height: none; overflow-y: visible; }
}

/* ─── Pre-chat Doğrulama Overlay ───────────────── */
.sv-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  z-index: 999; padding: 16px;
}
.sv-card {
  position: relative;
  background: var(--bg,#fff); border-radius: 20px;
  padding: 32px 28px; max-width: 440px; width: 100%;
  box-shadow: 0 12px 48px rgba(0,0,0,.22);
  max-height: calc(100vh - 32px); overflow-y: auto;
}
.sv-close {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: var(--bg-alt,#f3f4f6); color: var(--text-muted,#6b7280);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .15s, color .15s;
}
.sv-close:hover { background: var(--border,#e5e7eb); color: var(--text,#111827); }
.sv-card-title { font-size: 18px; font-weight: 700; color: var(--text,#111827); margin-bottom: 6px; }
.sv-card-sub { font-size: 13px; color: var(--text-muted,#6b7280); margin-bottom: 22px; line-height: 1.5; }
.sv-field { margin-bottom: 14px; }
.sv-field label { display: block; font-size: 13px; font-weight: 600; color: var(--text,#111827); margin-bottom: 5px; }
.sv-field input {
  width: 100%; border: 1.5px solid var(--border,#e5e7eb); border-radius: 10px;
  padding: 10px 13px; font-size: 14px; outline: none; font-family: inherit;
  background: var(--bg,#fff); color: var(--text,#111827); box-sizing: border-box; transition: border-color .15s;
}
.sv-field input:focus { border-color: var(--primary); }
.sv-btn {
  width: 100%; padding: 12px; border: none; border-radius: 10px;
  background: var(--primary); color: #fff; font-size: 15px; font-weight: 700;
  cursor: pointer; margin-top: 16px; transition: opacity .15s; font-family: inherit;
}
.sv-btn:hover { opacity: .88; } .sv-btn:disabled { opacity: .45; cursor: not-allowed; }
.sv-error { margin-top: 10px; font-size: 13px; color: #dc2626; min-height: 18px; }
.sv-resend { margin-top: 14px; text-align: center; font-size: 13px; color: var(--text-muted,#6b7280); }
.sv-link-btn {
  background: none; border: none; color: var(--primary); cursor: pointer;
  font-size: 13px; font-family: inherit; padding: 0; text-decoration: underline;
}
.sv-recaptcha-wrap { margin-top: 14px; display: flex; justify-content: center; }
.sv-otp-input { text-align: center; font-size: 26px; font-weight: 700; letter-spacing: 8px; }
.sv-field-hint { font-size: 12px; color: #dc2626; margin-top: 4px; }

/* ===== Markalar sayfası ===== */
.brand-alpha {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 22px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.brand-alpha a {
  min-width: 30px; padding: 4px 8px; text-align: center;
  border: 1px solid var(--border); border-radius: var(--btn-radius, 8px);
  font-size: 13px; color: var(--text); text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.brand-alpha a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.brand-group { margin-bottom: 26px; scroll-margin-top: calc(var(--header-h, 64px) + 16px); }
.brand-group-title {
  font-size: 15px; font-weight: 600; color: var(--text-muted);
  margin: 0 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border);
}
.brand-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.brand-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  text-decoration: none; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.brand-card:hover { border-color: var(--primary); box-shadow: var(--card-shadow); }
.brand-card-name { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-card-count { flex-shrink: 0; font-size: 11.5px; color: var(--text-muted); }
@media (max-width: 480px) {
  .brand-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
