.product-card {
    border: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: #fff;
    border-radius: 18px;
    transition: box-shadow .2s;
}
.product-card:hover {
    box-shadow: 0 4px 16px rgba(30,142,90,0.12);
}

/* Image container */
.product-card .position-relative,
.product-image-portrait {
    width: 100%;
    height: 320px;
    border-radius: 18px;
    background: none !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Product image */
.product-card .product-main-img,
.product-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fill area, crop if needed */
    border-radius: 18px;
    background: none !important;
    box-shadow: none !important;
    display: block;
    margin: 0 auto;
    transition: opacity .3s;
}
.product-card .add-to-cart-btn {
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 12px;
    z-index: 2;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 10px;
    padding: 8px 22px;
    background: #28a745;
    color: #fff;
    border: none;
    transition: background .2s;
}
.product-card .add-to-cart-btn:hover {
    background: #1e8e5a;
}
.product-card .position-relative,
.product-image-square {
    aspect-ratio: 3 / 4; /* Portrait ratio for container */
    width: 100%;
    min-width: 320px;
    min-height: 320px;
    max-width: 320px;
    max-height: 320px;
    height: 320px;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container for product image: portrait, fills card */
.product-image-portrait {
    aspect-ratio: 3 / 4;
    width: 100%;
    height: 320px;
    min-height: 320px;
    max-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: none !important;
    border: none !important;
}