/*
 * Single product — the material page.
 *
 * Editorial and architectural, on the same tokens as the homepage and catalogue:
 * a full-bleed sunk hero band with the plate as the centrepiece, a specification
 * field built from cards rather than a table, an editorial description column,
 * premium related-material cards and a sticky quote bar on the phone that reserves
 * its own space instead of covering content.
 *
 * Scoped to the `iq-product` body class.
 */

/* ── Scoped reset ─────────────────────────────────────────────────────────── */

:where(.pdp) *,
:where(.pdp) *::before,
:where(.pdp) *::after { box-sizing: border-box; }

:where(.pdp) img { display: block; max-width: 100%; height: auto; }
:where(.pdp) :is(h1, h2, h3) { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: var(--track-display); line-height: var(--lh-tight); }
:where(.pdp) p { margin: 0; }
:where(.pdp) :is(ul, dl) { margin: 0; padding: 0; list-style: none; }
:where(.pdp) a { color: inherit; text-decoration: none; }
:where(.pdp) button { font: inherit; }

.iq-product .pdp {
	font-family: var(--font-body);
	font-size: var(--t-body);
	line-height: var(--lh-body);
	color: var(--ink);
	background: var(--paper);
}

.iq-product .pdp :focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* Host chrome: the site header and footer are the only chrome. */
.iq-product main.wd-content-layout { max-width: none; width: 100%; margin-inline: 0; padding: 0; }
.iq-product .wd-page-title,
.iq-product .wd-scroll-top,
.iq-product .wd-sticky-btn,
.iq-product .wd-sticky-product,
.iq-product .wd-prefooter { display: none !important; }

/* Commerce controls never render on a quote catalogue. */
.iq-product .price,
.iq-product .woocommerce-Price-amount,
.iq-product .cart,
.iq-product .quantity,
.iq-product .single_add_to_cart_button,
.iq-product .wd-wishlist-btn,
.iq-product .wd-compare-btn,
.iq-product .wd-action-btn,
.iq-product .star-rating,
.iq-product .woocommerce-product-rating,
.iq-product .comment-form,
.iq-product .woocommerce-tabs,
.iq-product .onsale,
.iq-product .product_meta,
.iq-product .wd-product-labels { display: none !important; }

/* ── Shared field ─────────────────────────────────────────────────────────── */

.iq-product .pdp-shell {
	width: 100%;
	max-width: var(--shell);
	margin-inline: auto;
	padding-inline: calc(var(--gutter) + var(--col-gap));
}

.iq-product .pdp-kicker,
.iq-product .pdp-eyebrow {
	font-size: var(--t-label);
	font-weight: 600;
	letter-spacing: var(--track-label);
	text-transform: uppercase;
	color: var(--graphite);
}

.iq-product .pdp-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.iq-product .pdp-eyebrow a { color: var(--red); }
.iq-product .pdp-eyebrow a:hover,
.iq-product .pdp-eyebrow a:focus-visible { text-decoration: underline; }

/* ── Breadcrumb bar ───────────────────────────────────────────────────────── */

.iq-product .pdp-bar { border-bottom: 1px solid var(--rule); background: var(--paper); }

.iq-product .pdp-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	min-height: 52px;
	font-size: var(--t-small);
	color: var(--graphite);
}

.iq-product .pdp-crumbs a:hover,
.iq-product .pdp-crumbs a:focus-visible { color: var(--red); text-decoration: underline; }
.iq-product .pdp-crumbs [aria-current] { color: var(--ink); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.iq-product .pdp-hero {
	background: var(--sunk);
	border-bottom: 1px solid var(--rule);
	padding-block: clamp(28px, 3vw, 52px);
}

.iq-product .pdp-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: clamp(24px, 3vw, 56px);
	align-items: start;
}

/* The plate is the centrepiece: full column width, its own 2:1 proportion, a
   hairline frame and a category stamp — no carousel, no placeholder. */
