/*
Theme Name: Wedmate
Theme URI: https://yourwebsite.com/
Description: A custom child theme for Divi.
Author: KK
Author URI: https://yourwebsite.com/
Template: Divi
Version: 1.0.0
*/

/* Import Parent Theme Styles */
@import url("../Divi/style.css");


/* Ensure both images are inside a wrapper */
.custom-product-image-wrapper {
    position: relative;
    display: block;
}

/* Hide second image by default */
.custom-product-image-wrapper .hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

/* Show second image on hover */
.custom-product-image-wrapper:hover .hover-image {
    opacity: 1;
}

/* Ensure first image remains if there's no second image */
.custom-product-image-wrapper:hover img:first-child {
    opacity: 1;
}

/* Only hide the first image if there's a second image */
.custom-product-image-wrapper:hover img:first-child:not(:last-child) {
    opacity: 0;
}


