/**
 * LOVSETTI Product Detail page styles. Enqueued only on lovsetti_product
 * single pages (see lovsetti_theme_product_assets() in functions.php), so
 * everything here is scoped to that one template by load, and additionally
 * under .ls-product-single where a selector could otherwise be generic.
 *
 * Premium furniture-brand presentation: a 1200px measure, large imagery,
 * generous whitespace, restrained type. No price, no cart, no e-commerce
 * chrome. Consistent with the rest of the site: no rounded corners, no
 * box-shadows, no scroll animations.
 */

.ls-product-single {
	--ls-product-max: 1200px;
	--ls-product-rule: var(--ls-border-light);
	--ls-product-gap: clamp(32px, 16px + 3vw, 72px);
	--ls-product-section-space: clamp(56px, 32px + 4vw, 104px);

	background: var(--ls-bg);
	overflow-x: hidden;
}

/* Single source of the 1200px measure: every .ls-container on this template
 * narrows to it, so hero, table, related, FAQ and services all align.
 *
 * The shared Start Your Project CTA is excluded: its inner is also a
 * .ls-container, and this two-class rule would otherwise outrank
 * .ls-indoor-cta__inner's own 720px measure and render the band wider here
 * than on Indoor Furniture. */
.ls-product-single .ls-container:not(.ls-indoor-cta__inner) {
	max-width: calc(var(--ls-product-max) + (var(--ls-container-padding) * 2));
}

/* ===== Breadcrumb ===== */
.ls-breadcrumb {
	padding-top: var(--ls-space-5);
	padding-bottom: var(--ls-space-2);
}

.ls-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--ls-space-2);
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ls-text-soft);
}

.ls-breadcrumb__item {
	min-width: 0;
}

.ls-breadcrumb__item a {
	color: var(--ls-text-muted);
	border-bottom: 1px solid transparent;
	transition: border-color var(--ls-transition-fast), color var(--ls-transition-fast);
}

.ls-breadcrumb__item a:hover,
.ls-breadcrumb__item a:focus-visible {
	color: var(--ls-text);
	border-bottom-color: var(--ls-text);
}

.ls-breadcrumb__item [aria-current="page"] {
	color: var(--ls-text);
}

.ls-breadcrumb__sep {
	color: var(--ls-border);
}

/* ===== Shared section rhythm ===== */
.ls-product-section {
	padding-block: var(--ls-product-section-space);
	border-top: 1px solid var(--ls-product-rule);
}

.ls-product-section__title {
	font-size: clamp(22px, 16px + 1.1vw, 32px);
	font-weight: var(--ls-font-weight-light);
	line-height: 1.15;
	letter-spacing: -0.005em;
	margin: 0 0 var(--ls-space-7);
}

/* ===== 01 Hero ===== */
.ls-product-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--ls-product-gap);
	padding-top: var(--ls-space-6);
	padding-bottom: var(--ls-product-section-space);
}

.ls-product-hero__media,
.ls-product-hero__summary {
	min-width: 0;
}

/* ===== Gallery ===== */
.ls-product-gallery__stage {
	position: relative;
}

.ls-product-gallery__zoom-trigger {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
}

.ls-product-gallery__figure {
	display: block;
	width: 100%;
}

.ls-ratio .ls-product-gallery__image {
	object-fit: cover;
}

/* Stage 18: hover feedback on the main image. cursor:zoom-in above has always
   promised magnification while nothing actually happened until the click that
   opens the lightbox, which reads as a broken control. This reuses the catalog
   cards' own hover treatment (.ls-product-card in components.css) rather than
   inventing a second motion language for the same gesture.
   Clipping comes free: .ls-ratio is already overflow:hidden. Reduced motion is
   handled globally in base.css, so no local media query here.
   This deliberately stands in for — and does not replace — a follow-the-cursor
   magnifier, which only becomes worth building once product photos are
   uploaded at 2000px: today's 800px files carry ~1.4x of usable detail over
   the ~570px render, so a real magnifier would show blur, not craftsmanship. */
.ls-product-gallery__image {
	transition: transform var(--ls-transition-base);
}

.ls-product-gallery__zoom-trigger:hover .ls-product-gallery__image,
.ls-product-gallery__zoom-trigger:focus-visible .ls-product-gallery__image {
	transform: scale(1.04);
}

/* Arrows sit inside the image, deliberately understated. */
.ls-product-gallery__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	font-size: 16px;
	line-height: 1;
	color: var(--ls-text);
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid var(--ls-border-light);
	transition: background var(--ls-transition-fast), color var(--ls-transition-fast);
}

.ls-product-gallery__arrow:hover,
.ls-product-gallery__arrow:focus-visible {
	background: var(--ls-black);
	color: var(--ls-white);
}

.ls-product-gallery__arrow--prev {
	left: var(--ls-space-3);
}

.ls-product-gallery__arrow--next {
	right: var(--ls-space-3);
}

.ls-product-gallery__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.ls-product-gallery__thumb {
	display: block;
	flex: 0 0 48px;
	width: 48px;
	padding: 0;
	border: 1px solid transparent;
	background: none;
	cursor: pointer;
	transition: border-color var(--ls-transition-fast), opacity var(--ls-transition-fast);
	opacity: 0.72;
}

.ls-product-gallery__thumb img {
	object-fit: cover;
}

.ls-product-gallery__thumb:hover,
.ls-product-gallery__thumb:focus-visible {
	opacity: 1;
}

.ls-product-gallery__thumb.is-active {
	border-color: var(--ls-black);
	opacity: 1;
}

/* ===== Lightbox (unchanged behaviour) ===== */
.ls-lightbox {
	position: fixed;
	inset: 0;
	z-index: 300;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ls-lightbox[hidden] {
	display: none;
}

.ls-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(32, 31, 31, 0.9);
}

