.zpc-single-product__media {
  display: block;
  min-width: 0;
  aspect-ratio: auto;
  overflow: visible;
  background: transparent;
}

.zpc-product-gallery__stage {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f5f4f1;
}

.zpc-product-gallery__nav {
  position: absolute;
  top: 50%;
  z-index: 7;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(167, 122, 50, .4);
  border-radius: 999px;
  place-items: center;
  color: #8a6428 !important;
  background: rgba(255, 253, 248, .72) !important;
  box-shadow: 0 4px 14px rgba(56, 42, 18, .12), inset 0 1px 0 rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(8px) saturate(115%);
  backdrop-filter: blur(8px) saturate(115%);
  opacity: .72;
  transform: translateY(-50%);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease, opacity .2s ease, transform .2s ease;
}

.zpc-product-gallery__nav--prev {
  left: 12px;
}

.zpc-product-gallery__nav--next {
  right: 12px;
}

.zpc-product-gallery__nav svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.zpc-product-gallery__stage:hover .zpc-product-gallery__nav {
  opacity: .92;
}

.zpc-product-gallery__nav:hover,
.zpc-product-gallery__nav:focus-visible {
  border-color: rgba(167, 122, 50, .92);
  color: #fff !important;
  background: linear-gradient(145deg, rgba(207, 169, 98, .9), rgba(155, 109, 39, .88)) !important;
  box-shadow: 0 7px 18px rgba(85, 61, 22, .22), inset 0 1px 0 rgba(255, 255, 255, .3);
  opacity: 1;
  outline: none;
  transform: translateY(-50%) scale(1.06);
}

.zpc-product-gallery__panel {
  display: none;
  width: 100%;
  height: 100%;
}

.zpc-product-gallery__panel.is-active {
  display: grid;
  place-items: center;
}

.zpc-product-gallery__panel img,
.zpc-product-gallery__panel video,
.zpc-product-gallery__panel iframe,
.zpc-product-gallery__embed {
  width: 100%;
  height: 100%;
}

.zpc-product-gallery__panel img,
.zpc-product-gallery__panel video {
  display: block;
  object-fit: contain;
}

.zpc-product-gallery__video-player {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  background: #f5f4f1;
}

.zpc-product-gallery__video-player video {
  width: 100%;
  height: auto;
  min-height: 0;
  flex: 1 1 auto;
  background: #f5f4f1;
}

.zpc-product-gallery__video-controls {
  display: none;
}

.zpc-product-gallery__video-player.is-enhanced .zpc-product-gallery__video-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 6;
  display: grid;
  min-height: 48px;
  box-sizing: border-box;
  grid-template-columns: 36px minmax(78px, 1fr) auto 36px 60px 36px;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  color: #fff;
  border-top: 1px solid rgba(201, 157, 75, .42);
  background: linear-gradient(180deg, rgba(45, 42, 36, .34), rgba(23, 23, 22, .56));
  box-shadow: 0 -10px 28px rgba(0, 0, 0, .12);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  backdrop-filter: blur(14px) saturate(135%);
}

.zpc-video-control {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 50%;
  place-items: center;
  color: #f8edd8 !important;
  background: rgba(255, 252, 244, .09) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  font: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
}

.zpc-video-control:hover,
.zpc-video-control:focus-visible {
  border-color: rgba(214, 180, 113, .92);
  color: #fff !important;
  background: linear-gradient(145deg, rgba(205, 165, 88, .92), rgba(148, 101, 29, .88)) !important;
  transform: scale(1.04);
  outline: none;
}

.zpc-video-control--toggle span {
  font-size: 14px;
  line-height: 1;
}

input[type="range"].zpc-video-progress {
  width: 100%;
  height: 3px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  appearance: none !important;
  -webkit-appearance: none !important;
  accent-color: #c59a4f !important;
  color: #c59a4f !important;
  background: linear-gradient(to right, #c59a4f 0 var(--zpc-video-progress, 0%), rgba(255, 255, 255, .34) var(--zpc-video-progress, 0%) 100%) !important;
  cursor: pointer;
}

input[type="range"].zpc-video-progress::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background: transparent;
}

input[type="range"].zpc-video-progress::-webkit-slider-thumb {
  width: 11px !important;
  height: 11px !important;
  margin-top: -4px;
  border: 1px solid rgba(255, 255, 255, .92) !important;
  border-radius: 50%;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-color: #c59a4f !important;
  background: #c59a4f !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}

input[type="range"].zpc-video-progress::-moz-range-track {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .34);
}

input[type="range"].zpc-video-progress::-moz-range-progress {
  height: 3px;
  border-radius: 999px;
  background: #c59a4f;
}

