/* Ensure the product container is positioned relative */
.product {
    position: relative;
    overflow: hidden; /* Hide elements going outside the container */
}

/* Hover Image Style */
.product .hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

/* Show Second Image and Main Image Zoom Effect on Hover */
.woocommerce ul.products li.product:hover .hover-image,
.woocommerce ul.products li.product:hover img {
    opacity: 1;
    transform: scale(1.1); /* Zoom effect */
    transition: opacity 0.3s ease, transform 0.3s ease;
}