.ls-lightbox__dialog {
	position: relative;
	max-width: min(92vw, 1100px);
	max-height: 92vh;
	display: flex;
}

.ls-lightbox__image {
	max-width: 100%;
	max-height: 92vh;
	object-fit: contain;
	margin: auto;
}

.ls-lightbox__close {
	position: absolute;
	top: -40px;
	right: 0;
	width: 32px;
	height: 32px;
	font-size: 26px;
	line-height: 1;
	color: var(--ls-white);
}

@media (max-width: 767px) {
	.ls-lightbox__close {
		top: var(--ls-space-3);
		right: var(--ls-space-3);
	}
}

/* ===== Hero summary column ===== */
.ls-product-collection {
	/* Hero right column is tuned in explicit px rather than spacing tokens:
	 * the steps here are deliberately between token stops. */
	margin: 0 0 9px;
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ls-text-soft);
}

.ls-product-title {
	/* Two steps down from the previous clamp(28px, 18px + 2.2vw, 46px):
	 * ~42.9px at 1440, ~36.9px at 1024, floored at 30px on mobile, so the
	 * title stops carrying two heavy lines. Weight is unchanged. */
	font-size: clamp(30px, 22px + 1.45vw, 43px);
	font-weight: var(--ls-font-weight-light);
	line-height: 1.14;
	letter-spacing: -0.015em;
	margin: 0 0 19px;
	overflow-wrap: break-word;
}

.ls-product-intro {
	max-width: 46ch;
	margin: 0 0 22px;
	font-size: clamp(15px, 14px + 0.3vw, 17px);
	line-height: 1.52;
	color: var(--ls-text-muted);
}

.ls-product-hero__actions {
	margin-bottom: 34px;
}

.ls-product-quote-btn {
	min-height: 44px;
	padding-block: 10px;
	padding-inline: var(--ls-space-7);
}

/* ===== Our Promises ===== */
.ls-product-promises {
	padding-top: 22px;
	border-top: 1px solid var(--ls-product-rule);
}

.ls-product-promises__title {
	margin: 0 0 11px;
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ls-text-soft);
}

.ls-product-promises__list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* 7c. Tighter leading on each promise; font size is unchanged. */
.ls-product-promises__item {
	display: flex;
	align-items: baseline;
	gap: var(--ls-space-3);
	font-size: 15px;
	line-height: 1.45;
	color: var(--ls-text);
}

.ls-product-promises__mark {
	flex: 0 0 auto;
	color: var(--ls-text-muted);
}

/* ===== 02 Product Information table ===== */
.ls-product-table {
	width: 100%;
	border-collapse: collapse;
	border-top: 1px solid var(--ls-product-rule);
}

.ls-product-table__row {
	border-bottom: 1px solid var(--ls-product-rule);
}

.ls-product-table__label,
.ls-product-table__value {
	padding-block: var(--ls-space-4);
	text-align: left;
	vertical-align: top;
	font-weight: var(--ls-font-weight-regular);
}

.ls-product-table__label {
	width: 34%;
	padding-right: var(--ls-space-5);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ls-text-soft);
}

.ls-product-table__value {
	font-size: 15px;
	line-height: 1.65;
	color: var(--ls-text);
	overflow-wrap: anywhere;
}

/* ===== 03 Related Products ===== */
.ls-product-related__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--ls-space-6);
}

.ls-product-rcard {
	min-width: 0;
}

.ls-product-rcard__media {
	display: block;
	margin-bottom: var(--ls-space-4);
}

.ls-product-rcard__image {
	object-fit: cover;
	transition: opacity var(--ls-transition-base);
}

.ls-product-rcard:hover .ls-product-rcard__image {
	opacity: 0.88;
}

.ls-product-rcard__title {
	font-size: 17px;
	font-weight: var(--ls-font-weight-light);
	line-height: 1.3;
	margin: 0 0 var(--ls-space-2);
}

.ls-product-rcard__title a {
	border-bottom: 1px solid transparent;
	transition: border-color var(--ls-transition-fast);
}

.ls-product-rcard__title a:hover,
.ls-product-rcard__title a:focus-visible {
	border-bottom-color: var(--ls-text);
}

.ls-product-rcard__category {
	margin: 0;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ls-text-soft);
}

/* ===== 04 FAQ ===== */
.ls-product-faq__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--ls-space-6) var(--ls-space-8);
}

.ls-product-faq__item {
	min-width: 0;
	padding-top: var(--ls-space-5);
	border-top: 1px solid var(--ls-product-rule);
}

.ls-product-faq__q {
	font-size: 17px;
	font-weight: var(--ls-font-weight-medium);
	line-height: 1.35;
	margin: 0 0 var(--ls-space-3);
	color: var(--ls-text);
}

.ls-product-faq__a {
	margin: 0;
	font-size: 15px;
	line-height: 1.75;
	color: var(--ls-text-muted);
}

/* ===== 06 Start Your Project CTA =====
 * The band itself is styled by .ls-indoor-cta* in components.css, shared with
 * the Indoor Furniture page. Only the footer seam is page-specific: the CTA is
 * the last section before the footer, whose sitewide margin-top would
 * otherwise leave a blank strip under it (same fix Home, Indoor, Outdoor and
 * the Projects archive each apply for their own last section). */
body.single-lovsetti_product .ls-site-footer {
	margin-top: 0;
}

/* ===== Responsive ===== */
@media (min-width: 640px) {
	.ls-product-related__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ls-product-promises__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 768px) {
	.ls-product-faq__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	/* The 50/50 hero split. */
	.ls-product-hero {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
	}

	.ls-product-related__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.ls-product-promises__list {
		grid-template-columns: minmax(0, 1fr);
	}
}
