/*
 * 04 — Ürün Detayı (100:24710) · 04b USD (150:35498) · M05 mobil (100:37335)
 * Masaüstü 1440: kenar 72; galeri kolon 1–7 (746) + satın alma kolon 8–12 (526, sol iç boşluk 48, sticky).
 * Ortak satın alma bileşenleri (galeri, FinishSelector, adet, toast) bronzehome.css içindedir.
 */

.bh-pdp { padding-bottom: var(--space-120); }
/* Yönetimden önizleme: yayında olmayan ürün uyarısı (yalnız yönetici oturumunda) */
.bh-pdp__preview { display: flex; align-items: flex-start; gap: var(--space-8); margin: var(--space-16) 0 0; padding: var(--space-12) var(--space-16); border: 1px solid var(--warning); border-radius: var(--radius-xs); background: var(--sand-100); color: var(--foreground); font-size: 14px; line-height: 22px; }
.bh-pdp__preview .bh-icon { flex: none; margin-top: 1px; color: var(--warning); }

/* Breadcrumb (43:21389): "/" ayırıcı, son öğe foreground ve link değil */
.bh-breadcrumb { padding-top: var(--space-32); }
.bh-breadcrumb__list { display: flex; flex-wrap: wrap; gap: var(--space-8); margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 22px; color: var(--muted-foreground); }
.bh-breadcrumb__item { display: flex; align-items: center; gap: var(--space-8); }
.bh-breadcrumb__item + .bh-breadcrumb__item::before { content: "/"; color: var(--subtle-foreground); }
.bh .bh-breadcrumb__item a:hover { color: var(--accent); }
.bh-breadcrumb__item [aria-current="page"] { color: var(--foreground); }

/* Galeri + satın alma ızgarası */
.bh-pdp__layout { display: grid; grid-template-columns: minmax(0, 746fr) minmax(0, 526fr); grid-template-areas: "gallery buy" "life buy"; column-gap: var(--gap); row-gap: var(--space-24); align-items: start; margin-top: var(--space-24); }
.bh-pdp__gallery { grid-area: gallery; min-width: 0; }
.bh-pdp__buy { grid-area: buy; position: sticky; top: var(--bh-sticky-top, 24px); min-width: 0; padding-left: var(--space-48); }
.bh-pdp__life { grid-area: life; display: flex; flex-direction: column; gap: var(--space-24); }
.bh-pdp__lifeimg { position: relative; margin: 0; overflow: hidden; background: var(--tile-ivory); aspect-ratio: 746 / 932; }
.bh-pdp__lifeimg + .bh-pdp__lifeimg { aspect-ratio: 746 / 560; }
.bh-pdp__lifeimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Satın alma kutusu (274:36452) */
/* Başlık · Fiyat altta (274:36453): ad + alt başlık, altında fiyat satırı (fiyat · eski fiyat · indirim) ve KDV */
.bh-buy__head { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-16); }
.bh-buy__titles { min-width: 0; display: flex; flex-direction: column; gap: var(--space-8); padding-right: var(--space-32); overflow-wrap: break-word; }
.bh-buy__sub { font-size: 16px; line-height: 26px; color: var(--muted-foreground); }
.bh-buy__price { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-12); text-align: left; white-space: nowrap; }
.bh-buy__current { font-size: 24px; line-height: 32px; font-weight: 400; }
.bh-buy__was { display: flex; align-items: center; gap: var(--space-8); }
.bh-buy__tax { flex-basis: 100%; }
.bh-buy__rating { display: flex; width: fit-content; align-items: center; gap: var(--space-8); margin-top: var(--space-12); font-size: 14px; line-height: 22px; }
.bh-buy__rating-text { text-decoration: underline; text-underline-position: from-font; }
.bh .bh-buy__rating:hover .bh-buy__rating-text { color: var(--accent); }
.bh-buy__form { margin: 0; }
.bh-buy__select { display: flex; flex-direction: column; gap: var(--space-24); padding-top: var(--space-32); }
.bh-buy__actions { padding-top: var(--space-32); }
.bh-buy__delivery { display: flex; flex-direction: column; gap: var(--space-4); padding-top: var(--space-20); }
.bh-buy__ship { font-size: 12px; line-height: 18px; letter-spacing: 0.01em; color: var(--muted-foreground); }
.bh-buy__support { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); padding-top: var(--space-20); font-size: 14px; line-height: 22px; }
.bh-buy__help { color: var(--muted-foreground); }
.bh .bh-buy__help a:hover { color: var(--foreground); text-decoration: underline; }
.bh-buy__quote { text-decoration: underline; text-underline-position: from-font; }
.bh .bh-buy__quote:hover { color: var(--accent); }

