/* Catálogo de Bombascen: fotos completas, proporción preservada. */
body.woocommerce :is(.elementor-location-single, .elementor-location-archive, main.site-main) ul.products li.product a.woocommerce-loop-product__link > img,
body.woocommerce :is(.elementor-location-single, .elementor-location-archive, main.site-main) ul.products li.product a.woocommerce-LoopProduct-link > img {
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: contain !important;
    object-position: center;
    box-sizing: border-box;
    padding: clamp(10px, 1.4vw, 22px);
    background: #fff;
}
.single-product .elementor-location-single .woocommerce-product-gallery__image > a {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    background: #fff;
    padding: clamp(14px, 2.2vw, 28px);
}
.single-product .elementor-location-single .woocommerce-product-gallery__image > a > img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center;
    margin: 0;
}
.single-product .elementor-location-single .woocommerce-product-gallery .flex-control-thumbs img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fff;
}
@media (max-width: 600px) {
    body.woocommerce :is(.elementor-location-single, .elementor-location-archive, main.site-main) ul.products li.product a.woocommerce-loop-product__link > img,
    body.woocommerce :is(.elementor-location-single, .elementor-location-archive, main.site-main) ul.products li.product a.woocommerce-LoopProduct-link > img {
        padding: 10px;
    }
}


/* Mostrar una única fotografía desde el primer renderizado.
   Las galerías con varias imágenes y los videos conservan su inicialización. */
@supports selector(:has(*)) {
    .single-product .elementor-location-single .woocommerce-product-gallery:has(> .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:only-child):has(> .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image > a > img.wp-post-image) {
        opacity: 1 !important;
    }
}
