/* ==========================================================================
   GOREEL — ÜRÜN SAYFASI
   ==========================================================================
   Üst yarı tek işe odaklı: gör ve sepete at.
   Alt yarı katalog gezdirir — bu katalogda okunacak açıklama olmadığı için
   asıl değer benzer ürünleri hızla taramak.
   ========================================================================== */

.bh-pd {
  background: var(--c-surface-sunken);
  padding-bottom: var(--s-16);
}


/* ==========================================================================
   ÜST YARI
   ========================================================================== */

/*
  İki sütun, sağ sütun İKİ satır: satın alma paneli + benzer ürünler.
  Görsel sütunu sticky, sağ sütun kayıyor.

  Önce görsel 630px, panel 305px'ti ve arada 320px boşluk kalıyordu —
  sayfa yarım bırakılmış gibi duruyordu. Sağ sütuna ikinci bir satır
  eklemek o boşluğu gerçek içerikle dolduruyor.
*/
.bh-pd-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-6) var(--s-8);
  align-items: start;
  margin-bottom: var(--s-12);
}

/*
  Görsel sütunu iki satırı kaplıyor ve İÇİNDEKİ figure yapışıyor.

  Sticky doğrudan grid elemanına verilemez: grid'de `align-items: start`
  elemanı içeriğine göre küçültüyor, dolayısıyla yapışacak dikey alan
  kalmıyor ve görsel sayfayla birlikte kayıyordu. Eleman `stretch` ile
  alanı dolduruyor, sticky ise iç elemanda.
*/
.bh-pd-media {
  grid-row: span 2;
  align-self: stretch;
}

/* ── Görsel ── */
/*
  position: sticky (relative DEĞİL).
  Sticky de mutlak konumlanan çocuklar için kapsayıcı blok kurar, yani
  .bh-pd-flag yine bu kutuya göre hizalanır — ayrıca `relative` gerekmiyor.
  Ayrı bir kuralda sticky vermeye çalışmak işe yaramadı: dosyada SONRA
  gelen `position: relative` onu eziyordu.
*/
.bh-pd-figure {
  position: sticky;
  top: calc(var(--s-5) + 78px);

  margin: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.bh-pd-zoom {
  display: block;
  aspect-ratio: 1 / 1;
  cursor: zoom-in;
}

.bh-pd-zoom img {
  width: 100%;
  height: 100%;
  /* contain: ürün fotoğrafı kırpılmamalı */
  object-fit: contain;
  display: block;
}

.bh-pd-flag { position: absolute; top: var(--s-4); left: var(--s-4); }

/* Büyütme ipucu — görselin tıklanabilir olduğunu belli eder */
.bh-pd-zoom-hint {
  position: absolute;
  right: var(--s-4);
  bottom: var(--s-4);

  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;

  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--c-line);
  border-radius: var(--r-full);
  box-shadow: var(--sh-sm);
  color: var(--c-ink);

  opacity: 0;
  transition: opacity var(--d-base) var(--e-out);
}

.bh-pd-zoom:hover .bh-pd-zoom-hint,
.bh-pd-zoom:focus-visible .bh-pd-zoom-hint { opacity: 1; }

/* Dokunmatikte hover yok; ipucu her zaman görünür */
@media (hover: none) {
  .bh-pd-zoom-hint { opacity: 1; }
}

.bh-pd-zoom-hint svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

/* ── Ek görsel şeridi (946 üründen 3'ünde var) ── */
.bh-pd-thumbs {
  display: flex;
  gap: var(--s-2);
  margin-top: var(--s-3);
  overflow-x: auto;
  scrollbar-width: none;
}

.bh-pd-thumbs::-webkit-scrollbar { display: none; }

.bh-pd-thumb {
  flex: none;
  width: 68px;
  height: 68px;
  padding: 0;

  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  overflow: hidden;
  cursor: pointer;

  transition: border-color var(--d-fast) var(--e-out);
}

