/* Scoped to shop/product-taxonomy archives; single-product galleries stay untouched. */
body.woocommerce.archive ul.products li.product-category > a > img {
    display:block!important;
    width:100%!important;
    height:auto!important;
    max-width:100%!important;
    max-height:240px!important;
    aspect-ratio:4 / 3;
    object-fit:cover!important;
    object-position:center!important;
    margin:0 auto!important;
    border-radius:8px;
    background:#fafaf8;
}
body.woocommerce.archive ul.products li.product-category.evxs-category-contain > a > img {
    object-fit:contain!important;
    padding:12px;
    box-sizing:border-box;
}
body.woocommerce.archive ul.products li.product:not(.product-category) a.woocommerce-loop-image-link {
    display:block!important;
    width:100%;
    height:auto;
    aspect-ratio:1 / 1;
    max-height:280px;
    overflow:hidden;
    background:#fafaf8;
}
body.woocommerce.archive ul.products li.product:not(.product-category) a.woocommerce-loop-image-link img {
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    max-height:280px!important;
    aspect-ratio:auto!important;
    object-fit:contain!important;
    object-position:center!important;
    padding:14px;
    box-sizing:border-box;
    margin:0 auto!important;
}
/* Product-table layouts also receive bounded, undistorted catalogue thumbnails. */
body.woocommerce.archive table.wc-product-table .col-image img {
    width:auto!important;
    height:auto!important;
    max-width:96px!important;
    max-height:120px!important;
    object-fit:contain!important;
}
@media(max-width:600px) {
    body.woocommerce.archive ul.products li.product:not(.product-category) a.woocommerce-loop-image-link,
    body.woocommerce.archive ul.products li.product:not(.product-category) a.woocommerce-loop-image-link img { max-height:210px!important; }
    body.woocommerce.archive ul.products li.product:not(.product-category) a.woocommerce-loop-image-link img { padding:10px; }
    body.woocommerce.archive ul.products li.product-category.evxs-category-contain > a > img { padding:8px; }
}

/* Small service illustrations retain a restrained size inside the same card frame. */
body.woocommerce.archive ul.products li.product:is(.post-125,.post-13268,.post-13288,.post-13282) a.woocommerce-loop-image-link img { max-height:160px!important; width:auto!important; max-width:160px!important; margin:auto!important; }