/* Akordiyonlar (43:21448) — --icon yolları bronzehome.css konumuna göre çözülür (var(--icon) orada kullanılır) */
.bh-acc { padding-top: var(--space-40); }
.bh-acc__item { border-bottom: 1px solid var(--border); }
.bh-acc__heading { margin: 0; font: inherit; }
.bh-acc__trigger { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); width: 100%; padding: var(--space-24) 0; font-size: 18px; line-height: 30px; text-align: left; color: var(--foreground); }
.bh-acc__trigger .bh-icon { --icon: url("../image/icon-plus.svg"); }
.bh-acc__trigger[aria-expanded="true"] .bh-icon { --icon: url("../image/icon-minus.svg"); }
.bh-acc__trigger:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.bh-acc__body { padding-bottom: var(--space-24); font-size: 16px; line-height: 26px; color: var(--muted-foreground); }
.bh-acc__body:not(.bh-rich) p { margin: 0; }
.bh-acc__body:not(.bh-rich) p + p { margin-top: var(--space-12); }
.bh-rich > * + * { margin-top: var(--space-12); }
.bh-rich ul, .bh-rich ol { padding-left: var(--space-20); }
.bh-rich a { text-decoration: underline; }
.bh-specs { width: 100%; margin-bottom: var(--space-24); border-collapse: collapse; font-size: 14px; line-height: 22px; }
.bh-specs th { width: 176px; padding: var(--space-8) var(--space-16); font-weight: 400; color: var(--muted-foreground); text-align: left; vertical-align: top; }
.bh-specs td { padding: var(--space-8) var(--space-16) var(--space-8) 0; color: var(--foreground); }
.bh-specs tr:nth-child(even) { background: var(--muted); }

/* Yorumlar (278:36452) */
.bh-rv { padding-top: var(--space-120); }
.bh-rv__inner { display: flex; flex-direction: column; gap: var(--space-48); }
.bh-rv__head { display: flex; align-items: flex-end; gap: var(--space-24); }
.bh-rv__titles { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--space-12); }
.bh-rv__summary { display: flex; align-items: center; gap: var(--space-12); font-size: 16px; line-height: 26px; }
.bh-rv__listwrap:focus { outline: none; }
.bh-rv__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-24); margin: 0; padding: 0; list-style: none; }
.bh-rv__card { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-24); min-width: 0; padding: var(--space-32); background: var(--surface); border: 1px solid var(--border); }
.bh-rv__top { display: flex; flex-direction: column; gap: var(--space-16); }
.bh-rv__text { font-size: 16px; line-height: 26px; }
.bh-rv__bottom { display: flex; flex-direction: column; gap: var(--space-4); }
.bh-rv__meta { display: flex; flex-wrap: wrap; gap: var(--space-8); font-size: 14px; line-height: 22px; }
.bh-rv__author { font-weight: 500; letter-spacing: 0.02em; }
.bh-rv__date { color: var(--muted-foreground); }
.bh-rv__product { font-size: 12px; line-height: 18px; letter-spacing: 0.01em; color: var(--muted-foreground); }
.bh-rv__empty { font-size: 16px; line-height: 26px; color: var(--muted-foreground); }
.bh-rv__pagination { margin-top: var(--space-24); }
.bh-rv__pagination .pagination { display: flex; flex-wrap: wrap; gap: var(--space-8); margin: 0; padding: 0; list-style: none; }
.bh-rv__pagination .page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 var(--space-12); border: 1px solid var(--border); border-radius: 0; background: var(--surface); color: var(--foreground); font-size: 14px; }
.bh-rv__pagination .active .page-link { border-color: var(--foreground); background: var(--foreground); color: var(--primary-foreground); }
.bh-rv__workshop { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-12); font-size: 14px; line-height: 22px; color: var(--muted-foreground); }
.bh-rv__workshop a { color: var(--foreground); text-decoration: underline; text-underline-position: from-font; }
.bh .bh-rv__workshop a:hover { color: var(--accent); }
.bh-rv__form { display: flex; flex-direction: column; gap: var(--space-24); max-width: 640px; }
.bh-rv__fields { display: flex; flex-direction: column; gap: var(--space-24); margin: 0; }
.bh-rv__rating { margin: 0; padding: 0; border: 0; }
.bh-rv__rating legend { float: none; width: auto; margin: 0 0 var(--space-8); padding: 0; }
.bh-rv__stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: var(--space-4); }
.bh-rv__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bh-rv__stars label { position: relative; width: 32px; height: 32px; cursor: pointer; background-color: var(--border-strong); -webkit-mask: url("../../image/icon-star-fill.svg") center / 28px no-repeat; mask: url("../../image/icon-star-fill.svg") center / 28px no-repeat; }
.bh-rv__stars input:checked ~ label, .bh-rv__stars label:hover, .bh-rv__stars label:hover ~ label { background-color: var(--foreground); }
.bh-rv__stars input:focus-visible + label { outline: 2px solid var(--ring); outline-offset: 2px; }
.bh-rv__status { font-size: 14px; line-height: 22px; }
.bh-rv__status:empty { display: none; }
.bh-rv__status[data-state="success"] { color: var(--success); }
.bh-rv__status[data-state="error"] { color: var(--error); }
.bh-rv__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-24); }

