/* Single product: "where to buy" block */
.lb-wtb{margin:20px 0;padding:18px;background:var(--lb-surface);border:1px solid var(--lb-border);border-radius:var(--lb-radius)}
.lb-wtb__title{color:var(--lb-title);margin:0 0 12px;font-size:1.15rem;font-family:var(--lb-font-head);font-weight:700;font-stretch:100%;text-transform:none;letter-spacing:0;}
.lb-wtb__offers{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.lb-wtb__offer{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;padding:12px;background:#fff;border:1px solid var(--lb-border);border-radius:12px}
.lb-wtb__merchant{font-weight:700;flex:1 1 auto}
.lb-wtb__price{font-weight:700;font-size:1.2rem}
.lb-wtb__price del{opacity:.5;font-weight:400;font-size:.9em}
.lb-wtb__price ins{text-decoration:none}
.lb-wtb .lb-cta{flex:1 1 100%;padding:16px 22px;font-size:1.05rem;margin-top:0}
@media (min-width:600px){.lb-wtb .lb-cta{flex:0 0 auto}}
/* Gallery thumbnails: the list is built by flexslider after load, so perfmatters' used CSS never contains WooCommerce's rules for it */
.woocommerce div.product div.images .flex-control-thumbs{list-style:none;margin:10px 0 0;padding:0;display:grid;grid-template-columns:repeat(5,1fr);gap:8px;overflow:visible}
.woocommerce div.product div.images .flex-control-thumbs li{float:none;width:auto;margin:0;list-style:none}
.woocommerce div.product div.images .flex-control-thumbs li img{display:block;width:100%;height:auto;border:1px solid var(--lb-border);border-radius:8px;opacity:.6;cursor:pointer}
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active,.woocommerce div.product div.images .flex-control-thumbs li img:hover{opacity:1}
/* Mattoncini (it) "V2" product template (woocommerce/content-single-product-v2.php) */
.lb-v2{margin:0 0 32px}
.lb-v2__top{display:grid;grid-template-columns:1fr;gap:24px;align-items:start}
@media (min-width:900px){.lb-v2__top{grid-template-columns:minmax(300px,440px) minmax(0,1fr);gap:36px}}
.lb-v2__main{display:block;background:#fff;border:1px solid var(--lb-border);border-radius:var(--lb-radius);padding:14px;cursor:zoom-in}
.lb-v2__main img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:contain;border-radius:10px}
.lb-v2__thumbs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:10px}
.lb-v2__thumb{display:block;padding:4px;margin:0;background:#fff;border:1px solid var(--lb-border);border-radius:10px;cursor:pointer;opacity:.65;line-height:0}
.lb-v2__thumb.is-active,.lb-v2__thumb:hover,.lb-v2__thumb:focus-visible{opacity:1;border-color:var(--lb-yellow);background:#fff}
.lb-v2__thumb img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:contain;border-radius:6px}
.lb-v2__title{font-family:var(--lb-font-display);font-weight:900;font-stretch:115%;letter-spacing:-.01em;font-size:clamp(1.5rem,1.1rem + 1.8vw,2.2rem);line-height:1.1;color:var(--lb-title);margin:0 0 14px}
.lb-v2__intro{font-size:1.05rem;line-height:1.65;margin:0 0 6px}
.lb-wtb__price-label{display:block;font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;opacity:.7}
.lb-v2__specs{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr;gap:0;border:1px solid var(--lb-border);border-radius:var(--lb-radius);background:#fff;overflow:hidden}
.lb-v2__spec{display:grid;grid-template-columns:minmax(120px,40%) 1fr;gap:12px;padding:10px 14px;margin:0;border-top:1px solid var(--lb-border)}
.lb-v2__spec:first-child{border-top:0}
.lb-v2__spec-label{font-weight:700;color:var(--lb-title)}
.lb-v2__section{margin-top:24px;padding:20px 22px;background:var(--lb-surface);border:1px solid var(--lb-border);border-radius:var(--lb-radius);line-height:1.7}
.lb-v2__section h2{font-family:var(--lb-font-head);font-weight:800;font-stretch:110%;text-transform:none;letter-spacing:0;font-size:1.3rem;line-height:1.25;color:var(--lb-title);margin:0 0 10px}
.lb-v2__copy>:last-child{margin-bottom:0}
.lb-v2__related{margin-top:36px}
/* Mattoncini (it) related products (woocommerce/it/single-product/related.php) */
.lb-related .lb-related__media{display:block;color:inherit;text-decoration:none}
.lb-related .lb-related__media img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:contain;background:#fff}
.lb-related li.product .lb-cta{margin-top:auto}
/* Mattoncini (it) mobile sticky merchant bar (inc/compat.php) */
.lb-sticky-cta{display:none}
@media (max-width:1024px){
	body.single-product:has(.lb-sticky-cta){padding-bottom:84px}
	.lb-sticky-cta{display:block;position:fixed;left:0;right:0;bottom:0;z-index:9999;padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:rgba(255,255,255,.96);box-shadow:0 -6px 20px rgba(0,0,0,.08);border-top:1px solid var(--lb-border)}
	.lb-sticky-cta .lb-sticky-cta__btn{display:flex;width:100%;box-sizing:border-box;margin:0}
}
/* Headings inside the product short description and description tabs: compact like category content headings
   (Astra/customizer made "Details von set …" a huge uppercase h2 right under the H1) */
body .woocommerce-product-details__short-description :is(h1,h2,h3,h4,h5,h6),body .woocommerce-Tabs-panel :is(h1,h2,h3,h4,h5,h6),body .woocommerce-tabs .panel :is(h1,h2,h3,h4,h5,h6){font-family:var(--lb-font-head);font-weight:800;font-stretch:110%;text-transform:none;letter-spacing:0;font-size:1.25rem;line-height:1.25;color:var(--lb-title);margin:1.2em 0 .5em}
body .woocommerce-product-details__short-description>:first-child,body .woocommerce-Tabs-panel>:first-child{margin-top:0}
.lb-bi{clear:both;margin:28px 0;padding:18px;background:var(--lb-surface);border:1px solid var(--lb-border);border-radius:var(--lb-radius)}
.lb-bi__title{color:var(--lb-title);margin:0 0 12px;font-size:1.15rem;font-family:var(--lb-font-head);font-weight:700;font-stretch:100%;text-transform:none;letter-spacing:0}
.lb-bi__title span{color:var(--lb-red-ink)}
.lb-bi__card{display:flex;align-items:center;gap:14px;padding:14px 16px;background:#fff;border:1px solid var(--lb-border);border-radius:12px;color:inherit;text-decoration:none;transition:border-color .15s,box-shadow .15s}
.lb-bi__card:hover,.lb-bi__card:focus-visible{border-color:var(--lb-red-ink);box-shadow:0 2px 10px rgba(0,0,0,.06)}
.lb-bi__icon{flex:none;display:grid;place-items:center;width:48px;height:48px;border-radius:10px;background:var(--lb-red-ink);color:#fff}
.lb-bi__body{display:grid;gap:2px}
.lb-bi__text{font-size:.95rem}
.lb-bi__link{font-weight:700;color:var(--lb-red-ink)}
/* Single product layout "LEGO.com" (ported 18/11 from brique-ludique-fiche.php, fr): compact title, 1240 px page,
   gallery 58 % / summary 38 % on desktop, fixed 4:3 white photo frame (no height jump between photos; flexslider
   smoothHeight off in inc/woocommerce.php), thumbnails in a 72 px column on the left, below the photo on mobile.
   Long galleries (it/cz: up to 40 photos): the thumbnail column scrolls inside the frame height instead of growing. */
body.single-product h1.product_title{font-size:clamp(1.35rem,1.05rem + 1vw,1.85rem);text-transform:none;font-stretch:100%;line-height:1.18;margin-bottom:.5em}
body.single-product .site-content>.ast-container{max-width:1240px}
body.single-product #primary{margin-top:20px}
body.single-product .ast-woocommerce-container{padding:12px 0 0}
body.single-product .woocommerce-product-gallery .flex-viewport{height:auto!important}
body.single-product .woocommerce-product-gallery__image>a{display:flex;align-items:center;justify-content:center;aspect-ratio:4/3;background:#fff;overflow:hidden}
body.single-product .woocommerce-product-gallery__image>a img{width:100%!important;height:100%!important;object-fit:contain}
body.single-product .woocommerce-product-gallery .flex-control-thumbs li img{aspect-ratio:1/1;object-fit:contain;background:#fff;border:1px solid rgba(0,0,0,.1);border-radius:6px}
@media (min-width:922px){
	body.single-product div.product div.images.woocommerce-product-gallery{width:58%!important}
	body.single-product div.product div.summary{width:38%!important}
	body.single-product .woocommerce-product-gallery:has(.flex-control-thumbs){display:grid!important;grid-template-columns:72px minmax(0,1fr);gap:14px;align-items:start}
	body.single-product .woocommerce-product-gallery:has(.flex-control-thumbs) .flex-viewport{grid-column:2;grid-row:1}
	body.single-product .woocommerce-product-gallery .flex-control-thumbs{grid-column:1;grid-row:1;align-self:stretch;height:0!important;min-height:100%;overflow-x:hidden!important;overflow-y:auto!important;scrollbar-width:thin;display:flex!important;flex-direction:column;gap:10px;margin:0!important;padding:0}
	body.single-product .woocommerce-product-gallery .flex-control-thumbs li{width:100%!important;float:none!important;margin:0!important;clear:none!important;flex:none}
	body.single-product .woocommerce-product-gallery .flex-control-thumbs li img{display:block;width:72px!important;height:72px!important;max-width:none;box-sizing:border-box}
}
/* Same layout for the it "V2" template (own markup: .lb-v2__main link + .lb-v2__thumbs buttons) */
body.single-product .lb-v2__title{font-size:clamp(1.35rem,1.05rem + 1vw,1.85rem);text-transform:none;font-stretch:100%;letter-spacing:0;line-height:1.18;margin-bottom:.5em}
.lb-v2__main{display:flex;align-items:center;justify-content:center;aspect-ratio:4/3;padding:0;border:0;border-radius:0;background:#fff;overflow:hidden}
.lb-v2__main img{width:100%;height:100%;aspect-ratio:auto;object-fit:contain;border-radius:0}
.lb-v2__thumb{border-radius:6px;border-color:rgba(0,0,0,.1)}
@media (min-width:922px){
	.lb-v2__top{grid-template-columns:58% 38%;justify-content:space-between;gap:0}
	.lb-v2__media:has(.lb-v2__thumbs){display:grid;grid-template-columns:72px minmax(0,1fr);gap:14px;align-items:start}
	.lb-v2__media:has(.lb-v2__thumbs) .lb-v2__main{grid-column:2;grid-row:1}
	.lb-v2__thumbs{grid-column:1;grid-row:1;align-self:stretch;height:0;min-height:100%;overflow-y:auto;scrollbar-width:thin;display:flex;flex-direction:column;gap:10px;margin:0}
	.lb-v2__thumb{flex:none;width:72px;height:72px;box-sizing:border-box}
	.lb-v2__thumb img{width:100%;height:100%}
}
/* Facts tiles in the right column (inc/facts.php): 1x1 brick studs in the site colours, two tiles per line,
   highlight in yellow. The theme's building instructions block (.lb-bi) goes under the photos on desktop. */
.lb-facts{list-style:none;margin:14px 0 6px;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.lb-facts li{display:grid;grid-template-columns:18px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;align-items:center;margin:0;padding:6px 11px;background:var(--lb-surface,#faf8f4);border:1px solid var(--lb-border,#eee9df);border-radius:10px;line-height:1.25}
.lb-facts li>span{margin:0;padding:0}
.lb-facts li .lb-facts__stud{grid-row:1/3;align-self:center}
.lb-facts li.lb-facts__wide,.lb-facts li.lb-facts__hl{grid-column:1/-1}
.lb-facts li.lb-facts__hl{grid-template-rows:auto;background:#fff6dc;border-color:#f6d77d;font-weight:700;color:var(--lb-title,#16205a)}
.lb-facts__stud{flex:none;position:relative;width:18px;height:13px;margin-top:5px;border-radius:3px;background:var(--lb-red,#df382f);box-shadow:inset 0 -3px 0 rgba(0,0,0,.18)}
.lb-facts__stud:after{content:"";position:absolute;left:4px;top:-5px;width:10px;height:5px;border-radius:3px 3px 0 0;background:inherit;box-shadow:inset 0 -1px 0 rgba(0,0,0,.12)}
.lb-facts li:nth-child(4n+2) .lb-facts__stud{background:var(--lb-yellow,#fcbc21)}
.lb-facts li:nth-child(4n+3) .lb-facts__stud{background:var(--lb-blue,#1f6fd0)}
.lb-facts li:nth-child(4n+4) .lb-facts__stud{background:var(--lb-green,#2b7c50)}
.lb-facts li.lb-facts__hl .lb-facts__stud{background:var(--lb-yellow,#fcbc21)}
.lb-facts__label{color:#5f6068;font-size:.8em;text-transform:uppercase;letter-spacing:.04em}
.lb-facts__value{font-weight:800;color:var(--lb-title,#16205a);font-size:1.02em}
.lb-facts__value a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.lb-v2__summary .lb-facts{margin:0 0 18px}
body .lb-facts__title.lb-facts__title{font-family:var(--lb-font-head);font-weight:800;font-stretch:100%;text-transform:none;letter-spacing:0;font-size:1.02rem;line-height:1.3;color:var(--lb-title);margin:12px 0 8px}
.lb-facts__title+.lb-facts{margin-top:0}
@media (min-width:922px){
	body.single-product div.product .lb-bi{float:left;clear:left;width:58%;box-sizing:border-box;margin-top:1.25em}
}
