/* JRABAWY CORE v1.5.3 — CATEGORY PRODUCT IMAGE FIT */

body.tax-product_cat{
    overflow-x:hidden!important;
}

/* Match the Store product-card image frame exactly. */
body.tax-product_cat .jr-shop-product__image,
body.tax-product_cat .jr-product-image{
    position:relative!important;
    display:block!important;
    width:100%!important;
    aspect-ratio:1 / 1.08!important;
    height:auto!important;
    min-height:0!important;
    overflow:hidden!important;
    background:#180b70!important;
}

body.tax-product_cat .jr-shop-product__image > img,
body.tax-product_cat .jr-shop-product__image img,
body.tax-product_cat .jr-product-image > img,
body.tax-product_cat .jr-product-image img{
    position:absolute!important;
    inset:0!important;
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:none!important;
    max-height:none!important;
    object-fit:cover!important;
    object-position:center!important;
}

/* Native WooCommerce category fallback. */
body.tax-product_cat ul.products li.product a.woocommerce-LoopProduct-link{
    overflow:hidden;
}

body.tax-product_cat ul.products li.product a.woocommerce-LoopProduct-link > img{
    display:block!important;
    width:100%!important;
    aspect-ratio:1 / 1.08!important;
    height:auto!important;
    object-fit:cover!important;
    object-position:center!important;
}

@media (max-width:767px){
    body.tax-product_cat .jr-shop-product__image,
    body.tax-product_cat .jr-product-image,
    body.tax-product_cat ul.products li.product a.woocommerce-LoopProduct-link > img{
        aspect-ratio:1 / 1.12!important;
    }
}


/* v1.5.4 runtime-detected category product image link */
body.tax-product_cat a.jr-category-runtime-image-fit{
    position:relative!important;
    display:block!important;
    width:100%!important;
    aspect-ratio:1 / 1.08!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:hidden!important;
    background:#180b70!important;
}

body.tax-product_cat a.jr-category-runtime-image-fit > img{
    position:absolute!important;
    inset:0!important;
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:none!important;
    max-height:none!important;
    object-fit:cover!important;
    object-position:center!important;
}

@media (max-width:767px){
    body.tax-product_cat a.jr-category-runtime-image-fit{
        aspect-ratio:1 / 1.12!important;
    }
}


/* =========================================================
   JRABAWY CORE v1.5.5 — CATEGORY CARD VISUAL POLISH
========================================================= */

/*
 * Match the softer Store card presentation:
 * rounded media container + subtle Jrabawy border/shadow.
 */
body.tax-product_cat a.jr-category-runtime-image-fit,
body.tax-product_cat .jr-shop-product__image,
body.tax-product_cat .jr-product-image{
    border:1px solid rgba(53,9,144,.10)!important;
    border-radius:24px!important;
    box-shadow:0 10px 28px rgba(40,16,95,.06)!important;
    overflow:hidden!important;
    transform:translateZ(0);
}

/* Make sure the artwork itself respects the rounded clipping. */
body.tax-product_cat a.jr-category-runtime-image-fit > img,
body.tax-product_cat .jr-shop-product__image img,
body.tax-product_cat .jr-product-image img{
    border-radius:inherit!important;
}

/* Optional card shell polish where the live category template exposes it. */
body.tax-product_cat .jr-shop-product,
body.tax-product_cat .jr-product-card,
body.tax-product_cat li.product{
    min-width:0!important;
}

@media (max-width:767px){
    body.tax-product_cat a.jr-category-runtime-image-fit,
    body.tax-product_cat .jr-shop-product__image,
    body.tax-product_cat .jr-product-image{
        border-radius:18px!important;
        box-shadow:0 7px 20px rgba(40,16,95,.055)!important;
    }
}
