/* v0.1.2 pilot: scoped to redesigned product only. Astra and WooCommerce forms retained. */
body.sspp-redesign-enabled {--sspp-accent:var(--ast-global-color-1,#33cc33);--sspp-dark:#4a4540}
body.sspp-redesign-enabled.single-product #primary{width:100%!important;max-width:100%!important;float:none!important;padding:0!important;margin:0 auto!important;border:0!important}
body.sspp-redesign-enabled.single-product #secondary{display:none!important}
body.sspp-redesign-enabled.single-product .site-content>.ast-container{display:block!important;max-width:1340px!important;padding-left:22px!important;padding-right:22px!important}
body.sspp-redesign-enabled.single-product .woocommerce-notices-wrapper{max-width:1250px;margin:auto}
body.sspp-redesign-enabled.single-product .sspp-product{box-sizing:border-box;max-width:1260px;margin:0 auto 50px;padding:5px 0 35px;color:#252525;clear:both}
.sspp-product *{box-sizing:border-box}
.sspp-product .sspp-breadcrumb{font-size:12px;line-height:1.5;margin:0 0 22px;color:#777}
.sspp-product .sspp-breadcrumb .woocommerce-breadcrumb{padding:0;margin:0;font-size:inherit}
.sspp-product .sspp-top{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr);gap:34px;align-items:start}
.sspp-product .sspp-gallery,.sspp-product .sspp-details{min-width:0}
.sspp-product .sspp-gallery{background:#fff;border:1px solid #e5e9e5;border-radius:12px;padding:18px;box-shadow:0 5px 24px rgba(0,0,0,.025)}
.sspp-product .sspp-gallery .woocommerce-product-gallery{width:100%!important;float:none!important;margin:0!important}
.sspp-product .sspp-gallery .woocommerce-product-gallery__wrapper{border-radius:7px;overflow:hidden;background:#fff}
.sspp-product .sspp-gallery .flex-control-thumbs{margin-top:16px!important;display:flex;flex-wrap:wrap;gap:10px}
.sspp-product .sspp-gallery .flex-control-thumbs li{border:1px solid #e4e7e4;border-radius:7px;overflow:hidden;float:none!important;width:calc(25% - 8px)!important}
.sspp-product .sspp-gallery .flex-control-thumbs li img.flex-active{outline:2px solid var(--sspp-accent);outline-offset:-2px}
.sspp-product .sspp-service-label{background:#f1faf1;color:#267b26;border:1px solid #d5edd5;font-size:13px;font-weight:600;line-height:1.5;padding:12px 15px;border-radius:7px;margin:0 0 19px}
.sspp-product .sspp-service-label span{font-size:15px;margin-right:6px}
.sspp-product .sspp-details .summary{float:none!important;width:100%!important;margin:0!important;padding:0!important;display:flex;flex-direction:column;align-items:stretch;gap:0}
.sspp-product h1.product_title,.sspp-product h1.entry-title{font-family:'Barlow Semi Condensed',sans-serif;font-size:clamp(29px,3.1vw,41px)!important;line-height:1.12!important;font-weight:700!important;letter-spacing:-.02em;color:#252525!important;background:none!important;padding:0!important;border:0!important;margin:0 0 12px!important;text-align:left!important}
.sspp-product .summary>.price,.sspp-product .summary p.price{font-size:30px!important;font-weight:700!important;line-height:1.2;color:var(--sspp-accent)!important;margin:4px 0 12px!important;order:initial}
.sspp-product .summary .product_meta{font-size:13px;color:#666;margin:8px 0 12px!important;border:0;background:none;padding:0}
.sspp-product .summary .woocommerce-product-details__short-description{font-size:15px;line-height:1.65;color:#4c4c4c;margin:6px 0 12px}
.sspp-product .summary .stock{font-size:14px}
.sspp-product .sspp-details form.cart{background:#fff;border:1px solid #dfe5df;border-radius:10px;padding:22px!important;margin:16px 0 14px!important;box-shadow:0 5px 20px rgba(0,0,0,.035);overflow:visible}
.sspp-product .summary form.cart table.variations,.sspp-product .summary form.cart .variations{width:100%!important;margin-bottom:12px!important}
.sspp-product .summary form.cart .variations td,.sspp-product .summary form.cart .variations th{padding:8px 4px 8px 0!important;vertical-align:middle}
.sspp-product .summary form.cart select{min-height:42px!important;border-radius:5px!important;border:1px solid #cbd3cb!important;background:#fff!important;color:#333!important}
.sspp-product .summary form.cart .quantity{margin-bottom:12px!important}
.sspp-product .summary form.cart .single_add_to_cart_button{background:var(--sspp-accent)!important;color:#fff!important;min-height:47px;border-radius:6px!important;padding:12px 25px!important;font-weight:700!important;font-size:15px!important}
.sspp-product .summary form.cart .single_add_to_cart_button:hover{background:#269b26!important}
.sspp-product .sspp-reassurance{display:flex;flex-wrap:wrap;gap:10px 18px;border:1px solid #e5e5e5;border-radius:8px;background:#f8f9f8;padding:14px 15px;font-size:12px;font-weight:600;color:#555}
.sspp-product .sspp-reassurance span{white-space:normal}
.sspp-product .sspp-information{clear:both;margin-top:45px;padding-top:20px;border-top:1px solid #e3e3e3}
.sspp-product .woocommerce-tabs ul.tabs{display:flex!important;flex-wrap:wrap;gap:24px;border-bottom:1px solid #ddd!important;padding:0!important;margin:0 0 23px!important;list-style:none}
.sspp-product .woocommerce-tabs ul.tabs:before,.sspp-product .woocommerce-tabs ul.tabs li:before,.sspp-product .woocommerce-tabs ul.tabs li:after{display:none!important}
.sspp-product .woocommerce-tabs ul.tabs li{border:none!important;background:transparent!important;margin:0!important;padding:0 2px 11px!important;border-radius:0!important}
.sspp-product .woocommerce-tabs ul.tabs li a{color:#444!important;font-size:14px;font-weight:600}
.sspp-product .woocommerce-tabs ul.tabs li.active{border-bottom:3px solid var(--sspp-accent)!important}
.sspp-product .woocommerce-tabs ul.tabs li.active a{color:#252525!important}
.sspp-product .woocommerce-tabs .panel{max-width:100%;font-size:15px;line-height:1.72}
.sspp-product .woocommerce-tabs h2,.sspp-product .related>h2,.sspp-product .upsells>h2{color:#242424!important;font-size:25px!important;margin:25px 0 17px!important}
.sspp-product .related.products,.sspp-product .upsells.products{margin-top:36px}
.sspp-product .related.products ul.products li.product,.sspp-product .upsells.products ul.products li.product{background:#fff;border:1px solid #e6e6e6;border-radius:8px;padding:12px!important}
.sspp-colour-wrap{clear:both;margin:12px 0 16px}.sspp-colour-wrap label{display:block;font-weight:600;margin-bottom:5px}.sspp-colour-wrap select{width:100%;min-height:42px;border:1px solid #ccc;border-radius:4px}.sspp-colour-note{font-size:13px;color:#666;margin:6px 0!important}.sspp-availability{background:#eef9ee;border-left:3px solid var(--sspp-accent,#33cc33);padding:10px 13px;margin:12px 0;display:flex;flex-direction:column;gap:4px;font-size:14px}
@media(max-width:921px){.sspp-product .sspp-top{grid-template-columns:1fr;gap:22px}.sspp-product .sspp-gallery{max-width:700px;width:100%;margin:0 auto}.sspp-product .sspp-details{max-width:700px;width:100%;margin:0 auto}body.sspp-redesign-enabled.single-product .site-content>.ast-container{padding:0 16px!important}}
@media(max-width:544px){.sspp-product h1.product_title{font-size:30px!important}.sspp-product .sspp-gallery{padding:8px}.sspp-product .sspp-details form.cart{padding:15px!important}.sspp-product .sspp-information{margin-top:24px}.sspp-product .sspp-top{gap:20px}.sspp-product .sspp-reassurance{font-size:11px}}

/* v0.1.2 refinement: layout rules deliberately scoped to the opt-in product template. */
body.sspp-redesign-enabled .sspp-product .sspp-top{gap:clamp(24px,3vw,44px)}
body.sspp-redesign-enabled .sspp-product .sspp-breadcrumb{margin-bottom:18px}
body.sspp-redesign-enabled .sspp-product .sspp-details .summary{gap:0}
body.sspp-redesign-enabled .sspp-product .summary form.cart{margin:14px 0 12px!important;padding:18px!important;box-shadow:0 2px 12px rgba(0,0,0,.025)}
body.sspp-redesign-enabled .sspp-product form.cart :is(.yith-wapo-block,.yith-wapo-addon,.yith-wapo-option,.yith-wapo-option-value){max-width:100%}
body.sspp-redesign-enabled .sspp-product #wapo-total-price-table{margin:10px 0 16px!important;width:100%;box-sizing:border-box;background:#f6f7f6!important;border:1px solid #e2e6e2!important;border-radius:6px!important}
body.sspp-redesign-enabled .sspp-product #wapo-total-price-table :is(td,th){font-size:13px!important;line-height:1.45!important;padding:6px 8px!important}
body.sspp-redesign-enabled .sspp-product form.cart .quantity{float:none!important;display:inline-flex;align-items:center;vertical-align:middle;margin:0 0 12px!important}
body.sspp-redesign-enabled .sspp-product form.cart button.single_add_to_cart_button{display:block;float:none!important;width:100%!important;margin:0!important}
body.sspp-redesign-enabled .sspp-product .sspp-reassurance{font-size:12px;padding:11px 14px;gap:7px 14px;background:#fff}
body.sspp-redesign-enabled .sspp-product .sspp-information{padding-top:26px;margin-top:40px}
body.sspp-redesign-enabled .sspp-product .woocommerce-tabs .panel{font-size:15px;max-width:100%;line-height:1.75}
body.sspp-redesign-enabled .sspp-product .woocommerce-tabs .panel :is(p,ul,ol){max-width:90ch}
body.sspp-redesign-enabled .sspp-product .woocommerce-tabs .panel ul{padding-left:24px;margin-bottom:18px}
body.sspp-redesign-enabled .sspp-product .woocommerce-tabs .panel :is(h2,h3,h4){margin-top:24px!important;margin-bottom:12px!important;line-height:1.25}
body.sspp-redesign-enabled .sspp-product .sspp-extra-tab{background:#fff;border:1px solid #e4e8e4;border-radius:8px;padding:18px 22px}
body.sspp-redesign-enabled .sspp-product .related.products ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
body.sspp-redesign-enabled .sspp-product .related.products ul.products::before,body.sspp-redesign-enabled .sspp-product .related.products ul.products::after{display:none!important}
body.sspp-redesign-enabled .sspp-product .related.products ul.products li.product{float:none!important;width:auto!important;margin:0!important;display:flex;flex-direction:column;align-items:stretch;min-width:0}
body.sspp-redesign-enabled .sspp-product .related.products ul.products li.product img{object-fit:contain;aspect-ratio:1/1;width:100%;height:auto}
body.sspp-redesign-enabled .sspp-product .related.products ul.products li.product .button{margin-top:auto!important}
@media(max-width:921px){body.sspp-redesign-enabled .sspp-product .related.products ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:544px){body.sspp-redesign-enabled .sspp-product .summary form.cart{padding:14px!important}body.sspp-redesign-enabled .sspp-product .woocommerce-tabs ul.tabs{gap:10px 16px}body.sspp-redesign-enabled .sspp-product .related.products ul.products{gap:9px}body.sspp-redesign-enabled .sspp-product .related.products ul.products li.product{padding:9px!important}body.sspp-redesign-enabled .sspp-product .sspp-reassurance{flex-direction:column;align-items:flex-start}}


/* v0.1.3: conversion-first arrangement; all rules confined to the active product template. */
body.sspp-redesign-enabled .sspp-product.sspp-v013 .sspp-breadcrumb{clear:both;display:block;width:100%;margin:6px 0 15px!important;padding:0!important;position:relative;z-index:1}
body.sspp-redesign-enabled .sspp-product.sspp-v013 .sspp-top{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(22px,2.7vw,36px);align-items:start}
body.sspp-redesign-enabled .sspp-product.sspp-v013 .sspp-gallery{padding:12px;border-radius:10px}
body.sspp-redesign-enabled .sspp-product.sspp-v013 .woocommerce-product-gallery__image img{max-height:320px!important;max-width:100%!important;width:auto!important;height:auto!important;object-fit:contain;display:block;margin-left:auto!important;margin-right:auto!important}
body.sspp-redesign-enabled .sspp-product.sspp-v013 .flex-control-thumbs{margin-top:10px!important}
body.sspp-redesign-enabled .sspp-product.sspp-v013 h1.product_title{font-size:clamp(28px,2.6vw,35px)!important;line-height:1.13!important;margin-bottom:7px!important}
body.sspp-redesign-enabled .sspp-product.sspp-v013 .summary p.price{margin:3px 0 8px!important;font-size:28px!important}
body.sspp-redesign-enabled .sspp-product.sspp-v013 .summary .product_meta{margin:2px 0 7px!important;padding:0!important;border:0!important}
body.sspp-redesign-enabled .sspp-product.sspp-v013 .summary form.cart{margin:8px 0 12px!important;padding:15px!important}
body.sspp-redesign-enabled .sspp-product.sspp-v013 .summary form.cart .quantity{margin:0 0 8px!important}
body.sspp-redesign-enabled .sspp-product.sspp-v013 .summary form.cart button.single_add_to_cart_button{min-height:44px!important}
body.sspp-redesign-enabled .sspp-product.sspp-v013 .summary .woocommerce-product-details__short-description{margin:10px 0 13px!important;background:none!important;padding:0!important}
body.sspp-redesign-enabled .sspp-product.sspp-v013 .sspp-information{margin-top:28px;padding-top:18px}
body.sspp-redesign-enabled .sspp-product.sspp-v013 .summary .sspp-availability{margin:8px 0}
/* Existing file links and PDF widgets are preserved; reduce their visual footprint where possible. */
body.sspp-redesign-enabled .sspp-product.sspp-v013 .summary .sspp-reassurance{margin-top:6px}
@media(max-width:921px){body.sspp-redesign-enabled .sspp-product.sspp-v013 .sspp-top{grid-template-columns:1fr;gap:18px}body.sspp-redesign-enabled .sspp-product.sspp-v013 .woocommerce-product-gallery__image img{max-height:300px!important}}
@media(max-width:544px){body.sspp-redesign-enabled .sspp-product.sspp-v013 .sspp-gallery{padding:8px}body.sspp-redesign-enabled .sspp-product.sspp-v013 .woocommerce-product-gallery__image img{max-height:260px!important}body.sspp-redesign-enabled .sspp-product.sspp-v013 .summary form.cart{padding:12px!important}body.sspp-redesign-enabled .sspp-product.sspp-v013 h1.product_title{font-size:28px!important}}

/* v0.1.4: Smaller centred images; thumbnail grid remains usable without cropping. */
body.sspp-redesign-enabled .sspp-product.sspp-v013 .sspp-gallery .flex-control-thumbs li{width:calc(20% - 8px)!important;max-width:86px}
