/* ==========================================================================
   CMSELL B2B — Product detail page (Stage 5 · measured alibaba PDP replica)
   Single-cm_product only.

   Stage 5 (2026-11-23): this revision replaces the earlier FY25-token guess.
   The reference was obtained as a real saved page (user-supplied Chrome
   "save complete webpage" of a logged-in alibaba.com PDP) and MEASURED via
   headless Chrome CDP computed styles. Tokens below are therefore measured
   values from the live reference page, scoped to .cm-pd so the homepage and
   other templates are untouched:

     ink #222 · secondary #666 · muted #71717a · line #e5e7eb
     surfaces #f4f4f4 · primary CTA #d64000 (solid, capsule) · banner #f00f0f
     tier price 20px/700 #222 + qty note 14px #666 · H1 18px/22 600
     section titles 20px/700 · module titles 16px/600-700 · chips #f4f4f4 r6
     layout: container 1380 (pad 40) · hero cols 461/500/307 gap 16
     lower cols 922/362 gap 16 · gallery sticky top 20 · rail sticky top 16
     header NOT sticky on PDP · section tab bar sticky top 0

   Stage 12 (2026-11-23): right rail (aside.cm-pd-side) rebuilt against the
   measured SectionRightThreeCol + module_ta_plus of the saved reference:
     card p-5 · rounded-lg(8) · shadow 0 0 8px 0 rgba(0,0,0,.05) (already ok)
     + position sticky top 20px (sticky follow, user request)
     heading 16px/600 lh22 + 20px chevron · items gap 12 · icon 20px green
       #22891f (sampled from reference icon PNG) · item title 14px/600 lh20
       · desc 13px/16 #767676 indented 26px, mt 8px (ta_plus gap-1/gap-2)
     shipping / TA-footer / finance blocks carry no cmsell data → intentionally
       NOT fabricated; action buttons already measured (h48 capsule 14/700).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Scoped head override: solid-white head, search capsule always visible.
   The reference PDP header is NOT sticky, so sticky is disabled here too.
   -------------------------------------------------------------------------- */
