/* One image-size contract for category cards on Shop, product-category and 404 views. */
body.error404 #content > .ast-container {
    width: 100%;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
}

body.error404 #primary {
    width: 100%;
}

.elementor-5601 .s3i-parent-cat-thumb,
body.ast-woo-shop-archive .s3i-parent-cat-thumb,
body.error404 .s3i-parent-cat-thumb {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.elementor-5601 .s3i-parent-cat-card,
body.ast-woo-shop-archive .s3i-parent-cat-card,
body.error404 .s3i-parent-cat-card {
    --cie-category-image-scale: 1;
}

.elementor-5601 .s3i-parent-cat-thumb img,
body.ast-woo-shop-archive .s3i-parent-cat-thumb img,
body.error404 .s3i-parent-cat-thumb img {
    width: clamp(112px, 60%, 260px) !important;
    max-width: 88% !important;
    height: clamp(72px, 55%, 129px) !important;
    max-height: 78% !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    transform: scale(var(--cie-category-image-scale)) !important;
    transform-origin: center !important;
}

.elementor-5601 .s3i-parent-cat-card[href*="/product-category/door-intercom/"],
body.ast-woo-shop-archive .s3i-parent-cat-card[href*="/product-category/door-intercom/"],
body.error404 .s3i-parent-cat-card[href*="/product-category/door-intercom/"] {
    --cie-category-image-scale: 1.4;
}

.elementor-5601 .s3i-parent-cat-card[href*="/product-category/connectivity/"],
body.ast-woo-shop-archive .s3i-parent-cat-card[href*="/product-category/connectivity/"],
body.error404 .s3i-parent-cat-card[href*="/product-category/connectivity/"] {
    --cie-category-image-scale: 0.86;
}

.elementor-5601 .s3i-parent-cat-card[href*="/product-category/access-control/"],
body.ast-woo-shop-archive .s3i-parent-cat-card[href*="/product-category/access-control/"],
body.error404 .s3i-parent-cat-card[href*="/product-category/access-control/"] {
    --cie-category-image-scale: 1.12;
}

.elementor-5601 .s3i-parent-cat-card[href*="/product-category/audio-visual/"],
.elementor-5601 .s3i-parent-cat-card[href*="/product-category/audio/"],
body.ast-woo-shop-archive .s3i-parent-cat-card[href*="/product-category/audio-visual/"],
body.ast-woo-shop-archive .s3i-parent-cat-card[href*="/product-category/audio/"],
body.error404 .s3i-parent-cat-card[href*="/product-category/audio-visual/"],
body.error404 .s3i-parent-cat-card[href*="/product-category/audio/"] {
    --cie-category-image-scale: 0.88;
}

.elementor-5601 .s3i-parent-cat-card[href*="/product-category/test/"],
body.ast-woo-shop-archive .s3i-parent-cat-card[href*="/product-category/test/"],
body.error404 .s3i-parent-cat-card[href*="/product-category/test/"] {
    --cie-category-image-scale: 0.98;
}

@media (max-width: 1024px) {
    .elementor-5601 .s3i-parent-cat-wrap,
    body.ast-woo-shop-archive .s3i-parent-cat-wrap,
    body.error404 .s3i-parent-cat-wrap {
        justify-content: center !important;
    }

    html body .elementor-5601 .s3i-parent-cat-thumb,
    html body.ast-woo-shop-archive .s3i-parent-cat-thumb,
    html body.error404 .s3i-parent-cat-thumb {
        min-height: clamp(180px, 26vw, 230px) !important;
    }

    html body .elementor-5601 .s3i-parent-cat-thumb img,
    html body.ast-woo-shop-archive .s3i-parent-cat-thumb img,
    html body.error404 .s3i-parent-cat-thumb img {
        width: clamp(220px, 30vw, 260px) !important;
        height: clamp(118px, 15vw, 129px) !important;
        max-width: 92% !important;
        max-height: 129px !important;
        margin: 0 auto !important;
        object-fit: contain !important;
    }
}
