/* Enhanced Product Hover Effects */
.product-item {
    position: relative;
    overflow: hidden;
}

.product-item .product-details .btn {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-item:hover .product-details .btn {
    opacity: 1;
    transform: translateY(0);
}

.product-item:hover .product-image img {
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.5s ease;
}

/* Ensure the button area has enough space even when hidden */
.product-details {
    padding-bottom: 60px;
    position: relative;
}

.product-details .btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
}

.product-item:hover .product-details .btn {
    transform: translateX(-50%) translateY(0);
}