body.single-cm_product .cm-sitehead {
	position: relative;
	background-image: none;
	background-color: var(--cm-surface, #fff);
	box-shadow: 0 1px 0 var(--cm-head-line, #e5e7eb);
}
body.single-cm_product .cm-sitehead .cm-stickysearch { display: block; }
body.single-cm_product .cm-sitehead .cm-func__deliver,
body.single-cm_product .cm-sitehead .cm-func__locale { display: none; }
body.single-cm_product .cm-main { background: #fff; }
body.single-cm_product { background: #fff; }

/* --------------------------------------------------------------------------
   Reference tokens (measured 2026-11-23, see file header)
   -------------------------------------------------------------------------- */
.cm-pd {
	--cm-pd-ink: #222222;
	--cm-pd-ink-2: #666666;
	--cm-pd-muted: #71717a;
	--cm-pd-line: #e5e7eb;
	--cm-pd-gray: #f4f4f4;
	--cm-pd-cta: #d64000;
	--cm-pd-banner: #f00f0f;
	--cm-pd-green: #22891f; /* Stage 12: reference order-protection icon green (sampled) */
	--cm-pd-blue: #2f66b8;
	--cm-pd-blue-soft: #dceafc;
	--cm-pd-orange: #d64000;
	--cm-pd-price: #222222;
	--cm-pd-r: 12px;
	--cm-pd-r-sm: 8px;
	--cm-pd-capsule: 9999px;
	/* Measured reference stack (alibaba B2B sans → Inter → system). Scoped:
	   replicates one external page without rebranding the shared layer. */
	font-family: "Alibaba_B2B_Sans", Inter, "SF Pro Text", Roboto, "PingFang SC",
		"Helvetica Neue", Arial, sans-serif;
	color: var(--cm-pd-ink);

	/* (--cm-pd-max retired in Stage 10: containers now use the reference
	   calc(100% - 132px) width; the 960px breakpoint still resets it.) */
	padding-bottom: 48px;
}
.cm-pd .cm-container,
.cm-pd-hero,
.cm-pd-lower__in,
.cm-pd-crumb {
	/* Reference .three-col-container (measured 2026-11-23 @1680w):
	   width = 100% - 2×66px, no max cap, px-10 gutters → 1533 outer /
	   1453 inner. Grid ratios already match the reference flex 600/650/400
	   (hero) and 1032/405 (lower), so only the container changes. */
	width: calc(100% - 132px);
	max-width: none;
	margin-inline: auto;
	padding-inline: 40px;
}

/* Breadcrumb -------------------------------------------------------------- */
.cm-pd-crumb { padding-top: 12px; padding-bottom: 8px; }
.cm-pd-crumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.cm-pd-crumb li { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; line-height: 16px; color: var(--cm-pd-ink-2); }
.cm-pd-crumb a { color: var(--cm-pd-ink-2); }
.cm-pd-crumb a:hover { color: var(--cm-pd-cta); }
.cm-pd-crumb li:last-child span { color: var(--cm-pd-ink-2); }
.cm-pd-crumb__sep { display: inline-flex; color: var(--cm-pd-muted); }

/* --------------------------------------------------------------------------
   Hero: three plain columns on white — NO card frame (measured).
   cols 461 / 500 / 307, gap 16.
   -------------------------------------------------------------------------- */
.cm-pd-main {
	display: grid;
	grid-template-columns: minmax(0, 461fr) minmax(0, 500fr) minmax(0, 307fr);
	gap: 16px;
	align-items: start;
}
/* Stage 7: whole left column (gallery + supplier mini card) sticks at 20px. */
.cm-pd-colL { min-width: 0; position: sticky; top: 20px; }

/* --------------------------------------------------------------------------
   Gallery (Stage 8, measured): 70px vertical thumb rail left of the square
   stage; embla-style track with 16px slide gap; round arrows hidden at the
   ends; video player + Photos/Video capsule.
   -------------------------------------------------------------------------- */
.cm-pd-gallery {
	min-width: 0;
	position: relative;
	display: block;
}
/* Reference structure: the rail is absolutely positioned over the left edge
   and clipped to the stage height; the stage is pushed right by 82px. ---- */
.cm-pd-gallery__rail { position: absolute; left: 0; top: 0; bottom: 0; width: 70px; overflow: hidden; }
.cm-pd-gallery__railtrack { display: flex; flex-direction: column; gap: 12px; }
.cm-pd-thumbitem { flex: 0 0 70px; }
.cm-pd-thumb {
	position: relative; width: 70px; height: 70px; overflow: hidden;
	display: block; padding: 0; cursor: pointer;
	border: 1.5px solid transparent; border-radius: 8px;
	background: #fff;
}
/* Measured: inactive thumbs carry a 5% black overlay; active gets a 1.5px
   #222 border plus a 1px white inner ring. */
.cm-pd-thumb::after {
	content: ""; position: absolute; inset: 0; z-index: 1;
	background: #000; opacity: .05; pointer-events: none;
}
.cm-pd-thumb::before {
	content: ""; position: absolute; inset: 0; z-index: 2; display: none;
	border: 1px solid #fff; border-radius: 6px; pointer-events: none;
}
.cm-pd-thumb.is-active { border-color: #222; }
.cm-pd-thumb.is-active::before { display: block; }
.cm-pd-thumb.is-active::after { opacity: 0; }
.cm-pd-thumb__art { position: absolute; inset: 0; }
.cm-pd-thumb__art img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; }
.cm-pd-thumb__play {
	position: absolute; inset: 0; z-index: 3;
	display: flex; align-items: center; justify-content: center;
	color: #222; pointer-events: none;
}
/* Rail scroll arrows (measured 32x32 white circles, 8px from the ends). --- */
.cm-pd-rarrow {
	position: absolute; left: 50%; transform: translateX(-50%); z-index: 2;
	width: 32px; height: 32px; padding: 0; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	border-radius: 9999px; background: #fff; border: 1px solid rgba(0, 0, 0, .08);
	color: #222;
}
.cm-pd-rarrow--prev { top: 8px; }
.cm-pd-rarrow--next { bottom: 8px; }
.cm-pd-rarrow.is-hidden { display: none; }
/* Stage: square viewport + embla-style track (slides carry pl-16, track ml-16
   → 16px gap between slides, exactly like the measured reference). ------- */
.cm-pd-gallery__stage {
	position: relative; overflow: hidden;
	margin-left: 82px;
	aspect-ratio: 1 / 1;
	background: #fff;
	/* Stage 11: reference media frame carries an 8px radius (measured
	   .main-image-tc-media-frame) — clips photos and the video alike. */
	border-radius: 8px;
}
.cm-pd-gallery__track {
	display: flex; height: 100%; margin-left: -16px;
	transform: translate3d(0, 0, 0);
	touch-action: pan-y; will-change: transform;
	/* Measured curve, always on: hovering down the rail retargets mid-flight
	   instead of restarting, which is what makes it feel continuous. */
	transition: transform .42s cubic-bezier(.165, .84, .44, 1);
}
/* Instant writes opt out: drag follow, resize and the media jump. */
.cm-pd-gallery__track.is-instant { transition: none; }
.cm-pd-slide { flex: 0 0 100%; min-width: 0; height: 100%; padding-left: 16px; }
.cm-pd-slide > img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; }
.cm-pd-slide--video { cursor: pointer; }
/* Photo ↔ video dissolve: the outgoing frame is snapshotted into the exact box
   it occupied and faded out while the track has already jumped underneath, so
   the hand-off reads as one continuous picture instead of a slide streak. */
.cm-pd-gallery__xfade {
	position: absolute; z-index: 2; pointer-events: none;
	overflow: hidden; background: #fff; opacity: 1;
}
.cm-pd-gallery__xfade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-pd-gallery__xfade.is-video { background: #000; }
.cm-pd-gallery__xfade.is-video img { object-fit: contain; }
.cm-pd-gallery__xfade.is-out { opacity: 0; transition: opacity .28s ease; }
/* Round prev/next arrows (measured 32x32, 12px from the edges, vertically
   centered, white circle + lucide chevron 24px). ------------------------- */
.cm-pd-garrow {
	position: absolute; top: 50%; margin-top: -16px; z-index: 3;
	width: 32px; height: 32px; padding: 0; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	border-radius: 9999px; background: #fff; border: 1px solid rgba(0, 0, 0, .08);
	color: #222;
}
.cm-pd-garrow--prev { left: 12px; }
.cm-pd-garrow--next { right: 12px; }
.cm-pd-garrow.is-hidden { display: none; }
/* Video player (measured: full-bleed black, 64x64 big play with 30% black
   circle, 36px rgba(0,0,0,.5) control bar with play / time / progress /
   mute / fullscreen). --------------------------------------------------- */
.cm-pd-vplayer { position: relative; width: 100%; height: 100%; background: #000; }
.cm-pd-vplayer video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.cm-pd-vbig {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: 64px; height: 64px; padding: 0; cursor: pointer; z-index: 2;
	display: flex; align-items: center; justify-content: center;
	border: 0; border-radius: 50%;
	background: rgba(0, 0, 0, .3); color: #fff;
}
.cm-pd-vplayer.is-playing .cm-pd-vbig { display: none; }
.cm-pd-vbar {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
	height: 36px;
	display: flex; align-items: center; gap: 10px; padding: 0 10px;
	background: rgba(0, 0, 0, .5); color: #fff;
}
.cm-pd-vbar__btn {
	display: flex; align-items: center; justify-content: center;
	background: transparent; border: 0; padding: 0; cursor: pointer; color: #fff;
	flex: 0 0 auto;
}
.cm-pd-vbar__time {
	font-size: 13px; line-height: 18px; color: #fff; white-space: nowrap;
	font-variant-numeric: tabular-nums; flex: 0 0 auto;
}
.cm-pd-vbar__progress {
	position: relative; flex: 1; height: 3px; min-width: 40px;
	border-radius: 2px; background: rgba(255, 255, 255, .3); overflow: hidden;
}
.cm-pd-vbar__progress span { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #fff; }
.cm-pd-vicon--pause, .cm-pd-vicon--sound { display: none; }
.cm-pd-vplayer.is-playing .cm-pd-vicon--play { display: none; }
.cm-pd-vplayer.is-playing .cm-pd-vicon--pause { display: block; }
.cm-pd-vplayer.is-unmuted .cm-pd-vicon--muted { display: none; }
.cm-pd-vplayer.is-unmuted .cm-pd-vicon--sound { display: block; }
/* Legacy tone backgrounds (kept for products without real gallery images). */
.cm-pd-tone--a { background: var(--cm-pd-gray); }
.cm-pd-tone--b { background: #fff; }
.cm-pd-tone--c { background: var(--cm-pd-gray); }
.cm-pd-tone--d { background: var(--cm-pd-gray); }
.cm-pd-tone--e { background: #fff; }
.cm-pd-tone--f { background: var(--cm-pd-gray); }
/* Photos / Video capsule (measured: #f4f4f4 r8 p4 h34, buttons 28h r6 p4x8
   14px; active = white bg + 700; text #000). ----------------------------- */
.cm-pd-gallery__pill {
	display: flex; align-items: center; justify-content: center;
	gap: 8px; height: 34px; padding: 4px;
	border-radius: 8px; background: #f4f4f4;
	margin: 8px auto 0; width: max-content;
	/* centering inside the stage column (82px rail offset), like reference ml-[84px] */
	transform: translateX(41px);
}
.cm-pd-gallery__pill button {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 4px 8px; height: 26px; border-radius: 6px;
	background: transparent; border: 0; cursor: pointer;
	font-size: 14px; line-height: 18px; font-weight: 400; color: #000;
}
.cm-pd-gallery__pill button.is-active { background: #fff; font-weight: 700; color: #000; }
/* Legacy thumb strip (kept for products without real gallery images). ----- */
.cm-pd-gallery__thumbs {
	display: flex; flex-direction: column; gap: 4px;
}
.cm-pd-gallery__thumbs .cm-pd-thumb {
	position: relative; aspect-ratio: 1 / 1; overflow: hidden;
	border: 1px solid var(--cm-pd-line); border-radius: var(--cm-pd-r-sm);
	background: #fff; padding: 0; cursor: pointer; width: 70px;
}
.cm-pd-gallery__thumbs .cm-pd-thumb::before,
.cm-pd-gallery__thumbs .cm-pd-thumb::after { content: none; }
.cm-pd-gallery__thumbs .cm-pd-thumb:hover { border-color: var(--cm-pd-ink-2); }
.cm-pd-gallery__thumbs .cm-pd-thumb.is-active { border: 2px solid var(--cm-pd-ink); }
.cm-pd-gallery__main { position: relative; aspect-ratio: 1 / 1; }
.cm-pd-gallery__art { position: absolute; inset: 0; }
.cm-pd-gallery__art img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --------------------------------------------------------------------------
   Buy box (middle column) — Stage 7: single white card (r8, shadow
   0 0 8px rgba(0,0,0,.06), overflow hidden) like the measured reference;
   full-bleed promo strip (h46) at the card top, content padded 16px.
   -------------------------------------------------------------------------- */
.cm-pd-buybox {
	min-width: 0; font-size: 16px; line-height: 24px;
	background: #fff; border-radius: 8px;
	box-shadow: 0 0 8px 0 rgba(0, 0, 0, .06);
	overflow: hidden; padding: 0 16px 20px;
}
.cm-pd-buybox__promo {
	display: flex; align-items: center; gap: 8px;
	min-height: 46px; padding: 0 16px;
	margin: 0 -16px;
	font-size: 14px; font-weight: 600; line-height: 18px;
	color: var(--cm-pd-ink);
	/* Stage 11: reference promo strip (measured) is a 46px full-bleed bar
	   with a light-apricot gradient #ffeee7 -> #feddce, flush with the card
	   top (the card's rounded corners + overflow hidden provide the r8 top). */
	background: linear-gradient( 90deg, #ffeee7, #feddce );
}
.cm-pd-buybox__promo .cm-pd-badge {
	flex: none; padding: 3px 8px; border-radius: 4px;
	/* Reference left tag: white chip with an orange keyline. */
	background: #fff; color: var(--cm-pd-cta);
	box-shadow: inset 0 0 0 1px var(--cm-pd-cta);
	font-size: 12px; font-weight: 600;
}
.cm-pd-buybox__promo .cm-pd-promoarrow {
	flex: none; margin-left: auto;
	display: inline-flex; align-items: center; color: var(--cm-pd-ink-2);
}
.cm-pd-title {
	/* Stage 16: 20/28·600 — the reference title is the strongest first-screen
	   text; 18px read too light under the de-duplicated layout. */
	font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: normal;
	color: var(--cm-pd-ink); margin: 16px 0 6px;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
/* Heading ramp (measured reference, 2026-11-23): h1 18/22·600 · h2 20/26·700
   (see .cm-pd-section__head) · h3 16/22·700 · h4 14/20·600 · h5 14/20·600 ·
   h6 12/16·600 — all #222. Applies to module copy and editor content that
   has no more specific rule. */
.cm-pd h4 { font-size: 14px; font-weight: 600; line-height: 20px; color: var(--cm-pd-ink); }
.cm-pd h5 { font-size: 14px; font-weight: 600; line-height: 20px; color: var(--cm-pd-ink); }
.cm-pd h6 { font-size: 12px; font-weight: 600; line-height: 16px; color: var(--cm-pd-ink); }
/* Stage 7: rating row under the title (measured module_comment). */
.cm-pd-rating { margin: 2px 0 16px; }
.cm-pd-rating__stars { display: flex; align-items: center; gap: 4px; font-size: 14px; line-height: 20px; color: var(--cm-pd-ink); }
.cm-pd-rating__stars strong { font-weight: 700; }
.cm-pd-rating__stars span { color: var(--cm-pd-ink-2); }
.cm-pd-rating .cm-pd-star { color: #ff6a00; }
.cm-pd-rating .cm-pd-star svg { fill: currentColor; }
.cm-pd-rating__rank { margin: 6px 0 0; font-size: 14px; line-height: 20px; color: var(--cm-pd-ink-2); }
.cm-pd-rating__rankchip { color: var(--cm-pd-cta); font-weight: 600; margin-right: 2px; }
.cm-pd-price { margin-top: 0; padding: 0; border: 0; background: transparent; }
.cm-pd-price__tiers { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.cm-pd-tier {
	display: flex; flex-direction: column; gap: 0;
	padding: 0; border: 0; border-radius: 0;
	background: transparent; cursor: pointer;
}
/* Stage 7: tier price measured 28px/700 lh32, currency mark 14px/600. */
.cm-pd-tier__price { font-size: 28px; line-height: 32px; font-weight: 700; color: var(--cm-pd-price); font-family: var(--cm-font-num, inherit); }
.cm-pd-tier__price small { font-size: 14px; font-weight: 600; margin-right: 1px; }
.cm-pd-tier__qty { font-size: 14px; line-height: 20px; color: var(--cm-pd-ink-2); margin-top: 2px; white-space: nowrap; }
.cm-pd-tier__note { display: none; }
.cm-pd-price__foot { margin-top: 10px; font-size: 12px; color: var(--cm-pd-ink-2); }

/* Attribute row: label 16/700 + trailing capsule (e.g. variations & qty). */
.cm-pd-variation { margin-top: 14px; }
.cm-pd-variation__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cm-pd-variation__head .cm-pd-label { font-size: 16px; line-height: 22px; font-weight: 700; color: var(--cm-pd-ink); }
.cm-pd-variation__value { font-size: 14px; font-weight: 400; color: var(--cm-pd-ink-2); }
.cm-pd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
/* Stage 7: chips measured h36 r6 bg #f4f4f4 fw400; active = ink border. */
.cm-pd-chip {
	display: inline-flex; align-items: center;
	height: 36px; padding: 0 10px;
	border: 1px solid transparent; border-radius: 6px;
	background: var(--cm-pd-gray); color: var(--cm-pd-ink); font-size: 14px; line-height: 20px; font-weight: 400;
	cursor: pointer;
}
.cm-pd-chip:hover { border-color: var(--cm-pd-ink-2); }
.cm-pd-chip.is-active { border-color: var(--cm-pd-ink); background: var(--cm-pd-gray); font-weight: 400; }

.cm-pd-qtyrow { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.cm-pd-qtyrow .cm-pd-label { font-size: 16px; line-height: 22px; font-weight: 700; color: var(--cm-pd-ink); }
.cm-pd-qty { display: inline-flex; align-items: center; border: 1px solid var(--cm-pd-line); border-radius: var(--cm-pd-r-sm); overflow: hidden; }
.cm-pd-qty button { width: 32px; height: 32px; font-size: 16px; color: var(--cm-pd-ink-2); background: #fff; border: 0; cursor: pointer; }
.cm-pd-qty button:hover { background: var(--cm-pd-gray); }
.cm-pd-qty input { width: 56px; height: 32px; border: 0; border-inline: 1px solid var(--cm-pd-line); text-align: center; background: #fff; font-size: 14px; }
.cm-pd-qtyrow__unit { font-size: 14px; color: var(--cm-pd-ink-2); }

/* Customization options (measured: 16/600 title, 14px bullets). */
.cm-pd-custombox { margin-top: 20px; }
.cm-pd-custombox__title {
	display: flex; justify-content: space-between; align-items: center;
	font-size: 16px; font-weight: 600; color: var(--cm-pd-ink);
	margin-bottom: 8px;
}
.cm-pd-custom { display: grid; gap: 6px; }
.cm-pd-custom li { display: flex; align-items: baseline; gap: 8px; font-size: 14px; line-height: 20px; color: var(--cm-pd-ink); }
.cm-pd-custom li::before { content: '•'; color: var(--cm-pd-ink-2); }
.cm-pd-custom strong { font-weight: 400; color: var(--cm-pd-ink); }
.cm-pd-custom small { font-size: 14px; color: var(--cm-pd-ink-2); }
.cm-pd-custombox__more { display: inline-flex; margin-top: 8px; font-size: 12px; color: var(--cm-pd-ink-2); text-decoration: underline; }

/* Key attributes (Stage 7 measured): 16/700 title + #f8f8f8 r8 card with
   label(2fr)/value(3fr) rows, bottom hairline #ddd on the block. */
.cm-pd-keyattrs {
	margin-top: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid #ddd;
}
.cm-pd-keyattrs__title { margin: 0 0 12px; font-size: 16px; line-height: 22px; font-weight: 700; color: var(--cm-pd-ink); }
.cm-pd-keyattrs__card { display: flex; flex-direction: column; gap: 10px; padding: 12px 16px; border-radius: var(--cm-pd-r-sm); background: #f8f8f8; }
.cm-pd-keyattr {
	display: grid; grid-template-columns: 2fr 3fr; gap: 12px;
	padding: 0; border: 0; border-radius: 0; background: transparent;
}
.cm-pd-keyattr span { font-size: 14px; line-height: 20px; color: var(--cm-pd-ink-2); }
.cm-pd-keyattr strong { font-size: 16px; line-height: 20px; color: var(--cm-pd-ink); font-weight: 600; text-align: left; }

/* --------------------------------------------------------------------------
   Right column (307px) — Stage 7: single white card (r8, shadow, p20) like
   the measured reference right panel; protection block + capsule CTAs.
   -------------------------------------------------------------------------- */
.cm-pd-side {
	min-width: 0; display: block;
	/* Stage 12: sticky follow — the rail card tracks the viewport at the same
	   20px offset as the left gallery column while the buybox scrolls. */
	position: sticky; top: 20px; align-self: start;
	background: #fff; border-radius: 8px;
	/* Stage 11: reference right panel uses shadow alpha .05 (the colM card
	   stays .06, both measured). */
	box-shadow: 0 0 8px 0 rgba(0, 0, 0, .05);
	padding: 20px;
}
.cm-pd-side__card { border: 0; border-radius: 0; padding: 0; margin-bottom: 16px; background: transparent; }
.cm-pd-side__title { display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: 600; line-height: 22px; color: var(--cm-pd-ink); margin-bottom: 12px; }
/* Stage 12: reference chevron is a 20px icon at the heading's right edge. */
.cm-pd-side__title svg { width: 20px; height: 20px; color: var(--cm-pd-ink); }
/* Stage 12: ta_plus list — items stacked with 12px gap; each item is a
   20px-icon column + text column (6px gutter → text starts at 26px, exactly
   the reference ms-[26px] on descriptions). */
.cm-pd-assurance { display: grid; gap: 12px; margin: 0; padding: 0; border: 0; list-style: none; }
.cm-pd-assurance li { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 6px; align-items: start; font-size: 13px; line-height: 16px; color: var(--cm-pd-muted); }
.cm-pd-assurance__icon { display: inline-flex; color: var(--cm-pd-green); flex: 0 0 auto; margin-top: 1px; }
.cm-pd-assurance__icon svg { width: 20px; height: 20px; }
.cm-pd-assurance strong { font-size: 14px; font-weight: 600; line-height: 20px; color: var(--cm-pd-ink); display: block; }
.cm-pd-assurance small { font-size: 13px; line-height: 16px; color: var(--cm-pd-muted); display: block; margin-top: 8px; }

.cm-pd-supplier { min-width: 0; padding: 16px; border: 1px solid var(--cm-pd-line); border-radius: var(--cm-pd-r-sm); background: #fff; }
.cm-pd-supplier__head { display: flex; gap: 10px; align-items: flex-start; }
.cm-pd-supplier__mark { display: inline-flex; padding: 8px; border-radius: var(--cm-pd-r-sm); background: var(--cm-pd-gray); color: var(--cm-pd-ink-2); flex: 0 0 auto; }
.cm-pd-supplier__name { display: block; font-size: 14px; font-weight: 700; color: var(--cm-pd-ink); line-height: 1.4; }
.cm-pd-supplier__type { display: block; margin-top: 3px; font-size: 12px; color: var(--cm-pd-muted); }
.cm-pd-supplier__verified { display: flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 12px; color: var(--cm-pd-ink-2); font-weight: 600; }
.cm-pd-supplier__verified svg { color: #1a7f37; }
.cm-pd-supplier__metrics { margin: 12px 0 0; display: grid; gap: 8px; }
.cm-pd-supplier__metrics > div { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.cm-pd-supplier__metrics dt { color: var(--cm-pd-muted); }
.cm-pd-supplier__metrics dd { margin: 0; font-weight: 600; color: var(--cm-pd-ink); }
.cm-pd-supplier__certs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cm-pd-supplier__certs span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border: 1px solid var(--cm-pd-line); border-radius: var(--cm-pd-r-sm); font-size: 12px; color: var(--cm-pd-ink-2); }
.cm-pd-supplier__link { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; font-size: 12px; color: var(--cm-pd-ink-2); }

/* Stage 7: supplier mini card — measured light-blue card under the gallery
   (#e8f4ff, r8, p12, mt16, h≈192). */
.cm-pd-suppliermini {
	margin-top: 16px; padding: 12px;
	background: #e8f4ff; border-radius: 8px;
}
.cm-pd-suppliermini__head { display: flex; gap: 10px; align-items: center; }
.cm-pd-suppliermini__mark { display: inline-flex; padding: 8px; border-radius: 8px; background: #fff; color: var(--cm-pd-ink-2); flex: 0 0 auto; }
.cm-pd-suppliermini__name { display: block; font-size: 14px; font-weight: 700; color: var(--cm-pd-ink); line-height: 1.4; }
.cm-pd-suppliermini__type { display: block; margin-top: 2px; font-size: 12px; color: var(--cm-pd-ink-2); }
.cm-pd-suppliermini__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; }
.cm-pd-suppliermini__metrics dt { font-size: 11px; line-height: 15px; color: var(--cm-pd-ink-2); }
.cm-pd-suppliermini__metrics dd { margin: 0; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--cm-pd-ink); }
.cm-pd-suppliermini__certs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cm-pd-suppliermini__certs span { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 4px; background: #fff; font-size: 12px; color: var(--cm-pd-ink-2); }
.cm-pd-suppliermini__link { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 12px; color: var(--cm-pd-ink-2); }

/* Capsule buttons (measured: #d64000 solid + white/#222 outline, h48, 14/700).
   States measured on the reference page: primary hover/active = opacity .9
   (transition-colors .15s, no scale); outline hover resolves hover:bg-accent
   where accent == background (#fff), i.e. no visual change. */
.cm-pd-ctas { display: grid; gap: 12px; margin-top: 0; }
.cm-pd-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 7px;
	min-height: 48px; padding: 8px 16px; border-radius: var(--cm-pd-capsule);
	font-size: 14px; font-weight: 700; line-height: 20px; width: 100%;
	transition: color .15s ease, background-color .15s ease,
		border-color .15s ease, opacity .15s ease;
}
.cm-pd-btn--primary { background: var(--cm-pd-cta); color: #fff; border: 0; }
.cm-pd-btn--primary:hover { opacity: .9; }
.cm-pd-btn--primary:active { opacity: .9; }
.cm-pd-btn--outline { border: 1px solid var(--cm-pd-ink); color: var(--cm-pd-ink); background: #fff; }
.cm-pd-btn--outline:hover { background: #fff; }

/* --------------------------------------------------------------------------
   Lower zone: 922 / 362 two columns; left holds tabs + sections, right is
   the sticky rail card (measured: sticky, white card r8).
   -------------------------------------------------------------------------- */
.cm-pd-lower { margin-top: 0; }
.cm-pd-lower__in {
	display: grid;
	grid-template-columns: minmax(0, 922fr) minmax(0, 362fr);
	gap: 16px;
	align-items: start;
}
.cm-pd-lower__left { min-width: 0; }
.cm-pd-rail {
	position: sticky; top: 16px;
	min-width: 0; padding: 20px; margin-top: 24px;
	border: 0; border-radius: var(--cm-pd-r-sm);
	box-shadow: 0 0 8px 0 rgba(0, 0, 0, .06);
	background: #fff;
}
.cm-pd-rail__promo { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--cm-pd-blue); margin-bottom: 12px; }
.cm-pd-rail__promo .cm-pd-badge { padding: 2px 6px; border-radius: 4px; background: var(--cm-pd-blue-soft); color: var(--cm-pd-blue); font-size: 12px; font-weight: 600; }
.cm-pd-rail .cm-pd-price { margin-top: 0; }
.cm-pd-rail__sample {
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	margin-top: 12px; padding: 8px 12px;
	border-radius: var(--cm-pd-r-sm); background: var(--cm-pd-gray);
	font-size: 14px; color: var(--cm-pd-ink);
}
.cm-pd-rail__sample strong { font-weight: 700; }
.cm-pd-rail__samplebtn {
	display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
	border: 1px solid var(--cm-pd-ink); border-radius: var(--cm-pd-capsule);
	background: #fff; font-size: 12px; font-weight: 600; color: var(--cm-pd-ink);
}
.cm-pd-rail__moq { margin-top: 10px; font-size: 12px; color: var(--cm-pd-ink-2); }
.cm-pd-rail .cm-pd-ctas { margin-top: 16px; }
.cm-pd-rail .cm-pd-chips { margin-top: 14px; }

/* Sticky section tabs (measured: h68, 16px, gap 32, active 700 #222 with
   dark underline; sticky directly under the viewport top on PDP). -------- */
.cm-pd-tabs {
	position: sticky; top: 0; z-index: 60; margin-top: 0;
	border-bottom: 1px solid var(--cm-pd-line); background: #fff;
}
.cm-pd-tabs__in { display: flex; gap: 32px; overflow-x: auto; }
.cm-pd-tabs__link {
	position: relative; display: inline-flex; align-items: center; white-space: nowrap;
	padding: 22px 0; font-size: 16px; line-height: 24px; color: var(--cm-pd-muted);
}
.cm-pd-tabs__link:hover { color: var(--cm-pd-ink); }
.cm-pd-tabs__link.is-active { color: var(--cm-pd-ink); font-weight: 700; }
.cm-pd-tabs__link.is-active::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
	background: var(--cm-pd-ink); border-radius: 0;
}

/* Sections: plain white modules, NO card borders (measured). -------------- */
.cm-pd-sections { padding-top: 32px; }
/* Module rhythm (measured reference): every module after the first sits
   mt-8 below the previous one and opens with a 1px #ddd divider + pt-8
   (32px above, divider, 32px below the heading). First module: 32px top. */
.cm-pd-section { margin-bottom: 0; padding: 0; border: 0; background: transparent; scroll-margin-top: 68px; }
.cm-pd-section + .cm-pd-section { margin-top: 32px; padding-top: 32px; border-top: 1px solid #ddd; }
/* The first module inside the tabbed block has no preceding section sibling,
   so give it the same 32px pre-gap without a divider (reference mt-8). */
.cm-pd-sections > .cm-pd-section:first-child { margin-top: 32px; }
.cm-pd-section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.cm-pd-section__head h2 { font-size: 20px; line-height: 26px; font-weight: 700; color: var(--cm-pd-ink); }
.cm-pd-section__more { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; color: var(--cm-pd-blue); }

/* Key attributes table (full section): explicit grid rows with hairlines
   (Stage 7: base .cm-pd-keyattr is now a 2fr/3fr grid — pin table layout). */
.cm-pd-keyattrtable { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.cm-pd-keyattrtable .cm-pd-keyattr {
	display: grid; grid-template-columns: 150px 1fr; gap: 24px;
	padding: 10px 0; border-radius: 0; background: transparent;
	border-bottom: 1px solid var(--cm-pd-line);
}
.cm-pd-keyattrtable .cm-pd-keyattr span { font-size: 14px; line-height: 22px; color: var(--cm-pd-ink-2); }
.cm-pd-keyattrtable .cm-pd-keyattr strong { font-size: 14px; font-weight: 400; line-height: 22px; color: var(--cm-pd-ink); }

/* Packaging / lead time tables (measured: hairline grid, gray label cells). */
.cm-pd-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin-top: 32px; }
.cm-pd-specgroup__title { font-size: 16px; font-weight: 700; color: var(--cm-pd-ink); margin-bottom: 12px; padding-bottom: 0; border-bottom: 0; }
.cm-pd-specgroup table, .cm-pd-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cm-pd-specgroup th, .cm-pd-table th { text-align: left; font-weight: 400; color: var(--cm-pd-ink-2); padding: 12px; border: 1px solid var(--cm-pd-line); background: var(--cm-pd-gray); width: 40%; }
.cm-pd-specgroup td, .cm-pd-table td { color: var(--cm-pd-ink); padding: 12px; border: 1px solid var(--cm-pd-line); text-align: left; }
.cm-pd-delivery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin-top: 32px; padding-top: 0; border-top: 0; }
.cm-pd-delivery h3 { font-size: 16px; font-weight: 700; color: var(--cm-pd-ink); margin-bottom: 12px; }
.cm-pd-delivery__sub { margin-top: 24px; }
.cm-pd-table--grid th { background: var(--cm-pd-gray); font-weight: 600; color: var(--cm-pd-ink); }

/* Description ------------------------------------------------------------- */
/* Body text (measured reference): module copy runs 14px / 22px #222,
   paragraphs mt-4 mb-2 (4px / 8px). */
.cm-pd-desc { margin-top: 8px; }
.cm-pd-desc__lead { font-size: 14px; line-height: 22px; color: var(--cm-pd-ink); margin: 0 0 8px; }
.cm-pd-desc__content { margin-top: 12px; font-size: 14px; line-height: 22px; color: var(--cm-pd-ink); }
.cm-pd-desc__content p { margin: 4px 0 8px; }
.cm-pd-desc__content h2 { font-size: 20px; line-height: 26px; font-weight: 700; color: var(--cm-pd-ink); margin: 16px 0 8px; }
.cm-pd-desc__content h3 { font-size: 16px; line-height: 22px; font-weight: 700; color: var(--cm-pd-ink); margin: 16px 0 8px; }
.cm-pd-desc__content img { border-radius: var(--cm-pd-r-sm); }
.cm-pd-desc__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.cm-pd-desc__block { padding: 14px; border-radius: var(--cm-pd-r-sm); background: var(--cm-pd-gray); }
.cm-pd-desc__num { font-size: 18px; font-weight: 700; color: var(--cm-pd-cta); font-family: var(--cm-font-num, inherit); }
.cm-pd-desc__block h3 { font-size: 16px; color: var(--cm-pd-ink); margin-top: 6px; }
.cm-pd-desc__block p { font-size: 14px; color: var(--cm-pd-ink-2); line-height: 18px; margin-top: 6px; }
.cm-pd-desc__figure { margin-top: 20px; border: 0; border-radius: var(--cm-pd-r-sm); overflow: hidden; }
.cm-pd-desc__art { aspect-ratio: 21 / 9; background: var(--cm-pd-gray); }
.cm-pd-desc__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-pd-desc__figure figcaption { padding: 10px 14px; font-size: 14px; color: var(--cm-pd-ink-2); background: #fff; }
.cm-pd-disclaimer { display: flex; align-items: flex-start; gap: 7px; margin-top: 16px; padding: 0; border-radius: 0; background: transparent; font-size: 12px; color: var(--cm-pd-muted); line-height: 1.7; }

/* Reviews (measured: pill tab group #f4f4f4 r8, score 48/700). ------------ */
.cm-pd-reviews { display: block; }
.cm-pd-reviews__tabs { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: var(--cm-pd-r-sm); background: var(--cm-pd-gray); margin-bottom: 16px; }
.cm-pd-reviews__tabs button {
	display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 6px;
	background: transparent; border: 0; cursor: pointer;
	font-size: 16px; color: var(--cm-pd-muted);
}
.cm-pd-reviews__tabs button.is-active { background: #fff; color: var(--cm-pd-ink); font-weight: 700; }
.cm-pd-reviews__summary { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.cm-pd-reviews__score { font-size: 48px; line-height: 1; font-weight: 700; color: var(--cm-pd-ink); font-family: var(--cm-font-num, inherit); }
.cm-pd-reviews__verdict { font-size: 14px; font-weight: 600; color: var(--cm-pd-ink); }
.cm-pd-reviews__count { font-size: 14px; color: var(--cm-pd-ink-2); }
.cm-pd-stars { display: inline-flex; gap: 1px; color: var(--cm-pd-line); }
.cm-pd-star.is-on { color: var(--cm-pd-cta); }
.cm-pd-reviews__list { display: grid; gap: 0; }
.cm-pd-review { padding: 16px 0; border-bottom: 1px solid var(--cm-pd-line); }
.cm-pd-review:last-child { border-bottom: 0; }
.cm-pd-review__who { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cm-pd-review__avatar {
	display: inline-flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; border-radius: 50%;
	background: var(--cm-pd-cta); color: #fff; font-size: 14px; font-weight: 700;
}
.cm-pd-review__meta { display: flex; flex-direction: column; }
.cm-pd-review__meta strong { font-size: 14px; font-weight: 600; color: var(--cm-pd-ink); }
.cm-pd-review__meta small { font-size: 12px; color: var(--cm-pd-muted); }
.cm-pd-review__badge { display: inline-flex; padding: 2px 8px; border-radius: 4px; background: var(--cm-pd-blue-soft); color: var(--cm-pd-blue); font-size: 12px; font-weight: 600; }
.cm-pd-review__top { display: flex; justify-content: space-between; align-items: center; }
.cm-pd-review__date { font-size: 14px; color: var(--cm-pd-muted); }
.cm-pd-review h3 { font-size: 16px; color: var(--cm-pd-ink); margin-top: 6px; }
.cm-pd-review p { font-size: 14px; line-height: 22px; color: var(--cm-pd-ink); margin-top: 6px; }
.cm-pd-review footer { font-size: 12px; color: var(--cm-pd-muted); margin-top: 8px; }

/* FAQ --------------------------------------------------------------------- */
.cm-pd-faq { display: grid; gap: 8px; }
.cm-pd-faq__item { border: 1px solid var(--cm-pd-line); border-radius: var(--cm-pd-r-sm); padding: 0 16px; }
.cm-pd-faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; font-size: 16px; font-weight: 600; color: var(--cm-pd-ink); cursor: pointer; list-style: none; }
.cm-pd-faq__item summary::-webkit-details-marker { display: none; }
.cm-pd-faq__item[open] .cm-pd-faq__chev { transform: rotate(180deg); }
.cm-pd-faq__chev { display: inline-flex; color: var(--cm-pd-muted); transition: transform .2s ease; }
.cm-pd-faq__body { padding-bottom: 16px; }
.cm-pd-faq__body p { font-size: 14px; color: var(--cm-pd-ink-2); line-height: 1.8; }

/* Supplier full (Stage 7 measured: transparent shell, #ddd top rule,
   white inner card r8, capsule actions h36 14/500). ------------------ */
.cm-pd-supplierfull {
	border-radius: 0; background: transparent; padding: 20px 0 0;
	border-top: 1px solid #ddd; margin-top: 12px;
}
.cm-pd-supplierfull__intro { display: flex; align-items: center; gap: 14px; }
.cm-pd-supplierfull__intro > div { flex: 1; }
.cm-pd-supplierfull__intro h3 { font-size: 16px; color: var(--cm-pd-blue); }
.cm-pd-supplierfull__intro span { font-size: 14px; color: var(--cm-pd-ink-2); }
.cm-pd-supplierfull__verified { font-size: 12px; color: #1a7f37; font-weight: 700; }
.cm-pd-supplierfull__card { margin-top: 14px; padding: 20px; border-radius: var(--cm-pd-r-sm); background: #fff; box-shadow: 0 0 8px 0 rgba(0, 0, 0, .05); }
.cm-pd-supplierfull__card h4 { font-size: 14px; font-weight: 600; line-height: 20px; color: var(--cm-pd-ink); margin-bottom: 14px; }
.cm-pd-supplierfull__profile { margin-top: 12px; font-size: 14px; color: var(--cm-pd-ink-2); line-height: 1.8; }
.cm-pd-supplierfull__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 24px; }
.cm-pd-supplierfull__stats > div { display: flex; flex-direction: column; gap: 2px; }
.cm-pd-supplierfull__stats dt { font-size: 14px; color: var(--cm-pd-ink-2); }
.cm-pd-supplierfull__stats dd { margin: 0; font-size: 16px; font-weight: 600; color: var(--cm-pd-ink); }
.cm-pd-supplierfull__scale { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--cm-pd-line); }
.cm-pd-supplierfull__scale span { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--cm-pd-ink); }
.cm-pd-supplierfull__scale svg { color: var(--cm-pd-ink-2); }
.cm-pd-supplierfull__actions { display: flex; gap: 12px; margin-top: 16px; }
.cm-pd-supplierfull__actions .cm-pd-btn { width: auto; min-width: 200px; flex: 1; min-height: 36px; font-weight: 500; }
.cm-pd-caps { display: grid; gap: 8px; }
.cm-pd-caps li { display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--cm-pd-ink); }
.cm-pd-caps svg { color: var(--cm-pd-ink-2); }

/* Related product cards (measured: borderless, square art, price #222). --- */
.cm-pd-related { padding-top: 32px; padding-bottom: 0; }
.cm-pd-related__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.cm-pd-card { border: 0; border-radius: var(--cm-pd-r-sm); overflow: hidden; background: #fff; transition: box-shadow .2s ease; }
.cm-pd-card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, .1); }
.cm-pd-card__art { aspect-ratio: 1 / 1; background: var(--cm-pd-gray); }
.cm-pd-card__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-pd-card__art .cm-pd-art { width: 100%; }
.cm-pd-card__body { padding: 10px 2px 0; display: flex; flex-direction: column; gap: 4px; }
.cm-pd-card__body h3 { font-size: 14px; line-height: 20px; color: var(--cm-pd-ink); font-weight: 400; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cm-pd-card__price { font-size: 20px; line-height: 28px; color: var(--cm-pd-price); font-weight: 700; font-family: var(--cm-font-num, inherit); }
.cm-pd-card__moq, .cm-pd-card__supplier { font-size: 14px; color: var(--cm-pd-ink-2); }
.cm-pd-card__supplier { display: none; }

.cm-pd-empty { padding-block: 48px; }

/* --------------------------------------------------------------------------
   Mobile sticky bottom CTA bar (reference mobile PDP pattern).
   -------------------------------------------------------------------------- */
.cm-pd-mobilebar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 130;
	display: none;
	background: #fff;
	border-top: 1px solid var(--cm-pd-line);
	box-shadow: 0 -2px 12px rgba(0, 0, 0, .08);
}
.cm-pd-mobilebar__in { display: flex; align-items: center; gap: 10px; padding: 10px 16px; }
.cm-pd-mobilebar__price { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cm-pd-mobilebar__price small { font-size: 12px; color: var(--cm-pd-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-pd-mobilebar__price strong { font-size: 18px; font-weight: 700; color: var(--cm-pd-price); font-family: var(--cm-font-num, inherit); }
.cm-pd-mobilebar__cta {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 40px; padding: 0 16px; border-radius: var(--cm-pd-capsule);
	background: var(--cm-pd-cta); color: #fff; border: 0;
	font-size: 14px; font-weight: 700; white-space: nowrap;
}
.cm-pd-mobilebar__cta:hover { opacity: .9; }
.cm-pd-mobilebar__cta--ghost { background: #fff; border: 1px solid var(--cm-pd-ink); color: var(--cm-pd-ink); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
	.cm-pd-main { grid-template-columns: minmax(0, 40fr) minmax(0, 43fr) minmax(0, 27fr); }
	.cm-pd-lower__in { grid-template-columns: minmax(0, 71fr) minmax(0, 29fr); }
	.cm-pd-gallery__rail { width: 56px; }
	.cm-pd-thumb, .cm-pd-thumbitem { width: 56px; }
	.cm-pd-thumbitem { flex-basis: 56px; }
	.cm-pd-thumb { height: 56px; }
	.cm-pd-gallery__stage { margin-left: 68px; }
	.cm-pd-gallery__pill { transform: translateX(34px); }
	.cm-pd-gallery__thumbs .cm-pd-thumb { width: 56px; }
	.cm-pd-specs { grid-template-columns: 1fr; }
	.cm-pd-related__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.cm-pd-keyattrtable { gap: 0 24px; }
}

@media (max-width: 960px) {
	.cm-pd { --cm-pd-max: 100%; padding-bottom: 84px; }
	.cm-pd .cm-container, .cm-pd-hero, .cm-pd-lower__in,
	.cm-pd-crumb { width: 100%; padding-inline: 16px; }
	.cm-pd-colL { position: static; }
	/* Reference mobile: single column, gallery full-width, thumbs become a
	   horizontal scroller under the stage. */
	.cm-pd-main { grid-template-columns: minmax(0, 1fr); }
	.cm-pd-gallery { display: block; position: static; }
	.cm-pd-gallery__rail { position: static; width: auto; overflow: visible; order: 2; }
	.cm-pd-gallery__railtrack { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 8px; }
	.cm-pd-thumbitem { flex: 0 0 56px; }
	.cm-pd-thumb, .cm-pd-gallery__thumbs .cm-pd-thumb { width: 56px; height: 56px; }
	.cm-pd-rarrow { display: none; }
	.cm-pd-gallery__stage { margin-left: 0; }
	.cm-pd-gallery__thumbs { display: flex; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; margin-top: 12px; padding-bottom: 2px; }
	.cm-pd-gallery__thumbs .cm-pd-thumb { flex: 0 0 56px; width: 56px; }
	.cm-pd-gallery__pill { margin: 10px 0 0; transform: none; }
	.cm-pd-side { margin-top: 20px; position: static; }
	.cm-pd-mobilebar { display: block; }
	.cm-pd-lower__in { grid-template-columns: minmax(0, 1fr); }
	.cm-pd-rail { position: static; order: 2; }
	.cm-pd-section { scroll-margin-top: 64px; }
	.cm-pd-desc__grid { grid-template-columns: 1fr; }
	.cm-pd-related__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.cm-pd-supplierfull__stats { grid-template-columns: 1fr; }
	.cm-pd-delivery { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 720px) {
	.cm-pd-title { font-size: 16px; line-height: 22px; }
	.cm-pd-price__tiers { gap: 8px 16px; }
	.cm-pd-tier__price { font-size: 18px; line-height: 28px; }
	.cm-pd-specs, .cm-pd-keyattrtable, .cm-pd-keyattrs { grid-template-columns: 1fr; }
	.cm-pd-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cm-pd-tabs__in { gap: 20px; }
	.cm-pd-tabs__link { padding-block: 14px; font-size: 15px; }
	.cm-pd-section__head h2 { font-size: 18px; }
	.cm-pd-reviews__score { font-size: 36px; }
}

/* ==========================================================================
   Stage 6 (2026-11-23) · MOBILE — measured alibaba mobile PDP replica.
   Reference: user-saved mobile page rendered at 390px viewport, CDP-measured.
   All rules are scoped to .cm-pd-mob / .cm-pd-mobilebar / (max-width:767px)
   so the desktop layout above is untouched.

   Measured tokens (390px basis):
     page bg #f2f3f7 · cards white, radius 0, mt 10px, pad 18px 14px
     card title 16px/700 · chips #f3f4f6 r3 h30 pad 0 12 13px
     price card #f8f8f8 r8 pad 12 mx 14 · tier price 20px/500 #222, qty 15px
     title 18px/600 #222 (2-line clamp) · promo text #4b1d1f 13px/600
     badge chips bg #fcf8f1 text #a75a00 · stars #ff6a00
     key attr value 13px/700 black + label 12px #767676, vertical divider #eee
     carousel: full-bleed square, frame gap 10px, images object-contain on #f4f4f4
     bottom bar: white, h64, capsule CTAs h40 — ghost 1px #222, primary #d64000
     header sticky on mobile (reference header-fixed) · no breadcrumb in flow
   ========================================================================== */

.cm-pd-mob { display: none; }

@media (max-width: 767px) {
	/* Desktop tree off, mobile tree on. Page surface goes light gray. */
	.cm-pd-desk { display: none; }
	.cm-pd-mob { display: block; padding-bottom: 76px; }
	body.single-cm_product .cm-main { background: #f2f3f7; }
	.cm-pd { padding-bottom: 0; }
	.cm-pd-crumb { display: none; }
	/* Reference mobile header is fixed/sticky; scoped to PDP only. */
	body.single-cm_product .cm-sitehead {
		position: sticky;
		top: 0;
		z-index: 60;
		box-shadow: 0 1px 0 #e8e8e8;
	}

	/* Carousel — Stage 17 · measured off the refreshed reference mobile PDP:
	   white media module, viewport is square below 390px and capped at a
	   fixed 390px height from 390px up; the frame gap equals the reference
	   rem (100vw / 37.5, no cap); images are object-contain on #f4f4f4 and
	   full-bleed edge to edge; the video slide is a black viewport. */
	.cm-pd-mcar {
		--mcar-gap: calc(100vw / 37.5);
		position: relative;
		width: 100%;
		aspect-ratio: 1 / 1;
		background: #fff;
		overflow: hidden;
	}
	@media (min-width: 390px) and (max-width: 767px) {
		.cm-pd-mcar { aspect-ratio: auto; height: 390px; }
	}
	.cm-pd-mcar__clip {
		position: relative;
		height: 100%;
		overflow: hidden;
	}
	.cm-pd-mcar__track {
		display: flex;
		height: 100%;
		margin-left: calc(-1 * var(--mcar-gap));
		transform: translate3d(0, 0, 0);
		transition: transform 0.42s cubic-bezier(0.165, 0.84, 0.44, 1);
		touch-action: pan-y;
		will-change: transform;
	}
	.cm-pd-mcar__slide {
		flex: 0 0 100%;
		min-width: 0;
		height: 100%;
		padding-left: var(--mcar-gap);
		position: relative;
		overflow: hidden;
		background: #f4f4f4;
		cursor: pointer;
		-webkit-user-select: none;
		user-select: none;
	}
	.cm-pd-mcar__slide img {
		width: 100%;
		height: 100%;
		object-fit: contain;
		display: block;
	}
	/* Only the slide's own art (direct child) — nested chrome (vbar icons)
	   keeps the shared .cm-pd-vicon display rules. */
	.cm-pd-mcar__slide > svg {
		width: 100%;
		height: 100%;
		object-fit: contain;
		display: block;
	}
	.cm-pd-mcar__slide--video { background: #000; cursor: default; }
	.cm-pd-mcar__slide--video .cm-pd-vplayer { cursor: default; }

	/* Video/Photos pill — measured: centred, bottom 46px, h 23px, pad 3px,
	   rgba(0,0,0,.5) + blur(4px), fully rounded; tabs h 18px, 9px/12px 500,
	   min-w 46 (Video) / 58 (Photos), px 12; active = white bg, black text,
	   shadow 0 1px 2px rgba(0,0,0,.05); inactive = white text on the glass. */
	.cm-pd-mcar__pill {
		position: absolute;
		left: 50%;
		bottom: 46px;
		transform: translateX(-50%);
		display: inline-flex;
		align-items: center;
		justify-content: center;
		height: 23px;
		padding: 3px;
		border-radius: 9999px;
		background: rgba(0, 0, 0, 0.5);
		-webkit-backdrop-filter: blur(4px);
		backdrop-filter: blur(4px);
		z-index: 5;
	}
	.cm-pd-mcar__pill button {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		white-space: nowrap;
		height: 18px;
		min-width: 46px;
		padding: 3px 12px;
		border: 0;
		border-radius: 9999px;
		background: transparent;
		font-family: inherit;
		font-size: 9px;
		line-height: 12px;
		font-weight: 500;
		color: #fff;
		cursor: pointer;
		transition: background-color 0.15s ease, color 0.15s ease;
	}
	.cm-pd-mcar__pill button[data-cm-pd-mpilltab="photos"] { min-width: 58px; }
	.cm-pd-mcar__pill button.is-active {
		background: #fff;
		color: #000;
		box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	}

	/* Promo bar ----------------------------------------------------------- */
	.cm-pd-mpromo {
		margin: 0;
		padding: 12px 14px;
		background: #fff;
		font-size: 13px;
		font-weight: 600;
		color: #4b1d1f;
		text-align: center;
	}
	.cm-pd-mpromo .cm-pd-badge { margin-right: 4px; }

	/* Gray price card ------------------------------------------------------ */
	.cm-pd-mprice {
		margin: 8px 14px 0;
		padding: 12px;
		background: #f8f8f8;
		border-radius: 8px;
	}
	.cm-pd-mprice__tiers {
		display: flex;
		gap: 32px;
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.cm-pd-mprice__tiers::-webkit-scrollbar { display: none; }
	.cm-pd-mtier { flex: 0 0 auto; }
	.cm-pd-mtier strong {
		display: block;
		font-size: 20px;
		line-height: 26px;
		font-weight: 500;
		color: #222;
		white-space: nowrap;
	}
	.cm-pd-mtier span {
		display: block;
		margin-top: 4px;
		font-size: 15px;
		color: #222;
		white-space: nowrap;
	}
	.cm-pd-mprice__foot {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		margin-top: 12px;
		padding-top: 12px;
		border-top: 1px solid #e8e8e8;
	}
	.cm-pd-mprice__foot > span {
		font-size: 13px;
		color: #333;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	.cm-pd-mprice__sample {
		flex: 0 0 auto;
		display: inline-flex;
		align-items: center;
		height: 28px;
		padding: 0 12px;
		border: 1px solid #222;
		border-radius: 9999px;
		background: #fff;
		font-size: 12px;
		font-weight: 700;
		color: #222;
	}

	/* Title card ----------------------------------------------------------- */
	.cm-pd-mcard {
		margin-top: 10px;
		padding: 18px 14px;
		background: #fff;
	}
	.cm-pd-mcard h2 {
		margin: 0;
		font-size: 16px;
		line-height: 22px;
		font-weight: 700;
		color: #222;
	}
	.cm-pd-mtit h1 {
		margin: 0;
		font-size: 18px;
		line-height: 25px;
		font-weight: 600;
		color: #222;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	.cm-pd-mtit { padding-bottom: 10px; }
	.cm-pd-mrate {
		display: flex;
		align-items: center;
		gap: 2px;
		margin-top: 10px;
		font-size: 13px;
		color: #333;
	}
	.cm-pd-mrate .cm-pd-stars { margin-right: 4px; }
	.cm-pd-mrate .cm-pd-star svg { width: 15px; height: 15px; }
	.cm-pd-mrate .cm-pd-star { color: #d9d9d9; }
	.cm-pd-mrate .cm-pd-star.is-on { color: #ff6a00; }
	.cm-pd-mrate strong { color: #222; font-weight: 700; }
	.cm-pd-mrate span { color: #767676; }
	.cm-pd-mbadges {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		margin-top: 10px;
	}
	.cm-pd-mbadges__chip {
		display: inline-flex;
		align-items: center;
		gap: 4px;
		padding: 4px 8px;
		background: #fcf8f1;
		border-radius: 4px;
		font-size: 12px;
		color: #a75a00;
		line-height: 18px;
	}
	.cm-pd-mbadges__chip strong { color: #222; font-weight: 700; }

	/* Spec chips cards ------------------------------------------------------ */
	.cm-pd-mchips__row {
		display: flex;
		gap: 8px;
		margin-top: 12px;
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.cm-pd-mchips__row::-webkit-scrollbar { display: none; }
	.cm-pd-mchip {
		flex: 0 0 auto;
		display: inline-flex;
		align-items: center;
		height: 30px;
		padding: 0 12px;
		background: #f3f4f6;
		border-radius: 3px;
		font-size: 13px;
		color: #222;
		white-space: nowrap;
	}

	/* Description card ------------------------------------------------------ */
	.cm-pd-mdesc__content { margin-top: 10px; font-size: 14px; line-height: 22px; color: #333; }
	.cm-pd-mdesc__content img { max-width: 100%; height: auto; border-radius: 4px; }
	.cm-pd-mdesc__art { margin-top: 12px; }
	.cm-pd-mdesc__art img { width: 100%; display: block; border-radius: 4px; }

	/* Protections card ------------------------------------------------------- */
	.cm-pd-mprot ul { list-style: none; margin: 12px 0 0; padding: 0; }
	.cm-pd-mprot li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; color: #333; }
	.cm-pd-mprot__icon { display: inline-flex; color: #222; }
	.cm-pd-mprot__icon svg { width: 16px; height: 16px; }

	/* Key attributes card ----------------------------------------------------- */
	.cm-pd-mkey__grid {
		display: grid;
		grid-template-columns: 1fr 1fr;
		margin-top: 12px;
	}
	.cm-pd-mkey__cell {
		display: flex;
		flex-direction: column;
		gap: 4px;
		padding: 10px 12px 10px 0;
		border-bottom: 1px solid #f0f0f0;
	}
	.cm-pd-mkey__cell:nth-child(odd) { border-right: 1px solid #eee; padding-left: 0; }
	.cm-pd-mkey__cell:nth-child(even) { padding-left: 12px; }
	.cm-pd-mkey__cell:nth-last-child(-n + 2) { border-bottom: 0; }
	.cm-pd-mkey__cell strong { font-size: 13px; font-weight: 700; color: #111; word-break: break-word; }
	.cm-pd-mkey__cell span { font-size: 12px; color: #767676; }
	.cm-pd-mkey h3 { margin: 16px 0 0; font-size: 14px; font-weight: 700; color: #222; }
	.cm-pd-mtable { width: 100%; margin-top: 8px; border-collapse: collapse; }
	.cm-pd-mtable th, .cm-pd-mtable td {
		padding: 8px 0;
		font-size: 13px;
		text-align: left;
		border-bottom: 1px solid #f0f0f0;
		color: #333;
		font-weight: 400;
	}
	.cm-pd-mtable th { width: 42%; color: #767676; padding-right: 12px; }

	/* Customization card ------------------------------------------------------- */
	.cm-pd-mcust ul { list-style: none; margin: 10px 0 0; padding: 0; }
	.cm-pd-mcust li { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 14px; color: #333; }
	.cm-pd-mcust li svg { width: 14px; height: 14px; color: #222; }
	.cm-pd-mcust li small { font-size: 12px; color: #767676; }

	/* Reviews card -------------------------------------------------------------- */
	.cm-pd-mrev__tab {
		display: inline-block;
		margin-top: 10px;
		padding: 6px 0 8px;
		font-size: 14px;
		font-weight: 700;
		color: #222;
		border-bottom: 2px solid #222;
	}
	.cm-pd-mreview { padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
	.cm-pd-mreview:last-child { border-bottom: 0; }
	.cm-pd-mreview h3 { margin: 8px 0 0; font-size: 14px; font-weight: 700; color: #222; }
	.cm-pd-mreview p { margin: 4px 0 0; font-size: 13px; line-height: 20px; color: #333; }
	.cm-pd-mreview > span { display: block; margin-top: 6px; font-size: 12px; color: #767676; }
	.cm-pd-mreview .cm-pd-star svg { width: 13px; height: 13px; }
	.cm-pd-mrev__empty { margin: 24px 0 8px; text-align: center; font-size: 13px; color: #767676; }

	/* Supplier card --------------------------------------------------------------- */
	.cm-pd-msup__head { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
	.cm-pd-msup__mark {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		background: #f3f4f6;
		border-radius: 8px;
		color: #222;
	}
	.cm-pd-msup__head strong { display: block; font-size: 15px; color: #222; }
	.cm-pd-msup__head span { display: block; margin-top: 2px; font-size: 12px; color: #767676; }
	.cm-pd-msup__stats {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 8px;
		margin-top: 12px;
		padding: 12px;
		background: #f8f8f8;
		border-radius: 8px;
	}
	.cm-pd-msup__stats span { display: block; font-size: 11px; color: #767676; }
	.cm-pd-msup__stats strong { display: block; margin-top: 2px; font-size: 13px; color: #222; }
	.cm-pd-msup__certs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
	.cm-pd-msup__certs span {
		display: inline-flex;
		align-items: center;
		gap: 4px;
		padding: 4px 10px;
		background: #f3f4f6;
		border-radius: 3px;
		font-size: 12px;
		color: #333;
	}
	.cm-pd-msup__certs svg { width: 12px; height: 12px; }

	/* Recommendations --------------------------------------------------------------- */
	.cm-pd-mrel { margin-top: 10px; padding: 18px 14px; background: #fff; }
	.cm-pd-mrel h2 { margin: 0; font-size: 16px; font-weight: 700; color: #222; }
	.cm-pd-mrel__grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
		margin-top: 12px;
	}
	.cm-pd-mrel__card { display: block; text-decoration: none; }
	.cm-pd-mrel__art {
		aspect-ratio: 1 / 1;
		background: #f4f4f4;
		border-radius: 8px;
		overflow: hidden;
	}
	.cm-pd-mrel__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
	.cm-pd-mrel__card h3 {
		margin: 8px 0 0;
		font-size: 13px;
		line-height: 18px;
		font-weight: 400;
		color: #333;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	.cm-pd-mrel__card strong { display: block; margin-top: 6px; font-size: 15px; font-weight: 700; color: #222; }
	.cm-pd-mrel__card span { display: block; margin-top: 2px; font-size: 11px; color: #767676; }

	/* Sticky bottom bar — measured: white, capsule CTAs h40. ------------------- */
	.cm-pd-mobilebar { background: #fff; box-shadow: 0 -1px 0 #e8e8e8; }
	.cm-pd-mobilebar__in { padding: 12px 14px; gap: 12px; }
	.cm-pd-mobilebar__price small { font-size: 11px; color: #767676; }
	.cm-pd-mobilebar__price strong { font-size: 16px; color: #222; }
	.cm-pd-mobilebar__cta {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		height: 40px;
		padding: 0 18px;
		border-radius: 9999px;
		font-size: 14px;
		font-weight: 700;
		text-decoration: none;
		white-space: nowrap;
	}
	.cm-pd-mobilebar__cta { background: #d64000; color: #fff; }
	/* Ghost modifier must come AFTER the base rule (same specificity). */
	.cm-pd-mobilebar__cta--ghost { background: #fff; border: 1px solid #222; color: #222; }
}

/* Stage 6 fix: solid orange stars in the mobile rating row & reviews
   (reference mobile page uses filled stars; shared icon set is stroked). */
@media (max-width: 767px) {
	.cm-pd-mob .cm-pd-star svg {
		fill: currentColor;
		stroke: currentColor;
		stroke-width: 1;
	}
}

/* --------------------------------------------------------------------------
   Stage 11 — fullscreen gallery lightbox, opened by clicking the stage.
   Measured on the reference detail-product-dialog: rgba(0,0,0,.9) overlay
   (z 10000); top bar pad 36 with the centered n/N counter (16px white) and
   a 26px white X at the right; left rail of 91px square white thumbs
   (r8, 12px gap, active = inset 2px black ring at 4px, inactive = 5% black
   wash); centered white square stage; two 32px round nav buttons stacked
   on the stage's right inner edge; body reserves 52px below. The video
   view is a plain black viewport like the reference player.
   -------------------------------------------------------------------------- */
.cm-pd-lightbox {
	position: fixed; inset: 0; z-index: 100000;
	display: none; flex-direction: column;
	background: rgba(0, 0, 0, .9);
}
.cm-pd-lightbox.is-open { display: flex; }
.cm-pd-lightbox__top {
	display: grid; grid-template-columns: 1fr auto 1fr;
	align-items: center; padding: 36px;
	font-size: 16px; line-height: 24px;
}
.cm-pd-lightbox__count { color: #fff; font-variant-numeric: tabular-nums; }
.cm-pd-lightbox__close {
	justify-self: end; display: inline-flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; padding: 0; margin: 0;
	background: none; border: 0; color: #fff; cursor: pointer;
}
.cm-pd-lightbox__close:hover { opacity: .8; }
.cm-pd-lightbox__body {
	flex: 1; min-height: 0; display: flex; align-items: stretch;
	margin-bottom: 52px;
}
.cm-pd-lightbox__main {
	flex: 1; min-width: 0; display: flex; align-items: center;
	justify-content: center; gap: 32px; padding: 0 36px;
}
.cm-pd-lightbox__rail {
	display: flex; flex-direction: column; gap: 12px;
	width: 91px; flex: none; max-height: 100%;
	overflow-y: auto; scrollbar-width: none;
}
.cm-pd-lightbox__rail::-webkit-scrollbar { display: none; }
.cm-pd-lightbox__thumb {
	position: relative; width: 91px; height: 91px; flex: none;
	border-radius: 8px; background: #fff; border: 0; padding: 0;
	cursor: pointer; overflow: hidden;
}
.cm-pd-lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-pd-lightbox__thumb::before {
	content: ''; position: absolute; inset: 0; border-radius: 8px;
	background: rgba(0, 0, 0, .05); pointer-events: none;
}
.cm-pd-lightbox__thumb.is-active::before { background: none; }
.cm-pd-lightbox__thumb.is-active::after {
	content: ''; position: absolute; inset: 4px;
	border: 2px solid #000; border-radius: 8px; pointer-events: none;
}
.cm-pd-lightbox__thumb .cm-pd-thumb__play { color: var(--cm-pd-ink); }
.cm-pd-lightbox__stagewrap {
	position: relative; flex: none; height: 100%; aspect-ratio: 1 / 1;
	max-width: calc(100% - 159px); min-width: 0;
}
.cm-pd-lightbox__stage {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	background: #fff; overflow: hidden;
}
.cm-pd-lightbox__stage > img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.cm-pd-lightbox__stage--video { background: #000; }
.cm-pd-lightbox__nav {
	position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
	display: flex; flex-direction: column; gap: 8px;
}
.cm-pd-lightbox__navbtn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; padding: 0;
	border-radius: 9999px; background: #fff; border: 0;
	color: var(--cm-pd-ink); cursor: pointer;
}
.cm-pd-lightbox__navbtn:hover { opacity: .85; }
.cm-pd-lightbox__navbtn.is-hidden { visibility: hidden; }
@media (max-width: 960px) {
	.cm-pd-lightbox__top { padding: 20px; }
	.cm-pd-lightbox__body { margin-bottom: 24px; }
	.cm-pd-lightbox__main {
		flex-direction: column; justify-content: flex-start; gap: 12px;
		padding: 0 16px;
	}
	.cm-pd-lightbox__stagewrap { order: 0; height: auto; width: 100%; max-width: none; aspect-ratio: 1 / 1; }
	.cm-pd-lightbox__rail {
		order: 1; flex-direction: row; width: auto; max-width: 100%;
		max-height: 91px; overflow-x: auto; overflow-y: hidden;
	}
	.cm-pd-lightbox__nav { right: 12px; }
}

/* ==========================================================================
   Stage 13 (2026-11-23) — first-screen rhythm + enriched right panel +
   scroll-triggered sticky action bar.  Described against the measured alibaba
   reference: module dividers `border-b #e6e7eb pb-4 mb-4`, section titles
   16px/600, hairline card layers, and `three-column-action-button-sticky`
   (position:sticky;bottom:0) with its `sticky-custom` shadow
   `drop-shadow(0 -4px 8px rgba(0,0,0,.08))`.
   All colours come from the existing .cm-pd token layer — no new palette,
   no hard-coded hex copies. Only spacing / type ramp / alignment / dividers /
   card layering are touched; DOM, copy, links and interactions are untouched.
   ========================================================================== */
.cm-pd {
	--cm-pd-sec: 20px;      /* unified gap between first-screen modules */
	--cm-pd-hair: #e6e7eb;  /* measured reference module divider */
}

/* --- Left content area: unify the title / media / spec / highlight rhythm.
       Pure CSS: no DOM change, no copy change, no link change. ----------- */
.cm-pd-buybox > .cm-pd-price,
.cm-pd-buybox > .cm-pd-qtyrow,
.cm-pd-buybox > .cm-pd-custombox,
.cm-pd-buybox > .cm-pd-keyattrs { margin-top: var(--cm-pd-sec); }
.cm-pd-buybox > .cm-pd-variation { margin-top: 16px; }

/* Reference separates the price and spec groups with a hairline.  The
   highlights block is already a bordered card, so it keeps its own frame
   instead of a divider + extra top padding. */
.cm-pd-buybox > .cm-pd-price,
.cm-pd-buybox > .cm-pd-keyattrs {
	border-top: 1px solid var(--cm-pd-hair);
	padding-top: var(--cm-pd-sec);
}
.cm-pd-buybox > .cm-pd-keyattrs {
	padding-bottom: 0; border-bottom: 0;   /* dividers now live on the block top */
}

/* Unified field ramp: label 14/600, value 14/600 ink — same as the reference
   attribute rows; removes the old 16/700 vs 14 mismatch between variation,
   quantity and key-attribute labels. */
.cm-pd-variation__head .cm-pd-label,
.cm-pd-qtyrow .cm-pd-label {
	font-size: 14px; line-height: 20px; font-weight: 600;
	color: var(--cm-pd-ink-2);
}
.cm-pd-variation__head { gap: 6px; }
.cm-pd-variation__value { font-size: 14px; font-weight: 600; color: var(--cm-pd-ink); }
.cm-pd-qtyrow__unit { font-size: 14px; }

/* Card layering: a bordered white card for the highlights, a grey card for
   the spec table (measured), matching the reference's two-tier cards. */
.cm-pd-custombox {
	border: 1px solid var(--cm-pd-hair); border-radius: var(--cm-pd-r-sm);
	padding: 12px 16px;
}
.cm-pd-custom li { font-size: 14px; line-height: 20px; }
.cm-pd-keyattrs__card { background: #f8f8f8; }
.cm-pd-keyattr span { font-size: 14px; }
.cm-pd-keyattr strong { font-size: 14px; }
.cm-pd-suppliermini {
	border: 1px solid var(--cm-pd-hair);
}
.cm-pd-title { margin-top: var(--cm-pd-sec); }
.cm-pd-rating { margin-bottom: 0; }

/* --- Right panel: stacked, divided blocks (reference right panel) -------- */
.cm-pd-side {
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	scrollbar-width: thin;
}
/* Stage 16: the card now holds only Order protection + the CTAs, so the
   protection block gets roomier rhythm (reference right column). */
.cm-pd-side__card { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--cm-pd-hair); }
.cm-pd-side__title {                /* h3: reset the UA default top margin */
	margin: 0 0 16px;
}
.cm-pd-side .cm-pd-assurance { gap: 16px; }
.cm-pd-side .cm-pd-assurance strong { font-size: 15px; line-height: 20px; }
.cm-pd-side .cm-pd-assurance small { font-size: 13px; line-height: 18px; margin-top: 3px; }

/* Stage 16: CTA group sits right under the protection block (plain flow;
   the card is shorter than the viewport, nothing to dock). */
.cm-pd-side .cm-pd-ctas { display: grid; gap: 10px; }


/* ==========================================================================
   Stage 14 (2026-11-23) — first-screen TYPE SCALE pass, measured item-by-item
   against the saved reference render (module_title / module_comment /
   module_price / module_3_tab_mini_company_card, ref/s14/type-*.json).
   Typography / spacing / alignment / dividers ONLY: no DOM, no copy, no
   links, no ordering, no colour-token changes.
   Reference values confirmed live:
     h1 18/600 lh22 mb6 #222            (already matched — untouched)
     price 28/700 lh32 + $ 14/600       (already matched — untouched)
     tier label 14/400 lh20 #666 mt2    (already matched — untouched)
     rank badge 13/700 lh16             (ours was 14/600)
     rating row = ONE line              (ours wrapped the rank to line 2)
     hairline above AND below the price group
     supplier mini: name 14/600 lh18 · meta 12/400 lh16 · metric label
       12/400 lh16 · metric value lh18 · NO internal hairlines (spacing only)
     section head 16/700 lh22           (already matched — untouched)
   ========================================================================== */

/* 1) Rating row on one line (reference module_comment): stars + score +
      reviews + rank inline, wrapping only when the column is narrow. */
.cm-pd-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; }
.cm-pd-rating__rank { margin: 0; }
.cm-pd-rating__rankchip { font-size: 13px; line-height: 16px; font-weight: 700; }

/* 2) Price group gets a closing hairline (reference: hairline above the
      variation area), and the FOB note drops to the 12/16 secondary ramp. */
.cm-pd-buybox > .cm-pd-price {
	padding-bottom: 16px;
	border-bottom: 1px solid var(--cm-pd-hair);
}
.cm-pd-buybox .cm-pd-price__foot { margin-top: 8px; line-height: 16px; }

/* 3) Variation value: 14px on the 20px ramp so label + value share one
      baseline (was lh24, visually drifting off the 14/20 label). */
.cm-pd-buybox .cm-pd-variation__value { line-height: 20px; }

/* 4) Key-attribute value sits on the 14/20 ramp (Stage 13 unified the value
      to 14px; the old lh20→22 mismatch came from a stale 16px assumption).
      Scoped to the first-screen card so the lower Attributes table keeps
      its own 14/400 lh22 rows. */
.cm-pd-buybox .cm-pd-keyattr strong { line-height: 20px; }

/* 5) Supplier mini card: integer line-heights on the 12–14px ramp and the
      reference weights (name 600, metric label 12/16 — no 11px text).
      No internal hairlines: the reference card separates by spacing only. */
.cm-pd-suppliermini__name { font-weight: 600; line-height: 18px; }
.cm-pd-suppliermini__type { line-height: 16px; }
.cm-pd-suppliermini__metrics dt { font-size: 12px; line-height: 16px; }
.cm-pd-suppliermini__metrics dd { line-height: 18px; }
.cm-pd-suppliermini__certs span { line-height: 16px; }

/* 6) Breadcrumb: kill the inherited 1.55 body line-height so the 12px links
      sit on the 16px ramp (was fractional 21.7px container line box). */
.cm-pd-crumb ol { line-height: 16px; }

/* ==========================================================================
   Stage 15 (2026-11-23) · SECOND-SCREEN RIGHT RAIL — rebuilt after user
   review: the Stage 13 floating purchase card is REMOVED; the effort goes
   into the lower-zone rail itself, following the reference right column —
   separated blocks with hairlines and generous whitespace, an Order
   protection section (the same existing assurance data as the hero sidebar)
   and the action group docked sticky at the card bottom (reference
   `three-column-action-button-sticky` / `-custom`). The rail is revealed
   only once the lower content zone has been scrolled into view and hides
   again when scrolling back up into the hero area or past the zone's end.
   No product data, copy, links or button behaviour is changed.
   ========================================================================== */

/* Card frame: bottom padding now provided by the docked action block. */
.cm-pd-rail { padding: 20px 20px 0; margin-top: 16px; }

/* Block rhythm: hairline-separated sections inside the one white card. */
.cm-pd-rail__block { padding: 16px 0; border-bottom: 1px solid var(--cm-pd-hair); }
.cm-pd-rail__block--price { padding-top: 0; }
.cm-pd-rail__block:last-of-type { border-bottom: 0; padding-bottom: 0; }
.cm-pd-rail__title {
	margin: 0 0 12px; font-size: 16px; font-weight: 600; line-height: 22px;
	color: var(--cm-pd-ink);
}

/* Price ladder inside the rail: one tier per row, price left / quantity
   right (rail-scoped; the hero buybox keeps its horizontal ladder). */
.cm-pd-rail .cm-pd-price__tiers { display: grid; gap: 12px; }
.cm-pd-rail .cm-pd-tier {
	display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.cm-pd-rail .cm-pd-tier__price { font-size: 22px; line-height: 28px; }
.cm-pd-rail .cm-pd-tier__qty { margin-top: 0; }
.cm-pd-rail__moq { margin-top: 12px; margin-bottom: 0; }

/* Action group docked at the card bottom (reference `sticky-custom` adds the
   top shadow only while the group is pinned). */
.cm-pd-rail__actions {
	position: sticky; bottom: 0; z-index: 2;
	background: #fff;
	margin: 0 -20px; padding: 12px 20px 16px;
	transition: box-shadow .15s ease;
}
.cm-pd-rail__actions.is-stuck { box-shadow: 0 -4px 8px rgba(0, 0, 0, .08); }
.cm-pd-rail__actions .cm-pd-section__more { display: inline-flex; margin-top: 10px; }

/* Scroll-triggered reveal. JS adds .is-hidable before first paint below the
   fold; without JS the rail simply shows (progressive enhancement). */
.cm-pd-rail.is-hidable {
	opacity: 0; visibility: hidden;
	transition: opacity .22s ease, visibility .22s ease;
}
.cm-pd-rail.is-hidable.is-on { opacity: 1; visibility: visible; }

@media (max-width: 960px) {
	/* Mobile: plain stacked card, always visible, nothing docked. */
	.cm-pd-rail { padding: 20px; }
	.cm-pd-rail__block { border-bottom: 0; padding: 0; }
	.cm-pd-rail__block + .cm-pd-rail__block { margin-top: 16px; }
	.cm-pd-rail__actions { position: static; margin: 16px -20px 0; padding: 12px 20px 0; box-shadow: none; }
	.cm-pd-rail.is-hidable { opacity: 1; visibility: visible; }
}
