/* Wrapper padding for left/right */
.new-arrivals-slider {
    padding: 0px 20px !important; /* Adjust left/right space */
    box-sizing: border-box;
}

/* Gap between products */
.new-arrivals-slider .slider-item {
    padding: 20px 10px !important; /* Horizontal gap */
    box-sizing: border-box;
}

/* Make sure product-wrapper takes full width of slide minus padding */
.new-arrivals-slider .slider-item .product-wrapper {
    width: 100%;
    margin: 20px auto !important;
}


.product-wrapper {
    position: relative;
    text-align: center;
    background: #fff;
    border-radius: 10px;
    padding: 15px 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.0);
    overflow: hidden;
    transition: transform 0.3s ease;
}


/* Product image wrapper for CSS hover swap */
.product-image-wrapper {
    position: relative;
    width: 80%;
    height: 300px !important; /* fixed height to prevent jumping */
    overflow: hidden;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 300px !important; /* dynamic height based on main image */
    overflow: hidden;
}

.product-image-wrapper img {
    width: 100%;
    height: 300px !important; /* maintain original size */
    object-fit: cover;
    border-radius: 10px;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Hover image initially hidden */
.product-image-wrapper .hover-image {
    opacity: 0;
    z-index: 2;
     height: 300px !important;
    transform: scale(1.05); /* slight zoom on hover */
}

/* Swap on hover with smooth transition */
.product-image-wrapper:hover .hover-image {
    opacity: 1;
     height: 300px;
    transform: scale(1); /* zoom back to normal */
}

.product-image-wrapper:hover .main-image {
    opacity: 0;
     height: 300px;
    transform: scale(0.95); /* optional subtle scale */
}

/* Wishlist button left */
.wishlist-btn-left {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 9999;
    border-radius: 50%;
    padding: 5px;
}

.wishlist-btn-left a.add_to_wishlist {
    font-size: 16px;
    color: #ff4081 !important;
}

/* Discount badge right */
.badge-discount {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ff4e00;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 999;
}

/* New badge */
.badge-new {
    position: absolute;
    top: 50px;
    right: 20px;
    background: #149736;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 999;
}

.product-title {
    margin-top: 8px;
    margin-bottom: 0px;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
}

.product-price {
    font-size: 16px;
    margin: 0;
    font-weight: normal;
    text-align: left;
    color: #ee2222;
}

.product-price del {
    color: #999;
    margin-right: 0px;
}

/* Hide YITH wishlist text */
.yith-wcwl-add-to-wishlist-button__label{
    display:none !important; 
}