/* Container wrapping both images */
.pc-thumb-wrap {
  position: relative;
  display: block;
}

/* Images fill the container width */
.pc-thumb-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* Second image hidden by default */
.pc-second-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity .35s cubic-bezier(.2,.6,.2,1),
    visibility .35s cubic-bezier(.2,.6,.2,1),
    transform .35s cubic-bezier(.2,.6,.2,1);
  z-index: 1;
  pointer-events: none;
  object-fit: cover;
}

/* Reveal on hover */
.products .product:hover .pc-second-image,
.wc-block-product:hover .pc-second-image,
li.product:hover .pc-second-image,
.woocommerce ul.products li.product:hover .pc-second-image,
.wc-block-grid__product:hover .pc-second-image {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Fallback coverage */
.products .product:hover .pc-second-image,
.wc-block-product:hover .pc-second-image {
  opacity: 1;
  visibility: visible;
}
