/* Weby v2.5 — opt-in per-family WooCommerce single product layout */
.woocommerce div.product .weby-product-layout,
.woocommerce-page div.product .weby-product-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"gallery summary";align-items:start;gap:clamp(20px,3vw,55px);width:100%;max-width:100%;margin-block:18px 32px;clear:both}
.woocommerce div.product .weby-product-layout::before,.woocommerce div.product .weby-product-layout::after{display:none!important}
.woocommerce div.product .weby-product-layout>.woocommerce-product-gallery,
.woocommerce-page div.product .weby-product-layout>.woocommerce-product-gallery{grid-area:gallery;float:none!important;width:100%!important;max-width:100%;margin:0!important;min-width:0}
.woocommerce div.product .weby-product-layout>.summary,
.woocommerce-page div.product .weby-product-layout>.summary{grid-area:summary;float:none!important;width:100%!important;max-width:100%;min-width:0;margin:0!important;padding:0!important}
.woocommerce div.product .weby-product-layout--gallery-right{grid-template-areas:"summary gallery"}
.woocommerce div.product .weby-product-layout--stacked{grid-template-columns:minmax(0,1fr);grid-template-areas:"gallery" "summary";max-width:min(100%,980px);margin-inline:auto}
.woocommerce div.product .weby-product-layout--stacked>.woocommerce-product-gallery{max-width:820px;margin-inline:auto!important}
.woocommerce div.product .weby-product-layout--wide{grid-template-columns:minmax(0,62fr) minmax(0,38fr)}
.woocommerce div.product .weby-product-layout--compact{grid-template-columns:minmax(0,40fr) minmax(0,60fr)}
/* Keep Woo forms & the optional fast checkout plugin inside the summary column. */
.weby-product-layout>.summary form,.weby-product-layout>.summary input,.weby-product-layout>.summary select,.weby-product-layout>.summary textarea{max-width:100%;box-sizing:border-box}
.weby-product-layout>.summary .woocommerce-product-details__short-description{overflow-wrap:anywhere}
.weby-product-layout>.summary .single_add_to_cart_button{white-space:normal}
.weby-product-layout .woocommerce-product-gallery img{width:100%;height:auto;object-fit:contain}
@media(max-width:767px){
 .woocommerce div.product .weby-product-layout,.woocommerce-page div.product .weby-product-layout,
 .woocommerce div.product .weby-product-layout--gallery-right,.woocommerce div.product .weby-product-layout--wide,.woocommerce div.product .weby-product-layout--compact{grid-template-columns:minmax(0,1fr);grid-template-areas:"gallery" "summary";gap:22px;margin-block:12px 24px}
 .woocommerce div.product .weby-product-layout>.summary{padding:0!important}
 .weby-product-layout>.summary form.cart{max-width:100%}
}

/* Floating header opt-in, scoped to home; fixed is the default. */
@media(min-width:851px){body.home.weby-universal-floating .wa-site-header,body.home.weby-universal-floating .wv-header{position:sticky;top:10px;margin:8px auto 0;width:calc(100% - 28px);max-width:1480px;border-radius:14px;box-shadow:0 12px 35px rgba(15,23,42,.12);overflow:visible}body.home.admin-bar.weby-universal-floating .wa-site-header,body.home.admin-bar.weby-universal-floating .wv-header{top:42px}}
@media(max-width:782px){body.admin-bar.wv-site .wv-header{top:46px}}