input[type="range"].zpc-video-progress::-moz-range-thumb {
  width: 10px !important;
  height: 10px !important;
  border: 1px solid rgba(255, 255, 255, .92) !important;
  border-radius: 50%;
  background: #c59a4f !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}

.zpc-video-time {
  min-width: 86px;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
}

.zpc-video-speed select {
  width: 64px;
  height: 36px;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 4px;
  color: #fff;
  background: rgba(24, 26, 29, .52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
  font: inherit;
  cursor: pointer;
}

.zpc-video-speed select:focus-visible {
  border-color: #a77a32;
  outline: 2px solid rgba(167, 122, 50, .35);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .zpc-product-gallery__video-player.is-enhanced .zpc-product-gallery__video-controls {
    min-height: 46px;
    grid-template-columns: 32px minmax(58px, 1fr) 32px 56px 32px;
    gap: 6px;
    padding: 6px 8px;
  }

  .zpc-video-control {
    width: 30px;
    height: 30px;
  }

  .zpc-video-time {
    display: none;
  }

  .zpc-video-speed select {
    width: 56px;
    height: 32px;
    padding: 0 4px;
  }
}

.zpc-product-gallery__zoom-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid #a77a32;
  border-radius: 50%;
  place-items: center;
  background: rgba(255, 255, 255, .94);
  color: #a77a32;
  box-shadow: 0 5px 16px rgba(54, 39, 15, .12);
  pointer-events: none;
}

.zpc-product-gallery__zoom-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.zpc-product-gallery__magnifier {
  position: absolute;
  z-index: 4;
  display: none;
  width: 210px;
  height: 210px;
  border: 2px solid #a77a32;
  border-radius: 8px;
  background-color: #fff;
  background-repeat: no-repeat;
  box-shadow: 0 12px 32px rgba(35, 27, 13, .24), inset 0 0 0 1px rgba(255, 255, 255, .75);
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .zpc-product-gallery__magnifier {
    display: block;
  }

  .zpc-product-gallery__stage:has(.zpc-product-gallery__panel.is-active img) .zpc-product-gallery__zoom-icon {
    display: grid;
  }

  .zpc-product-gallery__stage:has(.zpc-product-gallery__panel.is-active img) {
    cursor: crosshair;
  }

  .zpc-product-gallery__stage.is-magnifying .zpc-product-gallery__magnifier {
    opacity: 1;
  }
}

.zpc-product-gallery__stage:has(.zpc-product-gallery__panel.is-active video) .zpc-product-gallery__magnifier,
.zpc-product-gallery__stage:has(.zpc-product-gallery__panel.is-active iframe) .zpc-product-gallery__magnifier,
.zpc-product-gallery__stage:has(.zpc-product-gallery__panel.is-active .zpc-product-gallery__video-link) .zpc-product-gallery__magnifier,
.zpc-product-gallery__stage:has(.zpc-product-gallery__panel.is-active video) .zpc-product-gallery__zoom-icon,
.zpc-product-gallery__stage:has(.zpc-product-gallery__panel.is-active iframe) .zpc-product-gallery__zoom-icon,
.zpc-product-gallery__stage:has(.zpc-product-gallery__panel.is-active .zpc-product-gallery__video-link) .zpc-product-gallery__zoom-icon {
  display: none !important;
  opacity: 0 !important;
}

.zpc-product-gallery__embed iframe {
  display: block;
  border: 0;
}

.zpc-product-gallery__video-link {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #111820;
  background: #ede9df;
  font-weight: 700;
  text-decoration: none;
}

.zpc-product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.zpc-product-gallery__thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 0;
  border: 1px solid #ddd8cd;
  border-radius: 3px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(248, 243, 232, .92)) !important;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .2s ease;
}

.zpc-product-gallery__thumb:hover,
.zpc-product-gallery__thumb:focus-visible,
.zpc-product-gallery__thumb.is-active {
  border-color: #bd8b21;
  background: linear-gradient(145deg, rgba(255, 250, 236, .96), rgba(211, 174, 105, .48)) !important;
  box-shadow: 0 0 0 2px rgba(189, 139, 33, .18);
  outline: none;
  transform: translateY(-1px);
}

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

.zpc-product-gallery__thumb--video {
  background: linear-gradient(145deg, rgba(45, 43, 38, .96), rgba(167, 122, 50, .72)) !important;
}

.zpc-product-gallery__thumb--video img {
  opacity: .72;
}

.zpc-product-gallery__thumb--video span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 36px;
  height: 36px;
  padding-left: 2px;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  color: #111820;
  background: #fff;
  font-size: 15px;
  line-height: 1;
}

@media (max-width: 640px) {
  .zpc-product-gallery__nav {
    width: 32px;
    height: 32px;
  }

  .zpc-product-gallery__nav--prev {
    left: 10px;
  }

  .zpc-product-gallery__nav--next {
    right: 10px;
  }

  .zpc-product-gallery__thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zpc-product-gallery__magnifier,
  .zpc-product-gallery__nav,
  .zpc-product-gallery__thumb {
    transition: none;
  }
}


/* Full-screen product image viewer */
body.zpc-lightbox-open {
  overflow: hidden !important;
  padding-right: var(--zpc-scrollbar-width, 0) !important;
}

