/*
 * SUBDERMA — site-wide component & page styles.
 *
 * Everything OTHER than the Hero and Protocol Picker (which stay in
 * subderma.css, untouched by this build-out — see that file's header
 * comment). Covers: shared reusable components
 * (components/brands/subderma/*.php — section-heading, split-section,
 * accordion, icon-row, carousel, product-card, breadcrumb,
 * closing-statement, trust-marquee, expert-carousel, pull-quote) and
 * every page-specific section (homepage sections 2-9, About, Science,
 * FAQ, Products/collection, single-product PDP).
 *
 * Loaded ONLY on SUBDERMA pages (see inc/enqueue.php) — never global.
 * Relies on the --sd-* custom properties defined on .brand-subderma-main
 * in subderma.css (loaded first, as a dependency — see inc/enqueue.php).
 * LTR by design throughout; each component file's own PHP header comment
 * documents the specific RTL→LTR adaptation made for that section.
 */

/* ---------------------------------------------------------------------
 * Section heading (shared)
 * ------------------------------------------------------------------- */

.subderma-section-heading {
	margin-block-end: 32px;
}

.subderma-section-heading--center {
	text-align: center;
}

.subderma-section-heading--start {
	text-align: start;
}

.subderma-section-heading__eyebrow {
	margin: 0 0 8px;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--sd-muted);
}

/* Measured reference section-heading scale (home-spec.md deep-dive,
   uniform across home sections 1/3/4/5/7/8/9 and reused on Science):
   30px/45px w400 @1440 → 24px/36px @390. */
.subderma-section-heading__title {
	margin: 0;
	font-family: 'Prompt', sans-serif;
	font-weight: 400;
	font-size: clamp(24px, 21.8px + 0.572vw, 30px);
	line-height: clamp(36px, 32.7px + 0.858vw, 45px);
	color: var(--sd-navy);
}

.subderma-section-heading__intro {
	max-width: 60ch;
	margin: 12px auto 0;
	color: var(--sd-muted);
}

.subderma-section-heading--start .subderma-section-heading__intro {
	margin-inline: 0;
}

/* ---------------------------------------------------------------------
 * Split content/media section (shared — the highest-leverage component)
 * ------------------------------------------------------------------- */

.subderma-split {
	padding-block: 48px;
	overflow: hidden;
}

/* Home dark sections (science/guarantee) measured padding derivation:
   section 843px total with a 631px mosaic (science) → ~106px block
   padding; guarantee 599px with shorter media. Tuned per-modifier below
   after live local re-measurement. */

.subderma-split--light { background: #ffffff; }
.subderma-split--beige { background: var(--sd-beige); }
.subderma-split--dark {
	background: linear-gradient(160deg, var(--sd-navy) 0%, var(--sd-navy-soft) 100%);
	color: #ffffff;
}

/* Section 2 ("science") is no longer built on this shared split-section
   component — transplanted to its own bespoke .subderma-science* markup/
   CSS (see home-science-block.php + the "Science block" rules further
   down this file), since the reference's own layout there is a bespoke
   flex split (29.84%/62.2%), not this component's grid. */

/* Measured reference (Phase 2 gap-resolution probe, probe-ref-s6.js): the
   guarantee section has NO media element at all — its packaging/chart/
   badge visual is baked into the section's own background artwork.
   Section 6 is transplanted to its own bespoke .subderma-guarantee*
   markup/CSS below (see home-trust-guarantee.php) instead of this shared
   component — its real layout isn't a two-column split at all. */

/* Measured FAQ split (home section 8): 511px total @1440 — exactly the
   photo's own 550×511 rendered box, i.e. the section has NO block
   padding; the accordion column centers against the photo's height. */
.subderma-split--faq { padding-block: 0; }

.subderma-split--faq .subderma-split__inner {
	/* Measured photo column: 550px @1440 = 42.64% of the 1290px content
	   row, and the reference's section-height curve across 1366–1920
	   (481/511/631/710) matches the photo column scaling at that same
	   fraction — so a percentage track, not a fixed 550px. */
	grid-template-columns: 1fr 42.64%;
	align-items: center;
}

.subderma-split--faq .subderma-split__media img {
	aspect-ratio: 550 / 511;
	width: 100%;
	object-fit: cover;
	border-radius: 16px;
}

/* Measured container: full width minus the standard 75px gutters (no
   max-width cap observed up to 1920 on the home sections). About-page
   split instances override to their own measured 30px-gutter container. */
.subderma-split__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 48px;
	padding-inline: var(--sd-gutter);
}

/* media_position 'end' = media second in DOM = right in LTR (default
   grid order). 'start' = media first = left. */
.subderma-split--media-start .subderma-split__media {
	order: -1;
}

.subderma-split__eyebrow {
	margin: 0 0 8px;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.75;
}

.subderma-split__heading {
	margin: 0 0 16px;
	font-family: 'Prompt', sans-serif;
	font-weight: 700;
	font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
	color: var(--sd-navy);
}

/* Reference (live-measured this pass): the two dark "clinical proof"
   sections (science block, guarantee) use a notably LARGER heading than
   every regular section — 45px/700/59px line-height vs 30px/400/45px
   elsewhere — not a smaller one. This was previously backwards (dark
   heading rendered smaller than regular section headings; kept here for
   any future dark split-section instance, though sections 2 and 6 have
   both since moved to their own bespoke markup below). */
.subderma-split--dark .subderma-split__heading {
	color: #ffffff;
	font-size: 45px;
	line-height: 59px;
	font-weight: 700;
}

.subderma-split__body {
	font-size: 0.98rem;
	line-height: 1.6;
}

/* Measured dark-section body: 16px/30px w400. */
.subderma-split--dark .subderma-split__body {
	color: rgba(255, 255, 255, 0.85);
	font-size: 16px;
	line-height: 30px;
}

.subderma-split__body p {
	margin: 0 0 16px;
}

.subderma-split__body .subderma-btn {
	margin-block-start: 8px;
}

.subderma-split__list {
	margin: 0 0 16px;
	padding-inline-start: 20px;
}

.subderma-split__list li {
	margin-block-end: 6px;
}

.subderma-split__bullets {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.subderma-split__bullets li {
	position: relative;
	padding-inline-start: 28px;
	font-size: 0.98rem;
	line-height: 1.5;
}

.subderma-split__bullets li::before {
	content: '';
	position: absolute;
	inset-inline-start: 0;
	top: 6px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--sd-navy);
}

.subderma-split__media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px;
	object-fit: cover;
}

/* Measured About split geometry (about-spec.md blocks 2/3): NO section
   block padding (heights 663/670 are the 670px-wide near-square photos'
   own heights), 30px content gutters, two equal 670px columns with a
   40px gap in the 1380 container, photos ~800×792/800×800 rendered
   670×663/670×670 (≈square), radius 24. The two blocks sit 60px apart.
   Typography: H2 40px/52px w600 rgb(33,33,33); body 18px/28.8 rgb(78,78,78). */
.subderma-split--about { padding-block: 0; }

.subderma-split--about + .subderma-split--about {
	margin-block-start: 60px;
}

.subderma-split--about .subderma-split__inner {
	padding-inline: 30px;
	gap: 40px;
}

.subderma-split--about .subderma-split__heading {
	font-size: clamp(28px, 23.5px + 1.14vw, 40px);
	line-height: 1.3;
	font-weight: 600;
	color: rgb(33, 33, 33);
}

.subderma-split--about .subderma-split__body {
	font-size: 18px;
	line-height: 28.8px;
	color: rgb(78, 78, 78);
}

.subderma-split--about .subderma-split__media img {
	aspect-ratio: 800 / 792;
	object-fit: cover;
	border-radius: 24px;
}

/* Measured Science splits (science-spec.md sections 3/4):
   — features-video: 618px total, 64px insets, two 632px columns (~48px
     gap), video 632×356 (16:9) radius 16; PRESERVE composition
     (text left / video right), only text alignment flips.
   — image-text mechanism: 597px total (image 665×476 drives it), 30px
     insets, two 665px columns (50px gap); MIRROR → copy left, image
     right. Mobile: video-first for section 3, copy-first for section 4
     (both measured directly at 390). */
.subderma-split--video .subderma-split__inner {
	padding-inline: 64px;
	gap: 48px;
}

.subderma-split--video { padding-block: 60px; }

.subderma-split--video .subderma-split__heading {
	font-size: clamp(24px, 21px + 0.556vw, 32px);
	line-height: 1.3;
	font-weight: 500;
}

.subderma-split--video .subderma-split__body {
	font-size: clamp(16px, 14.5px + 0.38vw, 20px);
	line-height: 1.2;
	color: rgb(113, 113, 113);
}

.subderma-split--mechanism .subderma-split__inner {
	padding-inline: 30px;
	gap: 50px;
}

.subderma-split--mechanism { padding-block: 60px; }

.subderma-split--mechanism .subderma-split__heading {
	font-size: clamp(28px, 23.5px + 1.14vw, 40px);
	line-height: 1.3;
	font-weight: 600;
}

.subderma-split--mechanism .subderma-split__body {
	font-size: 18px;
	line-height: 28.8px;
	color: rgb(78, 78, 78);
}

