/* Shared product-card frame. Original gallery images keep their own proportions. */
.pastelhome-site .woocommerce ul.products li.product .pod-catalog-image,
.pastelhome-site .pod-product-image .pod-catalog-image {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #fff;
    margin: 0 0 1em;
}
.pastelhome-site .woocommerce ul.products li.product .pod-catalog-image img,
.pastelhome-site .pod-product-image .pod-catalog-image img {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: var(--pod-catalog-image-width, 100%);
    height: var(--pod-catalog-image-height, 100%);
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
    margin: 0;
    padding: 0;
}

/* Explicit frame width prevents intrinsic-size collapse in narrow flex cards. */
.pastelhome-site .pod-product-image-portrait{position:relative;width:100%;align-self:stretch;padding:0;aspect-ratio:2/3}
.pastelhome-site .pod-product-image-portrait .pod-catalog-image{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto}
.pastelhome-site .pod-product-image .pod-catalog-image{margin-bottom:0}
