
/* Universal Store Clean Child 4.9.0 - Stability Hardening
 * Safe final layer: no global output buffering, no heavy observers, no footer deletion.
 */
:root{--usg-stable-container:min(100% - 24px, 1360px);--usg-stable-radius:18px;--usg-stable-border:rgba(15,23,42,.10);--usg-stable-soft:#f8fafc;--usg-stable-green:#16a34a;--usg-stable-red:#dc2626}
html{overflow-x:hidden}body.usg-theme{overflow-x:hidden}.usg-theme *{box-sizing:border-box}.usg-theme img,.usg-theme video,.usg-theme iframe{max-width:100%;height:auto}.usg-theme table{max-width:100%}
/* Header: full-width shell, contained content. */
@media (min-width:1025px){
 body.usg-theme .site-header,body.usg-theme .main-navigation,body.usg-theme .sticky-enabled .main-navigation{width:100%;max-width:none;margin-inline:0;border-radius:0}
 body.usg-theme .inside-header,body.usg-theme .main-navigation .inside-navigation{width:var(--usg-stable-container);max-width:1360px;margin-inline:auto;padding-inline:12px}
 body.usg-theme .main-navigation .main-nav>ul>li>a{border-radius:999px;padding-inline:14px;transition:background-color .16s ease,color .16s ease,transform .16s ease,box-shadow .16s ease}
 body.usg-theme .main-navigation .main-nav>ul>li:hover>a,body.usg-theme .main-navigation .main-nav>ul>li.current-menu-item>a,body.usg-theme .main-navigation .main-nav>ul>li.current-menu-ancestor>a{background:rgba(37,99,235,.08);box-shadow:inset 0 0 0 1px rgba(37,99,235,.10)}
 body.usg-theme .main-navigation .main-nav>ul>li>a:active{transform:scale(.98)}
}
/* Built-in theme footer stays disabled; user/GeneratePress/Elementor footer remains untouched. */
body.usg-theme .usg-footer{display:none!important}
body.usg-theme .site-footer,body.usg-theme .elementor-location-footer,body.usg-theme footer:not(.usg-footer){display:block}
/* Product page: stable non-sticky layout. */
body.usg-theme.single-product .site-content,body.usg-theme.single-product .content-area,body.usg-theme.single-product .site-main{width:100%;max-width:none;overflow:visible}
body.usg-theme.single-product div.product,body.usg-theme.single-product div.product.usg-single-product-layout{width:var(--usg-stable-container)!important;max-width:1360px!important;margin-inline:auto!important;overflow:visible!important;display:block!important;clear:both!important}
body.usg-theme.single-product .usg-single-product-hero{display:grid!important;grid-template-columns:minmax(0,.92fr) minmax(360px,1.08fr)!important;gap:clamp(20px,3vw,44px)!important;align-items:start!important;width:100%!important;max-width:100%!important;position:relative!important;overflow:visible!important;isolation:isolate}
body.usg-theme.single-product .woocommerce-product-gallery,body.usg-theme.single-product .usg-single-product-gallery,body.usg-theme.single-product .summary,body.usg-theme.single-product .entry-summary,body.usg-theme.single-product .usg-single-product-summary{min-width:0!important;max-width:100%!important;float:none!important;clear:none!important;position:static!important;top:auto!important;bottom:auto!important;inset:auto!important;transform:none!important;z-index:auto!important;height:auto!important;max-height:none!important;overflow:visible!important;contain:none!important}
body.usg-theme.single-product .summary *,body.usg-theme.single-product .entry-summary *,body.usg-theme.single-product .usg-single-product-summary *{max-width:100%;writing-mode:horizontal-tb!important;text-orientation:mixed!important;word-break:normal!important;white-space:normal}
body.usg-theme.single-product .product_meta,body.usg-theme.single-product .sku_wrapper,body.usg-theme.single-product .posted_in,body.usg-theme.single-product .tagged_as,body.usg-theme.single-product .brands,body.usg-theme.single-product .brand{display:none!important}
body.usg-theme.single-product .woocommerce-product-gallery{border:1px solid var(--usg-stable-border);border-radius:22px;background:#fff;padding:14px;box-shadow:0 10px 32px rgba(15,23,42,.06)}
body.usg-theme.single-product .woocommerce-product-gallery__wrapper{margin:0!important;max-width:100%!important;overflow:hidden;border-radius:16px;background:#fff}
body.usg-theme.single-product .woocommerce-product-gallery__image{display:flex!important;align-items:center;justify-content:center;min-height:280px;background:#fff;overflow:hidden;border-radius:16px}
body.usg-theme.single-product .woocommerce-product-gallery__image img{display:block!important;width:auto!important;max-width:100%!important;max-height:560px!important;object-fit:contain!important;margin:auto!important}
body.usg-theme.single-product .flex-control-thumbs{display:flex!important;gap:10px!important;overflow-x:auto!important;list-style:none!important;margin:12px 0 0!important;padding:4px 2px!important;scroll-snap-type:x proximity}
body.usg-theme.single-product .flex-control-thumbs li{flex:0 0 72px!important;width:72px!important;margin:0!important;scroll-snap-align:start}
body.usg-theme.single-product .flex-control-thumbs img{width:72px!important;height:72px!important;object-fit:contain!important;border:1px solid var(--usg-stable-border)!important;border-radius:12px!important;padding:4px!important;background:#fff!important;opacity:1!important;cursor:pointer!important}
body.usg-theme.single-product .flex-control-thumbs img.flex-active,body.usg-theme.single-product .flex-control-thumbs img.is-active{border-color:var(--usg-primary,#2563eb)!important;box-shadow:0 0 0 3px rgba(37,99,235,.12)!important}
/* Product form, pcb/addons and purchase row. */
body.usg-theme.single-product form.cart,body.usg-theme.single-product form.variations_form.cart{display:flex!important;flex-direction:column!important;gap:16px!important;width:100%!important;max-width:100%!important;align-items:stretch!important;overflow:visible!important;margin-top:16px!important}
body.usg-theme.single-product .pcb-master-box,body.usg-theme.single-product .wc-pao-addons-container,body.usg-theme.single-product .tm-extra-product-options,body.usg-theme.single-product .tc-extra-product-options,body.usg-theme.single-product .wapf-wrapper,body.usg-theme.single-product .pewc-product-extra-groups,body.usg-theme.single-product .product-addon,body.usg-theme.single-product .product-addons,body.usg-theme.single-product .yith-wapo-container,body.usg-theme.single-product table.variations,body.usg-theme.single-product .variations{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;float:none!important;clear:both!important;position:relative!important;overflow:visible!important;writing-mode:horizontal-tb!important;text-orientation:mixed!important;white-space:normal!important;word-break:normal!important;order:20!important}
body.usg-theme.single-product .pcb-master-box{background:#fff!important;border:1px solid var(--usg-stable-border)!important;border-radius:18px!important;padding:16px!important;margin:0!important;box-shadow:0 8px 26px rgba(15,23,42,.06)!important}
body.usg-theme.single-product .pcb-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;gap:12px!important;width:100%!important}
body.usg-theme.single-product .pcb-card{min-width:0!important;width:100%!important;min-height:118px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important}
body.usg-theme.single-product .pcb-addon-item{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important;width:100%!important;min-width:0!important}
body.usg-theme.single-product .pcb-addon-info,body.usg-theme.single-product .pcb-addon-text,body.usg-theme.single-product .pcb-addon-title{min-width:0!important;max-width:100%!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important;writing-mode:horizontal-tb!important}
body.usg-theme.single-product .pcb-total-bar{order:70!important;display:flex!important;width:100%!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;flex-wrap:wrap!important}
body.usg-theme.single-product p.price,body.usg-theme.single-product .summary>.price,body.usg-theme.single-product .woocommerce-variation-price{order:80!important;width:100%!important;display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important;margin:10px 0 0!important;padding:14px 16px!important;border-radius:18px!important;background:#f0fdf4!important;border:1px solid rgba(22,163,74,.24)!important;color:var(--usg-stable-green)!important;font-weight:800!important}
body.usg-theme.single-product p.price del,body.usg-theme.single-product .price del{color:var(--usg-stable-red)!important;opacity:1!important;text-decoration-color:var(--usg-stable-red)!important}body.usg-theme.single-product p.price ins,body.usg-theme.single-product .price ins{color:var(--usg-stable-green)!important;text-decoration:none!important}
body.usg-theme.single-product .woocommerce-variation-add-to-cart,body.usg-theme.single-product form.cart:not(.variations_form){order:90!important}
body.usg-theme.single-product .woocommerce-variation-add-to-cart-enabled,body.usg-theme.single-product form.cart .usg-purchase-actions-row{display:flex!important;align-items:stretch!important;gap:12px!important;width:100%!important}
body.usg-theme.single-product form.cart .quantity{flex:0 0 124px!important;width:124px!important;min-width:124px!important;max-width:124px!important;height:56px!important;display:flex!important;align-items:center!important;margin:0!important;float:none!important}
body.usg-theme.single-product form.cart .quantity .qty{width:100%!important;height:56px!important;text-align:center!important;border-radius:16px!important;border:1px solid var(--usg-stable-border)!important;background:#fff!important;font-size:18px!important;font-weight:800!important;line-height:56px!important}
body.usg-theme.single-product form.cart .single_add_to_cart_button{flex:1 1 auto!important;min-width:0!important;width:auto!important;height:56px!important;min-height:56px!important;margin:0!important;border-radius:16px!important;font-weight:900!important;font-size:16px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
/* Trust cards above tabs. */
body.usg-theme.single-product .usg-product-trust-row{width:100%!important;margin:28px 0 18px!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;clear:both!important}
body.usg-theme.single-product .usg-product-trust-card{display:flex!important;align-items:center!important;gap:12px!important;padding:16px!important;border:1px solid var(--usg-stable-border)!important;border-radius:18px!important;background:#fff!important;box-shadow:0 8px 24px rgba(15,23,42,.05)!important}.usg-product-trust-card svg{width:28px;height:28px;fill:var(--usg-primary,#2563eb)}
body.usg-theme.single-product .woocommerce-tabs,body.usg-theme.single-product .related.products,body.usg-theme.single-product .upsells.products{width:100%!important;max-width:100%!important;clear:both!important;float:none!important;position:relative!important;z-index:0!important;margin-top:20px!important}
/* Checkout stable two-column classic layout. */
body.usg-theme.woocommerce-checkout form.checkout{width:var(--usg-stable-container)!important;max-width:1180px!important;margin-inline:auto!important;display:grid!important;grid-template-columns:minmax(0,1.15fr) minmax(340px,.85fr)!important;gap:24px!important;align-items:start!important;overflow:visible!important}
body.usg-theme.woocommerce-checkout #customer_details,body.usg-theme.woocommerce-checkout #order_review,body.usg-theme.woocommerce-checkout #order_review_heading{min-width:0!important;width:100%!important;max-width:100%!important}.woocommerce-checkout-review-order{background:#fff;border:1px solid var(--usg-stable-border);border-radius:20px;padding:18px;box-shadow:0 8px 24px rgba(15,23,42,.05)}
/* Mobile. */
@media(max-width:960px){body.usg-theme.single-product .usg-single-product-hero{display:block!important;width:100%!important}body.usg-theme.single-product div.product,body.usg-theme.single-product div.product.usg-single-product-layout{width:min(100% - 16px, 760px)!important}body.usg-theme.single-product .woocommerce-product-gallery{padding:10px!important;margin-bottom:16px!important}body.usg-theme.single-product .woocommerce-product-gallery__image{min-height:220px!important}body.usg-theme.single-product .woocommerce-product-gallery__image img{max-height:360px!important}body.usg-theme.single-product .usg-product-trust-row{grid-template-columns:1fr!important}body.usg-theme.woocommerce-checkout form.checkout{display:block!important;width:min(100% - 16px, 720px)!important}body.usg-theme.woocommerce-checkout #order_review{margin-top:18px!important}body.usg-theme .usg-bottom-nav{display:flex!important;visibility:visible!important;opacity:1!important;transform:none!important}}
@media(max-width:560px){body.usg-theme.single-product .pcb-grid{grid-template-columns:1fr!important}body.usg-theme.single-product .pcb-addon-item{grid-template-columns:1fr!important}body.usg-theme.single-product .woocommerce-variation-add-to-cart-enabled,body.usg-theme.single-product form.cart .usg-purchase-actions-row{gap:8px!important}body.usg-theme.single-product form.cart .quantity{flex-basis:104px!important;width:104px!important;min-width:104px!important;max-width:104px!important}body.usg-theme.single-product form.cart .single_add_to_cart_button{font-size:14px!important}}
@media(prefers-reduced-motion:reduce){body.usg-theme *{transition:none!important;animation:none!important}}
