/* ==========================================================================
   V4.1 ACCESSIBLE PRODUCT GALLERY SLIDER — UNCROPPED FRAMING & 44x44 TARGETS
   ========================================================================== */
.product-gallery-slider {
  position: relative;
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  overflow: hidden;
}
.product-gallery-slider img.pg-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  background: #FFFFFF;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.product-gallery-slider img.pg-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.product-gallery-slider > a {
  position: absolute;
  inset: 0;
  display: block;
}
.product-gallery-slider > a.pg-slide-hidden {
  pointer-events: none;
  visibility: hidden;
}
.pg-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  color: #1D1D1F;
  font-size: 20px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.pg-nav-arrow:hover,
.pg-nav-arrow:focus-visible { background: #0055B3; border-color: #0055B3; color: #FFFFFF; }
.pg-prev { left: 8px; }
.pg-next { right: 8px; }

.pg-dots {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.12);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.10);
}
.pg-dot {
  position: relative;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pg-dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.34);
  transition: width 0.2s ease, background 0.2s ease;
}
.pg-dot.active::before {
  width: 22px;
  background: #0055B3;
}
.pg-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.pg-thumb-btn {
  padding: 4px;
  border: 2px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  overflow: hidden;
  background: #FFFFFF;
  aspect-ratio: 4 / 3;
  min-height: 44px;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.pg-thumb-btn.active {
  border-color: #0055B3;
  box-shadow: 0 6px 16px rgba(0, 85, 179, 0.18);
}
.pg-thumb-btn img { width: 100%; height: 100%; object-fit: contain; background: #FFFFFF; }

.photo-clarity-ribbon {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.12);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  color: #1D1D1F;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.10);
}
.photo-clarity-ribbon strong {
  color: #0055B3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
  white-space: nowrap;
}
.photo-clarity-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 85, 179, 0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #004494;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.10);
}
.pg-pause {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  color: #1D1D1F;
  font-size: 0.8125rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.10);
  transition: background 0.18s ease, color 0.18s ease;
}
.pg-pause:hover, .pg-pause:focus-visible { background: #0055B3; border-color: #0055B3; color: #FFFFFF; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .pg-nav-arrow, .pg-dots, .pg-pause, .photo-clarity-ribbon, .photo-clarity-pill { background: #FFFFFF; }
}
@media (prefers-reduced-transparency: reduce) {
  .pg-nav-arrow, .pg-dots, .pg-pause, .photo-clarity-ribbon, .photo-clarity-pill {
    background: #FFFFFF !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .product-gallery-slider img.pg-slide { transition: none !important; }
}
