/* =========================================================
   ÜRÜN DETAYI: düzen
   ========================================================= */
.pd { padding: 16px 0 0; }
@media (min-width: 900px) { .pd { padding: 24px 0 0; } }

.pd__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);   /* içerik sütunu ekrandan taşırmasın */
  gap: 22px;
  margin-top: 14px;
}
@media (min-width: 900px) {
  .pd__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
    gap: 44px;
  }
}

/* =========================================================
   GALERİ
   ========================================================= */
@media (min-width: 900px) { .gal { position: sticky; top: 100px; } }

.gal__frame {
  position: relative;
  overflow: hidden;
  border: 1px solid #edf0f5;
  border-radius: 22px;
  background: #f1f5fb;   /* ürün kartıyla aynı düz zemin */
}

.gal__stage {
  display: flex;
  aspect-ratio: 1;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  outline: none;
}
.gal__stage::-webkit-scrollbar { display: none; }

.gal__slide {
  display: grid;
  place-items: center;
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: center;
}
.gal__slide img {
  width: 100%;
  height: 100%;
  padding: 10%;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(16, 34, 70, 0.14));
  user-select: none;
}
.gal__slide.is-photo img { padding: 0; object-fit: cover; filter: none; }
.gal__slide--empty { color: #a7b3c4; }
.gal__slide--empty .lucide { width: 48px; height: 48px; }

.gal__badges { top: 14px; left: 14px; }

.gal__arrow {
  position: absolute;
  top: 50%;
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px -10px rgba(16, 34, 70, 0.45);
  color: var(--ink);
  transform: translateY(-50%);
  transition: opacity 200ms ease, transform 200ms ease;
}
.gal__arrow .lucide { width: 20px; height: 20px; }
.gal__arrow--prev { left: 14px; }
.gal__arrow--next { right: 14px; }
.gal__arrow:hover { transform: translateY(-50%) scale(1.06); }
.gal__arrow:disabled { opacity: 0; pointer-events: none; }
@media (hover: hover) and (min-width: 900px) {
  .gal__arrow { display: grid; opacity: 0; }
  .gal__frame:hover .gal__arrow:not(:disabled) { opacity: 1; }
}

.gal__count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(11, 18, 32, 0.6);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
@media (min-width: 900px) { .gal__count { display: none; } }

.gal__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.gal__thumbs::-webkit-scrollbar { display: none; }

.gal__thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 1px solid #edf0f5;
  border-radius: 14px;
  background: #f1f5fb;
  opacity: 0.7;
  transition: opacity 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
@media (min-width: 900px) { .gal__thumb { width: 76px; height: 76px; } }
.gal__thumb img { width: 100%; height: 100%; padding: 10%; object-fit: contain; }
.gal__thumb.is-photo img { padding: 0; object-fit: cover; }
.gal__thumb:hover { opacity: 1; }
.gal__thumb.is-active { opacity: 1; border-color: transparent; box-shadow: 0 0 0 2px var(--color-primary); }

/* =========================================================
   BİLGİ
   ========================================================= */
.pd__cat {
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.pd__cat:hover { text-decoration: underline; }

.pd__name {
  margin-top: 6px;
  font-size: clamp(1.4rem, 2.6vw, 1.875rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.pd__price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 14px;
  font-variant-numeric: tabular-nums;
}
.pd__price strong { color: var(--color-primary); font-size: 1.875rem; font-weight: 900; letter-spacing: -0.03em; }
.pd__price s { color: #9aa4b2; font-size: 1rem; font-weight: 600; }
.pd__off {
  padding: 4px 9px;
  border-radius: 20px;
  background: #ffe9ea;
  color: #e5383f;
  font-size: 12px;
  font-weight: 800;
}

.pd__stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: #16a34a;
  font-size: 0.8125rem;
  font-weight: 700;
}
.pd__stock .lucide { width: 16px; height: 16px; }
.pd__stock[data-state="low"] { color: #c2410c; }
.pd__stock[data-state="out"] { color: #dc2626; }

/* =========================================================
   SEÇENEKLER
   ========================================================= */
.buy { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }

.opt { margin: 0 0 18px; padding: 0; border: 0; }
.opt__legend { margin-bottom: 10px; color: #344155; font-size: 0.8125rem; font-weight: 700; }
.opt__legend b { color: var(--ink); font-weight: 800; }
.opt__legend small { margin-left: 4px; color: #8490a1; font-size: 11.5px; font-weight: 600; }

.opt__list { display: flex; flex-wrap: wrap; gap: 8px; }

.opt__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #dfe6ef;
  border-radius: 12px;
  background: #fff;
  color: #26364d;
  font-size: 0.8125rem;
  font-weight: 700;
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease, color 200ms ease;
}
.opt__btn:hover { border-color: #b9cbe6; }
.opt__btn.is-selected { border-color: var(--color-primary); background: #f2f7ff; color: var(--color-primary); box-shadow: inset 0 0 0 1px var(--color-primary); }
.opt__btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--color-primary-ring); }

/* Stoğu biten seçenek: seçilebilir ama üstü çizili */
.opt__btn.is-soldout { color: #9aa4b2; }
.opt__btn.is-soldout::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  border-top: 1.5px solid #c3ccd8;
  transform: rotate(-8deg);
}
/* Bu kombinasyonda hiç olmayan seçenek */
.opt__btn.is-unavailable { opacity: 0.35; border-style: dashed; }

.opt__btn--color { padding: 0 14px 0 6px; }
.opt__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.15);
}

/* Opsiyonlar */
.extras { display: grid; gap: 8px; }
.extra {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #dfe6ef;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease;
}
.extra:hover { border-color: #b9cbe6; }
.extra input { position: absolute; opacity: 0; pointer-events: none; }
.extra__box {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid #c3ccd8;
  border-radius: 6px;
  color: transparent;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}
.extra__box .lucide { width: 14px; height: 14px; stroke-width: 3; }
.extra__name { flex: 1; color: #26364d; font-size: 0.8125rem; font-weight: 700; }
.extra__price { color: #68758a; font-size: 0.8125rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.extra:has(input:checked) { border-color: var(--color-primary); background: #f2f7ff; }
.extra input:checked + .extra__box { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.extra input:focus-visible + .extra__box { box-shadow: 0 0 0 3px var(--color-primary-ring); }

/* =========================================================
   ADET + SEPETE EKLE
   ========================================================= */
.buy__row { display: flex; gap: 10px; margin-top: 4px; }

.qty {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  height: 52px;
  border: 1px solid #dfe6ef;
  border-radius: 14px;
  background: #fff;
}
.qty__btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 100%;
  color: #344155;
  transition: color 200ms ease;
}
.qty__btn:hover { color: var(--color-primary); }
.qty__btn:disabled { color: #c3ccd8; }
.qty__btn .lucide { width: 16px; height: 16px; }
.qty__input {
  width: 36px;
  height: 100%;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}
.qty__input::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }

.buy__btn { flex: 1; min-width: 0; min-height: 52px; padding: 0 14px; font-size: 0.9375rem; }
.buy__btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buy__btn:hover .lucide { transform: none; }
.buy__btn:disabled { background: #c3ccd8; box-shadow: none; cursor: not-allowed; transform: none; }

@media (max-width: 400px) {
  .buy__row { gap: 8px; }
  .qty__btn { width: 34px; }
  .qty__input { width: 30px; }
  .buy__fav { width: 48px; }
}

.buy__total { margin-top: 10px; color: #68758a; font-size: 0.8125rem; font-weight: 600; }
.buy__total b { color: var(--ink); font-weight: 800; }

.buy__note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
}
.buy__note.is-info { background: #eef5ff; color: #0b4fc4; }

/* WhatsApp'tan sor */
.pd__ask {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #344155;
  font-size: 0.8125rem;
  text-decoration: none;
  transition: border-color 200ms ease;
}
.pd__ask:hover { border-color: #25d366; }
.pd__ask > .lucide:first-child { width: 20px; height: 20px; color: #16a34a; }
.pd__ask > .lucide:last-child { width: 16px; height: 16px; margin-left: auto; color: #93a0b3; }
.pd__ask b { color: var(--ink); }

/* Avantajlar */
.pd__perks {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--soft);
  list-style: none;
}
.pd__perks li { display: flex; align-items: center; gap: 10px; color: #5b6b82; font-size: 0.8125rem; }
.pd__perks b { color: var(--ink); font-weight: 750; }
.pd__perks .lucide { width: 18px; height: 18px; color: var(--color-primary); }

/* Açıklama / kargo akordiyonları */
.pd__more { margin-top: 18px; border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary .lucide { width: 18px; height: 18px; color: #93a0b3; transition: transform 200ms ease; }
.acc[open] summary .lucide { transform: rotate(180deg); }
.acc__body { padding: 0 0 18px; color: #4a5a70; font-size: 0.875rem; line-height: 1.75; }
.acc__body p + p { margin-top: 8px; }
.pd__desc { white-space: pre-line; overflow-wrap: anywhere; }

/* =========================================================
   BENZER ÜRÜNLER
   ========================================================= */
.related { padding: 48px 0 0; }
.related__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.related__head h2 { font-size: 1.125rem; font-weight: 900; letter-spacing: -0.02em; }

/* =========================================================
   MOBİL: ALTA YAPIŞAN SATIN ALMA ÇUBUĞU
   ========================================================= */
.sticky-buy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 -10px 30px -18px rgba(16, 40, 80, 0.35);
  transform: translateY(110%);
  transition: transform 250ms ease;
}
.sticky-buy.is-visible { transform: none; }
.sticky-buy__price { flex: 1; min-width: 0; }
.sticky-buy__price small { display: block; overflow: hidden; color: #8490a1; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.sticky-buy__price b { color: var(--color-primary); font-size: 1.125rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.sticky-buy .btn { min-height: 46px; }
.sticky-buy .btn:disabled { background: #c3ccd8; box-shadow: none; }
@media (min-width: 900px) { .sticky-buy { display: none; } }

/* Ürün sayfasında WhatsApp balonu satın alma çubuğunun üstüne binmesin */
body.page-product .wa-fab { bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { body.page-product .wa-fab { bottom: 16px; } }
body.page-product .site-footer { padding-bottom: 96px; }
@media (min-width: 900px) { body.page-product .site-footer { padding-bottom: 22px; } }

/* =========================================================
   PUAN ÖZETİ (ürün adının altında)
   ========================================================= */
.pd__rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: #5b6b82;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}
.pd__rating .stars { font-size: 15px; }
.pd__rating b { color: var(--ink); font-weight: 800; }
.pd__rating span { text-decoration: underline; text-underline-offset: 3px; }
.pd__rating:hover span { color: var(--color-primary); }
.pd__rating.is-empty span { color: #8490a1; text-decoration: none; }
.pd__rating.is-empty:hover span { color: var(--color-primary); text-decoration: underline; }

/* Değerlendirmelere kaydırınca bölüm kısaca vurgulansın */
.rv.is-flash .rv__head h2 { animation: rv-flash 1.2s ease; }
@keyframes rv-flash { 30% { color: var(--color-primary); } }

/* Sepete ekle yanındaki favori kalbi */
.buy__fav {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border: 1px solid #dfe6ef;
  border-radius: 14px;
  box-shadow: none;
}
.buy__fav .lucide { width: 22px; height: 22px; }
.buy__fav.is-on { border-color: #ffc9cc; background: #fff1f2; }

/* =========================================================
   ÖNE ÇIKAN ÖZELLİKLER
   ========================================================= */
.feats { margin-top: 18px; }
.feats__title { margin-bottom: 10px; font-size: 0.9375rem; font-weight: 800; }
.feats__grid {
  display: grid;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
@media (min-width: 1100px) { .feats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.feat {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.feat dt { overflow: hidden; color: #8490a1; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.feat dd { margin: 2px 0 0; color: var(--ink); font-size: 0.8125rem; font-weight: 800; overflow-wrap: anywhere; }

/* =========================================================
   DEĞERLENDİRMELER
   ========================================================= */
.rv { padding: 48px 0 0; scroll-margin-top: 110px; }
.rv__head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.rv__head h2 { font-size: 1.125rem; font-weight: 900; letter-spacing: -0.02em; }
.rv__count {
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--soft);
  color: #68758a;
  font-size: 12px;
  font-weight: 700;
}

.rv__grid { display: grid; gap: 20px; }
@media (min-width: 900px) {
  .rv__grid { grid-template-columns: 320px minmax(0, 1fr); gap: 36px; align-items: start; }
  .rv-sum { position: sticky; top: 100px; }
}

/* Özet kartı */
.rv-sum {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.rv-sum__score { display: flex; align-items: center; gap: 14px; }
.rv-sum__score strong { font-size: 2.75rem; font-weight: 900; line-height: 1; letter-spacing: -0.04em; }
.rv-sum__score div { display: grid; gap: 4px; }
.rv-sum__score span:not(.stars) { color: #68758a; font-size: 0.8125rem; font-weight: 600; }
.stars--lg { font-size: 19px; }

.rv-sum__bars { display: grid; gap: 4px; margin-top: 16px; }
.rv-bar {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 8px;
  color: #344155;
  font-size: 12px;
  font-weight: 700;
  transition: background 200ms ease;
}
.rv-bar:hover:not(:disabled) { background: var(--soft); }
.rv-bar:disabled { opacity: 0.5; cursor: default; }
.rv-bar.is-active { background: #fff7e6; }
.rv-bar__label span { color: #f5a524; }
.rv-bar__track { height: 8px; overflow: hidden; border-radius: 4px; background: #edf1f6; }
.rv-bar__fill { display: block; width: var(--pct, 0); height: 100%; border-radius: 4px; background: #f5a524; }
.rv-bar__num { color: #8490a1; text-align: right; }

.rv-sum__note {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: #68758a;
  font-size: 12px;
  line-height: 1.5;
}
.rv-sum__note .lucide { flex-shrink: 0; width: 16px; height: 16px; color: #16a34a; }

/* Filtre çipleri */
.rv-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.rv-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #344155;
  font-size: 12.5px;
  font-weight: 700;
  transition: border-color 200ms ease, background 200ms ease, color 200ms ease;
}
.rv-chip .lucide { width: 14px; height: 14px; }
.rv-chip:hover { border-color: #cfdcef; }
.rv-chip.is-active { border-color: var(--color-primary); background: #f2f7ff; color: var(--color-primary); }

/* Yorum listesi */
.rv-list { display: grid; margin: 0; padding: 0; list-style: none; }
.rv-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.rv-item:first-child { padding-top: 4px; }
.rv-item__top { display: flex; align-items: center; gap: 10px; }
.rv-item__avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #eaf2ff;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 800;
}
.rv-item__who { flex: 1; min-width: 0; }
.rv-item__who b { display: block; font-size: 0.8125rem; font-weight: 800; }
.rv-item__who span { display: inline-flex; align-items: center; gap: 4px; color: #8490a1; font-size: 11.5px; font-weight: 600; }
.rv-item__who .lucide { width: 13px; height: 13px; color: #16a34a; }
.rv-item__text {
  margin-top: 10px;
  color: #344155;
  font-size: 0.875rem;
  line-height: 1.65;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.rv-item__photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rv-photo {
  display: block;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--soft);
}
.rv-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.rv-photo:hover img { transform: scale(1.06); }

.rv-none { padding: 24px 0; color: #8490a1; font-size: 0.875rem; text-align: center; }
.rv-more { margin-top: 16px; }

.rv-empty {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px dashed #d5deea;
  border-radius: 18px;
}
.rv-empty__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff7e6;
  color: #f5a524;
}
.rv-empty b { font-size: 0.9375rem; font-weight: 800; }
.rv-empty p { margin-top: 2px; color: #68758a; font-size: 0.8125rem; }

/* =========================================================
   YORUM FOTOĞRAFI GÖRÜNTÜLEYİCİ
   ========================================================= */
html.lb-open { overflow: hidden; }
.rv-photo { cursor: zoom-in; }

.lb {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: hidden;
}
.lb::backdrop { background: rgba(8, 12, 20, 0.92); backdrop-filter: blur(4px); }
.lb[open] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);   /* büyük fotoğraf pencereyi genişletmesin */
  grid-template-rows: auto minmax(0, 1fr);
  animation: lb-in 180ms ease;
}
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }

.lb__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: max(12px, env(safe-area-inset-top)) 16px 12px 20px;
}
.lb__who { display: grid; gap: 2px; flex: 1; min-width: 0; }
.lb__who b { overflow: hidden; font-size: 0.95rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.lb__stars { color: #fbbf24; font-size: 0.85rem; letter-spacing: 1px; }
.lb__count { color: rgba(255, 255, 255, 0.7); font-size: 0.85rem; font-variant-numeric: tabular-nums; }

.lb__close,
.lb__nav {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}
.lb__close:hover,
.lb__nav:hover { background: rgba(255, 255, 255, 0.24); }
.lb__close:active,
.lb__nav:active { transform: scale(0.94); }
.lb__close:focus-visible,
.lb__nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lb__close .lucide,
.lb__nav .lucide { width: 22px; height: 22px; }
.lb__nav[hidden] { display: none; }

.lb__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  padding: 0 72px max(24px, env(safe-area-inset-bottom));
}
.lb__img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 110px);
  max-height: calc(100dvh - 110px);   /* üst çubuk + alt boşluk: dikey fotoğraf da tamamen sığar */
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  user-select: none;
}
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb__nav:active { transform: translateY(-50%) scale(0.94); }
.lb__nav--prev { left: 16px; }
.lb__nav--next { right: 16px; }

@media (max-width: 640px) {
  .lb__stage { padding: 0 8px calc(84px + env(safe-area-inset-bottom)); }
  .lb__nav { top: auto; bottom: max(20px, env(safe-area-inset-bottom)); transform: none; background: rgba(0, 0, 0, 0.45); }
  .lb__nav:active { transform: scale(0.94); }
  .lb__nav--prev { left: calc(50% - 56px); }
  .lb__nav--next { right: calc(50% - 56px); }
  .lb__img { max-height: calc(100vh - 180px); max-height: calc(100dvh - 180px); border-radius: 8px; }
}
