

@property --dc-fill {
  syntax: '<number>';
  inherits: false;
  initial-value: 0;
}

.depth-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  overflow: visible;
  
  -webkit-perspective: var(--dc-perspective, 1400px);
  perspective: var(--dc-perspective, 1400px);
  perspective-origin: 50% 50%;
  touch-action: pan-y;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}

.depth-carousel:active {
  cursor: grabbing;
}

.depth-carousel.is-zone-prev,
.depth-carousel.is-zone-next {
  cursor: pointer;
}

.depth-carousel.is-zone-prev:active,
.depth-carousel.is-zone-next:active {
  cursor: pointer;
}

.depth-carousel:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 4px;
  border-radius: 12px;
}

.depth-carousel__stage {
  position: absolute;
  inset: 0;
  overflow: visible;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.depth-carousel__card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center center;
  overflow: visible;
  background: transparent;
  cursor: pointer;
  transform: translate3d(-50%, -50%, 0);
}

.depth-carousel__face {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  background: #0b0d12;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.65),
    0 8px 20px -10px rgba(0, 0, 0, 0.5);
}

.depth-carousel__img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: var(--frame-fit, contain);
  object-position: var(--frame-x, 50%) var(--frame-y, 50%);
  transform-origin: var(--frame-x, 50%) var(--frame-y, 50%);
  scale: var(--frame-zoom, 1);
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

.depth-carousel__tint {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.depth-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3000;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(18, 20, 26, 0.55);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.depth-carousel__arrow:hover {
  background: rgba(28, 31, 40, 0.85);
  border-color: rgba(255, 255, 255, 0.4);
}

.depth-carousel__arrow:active {
  transform: translateY(-50%) scale(0.94);
}

.depth-carousel__arrow--prev {
  left: 16px;
}

.depth-carousel__arrow--next {
  right: 16px;
}

.depth-carousel__nav {
  position: absolute;
  top: calc(50% + (var(--dc-card-height, 300px) / 2) + var(--dc-card-chrome-gap, 16px));
  bottom: auto;
  left: calc(50% + var(--dc-shift-x, 0px));
  transform: translateX(-50%);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.depth-carousel__dots {
  display: none;
}

.depth-carousel__counter {
  margin: 0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.82);
  font-variant-numeric: tabular-nums;
}

.depth-carousel__counter-sep {
  margin: 0 4px;
  opacity: 0.45;
}

.depth-carousel__dot {
  box-sizing: content-box;
  position: relative;
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
  transition:
    width 0.25s ease,
    height 0.25s ease;
}

.depth-carousel__dot::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.32);
  transition: background-color 0.25s ease;
}

.depth-carousel__dot.is-active {
  width: 20px;
  height: 10px;
}

.depth-carousel__dot.is-active::before {
  background: #fff;
}

.depth-carousel.is-timer-on .depth-carousel__dot.is-active::before,
.fade-carousel.is-timer-on .depth-carousel__dot.is-active::before {
  background: rgba(255, 255, 255, 0.28);
}

.depth-carousel.is-timer-on .depth-carousel__dot.is-active::after,
.fade-carousel.is-timer-on .depth-carousel__dot.is-active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  --dc-fill: 0;
  
  -webkit-mask-image: linear-gradient(
    90deg,
    #fff 0,
    #fff calc(var(--dc-fill) * 100% - 2px),
    transparent calc(var(--dc-fill) * 100%)
  );
  mask-image: linear-gradient(
    90deg,
    #fff 0,
    #fff calc(var(--dc-fill) * 100% - 2px),
    transparent calc(var(--dc-fill) * 100%)
  );
  animation: dc-dot-fill var(--dc-dot-duration, 4600ms) linear forwards;
}

.depth-carousel.is-timer-paused .depth-carousel__dot.is-active::after,
.fade-carousel.is-timer-paused .depth-carousel__dot.is-active::after {
  animation-play-state: paused;
}

@keyframes dc-dot-fill {
  from {
    --dc-fill: 0;
  }
  to {
    --dc-fill: 1.1;
  }
}



.product-showcase__preview-media {
  overflow: visible;
}

.product-showcase__preview-media [data-depth-carousel] {
  min-height: 0;
  overflow: visible;
}

@media (prefers-reduced-motion: reduce) {
  .depth-carousel__card {
    will-change: auto;
  }

  .depth-carousel__arrow,
  .depth-carousel__dot {
    transition: none;
  }

  .depth-carousel.is-timer-on .depth-carousel__dot.is-active::before,
  .fade-carousel.is-timer-on .depth-carousel__dot.is-active::before {
    background: #fff;
  }

  .depth-carousel.is-timer-on .depth-carousel__dot.is-active::after,
  .fade-carousel.is-timer-on .depth-carousel__dot.is-active::after {
    content: none;
    animation: none;
  }
}