.bh-pd-thumb:hover,
.bh-pd-thumb.is-active { border-color: var(--c-brand); }

.bh-pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}


/* ==========================================================================
   MODAL GALERİ (lightbox)
   --------------------------------------------------------------------------
   Önce görsele tıklamak dosyayı tarayıcıda açıyor, kullanıcıyı siteden
   çıkarıp çıplak bir JPG'ye götürüyordu.
   ========================================================================== */

/*
  [hidden] ÖNCE gelmeli.

  `display: grid` tarayıcının [hidden] için uyguladığı `display: none`'ı
  ezer. Yani modal kapalıyken de yerleşimde duruyor: tüm ekranı kaplayan,
  opaklığı 0 olan ama tıklamaları yiyen bir katman kalıyor ve içindeki
  1400px'lik görsel sayfayı yatay taşmaya zorluyor.
*/
.bh-lb[hidden] { display: none; }

.bh-lb {
  position: fixed;
  inset: 0;
  z-index: 10000;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-5);

  /* Marka tonunda koyu zemin; nötr siyah ürün fotoğraflarını griye çekiyor */
  background: rgba(var(--c-scrim-rgb), .88);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);

  opacity: 0;
  transition: opacity var(--d-base) var(--e-out);
}

.bh-lb.is-open { opacity: 1; }

.bh-lb-figure {
  margin: 0;
  grid-column: 2;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
}

.bh-lb-figure img {
  max-width: 100%;
  /* Kapatma düğmesi ve sayaç için yer bırak */
  max-height: calc(100dvh - 140px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--r-md);
  background: #fff;
}

.bh-lb-close {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);

  display: grid;
  place-items: center;
  width: var(--touch-min);
  height: var(--touch-min);
  padding: 0;

  color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 0;
  border-radius: var(--r-full);
  cursor: pointer;

  transition: background var(--d-fast) var(--e-out);
}

.bh-lb-close:hover { background: rgba(255, 255, 255, .26); }

.bh-lb-nav {
  display: grid;
  place-items: center;
  width: var(--touch-min);
  height: var(--touch-min);
  padding: 0;

  color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 0;
  border-radius: var(--r-full);
  cursor: pointer;

  transition: background var(--d-fast) var(--e-out);
}

.bh-lb-nav:hover { background: rgba(255, 255, 255, .26); }

.bh-lb-prev { grid-column: 1; }
.bh-lb-next { grid-column: 3; }

.bh-lb-close svg,
.bh-lb-nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bh-lb-count {
  position: absolute;
  left: 50%;
  bottom: var(--s-5);
  transform: translateX(-50%);

  padding: var(--s-1) var(--s-3);
  font-size: var(--t-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border-radius: var(--r-full);
}

.bh-lb-close:focus-visible,
.bh-lb-nav:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .6);
}

/* ── Satın alma sütunu ── */
.bh-pd-buy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-4);

  padding: var(--s-8);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
}

.bh-pd-title { margin: 0; }

.bh-pd-cat { font-size: var(--t-sm); }

.bh-pd-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.bh-pd-price-now {
  font-size: var(--t-3xl);
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: var(--ls-tight);
  line-height: 1.1;
}

.bh-pd-price-was {
  font-size: var(--t-lg);
  font-weight: 500;
  color: var(--c-ink-faint);
  text-decoration: line-through;
}

.bh-pd-tax { font-size: var(--t-sm); color: var(--c-ink-muted); }

/* ── Stok ── */
.bh-pd-stock {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0;
  font-size: var(--t-sm);
  font-weight: 600;
}

.bh-pd-stock.is-in  { color: var(--c-success); }
.bh-pd-stock.is-out { color: var(--c-danger); }