/* Atölyeden diğer parçalar · Son baktıklarınız (ProductCard L, 4 × kolon 3) */
.bh-pdp-row { padding-top: var(--space-120); }
.bh-pdp-row__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-24); margin-bottom: var(--space-48); }
.bh-pdp-row__progress { display: none; }

/* Yapışkan satın alma çubuğu (yalnız mobil/tablet) */
.bh-buybar { display: none; }

/* ---------- Tablet / mobil (M05) ---------- */
@media (max-width: 1199.98px) {
  .bh-pdp__buy { padding-left: var(--space-16); }
}

@media (max-width: 991.98px) {
  .bh-pdp { padding-bottom: var(--space-64); }
  .bh-pdp__crumbs { display: none; }
  .bh-pdp__layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gallery" "buy" "life"; row-gap: 0; margin-top: 0; }
  .bh-pdp__buy { position: static; padding: var(--space-16) 0 0; }

  /* Galeri: tam genişlik yatay kaydırma, sayaç + sayfalama noktaları */
  .bh-pdp__gallery { margin-inline: calc(-1 * var(--gutter)); }
  .bh-gallery--pdp { display: block; }
  .bh-gallery--pdp .bh-gallery__rail, .bh-gallery--pdp .bh-gallery__arrow { display: none; }
  .bh-gallery--pdp .bh-gallery__stage { aspect-ratio: 390 / 488; background: var(--surface); }
  .bh-gallery--pdp .bh-gallery__counter { display: block; }
  .bh-gallery--pdp .bh-gallery__fav { top: var(--space-16); right: var(--space-16); }
  .bh-gallery--pdp .bh-gallery__dots { display: flex; align-items: center; justify-content: center; gap: var(--space-8); height: 32px; }
  .bh-gallery__dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); }
  .bh-gallery__dot[data-size="l"] { width: 8px; height: 8px; background: var(--foreground); }
  .bh-gallery__dot[data-size="s"] { width: 4px; height: 4px; }
  .bh-gallery__dot[data-size="none"] { display: none; }

  /* Satın alma kutusu (281:36416): başlık, fiyat satırı, KDV, puan alt alta (aralık 8) */
  .bh-buy__head { gap: var(--space-8); }
  .bh-buy__titles { padding-right: 0; }
  .bh-buy__price { align-items: baseline; gap: var(--space-4) var(--space-8); }
  .bh-buy__was { align-items: baseline; }
  .bh-buy__rating { margin-top: var(--space-8); }
  .bh-buy__select { padding-top: var(--space-24); }
  .bh-buy__actions, .bh-buy__delivery, .bh-buy__support { padding-top: var(--space-24); }
  .bh-custom__trigger { min-height: 44px; }
  .bh-qty { justify-content: space-between; }
  .bh-qty--pdp .bh-qty__label { font-size: 14px; line-height: 22px; }
  .bh-qty--pdp .bh-stepper { height: 44px; }

  .bh-acc { padding-top: var(--space-32); }
  .bh-specs th { width: 128px; padding: var(--space-8) var(--space-12); }
  .bh-specs td { padding-right: var(--space-12); }

  /* Yaşam görselleri (281:36618): tam genişlik, aralık 8 */
  .bh-pdp__life { margin: 0 calc(-1 * var(--gutter)); padding-top: var(--space-64); gap: var(--space-8); }
  .bh-pdp__lifeimg { aspect-ratio: 390 / 488; }
  .bh-pdp__lifeimg + .bh-pdp__lifeimg { aspect-ratio: 390 / 292; }

  /* Yorumlar (281:36685): yatay kaydırılan kartlar; buton kartların altında */
  .bh-rv { padding-top: var(--space-64); }
  .bh-rv__inner { gap: var(--space-24); }
  .bh-rv__head { display: contents; }
  .bh-rv__titles { order: 1; gap: var(--space-8); }
  .bh-rv__listwrap { order: 2; }
  .bh-rv__form { order: 3; }
  .bh-rv__write { order: 4; align-self: flex-start; }
  .bh-rv__workshop { order: 5; flex-direction: column; align-items: flex-start; }
  .bh-rv__summary { flex-wrap: wrap; gap: var(--space-8); font-size: 14px; line-height: 22px; }
  .bh-rv__list { display: flex; gap: var(--space-12); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .bh-rv__list::-webkit-scrollbar { display: none; }
  .bh-rv__card { flex: 0 0 296px; padding: var(--space-24); scroll-snap-align: start; }

  /* Kart satırları (100:38077 · 281:36794): yatay kaydırma + ilerleme çizgisi */
  .bh-pdp-row { padding-top: var(--space-64); }
  .bh-pdp-row--recent { padding-top: var(--space-40); }
  .bh-pdp-row__head { margin-bottom: var(--space-32); }
  .bh-pdp-row__all { display: none; }
  .bh-pdp-row__grid.bh-grid { display: flex; gap: var(--space-12); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .bh-pdp-row__grid::-webkit-scrollbar { display: none; }
  .bh-pdp-row__grid > * { flex: 0 0 169px; scroll-snap-align: start; }
  .bh-pdp-row__scroller.is-scrollable .bh-pdp-row__progress { display: block; position: relative; height: 2px; margin-top: var(--space-20); overflow: hidden; background: var(--border); }
  .bh-pdp-row__progress span { display: block; height: 100%; background: var(--foreground); }

  /* Yapışkan alt çubuk (100:38380) */
  .bh-buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 85; display: flex; align-items: center; gap: var(--space-16); padding: var(--space-12) var(--space-20) calc(23px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--border); transform: translateY(100%); visibility: hidden; transition: transform .2s ease, visibility .2s; }
  .bh-buybar.is-visible { transform: none; visibility: visible; }
  .bh-buybar__price { flex: none; font-size: 20px; line-height: 28px; white-space: nowrap; }
  .bh-buybar__btn { flex: 1 1 0; min-width: 0; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .bh-gallery--pdp .bh-gallery__stage { aspect-ratio: 780 / 488; }
  .bh-gallery--pdp .bh-gallery__slide { flex-basis: calc(50% - 4px); }
  .bh-pdp-row__grid > * { flex-basis: 220px; }
}

@media (max-width: 767.98px) {
  .bh-buy__current { font-size: 20px; line-height: 28px; }
  .bh-acc__trigger { font-size: 17px; line-height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .bh-buybar { transition: none; }
}

/* PDP/FinishSelector (826:56728 · revize 2026-11-05): iki eşit kutu, 52 px; metal rengi + Türkçe ad;
   seçili: muted zemin, 2 px koyu kenar, 16 px onay. Kenar farkı iç gölgeyle verilir (kayma olmaz). */
.bh-finish--pdp .bh-finish__options { flex-wrap: nowrap; gap: var(--space-12); }
.bh-finish--pdp .bh-finish__option { flex: 1 1 0; min-width: 0; padding: 0; align-items: stretch; gap: 0; }
.bh-finish--pdp .bh-finish__card { justify-content: flex-start; gap: var(--space-8); min-width: 0; height: 52px; padding: var(--space-8) var(--space-12); border: 1px solid var(--border-strong); background: var(--surface); color: var(--foreground); transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
.bh-finish__dot { flex: none; width: 20px; height: 20px; }
.bh-finish__name { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.bh-finish__tick { visibility: hidden; }
.bh-finish--pdp .bh-finish__option input:checked ~ .bh-finish__card { background: var(--muted); border-color: var(--foreground); box-shadow: inset 0 0 0 1px var(--foreground); }
.bh-finish--pdp .bh-finish__option input:checked ~ .bh-finish__card .bh-finish__tick { visibility: visible; }
.bh-finish--pdp .bh-finish__option:hover input:not(:checked):not(:disabled) ~ .bh-finish__card { border-color: var(--foreground); }
.bh-finish--pdp .bh-finish__option input:focus-visible ~ .bh-finish__card { box-shadow: 0 0 0 2px var(--ring); }
.bh-finish--pdp .bh-finish__option input:checked:focus-visible ~ .bh-finish__card { box-shadow: inset 0 0 0 1px var(--foreground), 0 0 0 2px var(--ring); }
.bh-finish--pdp .bh-finish__option input:disabled ~ .bh-finish__card { text-decoration: line-through; }
