/*
Theme Name:   WoodMart Child
Theme URI:    https://greyresearchpeptides.com/
Description:  Child theme of WoodMart for Grey Research Peptides — holds product page redesign (Figma node 535:23295).
Author:       Grey Research Peptides
Template:     woodmart
Version:      1.2.0
Text Domain:  woodmart-child
*/

/* ─── Design tokens ─────────────────────────────────────────────────
 * From Figma file eSGT4YlFibGLFdSxmi6W9G (node 535:23295). Values
 * match Figma variables 1:1.
 * ─────────────────────────────────────────────────────────────────── */
:root {
	--grp-color-primary-50:   #F0F5FF;
	--grp-color-primary-100:  #E0EBFF;
	--grp-color-primary-200:  #BDD3FF;
	--grp-color-primary-300:  #8AB1FF;
	--grp-color-primary-600:  #437FC2;
	--grp-color-primary-700:  #114AD0;

	--grp-color-gray-0:    #FFFFFF;
	--grp-color-gray-100:  #FAFAFC;
	--grp-color-gray-200:  #E5E7EB;
	--grp-color-gray-500:  #9CA3AF;
	--grp-color-gray-600:  #6B7280;
	--grp-color-gray-700:  #4B5563;
	--grp-color-gray-800:  #1F2937;
	--grp-color-gray-900:  #111827;
	--grp-color-gray-950:  #101828;

	--grp-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ─── Product page — single-product ──────────────────────────────────
 * Figma node 535:23295 (Product Page / 1440px). All values mapped from
 * exact Figma measurements / variables. Scoped to `body.single-product`
 * so other pages are untouched.
 *
 * Hero/Main Content (node 540:23895) layout at 1440px viewport:
 *   - 24px gap between image and right column
 *   - Image: 628×627, border-radius 32px
 *   - Right column: 628 wide, flex-col gap 40px
 *     Within right column:
 *     - Title+Price group: gap 24px
 *       - Title "Retatrutide 10mg" — Inter Bold 38px / 1.3 #101828
 *       - Price "$200"           — Inter Bold 38px / 1.3 #437FC2 (NOT gray!)
 *     - Purity bar: bg #F0F5FF + border 1px #8AB1FF, radius 99px, h 40px
 *     - Description: 16px Regular #4B5563, gap 14px before lyo notice
 *     - Lyo notice "Products will arrive..." — Bold 11px UPPERCASE #437FC2
 *     - Add Bacteriostatic Water: white card, border #E5E7EB, radius 16
 *     - Volume Discounts box (Phase 2)
 *     - Qty + Add to Cart row: full pill, height 50, gap 12
 * ─────────────────────────────────────────────────────────────────── */

/* Hide breadcrumbs on product pages — Figma node 535:23295 does NOT
   show "Home / Category / Product" breadcrumb. We use the "← Back to
   products" link in the buttons section instead. */
body.single-product .woocommerce-breadcrumb,
body.single-product .wd-breadcrumbs,
body.single-product .breadcrumbs-wrap,
body.single-product .wd-page-title .breadcrumbs,
body.single-product .wd-page-title,
body.single-product .single-breadcrumbs-wrapper,
body.single-product .single-breadcrumbs,
body.single-product .breadcrumbs {
	display: none !important;
}

/* ─── Buttons Section — Figma node 538:23519 ────────────────────────
 * Top row sitting between header and the yellow info banner. Markup
 * is printed by grp_product_buttons_section() in functions.php.
 * Layout: flex justify-between, full-width, max-width 1280 centered.
 * LEFT:  "← Back to products" — 14px Inter Regular #437FC2
 * RIGHT: 3 action buttons (Compare / Wishlist / Share)
 *   gap 20px between buttons, each: icon 16×16 + 4px gap + 16px text
 * ─────────────────────────────────────────────────────────────────── */
body.single-product .grp-product-buttons {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: 1280px;
	margin: 0 auto 16px;
	padding: 0;
	font-family: var( --grp-font-family );
}
body.single-product .grp-product-buttons__back {
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	color: var( --grp-color-primary-600 );
	text-decoration: none;
	white-space: nowrap;
}
body.single-product .grp-product-buttons__back:hover {
	color: var( --grp-color-primary-700 );
	text-decoration: underline;
}
body.single-product .grp-product-buttons__actions {
	display: flex;
	align-items: center;
	gap: 20px;
}
body.single-product .grp-product-buttons__action {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	color: var( --grp-color-primary-600 );
	text-decoration: none;
	white-space: nowrap;
	background: transparent;
	border: 0;
	padding: 0;
}
body.single-product .grp-product-buttons__action:hover,
body.single-product .grp-product-buttons__action:focus {
	color: var( --grp-color-primary-700 );
	text-decoration: underline;
}
body.single-product .grp-product-buttons__icon {
	flex: none;
	color: currentColor;
}

/* Responsive — collapse the buttons row on tablet/mobile.
   Compare/Wishlist/Share are removed entirely per Figma 701:5221 mobile —
   only the "← Back to products" link remains. */
@media ( max-width: 1279px ) and ( min-width: 768px ) {
	/* Figma 660:4629 tablet: all links in this row are 20/Regular. */
	body.single-product .grp-product-buttons__back,
	body.single-product .grp-product-buttons__action {
		font-size: 20px !important;
	}
}
@media ( max-width: 767px ) {
	body.single-product .grp-product-buttons {
		flex-wrap: wrap;
		gap: 12px;
		margin: 16px auto 12px;
	}
	body.single-product .grp-product-buttons__actions {
		display: none !important;
	}
	/* Figma 701:5251 mobile: "← Back to products" is 16/Regular. */
	body.single-product .grp-product-buttons__back {
		font-size: 16px !important;
	}
}

/* The "research warning" banner is in Woodmart's Header Builder content.
   Figma styles it as a light-blue info card with primary border — NOT
   yellow. See Figma node 764:545. */
body.single-product .research-warning-box {
	background: var( --grp-color-primary-50 ) !important;
	border: 1px solid var( --grp-color-primary-300 ) !important;
	color: var( --grp-color-gray-700 ) !important;
	padding: 14px !important;
	border-radius: 24px !important;
	/* Figma 540:23895 desktop: 31px above + below the banner. */
	margin: 31px auto !important;
	font-size: 14px;
	line-height: 1.4;
	width: 100%;
	max-width: 1280px;
	font-family: var( --grp-font-family );
}
/* Woodmart wraps content in a Bootstrap `.container` capped at 1222px.
 * Override per-viewport so the banner has correct gutters:
 *   - Desktop ≥1280: full 1280, 0 padding (banner reaches Figma width).
 *   - Tablet 768-1279: 32px page padding each side.
 *   - Mobile ≤767: 16px page padding each side. */
@media ( min-width: 1280px ) {
	body.single-product .container:has(> .research-warning-box) {
		max-width: 1281px !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
}
@media ( max-width: 1279px ) and ( min-width: 768px ) {
	body.single-product .container:has(> .research-warning-box) {
		padding-left: 32px !important;
		padding-right: 32px !important;
	}
}
@media ( max-width: 767px ) {
	body.single-product .container:has(> .research-warning-box) {
		padding-left: 16px !important;
		padding-right: 16px !important;
	}
}
body.single-product .research-warning-box,
body.single-product .research-warning-inner {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 16px !important;
	text-align: left !important;
}
/* Inner spans — "Product Usage:" title is plain gray (NOT red/colored).
 * The blue/bold highlight only applies to the actual <strong> phrase
 * "PRODUCT IS INTENDED AS A RESEARCH CHEMICAL ONLY." */
body.single-product .research-warning-box .rw-title {
	color: var( --grp-color-gray-700 ) !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
}
body.single-product .research-warning-box .rw-desc {
	color: var( --grp-color-gray-700 ) !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
}
/* Mobile (Figma 765:609): text in warning box is 10px (smaller than tablet 12). */
@media ( max-width: 767px ) {
	body.single-product .research-warning-box,
	body.single-product .research-warning-box .research-warning-inner,
	body.single-product .research-warning-box .rw-text,
	body.single-product .research-warning-box .rw-title,
	body.single-product .research-warning-box .rw-desc,
	body.single-product .research-warning-box strong,
	body.single-product .research-warning-box b {
		font-size: 10px !important;
		line-height: 1.4 !important;
	}
}
/* Tablet (Figma 765:573): text in warning box is 12px (not desktop 14). */
@media ( max-width: 1279px ) and ( min-width: 768px ) {
	body.single-product .research-warning-box,
	body.single-product .research-warning-box .rw-title,
	body.single-product .research-warning-box .rw-desc,
	body.single-product .research-warning-box strong,
	body.single-product .research-warning-box b {
		font-size: 12px !important;
	}
	/* Figma 660:4674: gap 48 between warning box and product image. */
	body.single-product .research-warning-box {
		margin-bottom: 48px !important;
	}
}
body.single-product .research-warning-box .rw-icon {
	color: var( --grp-color-primary-600 ) !important;
	font-weight: 700 !important;
	flex: 0 0 auto;
}
body.single-product .research-warning-box strong,
body.single-product .research-warning-box b {
	color: var( --grp-color-primary-600 ) !important;
	font-weight: 700 !important;
	/* font-size omitted so .rw-text / .rw-desc inherited size wins
	 * (desktop 14, tablet 12, mobile 10 from the @media blocks above). */
}

/* Hero container — Figma 540:23895.
   80px side padding on the WC product wrapper so content has a screen-
   edge buffer at sub-1440 viewports. Inner flex row holds the two
   columns (image + summary) at fixed 628 each on desktop. */
body.single-product div.product.type-product {
	max-width: 1440px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 80px;
	padding-right: 80px;
	box-sizing: border-box;
}
/* `.wd-grid-g` is Woodmart's CSS-Grid container that sizes columns via
   the `--wd-col-lg/md/sm` CSS variables on each child. We let Woodmart
   keep grid layout and just constrain max-width + center the box. */
body.single-product .product-image-summary,
body.single-product .product-image-summary-inner.wd-grid-g {
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	gap: 24px;
	align-items: center;
}

/* Product image — Figma 535:23379 — 628×627 rounded 32.
   flex:1 with max-width 628 → at viewport 1440 each column = 628 (Figma
   spec), at smaller viewports columns shrink proportionally so the
   layout never overflows the 80px-padded container. */
body.single-product .product-images.wd-grid-col,
body.single-product .product-image-summary .product-images {
	max-width: 628px !important;
	/* Figma 535:23379: image card is 628×627, rounded 32. Force the
	 * aspect-ratio so the container always matches the design height. */
	aspect-ratio: 628 / 627;
	border-radius: 32px !important;
	overflow: hidden;
}
body.single-product .product-images .wd-product-images-wrapper,
body.single-product .product-images .wp-post-image {
	border-radius: 32px !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: contain;
}
body.single-product .product-images figure,
body.single-product .product-images .wd-product-image {
	border-radius: 32px !important;
	overflow: hidden;
	width: 100% !important;
	height: 100% !important;
}

/* Right column (summary) — Figma 538:23518 — 628 wide on desktop.
   Same flex:1 max:628 pattern as the image column for sub-1440 scaling. */
   Gaps between blocks are NOT uniform — they match Figma's nested
   layout (12 title→price, 24 price→badge, 40 badge→desc, 24
   bacteriostatic→volume, 40 volume→cart). Set `gap: 0` on the flex
   container and control spacing via explicit `margin-bottom` per
   element below. */
body.single-product .summary.entry-summary {
	max-width: 628px !important;
	display: block;
	font-family: var( --grp-font-family );
}
body.single-product .summary.entry-summary .summary-inner {
	display: block;
	width: 100%;
}
body.single-product .summary .summary-inner {
	display: flex;
	flex-direction: column;
	gap: 0;
	width: 100%;
}
/* Reset Woodmart's `.wd-set-mb > *` rule. We'll add explicit margins
   below per the Figma-spec inter-block gaps. */
body.single-product .summary > *,
body.single-product .summary .summary-inner > * {
	margin-top: 0 !important;
}

/* Figma-spec inter-block gaps inside the summary column. */
body.single-product .summary .product_title.entry-title {
	margin: 0 0 12px !important;   /* title → price */
}
body.single-product .summary .price,
body.single-product .summary p.price {
	margin-bottom: 24px !important;  /* price → trust badge */
}
body.single-product .summary .grp-trust-badge {
	margin-bottom: 40px !important;  /* trust badge → description */
}
body.single-product .summary .product-tldr {
	margin-bottom: 14px !important;  /* description → lyo notice */
}
body.single-product .summary .grp-lyo-note {
	margin-bottom: 40px !important;  /* lyo notice → Bacteriostatic Water */
}
body.single-product .summary .bundle_sells_form {
	margin-bottom: 24px !important;  /* Bacteriostatic Water → Volume Discounts */
}
body.single-product .summary .grp-volume-discounts {
	margin-bottom: 12px !important;  /* Volume Discounts → Add to Cart */
}

/* Title — Inter Bold 38px / 1.3 #101828. Title + Price stack with 12px. */
body.single-product .product_title.entry-title {
	font-size: 38px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	color: var( --grp-color-gray-950 ) !important;
	margin: 0 0 12px !important;
	font-family: var( --grp-font-family ) !important;
}

/* Price — Inter Bold 38px / 1.3 #437FC2 (Primary/600!).
   margin-top: 0 / margin-bottom: 24 → price→trust-badge gap (Figma 660:4521). */
body.single-product .summary .price,
body.single-product .summary p.price,
body.single-product .product-rating-price .price {
	font-size: 38px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	color: var( --grp-color-primary-600 ) !important;
	margin-top: 0 !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
	margin-bottom: 24px !important;
	font-family: var( --grp-font-family ) !important;
}
body.single-product .summary .price .amount,
body.single-product .summary .price bdi,
body.single-product .summary .price ins .amount,
body.single-product .summary .price ins {
	color: var( --grp-color-primary-600 ) !important;
	font-size: inherit !important;
	font-weight: inherit !important;
}
body.single-product .summary .price del,
body.single-product .summary .price del .amount {
	color: var( --grp-color-gray-500 ) !important;
	font-weight: 400 !important;
}

/* Trust badge (≥99% purity · HPLC verified · MS confirmed | How we test |
   Download COA) — Figma "Overlay+Border" 660:4504.
   bg #F0F5FF + 1px #8AB1FF border, pill, h 40px, full-width.
   The DOM is rendered by grp_quality_trust_badge() in
   mu-plugins/grp-product-quality-blocks.php — class `.grp-trust-badge`. */
body.single-product .grp-trust-badge {
	background: var( --grp-color-primary-50 ) !important;
	border: 1px solid var( --grp-color-primary-300 ) !important;
	border-radius: 99px !important;
	padding: 5px 6px 5px 12px !important;
	/* Figma 660:4504: h-[40px] fixed (not min). */
	height: 40px;
	min-height: 40px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	line-height: 1.4;
	font-family: var( --grp-font-family );
	margin: 0 !important;
}
body.single-product .grp-trust-badge .grp-trust-badge__shield {
	color: var( --grp-color-primary-600 );
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}
body.single-product .grp-trust-badge .grp-trust-badge__text {
	color: var( --grp-color-gray-600 );
	font-size: 14px;
	font-weight: 400;
	flex: 1;
	min-width: 0;
}
body.single-product .grp-trust-badge .grp-trust-badge__link {
	/* Figma 660:4509: link is #437EC1 (one shade off the primary 600 #437FC2). */
	color: #437EC1;
	font-size: 12px;
	font-weight: 400;
	text-decoration: none;
	white-space: nowrap;
}
/* "Download COA" CTA inside the trust badge — Figma 660:4515.
   bg #437FC2, padding 8 32, radius 99, w 144, h 30, text white 12 Medium. */
body.single-product .grp-trust-badge .grp-trust-badge__coa {
	background: var( --grp-color-primary-600 ) !important;
	color: #FFFFFF !important;
	border-radius: 99px !important;
	padding: 8px 32px !important;
	/* Figma 660:4515: fixed h 30, w 144. */
	min-height: 30px;
	height: 30px;
	width: 144px !important;
	box-sizing: border-box;
	font-size: 12px !important;
	font-weight: 500 !important;
	font-family: var( --grp-font-family ) !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	white-space: nowrap;
	transition: background 150ms ease, transform 120ms ease;
}
body.single-product .grp-trust-badge .grp-trust-badge__coa:hover {
	background: var( --grp-color-primary-700 ) !important;
	color: #FFFFFF !important;
	transform: translateY( -1px );
	text-decoration: none !important;
}
body.single-product .grp-trust-badge .grp-trust-badge__coa svg {
	width: 16px;
	height: 16px;
}

/* Trust badge — tablet/mobile layout per Figma 701:5282.
   Container becomes a 14px-radius rounded rectangle (not a pill); content
   wraps onto 2 rows — shield + text on top, "How we test →" + Download COA
   on bottom, row gap 20px. Row break is forced by a `::before`
   flex-basis-100% pseudo-element with `order: 3` so we don't need to add
   markup. shield=1, text=2, [break]=3, link=4, coa=5. */
@media ( max-width: 767px ) {
	body.single-product .grp-trust-badge {
		border-radius: 14px !important;
		padding: 14px !important;
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		column-gap: 8px;
		/* row-gap kept at 0: a flex `::before` break-line counts as its own
		 * row, so a non-zero row-gap would apply twice (above AND below
		 * the zero-height pseudo-element) and double the visual spacing.
		 * The 20px Figma gap is baked into the ::before's own height. */
		row-gap: 0;
		height: auto;
		min-height: 0;
	}
	body.single-product .grp-trust-badge::before {
		content: '';
		flex-basis: 100%;
		order: 3;
		height: 20px;
		margin: 0;
	}
	body.single-product .grp-trust-badge .grp-trust-badge__shield { order: 1; }
	body.single-product .grp-trust-badge .grp-trust-badge__text {
		order: 2;
		flex: 1 1 0;
		min-width: 0;
	}
	body.single-product .grp-trust-badge .grp-trust-badge__link { order: 4; }
	body.single-product .grp-trust-badge .grp-trust-badge__coa {
		order: 5;
		min-height: 32px;
		height: 32px;
		/* +column-gap 8 = 12 total between link and button (Figma). */
		margin-left: 4px;
	}
}

/* Description block — Figma 620:1725. 16px Regular #4B5563 paragraph,
   gap 14, then 11px Bold UPPERCASE #437FC2 lyo notice. Most of this
   markup comes from `.product-tldr` (mu-plugins/grp-product-tldr.php)
   plus the H6→div lyo notice from grp-home-headings.php. */
body.single-product .product-tldr {
	background: transparent !important;
	border: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	color: var( --grp-color-gray-700 ) !important;
	border-radius: 0 !important;
	font-family: var( --grp-font-family ) !important;
}
/* The TL;DR mu-plugin prepends a small "Overview" eyebrow — Figma
   doesn't show one, so hide. */
body.single-product .product-tldr::before {
	display: none !important;
	content: none !important;
}
/* Lyophilized notice — H6 converted to `<div class="grp-lyo-note">`
   by mu-plugins/grp-home-headings.php. */
body.single-product .grp-lyo-note {
	font-size: 11px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0 !important;
	color: var( --grp-color-primary-600 ) !important;
	margin: 14px 0 0 !important;
	font-family: var( --grp-font-family ) !important;
}

/* "Add Bacteriostatic Water" upsell — Figma 538:23408.
   White card, border 1px #E5E7EB, radius 16, height ≈77, padding 16,
   horizontal layout: [checkbox] [text column] [price column right].
   Content (product name + excerpt + prices) comes from the actual
   bundled WooCommerce product — we only restyle the layout. */

/* Outer card wrapper.
 * Figma 538:23408 / 660:4701: fixed height 77, radius 16, padding 16.714. */
body.single-product .summary .bundle_sells_form,
body.single-product .summary .bundle_form {
	background: #FFFFFF !important;
	border: 1px solid var( --grp-color-gray-200 ) !important;
	border-radius: 16px !important;
	padding: 16px !important;
	margin: 0 !important;
	height: 77px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	font-family: var( --grp-font-family ) !important;
}

/* Hide the "Save 10%" upsell-only marketing heading rendered above the
   bundled item — Figma puts that text inside the title line; we don't
   duplicate it as a separate row. */
body.single-product .summary .bundle_sells_title {
	display: none !important;
}

/* Reset nested Bundles wrappers */
body.single-product .summary .bundle_data,
body.single-product .summary .bundle_wrap,
body.single-product .summary .bundled_item_wrap {
	background: transparent !important;
	border: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* The actual bundled product row — Figma 538:23408 layout.
   Strategy: `.bundled_item_1` is position:relative with padding to
   reserve space for the absolutely-positioned checkbox (left) and
   price (right). Title + excerpt flow naturally between them. */
body.single-product .summary .bundled_item_1.bundled_product {
	position: relative !important;
	display: block !important;
	padding: 0 80px 0 32px !important;
	min-height: 44px !important;
	background: transparent !important;
	border: 0 !important;
	margin: 0 !important;
}

/* Collapse the bundle wrappers down to zero so the LABEL's children
   (checkbox + price, which are absolutely positioned) are the only
   visible content from this branch — the "Add for" text node and any
   other in-flow content from the label is hidden. */
body.single-product .summary .bundled_item_wrap,
body.single-product .summary .bundled_item_cart_details {
	display: block !important;
	height: 0 !important;
	overflow: visible !important;
	padding: 0 !important;
	margin: 0 !important;
	background: transparent !important;
	border: 0 !important;
}

/* `.details` is an inner wrapper around title/excerpt that Woodmart
   styles with `float: right` + `padding-left: 21px` for the default
   bundle layout. Override so title/excerpt flow naturally on the
   left, using `.bundled_item_1`'s padding-left for the checkbox gap. */
body.single-product .summary .bundled_item_1 > .details,
body.single-product .summary .bundled_product > .details {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	display: block !important;
}

/* No thumbnail in Figma. */
body.single-product .summary .bundled_product_images,
body.single-product .summary .bundled_product_images.images {
	display: none !important;
}

/* Checkbox input — absolute LEFT, vertically centered against
   `.bundled_item_1` (position relative). */
body.single-product .summary .bundled_product_optional_checkbox input[type="checkbox"] {
	position: absolute !important;
	left: 0 !important;
	top: 50% !important;
	transform: translateY( -50% ) !important;
	display: inline-block !important;
	width: 16px !important;
	height: 16px !important;
	margin: 0 !important;
	accent-color: var( --grp-color-primary-600 ) !important;
	font-size: initial !important;
	color: initial !important;
}
/* Price block (lives inside the label) — absolute RIGHT, top-aligned
   so $30 sits on the title row and $27 sits on the subtitle row, with
   matching row gap. Per Figma 538:23413 — column width 66px, two rows
   ~20px each. */
body.single-product .summary .bundled_product_optional_checkbox .price {
	position: absolute !important;
	right: 0 !important;
	top: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-end !important;
	gap: 4px !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	color: var( --grp-color-primary-600 ) !important;
	line-height: 1.4 !important;
	text-align: right !important;
	margin: 0 !important;
	padding: 0 !important;
}
body.single-product .summary .bundled_product_optional_checkbox .price del {
	display: block !important;
	color: var( --grp-color-gray-500 ) !important;
	font-weight: 400 !important;
	font-size: 14px !important;
	text-decoration: line-through !important;
}
body.single-product .summary .bundled_product_optional_checkbox .price ins {
	display: block !important;
	color: var( --grp-color-primary-600 ) !important;
	font-weight: 700 !important;
	font-size: 16px !important;
	text-decoration: none !important;
}
body.single-product .summary .bundled_product_optional_checkbox .price .amount,
body.single-product .summary .bundled_product_optional_checkbox .price bdi,
body.single-product .summary .bundled_product_optional_checkbox .price .woocommerce-Price-currencySymbol {
	color: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
}
/* Screen-reader text — hide visually */
body.single-product .summary .bundled_product_optional_checkbox .screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect( 0, 0, 0, 0 ) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Hidden quantity input — keep hidden */
body.single-product .summary input.bundled_qty[type="hidden"] {
	display: none !important;
}

/* Product title — Figma: 16px Medium #101828. Normal block flow.
   Padding-left on `.bundled_item_1` reserves space for the checkbox. */
body.single-product .summary .bundled_product_title,
body.single-product .summary h4.bundled_product_title,
body.single-product .summary .bundled_product_title.product_title {
	font-size: 16px !important;
	font-weight: 500 !important;
	line-height: 1.4 !important;
	color: var( --grp-color-gray-950 ) !important;
	margin: 0 0 4px !important;
	padding: 0 !important;
	font-family: var( --grp-font-family ) !important;
	display: block !important;
}
body.single-product .summary .bundled_product_title a {
	color: inherit !important;
	text-decoration: none !important;
}
/* External-link / "view product" icon next to the title — not in Figma */
body.single-product .summary .bundled_product_title svg,
body.single-product .summary .bundled_product_title .wd-tooltip-label,
body.single-product .summary .bundled_product_title::after {
	display: none !important;
}

/* Excerpt — Figma: 14px Regular gray-600. Normal block flow under title. */
body.single-product .summary .bundled_product_excerpt {
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	color: var( --grp-color-gray-600 ) !important;
	margin: 0 !important;
	padding: 0 !important;
	display: block !important;
}
body.single-product .summary .bundled_product_excerpt p {
	font-size: 14px !important;
	color: var( --grp-color-gray-600 ) !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* The empty `.bundled_item_after_cart_details` (contains only a hidden
   input) — collapse so it doesn't take a grid slot. */
body.single-product .summary .bundled_item_button,
body.single-product .summary .bundled_item_after_cart_details {
	display: none !important;
}

/* Hide the "Add for" text node inside the label by making the label's
   color transparent — inherited by the text node, but overridden by
   the input (own color) and price (explicit color override). */
body.single-product .summary .bundled_product_optional_checkbox {
	color: transparent !important;
	font-size: 0 !important;
	line-height: 0 !important;
}
body.single-product .summary .bundle_sells_form .price,
body.single-product .summary .bundled_product .price,
body.single-product .summary .bundled_item_button .price {
	font-size: 16px !important;
	font-weight: 700 !important;
	color: var( --grp-color-primary-600 ) !important;
	line-height: 1.4 !important;
	margin: 0 !important;
	text-align: right !important;
}
body.single-product .summary .bundle_sells_form .price del,
body.single-product .summary .bundled_product .price del,
body.single-product .summary .bundled_item_button .price del {
	color: var( --grp-color-gray-500 ) !important;
	font-weight: 400 !important;
	font-size: 14px !important;
	display: block !important;
}

/* Hide error / decorative wrappers that aren't in Figma */
body.single-product .summary .bundle_error:empty,
body.single-product .summary .screen-reader-text {
	display: none !important;
}

/* Add to Cart row — Figma 538:23476.
   Layout: flex row, gap 12, height 50.
   Left: quantity selector — 137×50, full pill, border #E5E7EB.
   Right: Add to Cart button (flex 1), bg #437FC2, radius 99, h 50,
   padding 8 32, text "Add to cart - $200.00" Inter Medium 14 white. */
body.single-product .summary .cart {
	display: flex !important;
	align-items: center !important;
	gap: 24px !important;
	width: 100%;
	margin: 0 !important;
}
/* Quantity selector — Figma 538:23477.
   Container 137×50, 1px border #E5E7EB, full pill radius.
   Inside: [decrease 48×48] [text 40×24] [increase 48×48] = 136 content
   + 1px border each side = 138 total (we use 137 width with flex-shrink
   on buttons; the half-pixel difference is absorbed by flex). */
body.single-product .summary .cart .quantity {
	margin: 0 !important;
	border: 1px solid var( --grp-color-gray-200 ) !important;
	border-radius: 999px !important;
	height: 50px !important;
	width: 137px !important;
	padding: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	overflow: hidden;
	background: #FFFFFF;
	box-sizing: border-box;
}
/* Number input — Figma 538:23481 (40×24, Inter 16/24 #101828, center) */
body.single-product .summary .cart .quantity .qty {
	border: 0 !important;
	border-radius: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	font-family: var( --grp-font-family ) !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 24px !important;
	color: var( --grp-color-gray-950 ) !important;
	text-align: center;
	width: 40px;
	height: 24px;
	min-height: 0 !important;
	flex: 0 0 40px;
}
/* Decrease (538:23478) / Increase (538:23483) — 48×48 hit area,
   icon 16×16 centered, stroke color #101828. */
body.single-product .summary .cart .quantity .plus,
body.single-product .summary .cart .quantity .minus {
	border: 0 !important;
	background: transparent !important;
	color: var( --grp-color-gray-950 ) !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	width: 48px;
	height: 48px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
	margin: 0 !important;
	flex: 0 0 48px;
	box-shadow: none !important;
}
body.single-product .summary .cart .quantity .plus:hover,
body.single-product .summary .cart .quantity .minus:hover {
	background: var( --grp-color-primary-50 ) !important;
}

body.single-product .summary .single_add_to_cart_button.button {
	background: var( --grp-color-primary-600 ) !important;
	color: #FFFFFF !important;
	border-radius: 99px !important;
	padding: 8px 32px !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	border: none !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	font-family: var( --grp-font-family ) !important;
	height: 50px !important;
	min-height: 50px !important;
	line-height: 1.4 !important;
	flex: 1 1 0 !important;
	width: auto !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
}
body.single-product .summary .single_add_to_cart_button.button:hover,
body.single-product .summary .single_add_to_cart_button.button:focus {
	background: var( --grp-color-primary-700 ) !important;
	color: #FFFFFF !important;
}

/* Tabs / Description content — bottom area where the long post_content
   lives. Phase 3 will parse this into section cards. For now: typography
   + safety overrides so headings/tables use Inter. */
body.single-product .wd-single-tabs,
body.single-product .woocommerce-Tabs-panel {
	font-family: var( --grp-font-family );
	color: var( --grp-color-gray-700 );
	line-height: 1.6;
}
body.single-product .woocommerce-Tabs-panel h1,
body.single-product .woocommerce-Tabs-panel h2,
body.single-product .woocommerce-Tabs-panel h3,
body.single-product .woocommerce-Tabs-panel h4,
body.single-product .woocommerce-Tabs-panel h5,
body.single-product .woocommerce-Tabs-panel h6 {
	color: var( --grp-color-gray-950 );
	font-family: var( --grp-font-family );
}

/* ─── Responsive ──────────────────────────────────────────────────── */
@media ( max-width: 1279px ) and ( min-width: 768px ) {
	body.single-product .product-image-summary,
	body.single-product .product-image-summary-inner.wd-grid-g {
		flex-direction: column !important;
		/* Figma 660:4674 tablet: gap 48 between image and details section. */
		gap: 48px !important;
		/* Figma 660:4674 tablet: Main Content w 704 inside 768 frame (32 each side). */
		max-width: 704px !important;
		padding: 0 !important;
		margin-left: auto !important;
		margin-right: auto !important;
	}
	/* Woodmart drives the grid with `--wd-col-lg/md/sm` CSS variables
	 * — force a single full-width column for tablet so the image and
	 * the summary stack vertically (per Figma tablet layout). */
	body.single-product .product-image-summary-inner.wd-grid-g {
		display: grid !important;
		grid-template-columns: 1fr !important;
		--wd-col-lg: 12 !important;
		--wd-col-md: 12 !important;
		--wd-col-sm: 12 !important;
	}
	body.single-product .product-images.wd-grid-col,
	body.single-product .product-image-summary .product-images,
	body.single-product .summary.entry-summary {
		flex: 1 1 100% !important;
		width: 100% !important;
		/* Figma 660:4674 tablet: 704 content width (768 − 32×2 page gutters). */
		max-width: 704px !important;
		grid-column: 1 / -1 !important;
	}
	/* Figma 660:4675 tablet image: 704×627 (instead of desktop 628×627). */
	body.single-product .product-images.wd-grid-col,
	body.single-product .product-image-summary .product-images {
		aspect-ratio: 704 / 627 !important;
	}
	body.single-product .summary.entry-summary {
		gap: 32px;
	}
	/* Figma 660:4681 tablet: Title and Price are 38/Bold (same as desktop). */
	body.single-product .product_title.entry-title {
		font-size: 38px !important;
	}
	body.single-product .summary .price,
	body.single-product .summary p.price {
		font-size: 38px !important;
	}
	/* Figma 660:4736 tablet: qty selector w 212 (vs desktop 137). */
	body.single-product .summary .cart .quantity {
		width: 212px !important;
	}
}
@media ( max-width: 767px ) {
	body.single-product .product-image-summary,
	body.single-product .product-image-summary-inner.wd-grid-g {
		flex-direction: column !important;
		gap: 24px !important;
		padding: 0;
	}
	body.single-product .product-images.wd-grid-col,
	body.single-product .product-image-summary .product-images,
	body.single-product .summary.entry-summary {
		flex: 1 1 100% !important;
		width: 100% !important;
		max-width: 100% !important;
	}
	/* Figma 701:5273 mobile image: 343×356 (aspect ratio 343/356). */
	body.single-product .product-images.wd-grid-col,
	body.single-product .product-image-summary .product-images {
		aspect-ratio: 343 / 356 !important;
	}
	body.single-product .research-warning-box {
		padding: 14px !important;
		/* Figma 765:605: radius 24, text 10px. */
		border-radius: 24px !important;
		/* Figma 701:5221: 31px top (from page header), 48px bottom (to image). */
		margin: 31px auto 48px !important;
	}
	/* Figma 701:5279 mobile: Title + Price are 28/Bold. */
	body.single-product .product_title.entry-title {
		font-size: 28px !important;
	}
	body.single-product .summary .price,
	body.single-product .summary p.price {
		font-size: 28px !important;
	}
	body.single-product .summary.entry-summary {
		gap: 24px;
		margin-top: 24px;
	}
	/* Mobile summary block spacing per Figma overlay:
	 *   BAC bundle  → Volume Discounts = 0 (relies on summary gap above)
	 *   Volume Disc → Qty selector     = 0 (cart gap handles it)
	 *   Qty selector → Add to Cart     = 24  (cart row gap) */
	body.single-product .summary .bundle_sells_form,
	body.single-product .summary .bundle_form {
		margin-bottom: 0 !important;
	}
	body.single-product .summary .grp-volume-discounts {
		margin-bottom: 0 !important;
	}
	/* Cart row on mobile per Figma 702:6332 — quantity above, Add to Cart
	 * below, both full-width pills (h 50), gap 24. */
	body.single-product .summary .cart {
		display: flex !important;
		flex-direction: column !important;
		flex-wrap: nowrap !important;
		gap: 24px !important;
	}
	body.single-product .summary .cart .quantity {
		width: 100% !important;
		max-width: 100% !important;
		height: 50px !important;
		flex: none !important;
	}
	body.single-product .summary .single_add_to_cart_button.button {
		width: 100% !important;
		max-width: 100% !important;
		height: 50px !important;
		min-height: 50px !important;
		flex: none !important;
	}
	body.single-product .grp-trust-badge {
		flex-wrap: wrap;
		padding: 12px !important;
	}
}

/* ─── Product page — Volume Discounts ───────────────────────────────
 * Figma node 538:23452. White card with 4 tier buttons.
 * Markup rendered by grp_render_volume_discounts() in functions.php.
 * ─────────────────────────────────────────────────────────────────── */

/* Container — Figma 538:23452. Padding 21px on all sides per user spec. */
body.single-product .grp-volume-discounts {
	border: 1px solid var( --grp-color-gray-200 );
	border-radius: 16px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: flex-start;
	width: 100%;
	font-family: var( --grp-font-family );
	box-sizing: border-box;
	background: transparent;
}

/* Header row — Figma 538:23453 */
body.single-product .grp-volume-discounts__header {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	height: 24px;
	margin: 0;
}
body.single-product .grp-volume-discounts__title {
	font-family: var( --grp-font-family );
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	color: #101828;
	margin: 0;
	padding: 0;
}
body.single-product .grp-volume-discounts__hint {
	font-family: var( --grp-font-family );
	font-size: 12px;
	font-weight: 400;
	line-height: 16px;
	color: #6A7282;
	margin: 0;
	padding: 0;
}

/* Buttons row — Figma 538:23475
 * Figma fixes each button at 137px + 14px gap (4×137 + 3×14 = 590) but
 * the padded card area is only 586px wide (628 − 42 padding). That means
 * the design itself overflows by 4px at 628 column width, and overflows
 * further at any summary narrower than ~632px. We let the buttons share
 * the available row evenly via flex:1 — gap 14 and padding 21 stay
 * exactly as in Figma. */
body.single-product .grp-volume-discounts__buttons {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 14px;
	width: 100%;
	height: 88px;
}

/* Button — Figma 538:23459 (active) / 538:23463-23471 (inactive).
   `text-transform: none` defeats Woodmart's global `.button` rule that
   uppercases every button. `letter-spacing: 0` resets the same. */
body.single-product .grp-volume-discounts__btn {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	max-width: 137px;
	height: 88px;
	border-radius: 14px;
	border: 1px solid var( --grp-color-gray-200 );
	background: transparent;
	padding: 0;
	margin: 0;
	cursor: pointer;
	font-family: var( --grp-font-family ) !important;
	text-align: left;
	text-transform: none !important;
	letter-spacing: 0 !important;
	transition: background 150ms ease, border-color 150ms ease;
}
body.single-product .grp-volume-discounts__btn span {
	text-transform: none !important;
	letter-spacing: 0 !important;
}
body.single-product .grp-volume-discounts__title,
body.single-product .grp-volume-discounts__hint {
	text-transform: none !important;
	letter-spacing: 0 !important;
}
body.single-product .grp-volume-discounts__btn:hover {
	border-color: var( --grp-color-primary-300 );
}
body.single-product .grp-volume-discounts__btn.is-active {
	background: var( --grp-color-primary-50 );
	border-color: var( --grp-color-primary-300 );
}

/* Inner text positioning (absolute, per Figma layout) */
body.single-product .grp-volume-discounts__qty,
body.single-product .grp-volume-discounts__price,
body.single-product .grp-volume-discounts__label {
	position: absolute;
	left: 12px;
	margin: 0;
	padding: 0;
	font-family: var( --grp-font-family );
}
body.single-product .grp-volume-discounts__qty {
	top: 13px;
	font-size: 12px;
	font-weight: 500;
	line-height: 16px;
	color: #6A7282;
	white-space: nowrap;
}
body.single-product .grp-volume-discounts__price {
	top: 31px;
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	color: var( --grp-color-primary-600 );
}
body.single-product .grp-volume-discounts__label {
	top: 59px;
	font-size: 12px;
	font-weight: 500;
	line-height: 16px;
	color: #99A1AF;
}
body.single-product .grp-volume-discounts__label--save {
	color: var( --grp-color-primary-600 );
}

/* Responsive — at tablet/mobile force a 2×2 grid instead of the flex row
   so the buttons can't flow into uneven 3+1 / 1+1+1 layouts when the
   column is narrower than the design assumption (Figma 660:4716 tablet
   shows 4 cards still in a row at 662px, but on real WP/Woodmart with
   sidebar quirks they wrap inconsistently — pin to grid). */
@media ( max-width: 1279px ) and ( min-width: 768px ) {
	body.single-product .grp-volume-discounts__buttons {
		display: grid !important;
		grid-template-columns: repeat(4, 1fr);
		column-gap: 14px;
		row-gap: 12px;
		height: auto;
	}
	body.single-product .grp-volume-discounts__btn {
		flex: none !important;
		min-width: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
	}
}
@media ( max-width: 767px ) {
	body.single-product .grp-volume-discounts {
		padding: 16px 16px 18px;
	}
	/* Figma 701:5310 mobile: header is a single row, title left,
	 * "Auto-applied at checkout" hint right (justify-between). */
	body.single-product .grp-volume-discounts__header {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		height: auto;
		gap: 8px;
	}
	body.single-product .grp-volume-discounts__buttons {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		column-gap: 12px;
		row-gap: 12px;
		height: auto;
	}
	body.single-product .grp-volume-discounts__btn {
		flex: none !important;
		min-width: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
	}
}

/* ─── Free shipping notice (Figma 540:23895) ──────────────────────────
 * Sits visually under the Add to Cart button (NOT the whole cart row).
 * The cart row above is `[qty 137px][gap 12px][Add to Cart fills rest]`;
 * to center this line on the Add to Cart button we offset the notice
 * by `qty + gap = 149px` on the left and let `justify-content: center`
 * center the content within the remaining width. */
body.single-product .summary .grp-shipping-notice {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	/* `!important` is required because the global
	 * `.summary > * { margin-top: 0 !important; }` reset above
	 * would otherwise win on specificity. */
	margin: 6px 0 0 !important;
	padding: 0 0 0 149px;
	font-family: var( --grp-font-family );
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	color: #6B7280;
	text-align: center;
}
@media (max-width: 767px) {
	/* Mobile: shipping notice sits centered under the Add to Cart button
	 * (no left offset — the cart row is stacked, not side-by-side). */
	body.single-product .summary .grp-shipping-notice {
		display: flex !important;
		padding-left: 0 !important;
		justify-content: center;
		margin-top: 6px !important;
	}
}
body.single-product .summary .grp-shipping-notice__icon {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	color: var( --grp-color-primary-600 );
}
body.single-product .summary .grp-shipping-notice__amount {
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
	font-style: normal;
	font-weight: 700;
	color: var( --grp-color-primary-600 );
}

/* ─── Hide stock meta/compare/wishlist/share blocks under the cart row
 * Figma 540:23895 has none of these on the right column. */
body.single-product .summary .product_meta,
body.single-product .summary .wd-product-brands-links,
body.single-product .summary .wd-social-icons,
body.single-product .summary .product-share,
body.single-product .summary .wd-social-pages-icons {
	display: none !important;
}
/* Inline compare / wishlist / share buttons that Woodmart injects below
 * the Add to Cart row — keep them off the summary on desktop/tablet.
 * On mobile they are shown again (Figma 702:6742 places this trio inside
 * the summary section, below the description). */
body.single-product .summary .wd-compare-btn,
body.single-product .summary .wd-wishlist-btn,
body.single-product .summary .product-compare-button,
body.single-product .summary .yith-wcwl-add-to-wishlist,
body.single-product .summary .woodmart-buttons-replace,
body.single-product .summary .wd-social-icons,
body.single-product .summary .social-share {
	display: none !important;
}
/* Mobile-only Compare/Wishlist/Share trio inside the summary (Figma 702:6742).
 * Rendered by grp_render_mobile_actions() in functions.php. Hidden on
 * desktop/tablet, the WC default buttons handle those viewports. */
body.single-product .grp-mobile-actions {
	display: none;
}
@media ( max-width: 767px ) {
	body.single-product .grp-mobile-actions {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		gap: 12px;
		margin-bottom: 40px;
		font-family: var( --grp-font-family );
	}
	body.single-product .grp-mobile-actions__row {
		display: flex;
		align-items: center;
		gap: 24px;
	}
	body.single-product .summary .grp-mobile-actions .grp-mobile-actions__btn,
	body.single-product .summary .grp-mobile-actions__row .grp-mobile-actions__btn,
	body.single-product .grp-mobile-actions .grp-mobile-actions__btn.wd-compare-btn,
	body.single-product .grp-mobile-actions .grp-mobile-actions__btn.add_to_wishlist {
		display: inline-flex !important;
		align-items: center !important;
		gap: 4px !important;
		color: var( --grp-color-primary-600 ) !important;
		font-size: 16px !important;
		font-weight: 400 !important;
		line-height: 1.4 !important;
		text-decoration: none !important;
		background: transparent !important;
		border: 0 !important;
		padding: 0 !important;
	}
	body.single-product .grp-mobile-actions__btn:hover,
	body.single-product .grp-mobile-actions__btn:focus {
		color: var( --grp-color-primary-700 );
	}
	body.single-product .grp-mobile-actions__icon {
		flex: none;
		color: currentColor;
	}
	/* Keep the Woodmart default summary buttons hidden on mobile too —
	 * our `.grp-mobile-actions` block replaces them. The :not() guard
	 * lets buttons inside our custom block stay visible (they reuse the
	 * `wd-compare-btn` / `add_to_wishlist` classes for JS hooks). */
	body.single-product .summary .wd-compare-btn:not(.grp-mobile-actions__btn),
	body.single-product .summary .wd-wishlist-btn:not(.grp-mobile-actions__btn),
	body.single-product .summary .product-compare-button:not(.grp-mobile-actions__btn),
	body.single-product .summary .yith-wcwl-add-to-wishlist:not(.grp-mobile-actions__btn),
	body.single-product .summary .add_to_wishlist:not(.grp-mobile-actions__btn),
	body.single-product .summary .social-share {
		display: none !important;
	}
}

/* ════════════════════════════════════════════════════════════════════
 * Product Page Catalog Sections — Figma node 545:24959
 * ════════════════════════════════════════════════════════════════════ */

/* Drop Woodmart's 80px side padding on the `.product` wrapper — the
 * inner `.container.product-tabs-inner` (Bootstrap) already handles
 * centering and gutters. Stacking both produced the double-padding
 * strip Iryna highlighted. */
body.single-product .product.single-product-page {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Widen the Bootstrap container on single product pages to match the
 * Figma content width (1281px). Woodmart's default is 1222px which
 * was producing ~1192px usable content — too narrow for the catalog
 * grid. We override on `body.single-product` only, so home/shop/etc.
 * keep their existing 1222px container. */
body.single-product .container.product-tabs-inner,
body.single-product .product .container,
body.single-product .product-tabs-wrapper .container {
	max-width: 1281px !important;
	/* Keep a 24px horizontal breathing room on viewports narrower than
	 * the design width so the catalog border doesn't run off the screen.
	 * On wider viewports the container is auto-centered with 0 padding. */
	padding-left: 24px !important;
	padding-right: 24px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	box-sizing: border-box;
}
@media (min-width: 1329px) {
	/* 1281 content + 24*2 padding = 1329 — past this the container is
	 * wider than the design content width, so drop the gutter and let
	 * margin auto center the bare 1281px box. */
	body.single-product .container.product-tabs-inner,
	body.single-product .product .container,
	body.single-product .product-tabs-wrapper .container {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
}
@media (max-width: 1279px) and (min-width: 768px) {
	/* Tablet gutter per Figma 660:4629: 32px page padding (768 - 32×2 = 704). */
	body.single-product .container.product-tabs-inner,
	body.single-product .product .container,
	body.single-product .product-tabs-wrapper .container {
		padding-left: 32px !important;
		padding-right: 32px !important;
	}
}
@media (max-width: 767px) {
	/* Mobile gutter per Figma 701:5221: 16px page padding. */
	body.single-product .container.product-tabs-inner,
	body.single-product .product .container,
	body.single-product .product-tabs-wrapper .container {
		padding-left: 16px !important;
		padding-right: 16px !important;
	}
}

body.single-product .grp-catalog-section {
	--grp-cat-title:        #101828;
	--grp-cat-body-dark:    #0F172A;
	--grp-cat-body:         #4B5563;
	--grp-cat-muted:        #9CA3AF;
	--grp-cat-primary-600:  #437FC2;
	--grp-cat-primary-200:  #BDD3FF;
	--grp-cat-primary-100:  #E0EBFF;
	--grp-cat-primary-50:   #F0F5FF;
	--grp-cat-divider:      #E5E7EB;
	--grp-cat-font:         "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	/* Outer Catalog Section box per Figma 545:24959:
	 * 1281×N container with a 1px border, 16px radius, 32px inner padding
	 * on every side. Inside, sections stack with 64px gap. */
	display: flex;
	flex-direction: column;
	gap: 64px;
	max-width: 1281px;
	margin: 0;
	padding: 32px;
	border: 1px solid var( --grp-cat-divider );
	border-radius: 16px;
	background: #FFFFFF;
	box-sizing: border-box;
	font-family: var(--grp-cat-font);
	color: var(--grp-cat-body);
}

body.single-product .grp-catalog-section *,
body.single-product .grp-catalog-section *::before,
body.single-product .grp-catalog-section *::after {
	box-sizing: border-box;
}

body.single-product .grp-catalog-section .grp-section {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
	margin: 0;
}

body.single-product .grp-catalog-section .grp-section__header {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
}

body.single-product .grp-catalog-section .grp-section__title {
	margin: 0;
	font-family: var(--grp-cat-font);
	font-weight: 700;
	font-size: 24px;
	line-height: 1.4;
	letter-spacing: 0;
	color: var(--grp-cat-title);
}

body.single-product .grp-catalog-section .grp-section__divider {
	width: 100%;
	height: 1px;
	background: var(--grp-cat-divider);
}

body.single-product .grp-catalog-section .grp-section__body {
	width: 100%;
}

body.single-product .grp-catalog-section .grp-section__text {
	margin: 0;
	font-family: var(--grp-cat-font);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.4;
	color: var(--grp-cat-body);
}

body.single-product .grp-catalog-section .grp-section__text a {
	color: var(--grp-cat-primary-600);
	text-decoration: underline;
}

/* ─── 1. Compound Identity ─────────────────────────────────────── */
body.single-product .grp-section--compound-identity .grp-section__body {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

body.single-product .grp-identity-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: 126px;
	row-gap: 24px;
	width: 100%;
}

body.single-product .grp-identity-grid__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

body.single-product .grp-identity-grid__label {
	margin: 0;
	font-family: var(--grp-cat-font);
	font-weight: 400;
	font-size: 12px;
	line-height: 20px;
	letter-spacing: 0.04em;
	color: var(--grp-cat-primary-600);
	text-transform: uppercase;
}

body.single-product .grp-identity-grid__value {
	margin: 0;
	font-family: var(--grp-cat-font);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.4;
	color: var(--grp-cat-body-dark);
	word-break: break-word;
}

body.single-product .grp-identity-structure {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

body.single-product .grp-identity-structure__img img {
	display: block;
	max-width: 283px;
	height: auto;
	border-radius: 4px;
}

/* ─── 4, 12. Bullet lists (Storage, Formulation & Handling) ───── */
body.single-product .grp-bullet-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

body.single-product .grp-bullet-list__item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-family: var(--grp-cat-font);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.4;
	color: var(--grp-cat-body);
}

body.single-product .grp-bullet-list__dot {
	flex: 0 0 auto;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--grp-cat-body-dark);
	margin-top: 9px;
}

body.single-product .grp-bullet-list__text {
	flex: 1 1 auto;
	min-width: 0;
}

body.single-product .grp-section--storage .grp-bullet-list,
body.single-product .grp-section--formulation-handling .grp-bullet-list {
	gap: 16px;
}

/* ─── 6. Summary Table ─────────────────────────────────────────────
 * Figma 543:24697 (desktop Property Info):
 *   - container .grp-summary-table: flex-col gap-[16px] between rows
 *   - each row .grp-summary-table__row: h-[46px], 12px top inset for
 *     label/value text, border-bottom 1px #E0EBFF
 *   - column 1: label, Inter Bold 16, color #4B5563 (or #101828 per visual)
 *   - column 2: value at left-[350px], Regular 16, color #4B5563
 * ──────────────────────────────────────────────────────────────────── */
body.single-product .grp-summary-table {
	background: var(--grp-cat-primary-50);
	border-radius: 32px;
	padding: 32px 53px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

body.single-product .grp-summary-table__head {
	display: grid;
	grid-template-columns: 350px 1fr;
	padding: 12px 0;
}

body.single-product .grp-summary-table__th {
	font-family: var(--grp-cat-font);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.4;
	color: var(--grp-cat-muted);
}

body.single-product .grp-summary-table__row {
	display: grid;
	grid-template-columns: 350px 1fr;
	padding: 12px 0;
	border-bottom: 1px solid var(--grp-cat-primary-100);
	border-top: 0;
}

body.single-product .grp-summary-table__label {
	font-family: var(--grp-cat-font);
	/* Per Figma 660:4809 (tablet) and 702:6420 (mobile): labels are Bold. */
	font-weight: 700;
	font-size: 16px;
	line-height: 1.4;
	color: var(--grp-cat-body-dark);
}

body.single-product .grp-summary-table__value {
	font-family: var(--grp-cat-font);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.4;
	color: var(--grp-cat-body);
	word-break: break-word;
}

/* ─── 9. Research Highlights (5 cards in 2-2-1 grid) ───────────── */
body.single-product .grp-highlights {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	width: 100%;
}

body.single-product .grp-highlights__card {
	background: var(--grp-cat-primary-50);
	border-radius: 24px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-height: 126px;
}

body.single-product .grp-highlights__title {
	margin: 0;
	font-family: var(--grp-cat-font);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.4;
	color: var(--grp-cat-body-dark);
}

body.single-product .grp-highlights__body {
	margin: 0;
	font-family: var(--grp-cat-font);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.4;
	color: var(--grp-cat-body);
}

/* ─── 10. Mechanism Steps (numbered 1-4) ───────────────────────── */
body.single-product .grp-steps {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

body.single-product .grp-steps__item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

body.single-product .grp-steps__num {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--grp-cat-primary-200);
	color: #FFFFFF;
	font-family: var(--grp-cat-font);
	font-weight: 700;
	font-size: 16px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

body.single-product .grp-steps__content {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

body.single-product .grp-steps__title {
	margin: 0;
	font-family: var(--grp-cat-font);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.4;
	color: var(--grp-cat-body-dark);
}

body.single-product .grp-steps__body {
	margin: 0;
	font-family: var(--grp-cat-font);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.4;
	color: var(--grp-cat-body);
}

/* ─── 11. Pharmacokinetic Profile (3 cards in a row) ───────────── */
body.single-product .grp-pharmacokinetic {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	width: 100%;
}

body.single-product .grp-pharmacokinetic__card {
	background: var(--grp-cat-primary-50);
	border-radius: 24px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-height: 104px;
}

body.single-product .grp-pharmacokinetic__card--full {
	grid-column: 1 / -1;
}

body.single-product .grp-pharmacokinetic__title {
	margin: 0;
	font-family: var(--grp-cat-font);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.4;
	color: var(--grp-cat-body-dark);
}

body.single-product .grp-pharmacokinetic__value,
body.single-product .grp-pharmacokinetic__body {
	margin: 0;
	font-family: var(--grp-cat-font);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.4;
	color: var(--grp-cat-body);
}

/* ─── 13. Clinical Trial Activity ──────────────────────────────── */
body.single-product .grp-trials {
	background: var(--grp-cat-primary-50);
	border-radius: 32px;
	padding: 32px 48px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	overflow-x: auto;
}

body.single-product .grp-trials__head,
body.single-product .grp-trials__row {
	display: grid;
	/* Fixed sizes for narrow columns + 1fr for Title prevents the
	 * "max-content sponsor pushes everything left" reflow Iryna hit
	 * on the Tesamorelin 20mg page. NCT numbers stay nowrap via the
	 * `.grp-trials__cell--id` rule below.
	 *   - Trial ID: 115px  (fits "NCT06662383")
	 *   - Title:    1fr
	 *   - Phase:    40px   (1–3 chars: "2", "N/A")
	 *   - Study:    110px  ("Interventional")
	 *   - Sponsor:  180px  (wraps if longer than that) */
	grid-template-columns: 115px minmax(0, 1fr) 40px 110px 180px;
	column-gap: 24px;
	align-items: start;
}

body.single-product .grp-trials__th {
	font-family: var(--grp-cat-font);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.4;
	color: var(--grp-cat-muted);
	white-space: nowrap;
}

body.single-product .grp-trials__row {
	padding-top: 8px;
}

body.single-product .grp-trials__cell {
	font-family: var(--grp-cat-font);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.4;
	color: var(--grp-cat-body);
	word-break: break-word;
}

body.single-product .grp-trials__cell--id,
body.single-product .grp-trials__cell--id a {
	font-weight: 700;
	color: var(--grp-cat-body-dark);
	/* NCT numbers must never wrap — they're identifiers, not prose. */
	white-space: nowrap;
}

body.single-product .grp-trials__cell--id a {
	text-decoration: none;
}

body.single-product .grp-trials__cell--id a:hover {
	color: var(--grp-cat-primary-600);
	text-decoration: underline;
}

/* ─── 14. References (numbered list) ───────────────────────────── */
body.single-product .grp-refs {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

body.single-product .grp-refs__item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

body.single-product .grp-refs__num {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--grp-cat-primary-200);
	color: #FFFFFF;
	font-family: var(--grp-cat-font);
	font-weight: 700;
	font-size: 16px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 6px;
}

body.single-product .grp-refs__body {
	flex: 1 1 auto;
	font-family: var(--grp-cat-font);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.4;
	color: var(--grp-cat-body);
	min-width: 0;
}

body.single-product .grp-refs__body a {
	color: var(--grp-cat-primary-600);
	word-break: break-all;
}

/* ─── 15. Quality & Purity (icon + text) ───────────────────────── */
body.single-product .grp-quality {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

body.single-product .grp-quality__icon {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	color: var(--grp-cat-primary-600);
	margin-top: 4px;
}

body.single-product .grp-quality__text {
	margin: 0;
	font-family: var(--grp-cat-font);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.4;
	color: var(--grp-cat-body);
}

body.single-product .grp-quality__text a {
	color: var(--grp-cat-primary-600);
	text-decoration: underline;
}

/* ─── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
	body.single-product .grp-catalog-section {
		gap: 48px;
	}
	body.single-product .grp-identity-grid {
		grid-template-columns: 1fr;
		column-gap: 32px;
	}
	body.single-product .grp-pharmacokinetic {
		grid-template-columns: 1fr;
	}
	body.single-product .grp-highlights {
		gap: 16px;
	}
	body.single-product .grp-summary-table,
	body.single-product .grp-trials {
		padding: 32px 24px;
	}
	/* Figma 660:4815 tablet: label column 230px, value 300px (gap 20). */
	body.single-product .grp-summary-table__head,
	body.single-product .grp-summary-table__row {
		grid-template-columns: 230px 1fr;
	}
	/* Clinical Trials grid never fits ≤1024 — Trial Title wraps to
	 * 1 char/line. Stack each row as a label/value list per Figma
	 * tablet+mobile layouts (data-label provided by PHP renderer). */
	body.single-product .grp-trials__head {
		display: none;
	}
	/* Figma tablet/mobile (660:4952 / 701:5550):
	 * gap between label/value pairs inside one row = 16
	 * gap between rows                              = 32 */
	body.single-product .grp-trials {
		gap: 32px;
	}
	body.single-product .grp-trials__row {
		grid-template-columns: 1fr !important;
		row-gap: 16px;
		padding-top: 0;
	}
	body.single-product .grp-trials__cell::before {
		content: attr(data-label);
		display: block;
		font-size: 12px;
		color: var(--grp-cat-muted);
		text-transform: uppercase;
		letter-spacing: 0.04em;
		margin-bottom: 16px;
	}
}

@media (max-width: 767px) {
	body.single-product .grp-catalog-section {
		padding: 32px 16px;
	}
}

@media (max-width: 640px) {
	body.single-product .grp-catalog-section {
		gap: 40px;
	}
	body.single-product .grp-section {
		gap: 16px;
	}
	body.single-product .grp-section__header {
		gap: 16px;
	}
	body.single-product .grp-section__title {
		font-size: 20px;
	}
	body.single-product .grp-identity-grid {
		grid-template-columns: 1fr;
	}
	body.single-product .grp-highlights {
		grid-template-columns: 1fr;
	}
	body.single-product .grp-pharmacokinetic {
		grid-template-columns: 1fr;
	}
	body.single-product .grp-trials {
		padding: 16px;
	}
	/* Mobile Summary Table (Figma 702:6420): no column headers,
	 * stacked rows. */
	body.single-product .grp-summary-table__head {
		display: none !important;
	}
	body.single-product .grp-summary-table__row {
		grid-template-columns: 1fr;
		row-gap: 4px;
	}
}


/* ─── Hide unwanted blocks below the catalog sections (not in Figma) ─── */
/* "Tested for purity. Verified for identity." trust banner — rendered by
 * Woodmart/parent theme on every product page, but our Figma layout has
 * a dedicated Quality & Purity section inside .grp-catalog-section. */
body.single-product .grp-trust-banner {
	display: none !important;
}
/* Tabs wrapper — once we remove the description / additional_information /
 * shipping_delivery tabs in PHP, Woodmart still wraps an empty container
 * with a thin underline. Hide it entirely when no tabs remain. */
body.single-product .woocommerce-tabs .wc-tabs:empty,
body.single-product .woocommerce-tabs > .wc-tabs-wrapper > .wc-tabs:empty {
	display: none !important;
}
body.single-product .woocommerce-tabs:has(.wc-tabs:empty) {
	display: none !important;
}

/* ════════════════════════════════════════════════════════════════════
 * Related Products — Figma node 552:25035
 *   Section bg #F0F5FF, full-width, ~1280px content area.
 *   Subtitle "MORE RESEARCH PEPTIDES" + H1 "Related Products" 38/Bold.
 *   4 cards: white, border 1px #E5E7EB, radius 24, padding 15/16.
 *   Each: image, "Popular" tag (bg #F0F5FF radius 99 #114AD0 12px),
 *   title 18/Bold #111827, price 24/Bold, Add to Cart pill #437FC2.
 * ════════════════════════════════════════════════════════════════════ */
/* Default Woodmart Related Products carousel — hidden because we render
 * our own .grp-related block on a hook. */
body.single-product .related-products,
body.single-product .related.products,
body.single-product .wd-carousel-container.related-products {
	display: none !important;
}

/* ════════════════════════════════════════════════════════════════════
 * Related Products — Figma node 552:25035
 * Rendered by grp_render_related_products_section() (child theme).
 * Card markup from grp_render_product_card() in inc/grp-product-card.php.
 * ════════════════════════════════════════════════════════════════════ */
body.single-product .grp-related {
	background: #F0F5FF;
	/* Full-bleed escape — section spans the viewport even though its
	 * parent is the constrained .container.product-tabs-inner. */
	width: 100vw;
	max-width: 100vw;
	margin: 64px 0 0 calc(50% - 50vw);
	/* Vertical 50px gives breathing room around the header + grid so the
	 * card row never touches the footer edge. Horizontal 80px per Iryna. */
	padding: 50px 80px;
	box-sizing: border-box;
	font-family: var( --grp-font-family );
}
body.single-product .grp-related__container {
	max-width: 1281px;
	margin: 0 auto;
	padding: 0;
	box-sizing: border-box;
}
body.single-product .grp-related__header {
	margin: 0 0 32px;
}
body.single-product .grp-related__sublabel {
	margin: 0 0 12px;
	font-family: var( --grp-font-family );
	font-weight: 400;
	font-size: 12px;
	line-height: 1.3;
	letter-spacing: 0.04em;
	color: #437FC2;
	text-transform: uppercase;
}
body.single-product .grp-related__title {
	margin: 0;
	font-family: var( --grp-font-family );
	font-weight: 700;
	font-size: 38px;
	line-height: 1.3;
	color: #111827;
}
body.single-product .grp-related__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	column-gap: 24px;
	row-gap: 24px;
	width: 100%;
}

/* ─── Product card (.grp-card) — shared between Related Products and
 * the catalog block. Figma node 552:24965: 302×494, white bg, border
 * 1px #E5E7EB, radius 24, padding 15px 16px, flex col. */
body.single-product .grp-card,
.grp-card {
	background: #FFFFFF;
	border: 1px solid #E5E7EB;
	border-radius: 24px;
	padding: 15px 16px;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	font-family: var( --grp-font-family );
}
.grp-card__image {
	display: block;
	width: 100%;
	aspect-ratio: 247 / 264;
	border-radius: 16px;
	overflow: hidden;
	margin-bottom: 20px;
}
.grp-card__image-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.grp-card__lower {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.grp-card__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
}
.grp-card__badge {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 99px;
	background: #F0F5FF;
	color: #114AD0;
	font-weight: 400;
	font-size: 12px;
	line-height: 1.3;
	letter-spacing: 0;
}
.grp-card__title {
	margin: 0;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.3;
	color: #111827;
}
.grp-card__title a {
	color: inherit;
	text-decoration: none;
}
.grp-card__title a:hover {
	color: #437FC2;
}
.grp-card__bottom {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: auto;
}
.grp-card__price,
.grp-card__price .amount,
.grp-card__price bdi {
	margin: 0 !important;
	font-weight: 700;
	font-size: 24px;
	line-height: 1.3;
	color: #111827;
}
.grp-card__price del {
	color: #9CA3AF;
	font-weight: 400;
	font-size: 16px;
	margin-right: 8px;
}
.grp-card__cta,
.grp-card__cta.button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	box-sizing: border-box;
	margin-top: 8px;
	padding: 12px 16px;
	border-radius: 99px !important;
	background: #437FC2 !important;
	color: #FFFFFF !important;
	font-family: var( --grp-font-family ) !important;
	font-weight: 400 !important;
	font-size: 16px !important;
	line-height: 1.4 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	text-decoration: none;
	border: 0;
	transition: background 150ms ease;
}
.grp-card__cta:hover,
.grp-card__cta.button:hover {
	background: #114AD0 !important;
	color: #FFFFFF !important;
}
.grp-card__cta-icon {
	flex: none;
	color: currentColor;
}

/* Responsive */
@media (max-width: 1279px) and (min-width: 768px) {
	/* Tablet Related Products: 50px vertical + 32px horizontal section padding.
	 * Full-bleed escape (100vw + negative left margin) so the section bg
	 * spans the viewport, starting 41px below the catalog. */
	body.single-product .grp-related {
		margin: 41px 0 0 calc(50% - 50vw);
		padding: 50px 32px;
	}
	body.single-product .grp-related__container {
		padding: 0;
	}
	body.single-product .grp-related__grid {
		grid-template-columns: repeat(2, 1fr);
	}
	/* Figma 701:6271 tablet card: image container is Hug 247 × Fixed 264
	 * (the same dimensions Figma uses on desktop). Card is wider than 247,
	 * so image is centered horizontally and never stretches. */
	body.single-product .grp-card__image {
		width: 247px;
		height: 264px;
		aspect-ratio: auto;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 12px;
	}
	body.single-product .grp-card__image-img {
		object-fit: contain;
	}
	/* Tablet card vertical spacing per Figma:
	 *   title block → price block = 8
	 *   price → Add to Cart button = 16 */
	body.single-product .grp-card__lower {
		gap: 8px;
	}
	body.single-product .grp-card__bottom {
		gap: 16px;
	}
	body.single-product .grp-card__cta,
	body.single-product .grp-card__cta.button {
		margin-top: 0 !important;
	}
}
@media (max-width: 767px) {
	/* Mobile Related Products per Figma 701:5602.
	   2x2 grid of compact cards. Section bg #F0F5FF stays full-bleed,
	   inner padding 16px sides + 50px vertical. */
	body.single-product .grp-related {
		padding: 50px 16px;
	}
	body.single-product .grp-related__container {
		padding: 0;
	}
	body.single-product .grp-related__title {
		font-size: 28px;
	}
	body.single-product .grp-related__grid {
		grid-template-columns: 1fr 1fr;
		column-gap: 12px;
		row-gap: 16px;
	}
	/* Compact card: radius 14, padding 8, smaller image+text+button. */
	body.single-product .grp-card {
		border-radius: 14px;
		padding: 8px;
	}
	body.single-product .grp-card__image {
		aspect-ratio: 137 / 146;
		border-radius: 8px;
		margin-bottom: 12px;
	}
	body.single-product .grp-card__lower {
		gap: 8px;
	}
	body.single-product .grp-card__text {
		gap: 12px;
	}
	body.single-product .grp-card__badge {
		font-size: 10px;
		padding: 4px 8px;
	}
	body.single-product .grp-card__title {
		font-size: 14px;
	}
	body.single-product .grp-card__price,
	body.single-product .grp-card__price .amount,
	body.single-product .grp-card__price bdi {
		font-size: 20px !important;
	}
	body.single-product .grp-card__cta,
	body.single-product .grp-card__cta.button {
		height: 32px !important;
		min-height: 32px !important;
		padding: 12px 16px !important;
		font-size: 12px !important;
		gap: 10px !important;
	}
	body.single-product .grp-card__cta-icon {
		width: 14px !important;
		height: 14px !important;
	}
}

/* ─── Strip Woodmart's bottom padding/margin on the product-page wrappers ─
 * Single-product only — the full-bleed .grp-related section needs to sit
 * flush with the footer, but Woodmart adds an extra gap below
 * .product-tabs-wrapper and .wd-content-layout.wd-builder-off. */
body.single-product .product-tabs-wrapper {
	padding-top: 50px !important;
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
	/* Figma: no top/bottom dividers on the tabs wrapper. */
	border-top: 0 !important;
	border-bottom: 0 !important;
}
body.single-product .wd-content-layout.content-layout-wrapper.wd-builder-off {
	/* Figma: bottom 0; top spacing differs per viewport. */
	padding-bottom: 0 !important;
}
@media ( min-width: 1280px ) {
	body.single-product .wd-content-layout.content-layout-wrapper.wd-builder-off {
		padding-top: 32px !important;
	}
}
@media ( max-width: 1279px ) and ( min-width: 768px ) {
	body.single-product .wd-content-layout.content-layout-wrapper.wd-builder-off {
		padding-top: 40px !important;
	}
}
@media ( max-width: 767px ) {
	body.single-product .wd-content-layout.content-layout-wrapper.wd-builder-off {
		padding-top: 32px !important;
	}
}
body.single-product .wd-builder-off {
	--wd-single-spacing: 30px;
}

/* ════════════════════════════════════════════════════════════════════
 * Generic section — used by grp_render_generic_section() for headings
 * that don't match any of the 15 named sections (e.g. "Source: PubChem",
 * "Structural Affinity for Cell Membranes", "Synergy of Triple Agonism").
 * Lives inside .grp-catalog-section. Typography matches the named
 * sections so the page reads as uniform regardless of which path the
 * parser took.
 * ════════════════════════════════════════════════════════════════════ */
body.single-product .grp-catalog-section .grp-section-generic {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
	margin: 0;
}
body.single-product .grp-catalog-section .grp-section-generic .grp-section__header {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
}
body.single-product .grp-catalog-section .grp-section-generic .grp-section__title {
	margin: 0;
	font-family: var( --grp-cat-font );
	font-weight: 700;
	font-size: 22px;
	line-height: 1.3;
	letter-spacing: 0;
	color: var( --grp-cat-title );
}
body.single-product .grp-catalog-section .grp-section-generic .grp-section__divider {
	width: 100%;
	height: 1px;
	background: var( --grp-cat-divider );
}
body.single-product .grp-catalog-section .grp-section-generic .grp-section__body {
	width: 100%;
	font-family: var( --grp-cat-font );
	color: var( --grp-cat-body );
}
body.single-product .grp-catalog-section .grp-section-generic .grp-section__body > * + * {
	margin-top: 12px;
}
body.single-product .grp-catalog-section .grp-section-generic .grp-section__body p {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
}
body.single-product .grp-catalog-section .grp-section-generic .grp-section__body ul,
body.single-product .grp-catalog-section .grp-section-generic .grp-section__body ol {
	margin: 0;
	padding-left: 1.4em;
}
body.single-product .grp-catalog-section .grp-section-generic .grp-section__body li {
	font-size: 16px;
	line-height: 1.6;
	margin: 0 0 6px;
}
body.single-product .grp-catalog-section .grp-section-generic .grp-section__body a {
	color: var( --grp-cat-primary-600 );
	text-decoration: underline;
}
