/* Ürün galerisi: ana görsele tıklayınca tam ekran görüntüleyici. Her temada yüklenir (ürün sayfası). */

/* Ana görselin tamamı tıklanabilir düğme */
.gallery-open { position: absolute; inset: 0; display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: zoom-in; }
.gallery-open:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.gallery-hint { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: rgba(8, 16, 28, .78); color: #fff; font-size: .8125rem; font-weight: 700; line-height: 1; pointer-events: none; transition: background .2s ease; }
.gallery-hint .i { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gallery-open:hover .gallery-hint { background: rgba(8, 16, 28, .92); }

/* Görüntüleyici */
html.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 11, 20, .96); color: #fff; overflow: hidden; }
.lb::backdrop { background: rgba(0, 0, 0, .7); }
.lb[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 20px; }
.lb-count { margin: 0; font-size: .9375rem; font-variant-numeric: tabular-nums; color: #c9d2de; }
.lb-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-btn:focus-visible { outline: 3px solid var(--accent, #f26a3d); outline-offset: 2px; }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-tools { display: flex; gap: 8px; }

.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; padding: 0 72px; touch-action: pan-y pinch-zoom; }
.lb-img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
/* Yakınlaştırılmış: görsel büyür, sürükleyerek ya da kaydırarak gezilir */
.lb-stage.is-zoomed { display: block; overflow: auto; padding: 0; touch-action: auto; cursor: grab; }
.lb-stage.is-zoomed .lb-img { max-width: none; max-height: none; margin: auto; cursor: zoom-out; border-radius: 0; }
.lb-stage.is-drag { cursor: grabbing; }

.lb-foot { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 20px 18px; }
.lb-nav { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb.is-zoomed .lb-nav, .lb.is-single .lb-nav { visibility: hidden; }
.lb-cap { margin: 0; text-align: center; font-size: .9375rem; color: #c9d2de; }
.lb-cap small { display: block; margin-top: 4px; font-size: .8125rem; color: #8d9aab; }

@media (max-width: 760px) {
  .lb-stage { padding: 0 8px; }
  .lb-bar { padding-left: 16px; }
  .lb-foot { padding: 10px 12px 16px; }
  .lb-nav { position: static; translate: none; flex: none; }
  .lb-cap { flex: 1; font-size: .875rem; }
}
