/* GadgetTechLab v5.3.2 – definitive WooCommerce card layout and archive copy.
   Loaded last, with deliberate high specificity against historical theme layers. */
body.woocommerce .g4-woo-products ul.products,
body.woocommerce-page .g4-woo-products ul.products,
body.single-product .g4-woo-single .related ul.products,
body.single-product .g4-woo-single .upsells ul.products,
body .g4-woo-layout ul.products,
body .woocommerce ul.products {
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    grid-auto-rows:auto!important;
    align-items:stretch!important;
    gap:16px!important;
    clear:both!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
}
body.woocommerce .g4-woo-products ul.products::before,
body.woocommerce .g4-woo-products ul.products::after,
body .woocommerce ul.products::before,
body .woocommerce ul.products::after{display:none!important;content:none!important}
body.woocommerce .g4-woo-products ul.products li.product,
body.woocommerce-page .g4-woo-products ul.products li.product,
body.single-product .g4-woo-single ul.products li.product,
body .woocommerce ul.products li.product {
    position:relative!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    float:none!important;
    clear:none!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
    margin:0!important;
    padding:12px!important;
    box-sizing:border-box!important;
    border-radius:9px!important;
}
/* Never constrain the linked heading. Remove flex-expansion + scroll masks. */
body.woocommerce .g4-woo-products ul.products li.product a.woocommerce-LoopProduct-link,
body.woocommerce-page .g4-woo-products ul.products li.product a.woocommerce-LoopProduct-link,
body.single-product .g4-woo-single ul.products li.product a.woocommerce-LoopProduct-link,
body .woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
body .woocommerce ul.products li.product a.woocommerce-loop-product__link {
    display:block!important;
    flex:0 0 auto!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
    white-space:normal!important;
    text-overflow:clip!important;
    position:static!important;
}
body.woocommerce .g4-woo-products ul.products li.product h2.woocommerce-loop-product__title,
body.woocommerce-page .g4-woo-products ul.products li.product h2.woocommerce-loop-product__title,
body.single-product .g4-woo-single ul.products li.product h2.woocommerce-loop-product__title,
body .woocommerce ul.products li.product .woocommerce-loop-product__title,
body .woocommerce ul.products li.product h2.woocommerce-loop-product__title {
    position:static!important;
    display:block!important;
    flex:none!important;
    float:none!important;
    visibility:visible!important;
    opacity:1!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
    white-space:normal!important;
    text-overflow:clip!important;
    -webkit-box-orient:initial!important;
    -webkit-line-clamp:unset!important;
    line-clamp:unset!important;
    font-size:12px!important;
    line-height:1.49!important;
    font-weight:600!important;
    padding:0!important;
    margin:9px 0 11px!important;
    transform:none!important;
}
body .woocommerce ul.products li.product .price,
body .woocommerce ul.products li.product .star-rating {
    flex-shrink:0!important;
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
}
body.woocommerce .g4-woo-products ul.products li.product > a.button,
body.woocommerce-page .g4-woo-products ul.products li.product > a.button,
body.single-product .g4-woo-single ul.products li.product > a.button,
body .woocommerce ul.products li.product > a.button,
body .woocommerce ul.products li.product > a.product_type_external {
    position:static!important;
    inset:auto!important;
    transform:none!important;
    flex:0 0 auto!important;
    order:20!important;
    align-self:stretch!important;
    margin:auto 0 0!important;
    margin-top:auto!important;
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    min-height:40px!important;
    white-space:normal!important;
    line-height:1.4!important;
    padding:10px 7px!important;
    border-radius:6px!important;
}
body .gtl-product-rail .g4-product-card,
body .gtl-product-rail .g4-product-card .g4-product-details,
body .g4-product-card,
body .g4-product-details{
    min-height:0!important;max-height:none!important;height:auto!important;
    overflow:visible!important;
}
body .gtl-product-rail .g4-product-details h3,
body .g4-product-card .g4-product-details h3{
    display:block!important;white-space:normal!important;
    overflow:visible!important;min-height:0!important;max-height:none!important;height:auto!important;
    -webkit-line-clamp:unset!important;line-clamp:unset!important;
    text-overflow:clip!important;overflow-wrap:anywhere!important;
}
/* Always display professionally written archive intro when supplied. */
body .gtl-archive-intro .gtl-archive-description{display:block!important;visibility:visible!important;opacity:1!important;
    max-width:920px!important;max-height:none!important;height:auto!important;overflow:visible!important;
    font-size:13px!important;line-height:1.75!important;color:#56667c!important;margin-top:8px!important;}
body .gtl-archive-intro .gtl-archive-description p{display:block!important;visibility:visible!important;
    font-size:inherit!important;line-height:inherit!important;color:inherit!important;
    margin:0!important;max-width:none!important;}
body .gtl-archive-intro{height:auto!important;max-height:none!important;overflow:visible!important;}
@media(max-width:1050px){
 body .woocommerce ul.products,body.woocommerce .g4-woo-products ul.products,
 body.single-product .g4-woo-single .related ul.products,
 body.single-product .g4-woo-single .upsells ul.products{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:13px!important;}
}
@media(max-width:680px){
 body .woocommerce ul.products,body.woocommerce .g4-woo-products ul.products,
 body.woocommerce-page .g4-woo-products ul.products,
 body.single-product .g4-woo-single .related ul.products,
 body.single-product .g4-woo-single .upsells ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;}
 body .woocommerce ul.products li.product,body.woocommerce .g4-woo-products ul.products li.product,
 body.single-product .g4-woo-single ul.products li.product{padding:8px!important;min-width:0!important;}
 body .woocommerce ul.products li.product h2.woocommerce-loop-product__title,
 body.woocommerce .g4-woo-products ul.products li.product h2.woocommerce-loop-product__title,
 body.woocommerce-page .g4-woo-products ul.products li.product h2.woocommerce-loop-product__title,
 body.single-product .g4-woo-single ul.products li.product h2.woocommerce-loop-product__title{
   font-size:11.5px!important;line-height:1.48!important;
   height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;
   -webkit-line-clamp:unset!important;line-clamp:unset!important;
   white-space:normal!important;display:block!important;padding:0!important;
 }
 body .gtl-archive-intro .gtl-archive-description{font-size:12px!important;line-height:1.65!important;}
 body .woocommerce ul.products li.product > a.button{font-size:10.5px!important;min-height:38px!important;padding:9px 6px!important;}
}
@media(max-width:370px){body .woocommerce ul.products li.product h2.woocommerce-loop-product__title{font-size:11px!important;}}