/* Stok adedi ikincil: "Stokta" durumu taşır, sayı ayrıntıdır */
.bh-pd-stock-qty {
  color: var(--c-ink-muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.bh-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background: currentColor;
  flex: none;
}

/* ── Adet + sepete ekle ── */
.bh-pd-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: var(--s-3);
  width: 100%;
}

/* "+1 koli": adet satışında tek dokunuşla koli ekleme. Masaüstünde adet
   seçicinin yanında, onunla AYNI yükseklik ve köşede (52px, r-md);
   dar ekranda satırın altına tam genişlik iner. */
.bh-qty-box {
  flex: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: 52px;
  padding: 0 var(--s-4);

  font-family: var(--f-body);
  font-size: var(--t-sm);
  font-weight: 700;
  line-height: 1.1;
  color: var(--c-brand-deep);

  background: var(--c-surface);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-md);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--d-fast) var(--e-out), border-color var(--d-fast) var(--e-out);
}

.bh-qty-box span {
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--c-ink-muted);
}

.bh-qty-box:hover { background: var(--c-brand-a08); border-color: var(--c-brand-a32); }

.bh-qty-box:active { transform: scale(.97); }

@media (max-width: 767px) {
  .bh-qty-box {
    order: 3;
    flex: 1 0 100%;
    flex-direction: row;
    gap: 6px;
    min-height: 44px;
  }
}

.bh-qty {
  display: flex;
  align-items: stretch;
  flex: none;

  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-surface);
}

.bh-qty-btn {
  width: var(--touch-min);
  min-height: 52px;
  flex: none;

  font-family: var(--f-body);
  font-size: var(--t-lg);
  font-weight: 600;
  color: var(--c-ink);
  line-height: 1;

  background: none;
  border: 0;
  cursor: pointer;

  transition: background var(--d-fast) var(--e-out);
  -webkit-tap-highlight-color: transparent;
}

.bh-qty-btn:hover { background: var(--c-brand-a08); color: var(--c-brand-deep); }

.bh-qty-input {
  width: 56px;
  min-height: 52px;
  flex: none;

  padding: 0 var(--s-1);
  font-family: var(--f-body);
  /* 16px: iOS bunun altında sayfayı kendiliğinden yakınlaştırıyor */
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--c-ink);

  background: none;
  border: 0;
  border-inline: 1px solid var(--c-line);
  outline: none;
  appearance: none;
}

.bh-pd-add { flex: 1 1 auto; min-width: 140px; }

/* ── Bilgi listesi ── */
.bh-pd-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-2) var(--s-5);

  width: 100%;
  margin: 0;
  padding-top: var(--s-4);
  border-top: 1px solid var(--c-line);

  font-size: var(--t-sm);
}

.bh-pd-facts dt { color: var(--c-ink-muted); }

.bh-pd-facts dd {
  margin: 0;
  color: var(--c-ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}


/* ==========================================================================
   SAĞ SÜTUN — BENZER ÜRÜNLER
   --------------------------------------------------------------------------
   Aşağıdaki raylardan bilinçli olarak DAHA KÜÇÜK kartlar: burada amaç
   satın almak değil, göz gezdirmek. Küçük kart altı ürünü panelin altındaki
   boşluğa sığdırıyor ve sayfanın üst yarısını tamamlıyor.
   ========================================================================== */

.bh-pd-side {
  padding: var(--s-5) var(--s-6) var(--s-6);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
}

.bh-pd-side-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}

.bh-pd-side-tools {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex: none;
}

.bh-pd-side-all { font-size: var(--t-sm); white-space: nowrap; margin-left: var(--s-1); }

/* ── Carousel okları ── */
.bh-car-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 30px;
  height: 30px;
  flex: none;
  padding: 0;

  color: var(--c-ink-body);
  background: var(--c-surface);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-full);
  cursor: pointer;

  transition: border-color var(--d-fast) var(--e-out),
              color var(--d-fast) var(--e-out),
              opacity var(--d-fast) var(--e-out);
}

.bh-car-btn:hover { border-color: var(--c-brand); color: var(--c-brand-deep); }