.iq-product .pdp-figure { display: grid; gap: 12px; }

.iq-product .pdp-figure__frame {
	position: relative;
	overflow: hidden;
	background: var(--paper);
	border: 1px solid var(--rule);
}

.iq-product .pdp-figure__img {
	width: 100%;
	aspect-ratio: 2 / 1;
	object-fit: cover;
}

.iq-product .pdp-figure__badge {
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: 0;
	z-index: 1;
	padding: 8px 14px;
	background: var(--ink);
	color: #FFFFFF;
	font-size: var(--t-label);
	font-weight: 600;
	letter-spacing: var(--track-label);
	text-transform: uppercase;
}

/* ── Carousel ─────────────────────────────────────────────────────────────
   Every image is a slide in a scroll-snap track, so swipe works natively and
   the arrows, counter and thumbnails all drive the same scroll position. */

.iq-product .pdp-carousel {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 100%;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
}
.iq-product .pdp-carousel::-webkit-scrollbar { display: none; }
.iq-product .pdp-slide { scroll-snap-align: start; min-inline-size: 0; }
.iq-product .pdp-carousel:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }

/* Each picture is wrapped in a button that opens the lightbox. It is a bare box
   around the image — `line-height: 0` so its edges land on the picture and not a
   text baseline below it — and it stays under the arrows and the counter, which
   are positioned with a z-index of their own. */
.iq-product .pdp-slide__open {
	display: block;
	inline-size: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	line-height: 0;
	position: relative;
	cursor: zoom-in;
}

.iq-product .pdp-slide__open:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }

/* A quiet expand mark, so the picture reads as openable rather than as a
   photograph that happens to be there. Bottom-left: the counter holds the
   opposite corner and the material badge the one above it. */
