/* JN Belts — floating product presentation */
.exchange-product-image {
  isolation: isolate;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.075), transparent 42%),
    linear-gradient(155deg, #20231f 0%, #141613 58%, #0f110f 100%) !important;
}

.exchange-product-image::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 19%;
  right: 19%;
  bottom: 8%;
  height: 7%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  filter: blur(13px);
  opacity: 0.76;
  transform: scaleX(0.85);
  transition: transform 380ms ease, opacity 380ms ease, filter 380ms ease;
}

.exchange-product-image img[src*="/cutouts/"] {
  position: relative;
  z-index: 1;
  object-fit: contain !important;
  padding: clamp(12px, 5%, 24px);
  background: transparent !important;
  filter:
    drop-shadow(0 18px 18px rgba(0, 0, 0, 0.52))
    drop-shadow(0 4px 5px rgba(0, 0, 0, 0.32));
  transform-origin: 50% 58%;
  will-change: transform, filter;
  animation: jn-product-float 5.8s cubic-bezier(.45, .05, .55, .95) infinite;
  transition: transform 420ms cubic-bezier(.2, .8, .2, 1), filter 420ms ease;
}

.exchange-grid article:nth-child(3n + 2) .exchange-product-image img { animation-delay: -1.65s; }
.exchange-grid article:nth-child(3n + 3) .exchange-product-image img { animation-delay: -3.2s; }
.exchange-grid article:nth-child(4n) .exchange-product-image img { animation-duration: 6.4s; }

.exchange-grid article:hover .exchange-product-image::before,
.exchange-grid article:focus-within .exchange-product-image::before {
  opacity: 0.46;
  filter: blur(17px);
  transform: scaleX(0.68);
}

.exchange-grid article:hover .exchange-product-image img,
.exchange-grid article:focus-within .exchange-product-image img {
  animation-play-state: paused;
  transform: translate3d(0, -10px, 0) scale(1.045) rotate(-0.35deg);
  filter:
    drop-shadow(0 27px 24px rgba(0, 0, 0, 0.6))
    drop-shadow(0 7px 7px rgba(0, 0, 0, 0.3));
}

img[src*="/cutouts/"] {
  background: transparent !important;
}

@keyframes jn-product-float {
  0%, 100% { transform: translate3d(0, 2px, 0) rotate(-0.18deg); }
  50% { transform: translate3d(0, -8px, 0) rotate(0.18deg); }
}

@media (prefers-reduced-motion: reduce) {
  .exchange-product-image img[src*="/cutouts/"] {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .exchange-product-image::before { transition: none !important; }
}
