/**
 * Ürün detay — Metin2 taş panel / metal çerçeve
 */

.pd {
  --pd-font: "Source Sans 3", "Segoe UI", sans-serif;
  --pd-display: "Cinzel", "Times New Roman", serif;
  --pd-ink: #f0e6d4;
  --pd-muted: #8a7a62;
  --pd-secondary: #c4b498;
  --pd-line: rgba(100, 78, 42, 0.75);
  --pd-line-strong: rgba(150, 118, 55, 0.65);
  --pd-surface: rgba(18, 14, 10, 0.94);
  --pd-elev: rgba(12, 10, 8, 0.96);
  --pd-base: transparent;
  --pd-gold: #c9a227;
  --pd-gold-soft: rgba(201, 162, 39, 0.14);
  --pd-frame:
    0 10px 28px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(220, 190, 120, 0.1),
    inset 0 0 0 1px rgba(28, 20, 12, 0.9),
    inset 0 0 0 2px rgba(85, 65, 32, 0.4);
  position: relative;
  padding: 18px 0 48px;
  font-family: var(--pd-font);
  color: var(--pd-ink);
  background: transparent;
}

.pd__wrap {
  max-width: 1200px;
}

.pd__top {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.25fr) minmax(220px, 0.7fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.pd__gallery,
.pd__info,
.pd__seller-card,
.pd__details {
  background:
    linear-gradient(165deg, rgba(36, 28, 18, 0.5) 0%, rgba(12, 10, 8, 0.82) 100%),
    url("../images/metin2/panel-tex.jpg");
  background-size: auto, 240px 240px;
  background-blend-mode: soft-light, normal;
  border: none;
  border-radius: 2px;
  box-shadow: none;
}

.pd__gallery {
  padding: 12px;
  position: sticky;
  top: 92px;
}

.pd__figure {
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--pd-elev);
  border: none;
  border-radius: 2px;
  box-shadow: none;
}

.pd__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: opacity 0.2s ease;
}

.pd__img.fade-out { opacity: 0; }
.pd__img.fade-in { opacity: 1; }

.pd__img.default-logo-image {
  object-fit: contain;
  padding: 18%;
  background: var(--pd-elev);
  cursor: default;
}

.pd__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
}

.pd__thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  padding: 0;
  border: none;
  overflow: hidden;
  background: var(--pd-elev);
  cursor: pointer;
  opacity: 0.65;
}

.pd__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd__thumb.active,
.pd__thumb:hover {
  opacity: 1;
  border-color: transparent;
}

.pd__info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.pd__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pd__title {
  margin: 0;
  font-family: var(--pd-display);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: #f0e6d4;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

.pd__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-size: 13px;
  color: var(--pd-muted);
}

.pd__rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--pd-gold);
}

.pd__rating em {
  font-style: normal;
  color: var(--pd-secondary);
  margin-left: 4px;
  font-weight: 600;
}

.pd__views {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  color: var(--pd-muted);
}

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

.pd__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--pd-secondary);
  background: rgba(0, 0, 0, 0.28);
  border: none;
  border-radius: 2px;
  box-shadow: none;
  text-decoration: none;
}

a.pd__pill:hover {
  border-color: transparent;
  color: var(--pd-ink);
}

.pd__pill--ok {
  color: #e0b83a;
  border-color: transparent;
  background: var(--pd-gold-soft);
}

.pd__pill--hot {
  color: #f0d78c;
  border-color: transparent;
  background: rgba(161, 29, 46, 0.16);
}

.pd__pill--sold {
  color: #e8a0a8;
  border-color: transparent;
  background: rgba(196, 30, 58, 0.12);
}

.pd__purchase {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 14px;
  border-top: none;
}

.pd__qty {
  display: inline-flex;
  align-items: center;
  border: none;
  width: fit-content;
  background: var(--pd-elev);
}

.pd__qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--pd-ink);
  font-size: 18px;
  cursor: pointer;
}

.pd__qty-btn:hover { background: rgba(201, 162, 39, 0.1); }

.pd__qty-input {
  width: 42px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--pd-ink);
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

.pd__buy-bar {
  display: grid;
  grid-template-columns: minmax(120px, auto) minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
}