.iq-product .pdp-slide__open::after {
	content: '';
	position: absolute;
	inset-block-end: 12px;
	inset-inline-start: 12px;
	inline-size: 34px;
	block-size: 34px;
	border-radius: 50%;
	background: rgba(2, 0, 0, .62) var(--iq-expand) center / 15px no-repeat;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

/* Touch has no hover to reveal it with, so there the mark is simply always on. */
@media (hover: hover) {
	.iq-product .pdp-slide__open:hover::after,
	.iq-product .pdp-slide__open:focus-visible::after { opacity: 1; transform: none; }
}

@media (hover: none) {
	.iq-product .pdp-slide__open::after { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.iq-product .pdp-slide__open::after { transition: none; }
}

.iq-product .pdp-nav {
	position: absolute;
	inset-block-start: 50%;
	translate: 0 -50%;
	z-index: 2;
	inline-size: 44px;
	block-size: 44px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	box-shadow: 0 2px 10px rgba(2, 0, 0, .16);
	color: var(--ink);
	cursor: pointer;
	transition: background var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.iq-product .pdp-nav:hover:not(.is-off) { background: #FFFFFF; }
/* Dimmed rather than hidden, so the control's position stays predictable. */
.iq-product .pdp-nav.is-off { opacity: .26; pointer-events: none; box-shadow: none; }
.iq-product .pdp-nav--prev { inset-inline-start: 12px; }
.iq-product .pdp-nav--next { inset-inline-end: 12px; }
/* Chevrons from a rotated corner — no icon font, no extra request. */
.iq-product .pdp-nav::before {
	content: '';
	inline-size: 9px;
	block-size: 9px;
	border-inline-end: 1.6px solid currentColor;
	border-block-start: 1.6px solid currentColor;
}
.iq-product .pdp-nav--prev::before { transform: translateX(2px) rotate(-135deg); }
.iq-product .pdp-nav--next::before { transform: translateX(-2px) rotate(45deg); }

.iq-product .pdp-count {
	position: absolute;
	inset-block-end: 12px;
	inset-inline-end: 12px;
	z-index: 2;
	margin: 0;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(2, 0, 0, .62);
	color: #FFFFFF;
	font-size: 12px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

/* ── Thumbnails ───────────────────────────────────────────────────────────
   One scrolling row instead of a wrapping grid: twelve images were running to
   three rows and pushing the whole product summary below the fold. */

.iq-product .pdp-thumbs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	padding-block-end: 2px;
}
.iq-product .pdp-thumbs::-webkit-scrollbar { display: none; }

.iq-product .pdp-thumb {
	flex: 0 0 auto;
	inline-size: 74px;
	aspect-ratio: 1 / 1;
	scroll-snap-align: start;
	padding: 0;
	border: 1px solid var(--rule);
	background: var(--paper);
	cursor: pointer;
	overflow: hidden;
	opacity: .68;
	transition: border-color var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.iq-product .pdp-thumb img {
	inline-size: 100%;
	block-size: 100%;
	aspect-ratio: auto;
	object-fit: cover;
	display: block;
}
.iq-product .pdp-thumb:hover { opacity: 1; }
.iq-product .pdp-thumb.is-current { border-color: var(--red); opacity: 1; }
.iq-product .pdp-thumb:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* Info column */
.iq-product .pdp-hero__info { display: flex; flex-direction: column; gap: 16px; }

.iq-product .pdp-title {
	font-size: clamp(28px, 2.6vw, 44px);
	line-height: 1.08;
	max-width: 18ch;
}

/* ── Specification cards ──────────────────────────────────────────────────── */

.iq-product .pdp-specs { margin-top: 12px; }

.iq-product .pdp-specs__title {
	font-family: var(--font-body);
	font-size: var(--t-label);
	font-weight: 600;
	letter-spacing: var(--track-label);
	text-transform: uppercase;
	color: var(--graphite);
	margin-bottom: 12px;
}

.iq-product .pdp-specs__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	background: var(--rule);
	border: 1px solid var(--rule);
}

.iq-product .spec {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px;
	background: var(--paper);
}

.iq-product .spec dt {
	font-size: var(--t-label);
	font-weight: 600;
	letter-spacing: var(--track-label);
	text-transform: uppercase;
	color: var(--graphite);
}

.iq-product .spec dd {
	margin: 0;
	font-family: var(--font-display);
	font-size: 17px;
	font-weight: 600;
	color: var(--ink);
}

/* The first card carries the red kerf, as on the homepage sections. */
.iq-product .spec:first-child { border-top: 3px solid var(--red); margin-top: -1px; }

/* ── Call to action ───────────────────────────────────────────────────────── */

.iq-product .pdp-cta { display: grid; gap: 12px; margin-top: 8px; }

.iq-product .pdp-cta__primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 0 26px;
	background: var(--red);
	border: 1px solid var(--red);
	color: #FFFFFF;
	font-family: var(--font-display);
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.iq-product .pdp-cta__primary:hover,
.iq-product .pdp-cta__primary:focus-visible { background: var(--red-deep); border-color: var(--red-deep); }

.iq-product .pdp-cta__row { display: flex; flex-wrap: wrap; gap: 10px; }

.iq-product .pdp-cta__ghost {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 auto;
	min-height: 48px;
	padding: 0 18px;
	border: 1px solid var(--rule);
	background: var(--paper);
	font-family: var(--font-display);
	font-size: var(--t-small);
	font-weight: 600;
	transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.iq-product .pdp-cta__ghost:hover,
.iq-product .pdp-cta__ghost:focus-visible { border-color: var(--ink); color: var(--red); }

.iq-product .pdp-cta__tel {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 18px;
	border: 1px solid transparent;
	font-family: var(--font-display);
	font-size: var(--t-small);
	font-weight: 600;
	color: var(--red);
}

.iq-product .pdp-cta__tel:hover,
.iq-product .pdp-cta__tel:focus-visible { text-decoration: underline; }
.iq-product .pdp-cta__note { font-size: var(--t-small); color: var(--graphite); }

/* ── Editorial description ────────────────────────────────────────────────── */

.iq-product .pdp-story { padding-block: clamp(40px, 4.6vw, 80px); }

.iq-product .pdp-story__grid {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: clamp(24px, 3vw, 56px);
	align-items: start;
}

.iq-product .pdp-story__aside { position: sticky; top: 140px; }
.iq-product .pdp-story__aside h2 { margin-top: 10px; font-size: clamp(20px, 1.7vw, 28px); max-width: 16ch; }

.iq-product .pdp-story__body {
	font-size: var(--t-lead);
	color: var(--graphite);
	max-width: 68ch;
	border-top: 1px solid var(--rule);
	padding-top: clamp(18px, 1.8vw, 28px);
}

.iq-product .pdp-story__body p + p { margin-top: 14px; }
.iq-product .pdp-story__body :is(h2, h3) { color: var(--ink); margin-block: 22px 8px; font-size: clamp(18px, 1.3vw, 22px); }
.iq-product .pdp-story__body :is(ul, ol) { margin: 12px 0 0; padding-left: 20px; list-style: disc; }
.iq-product .pdp-story__body li { margin-top: 6px; }
.iq-product .pdp-story__body strong { color: var(--ink); }

/* ── Related materials ────────────────────────────────────────────────────── */

.iq-product .pdp-more { padding-block: 0 clamp(48px, 5vw, 96px); }

.iq-product .pdp-related__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding-block: clamp(20px, 2vw, 30px);
	border-top: 1px solid var(--rule);
	position: relative;
}

.iq-product .pdp-related__head::before {
	content: "";
	position: absolute;
	inset-block-start: -1px;
	inset-inline-start: 0;
	width: clamp(40px, 5vw, 84px);
	height: 3px;
	background: var(--red);
}

.iq-product .pdp-related__head h2 { font-size: clamp(20px, 1.7vw, 28px); }

.iq-product .pdp-related__all {
	font-family: var(--font-display);
	font-size: var(--t-small);
	font-weight: 600;
}

.iq-product .pdp-related__all:hover,
.iq-product .pdp-related__all:focus-visible { color: var(--red); text-decoration: underline; }

.iq-product .pdp-related__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-rows: 1fr;
	gap: var(--col-gap);
}

.iq-product .pcard {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--paper);
	border: 1px solid var(--rule);
	transition: border-color var(--dur) var(--ease);
}

.iq-product .pcard:hover,
.iq-product .pcard:focus-within { border-color: var(--ink); }
.iq-product .pcard__link { display: flex; flex-direction: column; flex: 1 1 auto; }
.iq-product .pcard__media { position: relative; overflow: hidden; background: var(--sunk); }

.iq-product .pcard__media img {
	width: 100%;
	aspect-ratio: 2 / 1;
	object-fit: cover;
	transition: transform 520ms var(--ease);
}

.iq-product .pcard:hover .pcard__media img { transform: scale(1.04); }
.iq-product .pcard__body { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; padding: 18px; }
.iq-product .pcard__cat { font-size: var(--t-label); font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--graphite); }
.iq-product .pcard__title { font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: var(--lh-tight); }
.iq-product .pcard__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--rule-soft); font-size: 13px; color: var(--graphite); }
.iq-product .pcard__meta b { color: var(--ink); font-weight: 600; }

