/* ShopGlowsy professional PDP gallery + variants */
.sg-pdp-gallery {
  --sg-pdp-radius: 12px;
  --sg-pdp-gap: 12px;
  display: flex;
  flex-direction: column;
  gap: var(--sg-pdp-gap);
  width: 100%;
  user-select: none;
  -webkit-user-select: none;
}
.sg-pdp-gallery__stage {
  position: relative;
  aspect-ratio: 1 / 1;
  max-height: min(72vh, 640px);
  background: #f4f4f5;
  border-radius: var(--sg-pdp-radius);
  overflow: hidden;
  touch-action: pan-y;
}
.sg-pdp-gallery__track {
  width: 100%;
  height: 100%;
  position: relative;
}
.sg-pdp-gallery__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
}
.sg-pdp-gallery__slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 1;
}
.sg-pdp-gallery__img,
.sg-pdp-gallery__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #ececef;
}
.sg-pdp-gallery__video {
  object-fit: contain;
  background: #0a0a0a;
}
.sg-pdp-gallery__video--embed {
  width: 100%;
  height: 100%;
  border: 0;
}
.sg-pdp-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: #111;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.sg-pdp-gallery__nav--prev { left: 10px; }
.sg-pdp-gallery__nav--next { right: 10px; }
.sg-pdp-gallery__nav:hover { background: #fff; }
.sg-pdp-gallery__zoom-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sg-pdp-gallery__zoom-btn:hover,
.sg-pdp-gallery__zoom-btn:focus-visible {
  background: rgba(0,0,0,0.78);
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.sg-pdp-gallery__zoom-icon {
  display: block;
  pointer-events: none;
}
.sg-pdp-gallery__video-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
}
.sg-pdp-gallery__video-wrap .sg-pdp-gallery__img,
.sg-pdp-gallery__video-wrap .sg-pdp-gallery__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: inherit;
}
.sg-pdp-gallery__play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.72);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.sg-pdp-gallery__play-btn:hover,
.sg-pdp-gallery__play-btn:focus-visible {
  background: rgba(0,0,0,0.88);
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.sg-pdp-gallery__badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.sg-pdp-gallery__thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.sg-pdp-gallery__thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: #f4f4f5;
  cursor: pointer;
  position: relative;
  opacity: 0.78;
  transition: opacity 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.sg-pdp-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sg-pdp-gallery__thumb.is-active,
.sg-pdp-gallery__thumb[aria-selected="true"] {
  opacity: 1;
  border-color: #111;
  transform: translateY(-1px);
}
.sg-pdp-gallery__thumb.is-video .sg-pdp-gallery__thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 0.85rem;
  pointer-events: none;
}

/* Fullscreen lightbox */
.sg-pdp-fs {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(8,8,10,0.96);
  display: none;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 0;
}
.sg-pdp-fs.is-open { display: flex; }
.sg-pdp-fs__top {
  display: flex;
  justify-content: flex-end;
  padding: 12px 14px;
}
.sg-pdp-fs__close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}
.sg-pdp-fs__body {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  touch-action: none;
}
.sg-pdp-fs__media {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.05s linear;
  user-select: none;
  -webkit-user-drag: none;
}
.sg-pdp-fs__media video {
  max-width: min(96vw, 1100px);
  max-height: 78vh;
  background: #000;
}
.sg-pdp-fs__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 2;
}
.sg-pdp-fs__nav--prev { left: 12px; }
.sg-pdp-fs__nav--next { right: 12px; }
.sg-pdp-fs__hint {
  text-align: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.75rem;
  padding: 10px 16px 18px;
}

/* Variants */
.sg-pdp-variants {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0.85rem 0 1rem;
}
.sg-pdp-variants__label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #18181b;
  margin: 0 0 0.55rem;
}
.sg-pdp-variants__req {
  color: #b45309;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.sg-pdp-variants__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sg-pdp-variants__chip {
  appearance: none;
  border: 1.5px solid #d4d4d8;
  background: #fff;
  color: #18181b;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.sg-pdp-variants__chip:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.sg-pdp-variants__chip.is-active,
.sg-pdp-variants__chip[aria-pressed="true"] {
  background: #121212;
  color: #fff;
  border-color: #121212;
}
.sg-pdp-variants__chip.is-oos,
.sg-pdp-variants__chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
}
.sg-pdp-variants__oos {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  margin-top: 2px;
}
.sg-pdp-variants__stock {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
}
.sg-pdp-variants__stock.is-oos { color: #b91c1c; font-weight: 600; }

@media (max-width: 720px) {
  .sg-pdp-gallery__stage { max-height: min(62vh, 480px); }
  .sg-pdp-gallery__thumb { width: 56px; height: 56px; }
  .sg-pdp-gallery__nav { display: none; }
}
