/* Product Image Full-Fill Fix */

/* New background image approach for perfect fill */
.product-image-container {
    position: relative;
    width: 100%;
    height: 250px; /* Fixed height for consistent look */
    background-color: #fff;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.product-image-bg {
    width: 100%;
    height: 100%;
    background-size: cover; /* Fill entire container */
    background-position: center center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.product-image-container:hover .product-image-bg {
    transform: scale(1.05);
}

/* Legacy support for existing product-image class */
.product-image {
    position: relative;
    width: 100%;
    height: 250px; /* Fixed height for consistent look */
    background-color: #fff;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fill entire container, may crop edges */
    object-position: center;
    transition: transform 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
}

/* Alternative: Show full image without cropping */
.product-image.contain-image img {
    object-fit: contain; /* Show full image, may have padding */
    padding: 10px;
}

/* Hover effect */
.product-image:hover img {
    transform: scale(1.05);
}

/* Ensure product cards have consistent height */
.product-card {
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

/* Make sure content area fills remaining space */
.product-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Make product actions visible on hover */
.product-actions {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 10;
    display: flex;
    gap: 10px;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-image-container:hover .product-actions,
.product-image:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}