.iq-product .pcard__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 54px;
	padding: 8px 18px;
	border-top: 1px solid var(--rule-soft);
	font-family: var(--font-display);
	font-size: var(--t-small);
	font-weight: 600;
}

.iq-product .pcard__detail:hover,
.iq-product .pcard__detail:focus-visible { color: var(--red); text-decoration: underline; }
.iq-product .pcard__quote { color: var(--red); }
.iq-product .pcard__quote:hover,
.iq-product .pcard__quote:focus-visible { color: var(--red-deep); text-decoration: underline; }

/* ── Sticky quote bar (phones only) ───────────────────────────────────────── */

.iq-product .pdp-sticky { display: none; }

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
	.iq-product .pdp-hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
	.iq-product .pdp-story__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

@media (max-width: 860px) {
	/* Mobile is composed, not compressed: plate first, full width, then the
	   information, the fiche, and the actions. */
	.iq-product .pdp-shell { padding-inline: 20px; }

	.iq-product .pdp-hero { padding-block: 0 28px; border-bottom: 1px solid var(--rule); }
	.iq-product .pdp-hero__grid { grid-template-columns: 1fr; gap: 22px; }

	/* The plate runs edge to edge on the phone. */
	.iq-product .pdp-hero__media { margin-inline: -20px; }
	.iq-product .pdp-figure__frame { border-inline: 0; border-top: 0; }
	.iq-product .pdp-figure__img { aspect-ratio: 3 / 2; }
	.iq-product .pdp-thumbs { padding-inline: 20px; }
	.iq-product .pdp-thumb { inline-size: 64px; }
	.iq-product .pdp-nav { inline-size: 40px; block-size: 40px; }

	.iq-product .pdp-title { font-size: clamp(26px, 7vw, 32px); max-width: none; }
	.iq-product .pdp-specs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.iq-product .spec { padding: 12px 14px; }
	.iq-product .spec dd { font-size: 16px; }

	.iq-product .pdp-cta__row { flex-direction: column; }
	.iq-product .pdp-cta__ghost,
	.iq-product .pdp-cta__tel { width: 100%; min-height: 48px; }

	.iq-product .pdp-story { padding-block: 32px; }
	.iq-product .pdp-story__grid { grid-template-columns: 1fr; gap: 16px; }
	.iq-product .pdp-story__aside { position: static; }
	.iq-product .pdp-story__body { font-size: 17px; }

	.iq-product .pdp-more { padding-bottom: 40px; }
	.iq-product .pdp-related__grid { grid-template-columns: 1fr; gap: 12px; }
	.iq-product .pcard__foot { min-height: 0; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 16px; }
	.iq-product .pcard__detail,
	.iq-product .pcard__quote,
	.iq-product .pdp-related__all,
	.iq-product .pdp-eyebrow a { display: inline-flex; align-items: center; min-height: 44px; }

	/* Sticky quote bar: the page reserves exactly its height, so it never covers
	   the footer or any control. */
	.iq-product .pdp { padding-bottom: 72px; }

	.iq-product .pdp-sticky {
		position: fixed;
		inset-inline: 0;
		inset-block-end: 0;
		z-index: 150;
		display: block;
		background: var(--paper);
		border-top: 1px solid var(--rule);
		box-shadow: 0 -6px 20px -14px rgba(2, 0, 0, .5);
		padding-bottom: env(safe-area-inset-bottom);
	}

	.iq-product .pdp-sticky__inner {
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 10px 20px;
	}

	.iq-product .pdp-sticky__name {
		flex: 1 1 auto;
		min-width: 0;
		font-family: var(--font-display);
		font-size: 14px;
		font-weight: 600;
		color: var(--ink);
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.iq-product .pdp-sticky__cta {
		flex: 0 0 auto;
		display: inline-flex;
		align-items: center;
		min-height: 48px;
		padding: 0 18px;
		background: var(--red);
		color: #FFFFFF;
		font-family: var(--font-display);
		font-size: 14px;
		font-weight: 600;
	}

	.iq-product .pdp-sticky__cta:hover,
	.iq-product .pdp-sticky__cta:focus-visible { background: var(--red-deep); }
}

@media (max-width: 420px) {
	.iq-product .pdp-specs__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.iq-product .pcard__media img { transition: none; }
}


@media (prefers-reduced-motion: reduce) {
	.iq-product .pdp-carousel,
	.iq-product .pdp-thumbs { scroll-behavior: auto; }
}
