/**
 * Cool Bear — PDP layout (single-cb_*).
 *
 * Above-the-fold rebuild (DESIGN.md §7 PDP contract / AUDIT-2026-06-11 D3,
 * D4, D19): white image well (featured render) on the left ~45% column;
 * eyebrow + title + spec strip + fitment + configurator/buy box stacked to
 * the right. Buy box (price + ATB + lead time) fully visible at 1440×900.
 * One accent moment for price, one yellow ATB button. Sharp corners,
 * hairline borders, no box-shadows.
 *
 * Mobile-first, breakpoints: 375 / 640 / 768 / 1024 / 1440.
 */

/* -------------------------------------------------------------------------
 *  Page wrapper — escape the constrained-layout default contentSize for
 *  PDPs only. main.cb-pdp uses a wider container.
 * ------------------------------------------------------------------------- */
.cb-pdp {
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--text);
	padding-bottom: var(--wp--preset--spacing--80);
}

/* Inner constrained container for above-fold + below-fold */
.cb-pdp__container {
	max-width: 1440px;
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--wp--preset--spacing--40);
	padding-right: var(--wp--preset--spacing--40);
}

@media (min-width: 1024px) {
	.cb-pdp__container {
		padding-left: var(--wp--preset--spacing--60);
		padding-right: var(--wp--preset--spacing--60);
	}
}

/* -------------------------------------------------------------------------
 *  Breadcrumbs — leaf crumb truncates instead of printing the full product
 *  name across multiple lines (AUDIT D19). Markup comes from cool-bear-core
 *  ([cb_breadcrumbs]) so this is CSS-only.
 * ------------------------------------------------------------------------- */
.cb-pdp .cb-breadcrumbs__list {
	flex-wrap: nowrap;
	overflow: hidden;
}

.cb-pdp .cb-breadcrumbs__item {
	white-space: nowrap;
	flex: 0 0 auto;
}

.cb-pdp .cb-breadcrumbs__item[aria-current="page"] {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	flex: 0 1 auto;
	min-width: 0;
	max-width: 44ch;
}

@media (max-width: 640px) {
	.cb-pdp .cb-breadcrumbs__item[aria-current="page"] {
		max-width: 40vw;
	}
}

/* -------------------------------------------------------------------------
 *  Above-the-fold band — image well + summary column
 * ------------------------------------------------------------------------- */
.cb-pdp__above {
	padding-top: var(--wp--preset--spacing--30);
}

.cb-pdp__hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--40);
	margin-top: var(--wp--preset--spacing--30);
	align-items: start;
}

@media (min-width: 1024px) {
	.cb-pdp__hero {
		/* ~45% image well / ~55% summary stack */
		grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
		gap: var(--wp--preset--spacing--60);
	}
}

/* -------------------------------------------------------------------------
 *  Image well — the print-catalogue device (DESIGN.md §6): white #F4F4F6,
 *  contain-fit, multiply blend, sharp corners, square-ish.
 * ------------------------------------------------------------------------- */
.cb-pdp__media {
	position: relative;
	background: #f4f4f6;
	border-radius: 0;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	width: 100%;
}

@media (min-width: 1024px) {
	/* Cap the well so the buy box stays in view at 1440×900 — the box goes
	   wider than tall when the cap bites ("square-ish", contain-fit). */
	.cb-pdp__media {
		max-height: min(62vh, 600px);
	}
}

/* Collapse the well entirely if the featured image is missing rather than
   showing an empty white square. */
.cb-pdp__media:not(:has(img)) {
	display: none;
}

.cb-pdp__media .cb-pdp__featured,
.cb-pdp__media .wp-block-post-featured-image {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: clamp(16px, 3vw, 32px);
}

.cb-pdp__media .cb-pdp__featured img,
.cb-pdp__media .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply; /* knocks pure-white render bgs into the well */
	border-radius: 0;
}

/* Brake caliper, coilover strut and forged-wheel renders are all TRANSPARENT
   PNGs (verified RGBA, alpha=0 bg — audit 2026-06-17), so the white #F4F4F6 well
   + multiply reads as an odd white box on the dark theme (operator feedback).
   Give all three a graphite well with normal blend and trimmed padding so the
   coloured part pops. (Parts keep the light well — that diagram is baked-white.) */
