/* RC12: presentation only, no product data or template replacement. */
/* Standard WooCommerce archive cards. Preserve Divi custom modules elsewhere. */
body.post-type-archive-product ul.products.products li.product.product,
body.tax-product_cat ul.products.products li.product.product,
body.tax-product_tag ul.products.products li.product.product {
    display:flex!important; flex-direction:column; align-items:stretch; min-width:0;
}
body:is(.post-type-archive-product,.tax-product_cat,.tax-product_tag) ul.products li.product > a.woocommerce-LoopProduct-link {
    display:flex; flex-direction:column; flex:1 1 auto; min-width:0; text-decoration:none;
}
body:is(.post-type-archive-product,.tax-product_cat,.tax-product_tag) ul.products li.product :is(a.woocommerce-LoopProduct-link,.et_shop_image) > img {
    display:block; width:100%!important; height:clamp(150px,20vw,235px)!important;
    object-fit:contain; object-position:center; margin:0 auto 12px!important;
}
body:is(.post-type-archive-product,.tax-product_cat,.tax-product_tag) ul.products li.product .woocommerce-loop-product__title {
    text-wrap:pretty; min-height:2.6em; padding:0!important;
}
body:is(.post-type-archive-product,.tax-product_cat,.tax-product_tag) ul.products li.product .btn-product {
    margin-top:auto!important; min-height:44px; display:flex!important; align-items:center; justify-content:center;
    text-transform:none!important; line-height:1.4; text-decoration:none;
}
/* Legacy descriptions: the summary already sits next to the gallery. No narrow third column. */
body.single-product .woocommerce-product-details__short-description { min-width:0; overflow-wrap:anywhere; line-height:1.7; }
body.single-product .woocommerce-product-details__short-description :is(.two_third,.one_third_last) {
    width:100%!important; max-width:100%!important; float:none!important; clear:both; margin:0!important; padding:0!important; box-sizing:border-box;
}
body.single-product .woocommerce-product-details__short-description .icon-product { justify-content:flex-start!important; margin:16px 0!important; }
body.single-product .woocommerce-product-details__short-description .product-link {
    display:grid; gap:0; margin:12px 0 18px; border-top:1px solid #dedfe1; border-bottom:1px solid #dedfe1;
}
body.single-product .woocommerce-product-details__short-description .product-link a {
    display:flex; align-items:center; min-height:44px; padding:8px 0; color:#315ba5; line-height:1.45; text-decoration:underline; text-underline-offset:3px; overflow-wrap:anywhere;
}
body.single-product .woocommerce-product-details__short-description .product-link a + a { border-top:1px solid #eee; }
body.single-product .woocommerce-product-details__short-description .one_third_last { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; align-items:stretch; }
body.single-product .woocommerce-product-details__short-description .one_third_last > p { padding:0!important; margin:0!important; display:contents; }
body.single-product .woocommerce-product-details__short-description .one_third_last .btn-product {
    display:flex!important; align-items:center; justify-content:center; min-height:44px; margin:0!important; padding:10px 12px!important; line-height:1.4; text-transform:none!important; white-space:normal;
}
body.single-product .woocommerce-product-details__short-description .one_third_last > .arrow-animated { display:none!important; }
body.single-product .woocommerce-product-details__short-description a:focus-visible { outline:2px solid #315ba5; outline-offset:3px; }
/* Icons without a mapped sprite must remain readable, including when the sprite is missing. */
body.woocommerce-page .icon-product li:has(> .icon:is(.mono,.copier,.a0)),
body.single-product .icon-product li:has(> .icon:is(.mono,.copier,.a0)),
body.woocommerce-page:not(.cm-has-product-sprite) .icon-product li,
body.single-product:not(.cm-has-product-sprite) .icon-product li { width:auto!important; min-width:40px; max-width:100%; border-radius:20px!important; }
body.woocommerce-page .icon-product li > .icon:is(.mono,.copier,.a0),
body.single-product .icon-product li > .icon:is(.mono,.copier,.a0),
body.woocommerce-page:not(.cm-has-product-sprite) .icon-product li > .icon,
body.single-product:not(.cm-has-product-sprite) .icon-product li > .icon {
    display:flex!important; align-items:center; justify-content:center; padding:0 10px; box-sizing:border-box;
    text-indent:0!important; background:#f5f5f6!important; color:#333!important; font-size:12px!important; line-height:1.25!important;
    text-align:center; white-space:normal;
}
/* Preserve a readable speed chip even when legacy titles disagree; do not infer a value. */
body.woocommerce-page .icon-product li:has(> .icon.ppm),body.single-product .icon-product li:has(> .icon.ppm) { width:auto!important; min-width:40px; border-radius:20px!important; }
body.woocommerce-page .icon-product li > .icon.ppm,body.single-product .icon-product li > .icon.ppm { padding:0 8px; background:#3ab295!important; color:#222!important; font-size:12px!important; white-space:nowrap; box-sizing:border-box; }
@media(max-width:600px){
    body.single-product .woocommerce-product-details__short-description .one_third_last {grid-template-columns:1fr;}
    body:is(.post-type-archive-product,.tax-product_cat,.tax-product_tag) ul.products li.product :is(a.woocommerce-LoopProduct-link,.et_shop_image) > img {height:210px!important;}
}
body:is(.post-type-archive-product,.tax-product_cat,.tax-product_tag) ul.products li.product .cm-catalog-card-link:hover {background:#ffb84e!important;}
body:is(.post-type-archive-product,.tax-product_cat,.tax-product_tag) ul.products li.product .cm-catalog-card-link:focus-visible {outline:2px solid #315ba5;outline-offset:3px;}
/* A short product name never forces the CTA into a different row. */
body:is(.post-type-archive-product,.tax-product_cat,.tax-product_tag) ul.products li.product .woocommerce-loop-product__title {flex:1 1 auto;}

/* RC13.3: reclaim the unused native Divi sidebar space on product archives only.
   Keep the outer .container width and max-width, exactly as on the rest of the site. */
body:is(.post-type-archive-product,.tax-product_cat,.tax-product_tag):not(.et-tb-has-body) #main-content > .container::before {
    display:none!important;
}
body:is(.post-type-archive-product,.tax-product_cat,.tax-product_tag):not(.et-tb-has-body) #main-content > .container > #content-area > #left-area {
    box-sizing:border-box; width:100%!important; max-width:100%; min-width:0;
    float:none!important; padding-left:0!important; padding-right:0!important;
    margin-left:0!important; margin-right:0!important;
}
body:is(.post-type-archive-product,.tax-product_cat,.tax-product_tag):not(.et-tb-has-body) #main-content > .container > #content-area > #sidebar {
    display:none!important;
}