.bh-car-btn:focus-visible { outline: none; box-shadow: var(--sh-focus); }

/* Şeridin ucuna gelince ok pasifleşir — JS ekliyor */
.bh-car-btn[disabled] { opacity: .35; pointer-events: none; }

.bh-car-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/*
  TEK SATIR şerit, bir bakışta 4 kart.
  Kart genişliği yüzdeyle hesaplanıyor: 4 kart + 3 boşluk = %100.
  Böylece sütun genişliği değişse de tam 4 kart görünür.
*/
.bh-pd-side-track {
  display: flex;
  gap: var(--s-3);

  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;

  /*
    scroll-snap-type kullanılmıyor.

    Ok düğmeleri iki kart birden kaydırıyor; snap noktaları bu adımla
    çakışıp kaydırmayı geri çekebiliyor. Serbest kaydırma + oklar
    kombinasyonu snap'e ihtiyaç duymuyor, dokunmatikte de akıcı.
  */

  /* Odak halkası kesilmesin */
  padding-bottom: 2px;
}

.bh-pd-side-track::-webkit-scrollbar { display: none; }

.bh-pd-side-track > .bh-tiny {
  flex: 0 0 calc((100% - 3 * var(--s-3)) / 4);
}

/* Minik kart: çerçevesiz, sadece görsel + ad + fiyat.
   Çerçeve eklemek altı kartı gürültüye çeviriyordu. */
.bh-tiny {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  text-decoration: none;
  color: inherit;
}

.bh-tiny-media {
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--c-surface-warm);
  border-radius: var(--r-sm);
  overflow: hidden;
  margin-bottom: var(--s-1);
}

.bh-tiny-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .35s var(--e-out);
}

.bh-tiny:hover .bh-tiny-media img { transform: scale(1.06); }

.bh-tiny-name {
  font-size: var(--t-xs);
  font-weight: 500;
  line-height: 1.3;
  color: var(--c-ink-body);

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* İki satırlık yer ayrılır ki fiyatlar aynı hizada dursun */
  min-height: 2.6em;
}

.bh-tiny:hover .bh-tiny-name { color: var(--c-brand-deep); }

.bh-tiny-price {
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--c-ink);
  font-variant-numeric: tabular-nums;
}


/* ==========================================================================
   RAYLAR
   ========================================================================== */

.bh-pd-rail-block { margin-bottom: var(--s-12); }

.bh-mini {
  flex: none;
  width: 190px;

  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;

  transition: border-color var(--d-base) var(--e-out),
              box-shadow var(--d-base) var(--e-out),
              transform var(--d-base) var(--e-out);
}

.bh-mini:hover {
  border-color: var(--c-brand-a32);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}

.bh-mini-link { display: block; color: inherit; text-decoration: none; }

.bh-mini-media {
  aspect-ratio: 1 / 1;
  background: var(--c-surface-warm);
  overflow: hidden;
}

.bh-mini-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.bh-mini-body {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  padding: var(--s-3);
}

.bh-mini-name {
  margin: 0;
  font-size: var(--t-xs);
  font-weight: 600;
  line-height: var(--lh-snug);
  color: var(--c-ink);

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;   /* iki satırlık yer ayrılır, fiyatlar hizalanır */
}

.bh-mini-price .b-price { font-size: var(--t-sm); }


/* ==========================================================================
   MOBİL SABİT SATIN ALMA BARI
   --------------------------------------------------------------------------
   Yalnızca satın alma düğmesi ekrandan çıkınca görünür (JS açıyor).
   Baştan görünür olsaydı, düğme zaten ekrandayken iki kez "Sepete Ekle"
   göstermiş olurduk.
   ========================================================================== */

