/* Only opted-in native commerce content. Header, footer and unrelated pages are untouched. */
body.slh-sd #content { background:var(--sd-bg); color:var(--sd-text); }
body.slh-sd #content #main { font-size:var(--sd-font); }
body.slh-sd #content h1,body.slh-sd #content .slh-sd-module h2,body.slh-sd #content .slh-sd-module h3 { color:var(--sd-heading); }
body.slh-sd #content .summary > .price,body.slh-sd-archive :is(#main > ul.products, #main > [class*="columns-"] > ul.products) > li.product .price { color:var(--sd-accent); }
body.slh-sd #content .single_add_to_cart_button,body.slh-sd-archive :is(#main > ul.products, #main > [class*="columns-"] > ul.products) > li.product .button,
body.slh-sd-cart #content .checkout-button,body.slh-sd-checkout #content #place_order,
body.slh-sd-cart #content .wc-block-components-button,body.slh-sd-checkout #content .wc-block-components-button {
 background-color:var(--sd-accent); color:var(--sd-button-text); border-radius:var(--sd-radius);
}
body.slh-sd #content .single_add_to_cart_button:focus-visible,body.slh-sd #content .slh-sd-module summary:focus-visible { outline:2px solid var(--sd-accent);outline-offset:3px; }
body.slh-sd-archive :is(#main > ul.products, #main > [class*="columns-"] > ul.products) > li.product .woocommerce-loop-product__title { color:var(--sd-heading);line-height:1.5; }
body.slh-sd-archive #content .woocommerce-products-header,body.slh-sd-archive #content .shoptimizer-category-banner { border-radius:var(--sd-radius); }
body.slh-sd-style-soft #content .woocommerce-products-header,body.slh-sd-style-soft #content .shoptimizer-category-banner,
body.slh-sd-style-soft.slh-sd-product #content div.product > .summary,
body.slh-sd-style-soft.slh-sd-cart #content .cart_totals,body.slh-sd-style-soft.slh-sd-checkout #content #order_review { background:var(--sd-surface);padding:20px;border-radius:var(--sd-radius);box-sizing:border-box; }
body.slh-sd-style-accent #content .woocommerce-products-header,body.slh-sd-style-accent #content .shoptimizer-category-banner { border-top:4px solid var(--sd-accent);padding-top:20px; }
body.slh-sd-style-accent.slh-sd-product #content div.product > .summary,
body.slh-sd-style-accent.slh-sd-cart #content .cart_totals,body.slh-sd-style-accent.slh-sd-checkout #content #order_review { border-top:4px solid var(--sd-accent);padding-top:20px; }
body.slh-sd-style-outlined.slh-sd-archive :is(#main > ul.products, #main > [class*="columns-"] > ul.products) > li.product .woocommerce-card__header,
body.slh-sd-style-outlined.slh-sd-product #content div.product > .summary,
body.slh-sd-style-outlined.slh-sd-cart #content .cart_totals,body.slh-sd-style-outlined.slh-sd-checkout #content #order_review { border:1px solid #ddd;padding:18px;border-radius:var(--sd-radius);box-sizing:border-box; }
body.slh-sd-style-soft.slh-sd-archive :is(#main > ul.products, #main > [class*="columns-"] > ul.products) > li.product .woocommerce-card__header { background:var(--sd-surface);padding:16px;border-radius:var(--sd-radius); }
body.slh-sd #content .slh-sd-module { clear:both;margin:32px 0;padding:24px;border:1px solid #ddd;border-radius:var(--sd-radius);color:var(--sd-text);background:var(--sd-bg); }
body.slh-sd #content .slh-sd-module h2 { margin:0 0 20px;font-size:1.5em; }
body.slh-sd #content .slh-sd-module h3 { margin:0 0 12px;font-size:1.15em; }
body.slh-sd #content .slh-sd-module a { color:var(--sd-accent);text-decoration:underline; }
body.slh-sd #content .slh-sd-module p:last-child { margin-bottom:0; }
body.slh-sd #content .slh-sd-entries { display:grid;gap:20px; }
body.slh-sd #content .slh-sd-module-cards .slh-sd-entries,body.slh-sd #content .slh-sd-module-columns .slh-sd-entries { grid-template-columns:repeat(2,minmax(0,1fr)); }
body.slh-sd #content .slh-sd-module-cards .slh-sd-entry { padding:20px;background:var(--sd-surface);border-radius:var(--sd-radius); }
body.slh-sd #content .slh-sd-module details { border-bottom:1px solid #ddd;padding:12px 0; }
body.slh-sd #content .slh-sd-module summary { cursor:pointer;color:var(--sd-heading);font-weight:600; }
body.slh-sd #content .slh-sd-module details > div { margin-top:16px; }
@media(max-width:767px){body.slh-sd #content .slh-sd-module{padding:18px;}body.slh-sd #content .slh-sd-module-cards .slh-sd-entries,body.slh-sd #content .slh-sd-module-columns .slh-sd-entries{grid-template-columns:1fr;}}
/* Manual labels never replace WooCommerce sale/stock badges. */
body.slh-sd-archive #content li.product .slh-sd-featured-badge{position:absolute;top:12px;right:12px;display:inline-flex;align-items:center;z-index:2;margin:0;padding:4px 10px;border-radius:4px;background:#af263a;color:#fff;font-size:12px;font-weight:700;line-height:1.5;pointer-events:none}
body.slh-sd-archive #content li.product .slh-sd-featured-new{background:#176e52}
body.slh-sd-archive #content li.product{position:relative}

/* Shared builder modules inherit the active shop brand palette. */
body.slh-sd #content .slh-shop-component{width:100%;max-width:100%;--slh-accent:var(--sd-accent);--slh-text:var(--sd-text)}
body.slh-sd #content .slh-shop-component > section{max-width:100%;box-sizing:border-box}
body.slh-sd #content .slh-shop-component{--slh-heading:var(--sd-heading);--slh-tint:var(--sd-surface);--slh-soft:var(--sd-surface);--slh-border:#dde3eb;--slh-radius:var(--sd-radius);--slh-maxw:100%;--slh-fs:var(--sd-font)}
body.slh-sd #content .slh-component-picture{display:contents}
body.slh-sd #content .slh-sd-module-shared{padding:0;border:0;background:transparent}