.subderma-split--mechanism .subderma-split__media img {
	aspect-ratio: 665 / 476;
	object-fit: cover;
	border-radius: 16px;
}

@media (max-width: 989px) {
	.subderma-split--video .subderma-split__inner,
	.subderma-split--mechanism .subderma-split__inner {
		padding-inline: var(--sd-gutter);
	}

	/* measured @390: video paints ABOVE the copy */
	.subderma-split--video .subderma-split__media {
		order: -1;
	}
}

.subderma-btn--on-dark.subderma-btn--outline {
	border-color: rgba(255, 255, 255, 0.6);
	color: #ffffff;
}

.subderma-btn--on-dark.subderma-btn--outline:hover {
	background: #ffffff;
	color: var(--sd-navy);
}

.subderma-btn--on-dark.subderma-btn--solid {
	background: #ffffff;
	color: var(--sd-navy);
	border-color: #ffffff;
}

.subderma-btn--on-dark.subderma-btn--solid:hover {
	background: var(--sd-beige);
}

@media (max-width: 989px) {
	/* The faq per-section modifier grid (1fr/42.64%) outranks the base
	   selector, so it must be reset here explicitly or the two-column
	   track survives to mobile. */
	.subderma-split__inner,
	.subderma-split--faq .subderma-split__inner {
		grid-template-columns: 1fr;
	}

	.subderma-split--media-start .subderma-split__media {
		order: 0;
	}

	/* Reference (mobile390-08 section crop, both the home FAQ and the
	   PDP's paired-image FAQ share this .subderma-split--faq modifier):
	   mobile shows the lifestyle photo FIRST, then heading, then
	   accordion — the opposite of the general split-section mobile
	   pattern (content-then-media) used everywhere else. */
	.subderma-split--faq .subderma-split__media {
		order: -1;
	}

	/* Measured About mobile stack order (about-spec.md): founders block
	   (media at reading-end) paints IMAGE first, professor block (media
	   at reading-start) paints CONTENT first — i.e. both preserve their
	   reference DOM order, which is the opposite of what the raw
	   media-position classes would produce here. */
	.subderma-split--about.subderma-split--media-end .subderma-split__media {
		order: -1;
	}

	.subderma-split--about.subderma-split--media-start .subderma-split__media {
		order: 0;
	}

}

/* ---------------------------------------------------------------------
 * Science block (home section 2) — transplanted from the live reference's
 * actual .behind-science-main/.behind_science_wrap/.behind_card markup
 * (reference/local-comparisons/home-transplant/extract/html/section-2-*.html)
 * rather than the generic split-section grid. Bespoke flex layout:
 * copy 29.84% / mosaic 62.2% of the row, justify-content:space-between.
 * RTL->LTR (rtl-ltr-map.md Home #2): Mirror -- copy at reading-start
 * (left), mosaic at reading-end (right).
 * ------------------------------------------------------------------- */
.subderma-science {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-color: var(--sd-navy);
}

.subderma-science__wrap {
	width: calc(100% - 150px);
	max-width: none;
	margin-inline: auto;
	display: flex;
	padding: 70px 25px;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	flex-direction: row-reverse;
}

.subderma-science__copy {
	width: 29.84%;
	min-width: 280px;
	padding: 20px 0;
	color: #ffffff;
}

/* Measured: 45px/59px w700 uppercase. */
.subderma-science__copy h2 {
	font-size: 45px;
	line-height: 59px;
	font-weight: 700;
	text-transform: uppercase;
	margin: 0;
}

.subderma-science__copy h3 {
	margin: 16px 0 0;
	font-size: 20px;
	line-height: 30px;
	font-weight: 700;
}

.subderma-science__body {
	margin: 24px 0;
}

.subderma-science__body p {
	margin: 0;
	font-size: 16px;
	line-height: 30px;
}

.subderma-science__mosaic {
	display: flex;
	flex-direction: row-reverse;
	gap: 30px;
	width: 62.2%;
	min-width: 280px;
}

.subderma-science__col {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.subderma-science__card {
	position: relative;
	z-index: 0; /* establishes a real stacking context so the z-index:-2
	               image and z-index:-1 gradient below stay contained here
	               instead of escaping behind the section's own background */
	display: block;
	overflow: hidden;
	border-radius: 30px;
	color: #F2FAFF;
	text-decoration: none;
}

/* Desktop proportions measured from the original 1908px reference.
   The source class names describe the old asset ratios, not the rendered
   card geometry: the short card is ~215px, the tall card ~580px and the
   two left cards ~388px at a 515px column width. */
.subderma-science__card--r187 { aspect-ratio: 515 / 215; }
.subderma-science__card--r432 { aspect-ratio: 515 / 580; }
.subderma-science__card--r310 { aspect-ratio: 515 / 388; }

.subderma-science__card img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
}

.subderma-science__card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(243, 243, 243, 0.62) -59.87%, #000000 100%);
	opacity: 0.5;
}

.subderma-science__card-inner {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 30px;
}

.subderma-science__big {
	display: block;
	font-size: 30px;
	font-weight: 700;
	line-height: 39px;
	margin: 0;
}

.subderma-science__card h3 {
	font-size: 24px;
	font-weight: 400;
	padding-top: 16px;
	border-top: 1px dashed #F2FAFF;
	margin: 16px 0 0;
	max-width: 215px;
	color: #F2FAFF;
}

.subderma-science__card p {
	margin: 8px 0 0;
	font-size: 16px;
	line-height: 24px;
	color: #F2FAFF;
	max-width: 275px;
}

.subderma-science__footnote {
	margin: 30px auto 0;
	width: 100%;
}

.subderma-science__mobile-copy {
	display: none;
}

.subderma-science__footnote p {
	margin: 0;
	font-size: 16px;
	line-height: 24px;
	color: rgba(255, 255, 255, 0.8);
	text-align: start;
}

@media (max-width: 749px) {
	.subderma-science__wrap {
		width: calc(100% - 30px);
		padding: 55px 0 40px;
		flex-direction: column;
		gap: 30px;
	}

	.subderma-science__copy {
		width: 100%;
		text-align: center;
		padding: 0;
	}

	.subderma-science__copy .subderma-science__body,
	.subderma-science__copy .subderma-btn {
		display: none;
	}

	.subderma-science__mosaic {
		flex-direction: column;
		width: 100%;
		gap: 24px;
	}

	.subderma-science__col {
		gap: 24px;
	}

	.subderma-science__card--r187 {
		aspect-ratio: auto;
		height: 187px;
	}

	.subderma-science__card--r432 {
		aspect-ratio: auto;
		height: 451px;
	}

	.subderma-science__card--r310 {
		aspect-ratio: auto;
		height: 319px;
	}

	.subderma-science__card-inner {
		padding: 20px;
	}

	.subderma-science__big {
		font-size: 40px;
		line-height: 52px;
	}

	.subderma-science__mobile-copy {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 24px;
		text-align: center;
	}

	.subderma-science__mobile-copy p {
		margin: 0;
		font-size: 16px;
		line-height: 28.8px;
	}

	.subderma-science__footnote {
		margin-top: 30px;
	}

	.subderma-science__footnote p {
		text-align: center;
		font-size: 12px;
		line-height: 18px;
	}
}

/* ---------------------------------------------------------------------
 * Guarantee block (home section 6) — transplanted from the live
 * reference's actual .protocol-main/.protocol_wrap markup and CSS (see
 * home-trust-guarantee.php's header comment for the full gap-resolution
 * story: the reference has no media element, the packaging/chart/seal
 * visual is baked into its background artwork).
 * ------------------------------------------------------------------- */
.subderma-guarantee {
	position: relative;
	background-color: var(--sd-navy);
	overflow: hidden;
}

.subderma-guarantee__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	/* Mirrors the reference artwork (authored for its RTL reading-end/left
	   placement) onto the LTR reading-end/right side — see the PHP
	   header comment for the accepted trade-off this implies. */
	transform: scaleX(-1);
}

.subderma-guarantee__wrap {
	position: relative;
	z-index: 1;
	max-width: var(--sd-content-max-width);
	margin-inline: auto;
	display: flex;
	padding: 70px 25px;
	justify-content: flex-start;
	align-items: center;
	min-height: 41.6vw;
}

.subderma-guarantee__copy {
	width: 100%;
	max-width: 596px;
	padding: 20px 0;
	color: #ffffff;
	text-align: start;
}

.subderma-guarantee__copy h2 {
	font-size: 45px;
	line-height: 59px;
	font-weight: 700;
	margin: 0;
}

.subderma-guarantee__body {
	margin: 24px 0;
}

.subderma-guarantee__body p {
	margin: 0;
	font-size: 16px;
	line-height: 30px;
}

@media (max-width: 749px) {
	.subderma-guarantee__bg {
		background-image: url(../images/home/guarantee-bg-mobile.svg) !important;
	}

	.subderma-guarantee__wrap {
		padding: 0;
		min-height: 80.3rem;
		align-items: flex-end;
		padding-bottom: 40px;
	}

	.subderma-guarantee__copy {
		max-width: 100%;
		padding: 0 24px;
		text-align: center;
	}

	.subderma-guarantee__copy h2 {
		font-size: 24px;
		line-height: 36px;
	}
}