/*
  Bar MASAÜSTÜNDE GİZLİ. Orada satın alma paneli zaten sticky ve ekranda
  kalıyor; bar ikinci bir "Sepete Ekle" gösterip ekranın altını boşuna
  kaplıyordu. Mobilde görünür hâle gelmesi aşağıdaki medya sorgusunda.
*/
.bh-buybar {
  display: none;

  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;

  align-items: center;
  gap: var(--s-3);

  padding: var(--s-3) var(--s-4);
  padding-bottom: calc(var(--s-3) + var(--safe-bottom));

  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
  box-shadow: 0 -4px 16px rgba(var(--c-shadow-rgb), .08);

  transform: translateY(100%);
  transition: transform var(--d-base) var(--e-out);
}

.bh-buybar.is-visible { transform: translateY(0); }

.bh-buybar-price { display: flex; flex-direction: column; line-height: 1.2; }

.bh-buybar-amount {
  font-size: var(--t-lg);
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: var(--ls-tight);
}

.bh-buybar-tax { font-size: var(--t-xs); color: var(--c-ink-muted); }

.bh-buybar-add { flex: 1 1 auto; margin-left: auto; }

/* Uygulama içinde alt sekme çubuğu var; bar onun üstüne oturur */
html.has-tabbar .bh-buybar { bottom: calc(var(--tabbar-h) + var(--safe-bottom)); }


/* ==========================================================================
   MOBİL
   ========================================================================== */

@media (max-width: 900px) {
  /*
    minmax(0, 1fr) — düz `1fr` DEĞİL.

    `1fr` aslında `minmax(auto, 1fr)` demek ve `auto` alt sınırı
    min-content'tir. Yani içerideki bir eleman daralmayı reddederse sütun
    onunla birlikte şişer. Tam bu oldu: 375px'lik ekranda sütun 752px
    hesaplandı, sayfa yatay kaydırmaya başladı ve mobilde responsive
    görünmüyordu. minmax(0, ...) alt sınırı sıfıra çekip taşmayı kesiyor.
  */
  .bh-pd-main { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }

  .bh-pd-media { grid-row: auto; }

  /* Tek sütuna inince yapışmasının anlamı yok */
  .bh-pd-figure { position: relative; top: auto; }
}

@media (max-width: 767px) {

  /* Bar burada devreye giriyor; JS yalnızca .is-visible ekliyor */
  .bh-buybar { display: flex; }

  .bh-pd-buy {
    padding: var(--s-5);
    border-radius: var(--r-md);
  }

  .bh-pd-price-now { font-size: var(--t-2xl); }

  .bh-pd-actions { gap: var(--s-2); }

  .bh-pd-add { min-width: 0; }

  /* Sabit bar ekranı kaplarken içeriğin sonu görünsün */
  .bh-pd { padding-bottom: 96px; }

  .bh-mini { width: 44vw; max-width: 170px; }

  /* Dokunmatikte parmakla kaydırmak doğal; oklar yer kaplıyor */
  .bh-car-btn { display: none; }

  .bh-pd-side { padding: var(--s-4); }

  /* Dar ekranda 4 kart 80px'e iniyor ve okunmuyor; 2,4 kart gösteriyoruz —
     yarım görünen kart devamı olduğunu belli ediyor */
  .bh-pd-side-track > .bh-tiny { flex: 0 0 40%; }

  .bh-rail {
    margin-inline: calc(var(--s-4) * -1);
    padding-inline: var(--s-4);
  }
}


/* ==========================================================================
   WHATSAPP'TAN SOR + GÜVENCE SATIRLARI
   ========================================================================== */

.bh-pd-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  margin-top: var(--s-5);
  padding: 0 var(--s-5);
  font-size: var(--t-sm);
  font-weight: 700;
  color: #17853F;
  background: #EAF7EF;
  border: 1px solid rgba(31, 168, 85, .28);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: background var(--d-base) var(--e-out), color var(--d-base) var(--e-out), border-color var(--d-base) var(--e-out);
}