.pd__price-block {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  min-height: 52px;
  background:
    linear-gradient(180deg, rgba(50, 38, 22, 0.95) 0%, rgba(14, 10, 8, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 4px;
  box-shadow:
    0 4px 0 #120e0a,
    inset 0 1px 0 rgba(240, 208, 96, 0.12);
}

.pd__price {
  font-family: var(--pd-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  color: #f0d060;
  white-space: nowrap;
  text-shadow:
    0 0 14px rgba(212, 175, 55, 0.35),
    0 2px 0 rgba(0, 0, 0, 0.55);
  letter-spacing: 0.03em;
}

.pd__actions {
  display: flex;
  flex: 1;
  gap: 10px;
  min-width: 0;
}

.pd__cta {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid #f0d060;
  border-radius: 4px;
  font-family: var(--pd-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: #fff8e8 !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 28%),
    linear-gradient(180deg, #e8c547 0%, #b8860b 40%, #8b1a1a 100%);
  cursor: pointer;
  box-shadow:
    0 5px 0 #4a1010,
    0 10px 22px rgba(139, 26, 26, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.pd__cta:hover {
  filter: brightness(1.07);
  color: #fff8e8 !important;
  transform: translateY(-1px);
  box-shadow:
    0 6px 0 #5a1212,
    0 14px 28px rgba(212, 175, 55, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.pd__cta:active {
  transform: translateY(2px);
  box-shadow:
    0 2px 0 #4a1010,
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.pd__cta--alt {
  color: #f0e6d4 !important;
  background:
    linear-gradient(180deg, rgba(90, 48, 32, 0.95) 0%, rgba(28, 14, 10, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow:
    0 5px 0 #1a100c,
    inset 0 1px 0 rgba(240, 208, 96, 0.12);
}

.pd__cta--alt:hover {
  color: #fff !important;
  border-color: rgba(240, 208, 96, 0.75);
  background: rgba(212, 175, 55, 0.14);
  filter: none;
  box-shadow:
    0 6px 0 #1a100c,
    0 0 18px rgba(212, 175, 55, 0.22),
    inset 0 1px 0 rgba(240, 208, 96, 0.16);
}

.pd__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pd-muted);
  padding: 12px 0;
}

.pd__note--warn { color: #e07080; }

.pd__seller-card {
  padding: 16px;
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pd__seller-top {
  display: flex;
  gap: 12px;
  align-items: center;
}

.pd__seller-avatar {
  width: 48px;
  height: 48px;
  overflow: hidden;
  flex-shrink: 0;
  border: none;
}

.pd__seller-avatar img,
.pd__seller-avatar .user-avatar,
.pd__seller-avatar > * {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  object-fit: cover;
}

.pd__seller-name {
  display: block;
  font-size: 14px;
  font-weight: 750;
  color: var(--pd-ink);
}

.pd__seller-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  align-items: center;
}

.pd__rank-pill--inline,
.pd__rank-pill--verified {
  font-size: 10px;
  padding: 4px 8px;
}

.pd__rank-pill--verified {
  border-color: rgba(90, 180, 130, 0.55);
  color: #d8f5e4;
  background: linear-gradient(180deg, rgba(30, 70, 48, 0.95), rgba(12, 28, 20, 0.98));
}

.pd__badge {
  display: none !important;
}

.pd__seller-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pd__stat {
  padding: 10px 8px;
  text-align: center;
  background: var(--pd-elev);
  border: 1px solid rgba(138, 110, 55, 0.28);
  border-radius: 4px;
}

.pd__stat strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}

.pd__stat span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--pd-muted);
}

.pd__stat--ok strong { color: var(--pd-gold); }
.pd__stat--bad strong { color: #e07080; }

.pd__stat--rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pd__rank-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 3px;
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff8e8;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: linear-gradient(180deg, #4a3420, #1a120c);
  box-shadow: 0 2px 0 #0a0806, inset 0 1px 0 rgba(240, 208, 96, 0.15);
  white-space: nowrap;
}

.pd__rank-pill--caylak { border-color: rgba(160, 160, 160, 0.4); color: #c8c8c8; }
.pd__rank-pill--acemi { border-color: rgba(90, 180, 130, 0.5); }
.pd__rank-pill--guvenilir { border-color: rgba(90, 150, 220, 0.55); color: #d8ecff; }
.pd__rank-pill--tecrubeli {
  border-color: #f0d060;
  background: linear-gradient(180deg, #e8c547 0%, #8a6a1c 55%, #5a1212 100%);
  color: #1a1008;
}
.pd__rank-pill--usta,
.pd__rank-pill--efsane,
.pd__rank-pill--imparator {
  border-color: #ffe08a;
  background: linear-gradient(180deg, #fff0a8 0%, #d4af37 40%, #8b1a1a 100%);
  color: #1a1008;
  box-shadow: 0 2px 0 #4a1010, 0 0 12px rgba(212, 175, 55, 0.35);
}

.pd__seller-ranks {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  padding: 0 !important;
  margin: 0 !important;
}

.pd__medal {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 78px;
  padding: 10px 8px 8px;
  text-align: center;
  border-radius: 4px !important;
  border: 1px solid rgba(138, 110, 55, 0.4) !important;
  background:
    linear-gradient(180deg, rgba(42, 32, 20, 0.95) 0%, rgba(14, 10, 8, 0.98) 100%) !important;
  box-shadow:
    0 3px 0 #0a0806,
    inset 0 1px 0 rgba(240, 208, 96, 0.1) !important;
  color: #c8b48e !important;
  font-style: normal !important;
}

.pd__medal-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(0, 0, 0, 0.35);
  color: #f0d060;
  font-size: 12px;
}

.pd__medal-name {
  display: block !important;
  font-family: "Cinzel", "Times New Roman", serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  font-style: normal !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f3e8d0 !important;
  line-height: 1.2;
}

.pd__medal-meta {
  display: block !important;
  font-size: 10px !important;
  font-style: normal !important;
  color: rgba(200, 180, 142, 0.7) !important;
  line-height: 1.2;
}

.pd__medal-lock {
  position: absolute;
  top: 6px;
  right: 7px;
  font-size: 9px;
  color: rgba(200, 180, 142, 0.55);
}

.pd__medal.is-on {
  border-color: rgba(212, 175, 55, 0.65) !important;
  background:
    linear-gradient(180deg, rgba(70, 52, 28, 0.98) 0%, rgba(22, 16, 10, 0.98) 100%) !important;
}

.pd__medal.is-on .pd__medal-icon {
  border-color: #f0d060;
  background: linear-gradient(180deg, #e8c547, #8a6a1c);
  color: #1a1008;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
}

.pd__medal.is-on .pd__medal-name {
  color: #fff6c8 !important;
}

.pd__medal.is-on .pd__medal-meta {
  color: #86efac !important;
}

.pd__medal.is-off {
  opacity: 0.72;
  filter: grayscale(0.25);
}

.pd__medal--verified {
  border-color: rgba(90, 180, 130, 0.55) !important;
  background: linear-gradient(180deg, rgba(30, 70, 48, 0.95), rgba(12, 28, 20, 0.98)) !important;
}

.pd__medal--verified .pd__medal-icon {
  border-color: rgba(134, 239, 172, 0.6);
  color: #86efac;
}

.pd__medal--verified .pd__medal-name {
  color: #d8f5e4 !important;
}

.pd__medal--tecrubeli.is-on,
.pd__medal--usta.is-on,
.pd__medal--efsane.is-on,
.pd__medal--imparator.is-on {
  border-color: #f0d060 !important;
  background: linear-gradient(180deg, rgba(90, 60, 20, 0.95), rgba(40, 18, 12, 0.98)) !important;
}

.pd__rank-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid rgba(138, 110, 55, 0.35);
  background: rgba(12, 9, 6, 0.75);
}

.pd__rank-progress-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: rgba(200, 180, 142, 0.8);
}

.pd__rank-progress-top strong {
  color: #f0d060;
  font-family: "Cinzel", "Times New Roman", serif;
  font-weight: 700;
}

.pd__rank-progress-bar {
  height: 6px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.45);
  overflow: hidden;
  border: 1px solid rgba(138, 110, 55, 0.35);
}

.pd__rank-progress-bar > .pd__rank-progress-fill {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #8a6a1c, #f0d060 55%, #e8c547);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

/* Eski chip stillerini etkisiz bırak */
.pd__rank-chip,
.pd__rank-next,
.pd__rank-lock {
  display: none !important;
}

.pd__seller-actions {
  display: grid;
  grid-template-columns: 1fr;
}

.pd__seller-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border: none;
  border-radius: 2px;
  background: linear-gradient(180deg, #2a2016, #14100c);
  color: var(--pd-secondary);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
}

.pd__seller-btn:hover {
  border-color: transparent;
  color: var(--pd-ink);
}

.pd__seller-btn--msg {
  background: var(--pd-gold-soft);
  border-color: transparent;
  color: #e8c547;
}

/* Açıklama bloğu */
.pd__details {
  padding: 18px 20px 16px;
  margin-bottom: 24px;
}

.pd__details-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(100, 78, 42, 0.45);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.pd__details-title {
  margin: 0;
  font-family: var(--pd-display);
  font-size: 14px;
  font-weight: 700;
  color: #e8c547;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pd__desc-tools { display: flex; gap: 6px; }

.pd__icon-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 2px;
  background: linear-gradient(180deg, #2a2016, #14100c);
  color: var(--pd-muted);
  cursor: pointer;
  box-shadow: none;
}

.pd__icon-btn:hover {
  color: var(--pd-gold);
  border-color: rgba(180, 140, 55, 0.55);
}

.pd__meta-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

.pd__meta-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(28, 22, 14, 0.95), rgba(14, 10, 8, 0.98));
  min-width: 0;
}

.pd__meta-list span {
  font-size: 11px;
  color: var(--pd-muted);
}

.pd__meta-list strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--pd-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd__desc-body {
  color: var(--pd-secondary);
  font-size: 14px;
  line-height: 1.7;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.pd__desc-empty {
  margin: 0;
  color: var(--pd-muted);
  font-size: 14px;
}

.description-text-enhanced ul,
.pd__desc-body ul {
  padding-left: 1.1rem;
}

.pd__trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--pd-muted);
}

.pd__trust-row i {
  color: var(--pd-gold);
  margin-right: 6px;
}

.pd-rail {
  margin-top: 4px;
  margin-bottom: 24px;
}

.pd-rail__head { margin-bottom: 14px; }

.pd-rail__title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 750;
  color: var(--pd-ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pd-rail__title i { color: var(--pd-gold); font-size: 14px; }

.pd-rail__sub {
  margin: 0;
  color: var(--pd-muted);
  font-size: 13px;
}

@media (max-width: 1100px) {
  .pd__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  }
  .pd__seller-card {
    grid-column: 1 / -1;
    position: static;
  }
  .pd__meta-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .pd { padding: 10px 0 36px; }
  .pd__top { grid-template-columns: 1fr; gap: 12px; }
  .pd__gallery { position: static; }
  .pd__meta-list { grid-template-columns: 1fr 1fr; }
  .pd__buy-bar {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .pd__price-block { justify-content: center; min-height: 48px; }
  .pd__cta,
  .pd__cta--alt {
    min-height: 50px;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pd__cta, .pd__thumb { transition: none; }
}

/* Lightbox */
.pd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding:
    max(16px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  box-sizing: border-box;
  background: rgba(10, 8, 6, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.pd-lightbox__close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(26, 21, 16, 0.9);
  color: var(--pd-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pd-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(26, 21, 16, 0.9);
  color: var(--pd-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pd-lightbox__nav--prev { left: max(12px, env(safe-area-inset-left)); }
.pd-lightbox__nav--next { right: max(12px, env(safe-area-inset-right)); }
.pd-lightbox--single .pd-lightbox__nav { display: none !important; }

.pd-lightbox__stage {
  flex: 1 1 auto;
  width: 100%;
  max-width: min(920px, 100%);
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-lightbox__img {
  max-width: 100%;
  max-height: min(78vh, 100%);
  object-fit: contain;
}

.pd-lightbox__dock {
  width: 100%;
  max-width: min(920px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.pd-lightbox__thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  max-width: 100%;
  padding: 4px;
}

.pd-lightbox__thumb {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  padding: 0;
  border: none;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.45;
  background: #111;
}

.pd-lightbox__thumb:hover { opacity: 0.85; }
.pd-lightbox__thumb.active {
  opacity: 1;
  border-color: transparent;
}

.pd-lightbox__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-lightbox__count {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--pd-muted);
}

.pd-lightbox--single .pd-lightbox__thumbs { display: none; }