/* ---------------------------------------------------------------------
 * Accordion (shared, native <details>/<summary>)
 * ------------------------------------------------------------------- */

.subderma-accordion {
	display: flex;
	flex-direction: column;
}

.subderma-accordion__item {
	border-block-end: 1px solid var(--sd-card-bg);
}

/* Measured question row (faq-spec.md + home aca attributes): 16px type,
   weight 400, navy. */
.subderma-accordion__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 18px;
	font-size: 16px;
	font-weight: 400;
	color: var(--sd-navy);
	cursor: pointer;
	list-style: none;
}

.subderma-accordion__question::-webkit-details-marker {
	display: none;
}

/* Measured caret: ~12×7 down-pointing glyph flipping 180° on open with
   NO transition (the reference toggle is an instant snap — do not add an
   artificial ease; Phase 1 explicitly measured transitionDuration 0s). */
.subderma-accordion__chevron {
	flex: none;
	width: 9px;
	height: 9px;
	border-inline-end: 1.5px solid var(--sd-navy);
	border-block-end: 1.5px solid var(--sd-navy);
	transform: rotate(45deg);
	margin-block-start: -4px;
}

.subderma-accordion__item[open] .subderma-accordion__chevron {
	transform: rotate(-135deg);
	margin-block-start: 4px;
}

.subderma-accordion__answer {
	padding-block-end: 20px;
	color: var(--sd-muted);
	font-size: 0.95rem;
	line-height: 1.6;
}

.subderma-accordion__answer p {
	margin: 0 0 10px;
}

/* Reference (mobile390-08 section crop): the paired-image FAQ instance
   (home section 8, PDP section 4 — both use .subderma-split--faq) shows
   each row as its own light-grey ROUNDED CARD with internal padding and
   a gap between cards — a visibly different treatment from the standalone
   FAQ page's plain hairline-divided list (faq.php doesn't use this
   modifier, so it's unaffected). */
.subderma-split--faq .subderma-accordion {
	gap: 10px;
}

.subderma-split--faq .subderma-accordion__item {
	border-block-end: 0;
	background: var(--sd-grey-panel);
	border-radius: 14px;
	padding-inline: 20px;
}

.subderma-split--faq .subderma-accordion__answer {
	padding-inline-end: 20px;
}

/* Card-style variant used on the shop/collection pill-tab row and FAQ
   page intro area shares the same base rules above. */

/* ---------------------------------------------------------------------
 * Icon value-prop row (shared)
 * ------------------------------------------------------------------- */

/* Measured About icon grid (about-spec.md block 1): section padding
   60px 0, 30px content gutters, 4× 300px cards @1440 (60px gaps in the
   1380 container), 2×2 @768, single centered ~230px-inset column @390. */
.subderma-icon-row {
	display: grid;
	column-gap: 60px;
	row-gap: 32px;
	margin-inline: auto;
	padding: 60px 30px;
	text-align: center;
}

/* Wraps section-heading + icon-row together (science.php's closing
   section) so heading and grid share one continuous grey band instead of
   the heading sitting on white above a separately-grey icon grid. */
.subderma-icon-row-section--grey {
	background: var(--sd-grey-panel);
	padding-block: 24px;
}

.subderma-icon-row-section--grey .subderma-section-heading {
	padding-block-start: 56px;
}

/* Measured science-basis heading: 40px/52px w600 centered. */
.subderma-icon-row-section--grey .subderma-section-heading__title {
	font-size: clamp(28px, 23.5px + 1.14vw, 40px);
	line-height: 1.3;
	font-weight: 600;
}

/* Science page's closing 2×2 grid reads much more spacious in the
   reference than a generic icon grid: icon-above-centered-text per item
   (confirmed via direct reference screenshot inspection — see this
   section's PHP header comment), wide row/column gaps, larger icons and
   a constrained text column so heading+body wrap to ~2 lines each.
   Scoped to this wrapper only so About's 4-across --centered variant is
   unaffected. */
.subderma-icon-row-section--grey .subderma-icon-row--centered {
	column-gap: 64px;
	row-gap: 64px;
	max-width: 1310px;
	padding-block: 56px 80px;
}

/* Measured science-basis icons: 60×60 rendered (120×120 retina source). */
.subderma-icon-row-section--grey .subderma-icon-row--centered .subderma-icon-row__icon {
	width: 60px;
	height: 60px;
	margin-block-end: 24px;
}

.subderma-icon-row-section--grey .subderma-icon-row--centered .subderma-icon-row__heading {
	font-size: 1.15rem;
	max-width: 320px;
	margin-inline: auto;
}

.subderma-icon-row-section--grey .subderma-icon-row--centered .subderma-icon-row__body {
	max-width: 320px;
	margin-inline: auto;
}

.subderma-icon-row--cols-2 { grid-template-columns: repeat(2, 1fr); }
.subderma-icon-row--cols-3 { grid-template-columns: repeat(3, 1fr); }
.subderma-icon-row--cols-4 { grid-template-columns: repeat(4, 1fr); }

.subderma-icon-row--beige { background: var(--sd-beige); }
.subderma-icon-row--grey { background: var(--sd-grey-panel); }

/* 'centered' (About): icon/circle above centered text. */
.subderma-icon-row--centered .subderma-icon-row__item {
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* 'inline' (Science closing grid): icon beside left-aligned text — a
   deliberately different presentation from About's, confirmed via direct
   pixel comparison against both reference screenshots (see this file's
   PHP header comment). */
.subderma-icon-row--inline {
	text-align: start;
	row-gap: 40px;
}

.subderma-icon-row--inline .subderma-icon-row__item {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.subderma-icon-row__icon {
	width: 44px;
	height: 44px;
	object-fit: contain;
	margin-block-end: 16px;
}

.subderma-icon-row--inline .subderma-icon-row__icon {
	width: 40px;
	height: 40px;
	margin-block-end: 0;
	flex: none;
}

/* Measured About icon badge: 64×64, border-radius 15px (rounded square,
   not a circle), background rgb(1,130,223), inner glyph 50×50 (42×42
   @390). */
.subderma-icon-row__circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 15px;
	margin-block-end: 16px;
}

.subderma-icon-row__circle .subderma-icon-row__icon {
	width: 50px;
	height: 50px;
	margin-block-end: 0;
	filter: brightness(0) invert(1);
}

.subderma-icon-row__circle--tan { background: #c9a26a; }
.subderma-icon-row__circle--blue { background: rgb(1, 130, 223); }

/* Measured item typography: heading 26px/33.8px w600 rgb(33,33,33);
   body 18px/27px rgb(78,78,78). */
.subderma-icon-row__heading {
	margin: 0 0 8px;
	font-size: clamp(24.96px, 24.6px + 0.028vw, 26px);
	line-height: 1.3;
	font-weight: 600;
	color: rgb(33, 33, 33);
}

.subderma-icon-row__body {
	margin: 0;
	font-size: 18px;
	color: rgb(78, 78, 78);
	line-height: 27px;
}

/* Measured collapse: 2×2 at tablet, single 230px-wide centered column
   with an 80px inset at 390. */
@media (min-width: 750px) and (max-width: 989px) {
	.subderma-icon-row--cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 749px) {
	.subderma-icon-row--cols-2,
	.subderma-icon-row--cols-3,
	.subderma-icon-row--cols-4 {
		grid-template-columns: 1fr;
	}

	.subderma-icon-row--centered {
		padding-inline: 20.5vw; /* measured: 80px inset @390 */
	}
}

/* ---------------------------------------------------------------------
 * Carousel (shared — CSS scroll-snap, no dependency)
 * ------------------------------------------------------------------- */

.subderma-carousel {
	position: relative;
	padding-inline: var(--sd-gutter);
}

.subderma-carousel__track {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scroll-behavior: smooth;
	padding-block-end: 8px;
	-webkit-overflow-scrolling: touch;
}

.subderma-carousel__track::-webkit-scrollbar {
	height: 6px;
}

.subderma-carousel__track::-webkit-scrollbar-thumb {
	background: var(--sd-card-bg);
	border-radius: 999px;
}

.subderma-carousel__item {
	flex: 0 0 auto;
	scroll-snap-align: start;
}

.subderma-carousel__controls {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-block-start: 16px;
}

.subderma-carousel__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid var(--sd-card-bg);
	background: #ffffff;
	color: var(--sd-navy);
	font-size: 1.1rem;
	cursor: pointer;
}

.subderma-carousel__arrow:hover {
	background: var(--sd-navy);
	color: #ffffff;
	border-color: var(--sd-navy);
}

/* --- Expert card --- */

.subderma-expert-card {
	position: relative;
	width: 312px;
	height: 300px;
	padding: 0 16px 16px;
	box-sizing: border-box;
	background: #f7f7f7;
	border-radius: 14px;
	text-align: center;
	overflow: hidden;
	border: 0;
	font: inherit;
	cursor: pointer;
	display: grid;
	grid-template-rows: 192px 92px;
	flex: 0 0 312px;
}

.subderma-expert-card__photo {
	display: block;
	width: 100% !important;
	height: 192px !important;
	max-height: 192px !important;
	object-fit: contain !important;
	object-position: center bottom !important;
	margin: 0 !important;
}

.subderma-expert-card__plus {
	position: absolute;
	inset: 16px auto auto 16px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #d9effc;
	color: #0071bc;
	font-size: 18px;
	line-height: 1;
}

.subderma-expert-card__info {
	position: relative;
	display: flex;
	height: 92px;
	min-height: 92px;
	padding: 11px 14px;
	box-sizing: border-box;
	border-radius: 14px;
	background: #ffffff;
	flex-direction: column;
	justify-content: center;
}

.subderma-expert-card__name {
	display: block;
	font-weight: 600;
	color: var(--sd-navy);
	font-size: 16px;
	line-height: 24px;
}

.subderma-expert-card__credential {
	display: block;
	margin-top: 4px;
	font-size: 14px;
	line-height: 21px;
	color: var(--sd-muted);
}

/* --- Testimonial card --- */

/* Measured reference section (home-spec.md section 9): 553px @1440. */
.subderma-testimonials {
	padding-block: 15px 14px;
}

/* Measured reference card (home-spec.md section 9): card 170×408, video
   thumbnail 170×302. */
.subderma-testimonial-card {
	/* 170px @1440 = 13.17% of the 1290px track; the reference's
	   section-height curve (539/553/581/630 across 1366–1920) tracks a
	   fluid card capped near 190px — min() reproduces both ends within
	   ~40px at the extreme width. */
	width: min(13.17%, 190px);
	min-width: 150px;
}

/* Measured tablet/mobile cards are LARGE, not the desktop 170px strip:
   thumbnail 419×744 @768 (~54.6vw) and 238×423 @390 (~61vw). */
@media (max-width: 989px) {
	.subderma-testimonial-card {
		width: 54.6vw;
		min-width: 0;
	}
}

@media (max-width: 749px) {
	.subderma-testimonial-card {
		width: 61vw;
	}
}

.subderma-testimonial-card__media {
	position: relative;
	display: block;
	aspect-ratio: 170 / 302;
	border-radius: 14px;
	overflow: hidden;
	background: var(--sd-card-bg);
}

.subderma-testimonial-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.subderma-testimonial-card__play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
}