.bh-pd-wa:hover { color: #fff; background: #1FA855; border-color: #1FA855; }
.bh-pd-wa:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(31, 168, 85, .32); }

.bh-pd-assure {
  display: grid;
  gap: var(--s-2);
  margin: var(--s-5) 0 0;
  padding: var(--s-4) 0 0;
  list-style: none;
  border-top: 1px solid var(--c-line);
}

.bh-pd-assure li {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-sm);
  color: var(--c-ink-body);
}

.bh-pd-assure svg {
  flex: none;
  padding: 3px;
  width: 20px;
  height: 20px;
  color: var(--c-brand);
  background: var(--c-brand-a08);
  border-radius: 50%;
}

/* Panel öğeleri sola hizalı (align-items: start); eylem alanları tam genişlik */
.bh-pd-wa,
.bh-pd-assure,
.bh-pd-gate { align-self: stretch; width: 100%; box-sizing: border-box; }


/* ==========================================================================
   KOLİ BAZINDA SATIŞ
   ========================================================================== */

.bh-pd-per {
  align-self: baseline;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--c-ink-muted);
}

.bh-pd-box {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin: var(--s-3) 0 0;
  padding: 6px 12px;
  font-size: var(--t-sm);
  color: var(--c-brand-deep);
  background: var(--c-brand-a08);
  border-radius: var(--r-full);
}

.bh-pd-box strong { font-weight: 700; }

/* Canlı toplam: seçilen koli adedinin tutarı */
.bh-pd-sum {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px var(--s-3);
  align-self: stretch;
  margin: var(--s-3) 0 0;
  padding: var(--s-3) var(--s-4);
  background: var(--c-surface-sunken);
  border: 1px dashed var(--c-line-strong);
  border-radius: var(--r-md);
}

.bh-pd-sum span {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-ink-muted);
}

.bh-pd-sum strong {
  font-size: var(--t-lg);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--c-ink);
  font-variant-numeric: tabular-nums;
}

.bh-pd-sum small {
  margin-left: auto;
  font-size: var(--t-sm);
  color: var(--c-ink-muted);
}


/* ==========================================================================
   KAYDIRMALI GALERİ (sayfa içi) — goreel-product.js gal
   ========================================================================== */

.bh-gal { position: relative; }

.bh-gal-track {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.bh-gal-track::-webkit-scrollbar { display: none; }

.bh-gal-track:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--c-brand-a32); }

.bh-gal-slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;   /* hızlı fiske bir anda birkaç görsel atlamasın */
}

/* Sayaç: sağ üst, sakin hap */
.bh-gal-count {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  z-index: 2;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(var(--c-scrim-rgb), .55);
  border-radius: var(--r-full);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

/* Noktalar: alt orta */
.bh-gal-dots {
  position: absolute;
  left: 50%;
  bottom: var(--s-3);
  z-index: 2;
  display: flex;
  gap: 6px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, .85);
  border-radius: var(--r-full);
  transform: translateX(-50%);
  pointer-events: none;
}

.bh-gal-dot {
  width: 6px;
  height: 6px;
  background: var(--c-line-strong);
  border-radius: var(--r-full);
  transition: width var(--d-base) var(--e-out), background var(--d-base) var(--e-out);
}

.bh-gal-dot.is-active { width: 18px; background: var(--c-brand); }

/* Oklar: masaüstünde hover'da; dokunmatikte gizli (kaydırma doğal) */
.bh-gal-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--c-ink);
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--c-line);
  border-radius: 50%;
  box-shadow: var(--sh-md);
  transform: translateY(-50%);
  opacity: 0;
  cursor: pointer;
  transition: opacity var(--d-base) var(--e-out);
}

.bh-gal-prev { left: var(--s-3); }
.bh-gal-next { right: var(--s-3); }

.bh-gal:hover .bh-gal-nav,
.bh-gal-nav:focus-visible { opacity: 1; }

