/* PL #403: WooCommerce archive, category and search catalog only. */
body.woocommerce.archive ul.products,
body.woocommerce-page.archive ul.products,
body.post-type-archive-product ul.products,
body.tax-product_cat ul.products,
body.tax-product_tag ul.products,
body.search ul.products,
body .obd-main .woocommerce ul.products {
 display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
 gap:22px!important;align-items:stretch;list-style:none!important;
 margin:22px 0 36px!important;padding:0!important;clear:both;
}
body.woocommerce.archive ul.products::before,
body.woocommerce.archive ul.products::after,
body .obd-main .woocommerce ul.products::before,
body .obd-main .woocommerce ul.products::after{display:none!important;content:none!important}
body.woocommerce.archive ul.products li.product,
body.woocommerce-page.archive ul.products li.product,
body.post-type-archive-product ul.products li.product,
body.tax-product_cat ul.products li.product,
body.tax-product_tag ul.products li.product,
body.search ul.products li.product,
body .obd-main .woocommerce ul.products li.product{
 box-sizing:border-box!important;float:none!important;clear:none!important;
 width:auto!important;max-width:100%!important;min-width:0!important;
 margin:0!important;padding:16px!important;display:flex!important;
 flex-direction:column!important;align-items:stretch!important;
 border:1px solid #dce3ed;border-radius:12px;background:#fff;
}
body .obd-main .woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
body.woocommerce.archive ul.products li.product a.woocommerce-LoopProduct-link{
 display:flex!important;flex-direction:column;min-width:0;flex:1;
}
body .obd-main .woocommerce ul.products li.product img,
body.woocommerce.archive ul.products li.product img,
body.woocommerce-page.archive ul.products li.product img,
body.tax-product_cat ul.products li.product img,
body.search ul.products li.product img{
 display:block!important;width:100%!important;max-width:100%!important;
 height:220px!important;max-height:220px!important;object-fit:contain!important;
 margin:0 auto 14px!important;
}
body .obd-main .woocommerce ul.products li.product .woocommerce-loop-product__title,
body.woocommerce.archive ul.products li.product .woocommerce-loop-product__title{
 font-size:16px!important;line-height:1.4!important;overflow-wrap:anywhere;
 min-height:3em;margin:0 0 10px!important;
}
body .obd-main .woocommerce ul.products li.product .price,
body.woocommerce.archive ul.products li.product .price{margin-top:auto!important;line-height:1.5;min-height:1.5em}
body .obd-main .woocommerce ul.products li.product .button,
body.woocommerce.archive ul.products li.product .button{
 margin-top:12px!important;min-height:44px;display:flex!important;
 align-items:center;justify-content:center;text-align:center;
}
@media(max-width:900px){
 body.woocommerce.archive ul.products,body.woocommerce-page.archive ul.products,
 body.post-type-archive-product ul.products,body.tax-product_cat ul.products,
 body.tax-product_tag ul.products,body.search ul.products,
 body .obd-main .woocommerce ul.products{
 grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
}
@media(max-width:540px){
 body.woocommerce.archive ul.products,body.woocommerce-page.archive ul.products,
 body.post-type-archive-product ul.products,body.tax-product_cat ul.products,
 body.tax-product_tag ul.products,body.search ul.products,
 body .obd-main .woocommerce ul.products{
 grid-template-columns:minmax(0,1fr)!important;gap:14px!important}
 body .obd-main .woocommerce ul.products li.product img,
 body.woocommerce.archive ul.products li.product img{height:200px!important;max-height:200px!important}
}

/* PL #403 RO parity (2026-11-22): product cards on shop, categories and the
   related/upsell lists of single products follow the obdeleven.ro grid:
   4 columns desktop, 2 columns mobile, blue titles and one pair of outline pill
   CTAs (blue Add to Cart, orange Buy Now). Presentation only: links, labels,
   handlers, products and prices are unchanged. :not(#cl-pl) outranks the older
   LeBe-era mu-plugin rules without editing them. */
html body.theme-obdeleven-clean.single-product :is(section.related,section.upsells) ul.products:not(#cl-pl){
 display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
 gap:20px!important;list-style:none!important;margin:22px 0 36px!important;padding:0!important;flex-wrap:nowrap!important}
html body.theme-obdeleven-clean.single-product :is(section.related,section.upsells) ul.products:not(#cl-pl)::before,
html body.theme-obdeleven-clean.single-product :is(section.related,section.upsells) ul.products:not(#cl-pl)::after{display:none!important;content:none!important}
html body.theme-obdeleven-clean.single-product :is(section.related,section.upsells) ul.products li.product:not(#cl-pl){
 box-sizing:border-box!important;float:none!important;clear:none!important;width:auto!important;max-width:100%!important;
 min-width:0!important;margin:0!important;padding:14px!important;display:flex!important;flex-direction:column!important;
 border:1px solid #dce3ed;border-radius:14px;background:#fff}
html body.theme-obdeleven-clean.single-product :is(section.related,section.upsells) ul.products li.product:not(#cl-pl) a.woocommerce-LoopProduct-link{display:flex!important;flex-direction:column;flex:1;min-width:0}
html body.theme-obdeleven-clean.single-product :is(section.related,section.upsells) ul.products li.product:not(#cl-pl) img{
 display:block!important;width:100%!important;height:220px!important;max-height:220px!important;object-fit:contain!important;margin:0 auto 14px!important}
html body.theme-obdeleven-clean ul.products li.product:not(#cl-pl) .woocommerce-loop-product__title{
 color:#244fd4!important;font-size:16px!important;font-weight:700!important;line-height:1.2!important}
/* One CTA pair per card: the visible Cartline pair stays, the duplicate default button goes. */
html body.theme-obdeleven-clean ul.products li.product:not(#cl-pl):has(.cartline-loop-ctas,.cartline-commercial-ctas)>a.add_to_cart_button:not(.cartline-loop-add){display:none!important}
html body.theme-obdeleven-clean ul.products li.product:not(#cl-pl):not(:has(.cartline-commercial-ctas)) .cartline-loop-ctas,
html body.theme-obdeleven-clean ul.products li.product:not(#cl-pl) .cartline-commercial-ctas{
 display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:stretch!important;
 justify-content:flex-start!important;gap:8px!important;width:100%!important;margin:10px 0 0!important;padding:0!important;background:transparent!important}
html body.theme-obdeleven-clean ul.products li.product:not(#cl-pl):not(:has(.cartline-commercial-ctas)) .cartline-loop-ctas a.button,
html body.theme-obdeleven-clean ul.products li.product:not(#cl-pl) .cartline-commercial-ctas a{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 1 auto!important;
 width:auto!important;min-width:0!important;height:34px!important;min-height:34px!important;margin:0!important;padding:5px 10px!important;
 border:2px solid #2D55F8!important;border-radius:999px!important;background:#fff!important;box-shadow:none!important;
 color:#0A0A0A!important;-webkit-text-fill-color:#0A0A0A!important;font-family:inherit!important;font-size:12px!important;
 font-weight:600!important;line-height:1.15!important;letter-spacing:0!important;text-transform:none!important;text-align:center!important;
 text-decoration:none!important;white-space:normal!important;opacity:1!important;visibility:visible!important;transform:none!important}
html body.theme-obdeleven-clean ul.products li.product:not(#cl-pl):not(:has(.cartline-commercial-ctas)) .cartline-loop-ctas a.cartline-loop-buy-now,
html body.theme-obdeleven-clean ul.products li.product:not(#cl-pl) .cartline-commercial-ctas a.cartline-commercial-buy{border-color:#FF6A1A!important}
@media(hover:hover){
 html body.theme-obdeleven-clean ul.products li.product:not(#cl-pl) :is(.cartline-loop-ctas a.button,.cartline-commercial-ctas a):hover{background:rgba(45,85,248,.07)!important}
 html body.theme-obdeleven-clean ul.products li.product:not(#cl-pl) :is(.cartline-loop-ctas a.cartline-loop-buy-now,.cartline-commercial-ctas a.cartline-commercial-buy):hover{background:rgba(255,106,26,.08)!important}
}
html body.theme-obdeleven-clean ul.products li.product:not(#cl-pl) .cartline-loop-ctas .added_to_cart{display:none!important}
@media(max-width:900px){
 html body.theme-obdeleven-clean.single-product :is(section.related,section.upsells) ul.products:not(#cl-pl){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
}
/* Mobile: two cards per row like obdeleven.ro (not one). */
@media(max-width:540px){
 html body.theme-obdeleven-clean ul.products:not(#cl-pl){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 html body.theme-obdeleven-clean ul.products:not(#cl-pl) li.product{padding:8px!important}
 html body.theme-obdeleven-clean ul.products:not(#cl-pl) li.product img,
 html body.theme-obdeleven-clean.single-product :is(section.related,section.upsells) ul.products li.product:not(#cl-pl) img{height:148px!important;max-height:148px!important;margin-bottom:10px!important}
 html body.theme-obdeleven-clean ul.products:not(#cl-pl) li.product .woocommerce-loop-product__title{font-size:15px!important;min-height:0}
 html body.theme-obdeleven-clean ul.products li.product:not(#cl-pl) :is(.cartline-loop-ctas,.cartline-commercial-ctas){gap:6px!important}
 html body.theme-obdeleven-clean ul.products li.product:not(#cl-pl):not(:has(.cartline-commercial-ctas)) .cartline-loop-ctas a.button,
 html body.theme-obdeleven-clean ul.products li.product:not(#cl-pl) .cartline-commercial-ctas a{
  flex:1 1 0!important;height:42px!important;min-height:42px!important;padding:5px 2px!important;font-size:10px!important}
}