.subderma-testimonial-card__play::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 7px 0 7px 11px;
	border-color: transparent transparent transparent var(--sd-navy);
}

.subderma-testimonial-card__stars {
	display: block;
	margin-block-start: 10px;
	font-size: 0.75rem;
	color: #e0a336;
	letter-spacing: 1px;
}

.subderma-testimonial-card__name {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--sd-navy);
}

/* ---------------------------------------------------------------------
 * Product grid + card (shared — homepage tabs, /products/, related items)
 * ------------------------------------------------------------------- */

.subderma-product-grid {
	display: grid;
	gap: 28px;
	max-width: var(--sd-content-max-width);
	margin-inline: auto;
}

.subderma-product-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Measured reference collection grid (products-spec.md A1): 4×315px
   columns in the 1290px 75px-gutter container, row-gap 30 / column-gap
   10 (an asymmetric gap pair, not one value). */
.subderma-product-grid--4 {
	grid-template-columns: repeat(4, 1fr);
	gap: 30px 10px;
	max-width: none;
	padding-inline: var(--sd-gutter);
}

.subderma-product-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}

/* Live-measured reference card image: 313×285 (ratio ≈1.10), not a
   perfect square — corrected from an earlier 1:1 assumption. */
.subderma-product-card__media {
	position: relative;
	display: block;
	aspect-ratio: 11 / 10;
	border-radius: 14px;
	overflow: hidden;
	background: var(--sd-card-bg);
	transition: transform 0.2s ease;
}

/* Measured hover (products-spec.md interactions): the IMAGE scales
   ~+2.5% inside its clipped media box (313×285 → 321×292), no card
   translate. */
.subderma-product-card:hover .subderma-product-card__image {
	transform: scale(1.025);
}

.subderma-product-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.2s ease;
}

/* Reference (live DOM measurement: badge-matat.sale, bg rgb(13,39,59) =
   --sd-navy, color white, 12px) — a solid dark-navy filled pill, not a
   white pill with dark text as an earlier pass had it. */
.subderma-product-card__badge {
	position: absolute;
	inset-block-start: 12px;
	inset-inline-start: 12px;
	padding: 5px 11px;
	border-radius: 999px;
	background: var(--sd-navy);
	color: #ffffff;
	font-size: 0.75rem;
	font-weight: 600;
}

/* Measured card title: 13px/16.9px w400 @1440; 12px/15.6 CENTERED @390.
   The reference card insets its text zone 13px from the card edge and
   pads 13px at the card bottom. */
.subderma-product-card__title {
	margin-block-start: 13px;
	margin-inline: 13px;
	font-weight: 400;
	font-size: 13px;
	line-height: 1.3;
	color: var(--sd-navy);
}

.subderma-product-card__description {
	margin-block-start: 4px;
	font-size: 0.82rem;
	color: var(--sd-muted);
	line-height: 1.4;
}

/* Measured price: 16px/24px w400 navy (the blue 14px/21 variant belongs
   to the kit per-product price phrase only — see __kit-note). Reference
   title→price gap measures ~60px (a hidden compare-price label row sits
   between them); 24px approximates the visible rhythm without dead
   markup, and the card carries the measured 13px bottom pad. */
.subderma-product-card__price {
	margin-block-start: 24px;
	margin-inline: 13px;
	margin-block-end: 13px;
	font-weight: 400;
	font-size: 16px;
	line-height: 24px;
	color: var(--sd-navy);
}

@media (max-width: 749px) {
	.subderma-product-grid--4 .subderma-product-card__title {
		font-size: 12px;
		text-align: center;
	}

	.subderma-product-grid--4 .subderma-product-card__price,
	.subderma-product-grid--4 .subderma-product-card__description {
		text-align: center;
	}
}

.subderma-price--compare {
	margin-inline-start: 8px;
	color: var(--sd-muted);
	text-decoration: line-through;
	font-weight: 400;
}

/* Measured kit price phrase: 14px/21px, rgb(0,105,181) blue — inline
   text, not an underlined link chip. */
.subderma-product-card__kit-note {
	display: block;
	margin-block-start: 2px;
	font-size: 14px;
	line-height: 21px;
	font-weight: 400;
	color: rgb(0, 105, 181);
	text-decoration: none;
}

/* Measured @768 (direct probe): the collection grid KEEPS 4 columns
   (147px each, same 30/10 gaps, 75px gutters) — despite the reference
   theme's "2-col-tablet-down" class name, the computed layout at 768 is
   4-col. Only the 3-col grids collapse to 2 here. */
@media (max-width: 989px) {
	.subderma-product-grid--3,
	.subderma-featured .subderma-product-grid--3 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 749px) {
	.subderma-product-grid--3,
	.subderma-product-grid--4 {
		grid-template-columns: 1fr;
	}
}

/* ---------------------------------------------------------------------
 * Tabs (homepage featured products — home-featured-products.php)
 * ------------------------------------------------------------------- */

/* Reference measured total section height: 603px (live DOM measurement,
   this refinement pass) — padding/margins tightened from an earlier,
   looser 64px/32px guess to land close to that instead of ~821px. */
.subderma-featured {
	padding-block: 0;
	background: #ffffff;
}

.subderma-featured__inner {
	padding-inline: var(--sd-gutter);
}

.subderma-tabs__list {
	display: inline-flex;
	justify-content: center;
	gap: 15px;
	margin-block-end: 24px;
	flex-wrap: wrap;
	padding: 11px 50px 15px;
	border-radius: 999px;
	background: #f2faff;
}

.subderma-tabs {
	text-align: center;
}

/* Measured reference (home-spec.md section 3): cards render 308px wide
   inside the 1290px content row — a 4-column track (4×308 + 3×~19.3 =
   1290) with the active tab populating 3 of the 4 slots. The old
   max-width:1000 3-col guess produced ~317px cards; the 4-col track
   matches both the measured card width and the measured container. */
.subderma-featured .subderma-product-grid--3 {
	grid-template-columns: repeat(4, 1fr);
	gap: 19px;
	/* The base product-grid caps at --sd-content-max-width; the measured
	   reference row is the full 75px-gutter container at every width
	   (627px-wide cards would otherwise stall past 1550px viewports). */
	max-width: none;
}

/* Measured @768 (ref section 1482px): a single CENTERED column of
   fixed-width 307px cards, 20px apart — not a 2-col wrap. This override
   must sit AFTER the 4-col base rule above to win the cascade at equal
   specificity. */
@media (min-width: 750px) and (max-width: 989px) {
	.subderma-featured .subderma-product-grid--3 {
		grid-template-columns: 307px;
		justify-content: center;
		gap: 20px;
	}
}

/* Reference (mobile390-03 section crop): on mobile this specific tabbed
   row is a horizontal-scroll single-row carousel with the next/previous
   card peeking at the viewport edge — NOT a full-width 1-column stack
   like the Products/collection page's grid (collection.md explicitly
   confirms 1-column stacking IS correct there). Scoped to
   .subderma-featured only so products.php's grid is untouched. */
