/* =========================================================
   JRABAWY CORE v1.5.1 — SHOP RECOVERY / SAFE MOBILE TWEAKS
   Intentionally surgical. The real Shop design remains controlled
   by the existing Jrabawy Shop Custom CSS.
========================================================= */

body.woocommerce-shop{
    overflow-x:hidden!important;
}

body.woocommerce-shop #jrShopPage,
body.woocommerce-shop #jrShopPage *{
    box-sizing:border-box;
}

/* Critical logo protection. */
body.woocommerce-shop .jr-shop-header{
    min-height:68px;
}

body.woocommerce-shop .jr-shop-header__inner{
    min-width:0;
}

body.woocommerce-shop .jr-shop-logo{
    display:flex!important;
    align-items:center!important;
    flex:0 0 auto!important;
    width:auto!important;
    max-width:180px!important;
    overflow:hidden!important;
    line-height:0!important;
}

body.woocommerce-shop .jr-shop-logo img{
    display:block!important;
    width:auto!important;
    height:48px!important;
    max-width:170px!important;
    max-height:48px!important;
    object-fit:contain!important;
}

/* Never let the hero artwork dictate the page width. */
body.woocommerce-shop .jr-shop-hero,
body.woocommerce-shop .jr-shop-hero__layout,
body.woocommerce-shop .jr-shop-hero__copy,
body.woocommerce-shop .jr-shop-hero__visual,
body.woocommerce-shop .jr-shop-products,
body.woocommerce-shop .jr-shop-grid{
    min-width:0!important;
    max-width:100%;
}

body.woocommerce-shop .jr-shop-hero__image{
    width:auto!important;
    max-width:100%!important;
    height:auto!important;
    object-fit:contain!important;
}

/* Keep only the requested readability increase, scoped to Shop. */
body.woocommerce-shop .jr-shop-product__category{
    font-size:12px!important;
}

body.woocommerce-shop .jr-shop-product h3,
body.woocommerce-shop .jr-shop-product h3 a{
    font-size:15px!important;
    line-height:1.55!important;
}

body.woocommerce-shop .jr-shop-product__availability{
    font-size:12px!important;
    line-height:1.6!important;
}

body.woocommerce-shop .jr-shop-product__price del{
    font-size:12px!important;
}

body.woocommerce-shop .jr-shop-product__price strong{
    font-size:16px!important;
}

body.woocommerce-shop .jr-shop-product__button{
    font-size:13px!important;
}

/* Tablet */
@media (max-width:900px){
    body.woocommerce-shop .jr-shop-nav,
    body.woocommerce-shop .jr-shop-header__actions{
        display:none!important;
    }

    body.woocommerce-shop .jr-shop-menu-button{
        display:block!important;
        flex:0 0 auto!important;
    }

    body.woocommerce-shop .jr-shop-hero__layout{
        flex-direction:column!important;
        align-items:flex-start!important;
        gap:28px!important;
    }

    body.woocommerce-shop .jr-shop-hero__visual{
        width:100%!important;
        min-width:0!important;
    }

    body.woocommerce-shop .jr-shop-grid{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
}

/* Mobile */
@media (max-width:767px){
    body.woocommerce-shop .jr-shop-container{
        width:calc(100% - 24px)!important;
        max-width:1280px!important;
        margin-inline:auto!important;
    }

    body.woocommerce-shop .jr-shop-header{
        height:68px!important;
        min-height:68px!important;
    }

    body.woocommerce-shop .jr-shop-logo{
        max-width:145px!important;
    }

    body.woocommerce-shop .jr-shop-logo img{
        height:40px!important;
        max-height:40px!important;
        max-width:140px!important;
    }

    body.woocommerce-shop .jr-shop-menu-button{
        width:44px!important;
        height:44px!important;
        min-height:44px!important;
    }

    body.woocommerce-shop .jr-shop-hero{
        min-height:auto!important;
        overflow:hidden!important;
    }

    body.woocommerce-shop .jr-shop-breadcrumb{
        font-size:11px!important;
    }

    body.woocommerce-shop .jr-shop-hero__layout{
        width:100%!important;
        min-height:0!important;
        padding:34px 0 48px!important;
        gap:22px!important;
    }

    body.woocommerce-shop .jr-shop-hero__copy{
        width:100%!important;
    }

    body.woocommerce-shop .jr-shop-eyebrow{
        font-size:11px!important;
        letter-spacing:1.6px!important;
    }

    body.woocommerce-shop .jr-shop-hero h1{
        font-size:clamp(36px,11vw,48px)!important;
        line-height:1.2!important;
        max-width:100%!important;
    }

    body.woocommerce-shop .jr-shop-hero__copy p{
        font-size:14px!important;
        line-height:1.8!important;
        max-width:100%!important;
    }

    body.woocommerce-shop .jr-shop-hero__visual{
        width:100%!important;
        height:250px!important;
        margin-top:0!important;
    }

    body.woocommerce-shop .jr-shop-hero__visual-float{
        width:100%!important;
        height:240px!important;
        display:flex!important;
        align-items:center!important;
        justify-content:center!important;
    }

    body.woocommerce-shop .jr-shop-hero__image{
        width:auto!important;
        max-width:94%!important;
        max-height:235px!important;
        height:auto!important;
    }

    body.woocommerce-shop .jr-shop-section-label{
        font-size:12px!important;
    }

    body.woocommerce-shop .jr-shop-section-head h2{
        font-size:34px!important;
        line-height:1.25!important;
    }

    body.woocommerce-shop .jr-shop-results-text{
        font-size:12px!important;
    }

    body.woocommerce-shop .jr-shop-filter{
        font-size:12px!important;
        min-height:40px!important;
    }

    body.woocommerce-shop .jr-shop-sort label,
    body.woocommerce-shop .jr-shop-sort select{
        font-size:12px!important;
    }

    body.woocommerce-shop .jr-shop-grid{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
        gap:12px!important;
    }

    body.woocommerce-shop .jr-shop-product{
        min-width:0!important;
    }

    body.woocommerce-shop .jr-shop-product__category{
        font-size:11.5px!important;
    }

    body.woocommerce-shop .jr-shop-product h3,
    body.woocommerce-shop .jr-shop-product h3 a{
        font-size:14px!important;
    }

    body.woocommerce-shop .jr-shop-product__availability{
        font-size:11.5px!important;
    }

    body.woocommerce-shop .jr-shop-product__price strong{
        font-size:15px!important;
    }

    body.woocommerce-shop .jr-shop-product__button{
        min-height:43px!important;
        font-size:12.5px!important;
    }

    body.woocommerce-shop .jr-shop-custom-cta__content h2{
        font-size:31px!important;
        line-height:1.3!important;
    }

    body.woocommerce-shop .jr-shop-custom-cta__content p{
        font-size:13px!important;
        line-height:1.75!important;
    }
}

@media (max-width:390px){
    body.woocommerce-shop .jr-shop-container{
        width:calc(100% - 18px)!important;
    }

    body.woocommerce-shop .jr-shop-grid{
        gap:9px!important;
    }

    body.woocommerce-shop .jr-shop-product h3,
    body.woocommerce-shop .jr-shop-product h3 a{
        font-size:13.5px!important;
    }
}