.zpc-product-gallery__panel.is-active img,
.zpc-product-gallery__zoom-icon {
  cursor: zoom-in;
}

.zpc-lightbox[hidden] {
  display: none !important;
}

.zpc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 184px;
  color: #fff;
  background: rgba(10, 11, 13, .92);
  opacity: 0;
  transition: opacity .18s ease;
  overscroll-behavior: contain;
}

.zpc-lightbox.is-open {
  opacity: 1;
}

.zpc-lightbox__stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  touch-action: none;
}

.zpc-lightbox__topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 4;
  display: flex;
  height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px 6px 18px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .56), transparent);
  pointer-events: none;
}

.zpc-lightbox__counter {
  color: rgba(255, 255, 255, .86);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
}

.zpc-lightbox__actions {
  display: flex;
  gap: 4px;
  pointer-events: auto;
}

.zpc-lightbox__button,
.zpc-lightbox__nav,
.zpc-lightbox__thumb {
  appearance: none;
  border: 0;
  font: inherit;
}

.zpc-lightbox__button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border-radius: 999px;
  color: #fff !important;
  background: rgba(0, 0, 0, .35) !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background-color .16s ease, opacity .16s ease;
}

.zpc-lightbox__button:hover,
.zpc-lightbox__button:focus-visible {
  background: rgba(185, 134, 38, .92) !important;
  outline: 2px solid rgba(255, 255, 255, .9);
  outline-offset: 2px;
}

.zpc-lightbox__button:disabled {
  opacity: .34;
  cursor: default;
}

.zpc-lightbox__close {
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
}

.zpc-lightbox__reset {
  width: 48px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.zpc-lightbox__canvas {
  position: absolute;
  inset: 52px 46px 28px;
  display: grid;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  place-items: center;
  touch-action: none;
}

.zpc-lightbox__image {
  display: block;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  cursor: zoom-in;
  transform-origin: center center;
  will-change: transform;
  transition: transform .2s ease;
}

.zpc-lightbox.is-zoomed .zpc-lightbox__image {
  cursor: grab;
  transition: none;
}

.zpc-lightbox.is-zoomed .zpc-lightbox__image:active {
  cursor: grabbing;
}

.zpc-lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 46px;
  height: 76px;
  padding: 0;
  place-items: center;
  color: #fff !important;
  background: rgba(0, 0, 0, .34) !important;
  box-shadow: none !important;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color .16s ease, opacity .16s ease;
}

.zpc-lightbox__nav:hover,
.zpc-lightbox__nav:focus-visible {
  background: rgba(185, 134, 38, .9) !important;
  outline: 2px solid rgba(255, 255, 255, .9);
  outline-offset: -3px;
}

.zpc-lightbox__nav--prev {
  left: 0;
  border-radius: 0 12px 12px 0;
}

.zpc-lightbox__nav--next {
  right: 0;
  border-radius: 12px 0 0 12px;
}

.zpc-lightbox__nav svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.zpc-lightbox__thumbs {
  display: grid;
  grid-auto-rows: min-content;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 52px 6px 10px;
  overflow: auto;
  background: rgba(248, 248, 248, .94);
  scrollbar-width: thin;
}

.zpc-lightbox__thumb {
  position: relative;
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 3px;
  background: #fff !important;
  box-shadow: none !important;
  cursor: pointer;
}

.zpc-lightbox__thumb.is-active {
  border-color: #b98626;
}

.zpc-lightbox__thumb:focus-visible {
  outline: 2px solid #111820;
  outline-offset: -4px;
}

.zpc-lightbox__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  .zpc-lightbox {
    grid-template-columns: minmax(0, 1fr);
    background: rgba(8, 9, 11, .94);
  }

  .zpc-lightbox__thumbs {
    display: none;
  }

  .zpc-lightbox__canvas {
    inset: 58px 0 20px;
  }

  .zpc-lightbox__topbar {
    padding-right: 8px;
    padding-left: 14px;
  }

  .zpc-lightbox__nav {
    width: 40px;
    height: 66px;
    background: rgba(0, 0, 0, .38) !important;
  }

  .zpc-lightbox__nav--prev {
    border-radius: 0 10px 10px 0;
  }

  .zpc-lightbox__nav--next {
    border-radius: 10px 0 0 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zpc-lightbox,
  .zpc-lightbox__image,
  .zpc-lightbox__button,
  .zpc-lightbox__nav {
    transition: none !important;
  }
}


/* Reliable full-screen preview trigger on every product page */
.zpc-product-gallery__zoom-icon {
  z-index: 9;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  pointer-events: auto !important;
  cursor: zoom-in;
  touch-action: manipulation;
}

.zpc-product-gallery__stage:has(.zpc-product-gallery__panel.is-active[data-zpc-panel^="image-"]) .zpc-product-gallery__zoom-icon {
  display: grid;
}

.zpc-product-gallery__panel.is-active[data-zpc-panel^="image-"] > img {
  cursor: zoom-in;
}