@media (max-width: 749px) {
	.subderma-featured .subderma-product-grid--3 {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: 16px;
		padding-inline: var(--sd-gutter);
		margin-inline: calc(-1 * var(--sd-gutter));
		max-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.subderma-featured .subderma-product-grid--3 .subderma-product-card {
		flex: 0 0 82%;
		scroll-snap-align: start;
	}
}

.subderma-tabs__tab {
	position: relative;
	padding: 0 15px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--sd-muted);
	font-size: 16px;
	line-height: 24px;
	font-weight: 400;
	cursor: pointer;
}

.subderma-tabs__tab[aria-selected="true"] {
	background: transparent;
	color: var(--sd-navy);
	font-weight: 700;
}

.subderma-tabs__tab[aria-selected="true"]::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -5px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #0069b5;
	transform: translateX(-50%);
}

.subderma-featured .subderma-product-card {
	text-align: start;
}

.subderma-featured .subderma-product-card__description {
	margin: 12px 13px 0;
	font-size: 14px;
	line-height: 21px;
}

@media (max-width: 749px) {
	.subderma-tabs__list {
		width: 100%;
		padding: 12px 0 15px;
		gap: 40px;
		flex-wrap: nowrap;
	}

	.subderma-tabs__tab {
		padding: 0;
	}
}

/* ---------------------------------------------------------------------
 * Treatment selector (home section 4) — transplanted from the live
 * reference's actual .asthetic-wrap markup/CSS (see
 * reference/local-comparisons/home-transplant/extract/html/section-4-*.html)
 * rather than the earlier two-column illustration+cards guess. Real
 * composition: a single full-bleed background-image (the wireframe face
 * illustration) with a 3-up glass-card grid + bottom CTA overlaid
 * directly on top, the whole content block shifted toward the reading-
 * start side. NOTE: .subderma-face-map/.subderma-face-map__dot below
 * this block are unrelated and still used by the PDP timeline component
 * (product-timeline.php) — out of this task's home-only scope, left as-is.
 * ------------------------------------------------------------------- */
.subderma-treatment-selector {
	background: radial-gradient(ellipse 58% 82% at 52% 52%, #eee9df 0%, #f5f2ec 54%, #ffffff 100%);
}

.subderma-treatment-selector__wrap {
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	max-width: 1440px;
	margin-inline: auto;
	width: 100%;
	padding: 165px 0 80px;
}

.subderma-treatment-selector__inner {
	max-width: 600px;
	width: 100%;
	margin-inline-start: 500px;
}

.subderma-treatment-selector__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.subderma-treatment-selector .subderma-section-heading {
	margin-bottom: 30px;
}

.subderma-treatment-item {
	display: block;
	text-align: center;
	padding: 18px 10px 16px;
	background: rgba(248, 246, 242, 0.86);
	border: 1px solid rgba(255, 255, 255, 0.3);
	backdrop-filter: blur(30px);
	border-radius: 15px;
	transition: 0.3s all;
	text-decoration: none;
	color: inherit;
}

.subderma-treatment-item:hover {
	border-color: var(--sd-navy);
}

.subderma-treatment-item__icon {
	display: block;
	width: 60px;
	height: 60px;
	margin: 0 auto;
	border-radius: 50%;
	border: 1px solid #B6A284;
	overflow: hidden;
}

.subderma-treatment-item__icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.subderma-treatment-item__title {
	display: block;
	margin: 12px 0;
	font-size: 16px;
	line-height: 24px;
	color: var(--sd-navy);
}

.subderma-treatment-item__info {
	display: block;
}

.subderma-treatment-item__body {
	display: block;
	font-size: 13.5px;
	line-height: 20px;
	font-weight: 200;
	color: var(--sd-muted);
}

.subderma-treatment-selector__bottom {
	text-align: center;
	margin-top: 30px;
}

.subderma-treatment-selector__bottom h3 {
	font-size: 20px;
	line-height: 30px;
	font-weight: 200;
	margin: 0 0 16px;
	color: var(--sd-navy);
}

@media (max-width: 989px) {
	.subderma-treatment-selector {
		background: #ffffff;
	}

	.subderma-treatment-selector__wrap {
		background-image: url(../images/home/treatment-bg-mobile.png) !important;
		background-position: left top;
		padding: 30px 15px 14px;
		margin: 0;
		width: auto;
		max-width: 648px;
	}

	.subderma-treatment-selector__inner {
		margin: 0;
		max-width: 100%;
	}

	.subderma-treatment-selector__grid {
		display: flex;
		flex-direction: column;
	}

	.subderma-treatment-selector .subderma-section-heading {
		margin-bottom: 16px;
	}

	.subderma-treatment-item {
		display: flex;
		flex-direction: row;
		padding: 12px;
		gap: 24px;
		text-align: start;
		align-items: center;
	}

	.subderma-treatment-item__info {
		flex: 1;
	}

	.subderma-treatment-item__title {
		font-size: 18px;
		line-height: 27px;
		margin: 0 0 10px;
	}

	.subderma-treatment-item__body {
		font-size: 16px;
		line-height: 24px;
	}

	.subderma-treatment-item__icon {
		width: 65px;
		height: 65px;
		flex: none;
	}
}

/* --- Face map (PDP timeline only — components/brands/subderma/product-timeline.php) --- */

.subderma-face-map {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 18px;
	width: min(360px, 100%);
	margin-inline: auto;
	aspect-ratio: 1;
	padding: 40px;
	border-radius: 50%;
	border: 1.5px dashed rgba(13, 39, 59, 0.25);
}

.subderma-face-map__dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: rgba(13, 39, 59, 0.3);
	justify-self: center;
	align-self: center;
}

/* ---------------------------------------------------------------------
 * Feature strip (home section 5) — transplanted from the live
 * reference's actual .pf-section-wrapper/.pf-col/.pf-item/.pf-sphere
 * markup and CSS (reference/local-comparisons/home-transplant/extract/
 * html/section-5-*.html + extract/css/inline/27-*.css). Bordered card,
 * two side columns of benefit items each with a dashed connector line
 * toward the centered product video, 8 decorative floating spheres.
 * ------------------------------------------------------------------- */
.subderma-feature-strip {
	padding: 13px 0 27px;
	background: #ffffff;
}

.subderma-feature-strip__inner {
	max-width: none;
	margin-inline: auto;
	padding-inline: clamp(30px, 3.95vw, 75px);
}

.subderma-feature-strip__header {
	text-align: center;
	margin-bottom: 62px;
}

.subderma-feature-strip__wrapper {
	background: #FCFCFC;
	border-radius: 15px;
	border: 1px solid #F4F4F4;
	min-height: 620px;
	padding: 50px clamp(46px, 4.5vw, 86px) 58px;
	box-sizing: border-box;
}

.subderma-feature-strip__layout {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 5px;
}

.subderma-feature-strip__col {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 50px;
}

.subderma-feature-strip__item {
	display: flex;
	align-items: center;
	gap: 10px;
}

.subderma-feature-strip__col--left .subderma-feature-strip__item {
	justify-content: flex-end;
}

.subderma-feature-strip__text {
	flex: 1;
	min-width: 0;
	max-width: 271px;
}

.subderma-feature-strip__col--left .subderma-feature-strip__text {
	text-align: end;
}

.subderma-feature-strip__col--right .subderma-feature-strip__text {
	text-align: start;
}

.subderma-feature-strip__text h3 {
	font-size: 24px;
	margin: 0 0 8px;
	line-height: 36px;
	color: var(--sd-navy);
}

.subderma-feature-strip__text p {
	font-size: 16px;
	line-height: 24px;
	margin: 0;
	font-weight: 200;
	color: var(--sd-muted);
}

.subderma-feature-strip__line {
	flex: 0 0 80px;
	height: 0;
	border-top: 2px dashed #9ec5de;
}