.single-cb_brake_kit .cb-pdp__media,
.single-cb_coilover .cb-pdp__media,
.single-cb_forged_wheel .cb-pdp__media {
	background: radial-gradient(125% 110% at 50% 28%, #2a2a31 0%, #1c1c21 62%, #141417 100%);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.single-cb_brake_kit .cb-pdp__media .cb-pdp__featured,
.single-cb_brake_kit .cb-pdp__media .wp-block-post-featured-image,
.single-cb_coilover .cb-pdp__media .cb-pdp__featured,
.single-cb_coilover .cb-pdp__media .wp-block-post-featured-image,
.single-cb_forged_wheel .cb-pdp__media .cb-pdp__featured,
.single-cb_forged_wheel .cb-pdp__media .wp-block-post-featured-image {
	padding: clamp(6px, 1.4vw, 14px);
}
.single-cb_brake_kit .cb-pdp__media .cb-pdp__featured img,
.single-cb_brake_kit .cb-pdp__media .wp-block-post-featured-image img,
.single-cb_coilover .cb-pdp__media .cb-pdp__featured img,
.single-cb_coilover .cb-pdp__media .wp-block-post-featured-image img,
.single-cb_forged_wheel .cb-pdp__media .cb-pdp__featured img,
.single-cb_forged_wheel .cb-pdp__media .wp-block-post-featured-image img {
	mix-blend-mode: normal;
}

/* When the well hosts a multi-image gallery (.cb-gallery--well, layout="well"),
   the wrapper must become a normal-flow column — a thumb rail can't live inside
   the clipped aspect-ratio:1/1 square. The square + per-CPT background treatment
   moves onto the gallery stage (gallery.css .cb-gallery--well .cb-gallery__stage),
   so strip them from the wrapper here. Body-class-scoped (0-1-2-0) so it BEATS
   the per-CPT .single-cb_X .cb-pdp__media background/box-shadow rules above
   (0-1-1-0) — a bare .cb-pdp__media:has(.cb-gallery--well) (0-0-2-0) would lose
   and you'd get double-graphite (wrapper + stage). All four CPTs listed: the
   three graphite CPTs to beat the gradient, plus parts for uniform safety
   (parts' base .cb-pdp__media is 0-0-1-0, so unscoped would have sufficed, but
   listing all four keeps it consistent). The empty-collapse rule
   :not(:has(img)) above is untouched — placeholder_gallery() emits no <img>. */
.single-cb_brake_kit .cb-pdp__media:has(.cb-gallery--well),
.single-cb_coilover .cb-pdp__media:has(.cb-gallery--well),
.single-cb_forged_wheel .cb-pdp__media:has(.cb-gallery--well),
.single-cb_part .cb-pdp__media:has(.cb-gallery--well) {
	aspect-ratio: auto;
	overflow: visible;
	background: transparent;
	box-shadow: none;
	max-height: none;
}

/* Same graphite treatment for the inline-float gallery figures in the overview. */
.single-cb_brake_kit .cb-pdp-gallery__figure,
.single-cb_brake_kit .cb-pdp-gallery img {
	background: transparent;
	mix-blend-mode: normal;
}

/* Per-disc-size strip on brake PDPs (overview tab) — labelled caliper renders
   so each available disc size is visible (operator brief 2026-06). */
.cb-brake-sizes { clear: both; margin: 8px 0 20px; }
.cb-brake-sizes__intro {
	font-size: 0.9rem;
	color: var(--wp--preset--color--text-subtle, #9a9aa2);
	margin: 0 0 12px;
}
.cb-brake-sizes__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 12px;
}
.cb-brake-size {
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 10px;
	border-radius: 10px;
	background: radial-gradient(120% 120% at 50% 30%, #26262c 0%, #18181c 70%, #131316 100%);
	border: 1px solid rgba(255, 255, 255, 0.05);
}
.cb-brake-size img { width: 100%; height: auto; object-fit: contain; }
.cb-brake-size__label {
	font-variant-numeric: tabular-nums;
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--text, #e8e8ea);
}

/* -------------------------------------------------------------------------
 *  "Your fitment" panel ([cb_wheel_your_fitment]) — above the wheel buy box;
 *  shows the selected car's PCD/bore/offset (made-to-order).
 * ------------------------------------------------------------------------- */
.cb-your-fitment {
	border: 1px solid rgba(214, 178, 94, 0.35);
	background: rgba(214, 178, 94, 0.06);
	border-radius: 12px;
	padding: 14px 16px;
	margin: 0 0 16px;
}
.cb-your-fitment--empty { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.03); }
.cb-your-fitment--empty p { margin: 0; color: var(--wp--preset--color--text-subtle, #9a9aa2); font-size: .9rem; }
.cb-your-fitment__car { margin: 0 0 10px; color: var(--wp--preset--color--text, #f4f4f6); font-size: .95rem; }
.cb-your-fitment__specs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cb-your-fitment__specs li {
	display: flex; flex-direction: column; gap: 2px;
	background: #0e0e11; border: 1px solid rgba(255,255,255,.08);
	border-radius: 8px; padding: 6px 12px;
}
.cb-your-fitment__specs span { font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: #9a9aa2; }
.cb-your-fitment__specs strong { font-variant-numeric: tabular-nums; color: var(--wp--preset--color--text, #f4f4f6); }
.cb-your-fitment__note { margin: 10px 0 0; font-size: .8rem; color: #cdb27a; }

/* -------------------------------------------------------------------------
 *  Per-series "why this style" blurb ([cb_pdp_series_blurb]) — leads the
 *  wheel Overview tab above the generic hero copy.
 * ------------------------------------------------------------------------- */
.cb-series-blurb { margin: 0 0 24px; max-width: 62ch; }
.cb-series-blurb__eyebrow {
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent, #d6b25e);
	margin: 0 0 6px;
}
.cb-series-blurb__headline {
	font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
	line-height: 1.15;
	margin: 0 0 12px;
	color: var(--wp--preset--color--text, #f4f4f6);
}
.cb-series-blurb__body {
	font-size: 1.02rem;
	line-height: 1.7;
	color: var(--wp--preset--color--text-subtle, #c4c4cc);
	margin: 0;
}

/* -------------------------------------------------------------------------
 *  Wheel design grid — every spoke design in a forged-wheel series
 *  ([cb_pdp_wheel_designs]). Light wells: the renders carry a white studio
 *  background, matching the wheel hero image well.
 * ------------------------------------------------------------------------- */
.cb-wheel-designs { clear: both; margin: 28px 0 8px; }
.cb-wheel-designs__intro {
	font-size: 0.9rem;
	color: var(--wp--preset--color--text-subtle, #9a9aa2);
	margin: 0 0 14px;
}
.cb-wheel-designs__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 14px;
}
.cb-wheel-design {
	margin: 0;
	border-radius: 12px;
	overflow: hidden;
	background: radial-gradient(120% 120% at 50% 30%, #26262c 0%, #18181c 70%, #131316 100%);
	border: 1px solid rgba(255, 255, 255, 0.06);
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cb-wheel-design:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.cb-wheel-design img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (max-width: 600px) {
	.cb-wheel-designs__grid { grid-template-columns: repeat(auto-fill, minmax(44%, 1fr)); }
}

/* -------------------------------------------------------------------------
 *  Summary column — eyebrow / title / spec strip / fitment / buy box
 * ------------------------------------------------------------------------- */
.cb-pdp__headline {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
	min-width: 0;
}

/* Range eyebrow — small tracked-caps label (DESIGN.md §3 signature move).
   Was a mono pill; demoted to a quiet eyebrow, keeps the dynamic anchor. */
.cb-pdp__type-pill {
	align-self: flex-start;
	display: inline-block;
	padding: 0;
	background: none;
	border: none;
	border-radius: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text-subtle);
	text-decoration: none;
	transition: color 150ms ease;
}

.cb-pdp__type-pill:hover {
	color: var(--wp--preset--color--text);
}

/* -------------------------------------------------------------------------
 *  "Go to Wheel Studio" capsule — sits directly under the wheel image well
 *  ([cb_wheel_studio_pill], wheel PDPs only). Secondary outline-accent CTA so
 *  it invites into the configurator without competing with the solid-yellow
 *  Add-to-basket button. Centred under the render (block-level flex + auto
 *  margins; the well is overflow:visible when it hosts the gallery, so the
 *  capsule flows below the image rather than being clipped).
 * ------------------------------------------------------------------------- */
.cb-pdp__studio-pill {
	display: flex;
	align-items: center;
	gap: 9px;
	width: fit-content;
	max-width: 100%;
	margin: 14px auto 2px;
	padding: 10px 20px;
	border: 1.5px solid var(--wp--preset--color--accent, #e8ff00);
	border-radius: 999px;
	background: transparent;
	color: var(--wp--preset--color--accent, #e8ff00);
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.cb-pdp__studio-pill:hover,
.cb-pdp__studio-pill:focus-visible {
	background: var(--wp--preset--color--accent, #e8ff00);
	color: var(--wp--preset--color--text-on-accent, #0d0d0f);
	border-color: var(--wp--preset--color--accent, #e8ff00);
}

.cb-pdp__studio-pill:focus-visible {
	outline: 2px solid var(--wp--preset--color--text, #f0f0f2);
	outline-offset: 2px;
}

.cb-pdp__studio-pill-ico {
	display: block;
	flex: none;
}

.cb-pdp__studio-pill-arw {
	font-size: 1.05em;
	transition: transform 150ms ease;
}

.cb-pdp__studio-pill:hover .cb-pdp__studio-pill-arw {
	transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
	.cb-pdp__studio-pill,
	.cb-pdp__studio-pill-arw {
		transition: none;
	}
}

/* Title — show the FULL vehicle title (operator: never truncate). Long titles
   wrap rather than ellipsing; the buy-box simply flows below. */
.cb-pdp__title {
	font-family: var(--wp--preset--font-family--sans);
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.01em;
	margin: 0;
	color: var(--wp--preset--color--text);
	overflow-wrap: break-word;
}

/* -------------------------------------------------------------------------
 *  Spec strip — SKU + at-a-glance chips in one tidy hairline-bound row.
 *  Labels are tracked caps, values mono (DESIGN.md §3).
 * ------------------------------------------------------------------------- */
.cb-pdp__specstrip {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px var(--wp--preset--spacing--40);
	padding: 10px 0;
	border-top: 1px solid var(--wp--preset--color--border);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.cb-pdp__sku {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--text-muted);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin: 0;
}

.cb-pdp__sku .cb-sku-label {
	color: var(--wp--preset--color--text-subtle);
	font-family: var(--wp--preset--font-family--sans);
	letter-spacing: 0.09em;
}

/* At-a-glance — flattened from a boxed grid into inline label/value pairs */
.cb-pdp__glance {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px var(--wp--preset--spacing--40);
	background: none;
	border: none;
	border-radius: 0;
	padding: 0;
	margin: 0;
	list-style: none;
}

.cb-pdp__glance-item {
	display: flex;
	flex-direction: row;
	align-items: baseline;
	gap: 6px;
}

.cb-pdp__glance-label {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.6875rem;
	color: var(--wp--preset--color--text-subtle);
	text-transform: uppercase;
	letter-spacing: 0.09em;
}

.cb-pdp__glance-value {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text);
	font-weight: 400;
}

/* -------------------------------------------------------------------------
 *  Top-mount options strip (quick 260612) — Overview tab. Name + small
 *  square thumbnail per available upper-mount; same hairline/caps-label
 *  language as the spec strip.
 * ------------------------------------------------------------------------- */
.cb-pdp__mounts {
	margin: var(--wp--preset--spacing--50) 0 0;
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid var(--wp--preset--color--border);
	clear: both; /* sit below the inline-float hero figure */
}

.cb-pdp__mounts-title {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.6875rem;
	font-weight: 600;
	color: var(--wp--preset--color--text-subtle);
	text-transform: uppercase;
	letter-spacing: 0.09em;
	margin: 0 0 12px;
}

.cb-pdp__mounts-list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--40);
	margin: 0;
	padding: 0;
	list-style: none;
}

.cb-pdp__mount {
	display: flex;
	align-items: center;
	gap: 10px;
}

.cb-pdp__mount-thumb {
	/* NO mix-blend-mode here: multiply against this dark band's #18181C
	   backdrop crushed every pixel to ≤9% luminance — the photos read as
	   greyed-out ghosts under an opaque mask (operator, 2026-07-10). The
	   vendor tiles are white-studio shots; let them read as intentional
	   white cards on the dark band. Sized up from 72px squares (which
	   double-cropped the 323x203 landscape source) to native aspect. */
	width: 168px;
	height: auto;
	aspect-ratio: 323 / 203;
	object-fit: cover;
	background: #fff;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
}

@media (max-width: 600px) {
	.cb-pdp__mount-thumb {
		width: 128px;
	}
}

.cb-pdp__mount-name {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text);
}

.cb-pdp__mount-code {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--text-subtle);
	letter-spacing: 0.05em;
}

/* One-line material rationale under a mount (260623-x2e item 6). When a mount
   carries a rationale the item stacks: [thumb] [name + code + why]. */
.cb-pdp__mount:has(.cb-pdp__mount-why) {
	align-items: flex-start;
}

.cb-pdp__mount-why {
	display: block;
	flex-basis: 100%;
	margin-top: 4px;
	max-width: 52ch;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.45;
	color: var(--wp--preset--color--text-muted);
}

/* Front vs rear split — two labelled mount blocks side by side, stacking on
   narrow viewports (260623-x2e item 6). */
.cb-pdp__mounts-split {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--50);
}

.cb-pdp__mount-axis {
	flex: 1 1 240px;
	min-width: 240px;
}

.cb-pdp__mount-axis-label {
	margin: 0 0 8px;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent, #e8ff00);
}

.cb-pdp__mount-axis .cb-pdp__mounts-list {
	flex-direction: column;
}

/* Bottom-of-PDP reassurance band — what top mounts ship with this kit. */
.cb-pdp__mounts--band {
	margin-top: var(--wp--preset--spacing--60, 2.5rem);
	padding: var(--wp--preset--spacing--50, 1.75rem) var(--wp--preset--spacing--50, 1.75rem);
	background: var(--wp--preset--color--surface, #18181c);
	border: 1px solid var(--wp--preset--color--border, #2e2e38);
	border-left: 3px solid var(--wp--preset--color--accent, #e8ff00);
	border-radius: 10px;
}

.cb-pdp__mounts--band .cb-pdp__mounts-title {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--text, #f0f0f2);
}

.cb-pdp__mounts-note {
	margin: 0 0 14px;
	max-width: 60ch;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
	color: var(--wp--preset--color--text-muted);
}

/* "What's in the kit" — brake bill-of-materials in the Overview tab */
.cb-pdp__kit-contents {
	margin: var(--wp--preset--spacing--50) 0 0;
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid var(--wp--preset--color--border);
	clear: both; /* sit below the inline-float caliper figure */
}

.cb-pdp__kit-title {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.6875rem;
	font-weight: 600;
	color: var(--wp--preset--color--text-subtle);
	text-transform: uppercase;
	letter-spacing: 0.09em;
	margin: 0 0 6px;
}

.cb-pdp__kit-axle {
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text-muted);
	margin: 0 0 12px;
}

.cb-pdp__kit-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.cb-pdp__kit-list { grid-template-columns: 1fr 1fr; column-gap: var(--wp--preset--spacing--40); }
}

.cb-pdp__kit-item {
	display: flex;
	align-items: baseline;
	gap: 10px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text);
}

.cb-pdp__kit-qty {
	flex: 0 0 auto;
	min-width: 2ch;
	font-weight: 600;
	color: var(--wp--preset--color--accent, var(--wp--preset--color--text));
	font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------------------
 *  Upgrade guide — explanation sections ([cb_pdp_upgrade_guide]); anchored
 *  from the configurator group "what's this?" links.
 * ------------------------------------------------------------------------- */
.cb-pdp__upgrades {
	margin: var(--wp--preset--spacing--50) 0 0;
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid var(--wp--preset--color--border);
	clear: both;
}

.cb-pdp__upgrades-title {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.6875rem;
	font-weight: 600;
	color: var(--wp--preset--color--text-subtle);
	text-transform: uppercase;
	letter-spacing: 0.09em;
	margin: 0 0 6px;
}

.cb-pdp__upgrades-intro {
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text-muted);
	margin: 0 0 var(--wp--preset--spacing--40);
}

.cb-pdp__upgrade {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	padding: var(--wp--preset--spacing--40) 0;
	border-top: 1px solid var(--wp--preset--color--border);
	scroll-margin-top: 90px; /* keep heading clear of any sticky header on anchor jump */
}

.cb-pdp__upgrade-heading {
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--body, 1rem);
	font-weight: 600;
	color: var(--wp--preset--color--text);
	margin: 0;
}

.cb-pdp__upgrade-body {
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.55;
	color: var(--wp--preset--color--text-muted);
}

.cb-pdp__upgrade-body p { margin: 0 0 10px; }
.cb-pdp__upgrade-body p:last-child { margin-bottom: 0; }
.cb-pdp__upgrade-body strong { color: var(--wp--preset--color--text); font-weight: 600; }

.cb-pdp__upgrade-media {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-self: start;
}

.cb-pdp__upgrade-figure {
	margin: 0;
	border-radius: 10px;
	overflow: hidden;
	background: #0c0c10;
	border: 1px solid var(--wp--preset--color--border);
}

.cb-pdp__upgrade-figure img { display: block; width: 100%; height: auto; }

@media (min-width: 720px) {
	.cb-pdp__upgrade {
		grid-template-columns: 1fr 240px;
		align-items: start;
		gap: var(--wp--preset--spacing--40);
	}
	.cb-pdp__upgrade-heading { grid-column: 1 / -1; }
}

/* Fitment summary line */
.cb-pdp__fitment {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text-muted);
	margin: 0;
}

.cb-pdp__fitment strong {
	color: var(--wp--preset--color--text);
	font-weight: 400;
}

/* -------------------------------------------------------------------------
 *  Component close-up strip ([cb_pdp_closeups], x2e item 7) — fills the
 *  right-column whitespace beneath the buy area with the kit's gallery DETAIL
 *  shots. Contained (never cropped) on a light surface well so the parts read
 *  as catalogue close-ups, matching the print-catalogue image device.
 * ------------------------------------------------------------------------- */
.cb-pdp__hero-closeups {
	margin-top: var(--wp--preset--spacing--20);
}

.cb-pdp__hero-closeups-title {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text-subtle);
	margin: 0 0 8px;
}

.cb-pdp__hero-closeups-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
	gap: 8px;
}

.cb-pdp__hero-closeups-item {
	margin: 0;
	background: #f4f4f6;
	border-radius: 0;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.cb-pdp__hero-closeups-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
	display: block;
}

/* -------------------------------------------------------------------------
 *  Buy box column — configurator panel + buy row (markup from
 *  [cb_pdp_wc_buybox], cool-bear-core). Restyle only; the form is functional.
 * ------------------------------------------------------------------------- */
.cb-pdp__buybox {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
	min-width: 0;
}

/* Configurator panel: surface + hairline, sharp corners, no shadow
   (DESIGN.md §4/§7 — overrides configurator.css radius/shadow). Compacted
   padding keeps the buy row inside the 1440×900 fold. */
.cb-pdp .cb-configurator {
	border-radius: 0;
	box-shadow: none;
	padding: var(--wp--preset--spacing--40);
	gap: var(--wp--preset--spacing--40);
}

/* ── D4: one price MOMENT ────────────────────────────────────────────────
   The sticky buy row carries THE price (accent, beside the ATB button).
   pdp-price-mirror.js keeps it synced to the configurator's live
   "Configured price" (+£80.00 option deltas), so the summary inside the
   panel is contextual feedback while the buy row stays the single
   conversion moment. Stray wpautop <br> inside the amount is neutralised. */
.cb-pdp .cb-buy-row__amount br {
	display: none;
}

/* Price is THE yellow-adjacent moment on the PDP (DESIGN.md §2 rule 3) */
.cb-pdp .cb-configurator__summary-price,
.cb-pdp .cb-buy-row__amount {
	color: var(--wp--preset--color--accent);
}

.cb-pdp .cb-buy-row__amount {
	font-size: clamp(1.35rem, 2vw, 1.625rem);
	font-weight: 700;
	letter-spacing: -0.01em;
}

.cb-pdp .cb-configurator__summary-price {
	font-size: clamp(1.5rem, 2.2vw, 1.875rem);
	letter-spacing: -0.01em;
}

.cb-pdp .cb-configurator__summary-price :is(.woocommerce-Price-amount, bdi),
.cb-pdp .cb-buy-row__amount :is(.price, .woocommerce-Price-amount, bdi) {
	color: inherit;
	font-family: inherit;
	font-weight: inherit;
}

/* Tracked-caps eyebrow treatment for the summary label */
.cb-pdp .cb-configurator__summary-label {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.6875rem;
	letter-spacing: 0.09em;
	color: var(--wp--preset--color--text-subtle);
}

/* Buy row controls — 2px max radius on buttons, dark-shell input (§4).
   Sticky at the viewport bottom inside the buy column: the configurator is
   ~800px tall, so without this the price/ATB sit below the 1440×900 fold
   (D3). Sticky keeps the one yellow commerce action permanently in view
   while spring rates are being configured. */
.cb-pdp .cb-buy-row {
	gap: var(--wp--preset--spacing--30);
	padding-top: var(--wp--preset--spacing--30);
	position: sticky;
	bottom: 0;
	z-index: 5;
	background: var(--wp--preset--color--base);
	border-top: 1px solid var(--wp--preset--color--border);
	padding-bottom: var(--wp--preset--spacing--30);
}

.cb-pdp .cb-buy-row__add {
	border-radius: 2px;
}

.cb-pdp .cb-buy-row__qty {
	border-radius: 2px;
	background-color: var(--wp--preset--color--surface-raised);
	border-color: var(--wp--preset--color--border-strong);
}

/* -------------------------------------------------------------------------
 *  Inline-float figure — the technical illustration floats inside the
 *  Overview tab body so paragraphs wrap around it (operator IA preference:
 *  "integrate images inline with text, not as a banner").
 * ------------------------------------------------------------------------- */
.cb-pdp__inline-figure {
	margin: 0 0 var(--wp--preset--spacing--40) 0;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0;
	padding: clamp(10px, 1.5vw, 14px);
}

.cb-pdp__inline-figure img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
	margin: 0 auto;
}

.cb-pdp__inline-figure__caption {
	margin-top: 8px;
	font-size: 0.8rem;
	color: var(--wp--preset--color--text-muted);
	text-align: center;
	letter-spacing: 0.02em;
}

/* Hero — the component infographic (560×900 source). Upsized from the
   original 288×463 lock per operator feedback 2026-06-06 ("a little bit
   small in the descriptions") — 400px wide keeps the magazine text wrap
   while making the component callouts legible. */
.cb-pdp__inline-figure--hero {
	width: 400px;
	max-width: 100%;
}
.cb-pdp__inline-figure--hero img {
	width: 400px;
	max-width: 100%;
	aspect-ratio: 560 / 900;
	height: auto;
	object-fit: contain;
}

/* Feature thumbnails — smaller, alternate sides for the magazine flow. */
.cb-pdp__inline-figure--feature {
	width: 220px;
	max-width: 100%;
}
.cb-pdp__inline-figure--feature img {
	height: 180px;
	object-fit: contain;
}

@media (max-width: 767px) {
	/* Stack everything above the prose on mobile. */
	.cb-pdp__inline-figure { margin-inline: auto; }
}

@media (min-width: 768px) {
	.cb-pdp__inline-figure--right {
		float: right;
		clear: right;
		margin: 0 0 var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
		shape-outside: inset(0);
	}
	.cb-pdp__inline-figure--left {
		float: left;
		clear: left;
		margin: 0 var(--wp--preset--spacing--40) var(--wp--preset--spacing--30) 0;
		shape-outside: inset(0);
	}
}

/* Clear any trailing float at the end of the tab panel. */
.cb-tabs__panel::after {
	content: "";
	display: block;
	clear: both;
}

/* -------------------------------------------------------------------------
 *  Lead-time chip (replaces paragraph from class-lead-time-display.php)
 * ------------------------------------------------------------------------- */
.cb-pdp__lead {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 12px;
	background-color: var(--wp--preset--color--surface-raised);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--text-muted);
	letter-spacing: 0.04em;
	align-self: flex-start;
}

.cb-pdp__lead::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: var(--wp--preset--color--success);
}

/* -------------------------------------------------------------------------
 *  Made-to-order disclaimer (kept — not a trust badge)
 * ------------------------------------------------------------------------- */
.cb-pdp__disclaimer {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text-muted);
	margin: 0;
	line-height: 1.5;
}

/* -------------------------------------------------------------------------
 *  Mobile fold (≤640px): image well first, then title, then buy box — the
 *  markup order already delivers this; tighten verticals so it all lands
 *  within ~2 viewports.
 * ------------------------------------------------------------------------- */
@media (max-width: 640px) {
	.cb-pdp__above {
		padding-top: var(--wp--preset--spacing--20);
	}

	.cb-pdp__hero {
		gap: var(--wp--preset--spacing--30);
		margin-top: var(--wp--preset--spacing--20);
	}

	.cb-pdp__media .cb-pdp__featured,
	.cb-pdp__media .wp-block-post-featured-image {
		padding: 12px;
	}

	.cb-pdp__headline {
		gap: var(--wp--preset--spacing--20);
	}

	.cb-pdp .cb-configurator {
		padding: var(--wp--preset--spacing--30);
		gap: var(--wp--preset--spacing--30);
	}
}

/* -------------------------------------------------------------------------
 *  Below-the-fold — tabs + sibling cohort + hero copy
 * ------------------------------------------------------------------------- */
.cb-pdp__below {
	margin-top: var(--wp--preset--spacing--70);
}

.cb-pdp__hero-copy {
	margin-top: var(--wp--preset--spacing--60);
	padding: var(--wp--preset--spacing--50);
	background-color: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0;
}

.cb-pdp__hero-copy .cb-hero-copy {
	max-width: 70ch;
	margin: 0;
}

/* Brake PDP: run the description copy the full width of the boxed layout (the
   68ch cap read as a narrow left-margined column — operator feedback). tabs.css
   caps #cb-tab-overview .cb-hero-copy at 68ch with an ID selector (specificity
   1,1,0); this override must match that scope or it silently loses. Brake-only —
   the coilover keeps its 68ch measure. */
body.single-cb_brake_kit #cb-tab-overview .cb-hero-copy,
body.single-cb_brake_kit #cb-tab-overview .cb-vendor-description,
body.single-cb_brake_kit .cb-pdp__hero-copy .cb-hero-copy {
	max-width: none;
}

/* -------------------------------------------------------------------------
 *  Section heading (used between tabs and sibling cohort)
 * ------------------------------------------------------------------------- */
.cb-section-heading {
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--xl);
	font-weight: 700;
	letter-spacing: -0.015em;
	margin: 0 0 var(--wp--preset--spacing--40);
	color: var(--wp--preset--color--text);
}

.cb-section-eyebrow {
	display: block;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.75rem;
	font-weight: 400;
	color: var(--wp--preset--color--text-subtle);
	text-transform: uppercase;
	letter-spacing: 0.09em;
	margin-bottom: 6px;
}

/* -------------------------------------------------------------------------
 *  Hide legacy theme blocks the new templates do not use
 * ------------------------------------------------------------------------- */
.cb-pdp .cb-coilover-guidance { display: none; } /* D15 — replaced by sibling cohort */

/* -------------------------------------------------------------------------
 *  Add-to-basket confirmation (AJAX) — buyer stays on the PDP after adding.
 * ------------------------------------------------------------------------- */
.cb-pdp__added {
	margin-top: var(--wp--preset--spacing--30);
	padding: var(--wp--preset--spacing--30);
	border: 1px solid var(--wp--preset--color--accent);
	border-radius: 8px;
	background: var(--wp--preset--color--surface);
}
.cb-pdp__added[hidden] { display: none; }
.cb-pdp__added-msg {
	margin: 0 0 var(--wp--preset--spacing--20);
	font-weight: 600;
}
.cb-pdp__added-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--20);
}
.cb-pdp__added-actions .cb-pdp__added-checkout,
.cb-pdp__added-actions .cb-pdp__added-continue {
	flex: 1 1 auto;
	text-align: center;
}
.cb-buy-row__add.is-loading { opacity: 0.6; pointer-events: none; }
