/* Luna Luce Product Presentation Finish - a non-destructive visual layer. */

/* One spacing rhythm around descriptions and canonical technical details.
   Keep the type size and readable line-height; remove stacked outer padding. */
html body.single-product.llpe-product-page .wp-block-woocommerce-product-details,
body.single-product .wp-block-woocommerce-product-details{margin-block:22px 0!important}
body.single-product .woocommerce-tabs{margin-block:0!important;padding-block:0!important}
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel{margin-block:0!important;padding-block:14px 10px!important}
body.single-product #tab-description>h2{margin-block:8px 14px!important}
body.single-product #tab-description>p:last-child{margin-bottom:0!important}
body.single-product .llpe-technical{margin-block:18px 0!important;padding-block:18px 20px!important}
body.single-product .llpe-technical>.llpe-section-label{margin-block:0 6px!important}
body.single-product .llpe-technical>h2{margin-block:0 16px!important}
body.single-product .llpe-technical dl{margin-block:0!important;row-gap:10px!important}
body.single-product .llpe-technical dl>div{box-sizing:border-box!important;min-height:0!important;padding-block:12px!important}
body.single-product .llpcs-choices{margin-block:20px 20px!important;padding-top:18px!important}
@media(max-width:820px){
 body.single-product main>.wp-block-columns>.wp-block-column:first-child{margin-bottom:20px!important}
 body.single-product .llpe-technical{margin-top:14px!important;padding-block:16px!important}
 body.single-product .llpe-technical>h2{margin-bottom:12px!important}
 body.single-product .llpe-technical dl>div{padding-block:10px!important}
 body.single-product .woocommerce-tabs .woocommerce-Tabs-panel{padding-block:12px 6px!important}
 body.single-product .llpcs-choices{margin-block:18px 18px!important;padding-top:16px!important}
}

/* One square display stage across catalogue and related-product cards.
   The original asset and its zoom source remain unchanged. */
body.woocommerce .wc-block-product .wc-block-components-product-image,
body.single-product .wp-block-woocommerce-product-collection[data-collection="woocommerce/product-collection/related"] .wc-block-components-product-image {
	box-sizing:border-box!important;
	aspect-ratio:1/1!important;
	height:auto!important;
	overflow:hidden!important;
	background:#24211b!important;
	border:1px solid rgba(210,179,119,.16);
}
body.woocommerce .wc-block-product .wc-block-components-product-image>a,
body.single-product .wp-block-woocommerce-product-collection[data-collection="woocommerce/product-collection/related"] .wc-block-components-product-image>a {
	display:block!important;
	width:100%!important;
	height:100%!important;
}
body.woocommerce .wc-block-product .wc-block-components-product-image img,
body.single-product .wp-block-woocommerce-product-collection[data-collection="woocommerce/product-collection/related"] .wc-block-components-product-image img {
	box-sizing:border-box!important;
	display:block!important;
	width:100%!important;
	height:100%!important;
	aspect-ratio:auto!important;
	padding:clamp(8px,1.2vw,14px)!important;
	object-fit:contain!important;
	object-position:center center!important;
	transform:none!important;
}
body.woocommerce ul.products li.product .woocommerce-LoopProduct-link img {
	box-sizing:border-box!important;
	width:100%!important;
	height:auto!important;
	aspect-ratio:1/1!important;
	padding:clamp(8px,1.2vw,14px)!important;
	background:#24211b;
}
body.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image>a>img:not(.zoomImg) {
	box-sizing:border-box!important;
	object-fit:contain!important;
	object-position:center center!important;
	padding:10px!important;
}
body.single-product .woocommerce-product-gallery .flex-viewport {
	background:#24211b;
}
body.single-product .woocommerce-product-gallery .flex-control-thumbs img {
	box-sizing:border-box!important;
	object-fit:contain!important;
	object-position:center center!important;
	padding:6px!important;
}

/* Product-family choices stay a compact, comparable system. */
.llpfn-family__choice .llpfn-family__image {
	background:#f4f0e8;
}
.llpfn-family__choice .llpfn-family__image img {
	object-fit:contain!important;
	object-position:center center!important;
	padding:8px;
}
.llpfn-family__choice .llpfn-family__image:after {display:none;}
.llpfn-family__choice .llpfn-family__price--synchronised {
	color:#fffaf2;
}

/* Every real product image keeps the entire object in frame. This does not
   manufacture imagery or overwrite the source image; it only prevents a
   product from being clipped by a card's crop. */
.woocommerce ul.products li.product .woocommerce-LoopProduct-link img,
.wc-block-product .wc-block-components-product-image img {
	object-fit:contain!important;
	object-position:center center!important;
}

/* Official Ferroluce swatches form balanced, calm rows when an even count is
   supplied by the maker. The responsive four-column layout remains intact. */
@media (min-width:821px) {
	.llfa-choice--finish.llfa-choice--count-4>div {display:grid!important;grid-template-columns:repeat(2,54px)!important;}
	.llfa-choice--finish.llfa-choice--count-6>div {display:grid!important;grid-template-columns:repeat(3,54px)!important;}
	.llfa-choice--finish.llfa-choice--count-8>div {display:grid!important;grid-template-columns:repeat(4,54px)!important;}
	.llfa-choice--finish.llfa-choice--count-10>div {display:grid!important;grid-template-columns:repeat(5,54px)!important;}
	.llfa-choice--finish.llfa-choice--count-12>div {display:grid!important;grid-template-columns:repeat(6,54px)!important;}
	.llfa-choice--finish.llfa-choice--count-14>div {display:grid!important;grid-template-columns:repeat(7,54px)!important;}
}

@media (max-width:820px) {
	.llpfn-family__choice .llpfn-family__image img {padding:5px;}
	.llfa-choice--finish>div {grid-template-columns:repeat(4,minmax(48px,54px))!important;}
}