.subderma-feature-strip__center {
	max-width: 27%;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.subderma-feature-strip__product {
	position: relative;
	min-height: 385px;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.subderma-feature-strip__video {
	width: 100%;
	max-width: 360px;
	height: auto;
	display: block;
	position: relative;
	z-index: 2;
	border-radius: 12px;
	transform: scale(1.16);
}

.subderma-sphere {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	z-index: 1;
}

.subderma-sphere--1 { width: 48px; height: 48px; background: var(--sd-blue-link, #0069b5); top: 8%; left: 5%; }
.subderma-sphere--2 { width: 30px; height: 30px; background: var(--sd-blue-link, #0069b5); top: 34%; left: 0; }
.subderma-sphere--3 { width: 20px; height: 20px; background: var(--sd-blue-link, #0069b5); top: 57%; left: 12%; }
.subderma-sphere--4 { width: 35px; height: 35px; background: var(--sd-blue-link, #0069b5); bottom: 10%; left: 16%; }
.subderma-sphere--5 { width: 40px; height: 40px; background: #c5d9e8; top: 6%; right: 8%; }
.subderma-sphere--6 { width: 25px; height: 25px; background: #c5d9e8; top: 30%; right: 2%; }
.subderma-sphere--7 { width: 18px; height: 18px; background: #c5d9e8; top: 55%; right: 10%; }
.subderma-sphere--8 { width: 30px; height: 30px; background: #c5d9e8; bottom: 12%; right: 5%; }

@media (min-width: 990px) {
	.subderma-feature-strip .subderma-sphere {
		display: none;
	}
}

.subderma-feature-strip__slider {
	display: none;
}

@media (max-width: 989px) {
	.subderma-feature-strip__video {
		transform: none;
	}

	.subderma-feature-strip__wrapper {
		min-height: 0;
		padding: 40px 44px;
	}

	.subderma-feature-strip__header {
		margin-bottom: 24px;
	}

	.subderma-feature-strip__col {
		display: none;
	}

	.subderma-feature-strip__center {
		max-width: 100%;
		width: 100%;
	}

	.subderma-feature-strip__product {
		min-height: auto;
		margin: 0 auto;
	}

	.subderma-feature-strip__slider {
		display: block;
		overflow: hidden;
		margin-top: 20px;
	}

	.subderma-feature-strip__track {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
	}

	.subderma-feature-strip__slide {
		flex: 0 0 100%;
		scroll-snap-align: start;
		text-align: center;
		padding: 0 20px;
	}

	.subderma-feature-strip__slide h3 {
		font-size: 24px;
		line-height: 36px;
		margin: 0 0 10px;
		color: var(--sd-navy);
	}

	.subderma-feature-strip__slide p {
		font-size: 16px;
		line-height: 24px;
		margin: 0;
		font-weight: 200;
		color: var(--sd-muted);
	}
}

/* ---------------------------------------------------------------------
 * Closing statement band (shared)
 * ------------------------------------------------------------------- */

/* Measured closing box (about-spec.md block 4): 40px block margins, box
   spans the full 30px-gutter container (1380 @1440), padding 50px 30px,
   radius 24, background rgb(246,246,246); statement 32px/51.2px w600
   rgb(33,33,33), centered, scaling to ~16px @390 (flat 297–314px section
   height across breakpoints). */
.subderma-closing-statement {
	padding-block: 40px;
}

.subderma-closing-statement__panel {
	margin-inline: 30px;
	padding: 50px 30px;
	border-radius: 24px;
	background: rgb(246, 246, 246);
	text-align: center;
}

.subderma-closing-statement__panel p {
	margin: 0;
	max-width: 1300px;
	margin-inline: auto;
	font-size: clamp(16px, 10.1px + 1.524vw, 32px);
	font-weight: 600;
	line-height: 1.6;
	color: rgb(33, 33, 33);
}

/* ---------------------------------------------------------------------
 * About page
 * ------------------------------------------------------------------- */

/* Measured reference hero (about-spec.md block 0): a flat 460px at every
   one of the 7 breakpoints (only the crop and the H1 size change), flex
   with vertically centered content, flat rgba(33,33,33,0.45) scrim over
   the cover photo, 30px content gutters, text at reading-start (the
   source hardcodes text-align:right — normalized to the logical `start`
   the rest of the page already uses, per the spec's own flag). */
.subderma-about-hero {
	position: relative;
	display: flex;
	align-items: center;
	height: 460px;
	overflow: hidden;
}

.subderma-about-hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.subderma-about-hero__scrim {
	position: absolute;
	inset: 0;
	background-color: rgba(33, 33, 33, 0.45);
}

.subderma-about-hero__overlay {
	position: relative;
	padding-inline: 30px;
	color: #ffffff;
	text-align: start;
}

/* Measured: H1 40px/48px w600 (33.3px/39.9 @390); subtitle 18px/28.8px
   rgba(255,255,255,0.88). */
.subderma-about-hero__title {
	margin: 0 0 8px;
	font-family: 'Prompt', sans-serif;
	font-weight: 600;
	font-size: clamp(33.3px, 30.8px + 0.638vw, 40px);
	line-height: clamp(39.9px, 36.9px + 0.771vw, 48px);
}

.subderma-about-hero__subtitle {
	margin: 0;
	font-size: 18px;
	line-height: 28.8px;
	color: rgba(255, 255, 255, 0.88);
}

/* ---------------------------------------------------------------------
 * Science page
 * ------------------------------------------------------------------- */

/* Measured reference (science-spec.md section 0): 633px flat from
   1366 up, 500px @768, 400px @390/430 — stepped, not fluid. Heading
   88px/96.8 w700. */
.subderma-science-hero {
	position: relative;
	min-height: 633px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 20px;
	padding-inline: 24px;
	overflow: hidden;
	background: linear-gradient(180deg, #2a91cf 0%, #8fc8ea 46%, #ffffff 100%);
}

@media (max-width: 989px) {
	.subderma-science-hero { min-height: 500px; }
}

@media (max-width: 749px) {
	.subderma-science-hero { min-height: 400px; }
}

/* Measured Science page rhythm (science-spec.json sweep): 80px gaps
   flank the experts section (hero→experts and experts→testimonial);
   every later section runs contiguous with its own padding. Mobile gap
   scales like the homepage's (50px @390). */
.page-template-science .subderma-experts {
	margin-block: var(--sd-section-gap);
}

.subderma-science-hero__heading {
	position: relative;
	z-index: 1;
	margin: 0;
	font-family: 'Prompt', sans-serif;
	font-weight: 700;
	font-size: clamp(2.6rem, 1.6rem + 4.5vw, 5.5rem);
	line-height: 1.1;
	color: #ffffff;
	text-align: center;
}

/* Added during the 1:1 breakpoint pass — see science-hero.php header
   comment: the live reference shows a 3-line intro paragraph under the
   heading that the written audit hadn't noted. */
.subderma-science-hero__subtitle {
	position: relative;
	z-index: 1;
	max-width: 640px;
	margin: 0;
	text-align: center;
	color: rgba(255, 255, 255, 0.9);
	font-size: 1rem;
	line-height: 1.6;
}

.subderma-science-hero__spheres {
	position: absolute;
	inset: 0;
}

.subderma-science-hero__sphere {
	position: absolute;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.05));
}

.subderma-science-hero__sphere:nth-child(1) { width: 40px; height: 40px; top: 15%; left: 12%; }
.subderma-science-hero__sphere:nth-child(2) { width: 20px; height: 20px; top: 60%; left: 8%; }
.subderma-science-hero__sphere:nth-child(3) { width: 28px; height: 28px; top: 30%; left: 85%; }
.subderma-science-hero__sphere:nth-child(4) { width: 14px; height: 14px; top: 70%; left: 90%; }
.subderma-science-hero__sphere:nth-child(5) { width: 34px; height: 34px; top: 80%; left: 30%; }
.subderma-science-hero__sphere:nth-child(6) { width: 18px; height: 18px; top: 10%; left: 50%; }
.subderma-science-hero__sphere:nth-child(7) { width: 24px; height: 24px; top: 45%; left: 70%; }
.subderma-science-hero__sphere:nth-child(8) { width: 16px; height: 16px; top: 25%; left: 25%; }
.subderma-science-hero__sphere:nth-child(9) { width: 30px; height: 30px; top: 55%; left: 45%; }
.subderma-science-hero__sphere:nth-child(10) { width: 12px; height: 12px; top: 85%; left: 65%; }

/* Reference measured 581px total (this section, home) — 552 @390. */
.subderma-experts {
	padding-block: 65px 70px;
}

@media (max-width: 989px) {
	.subderma-experts { padding-block: 99px; }
}

@media (max-width: 749px) {
	.subderma-experts { padding-block: 86px; }
}

.subderma-experts__inner {
	padding-inline: 0;
}

.subderma-experts .subderma-section-heading {
	max-width: 760px;
	min-height: 140px;
	margin-inline: auto;
	margin-bottom: 28px;
	padding-inline: 20px;
}

.subderma-experts .subderma-carousel {
	padding-inline: 0;
}

.subderma-experts .subderma-carousel__track {
	gap: 20px;
	scrollbar-width: none;
	padding-inline: max(24px, calc((100vw - 1640px) / 2));
}

.subderma-expert-modal {
	width: min(636px, calc(100vw - 32px));
	max-height: min(880px, calc(100vh - 32px));
	padding: 42px 48px 48px;
	border: 0;
	border-radius: 16px;
	color: var(--sd-navy);
	background: #fff;
	box-shadow: 0 30px 90px rgba(0,0,0,.28);
	text-align: center;
}
.subderma-expert-modal::backdrop { background: rgba(10,22,31,.62); }
.subderma-expert-modal__close { position:absolute; inset:22px auto auto 24px; border:0; background:transparent; font-size:38px; font-weight:200; cursor:pointer; }
.subderma-expert-modal__photo { width:180px; height:180px; object-fit:contain; margin:0 auto 20px; }
.subderma-expert-modal h3 { margin:0; font-size:26px; }
.subderma-expert-modal__credential { margin:8px 0 24px; color:var(--sd-muted); }
.subderma-expert-modal__body { text-align:left; font-size:16px; line-height:1.75; }
.subderma-expert-modal__body p { margin:0 0 18px; }
@media (max-width: 749px) { .subderma-expert-modal { padding:32px 24px; } .subderma-expert-card { width:280px; } }

.subderma-experts .subderma-carousel__track::-webkit-scrollbar {
	display: none;
}

.subderma-experts .subderma-carousel__controls {
	margin-block-start: 28px;
}

.subderma-experts .subderma-carousel__arrow {
	width: 40px;
	height: 40px;
	border-color: var(--sd-navy);
	font-size: 1.35rem;
}

/* Measured experts intro copy: 20px/30px w200 @1440, 16px/30 @390. */
.subderma-experts .subderma-section-heading__intro {
	font-size: clamp(16px, 14.5px + 0.38vw, 20px);
	line-height: 30px;
	font-weight: 200;
	color: var(--sd-ink);
}

/* Measured reference testimonial (science-spec.md section 2): background
   #F5FBFF, 60px block padding (its own inline <style>), quote 36px/43.92
   w500 rgb(24,29,39) centered, name line 18px/700. Section 512 @1440 /
   472 @390 / 347 @768. */
.subderma-pull-quote {
	background: #f5fbff;
	padding-block: 60px;
}

.subderma-pull-quote__inner {
	max-width: 980px;
	margin-inline: auto;
	padding-inline: 24px;
	text-align: center;
}

.subderma-pull-quote__photo {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	margin-block-end: 20px;
}

.subderma-pull-quote__quote p {
	margin: 0;
	font-size: clamp(20px, 14.1px + 1.524vw, 36px);
	font-weight: 500;
	line-height: 1.22;
	color: rgb(24, 29, 39);
}

.subderma-pull-quote__attribution {
	margin: 20px 0 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 18px;
	color: var(--sd-navy);
}

.subderma-pull-quote__attribution strong {
	display: block;
	color: var(--sd-navy);
}

/* Reference measured 618px total for this section; the poster image
   (400×447 portrait) was unconstrained and rendered ~690px tall alone at
   the column's natural width, single-handedly inflating the section to
   825px. */
.subderma-video-player {
	position: relative;
	max-height: 500px;
	border-radius: 16px;
	overflow: hidden;
	background: #000;
}

.subderma-video-player__poster {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.85;
}

.subderma-video-player__play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
}

.subderma-video-player__play::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 9px 0 9px 14px;
	border-color: transparent transparent transparent var(--sd-navy);
}

.subderma-video-player__duration {
	position: absolute;
	inset-block-end: 12px;
	inset-inline-start: 12px;
	padding: 4px 8px;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.5);
	color: #ffffff;
	font-size: 0.72rem;
}

.subderma-legend {
	display: flex;
	gap: 20px;
	margin-block-start: 12px;
	font-size: 0.8rem;
	color: var(--sd-muted);
}

.subderma-legend__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.subderma-legend__swatch {
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

.subderma-legend__swatch--ha { background: #3f6fb0; }
.subderma-legend__swatch--fragmented { background: #bcd4f2; }

/* Measured reference 3-step cards (science-spec.md section 5): section
   748px @1440 with 64px content insets (1312 container), cards 427×363
   (image 425×278, radius 12), number badge 48×48 radius 10 white with
   32px/500 rgb(71,71,71) text pinned 24px into the reading-start corner
   (mirrored from the source's physical top/right), title 18px/700/21.6
   start-aligned, ~15px between cards, 16px internal card gap. */
.subderma-stat-row {
	padding-block: 120px;
	background: #ffffff;
}

.subderma-stat-row__inner {
	padding-inline: 64px;
}

/* This section's heading follows the Science page's larger measured
   heading scale (40px/52 w600 — same as image-text/science-basis), not
   the homepage's 30px section-heading default. */
.subderma-stat-row .subderma-section-heading__title {
	font-size: clamp(28px, 23.5px + 1.14vw, 40px);
	line-height: 1.3;
	font-weight: 600;
}

.subderma-stat-row__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px;
}

.subderma-stat-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	text-align: start;
}

.subderma-stat-card__media {
	position: relative;
	aspect-ratio: 425 / 278;
	border-radius: 12px;
	overflow: hidden;
}

.subderma-stat-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.subderma-stat-card__number {
	position: absolute;
	inset-block-start: 24px;
	inset-inline-start: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 10px;
	background: #ffffff;
	color: rgb(71, 71, 71);
	font-weight: 500;
	font-size: 32px;
}

.subderma-stat-card__title {
	margin: 0;
	font-size: 18px;
	line-height: 21.6px;
	font-weight: 700;
	color: rgb(0, 0, 0);
}

@media (max-width: 989px) {
	.subderma-stat-row {
		padding-block: 64px;
	}

	.subderma-stat-row__inner {
		padding-inline: var(--sd-gutter);
	}

	.subderma-stat-row__grid {
		grid-template-columns: 1fr;
		gap: 12px; /* measured stacked-card gap @390 */
	}
}

/* ---------------------------------------------------------------------
 * FAQ page + Products/collection page shared intro
 * ------------------------------------------------------------------- */

.subderma-page-intro {
	padding: 20px var(--sd-gutter) 0;
	text-align: center;
}

/* Measured reference breadcrumb (listing + FAQ page): 16px desktop /
   ~15px mobile, 50% opacity, 20px bottom padding, start-aligned. */
.subderma-breadcrumb {
	padding-block-end: 20px;
	font-size: clamp(15px, 14.6px + 0.11vw, 16px);
	color: var(--sd-navy);
	opacity: 0.5;
	text-align: start;
}

.subderma-breadcrumb a {
	color: var(--sd-muted);
	text-decoration: underline;
}

.subderma-breadcrumb span[aria-hidden] {
	margin-inline: 6px;
}

/* Measured FAQ accordion container (faq-spec.md section 1): a 734px
   centered column, rows 704 wide (15px internal inset), section flat at
   661px from 768 up. Rows are a FLAT list — measured `details` shows no
   background, no border, no radius (this corrects an earlier speculative
   divider/centering treatment that the live page does not have). */
.subderma-faq-page {
	max-width: 734px;
	margin-inline: auto;
	padding: 0 15px 13px;
}

/* Measured FAQ page H1: 40px/50px w400 centered @1440 → ~20px/25 @390
   (the page title is the one element with the aggressive mobile scale).
   Shared with Products' page-intro since both use the same wrapper. */
.subderma-page-intro .subderma-section-heading__title {
	font-weight: 400;
	font-size: clamp(20px, 12.57px + 1.905vw, 40px);
	line-height: 1.25;
}

.subderma-faq-page .subderma-accordion__question {
	padding-block: 15px; /* measured: summary padding 15px 0 */
	font-size: 16px;
	line-height: 24px;
	font-weight: 400;
	text-align: start;
}

.subderma-faq-page .subderma-accordion__item {
	border-block-end: 1px solid rgba(13, 39, 59, 0.22);
	background: transparent;
	border-radius: 0;
}

.subderma-faq-page .subderma-accordion__item:first-child {
	border-block-start: 1px solid rgba(13, 39, 59, 0.22);
}

/* Measured answer text: 14px/25.2px, same navy as the question. */
.subderma-faq-page .subderma-accordion__answer {
	font-size: 14px;
	line-height: 25.2px;
	color: var(--sd-navy);
	text-align: start;
}

/* Measured section rhythm: 40px between the title block and the
   accordion (50px @390). */
.page-template-faq .subderma-page-intro {
	max-width: 1130px;
	margin-inline: auto;
	margin-block-end: 40px;
	padding-block-start: 150px;
}

body.page-id-24 .subderma-page-intro,
body.elementor-page-24 .subderma-page-intro {
	max-width: 1130px;
	margin-inline: auto;
	margin-block-end: 40px;
	padding-block-start: 150px;
}

@media (max-width: 749px) {
	.page-template-faq .subderma-page-intro {
		margin-block-end: 12.82vw;
	}

	body.page-id-24 .subderma-page-intro,
	body.elementor-page-24 .subderma-page-intro {
		margin-block-end: 12.82vw;
		padding-block-start: 130px;
	}
}

/* ---------------------------------------------------------------------
 * Products/collection page
 * ------------------------------------------------------------------- */

.subderma-shop {
	padding-block-end: 80px;
}

.subderma-shop--without-breadcrumb {
	padding-block-start: 150px;
}

/* Measured reference rhythm: breadcrumb-start → grid-start spans 191px
   @1440 (breadcrumb 41 / facets row 36 / 114px heading zone) and ~205px
   @390 — reproduced via the grid's own top margin below the title row. */
.subderma-shop .subderma-product-grid--4 {
	margin-block-start: 40px;
}

@media (max-width: 749px) {
	.subderma-shop .subderma-product-grid--4 {
		margin-block-start: 36px;
	}
}

.subderma-shop-tabs {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	width: min(480px, calc(100% - 30px));
	margin: 32px auto 0;
	padding: 0 18px;
	border-radius: 999px;
	background: #eff8fd;
}

.subderma-shop-tabs__button {
	position: relative;
	flex: 1 1 0;
	min-height: 49px;
	padding: 0 8px;
	border: 0;
	background: transparent;
	color: var(--sd-navy);
	font: inherit;
	cursor: pointer;
}

.subderma-shop-tabs__button[aria-pressed="true"] {
	font-weight: 600;
}

.subderma-shop-tabs__button[aria-pressed="true"]::after {
	content: '';
	position: absolute;
	inset-inline-start: 50%;
	inset-block-end: 7px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #0878bd;
	transform: translateX(-50%);
}

.page-template-home .subderma-featured .subderma-product-card {
	border: 1px solid rgba(13, 39, 59, 0.12);
}

.page-template-home .subderma-featured .subderma-product-card__media {
	border-radius: 0;
}

/* Phase 2 measured correction: the earlier speculative tab pill bar was
   removed — the reference /collections/all renders no tab row at all
   (products-spec.md Part A + direct probe 2026-08-21). */

/* Title row: sort/filter controls flank the "מוצרים" page heading on
   ONE shared row (confirmed via direct reference DOM measurement — the
   heading and controls all sit at the same top offset), not a heading
   row followed by a separate controls row underneath. Sort/filter
   render as plain text + icon, no button/box chrome (matches the
   reference exactly — collection.md's "renders as custom UI" text link,
   not a bordered control). */
.subderma-shop__title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-block-start: 4px;
	padding-inline: var(--sd-gutter);
	font-size: 0.82rem;
	font-weight: 500;
	color: var(--sd-ink);
}

.subderma-shop__control {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: none;
	white-space: nowrap;
	cursor: pointer;
}

/* Reference: 30px/500-weight, meaningfully smaller/heavier than the
   FAQ page's own 40px/400 title (see .subderma-page-intro override) —
   this page's title is not the shared page-intro pattern since it sits
   inline with the sort/filter row rather than stacked below the
   breadcrumb. */
.subderma-shop__heading {
	margin: 0;
	flex: 1 1 auto;
	text-align: center;
	font-family: 'Prompt', sans-serif;
	font-weight: 500;
	font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
	color: var(--sd-navy);
}

/* Reference (products-mobile-ref-top.png, live capture): mobile does NOT
   keep the single shared row — the heading sits alone on its own
   centered line, with sort (start) / filter (end) as a separate row
   underneath. flex-wrap + heading's flex-basis:100% forces exactly that
   two-line layout without needing separate markup per breakpoint. */
@media (max-width: 640px) {
	.subderma-shop__title-row {
		flex-wrap: wrap;
		row-gap: 12px;
	}

	.subderma-shop__heading {
		order: -1;
		flex-basis: 100%;
	}
}

/* ---------------------------------------------------------------------
 * Single product (PDP)
 * ------------------------------------------------------------------- */

/* Measured PDP hero (products-spec.md Part B + gap-resolution probe):
   gallery block (main 499×499 + 90px thumb rail) ≈ 605 vs 400px buy-box
   column, ~40px gap, in the standard 75px-gutter container. LTR mirror:
   gallery left / buy-box right (gallery-vs-thumb internal order was
   flagged unresolved in Phase 1; thumbs sit on the main image's outer
   side here, mirroring the reference's thumbs-outside placement). */
.subderma-pdp-hero {
	padding-block: 0 48px;
}

.subderma-pdp-hero__inner {
	display: grid;
	grid-template-columns: 605fr 400fr;
	gap: 40px;
	padding-inline: var(--sd-gutter);
}

/* LTR: gallery left, buy-box right — the PHP renders gallery first,
   buy-box second, which is already the correct LTR order (mirrored from
   the reference's RTL buy-box-right/gallery-left — product.md's single
   highest-impact PDP layout change). */

/* Measured: 90px thumbnail rail (88×88 thumbs, 10px gap), square main
   image; on mobile the rail is fully hidden (measured 0×0 box) and the
   main gallery goes full-bleed at a 390×299 crop. */
.subderma-product-gallery {
	display: grid;
	grid-template-columns: 90px 1fr;
	gap: 10px;
}

.subderma-product-gallery__main {
	position: relative;
	grid-column: 2;
	aspect-ratio: 1 / 1;
	border-radius: 16px;
	overflow: hidden;
	background: var(--sd-card-bg);
}

.subderma-product-gallery__main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Reference (product.md): zoom-icon control, main image's bottom-left
   corner. */
.subderma-product-gallery__zoom {
	position: absolute;
	inset-block-end: 14px;
	inset-inline-start: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #ffffff;
	color: var(--sd-navy);
	box-shadow: 0 2px 8px rgba(13, 39, 59, 0.15);
}

.subderma-product-gallery__thumbs {
	grid-column: 1;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.subderma-product-gallery__thumb {
	padding: 0;
	border: 1.5px solid transparent;
	border-radius: 10px;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: var(--sd-card-bg);
	cursor: pointer;
}

.subderma-product-gallery__thumb.is-active {
	border-color: var(--sd-navy);
}

.subderma-product-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Measured PDP title: 24px/36px w500 navy. */
.subderma-product-buybox__title {
	margin: 0 0 12px;
	font-family: 'Prompt', sans-serif;
	font-weight: 500;
	font-size: 24px;
	line-height: 36px;
	color: var(--sd-navy);
}

/* Measured price (Phase 2 gap-resolution probe, .price-item--sale):
   24px/36px w400, rgb(0,105,181) blue. */
.subderma-product-buybox__price {
	margin-block-end: 16px;
	font-size: 24px;
	line-height: 36px;
	font-weight: 400;
	color: rgb(0, 105, 181);
}

.subderma-product-buybox__price del {
	margin-inline-end: 8px;
	font-size: 16px;
	font-weight: 400;
	color: var(--sd-muted);
}

/* Measured description: 16px/28.8px w200 navy. */
.subderma-product-buybox__description {
	margin-block-end: 20px;
	font-size: 16px;
	line-height: 28.8px;
	font-weight: 200;
	color: var(--sd-navy);
}

.subderma-product-buybox__cta {
	margin-block-end: 16px;
}

/* Measured add-to-cart: 400×45, radius 40, padding 10px 20px, 18px type
   (17.97 @390, full-width minus 16px insets there). The reference's tan
   rgb(182,162,132) fill on this sample product is flagged in the spec as
   a possible kit-variant color — the brand's global navy stays until the
   variant system decides otherwise. */
.subderma-product-buybox__cta .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 400px;
	height: 45px;
	padding: 10px 20px;
	border-radius: 40px;
	background: var(--sd-navy);
	color: #ffffff;
	font-weight: 400;
	font-size: 18px;
	text-decoration: none;
	border: 0;
	cursor: pointer;
}

.subderma-product-buybox__preview-cta {
	display: flex;
	width: 100%;
}

/* Measured PDP accordion transition: 0.4s on the content's height
   (max-height 0.4s on the reference). Reproduced with the native
   ::details-content height interpolation where supported; elsewhere the
   toggle snaps — matching the FAQ page's own measured instant behavior. */
.subderma-product-buybox .subderma-accordion {
	interpolate-size: allow-keywords;
}

.subderma-product-buybox .subderma-accordion__item::details-content {
	height: 0;
	overflow: clip;
	transition: height 0.4s ease, content-visibility 0.4s allow-discrete;
}

.subderma-product-buybox .subderma-accordion__item[open]::details-content {
	height: auto;
}

.subderma-product-buybox__preview-note {
	margin: 8px 0 0;
	font-size: 0.78rem;
	color: var(--sd-muted);
	font-style: italic;
}

.subderma-product-buybox__secondary {
	display: flex;
	gap: 16px;
	margin-block-end: 20px;
	font-size: 0.85rem;
	color: var(--sd-muted);
}

.subderma-product-buybox__contact {
	padding: 14px 16px;
	margin-block-end: 24px;
	border-radius: 12px;
	background: var(--sd-grey-panel);
	font-size: 0.85rem;
}

.subderma-product-buybox__contact a {
	font-weight: 600;
	color: var(--sd-navy);
}

/* --- Timeline ("what to expect") --- */

.subderma-timeline {
	padding-block: 64px;
	background: #ffffff;
}

.subderma-timeline__inner {
	max-width: var(--sd-content-max-width);
	margin-inline: auto;
	padding-inline: 24px;
}

.subderma-timeline__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}

.subderma-timeline__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.subderma-timeline__item {
	display: grid;
	grid-template-columns: 32px 1fr;
	gap: 4px 16px;
}

.subderma-timeline__number {
	grid-row: span 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--sd-navy);
	color: #ffffff;
	font-weight: 700;
	font-size: 0.9rem;
}

.subderma-timeline__range {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--sd-muted);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.subderma-timeline__heading {
	font-weight: 600;
	color: var(--sd-navy);
}

.subderma-timeline__body {
	font-size: 0.88rem;
	color: var(--sd-muted);
}

@media (max-width: 989px) {
	.subderma-pdp-hero__inner,
	.subderma-timeline__row {
		grid-template-columns: 1fr;
	}

	.subderma-product-gallery {
		grid-template-columns: 1fr;
	}

	.subderma-product-gallery__main {
		grid-column: 1;
		/* Measured mobile gallery: full-bleed 390×299 crop, not square. */
		aspect-ratio: 390 / 299;
		border-radius: 0;
		margin-inline: calc(-1 * var(--sd-gutter));
	}

	/* Measured: the thumbnail rail is fully hidden below desktop
	   (0×0 box @390) — the gallery is swipe/tap only. */
	.subderma-product-gallery__thumbs {
		display: none;
	}
}