.bh-gal-nav svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: none) {
  .bh-gal-nav { display: none; }
}

/* Büyütme ipucu artık figürün köşesinde (galerinin üstünde, sayaçla çakışmasın) */
.bh-pd-figure > .bh-pd-zoom-hint { z-index: 2; pointer-events: none; }
.bh-gal ~ .bh-pd-zoom-hint { bottom: var(--s-3); right: var(--s-3); }

.bh-pd-thumb.is-active { border-color: var(--c-brand); box-shadow: 0 0 0 1px var(--c-brand); }


/* ==========================================================================
   TAM EKRAN GÖRÜNTÜLEYİCİ — dokunma hareketleri
   ========================================================================== */

.bh-lb-figure {
  touch-action: none;           /* kaydırma/yakınlaştırmayı biz yönetiyoruz */
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  cursor: zoom-in;
}

.bh-lb-figure img {
  transform-origin: center center;
  will-change: transform;
  -webkit-user-drag: none;
}

.bh-lb-figure.is-zoomed { cursor: grab; }
.bh-lb-figure.is-zoomed:active { cursor: grabbing; }

@media (max-width: 767px) {
  .bh-gal-count { top: var(--s-4); right: var(--s-4); }
}

/* Telefonda küçük resim şeridi yok: noktalar + kaydırma aynı işi görüyor,
   şerit de alttan binen bilgi paneliyle çakışıyordu */
@media (max-width: 767px) {
  .bh-pd-thumbs { display: none; }
}

/* Hareket alanı figürün tamamı (yalnız görsel değil): parmak görselin
   biraz dışından başlasa da kaydırma/yakınlaştırma çalışsın */
.bh-lb-figure { align-self: stretch; justify-self: stretch; height: 100%; }

/* Telefon: görüntüleyici tam ekran, oklar yok (kaydırma var), görsel
   kenardan kenara. Ok sütunları 375px'de görseli 223px'e düşürüyordu. */
@media (max-width: 767px) {
  .bh-lb {
    grid-template-columns: minmax(0, 1fr);
    padding: 0;
    gap: 0;
    background: rgba(var(--c-scrim-rgb), .96);
  }

  .bh-lb-figure { grid-column: 1; grid-row: 1; height: 100dvh; }

  .bh-lb-figure img {
    width: 100%;
    max-height: calc(100dvh - 120px);
    border-radius: 0;
  }

  .bh-lb-nav { display: none; }

  .bh-lb-close { top: calc(var(--s-4) + var(--safe-top)); right: var(--s-4); }

  .bh-lb-count { bottom: calc(var(--s-6) + var(--safe-bottom)); }
}

/* Yakınlaştırılmış görsel kapatma düğmesinin ve sayacın üstüne çıkmasın */
.bh-lb-close,
.bh-lb-count,
.bh-lb-nav { z-index: 3; }

/* ==========================================================================
   Bilgi blokları (Site Ayarları → Ürün sayfası) — açılır-kapanır
   <details> kullanılıyor: JS gerektirmiyor, klavye ve ekran okuyucu
   davranışı tarayıcıdan hazır geliyor.
   ========================================================================== */
.bh-pd-info { margin: var(--s-5) 0 0; border-top: 1px solid var(--c-line); }
.bh-pd-info-item { border-bottom: 1px solid var(--c-line); }
.bh-pd-info-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: 14px 2px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: var(--t-sm); color: var(--c-ink);
}
.bh-pd-info-item summary::-webkit-details-marker { display: none; }
.bh-pd-info-item summary svg { flex: none; color: var(--c-ink-muted); transition: transform var(--d-base) ease; }
.bh-pd-info-item[open] summary svg { transform: rotate(180deg); }
.bh-pd-info-item summary:hover { color: var(--c-brand); }
.bh-pd-info-body { padding: 0 2px 16px; color: var(--c-ink-body); font-size: var(--t-sm); line-height: var(--lh-body); }
