/* Transform only the perfume artwork: shopping buttons keep their original hit areas. */
html.noor-card-motion .product-card .product-image,
html.noor-card-motion .pack-product .pack-product-image {
  perspective: 850px;
  perspective-origin: 50% 50%;
}

html.noor-card-motion .product-card .product-image > button:first-child > img,
html.noor-card-motion .pack-studio .pack-product .pack-product-image .pack-image-preview > img {
  transform-origin: 50% 66%;
  transform: perspective(850px) translate3d(var(--card-x, 0px), var(--card-y, 0px), 0px)
    rotateX(var(--card-rx, 0deg)) rotateY(var(--card-ry, 0deg))
    rotateZ(var(--card-rz, 0deg)) scale(var(--card-scale, 1));
  backface-visibility: hidden;
  transition: transform .55s cubic-bezier(.18, .75, .25, 1);
}

html.noor-card-motion .product-card .product-image.is-card-tilting > button:first-child > img,
html.noor-card-motion .pack-studio .pack-product .pack-product-image.is-card-tilting .pack-image-preview > img {
  transition-duration: .2s;
  will-change: transform;
}

html.noor-card-motion .card-motion-sheen {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(ellipse at var(--card-light-x, 50%) var(--card-light-y, 30%),
    #fff8e4a6, #fff8e419 27%, transparent 65%);
  mix-blend-mode: screen;
  opacity: var(--card-light-opacity, 0);
  transition: opacity .35s ease;
}

@media (prefers-reduced-motion: reduce) {
  html.noor-card-motion .product-card .product-image > button:first-child > img,
  html.noor-card-motion .pack-studio .pack-product .pack-product-image .pack-image-preview > img {
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }
  html.noor-card-motion .card-motion-sheen { display: none; }
}
