/**
 * HFM Product Page — Hero
 *
 * Scoped under .hfm-product (added via wc_product_class on the #product-{id}
 * wrapper). Tokens mirror .hfm-shop / product-card.css exactly. Selectors are
 * intentionally narrow (.hfm-product__summary-col .price, etc.) so nothing
 * leaks into the FBT block or other price displays below the hero.
 *
 * @package HFM.Parts
 * @copyright ùrlar – https://www.urlar.co/
 */

/* ── Design tokens — mirrors .hfm-shop ──────────────────────────────────── */

.hfm-product {
	color-scheme: light dark;

	/* Surfaces */
	--hfm-bg:    var(--wp--preset--color--base,         light-dark(#fcfcfc, #0a0a0a));
	--hfm-bg-1:  var(--wp--preset--color--base-2,       light-dark(#f7f7f7, #171717));
	--hfm-bg-2:  var(--wp--preset--color--neutral-100,  light-dark(#f5f5f5, #171717));
	--hfm-bg-3:  var(--wp--preset--color--grey-200,     light-dark(#e5e5e5, #262626));

	/* Hairlines */
	--hfm-line:   var(--wp--preset--color--grey-200, light-dark(#e5e5e5, #262626));
	--hfm-line-2: var(--wp--preset--color--grey-300, light-dark(#d4d4d4, #404040));

	/* Ink ramp */
	--hfm-ink:   var(--wp--preset--color--contrast,  light-dark(#191919, #f5f5f5));
	--hfm-ink-1: var(--wp--preset--color--grey-800,  light-dark(#262626, #e5e5e5));
	--hfm-ink-2: var(--wp--preset--color--grey-500,  light-dark(#737373, #a3a3a3));
	--hfm-ink-4: var(--wp--preset--color--grey-400,  light-dark(#a3a3a3, #525252));

	/* Brand purple */
	--hfm-accent:       var(--wp--preset--color--purple-500, light-dark(#874da2, #d05aff));
	--hfm-accent-2:     var(--wp--preset--color--purple-600, light-dark(#75448c, #d87aff));
	--hfm-accent-ink:   light-dark(#ffffff, #0e0420);
	--hfm-accent-faint: var(--wp--preset--color--purple-100, light-dark(#f3e8f7, #41284a));

	/* Status */
	--hfm-ok:   var(--wp--preset--color--green-500,  light-dark(#16a34a, #4ade80));
	--hfm-bad:  var(--wp--preset--color--red-500,    light-dark(#c43a30, #ff6b5a));
	--hfm-warn: var(--wp--preset--color--orange-500, light-dark(#ea580c, #fb923c));

	/* Radius */
	--hfm-r-2: 4px;
	--hfm-r-3: 8px;
	--hfm-r-4: 12px;

	/* Fonts */
	--hfm-f-sans: inherit;
	--hfm-f-mono: inherit;

	font-family: var(--hfm-f-sans);
	color: var(--hfm-ink);
}

.hfm-product * { box-sizing: border-box; }

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

.hfm-product__breadcrumb {
	background: var(--hfm-bg);
	border-bottom: 1px solid var(--hfm-line);
	padding: 11px 28px;
	font-size: 12px;
	color: var(--hfm-ink-2);
}

.hfm-product__breadcrumb .woocommerce-breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0 2px;
	max-width: var(--wp--style--global--content-size, 1280px);
	margin: 0 auto;
	font-size: inherit;
	background: transparent;
	padding: 0;
}

.hfm-product__breadcrumb a {
	color: var(--hfm-ink-2);
	text-decoration: none;
}
.hfm-product__breadcrumb a:hover { color: var(--hfm-ink-1); }

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

.hfm-product__hero {
	background: var(--hfm-bg);
	max-width: var(--wp--style--global--content-size, 1280px);
	margin: 0 auto;
	padding: 32px 28px 48px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: start;
}

@media (max-width: 1024px) {
	.hfm-product__hero {
		grid-template-columns: 1fr;
		gap: 28px;
		padding: 20px 16px 36px;
	}
}

/* Sticky gallery column — stays in view as user reads the summary */
.hfm-product__gallery-col {
	min-width: 0;
	position: sticky;
	top: 24px;
	align-self: start;
}

@media (max-width: 1024px) {
	.hfm-product__gallery-col {
		position: static;
	}
}

.hfm-product__summary-col {
	min-width: 0;
	display: flex;
	flex-direction: column;
	padding-top: 8px;
}

/* ── Eyebrow row — category · SKU + store rating ─────────────────────────── */

.hfm-product__eyebrow-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.hfm-product__eyebrow {
	font-family: var(--hfm-f-mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hfm-accent);
}

.hfm-product__eyebrow::before {
	content: "● ";
	font-size: 8px;
}

.hfm-product__store-rating {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
	font-family: var(--hfm-f-mono);
	font-size: 11px;
	color: var(--hfm-ink-2);
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 150ms;
}

.hfm-product__store-rating:hover { opacity: 0.75; }

.hfm-product__store-rating-star {
	color: var(--hfm-accent);
	line-height: 1;
}

.hfm-product__store-rating-score {
	font-weight: 600;
	color: var(--hfm-ink-1);
}

.hfm-product__store-rating-count {
	color: var(--hfm-ink-2);
}

/* ── Title ───────────────────────────────────────────────────────────────── */

.hfm-product__summary-col .product_title.entry-title {
	font-family: var(--hfm-f-sans) !important;
	font-weight: 900 !important;
	font-size: clamp(26px, 3.2vw, 44px) !important;
	line-height: 1.05 !important;
	letter-spacing: -0.025em !important;
	color: var(--hfm-ink) !important;
	margin: 0 0 18px !important;
}

/* ── Rating ──────────────────────────────────────────────────────────────── */

.hfm-product__summary-col .woocommerce-product-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
}

.hfm-product__summary-col .star-rating {
	font-size: 14px;
	color: var(--hfm-accent);
}

.hfm-product__summary-col .woocommerce-review-link {
	font-size: 12px;
	font-family: var(--hfm-f-mono);
	color: var(--hfm-ink-2);
	text-decoration: none;
}
.hfm-product__summary-col .woocommerce-review-link:hover { color: var(--hfm-ink-1); }

/* ── Price ───────────────────────────────────────────────────────────────── */

.hfm-product__summary-col .price {
	display: flex !important;
	align-items: baseline !important;
	flex-wrap: wrap !important;
	gap: 4px 10px !important;
	margin: 0 0 22px !important;
	color: var(--hfm-ink) !important;
}

.hfm-product__summary-col .price .amount {
	font-size: 32px !important;
	font-weight: 700 !important;
	letter-spacing: -0.025em !important;
	color: var(--hfm-ink) !important;
	text-decoration: none !important;
}

.hfm-product__summary-col .price del {
	opacity: 0.5;
}

.hfm-product__summary-col .price del .amount {
	font-size: 20px !important;
	font-weight: 400 !important;
}

.hfm-product__summary-col .price ins {
	text-decoration: none !important;
	background: none !important;
}

.hfm-product__summary-col .woocommerce-Price-currencySymbol {
	font-size: inherit !important;
	font-weight: inherit !important;
}

.hfm-product__summary-col .woocommerce-price-suffix {
	flex-basis: 100% !important;
	font-size: 11px !important;
	font-weight: 400 !important;
	color: var(--hfm-ink-2) !important;
	font-family: var(--hfm-f-mono) !important;
	letter-spacing: 0.04em !important;
}

/* ── Short description ───────────────────────────────────────────────────── */

.hfm-product__summary-col .woocommerce-product-details__short-description {
	font-size: 15px;
	line-height: 1.65;
	color: var(--hfm-ink-1);
	margin-bottom: 24px;
	text-wrap: pretty;
}

.hfm-product__summary-col .woocommerce-product-details__short-description p {
	margin: 0 0 8px;
}

.hfm-product__summary-col .woocommerce-product-details__short-description p:last-child {
	margin-bottom: 0;
}

/* ── Variation selectors ─────────────────────────────────────────────────── */

/* Off-screen WC selects — in DOM for JS but invisible to the user */
.hfm-var-selects {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	pointer-events: none;
}

/* Attribute card groups */
.hfm-var-attr-groups {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-top: 20px;
	margin-bottom: 20px;
}

.hfm-var-attr-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.hfm-var-attr-group__eyebrow {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hfm-accent);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 2px;
}

.hfm-var-attr-group__eyebrow::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 1px;
	background: currentColor;
	opacity: 0.8;
}

.hfm-product__summary-col table.variations {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 20px;
	width: 100%;
	border: none;
	border-spacing: 0;
	border-collapse: collapse;
}

.hfm-product__summary-col .variations tr,
.hfm-product__summary-col .variations tbody {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.hfm-product__summary-col .variations .label,
.hfm-product__summary-col .variations .value {
	padding: 0;
	display: block;
	border: none;
}

.hfm-product__summary-col .variations label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-family: var(--hfm-f-mono);
	color: var(--hfm-ink-2);
}

.hfm-product__summary-col .variations .value {
	display: flex;
	align-items: center;
	gap: 10px;
}

.hfm-product__summary-col .variations select {
	appearance: none;
	-webkit-appearance: none;
	flex: 1;
	max-width: 100%;
	height: 44px;
	padding: 0 36px 0 14px;
	background: var(--hfm-bg)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
		right 12px center no-repeat;
	border: 1px solid var(--hfm-line-2);
	border-radius: var(--hfm-r-3);
	font-size: 14px;
	color: var(--hfm-ink);
	cursor: pointer;
	transition: border-color 120ms ease;
}

.hfm-product__summary-col .variations select:hover {
	border-color: var(--hfm-ink-2);
}

.hfm-product__summary-col .variations select:focus {
	outline: none;
	border-color: var(--hfm-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--hfm-accent) 18%, transparent);
}

.hfm-product__summary-col .reset_variations {
	font-size: 11px;
	font-family: var(--hfm-f-mono);
	color: var(--hfm-ink-2);
	text-decoration: none;
}
.hfm-product__summary-col .reset_variations:hover { color: var(--hfm-ink-1); }

/* Variation price / availability updates */
.hfm-product__summary-col .single_variation_wrap .woocommerce-variation-price .price {
	margin: 0 0 14px !important;
}

.hfm-product__summary-col .woocommerce-variation-availability {
	font-size: 12px;
	font-family: var(--hfm-f-mono);
	color: var(--hfm-ink-2);
	margin-bottom: 12px;
}

/* ── Stock status row — allow wrap so countdown/labels don't overflow ───── */

.hfm-product__summary-col .product-stock-status {
	flex-wrap: wrap;
	min-width: 0;
	row-gap: 4px;
}

/* ── Cart form ───────────────────────────────────────────────────────────── */

.hfm-product__summary-col form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 10px;
	margin-bottom: 20px;
	min-width: 0;
	max-width: 100%;
}

/* Quantity input */
.hfm-product__summary-col form.cart .quantity {
	display: flex;
	align-items: stretch;
	border: 1px solid var(--hfm-line-2);
	border-radius: var(--hfm-r-3);
	overflow: hidden;
	background: var(--hfm-bg);
}

.hfm-product__summary-col form.cart .qty {
	width: 60px;
	height: 50px;
	border: none;
	text-align: center;
	font-size: 16px;
	font-weight: 600;
	background: transparent;
	color: var(--hfm-ink);
	appearance: textfield;
	-moz-appearance: textfield;
}

.hfm-product__summary-col form.cart .qty::-webkit-inner-spin-button,
.hfm-product__summary-col form.cart .qty::-webkit-outer-spin-button {
	appearance: none;
	-webkit-appearance: none;
}

/* Add to cart button */
.hfm-product__summary-col .single_add_to_cart_button.button {
	flex: 1 1 160px;
	min-width: 0;
	height: 50px;
	padding: 0 24px;
	background: var(--hfm-accent) !important;
	color: var(--hfm-accent-ink) !important;
	border: none !important;
	border-radius: var(--hfm-r-3) !important;
	font-family: var(--hfm-f-sans) !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	letter-spacing: 0.01em !important;
	cursor: pointer;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: background 150ms ease, transform 80ms ease;
	box-shadow: none !important;
}

.hfm-product__summary-col .single_add_to_cart_button.button:hover {
	background: var(--hfm-accent-2) !important;
	color: var(--hfm-accent-ink) !important;
}

.hfm-product__summary-col .single_add_to_cart_button.button:active {
	transform: translateY(1px);
}

.hfm-product__summary-col .single_add_to_cart_button.button.loading {
	opacity: 0.7;
	pointer-events: none;
}

/* ── Product meta (SKU / category / tags) ────────────────────────────────── */

.hfm-product__summary-col .product_meta {
	font-size: 12px;
	font-family: var(--hfm-f-mono);
	color: var(--hfm-ink-2);
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 4px;
	padding-top: 14px;
	border-top: 1px solid var(--hfm-line);
}

.hfm-product__summary-col .product_meta a {
	color: var(--hfm-ink-2);
	text-decoration: none;
}
.hfm-product__summary-col .product_meta a:hover { color: var(--hfm-accent); }

.hfm-product__summary-col .product_meta .sku_wrapper,
.hfm-product__summary-col .product_meta .posted_in,
.hfm-product__summary-col .product_meta .tagged_as {
	letter-spacing: 0.04em;
}

/* ── Retro 7-segment countdown (DSEG7 Classic) ───────────────────────────── */

@font-face {
	font-family: 'DSEG7Classic';
	src: url('https://cdn.jsdelivr.net/npm/dseg@0.46.0/fonts/DSEG7-Classic/DSEG7Classic-Bold.woff2') format('woff2');
	font-weight: bold;
	font-style: normal;
	font-display: swap;
}

.hfm-countdown {
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
	flex-shrink: 0;
	margin: 0 5px;
}

.hfm-dig,
.hfm-dig-sep {
	font-family: 'DSEG7Classic', monospace;
	font-size: 15px;
	font-weight: bold;
	font-style: normal;
	line-height: 1;
}

.hfm-dig {
	display: inline-block;
	min-width: 2ch;
	text-align: center;
}

.hfm-dig-sep {
	padding: 0 1px;
}


/* ══════════════════════════════════════════════════════════════════════════
   OVERVIEW SECTION
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Section eyebrow (reused in tabs too) ────────────────────────────────── */

.hfm-product__section-eyebrow {
	font-family: var(--hfm-f-mono);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--hfm-accent);
	margin-bottom: 16px;
}

/* ── Scratch & Save notice ───────────────────────────────────────────────── */

.hfm-product__ss-notice {
	background: var(--hfm-bg-1);
	border-top: 1px solid var(--hfm-line);
	border-bottom: 1px solid var(--hfm-line);
}

.hfm-product__ss-notice-inner {
	max-width: var(--wp--style--global--content-size, 1280px);
	margin: 0 auto;
	padding: 32px 28px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	gap: 40px;
	align-items: start;
}

@media (max-width: 1024px) {
	.hfm-product__ss-notice-inner {
		grid-template-columns: 1fr;
		gap: 24px;
		padding: 28px 16px;
	}
}

.hfm-product__ss-notice-head {
	min-width: 0;
}

.hfm-product__ss-notice-badge {
	display: inline-block;
	font-family: var(--hfm-f-mono);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--hfm-accent-ink);
	background: var(--hfm-accent);
	padding: 6px 10px;
	border-radius: var(--hfm-r-2);
	margin-bottom: 12px;
}

.hfm-product__ss-notice-title {
	font-size: 22px;
	line-height: 1.25;
	margin: 0 0 8px;
	color: var(--hfm-ink);
}

.hfm-product__ss-notice-lede {
	font-size: 14px;
	line-height: 1.55;
	color: var(--hfm-ink-2);
	margin: 0;
}

.hfm-product__ss-notice-points {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
}

.hfm-product__ss-notice-points li {
	font-size: 14px;
	line-height: 1.55;
	color: var(--hfm-ink-1);
	padding-left: 14px;
	border-left: 2px solid var(--hfm-accent);
}

.hfm-product__ss-notice-point-label {
	display: block;
	font-family: var(--hfm-f-mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--hfm-ink);
	margin-bottom: 2px;
}

.hfm-product__ss-notice-link {
	grid-column: 1 / -1;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	justify-self: start;
	margin-top: 4px;
	font-size: 13px;
	font-weight: 600;
	color: var(--hfm-accent);
	text-decoration: none;
}

.hfm-product__ss-notice-link:hover {
	color: var(--hfm-accent-2);
	text-decoration: underline;
}

/* ── Overview layout ─────────────────────────────────────────────────────── */

.hfm-product__overview {
	background: var(--hfm-bg);
	border-top: 1px solid var(--hfm-line);
}

.hfm-product__overview-inner {
	max-width: var(--wp--style--global--content-size, 1280px);
	margin: 0 auto;
	padding: 64px 28px;
	display: grid;
	grid-template-columns: 1fr 420px;
	gap: 64px;
	align-items: start;
}

@media (max-width: 1024px) {
	.hfm-product__overview-inner {
		grid-template-columns: 1fr;
		gap: 40px;
		padding: 40px 16px;
	}
}

/* ── Left column — description + features ───────────────────────────────── */

.hfm-product__overview-desc {
	font-size: 15px;
	line-height: 1.75;
	color: var(--hfm-ink-1);
	margin-bottom: 32px;
	text-wrap: pretty;
}

.hfm-product__overview-desc p { margin: 0 0 14px; }
.hfm-product__overview-desc p:last-child { margin-bottom: 0; }
.hfm-product__overview-desc h2,
.hfm-product__overview-desc h3 {
	font-weight: 700;
	font-size: 18px;
	margin: 24px 0 8px;
	color: var(--hfm-ink);
}

/* ── Feature checkmark grid ─────────────────────────────────────────────── */

.hfm-product__feature-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 24px;
	list-style: none;
	padding: 0;
	margin: 0;
}

@media (max-width: 520px) {
	.hfm-product__feature-grid {
		grid-template-columns: 1fr;
	}
}

.hfm-product__feature-item {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	font-size: 14px;
	line-height: 1.45;
	color: var(--hfm-ink-1);
}

.hfm-product__feature-item::before {
	content: "✓";
	flex-shrink: 0;
	font-size: 12px;
	font-weight: 700;
	color: var(--hfm-ok);
	margin-top: 1px;
}

/* ── Right column — value prop cards ────────────────────────────────────── */

.hfm-product__overview-right {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.hfm-product__valprop {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 16px 18px;
	border-radius: var(--hfm-r-3);
	border: 1px solid var(--hfm-line);
	background: var(--hfm-bg-1);
	transition: border-color 130ms;
}

.hfm-product__valprop:hover {
	border-color: var(--hfm-line-2);
}

.hfm-product__valprop-icon {
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: color-mix(in srgb, var(--hfm-accent) 12%, transparent);
	color: var(--hfm-accent);
	border-radius: var(--hfm-r-2);
	margin-top: 1px;
}

.hfm-product__valprop-title {
	font-size: 14px;
	font-weight: 700;
	color: var(--hfm-ink);
	margin-bottom: 4px;
}

.hfm-product__valprop-body {
	font-size: 13px;
	line-height: 1.5;
	color: var(--hfm-ink-2);
}

/* ══════════════════════════════════════════════════════════════════════════
   INSTALL GUIDES SECTION
   ══════════════════════════════════════════════════════════════════════════ */

.hfm-product__guides-section {
	background: var(--hfm-bg);
	border-top: 1px solid var(--hfm-line);
}

.hfm-product__guides-inner {
	max-width: var(--wp--style--global--content-size, 1280px);
	margin: 0 auto;
	padding: 48px 28px;
}

@media (max-width: 1024px) {
	.hfm-product__guides-inner {
		padding: 32px 16px;
	}
}

.hfm-product__guides-heading {
	font-size: 22px;
	font-weight: 700;
	color: var(--hfm-ink);
	margin: 0 0 20px;
	line-height: 1.2;
}

.hfm-guides__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: 560px;
}

.hfm-guides__btn {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border: 1px solid var(--hfm-line);
	border-radius: var(--hfm-r-3);
	background: var(--hfm-bg-1);
	color: var(--hfm-ink);
	text-decoration: none;
	transition: border-color 130ms, background 130ms, box-shadow 130ms;
}

.hfm-guides__btn:hover {
	border-color: var(--hfm-accent);
	background: color-mix(in srgb, var(--hfm-accent) 5%, transparent);
	box-shadow: 0 2px 10px color-mix(in srgb, var(--hfm-accent) 12%, transparent);
}

.hfm-guides__btn-icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: color-mix(in srgb, var(--hfm-accent) 10%, transparent);
	color: var(--hfm-accent);
	border-radius: var(--hfm-r-2);
}

.hfm-guides__btn-label {
	flex: 1;
	font-size: 14px;
	font-weight: 600;
	color: var(--hfm-ink);
	line-height: 1.3;
	display: flex;
	flex-direction: column;
}

.hfm-guides__btn-sub {
	font-size: 11px;
	font-weight: 400;
	color: var(--hfm-ink-4);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-top: 2px;
}

.hfm-guides__btn-arrow {
	flex-shrink: 0;
	color: var(--hfm-ink-4);
	transition: color 130ms, transform 130ms;
}

.hfm-guides__btn:hover .hfm-guides__btn-arrow {
	color: var(--hfm-accent);
	transform: translateX(3px);
}

/* ══════════════════════════════════════════════════════════════════════════
   TABS SECTION
   ══════════════════════════════════════════════════════════════════════════ */

.hfm-product__tabs-section {
	background: var(--hfm-bg);
	border-top: 1px solid var(--hfm-line);
}

/* ── Tab nav bar ─────────────────────────────────────────────────────────── */

.hfm-product__tabs-nav-wrap {
	background: var(--hfm-bg-2);
	border-bottom: 1px solid var(--hfm-line);
	position: sticky;
	top: 0;
	z-index: 10;
}

.hfm-product__tabs-eyebrow-row {
	max-width: var(--wp--style--global--content-size, 1280px);
	margin: 0 auto;
	padding: 16px 28px 0;
}

@media (max-width: 768px) {
	.hfm-product__tabs-eyebrow-row {
		padding: 12px 16px 0;
	}
}

.hfm-product__tabs-eyebrow {
	font-family: var(--hfm-f-mono);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--hfm-accent);
}

.hfm-product__tabs-nav {
	position: relative;
	max-width: var(--wp--style--global--content-size, 1280px);
	margin: 0 auto;
	padding: 0 28px;
	display: flex;
	align-items: flex-end;
	gap: 0;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.hfm-product__tabs-nav::-webkit-scrollbar { display: none; }

@media (max-width: 768px) {
	.hfm-product__tabs-nav {
		padding: 0 16px;
	}
}

/* ── Individual tab button ───────────────────────────────────────────────── */

.hfm-product__tab {
	flex-shrink: 0;
	padding: 16px 24px 14px;
	background: transparent;
	border: none;
	border-radius: 0;
	font-family: var(--hfm-f-sans);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--hfm-ink-2);
	cursor: pointer;
	white-space: nowrap;
	transition: color 150ms;
	display: flex;
	align-items: center;
	gap: 7px;
}

.hfm-product__tab:hover {
	background: transparent;
	color: color-mix(in srgb, var(--hfm-ink-2) 60%, var(--hfm-ink));
}

.hfm-product__tab.is-active {
	background: transparent;
	color: var(--hfm-ink);
	font-weight: 700;
}

/* ── Sliding indicator ───────────────────────────────────────────────────── */

.hfm-product__tabs-indicator {
	position: absolute;
	bottom: 0;
	height: 3px;
	background: var(--hfm-accent);
	border-radius: 3px 3px 0 0;
	pointer-events: none;
	will-change: left, width;
	transition: left 260ms cubic-bezier(0.4, 0, 0.2, 1), width 260ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hfm-product__tab-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	background: color-mix(in srgb, var(--hfm-accent) 12%, transparent);
	color: var(--hfm-accent);
	border-radius: 3px;
	font-size: 10px;
	font-family: var(--hfm-f-mono);
	font-weight: 700;
}

/* ── Tab panel ───────────────────────────────────────────────────────────── */

.hfm-product__tab-panel {
	background: var(--hfm-bg);
}

.hfm-product__tab-panel > .max-w-screen-xl,
.hfm-product__tab-panel > div[class*="max-w"] {
	max-width: var(--wp--style--global--content-size, 1280px);
	margin: 0 auto;
	padding-left: 28px;
	padding-right: 28px;
}

@media (max-width: 768px) {
	.hfm-product__tab-panel > .max-w-screen-xl,
	.hfm-product__tab-panel > div[class*="max-w"] {
		padding-left: 16px;
		padding-right: 16px;
	}
}

/* ── FAQ accordion (reskin existing Alpine component) ────────────────────── */

#hfm-tab-faq .border-0 {
	margin-bottom: 6px !important;
}

#hfm-tab-faq .border-2.border-solid {
	background: var(--hfm-bg-1) !important;
	border-color: var(--hfm-line) !important;
	border-radius: var(--hfm-r-3) !important;
	color: var(--hfm-ink) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
}

#hfm-tab-faq .accordion-content {
	background: var(--hfm-bg) !important;
	color: var(--hfm-ink-1) !important;
	font-size: 14px !important;
	line-height: 1.65 !important;
	border: 1px solid var(--hfm-line);
	border-top: none;
	border-radius: 0 0 var(--hfm-r-3) var(--hfm-r-3);
}

/* ── Install tab ─────────────────────────────────────────────────────────── */

.hfm-product__install-text {
	font-size: 15px;
	line-height: 1.65;
	color: var(--hfm-ink-1);
	margin-bottom: 24px;
}

.hfm-product__install-grid {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.hfm-product__install-grid--split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: start;
}

@media (max-width: 768px) {
	.hfm-product__install-grid--split {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}

.hfm-product__install-video {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: var(--hfm-r-4) !important;
	overflow: hidden;
	background: var(--hfm-bg-3);
}

.hfm-product__yt-embed {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

.hfm-product__install-guides-col {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hfm-product__install-guides-heading {
	font-size: 16px;
	font-weight: 700;
	color: var(--hfm-ink);
	margin: 0;
	line-height: 1.2;
}

/* ── Fitment table reskin ────────────────────────────────────────────────── */

.hfm-product__tab-panel .hfm-compat-table {
	font-family: var(--hfm-f-sans);
}

.hfm-product__tab-panel .hfm-compat-thead th {
	background: var(--hfm-bg) !important;
	color: var(--hfm-ink-2) !important;
	font-size: 10px !important;
	font-weight: 600 !important;
	font-family: var(--hfm-f-mono);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 7px 10px;
	border-bottom-color: var(--hfm-line) !important;
}

/* ── Add-to-cart states ──────────────────────────────────────────────────── */

@keyframes hfm-spin { to { transform: rotate(360deg); } }

.hfm-btn-spin {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: hfm-spin 0.6s linear infinite;
	vertical-align: middle;
	flex-shrink: 0;
	margin-left: 6px;
}

.hfm-atc-check {
	margin-left: 6px;
}

.hfm-product__summary-col .single_add_to_cart_button.button.hfm-atc-success {
	pointer-events: none;
}

.hfm-atc-error {
	font-size: 13px;
	color: var(--hfm-bad, #c43a30);
	background: color-mix(in srgb, var(--hfm-bad, #c43a30) 8%, transparent);
	border: 1px solid color-mix(in srgb, var(--hfm-bad, #c43a30) 28%, transparent);
	border-radius: var(--hfm-r-3, 8px);
	padding: 10px 14px;
	margin-bottom: 12px;
}

/* ── Sale flash (WC default) ─────────────────────────────────────────────── */

.hfm-product .onsale {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	font-family: var(--hfm-f-mono);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	background: color-mix(in srgb, var(--hfm-bad) 14%, transparent);
	color: var(--hfm-bad);
	border: 1px solid color-mix(in srgb, var(--hfm-bad) 35%, transparent);
	margin-bottom: 12px;
}

/* ══════════════════════════════════════════════════════════════════════════
   CUSTOMER PHOTOS SECTION
   ══════════════════════════════════════════════════════════════════════════ */

.hfm-product__photos {
	background: var(--hfm-bg);
	border-top: 1px solid var(--hfm-line);
	padding: 48px 0 56px;
	overflow: hidden;
}

.hfm-product__photos-header {
	max-width: var(--wp--style--global--content-size, 1280px);
	margin: 0 auto;
	padding: 0 28px 24px;
}

.hfm-product__photos-title {
	font-size: 24px;
	font-weight: 800;
	color: var(--hfm-ink);
	margin: 6px 0 0;
	line-height: 1.2;
}

.hfm-product__photos-scroll {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	padding: 0 28px 12px;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x mandatory;
}

.hfm-product__photos-scroll::-webkit-scrollbar { display: none; }

.hfm-product__photo-item {
	flex: 0 0 auto;
	width: 240px;
	scroll-snap-align: start;
	border-radius: var(--hfm-r-4) !important;
	overflow: hidden;
	border: 1px solid var(--hfm-line);
	background: var(--hfm-bg-1);
}

@media (max-width: 768px) {
	.hfm-product__photo-item {
		width: 70vw;
		max-width: 280px;
	}
	.hfm-product__photos-scroll {
		padding: 0 16px 12px;
	}
	.hfm-product__photos-header {
		padding: 0 16px 20px;
	}
}

.hfm-product__photo-img {
	width: 100%;
	aspect-ratio: 6 / 9;
	object-fit: cover;
	display: block;
	transition: transform 300ms ease;
}

.hfm-product__photo-item:hover .hfm-product__photo-img {
	transform: scale(1.03);
}

/* ══════════════════════════════════════════════════════════════════════════
   WHAT'S INCLUDED / IN THE BOX
   ══════════════════════════════════════════════════════════════════════════ */

.hfm-product__in-the-box {
	max-width: var(--wp--style--global--content-size, 1280px);
	margin: 0 auto;
	padding: 32px 28px 16px;
}

.hfm-product__in-the-box-header {
	margin-bottom: 16px;
}

.hfm-product__in-the-box-title {
	font-size: 24px;
	font-weight: 800;
	color: var(--hfm-ink);
	margin: 6px 0 0;
	line-height: 1.2;
}

.hfm-product__in-the-box-wysiwyg {
	color: var(--hfm-ink);
	font-size: 15px;
	line-height: 1.6;
}

.hfm-product__in-the-box-wysiwyg ul,
.hfm-product__in-the-box-wysiwyg ol {
	padding-left: 1.25em;
	margin: 0 0 12px;
}

.hfm-product__in-the-box-wysiwyg p {
	margin: 0 0 12px;
}

.hfm-product__in-the-box-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-width: 720px;
}

.hfm-product__in-the-box-item {
	padding: 10px 0;
	border-bottom: 1px solid var(--hfm-line);
	color: var(--hfm-ink);
}

.hfm-product__in-the-box-item:last-child {
	border-bottom: 0;
}

.hfm-product__in-the-box-row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.hfm-product__in-the-box-icon {
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	object-fit: cover;
	border-radius: var(--hfm-r-3, 8px);
	border: 1px solid var(--hfm-line);
	background: var(--hfm-bg-1);
	display: block;
}

.hfm-product__in-the-box-text {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--hfm-ink);
}

.hfm-product__in-the-box-qty {
	font-weight: 800;
	color: var(--hfm-ink);
	min-width: 1.75em;
}

.hfm-product__in-the-box-label {
	font-weight: 600;
	color: var(--hfm-ink);
}

.hfm-product__in-the-box-tag {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--hfm-accent);
	background: var(--hfm-accent-faint);
	padding: 2px 8px;
	border-radius: 999px;
	line-height: 1.4;
}

.hfm-product__in-the-box-choices {
	list-style: none;
	margin: 6px 0 2px;
	padding: 6px 0 2px 52px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.hfm-product__in-the-box-item.has-choices:not(:has(.hfm-product__in-the-box-icon)) .hfm-product__in-the-box-choices {
	padding-left: 24px;
}

.hfm-product__in-the-box-choice {
	position: relative;
	font-size: 13px;
	color: var(--hfm-ink-1);
	padding-left: 18px;
	line-height: 1.4;
}

.hfm-product__in-the-box-choice::before {
	content: "└";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--hfm-ink-4);
	font-family: var(--hfm-f-mono, monospace);
	font-size: 14px;
	line-height: 1.4;
}

@media (max-width: 768px) {
	.hfm-product__in-the-box {
		padding: 24px 16px 8px;
	}
}

/* ══════════════════════════════════════════════════════════════════════════
   COMPAT TABLE
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Inline chassis/engine tags ─────────────────────────────────────────── */

.hfm-chassis-chip {
	display: inline-flex;
	font: 700 9px/1 var(--hfm-f-mono);
	padding: 2px 5px;
	border-radius: 4px;
	background: color-mix(in srgb, var(--hfm-accent) 10%, transparent);
	color: var(--hfm-accent);
	letter-spacing: 0.08em;
}

.hfm-engine-chip {
	display: inline-flex;
	font: 600 9px/1 var(--hfm-f-mono);
	padding: 2px 5px;
	border-radius: 4px;
	background: var(--hfm-bg-2);
	color: var(--hfm-ink-2);
	letter-spacing: 0.06em;
}

/* ── Search bar — flex container, border on wrapper not the input ───────── */

.hfm-compat-search-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--hfm-line-2);
	border-radius: var(--hfm-r-3);
	background: var(--hfm-bg);
	padding: 0 12px;
	margin-bottom: 14px;
	transition: border-color 120ms, box-shadow 120ms;
}

.hfm-compat-search-wrap:focus-within {
	border-color: var(--hfm-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--hfm-accent) 15%, transparent);
}

.hfm-compat-search-icon {
	flex-shrink: 0;
	display: block;
	width: 14px;
	height: 14px;
	color: var(--hfm-ink-4);
	pointer-events: none;
}

.hfm-compat-search {
	flex: 1;
	border: none;
	background: transparent;
	padding: 8px 0;
	font-size: 13px;
	color: var(--hfm-ink);
	outline: none;
	min-width: 0;
}

.hfm-compat-search::placeholder { color: var(--hfm-ink-4); }

/* ── Table ──────────────────────────────────────────────────────────────── */

.hfm-compat-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: var(--hfm-r-3);
	border: 1px solid var(--hfm-line);
}

.hfm-compat-table__table {
	table-layout: auto;
	width: 100%;
	border-collapse: collapse;
	min-width: 340px;
}

.hfm-compat-table__table th,
.hfm-compat-table__table td {
	border: none;
	vertical-align: middle;
}

.hfm-compat-table__table thead th {
	text-align: left;
	padding: 0 12px 10px;
	font-size: 10px;
	font-weight: 600;
	color: var(--hfm-ink-4);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-family: var(--hfm-f-mono);
	white-space: nowrap;
}

.hfm-compat-table__table thead th.hfm-compat-td-icon,
.hfm-compat-table__table thead th.hfm-compat-td-image { padding-bottom: 10px; }

.hfm-compat-table__table tbody tr {
	border-top: 1px solid var(--hfm-line);
	transition: background 100ms;
}

.hfm-compat-table__table tbody tr:first-child {
	border-top: none;
}

.hfm-compat-table__table tbody tr:hover { background: var(--hfm-bg-1); }

.hfm-compat-table__table td[colspan] {
	text-align: center;
	padding: 28px 12px;
	font-size: 13px;
}

.hfm-compat-table__table a { color: var(--hfm-accent); text-decoration: underline; }

/* ── Column sizing ──────────────────────────────────────────────────────── */

.hfm-compat-td-icon    { width: 36px; text-align: center; padding: 16px 4px 16px 12px; }
.hfm-compat-td-image   { width: 64px; padding: 10px 12px 10px 0; }
.hfm-compat-td-vehicle { padding: 16px 14px; }
.hfm-compat-td-years   { padding: 16px 14px; white-space: nowrap; font-size: 12px; color: var(--hfm-ink-4); }
.hfm-compat-td-notes   { padding: 10px 14px 10px 0; width: 220px; }

@media (max-width: 520px) {
	/* ── Search ── */
	.hfm-compat-search { padding-top: 13px; padding-bottom: 13px; }

	/* ── Stacked row layout ──────────────────────────────────────────────────
	   Switch the table to block so each <tr> becomes a flex card.
	   Layout per row:
	     [icon] [vehicle name]         [years]
	            [chassis/engine chips]
	            [notes expand]
	   ─────────────────────────────────────────────────────────────────────── */
	.hfm-compat-scroll { overflow-x: hidden; border-radius: var(--hfm-r-2); }

	.hfm-compat-table__table,
	.hfm-compat-table__table tbody { display: block; min-width: 0; }

	.hfm-compat-table__table thead { display: none; }

	.hfm-compat-table__table tbody tr {
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		gap: 0;
		padding: 12px 10px;
	}

	/* Reset all tds to block so flex takes over */
	.hfm-compat-table__table td { display: block; padding: 0; border: none; }

	/* Image column — not needed in stacked view */
	.hfm-compat-td-image { display: none; }

	/* Icon — narrow left column, aligned to first text baseline */
	.hfm-compat-td-icon {
		width: 26px;
		flex-shrink: 0;
		align-self: flex-start;
		padding-top: 1px;
		text-align: center;
	}

	/* Vehicle — takes remaining first-line space */
	.hfm-compat-td-vehicle {
		flex: 1;
		min-width: 0;
		overflow-wrap: break-word;
		word-break: break-word;
	}

	.hfm-compat-td-vehicle .hfm-compat-vehicle-name { font-size: 13px; line-height: 1.35; }

	/* Years — sits to the right of the vehicle name on the same line */
	.hfm-compat-td-years {
		flex-shrink: 0;
		white-space: nowrap;
		font-size: 11px;
		color: var(--hfm-ink-4);
		padding-left: 8px;
		align-self: flex-start;
		padding-top: 2px;
	}

	/* Notes — second line, full width, indented to align under vehicle name */
	.hfm-compat-td-notes {
		width: 100%;
		padding-left: 26px;
	}

	/* Only add top spacing when reqs actually have content */
	.hfm-compat-td-notes .hfm-compat-reqs { margin-top: 5px; }

	/* Colspan rows (loading / no-results) — span full flex row */
	.hfm-compat-table__table td[colspan] {
		width: 100%;
		padding: 20px 10px;
		text-align: center;
	}
}

/* ── Row states ─────────────────────────────────────────────────────────── */

.hfm-compat-row-miss { opacity: 0.55; }

.hfm-compat-row-active {
	background: color-mix(in srgb, var(--hfm-accent) 6%, transparent) !important;
	box-shadow: inset 3px 0 0 var(--hfm-accent);
}

/* ── Vehicle thumbnail ──────────────────────────────────────────────────── */

.hfm-compat-vehicle-thumb {
	display: block;
	width: 54px;
	height: 38px;
	object-fit: contain;
	border-radius: var(--hfm-r-2);
	border: 1px solid var(--hfm-line);
	background: var(--hfm-bg-1);
}

/* ── Vehicle cell content ───────────────────────────────────────────────── */

.hfm-compat-vehicle-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--hfm-ink);
	line-height: 1.35;
}

.hfm-compat-chips-row {
	display: flex;
	gap: 4px;
	margin-top: 4px;
	flex-wrap: wrap;
	align-items: center;
}

.hfm-universal-badge {
	display: inline-flex;
	align-items: center;
	font: 700 11px/1 var(--hfm-f-mono);
	padding: 3px 7px;
	border-radius: 5px;
	letter-spacing: 0.05em;
	background: color-mix(in srgb, var(--hfm-ok) 12%, transparent);
	color: var(--hfm-ok);
	border: 1px solid color-mix(in srgb, var(--hfm-ok) 30%, transparent);
}

/* ── Requirements bullet list ───────────────────────────────────────────── */

.hfm-compat-reqs {
	margin: 0;
	padding: 0 0 0 16px;
	list-style: disc;
}

.hfm-compat-reqs li {
	font-size: 12px;
	line-height: 1.5;
	color: var(--hfm-ink-2);
	padding: 1px 0;
}

/* ── Error / misc ───────────────────────────────────────────────────────── */

.hfm-compat-error {
	font-size: 13px;
	color: var(--hfm-bad);
	margin-top: 12px;
}

/* ══════════════════════════════════════════════════════════════════════════
   360° TAB PANEL
   ══════════════════════════════════════════════════════════════════════════ */

.hfm-product__360-wrap {
	width: 100%;
	min-height: 420px;
	border-radius: var(--hfm-r-4) !important;
	overflow: hidden;
	background: var(--hfm-bg-1);
	border: 1px solid var(--hfm-line);
}

.hfm-product__360-wrap .Sirv {
	width: 100%;
	min-height: 420px;
}

/* ══════════════════════════════════════════════════════════════════════════
   ICONIC WSB PRODUCT BUMPS BUTTON
   ══════════════════════════════════════════════════════════════════════════ */

@keyframes AnimationName {
	0%, 100% { background-position: 0% 50%; }
	50%       { background-position: 100% 50%; }
}

.iconic-wsb-product-bumps__button {
	background-image: linear-gradient(to right, var(--tw-gradient-stops)) !important;
	--tw-gradient-from: #c5392f var(--tw-gradient-from-position) !important;
	--tw-gradient-to: #874ea2 var(--tw-gradient-to-position) !important;
	--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
	text-transform: uppercase;
	animation: AnimationName 3s ease infinite;
	background-size: 200%;
	color: #fff !important;
	transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.iconic-wsb-product-bumps__button:hover {
	--tw-gradient-from: #874ea2 var(--tw-gradient-from-position) !important;
	--tw-gradient-to: #c5392f var(--tw-gradient-to-position) !important;
	--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
	color: #fff !important;
}

.iconic-wsb-product-bumps__button:focus {
	box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}

/* ══════════════════════════════════════════════════════════════════════════
   COMPAT TABLE — global notes banner
   ══════════════════════════════════════════════════════════════════════════ */

.hfm-compat-warn {
	margin-bottom: 14px;
	padding: 10px 14px;
	border-radius: var(--hfm-r-3);
	font-size: 13px;
	background: color-mix(in srgb, var(--hfm-warn) 10%, transparent);
	border: 1px solid color-mix(in srgb, var(--hfm-warn) 35%, transparent);
	color: var(--hfm-ink-1);
}

/* ══════════════════════════════════════════════════════════════════════════
   FITMENT VERDICT — hero card (image top, info panel bottom)
   ══════════════════════════════════════════════════════════════════════════ */

.hfm-fitment-verdict {
	margin: 14px 0 12px;
	border-radius: var(--hfm-r-3);
	border: 1px solid var(--hfm-line);
	background: light-dark(#e5e5e5, #2a2a2a);
	overflow: hidden;
}

/* ── Image hero ──────────────────────────────────────────────────────── */

.hfm-verdict-hero {
	position: relative;
	display: block;
	width: 100%;
	/* Compact — sits in the narrow product summary column. */
	height: clamp(60px, 14vw, 60px);
	overflow: hidden;
	background: light-dark(#efefef, #1f1f1f);
}
.hfm-verdict-img {
	position: absolute;
	top: 0;
	bottom: 0;
	/* Off-card crop: pull image left so the boot bleeds past the right edge. */
	left: -10%;
	width: 33%;
	height: 100%;
	object-fit: cover;
	object-position: left center;
	display: block;
	will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
	.hfm-verdict-img.drive-out-right,
	.hfm-verdict-img.drive-in-left {
		animation: none !important;
		transform: none !important;
	}
}

/* Status indicator dot overlaying the hero (top-right corner). */
.hfm-verdict-status-dot {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--hfm-ink-4);
	border: 2px solid light-dark(#ffffff, #0a0a0a);
	box-shadow: 0 1px 4px rgb(0 0 0 / 25%);
	z-index: 2;
}
.hfm-fitment-verdict[data-status="fits"]         .hfm-verdict-status-dot { background: var(--hfm-ok); }
.hfm-fitment-verdict[data-status="requirements"] .hfm-verdict-status-dot { background: var(--hfm-warn); }
.hfm-fitment-verdict[data-status="no-fit"]       .hfm-verdict-status-dot { background: var(--hfm-bad); }

/* ── Info panel ──────────────────────────────────────────────────────── */

.hfm-verdict-panel {
	display: flex;
	/* Pin actions to the top so the Change button doesn't slide down when the
	   Requirements <details> expands and the copy column grows. */
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px 14px;
	background: light-dark(#f5f5f5, #1a1a1a);
	border-top: 1px solid var(--hfm-line);
}

.hfm-verdict-copy {
	flex: 1 1 auto;
	min-width: 0;
}

.hfm-verdict-eyebrow {
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hfm-accent);
	line-height: 1.2;
}
.hfm-fitment-verdict[data-status="fits"]         .hfm-verdict-eyebrow { color: var(--hfm-ok); }
.hfm-fitment-verdict[data-status="requirements"] .hfm-verdict-eyebrow { color: var(--hfm-warn); }
.hfm-fitment-verdict[data-status="no-fit"]       .hfm-verdict-eyebrow { color: var(--hfm-bad); }

.hfm-verdict-title {
	font-size: 18px;
	font-weight: 800;
	color: var(--hfm-ink);
	line-height: 1.2;
	margin-top: 3px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hfm-verdict-detail {
	font-size: 11px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	color: var(--hfm-ink-2);
	margin-top: 4px;
	line-height: 1.3;
}

.hfm-verdict-actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 6px;
}

/* ── Requirements expandable ────────────────────────────────────────────── */

.hfm-verdict-reqs {
	margin-top: 8px;
}

.hfm-verdict-reqs summary {
	list-style: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	font-weight: 600;
	color: var(--hfm-warn);
	user-select: none;
}

.hfm-verdict-reqs summary::-webkit-details-marker { display: none; }

.hfm-verdict-reqs-chevron {
	transition: transform 150ms;
}

.hfm-verdict-reqs[open] .hfm-verdict-reqs-chevron {
	transform: rotate(180deg);
}

.hfm-verdict-reqs-list {
	margin: 8px 0 2px 4px;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.hfm-verdict-reqs-list li {
	display: flex;
	align-items: baseline;
	gap: 6px;
	font-size: 12px;
	color: var(--hfm-ink-1);
}

.hfm-verdict-reqs-list li::before {
	content: "›";
	flex-shrink: 0;
	color: var(--hfm-warn);
	font-weight: 700;
}

/* ── CTA buttons ────────────────────────────────────────────────────────── */

.hfm-verdict-cta {
	appearance: none;
	flex-shrink: 0;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	padding: 9px 14px;
	border-radius: 8px;
	border: 1px solid transparent;
	background: transparent;
	color: var(--hfm-ink);
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, filter 140ms ease;
}
.hfm-verdict-cta--primary {
	background: var(--hfm-accent);
	color: var(--hfm-accent-ink);
	border-color: var(--hfm-accent);
}
.hfm-verdict-cta--primary:hover {
	filter: brightness(1.08);
	color: var(--hfm-accent-ink);
}
.hfm-verdict-cta--ghost {
	border-color: var(--hfm-line-2);
	color: var(--hfm-ink-1);
	background: light-dark(#ffffff, #262626);
}
.hfm-verdict-cta--ghost:hover {
	border-color: var(--hfm-ink-2);
	background: light-dark(#ffffff, #2e2e2e);
}


.hfm-compat-footnote {
	font-size: 12px;
	margin-top: 16px;
	color: var(--hfm-ink-4);
}

.hfm-compat-footnote a {
	color: var(--hfm-accent);
	text-decoration: underline;
}

/* ══════════════════════════════════════════════════════════════════════════
   FAQ ACCORDION
   ══════════════════════════════════════════════════════════════════════════ */

.hfm-faq-list {
	padding: 4px 0 32px;
}

.hfm-faq-item {
	border-top: 1px solid var(--hfm-line-2);
}

.hfm-faq-item:last-child {
	border-bottom: 1px solid var(--hfm-line-2);
}

/* ── Trigger: full browser reset + explicit states ───────────────────────── */

.hfm-faq-trigger {
	/* Browser reset */
	-webkit-appearance: none;
	appearance: none;
	background: transparent !important;
	border: none;
	border-radius: 0 !important;
	box-shadow: none;
	outline: none;
	-webkit-tap-highlight-color: transparent;
	margin: 0;
	padding: 0;
	font-family: inherit;

	/* Layout */
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 18px 0;
	gap: 16px;

	/* Typography */
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
	color: var(--hfm-ink-1);
	text-align: left;

	cursor: pointer;
	user-select: none;
	transition: color 150ms;
}

.hfm-faq-trigger:hover {
	background: transparent !important;
	color: var(--hfm-ink);
}

.hfm-faq-trigger:active {
	background: transparent !important;
	color: var(--hfm-ink);
}

.hfm-faq-trigger:focus-visible {
	outline: 2px solid var(--hfm-accent);
	outline-offset: 3px;
	border-radius: 3px !important;
	background: transparent !important;
}

.hfm-faq-trigger.is-open {
	color: var(--hfm-ink);
}

@media (prefers-color-scheme: dark) {
	.hfm-faq-trigger,
	.hfm-faq-trigger:hover,
	.hfm-faq-trigger:active,
	.hfm-faq-trigger:focus,
	.hfm-faq-trigger:focus-visible,
	.hfm-faq-trigger.is-open {
		color: #f5f5f5;
	}
}

/* ── Chevron icon ────────────────────────────────────────────────────────── */

.hfm-faq-icon {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	color: var(--hfm-ink-4);
	transform: rotate(180deg);
	transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1), color 150ms;
}

.hfm-faq-icon--open {
	transform: rotate(0deg);
	color: var(--hfm-accent);
}

/* ── Answer body ─────────────────────────────────────────────────────────── */

.hfm-faq-body {
	padding: 0 32px 22px 0;
	font-size: 14px;
	line-height: 1.8;
	color: var(--hfm-ink-2);
}

.hfm-faq-body > *:first-child { margin-top: 0; }
.hfm-faq-body > *:last-child { margin-bottom: 0; }
.hfm-faq-body a { color: var(--hfm-accent); }
.hfm-faq-body p { margin: 0 0 8px; }

/* ══════════════════════════════════════════════════════════════════════════
   LAYOUT WRAPPERS
   ══════════════════════════════════════════════════════════════════════════ */

.hfm-product__content-wrap {
	max-width: var(--wp--style--global--content-size, 1280px);
	margin: 0 auto;
	padding: 0 16px;
	overflow: hidden;
}

.hfm-product__tab-inner {
	max-width: var(--wp--style--global--content-size, 1280px);
	margin: 0 auto;
	padding: 32px 16px;
}

/* ── Reviews + bottom sections ──────────────────────────────────────────── */

.hfm-product__reviews-wrap { padding-top: 24px; }

.hfm-product__after-tabs {
	padding: 32px 4px;
}

@media (min-width: 1024px) {
	.hfm-product__after-tabs { padding: 32px 16px; }
}

.hfm-product__disclaimer {
	padding: 32px 4px;
	font-size: 13px;
	text-align: center;
	color: var(--hfm-ink-2);
}

@media (min-width: 1024px) {
	.hfm-product__disclaimer { padding: 32px 16px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   REVIEWS SECTION
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Section eyebrow row ─────────────────────────────────────────────────── */

.hfm-reviews__eyebrow-row {
	margin-bottom: 20px;
}

/* ── Summary box — three-column layout ──────────────────────────────────── */

.hfm-reviews__summary {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 0;
	align-items: center;
	background: var(--hfm-bg-1);
	border: 1px solid var(--hfm-line);
	border-radius: var(--hfm-r-4) !important;
	padding: 28px 32px;
	margin-bottom: 36px;
}

@media (max-width: 900px) {
	.hfm-reviews__summary {
		grid-template-columns: auto 1fr;
		grid-template-rows: auto auto;
	}

	/* Distribution spans both columns on narrow */
	.hfm-reviews__summary-dist {
		grid-column: 1 / -1;
		order: 3;
		padding: 20px 0 0;
		margin-top: 20px;
		border-top: 1px solid var(--hfm-line);
		border-left: none !important;
		padding-left: 0 !important;
	}

	/* CTA moves to second column of row 1 */
	.hfm-reviews__summary-cta {
		border-left: 1px solid var(--hfm-line);
		order: 2;
	}
}

@media (max-width: 600px) {
	.hfm-reviews__summary {
		grid-template-columns: 1fr;
		padding: 20px;
		text-align: center;
	}

	.hfm-reviews__summary-score {
		align-items: center;
		padding-right: 0 !important;
		border-right: none !important;
		padding-bottom: 16px;
		border-bottom: 1px solid var(--hfm-line);
	}

	.hfm-reviews__summary-cta {
		align-items: center !important;
		border-left: none !important;
		padding-left: 0 !important;
		padding-top: 16px;
		border-top: 1px solid var(--hfm-line);
	}

	.hfm-reviews__summary-dist {
		padding: 16px 0 0;
		margin-top: 16px;
		text-align: left;
	}

	.hfm-reviews__write-btn {
		width: 100%;
		justify-content: center;
	}
}

/* ── Score column ────────────────────────────────────────────────────────── */

.hfm-reviews__summary-score {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding-right: 32px;
	border-right: 1px solid var(--hfm-line);
	min-width: 110px;
}

.hfm-reviews__avg {
	font-size: 64px;
	font-weight: 900;
	letter-spacing: -0.04em;
	line-height: 1;
	color: var(--hfm-ink);
	display: block;
}

.hfm-reviews__summary-out {
	font-size: 11px;
	font-family: var(--hfm-f-mono);
	color: var(--hfm-ink-4);
	letter-spacing: 0.04em;
}

/* ── Stars (shared between summary and cards) ────────────────────────────── */

.hfm-reviews__stars-wrap,
.hfm-reviews__card-stars {
	position: relative;
	display: inline-flex;
}

.hfm-reviews__stars-bg,
.hfm-reviews__stars-fg {
	display: flex;
	gap: 3px;
}

.hfm-reviews__stars-fg {
	position: absolute;
	left: 0;
	top: 0;
	overflow: hidden;
	white-space: nowrap;
}

.hfm-reviews__star {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	fill: currentColor;
	color: var(--hfm-bg-3);
}

.hfm-reviews__star--filled {
	color: var(--hfm-accent);
}

/* ── Distribution bars ───────────────────────────────────────────────────── */

.hfm-reviews__summary-dist {
	padding: 0 32px;
	min-width: 0;
}

.hfm-reviews__dist-row {
	display: grid;
	grid-template-columns: 38px 1fr 28px;
	align-items: center;
	gap: 10px;
	margin-bottom: 7px;
}

.hfm-reviews__dist-row:last-child { margin-bottom: 0; }

.hfm-reviews__dist-label {
	font-size: 11px;
	font-family: var(--hfm-f-mono);
	color: var(--hfm-ink-2);
	text-align: right;
	white-space: nowrap;
}

.hfm-reviews__dist-track {
	height: 7px;
	border-radius: 999px;
	background: var(--hfm-bg-3);
	overflow: hidden;
}

.hfm-reviews__dist-fill {
	height: 100%;
	border-radius: 999px;
	background: var(--hfm-accent);
	transition: width 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Colour shifts for lower star counts */
.hfm-reviews__dist-fill--3 { background: color-mix(in srgb, var(--hfm-accent) 55%, var(--hfm-warn)); }
.hfm-reviews__dist-fill--2 { background: var(--hfm-warn); opacity: 0.85; }
.hfm-reviews__dist-fill--1 { background: var(--hfm-bad);  opacity: 0.75; }

.hfm-reviews__dist-count {
	font-size: 11px;
	font-family: var(--hfm-f-mono);
	color: var(--hfm-ink-4);
	text-align: right;
}

/* ── CTA column ──────────────────────────────────────────────────────────── */

.hfm-reviews__summary-cta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding-left: 32px;
	border-left: 1px solid var(--hfm-line);
	min-width: 170px;
}

.hfm-reviews__cta-heading {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--hfm-accent);
	font-family: var(--hfm-f-mono);
}

.hfm-reviews__cta-text {
	font-size: 13px;
	color: var(--hfm-ink-4);
	margin: 0;
	line-height: 1.45;
}

.hfm-reviews__cta-text strong {
	color: var(--hfm-ink-2);
	font-weight: 600;
}

.hfm-reviews__write-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	background: var(--hfm-ink);
	color: var(--hfm-bg) !important;
	border: 1px solid var(--hfm-ink);
	border-radius: var(--hfm-r-3);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none !important;
	cursor: pointer;
	transition: background 140ms, border-color 140ms;
	margin-top: 6px;
	font-family: var(--hfm-f-sans);
	line-height: 1;
}

.hfm-reviews__write-btn:hover {
	background: var(--hfm-accent);
	border-color: var(--hfm-accent);
	color: var(--hfm-accent-ink) !important;
}

/* ── Reviews grid ────────────────────────────────────────────────────────── */

.hfm-reviews__grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 0 16px;
	/* align-items: start is the key masonry fix — without it the grid stretches
	   cards to the row height so getBoundingClientRect() returns wrong values. */
	align-items: start;
	list-style: none !important;
	padding: 0 !important;
	margin: 0 0 16px !important;
}

/* Masonry state — JS adds this class after calculating row spans */
.hfm-reviews__grid.is-masonry {
	grid-auto-rows: 10px;
}

/* Hide cards beyond the 6th until expanded */
.hfm-reviews__grid:not(.is-expanded) .hfm-reviews__card:nth-child(n+7) {
	display: none;
}

@media (max-width: 1024px) {
	.hfm-reviews__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.hfm-reviews__grid {
		display: flex !important;
		flex-direction: column !important;
		gap: 16px !important;
	}
}

/* ── Individual card ─────────────────────────────────────────────────────── */

.hfm-reviews__card {
	background: var(--hfm-bg);
	border: 1px solid var(--hfm-line);
	border-radius: var(--hfm-r-4) !important;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	list-style: none !important;
	margin-bottom: 16px;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
	transition: box-shadow 150ms, border-color 150ms;
}

.hfm-reviews__card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	border-color: var(--hfm-line-2);
}

/* ── Card head: avatar + name/date ──────────────────────────────────────── */

.hfm-reviews__card-head {
	display: flex;
	align-items: center;
	gap: 11px;
}

.hfm-reviews__avatar {
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.02em;
}

.hfm-reviews__card-meta {
	min-width: 0;
}

.hfm-reviews__card-author {
	font-size: 14px;
	font-weight: 700;
	color: var(--hfm-ink);
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	line-height: 1.3;
}

.hfm-reviews__verified {
	font-size: 10px;
	font-weight: 600;
	color: var(--hfm-ok);
	background: color-mix(in srgb, var(--hfm-ok) 12%, transparent);
	border: 1px solid color-mix(in srgb, var(--hfm-ok) 28%, transparent);
	padding: 2px 7px;
	border-radius: 4px;
	letter-spacing: 0.03em;
}

.hfm-reviews__card-date {
	font-size: 11px;
	color: var(--hfm-ink-4);
	font-family: var(--hfm-f-mono);
	margin-top: 2px;
}

/* ── Card stars ──────────────────────────────────────────────────────────── */

.hfm-reviews__card-stars {
	position: relative;
	display: inline-flex;
}

/* ── Grouped product attribution ─────────────────────────────────────────── */

.hfm-reviews__card-product {
	font-size: 11px;
	font-family: var(--hfm-f-mono);
	color: var(--hfm-ink-4);
}

.hfm-reviews__card-product a {
	color: var(--hfm-accent);
	text-decoration: none;
}

.hfm-reviews__card-product a:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ── Review text ─────────────────────────────────────────────────────────── */

.hfm-reviews__card-content {
	font-size: 14px;
	line-height: 1.65;
	color: var(--hfm-ink-1);
	text-wrap: pretty;
	flex: 1;
}

/* ── Empty / no-reviews state ────────────────────────────────────────────── */

.hfm-reviews__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 48px 24px;
	gap: 16px;
	color: var(--hfm-ink-2);
	font-size: 15px;
	margin-bottom: 24px;
}

.hfm-reviews__empty--cta {
	padding: 32px 24px 0;
	margin-top: 8px;
	border-top: 1px solid var(--hfm-line);
}

.hfm-reviews__fallback-note {
	font-size: 14px;
	color: var(--hfm-ink-2);
	margin: 0 0 24px;
}

/* ── Show-more button ────────────────────────────────────────────────────── */

.hfm-reviews__show-more-wrap {
	text-align: center;
	margin-bottom: 40px;
}

.hfm-reviews__show-more-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 11px 24px;
	background: var(--hfm-bg);
	color: var(--hfm-ink);
	border: 1px solid var(--hfm-line-2);
	border-radius: var(--hfm-r-3);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 140ms, background 140ms, box-shadow 140ms;
}

.hfm-reviews__show-more-btn:hover {
	border-color: var(--hfm-accent);
	background: color-mix(in srgb, var(--hfm-accent) 6%, transparent);
	box-shadow: 0 2px 10px color-mix(in srgb, var(--hfm-accent) 14%, transparent);
	color: var(--hfm-accent);
}

/* ── WC default overrides (scoped) ───────────────────────────────────────── */

.hfm-reviews .woocommerce-Reviews-title { display: none !important; }

.hfm-reviews .commentlist::before,
.hfm-reviews .commentlist::after { display: none !important; content: none !important; }

.woocommerce .hfm-reviews #comments ol.commentlist li .comment-text {
	margin: 0;
	border: none;
	border-radius: 0;
	padding: 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   FREQUENTLY BOUGHT TOGETHER BLOCK
   ══════════════════════════════════════════════════════════════════════════ */

[x-cloak] { display: none !important; }

/* ── Section wrapper ─────────────────────────────────────────────────────── */

.hfm-fbt {
	border-top: 1px solid var(--hfm-line);
	padding: 28px 28px 36px;
	background: var(--hfm-bg);
	max-width: var(--wp--style--global--content-size, 1280px);
	margin: 0 auto;
}

@media (max-width: 768px) {
	.hfm-fbt { padding: 20px 16px 28px; }
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.hfm-fbt__header {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.hfm-fbt__savings-badge {
	display: inline-flex;
	align-items: center;
	font-family: var(--hfm-f-mono);
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--hfm-ok);
	background: color-mix(in srgb, var(--hfm-ok) 10%, transparent);
	border: 1px solid color-mix(in srgb, var(--hfm-ok) 30%, transparent);
	border-radius: var(--hfm-r-2);
	padding: 3px 8px;
}

/* ── Card row ────────────────────────────────────────────────────────────── */

.hfm-fbt__row {
	display: flex;
	align-items: stretch; /* equal-height cards */
	gap: 0;
	flex-wrap: nowrap;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding-bottom: 4px;
}
.hfm-fbt__row::-webkit-scrollbar { display: none; }

/* row-group = connector + card, keeps them paired during scroll */
.hfm-fbt__row-group {
	display: contents; /* flat on desktop; becomes flex-column on mobile below */
}

/* ── Plus connector ──────────────────────────────────────────────────────── */

.hfm-fbt__connector {
	display: flex;
	flex-direction: row;
	align-items: flex-start; /* content sits at padding-top, not vertically centred */
	flex-shrink: 0;
	/* Nudge the + to the visual centre of the 4:3 image area.
	   Cards are 220px wide → image height = 165px → centre = 82.5px.
	   Connector content ~18px → offset = 82.5 - 9 ≈ 74px. */
	padding: 74px 4px 0;
	color: var(--hfm-ink-4);
}
.hfm-fbt__connector-line {
	width: 14px;
	height: 1px;
	background: var(--hfm-line-2);
	flex-shrink: 0;
}
.hfm-fbt__connector-plus {
	font-size: 18px;
	font-weight: 300;
	line-height: 1;
	padding: 0 3px;
	color: var(--hfm-ink-4);
	flex-shrink: 0;
}

/* ── Individual card ─────────────────────────────────────────────────────── */

.hfm-fbt__item {
	flex: 0 0 220px;
	min-width: 180px;
	max-width: 260px;
	scroll-snap-align: start;
	background: var(--hfm-bg-1);
	border: 1px solid var(--hfm-line);
	border-radius: var(--hfm-r-3);
	overflow: hidden;
	position: relative;
	transition: border-color 0.15s, box-shadow 0.15s, opacity 0.2s, filter 0.2s;
}
.hfm-fbt__item:hover {
	border-color: var(--hfm-line-2);
	box-shadow: 0 6px 24px -12px color-mix(in srgb, var(--hfm-ink) 25%, transparent);
}
.hfm-fbt__item--deselected {
	opacity: 0.52;
	filter: grayscale(0.25);
}
.hfm-fbt__item--oos {
	opacity: 0.48;
	filter: grayscale(0.4);
}

/* full-height label so entire card is the click target */
.hfm-fbt__card-label {
	display: flex;
	flex-direction: column;
	height: 100%;
	cursor: pointer;
	position: relative;
}

/* ── Checkbox overlay ────────────────────────────────────────────────────── */

.hfm-fbt__cb-input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.hfm-fbt__cb {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 5;
	width: 22px;
	height: 22px;
	border-radius: var(--hfm-r-2);
	border: 1.5px solid var(--hfm-line-2);
	background: color-mix(in srgb, var(--hfm-bg) 82%, transparent);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.12s, border-color 0.12s;
	color: transparent;
	flex-shrink: 0;
	pointer-events: none;
}

.hfm-fbt__cb-input:checked ~ .hfm-fbt__cb {
	background: var(--hfm-accent);
	border-color: var(--hfm-accent);
	color: var(--hfm-accent-ink);
}
.hfm-fbt__cb-input:disabled ~ .hfm-fbt__cb {
	opacity: 0.4;
	cursor: not-allowed;
}

/* ── Media area — reuse .hfm-card__media tokens ──────────────────────────── */

.hfm-fbt .hfm-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--hfm-bg-2);
	overflow: hidden;
	border-radius: var(--hfm-r-3) var(--hfm-r-3) 0 0;
	flex-shrink: 0;
}

/* img — sits above the ::before grid placeholder inherited from product-card.css */
.hfm-fbt__img { z-index: 1; }

/* "This item" badge — top-left of media */
.hfm-fbt__this-item-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 3;
}

/* Sale badge — top-left */
.hfm-fbt .hfm-card__tag {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 3;
}

/* SKU pill */
.hfm-fbt .hfm-card__sku {
	z-index: 3;
}

/* ── Card body ───────────────────────────────────────────────────────────── */

.hfm-fbt .hfm-card__body {
	padding: 12px 14px 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

/* Title — smaller than archive cards to fit the narrower FBT columns */
.hfm-fbt__title-link {
	font-family: var(--hfm-f-sans);
	font-weight: 800;
	font-size: 13.5px;
	letter-spacing: -0.01em;
	line-height: 1.25;
	color: var(--hfm-ink);
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.hfm-fbt__title-link:hover {
	color: var(--hfm-accent);
}

/* Price — compact */
.hfm-fbt .hfm-card__commerce { padding-top: 2px; }
.hfm-fbt .hfm-card__price {
	display: flex;
	align-items: baseline;
	gap: 4px;
	flex-wrap: wrap;
	line-height: 1;
}
.hfm-fbt .hfm-card__price .price:not(.urlar-rbp-price) .amount,
.hfm-fbt .hfm-card__price .urlar-rbp-price ins .amount {
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.02em;
	text-decoration: none;
	background: none;
	color: var(--hfm-ink);
}
.hfm-fbt .hfm-card__price del { display: none; }
.hfm-fbt .hfm-card__price .price,
.hfm-fbt .hfm-card__price > .price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 2px 4px;
	margin: 0;
	padding: 0;
}
.hfm-fbt .hfm-card__price .woocommerce-price-suffix {
	flex-basis: 100%;
	font-size: 10px;
	font-weight: 400;
	color: var(--hfm-ink-2);
	line-height: 1.4;
}
/* Suppress the free-ship callout inside FBT (too cluttered at this size) */
.hfm-fbt .hfm-card__price .woocommerce-price-suffix::after { content: none; }

/* ── Combined strip ──────────────────────────────────────────────────────── */

.hfm-fbt__strip {
	margin-top: 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 18px;
	background: color-mix(in srgb, var(--hfm-ink) 3%, var(--hfm-bg));
	border: 1px solid var(--hfm-line);
	border-radius: var(--hfm-r-3);
	flex-wrap: wrap;
}

.hfm-fbt__strip-total {
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
}

.hfm-fbt__strip-label {
	font-family: var(--hfm-f-mono);
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--hfm-ink-2);
}

.hfm-fbt__strip-price {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--hfm-ink);
	line-height: 1;
}

.hfm-fbt__strip-items {
	font-family: var(--hfm-f-mono);
	font-size: 10px;
	color: var(--hfm-ink-2);
	letter-spacing: 0.04em;
}

/* ATC button — explicit overrides beat WC/WP button resets */
.hfm-fbt .hfm-btn.hfm-btn--primary {
	background: var(--hfm-accent) !important;
	color: var(--hfm-accent-ink) !important;
	border-color: transparent !important;
}
.hfm-fbt .hfm-btn.hfm-btn--primary:hover {
	background: var(--hfm-accent-2) !important;
	color: var(--hfm-accent-ink) !important;
}
.hfm-fbt__atc-btn { min-width: 200px; }

.hfm-fbt__atc-btn--added {
	background: var(--hfm-ok) !important;
	border-color: var(--hfm-ok) !important;
}

.hfm-fbt__btn-inner {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

/* ── Error state ─────────────────────────────────────────────────────────── */

.hfm-fbt__error {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	background: color-mix(in srgb, var(--hfm-bad) 8%, transparent);
	border: 1px solid color-mix(in srgb, var(--hfm-bad) 30%, transparent);
	border-radius: var(--hfm-r-3);
	color: var(--hfm-bad);
	font-size: 13px;
}

.hfm-fbt__error-dismiss {
	font-size: 18px;
	line-height: 1;
	background: transparent;
	border: none;
	color: var(--hfm-bad);
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
}

.hfm-fbt__noscript {
	font-size: 13px;
	color: var(--hfm-ink-2);
	margin: 0;
}

/* ── Mobile layout ───────────────────────────────────────────────────────── */

@media (max-width: 640px) {
	/* Connector doesn't work in a horizontal scroll strip — hide it.
	   Gap provides the spacing instead. */
	.hfm-fbt__connector { display: none; }

	/* Keep row-group flat so each card is a direct flex item */
	.hfm-fbt__row-group { display: contents; }

	.hfm-fbt__row { gap: 10px; }

	/* Cards slightly wider on mobile for comfortable thumb-scroll reading */
	.hfm-fbt__item {
		flex: 0 0 72vw;
		max-width: 72vw;
	}

	/* Strip stacks on mobile */
	.hfm-fbt__strip {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}
	.hfm-fbt__atc-btn {
		width: 100%;
		min-width: 0;
		justify-content: center;
	}
}


/* ═══════════════════════════════════════════════════════════════════════════
   Review form — bottom sheet  (.hfm-rf-*)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Bottom-sheet positioning (overrides the right-slide drawer) ─────────── */

#add-review {
	top: auto !important;
	right: 0 !important;
	left: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	max-height: 92vh;
	border-radius: 20px 20px 0 0 !important;
	transform: translateY(110%) !important;
	transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1) !important;
	display: flex !important;
	flex-direction: column !important;
	overflow: hidden !important;
	font-family: var(--hfm-f-sans);
	color: var(--hfm-ink);
	background: var(--hfm-bg) !important;
}

#add-review[open] {
	transform: translateY(0) !important;
}

#add-review .drawer__overlay {
	top: -100vh !important;
	right: auto !important;
	left: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
}

@media (min-width: 640px) {
	#add-review {
		left: 50% !important;
		right: auto !important;
		max-width: 620px !important;
		transform: translate(-50%, 110%) !important;
	}

	#add-review[open] {
		transform: translate(-50%, 0) !important;
	}
}

/* ── Drag handle ─────────────────────────────────────────────────────────── */

.hfm-rf-drag-handle {
	width: 36px;
	height: 4px;
	background: var(--hfm-line-2);
	border-radius: 2px;
	margin: 12px auto 0;
	flex-shrink: 0;
}

/* ── Drawer header ───────────────────────────────────────────────────────── */

#add-review .hfm-rf-header {
	background: var(--hfm-bg) !important;
	border-bottom: 1px solid var(--hfm-line) !important;
	padding: 0 20px !important;
	height: 56px !important;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-shrink: 0;
}

#add-review .hfm-rf-header__title {
	font-size: 16px;
	font-weight: 700;
	color: var(--hfm-ink);
	letter-spacing: -0.01em;
}

#add-review .hfm-rf-close {
	background: transparent !important;
	border: none !important;
	color: var(--hfm-ink-2) !important;
	cursor: pointer;
	padding: 8px;
	margin-right: -8px;
	border-radius: var(--hfm-r-2);
	transition: color 150ms, background 150ms;
	width: auto !important;
	height: auto !important;
}

#add-review .hfm-rf-close:hover {
	color: var(--hfm-ink) !important;
	background: var(--hfm-bg-2) !important;
}

/* ── Scrollable body ─────────────────────────────────────────────────────── */

#add-review .hfm-rf-body {
	background: var(--hfm-bg) !important;
	padding: 20px 20px 36px !important;
	overflow-y: auto;
	flex: 1 1 auto;
}

/* ── Product context strip ───────────────────────────────────────────────── */

.hfm-rf-context {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	background: var(--hfm-bg-1);
	border: 1px solid var(--hfm-line);
	border-radius: var(--hfm-r-3);
	margin-bottom: 20px;
}

.hfm-rf-context__thumb {
	width: 52px;
	height: 52px;
	object-fit: cover;
	border-radius: var(--hfm-r-2);
	flex-shrink: 0;
	border: 1px solid var(--hfm-line);
}

.hfm-rf-context__info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.hfm-rf-context__name {
	font-size: 13px;
	font-weight: 600;
	color: var(--hfm-ink-1);
	line-height: 1.4;
}

.hfm-rf-context__verified {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	font-family: var(--hfm-f-mono);
	font-weight: 600;
	color: var(--hfm-ok);
	letter-spacing: 0.02em;
}

/* ── Suppress comment_form() chrome ─────────────────────────────────────── */

#add-review .comment-respond {
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
}

#add-review .screen-reader-text,
#add-review .comment-reply-title {
	display: none !important;
}

#add-review p.stars {
	display: none !important;
}

/* ── Form layout ─────────────────────────────────────────────────────────── */

.hfm-rf-form {
	display: flex;
	flex-direction: column;
}

.hfm-rf-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 16px;
}

.hfm-rf-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.hfm-rf-field--textarea {
	margin-bottom: 20px;
}

.hfm-rf-field label,
.hfm-rf-field-top label {
	font-size: 11px;
	font-weight: 700;
	color: var(--hfm-ink-2);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-family: var(--hfm-f-mono);
}

.hfm-rf-required {
	color: var(--hfm-bad);
	margin-left: 1px;
}

/* ── Inputs & textarea ───────────────────────────────────────────────────── */

.hfm-rf-form input[type="text"],
.hfm-rf-form input[type="email"],
.hfm-rf-form textarea {
	width: 100%;
	background: var(--hfm-bg-1);
	border: 1px solid var(--hfm-line-2);
	border-radius: var(--hfm-r-3);
	padding: 10px 13px;
	font-size: 14px;
	font-family: var(--hfm-f-sans);
	color: var(--hfm-ink);
	line-height: 1.5;
	transition: border-color 150ms, box-shadow 150ms;
	outline: none;
	-webkit-appearance: none;
}

.hfm-rf-form input[type="text"]::placeholder,
.hfm-rf-form input[type="email"]::placeholder,
.hfm-rf-form textarea::placeholder {
	color: var(--hfm-ink-4);
}

.hfm-rf-form input[type="text"]:focus,
.hfm-rf-form input[type="email"]:focus,
.hfm-rf-form textarea:focus {
	border-color: var(--hfm-accent);
	box-shadow: 0 0 0 3px var(--hfm-accent-faint);
}

.hfm-rf-form textarea {
	resize: vertical;
	min-height: 110px;
}

/* ── Avatar preview on name field ────────────────────────────────────────── */

.hfm-rf-input-with-avatar {
	display: flex;
	align-items: center;
	gap: 8px;
}

.hfm-rf-input-with-avatar input {
	flex: 1;
	min-width: 0;
}

.hfm-rf-avatar-preview {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--hfm-bg-2);
	border: 1px solid var(--hfm-line);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: var(--hfm-ink-4);
	font-size: 12px;
	font-weight: 700;
	transition: background 200ms, color 200ms;
	overflow: hidden;
}

.hfm-rf-avatar-icon {
	width: 15px;
	height: 15px;
}

.hfm-rf-avatar-initials {
	display: none;
}

/* ── Textarea char counter ───────────────────────────────────────────────── */

.hfm-rf-field-top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
}

.hfm-rf-char-counter {
	font-size: 11px;
	font-family: var(--hfm-f-mono);
	color: var(--hfm-ink-4);
	transition: color 150ms;
	flex-shrink: 0;
}

.hfm-rf-char-counter.is-near { color: var(--hfm-warn); }
.hfm-rf-char-counter.is-over { color: var(--hfm-bad);  }

/* ── Section divider ─────────────────────────────────────────────────────── */

.hfm-rf-divider {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 4px 0 18px;
}

.hfm-rf-divider::before,
.hfm-rf-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--hfm-line);
}

.hfm-rf-divider span {
	font-size: 10px;
	font-family: var(--hfm-f-mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hfm-ink-2);
	white-space: nowrap;
}

/* ── Interactive star picker ─────────────────────────────────────────────── */

.hfm-rf-field--stars {
	margin-bottom: 4px;
}

.hfm-rf-stars-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.hfm-rf-stars {
	display: flex;
	gap: 2px;
	align-items: center;
}

.hfm-rf-star {
	background: none;
	border: none;
	padding: 3px;
	margin: 0;
	cursor: pointer;
	color: var(--hfm-bg-3);
	transition: color 80ms, transform 80ms;
	line-height: 0;
	border-radius: var(--hfm-r-2);
}

.hfm-rf-star svg {
	width: 36px;
	height: 36px;
	display: block;
}

.hfm-rf-star:focus-visible {
	outline: 2px solid var(--hfm-accent);
	outline-offset: 2px;
}

.hfm-rf-star.is-lit {
	color: var(--hfm-accent);
	transform: scale(1.12);
}

.hfm-rf-star-badge {
	display: inline-flex;
	align-items: center;
	height: 26px;
	padding: 0 10px;
	border-radius: 99px;
	background: var(--hfm-bg-2);
	border: 1px solid var(--hfm-line);
}

.hfm-rf-star-prompt,
.hfm-rf-star-label {
	font-size: 11px;
	font-family: var(--hfm-f-mono);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}

.hfm-rf-star-prompt { color: var(--hfm-ink-4); }

.hfm-rf-star-label {
	color: var(--hfm-accent);
	display: none;
}

.hfm-rf-star-label:not(:empty) { display: inline; }

/* ── Submit button ───────────────────────────────────────────────────────── */

.hfm-rf-submit-wrap {
	margin-top: 4px;
}

.hfm-rf-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 50px;
	padding: 0 28px;
	border: none;
	border-radius: var(--hfm-r-3);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var(--hfm-accent-ink) !important;
	cursor: pointer;
	background: var(--hfm-accent);
	transition: background 150ms ease, transform 80ms ease, opacity 150ms ease;
}

.hfm-rf-submit:hover:not(:disabled) {
	background: var(--hfm-accent-2);
}

.hfm-rf-submit:active:not(:disabled) {
	transform: translateY(1px);
}

.hfm-rf-submit:disabled,
.hfm-rf-submit.is-loading {
	opacity: 0.65;
	cursor: not-allowed;
	pointer-events: none;
}

.hfm-rf-submit.is-success {
	background: var(--hfm-ok);
	pointer-events: none;
}

.hfm-rf-submit.is-error {
	background: var(--hfm-bad);
	animation: hfm-rf-shake 0.45s ease;
}

@keyframes hfm-rf-shake {
	0%, 100% { transform: translateX(0); }
	20%, 60% { transform: translateX(-5px); }
	40%, 80% { transform: translateX(5px); }
}

/* Spinner inside button */
.hfm-rf-spinner {
	display: inline-block;
	width: 15px;
	height: 15px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: hfm-rf-spin 0.55s linear infinite;
	flex-shrink: 0;
}

@keyframes hfm-rf-spin {
	to { transform: rotate(360deg); }
}

/* Inline error message above button */
.hfm-rf-submit-error {
	font-size: 13px;
	color: var(--hfm-bad);
	background: color-mix(in srgb, var(--hfm-bad) 8%, transparent);
	border: 1px solid color-mix(in srgb, var(--hfm-bad) 25%, transparent);
	border-radius: var(--hfm-r-3);
	padding: 10px 13px;
	margin-bottom: 12px;
	line-height: 1.45;
}

/* Star-required shake */
.hfm-rf-stars-row.needs-rating {
	animation: hfm-rf-shake 0.45s ease;
}

/* ── Moderation note ─────────────────────────────────────────────────────── */

.hfm-rf-moderation-note {
	font-size: 11px;
	font-family: var(--hfm-f-mono);
	color: var(--hfm-ink-4);
	text-align: center;
	margin: 10px 0 0;
	letter-spacing: 0.02em;
}

/* ── Must-login message ──────────────────────────────────────────────────── */

.hfm-rf-must-login {
	font-size: 14px;
	color: var(--hfm-ink-2);
	text-align: center;
	padding: 24px 0;
}

.hfm-rf-must-login a {
	color: var(--hfm-accent);
	text-decoration: underline;
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
	.hfm-rf-row {
		grid-template-columns: 1fr;
	}
}


/* ══════════════════════════════════════════════════════════════════════════
   BUNDLE & COMPOSITE PRODUCTS
   Both .bundle_form and .composite_form render inside
   .hfm-product__summary-col and inherit the --hfm-* token set.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Customiser toggle button ────────────────────────────────────────────── */

.hfm-customiser-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 50px;
	padding: 0 28px;
	background: var(--hfm-accent);
	color: var(--hfm-accent-ink);
	border: none;
	border-radius: var(--hfm-r-3);
	font-family: var(--hfm-f-sans);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: background 150ms ease, transform 80ms ease;
	margin-bottom: 10px;
}

.hfm-customiser-toggle:hover {
	background: var(--hfm-accent-2);
}

.hfm-customiser-toggle:active {
	transform: translateY(1px);
}

.hfm-customiser-toggle.is-open {
	background: var(--hfm-bg-3);
	color: var(--hfm-ink-2);
	font-weight: 600;
}

.hfm-customiser-toggle.is-open:hover {
	background: var(--hfm-line-2);
	color: var(--hfm-ink);
}

/* ── Customiser panel wrapper ────────────────────────────────────────────── */

.hfm-customiser-panel {
	border: 1px solid var(--hfm-line);
	border-radius: var(--hfm-r-4);
	overflow: hidden;
	margin-bottom: 16px;
}

/* ── Bundle groups (Inclusions / Optional Extras) ────────────────────────── */

.hfm-bundle__group {
	padding: 18px 18px 6px;
}

.hfm-bundle__group + .hfm-bundle__group {
	border-top: 1px solid var(--hfm-line);
	padding-top: 18px;
}

.hfm-bundle__group-heading {
	font-family: var(--hfm-f-mono);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--hfm-accent);
	margin-bottom: 14px;
}

/* ── Required bundled item row ───────────────────────────────────────────── */

.bundled_product.bundled_product_summary.product {
	display: flex !important;
	align-items: flex-start !important;
	gap: 12px !important;
	padding: 0 0 14px !important;
	margin: 0 !important;
	border: none !important;
	border-radius: 0 !important;
	background: none !important;
}

.bundled_product.bundled_product_summary.product + .bundled_product.bundled_product_summary.product {
	padding-top: 14px !important;
	border-top: 1px solid var(--hfm-line) !important;
}

/* Inside an option card the outer wrapper is redundant — collapse it */
.hfm-option-card .bundled_product.bundled_product_summary.product {
	padding: 0 !important;
	border: none !important;
	width: 100% !important;
}

/* ── Bundle item image ───────────────────────────────────────────────────── */

.hfm-bundle__img-wrap {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	border-radius: var(--hfm-r-3);
	border: 1px solid var(--hfm-line);
	background: var(--hfm-bg-2);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hfm-bundle__img-wrap figure {
	margin: 0;
	width: 100%;
	height: 100%;
}

.hfm-bundle__img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: inherit;
}

/* Inside option cards — slightly smaller */
.hfm-option-card .hfm-bundle__img-wrap {
	width: 52px;
	height: 52px;
}

/* ── Bundle item details column ──────────────────────────────────────────── */

.bundled_item_details {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.bundled_item_title_wrapper {
	margin: 0;
}

h4.bundled_product_title.product_title {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	color: var(--hfm-ink) !important;
}

h4.bundled_product_title .bundled_product_title_inner {
	font-size: inherit;
	font-weight: inherit;
}

.bundled_item_price_quantity {
	margin-left: 4px;
	color: var(--hfm-ink-2);
	font-weight: 500;
}

.bundled_item_price_quantity::before {
	content: "/ ";
}

.bundled_product_title_qty,
.bundled_product_title_inner .item_qty {
	display: inline-flex;
	align-items: center;
	margin-left: 6px;
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1;
	color: var(--hfm-accent-ink, #fff);
	background: var(--hfm-accent);
	border-radius: 9999px;
	white-space: nowrap;
	vertical-align: middle;
}

/* WC PB injects an empty .item_qty span when qty = 1 — hide it */
.bundled_product_title_inner .item_qty:empty {
	display: none;
}

.bundled_product_title_link { display: none; }

/* ── Price + stock row inside bundled item rows ──────────────────────────── */

.bundled_item_cart_details {
	display: flex !important;
	align-items: center !important;
	flex-wrap: wrap !important;
	gap: 4px 10px !important;
	margin: 0 !important;
	padding: 0 !important;
}

.bundled_item_cart_details .price {
	display: inline-flex !important;
	align-items: baseline !important;
	gap: 5px !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1 !important;
}

.bundled_item_cart_details .price .amount {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: var(--hfm-ink) !important;
	letter-spacing: -0.01em !important;
	text-decoration: none !important;
}

.bundled_item_cart_details .price del {
	opacity: 0.45;
}

.bundled_item_cart_details .price del .amount {
	font-size: 12px !important;
	font-weight: 400 !important;
}

.bundled_item_cart_details .price ins {
	text-decoration: none !important;
	background: none !important;
}

/* Stock status — simple dot + text, no animation */
.bundled_item_cart_details .stock {
	display: inline-flex !important;
	align-items: center !important;
	gap: 5px !important;
	font-size: 11px !important;
	font-family: var(--hfm-f-mono) !important;
	color: var(--hfm-ink-2) !important;
	padding: 0 !important;
	margin: 0 !important;
}

.bundled_item_cart_details .stock::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	flex-shrink: 0;
	background: var(--wp--preset--color--teal-500);
}

.bundled_item_cart_details .stock.out-of-stock::before {
	background: var(--hfm-bad);
}

.bundled_item_cart_details .stock.available-on-backorder::before {
	background: var(--hfm-warn);
}

.bundled_item_cart_details .product-stock-status-wrapper,
.bundled_item_cart_details .woocommerce-variation-availability {
	padding: 0 !important;
	margin: 0 !important;
}

/* ── Qty input for user-adjustable bundle items ──────────────────────────── */

.bundled_item_button {
	margin: 0 !important;
	padding: 0 !important;
}

.bundled_item_button .quantity_hidden { display: none !important; }

.bundled_item_button .quantity:not(.quantity_hidden) {
	display: inline-flex !important;
	align-items: stretch !important;
	border: 1px solid var(--hfm-line-2) !important;
	border-radius: var(--hfm-r-3) !important;
	overflow: hidden !important;
	background: var(--hfm-bg) !important;
	margin-top: 8px !important;
}

.bundled_item_button .bundled_qty {
	width: 52px !important;
	height: 38px !important;
	border: none !important;
	text-align: center !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	background: transparent !important;
	color: var(--hfm-ink) !important;
	appearance: textfield !important;
	-moz-appearance: textfield !important;
}

.bundled_item_button .bundled_qty::-webkit-inner-spin-button,
.bundled_item_button .bundled_qty::-webkit-outer-spin-button {
	appearance: none;
	-webkit-appearance: none;
}

/* ── Unavailable bundled item ────────────────────────────────────────────── */

.cart.unavailable_item .bundled_item_wrap {
	opacity: 0.4;
	pointer-events: none;
}

.bundled_item_unavailable {
	font-size: 11px !important;
	font-family: var(--hfm-f-mono) !important;
	color: var(--hfm-bad) !important;
	margin: 4px 0 0 !important;
	padding: 0 !important;
}

/* ── Add-to-cart wrap at bottom of bundle ────────────────────────────────── */

.hfm-bundle-atc-wrap {
	padding: 14px 18px 18px;
	border-top: 1px solid var(--hfm-line);
}

/* ── Bundle cart-stock badges ────────────────────────────────────────────── */

.hfm-cart-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 10px;
	font-family: var(--hfm-f-mono);
	font-weight: 600;
	letter-spacing: 0.04em;
	padding: 2px 7px;
	border-radius: var(--hfm-r-2);
	line-height: 1.6;
}

.hfm-cart-badge--warn {
	background: color-mix(in srgb, var(--hfm-warn) 12%, transparent);
	color: var(--hfm-warn);
	border: 1px solid color-mix(in srgb, var(--hfm-warn) 30%, transparent);
}

.hfm-cart-badge--blocked {
	background: color-mix(in srgb, var(--hfm-bad) 12%, transparent);
	color: var(--hfm-bad);
	border: 1px solid color-mix(in srgb, var(--hfm-bad) 30%, transparent);
}

/* Disabled add-to-cart state when a required item is fully in cart */
.single_add_to_cart_button.hfm-atc--blocked,
.single_add_to_cart_button.hfm-atc--blocked:hover {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}

/* ── Optional item section label ─────────────────────────────────────────── */

.hfm-bundle__optional-item {
	margin-bottom: 16px;
}

.hfm-bundle__optional-item:last-child {
	margin-bottom: 0;
}

.hfm-bundle__section-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-family: var(--hfm-f-mono);
	color: var(--hfm-ink-2);
	margin-bottom: 4px;
}

.hfm-bundle__section-sub {
	font-size: 11px;
	font-weight: 400;
	color: var(--hfm-ink-3);
	font-family: var(--hfm-f-sans);
	margin-bottom: 8px;
}

/* Off-screen WC PB form inputs for variable optional items */
.hfm-bundle__var-inputs {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	pointer-events: none;
}

/* Flat variation cards stacked directly under the section label */
.hfm-bundle__optional-item .hfm-var-radio {
	margin-bottom: 0;
}

.hfm-bundle__optional-item .hfm-var-radios__list,
.hfm-bundle__optional-item > [x-data] {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* ══════════════════════════════════════════════════════════════════════════
   OPTION CARDS
   Shared by bundle optional items and composite radio options.
   ══════════════════════════════════════════════════════════════════════════ */

.hfm-option-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	background: var(--hfm-bg-1);
	border: 1px solid var(--hfm-line);
	border-radius: var(--hfm-r-4);
	cursor: pointer;
	transition: border-color 120ms ease, background 120ms ease;
	margin-bottom: 10px;
	user-select: none;
	-webkit-user-select: none;
}

.hfm-option-card:last-child { margin-bottom: 0; }

.hfm-option-card:hover:not(.hfm-option-card--disabled) {
	border-color: var(--hfm-line-2);
}

.hfm-option-card.selected {
	background: var(--hfm-accent-faint);
	border: 2px solid var(--hfm-accent);
	padding: 11px 13px;
}

/* "None" / "No thanks" variant — no image */
.hfm-option-card--none {
	min-height: 46px;
}

.hfm-option-card--disabled {
	opacity: 0.4;
	cursor: not-allowed;
	pointer-events: none;
}

/* Text body inside an option card */
.hfm-option-card__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.hfm-option-card__title {
	font-size: 13px;
	font-weight: 600;
	color: var(--hfm-ink);
	line-height: 1.3;
}

.hfm-option-card--none .hfm-option-card__title {
	color: var(--hfm-ink-2);
	font-weight: 500;
}

.hfm-option-card--none.selected .hfm-option-card__title {
	color: var(--hfm-ink);
}

.hfm-option-card__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.hfm-option-card__price {
	font-size: 14px;
	font-weight: 700;
	color: var(--hfm-ink);
	line-height: 1;
}

.hfm-option-card__price .amount {
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
}

.hfm-option-card__price del {
	font-weight: 400;
	font-size: 11px;
	opacity: 0.5;
	margin-right: 2px;
	text-decoration: line-through;
}

.hfm-option-card__price ins {
	text-decoration: none;
	background: none;
}

.hfm-option-card__stock {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	font-family: var(--hfm-f-mono);
	color: var(--hfm-ink-2);
}

.hfm-option-card__stock::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	flex-shrink: 0;
	background: var(--wp--preset--color--teal-500);
}

.hfm-option-card__stock.out-of-stock::before  { background: var(--hfm-bad); }
.hfm-option-card__stock.on-backorder::before  { background: var(--hfm-warn); }
.hfm-option-card__stock.special-order         { color: var(--wp--preset--color--purple-600, #7c3aed); }
.hfm-option-card__stock.special-order::before { background: var(--wp--preset--color--purple-600, #7c3aed); }

/* ── Variable attribute selects inside bundled items ─────────────────────── */

.bundled_item_cart_content table.variations,
.bundled_item_cart_content .variations tbody {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	border: none;
	border-spacing: 0;
	border-collapse: collapse;
	margin: 8px 0 4px;
}

.bundled_item_cart_content .variations tr {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.bundled_item_cart_content .variations .label {
	display: block;
	padding: 0;
	border: none;
}

.bundled_item_cart_content .variations label {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-family: var(--hfm-f-mono);
	color: var(--hfm-ink-2);
}

.bundled_item_cart_content .variations .value {
	display: block;
	padding: 0;
	border: none;
}

.bundled_item_cart_content .variations select {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	max-width: 280px;
	height: 40px;
	padding: 0 32px 0 12px;
	background: var(--hfm-bg)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
		right 10px center no-repeat;
	border: 1px solid var(--hfm-line-2);
	border-radius: var(--hfm-r-3);
	font-size: 13px;
	color: var(--hfm-ink);
	cursor: pointer;
	transition: border-color 120ms ease;
}

.bundled_item_cart_content .variations select:hover {
	border-color: var(--hfm-ink-2);
}

.bundled_item_cart_content .variations select:focus {
	outline: none;
	border-color: var(--hfm-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--hfm-accent) 18%, transparent);
}

/* Fill card width; hide WC's "Clear selection" link — not needed inside the card */
.hfm-option-card .bundled_item_cart_content .variations select {
	max-width: 100%;
}

.hfm-option-card .bundled_item_cart_content .reset_variations {
	display: none !important;
}

/* ── HFM Variation Radio Cards (bundle optional items) ───────────────────── */

.hfm-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}

.hfm-var-radios__list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.hfm-var-radio {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border: 1px solid var(--hfm-line-2);
	border-radius: var(--hfm-r-3);
	background: var(--hfm-bg);
	cursor: pointer;
	transition: border-color 120ms ease, background 120ms ease;
	line-height: 1;
}

.hfm-var-radio:hover:not(.hfm-var-radio--disabled) {
	border-color: var(--hfm-ink-2);
}

.hfm-var-radio.selected {
	background: var(--hfm-accent-faint);
	border: 2px solid var(--hfm-accent);
	padding: 9px 11px;
}

.hfm-var-radio--disabled {
	opacity: 0.4;
	cursor: not-allowed;
	pointer-events: none;
}

.hfm-var-radio__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.hfm-var-radio__title {
	font-size: 13px;
	font-weight: 600;
	color: var(--hfm-ink);
	line-height: 1.3;
}

.hfm-var-radio__meta {
	display: flex;
	align-items: center;
	gap: 8px;
}

.hfm-var-radio__price {
	font-size: 13px;
	font-weight: 700;
	color: var(--hfm-ink);
	letter-spacing: -0.01em;
}

.hfm-var-radio__price del {
	font-weight: 400;
	opacity: 0.45;
	font-size: 11px;
	text-decoration: line-through;
}

.hfm-var-radio__price ins {
	text-decoration: none;
}

/* Suppress 32px cascade from .hfm-product__summary-col .price .amount */
.hfm-var-radio__price .price {
	display: inline !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	color: inherit !important;
	line-height: inherit !important;
	margin: 0 !important;
}

.hfm-var-radio__price .price .amount,
.hfm-var-radio__price .price .woocommerce-Price-amount {
	font-size: inherit !important;
	font-weight: inherit !important;
	color: inherit !important;
}

.hfm-var-radio__price .woocommerce-price-suffix {
	display: none !important;
}

.hfm-var-radio__stock {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	font-family: var(--hfm-f-mono);
	color: var(--hfm-ink-2);
}

.hfm-var-radio__stock::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	flex-shrink: 0;
	background: var(--wp--preset--color--teal-500);
}

.hfm-var-radio__stock.out-of-stock::before           { background: var(--hfm-bad); }
.hfm-var-radio__stock.available-on-backorder::before { background: var(--hfm-warn); }
.hfm-var-radio__stock.special-order                  { color: var(--wp--preset--color--purple-600, #7c3aed); }
.hfm-var-radio__stock.special-order::before          { background: var(--wp--preset--color--purple-600, #7c3aed); }

/* ── Special Order — shared dot + cart pill ─────────────────────────────── */
.hfm-stock--special,
.product-stock-status.special-order,
p.stock.special-order {
	color: var(--wp--preset--color--purple-600, #7c3aed);
	font-weight: 600;
}
.woocommerce-variation-availability p.stock.special-order { margin: 0; }
.hfm-cart-special-order {
	display: inline-block;
	margin-left: 0.5rem;
	padding: 2px 8px;
	border-radius: 9999px;
	background: rgba(124, 58, 237, 0.10);
	color: var(--wp--preset--color--purple-600, #7c3aed);
	font-size: 11px;
	font-weight: 600;
	vertical-align: middle;
	letter-spacing: 0.01em;
}

/* ══════════════════════════════════════════════════════════════════════════
   COMPOSITE PRODUCTS
   ══════════════════════════════════════════════════════════════════════════ */

.composite_form:not(.paged) .component {
	padding: 18px 18px 12px;
	border-top: 1px solid var(--hfm-line);
}

.composite_form:not(.paged) .component:first-of-type {
	border-top: none;
}

/* Step heading */
.composite_form h2.step_title_wrapper.component_title {
	font-family: var(--hfm-f-mono) !important;
	font-size: 10px !important;
	font-weight: 700 !important;
	letter-spacing: 0.16em !important;
	text-transform: uppercase !important;
	color: var(--hfm-accent) !important;
	margin: 0 0 4px !important;
}

/* Step description */
.composite_form .component_description_wrapper {
	font-size: 12px !important;
	color: var(--hfm-ink-2) !important;
	margin: 0 0 14px !important;
}

.composite_form .component_description_wrapper p { margin: 0; }

/* Options overflow */
.composite_form .component_options,
.component.options-style-thumbnails .component_options,
.component.options-style-radios .component_options {
	overflow: visible !important;
}

/* ── Composite option list wrapper ───────────────────────────────────────── */

ul.component_option_radio_buttons_container {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

ul.component_option_radio_buttons_container li.component_option_radio_button_container {
	list-style: none !important;
	float: left !important;
	width: 100% !important;
	margin: 0 0 10px 0 !important;
	padding: 0 !important;
}

ul.component_option_radio_buttons_container li.component_option_radio_button_container:last-child {
	margin-bottom: 0 !important;
}

/* ── Composite radio option cards ────────────────────────────────────────── */

.composite_form .component_option_radio_button {
	position: relative !important;
	display: flex !important;
	align-items: center !important;
	gap: 12px !important;
	padding: 12px 14px !important;
	background: var(--hfm-bg-1) !important;
	border: 1px solid var(--hfm-line) !important;
	border-radius: var(--hfm-r-4) !important;
	cursor: pointer !important;
	transition: border-color 120ms ease, background 120ms ease !important;
	margin-bottom: 10px !important;
	box-shadow: none !important;
	user-select: none;
}

.composite_form .component_option_radio_button:last-child {
	margin-bottom: 0 !important;
}

.composite_form .component_option_radio_button:hover:not(.variation_selection_disabled) {
	border-color: var(--hfm-line-2) !important;
}

.composite_form .component_option_radio_button.selected {
	background: var(--hfm-accent-faint) !important;
	border: 2px solid var(--hfm-accent) !important;
	box-shadow: none !important;
	padding: 11px 13px !important;
}

.composite_form .variation_selection_disabled {
	opacity: 0.4 !important;
	cursor: not-allowed !important;
}

/* Radio-select label — full-card overlay so WC Composite click events fire */
.composite_form .component_option_radio_button_select {
	position: absolute !important;
	inset: 0 !important;
	width: auto !important;
	height: auto !important;
	opacity: 0 !important;
	cursor: pointer !important;
	z-index: 10 !important;
}

/* Hide the radio input visually but keep it accessible */
.composite_form .component_option_radio_button input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

/* Thumbnail in composite option */
.composite_form .radio_button_image {
	flex-shrink: 0 !important;
	width: 52px !important;
	height: 52px !important;
	border-radius: var(--hfm-r-3) !important;
	border: 1px solid var(--hfm-line) !important;
	background: var(--hfm-bg-2) !important;
	overflow: hidden !important;
}

.composite_form .radio_button_image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
	border-radius: inherit !important;
}

/* Text area in composite option */
.composite_form .radio_button_description {
	flex: 1 !important;
	min-width: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 3px !important;
}

.composite_form h5.radio_button_title.title {
	font-size: 13px !important;
	font-weight: 600 !important;
	color: var(--hfm-ink) !important;
	margin: 0 !important;
	line-height: 1.3 !important;
	text-transform: none !important;
}

.composite_form span.radio_button_price.price {
	font-size: 14px !important;
	font-weight: 700 !important;
	color: var(--hfm-ink) !important;
	margin: 0 !important;
	padding: 0 !important;
}

.composite_form span.radio_button_price.price .amount {
	font-size: inherit !important;
	font-weight: inherit !important;
	color: inherit !important;
}

/* Override WC Composite plugin's excessive component_inner padding-bottom */
.composite_form .component_inner {
	padding-bottom: 2px !important;
}

/* Ensure composite option list is always full width */
.composite_form .component_option_radio_buttons,
ul.component_option_radio_buttons_container {
	width: 100% !important;
}

/* ── Radio selection indicator ───────────────────────────────────────────────
   A real DOM element (span.hfm-radio-dot) added to each card template so it
   lives in the flex flow — no z-index or pointer-events conflicts.
   margin-left: auto pushes it to the trailing edge of the flex row.
   ─────────────────────────────────────────────────────────────────────────── */

.hfm-radio-dot {
	flex-shrink: 0;
	margin-left: auto;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 1.5px solid var(--hfm-line-2);
	background: transparent;
	transition: border-color 120ms ease, background 120ms ease;
	pointer-events: none;
}

.hfm-option-card.selected .hfm-radio-dot,
.hfm-var-radio.selected .hfm-radio-dot,
.composite_form .component_option_radio_button.selected .hfm-radio-dot {
	border-color: var(--hfm-accent);
	background: var(--hfm-accent)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23fff' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
		center / 10px no-repeat;
}

.hfm-option-card--disabled .hfm-radio-dot,
.hfm-var-radio--disabled .hfm-radio-dot {
	opacity: 0.4;
}

/* ── Sub-option variation cards inside composite (hfm-var-radio) ─────────── */
/* These appear when a variable product is selected and needs attribute picking */

.composite_form .hfm-var-radio {
	padding: 12px 14px !important;
	background: var(--hfm-bg-1) !important;
	border-color: var(--hfm-line) !important;
	border-radius: var(--hfm-r-4) !important;
}

.composite_form .hfm-var-radio.selected {
	padding: 11px 13px !important;
}

.composite_form .hfm-var-radio__title {
	font-size: 13px !important;
	font-weight: 600 !important;
	text-transform: none !important;
	color: var(--hfm-ink) !important;
}

.composite_form .hfm-var-radio__price {
	font-size: 14px !important;
}

/* Sub-option component sections — subtle visual indent to signal secondary level */
.composite_form .component:has(.hfm-var-radio) {
	border-left: 2px solid color-mix(in srgb, var(--hfm-accent) 40%, transparent) !important;
	padding-left: 16px !important;
	margin-left: 0 !important;
	background: color-mix(in srgb, var(--hfm-accent) 3%, transparent) !important;
}

.composite_form .component:has(.hfm-var-radio) h2.step_title_wrapper.component_title {
	color: var(--hfm-ink-2) !important;
	letter-spacing: 0.12em !important;
}

/* ── Composite navigation buttons ────────────────────────────────────────── */

.composite_button {
	display: flex !important;
	gap: 10px !important;
	padding: 14px 18px 18px !important;
	border-top: 1px solid var(--hfm-line) !important;
	flex-direction: row !important;
}

.composite_button .single_add_to_cart_button,
.composite_button .composite_navigation_button {
	flex: 1 !important;
	height: 50px !important;
	padding: 0 24px !important;
	border-radius: var(--hfm-r-3) !important;
	font-family: var(--hfm-f-sans) !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	letter-spacing: 0.01em !important;
	cursor: pointer !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: background 150ms ease, transform 80ms ease !important;
	border: none !important;
}

.composite_button .single_add_to_cart_button {
	background: var(--hfm-accent) !important;
	color: var(--hfm-accent-ink) !important;
}

.composite_button .single_add_to_cart_button:hover {
	background: var(--hfm-accent-2) !important;
}

.composite_button .single_add_to_cart_button:active,
.composite_button .composite_navigation_button:active {
	transform: translateY(1px) !important;
}

.composite_button .composite_navigation_button {
	background: var(--hfm-bg-3) !important;
	color: var(--hfm-ink) !important;
}

.composite_button .composite_navigation_button:hover {
	background: var(--hfm-line-2) !important;
}

/* ── Configured totals summary (composite cart panel) ────────────────────── */

.hfm-cfg-summary {
	display: flex !important;
	flex-direction: column !important;
	gap: 4px !important;
	padding: 18px 18px 0 !important;
}

.hfm-cfg-summary__eyebrow {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hfm-accent);
	margin-bottom: 2px;
}

.hfm-cfg-summary .composite_price,
.hfm-cfg-summary .bundle_price {
	margin: 0 !important;
	padding: 0 !important;
	display: block !important;
}

.hfm-cfg-summary .composite_price p.price,
.hfm-cfg-summary .composite_price .price,
.hfm-cfg-summary .bundle_price p.price,
.hfm-cfg-summary .bundle_price .price {
	margin: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	gap: 2px !important;
	line-height: 1.1 !important;
}

.hfm-cfg-summary .composite_price .woocommerce-Price-amount,
.hfm-cfg-summary .bundle_price .woocommerce-Price-amount {
	font-size: 30px !important;
	font-weight: 700 !important;
	color: var(--hfm-ink) !important;
	line-height: 1.1 !important;
}

.hfm-cfg-summary .composite_price .woocommerce-price-suffix,
.hfm-cfg-summary .bundle_price .woocommerce-price-suffix {
	font-size: 12px !important;
	font-weight: 500 !important;
	color: var(--hfm-ink-2) !important;
	margin-left: 0 !important;
}

.hfm-cfg-summary .composite_price del .woocommerce-Price-amount,
.hfm-cfg-summary .bundle_price del .woocommerce-Price-amount {
	font-size: 16px !important;
	font-weight: 500 !important;
	color: var(--hfm-ink-2) !important;
	text-decoration: line-through !important;
}

.hfm-cfg-summary__stock {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	font-weight: 500;
	color: var(--hfm-good, #1aa37a);
	margin-top: 6px;
	margin-bottom: 4px;
}

.hfm-cfg-summary__stock.is-unavailable {
	color: var(--hfm-bad, #d04a3a);
}

.hfm-cfg-summary__stock.is-backorder {
	color: var(--hfm-warn, #c98a2a);
}

.hfm-cfg-summary__stock.is-incomplete {
	color: var(--hfm-ink-2, #888);
}

.hfm-cfg-summary__stock.is-unavailable .hfm-cfg-summary__dispatch em,
.hfm-cfg-summary__stock.is-backorder .hfm-cfg-summary__dispatch em,
.hfm-cfg-summary__stock.is-incomplete .hfm-cfg-summary__dispatch em {
	color: inherit;
}

.hfm-cfg-summary__stock.is-incomplete .hfm-cfg-summary__dot-ping {
	animation: none;
}

.hfm-cfg-summary__detail {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
}

.hfm-cfg-summary__dot {
	position: relative;
	display: inline-flex;
	width: 10px;
	height: 10px;
	margin-right: 2px;
	flex-shrink: 0;
}

.hfm-cfg-summary__dot-ping,
.hfm-cfg-summary__dot-core {
	position: absolute;
	inset: 0;
	border-radius: 9999px;
	background: currentColor;
}

.hfm-cfg-summary__dot-ping {
	opacity: 0.6;
	animation: hfmCfgPing 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes hfmCfgPing {
	75%, 100% { transform: scale(2); opacity: 0; }
}

.hfm-cfg-summary__stock-label {
	font-weight: 700;
}

.hfm-cfg-summary__sep,
.hfm-cfg-summary__order-in,
.hfm-cfg-summary__dispatch {
	color: var(--hfm-ink-2);
	font-weight: 500;
}

.hfm-cfg-summary__dispatch em {
	font-style: italic;
	font-weight: 600;
	color: var(--hfm-good, #1aa37a);
}

.hfm-cfg-summary__countdown {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	color: var(--hfm-ink);
	display: inline-flex;
	align-items: center;
	gap: 1px;
}

.hfm-cfg-summary__dig {
	display: inline-block;
	min-width: 1.4ch;
	text-align: center;
}

.hfm-cfg-summary__dig-sep {
	opacity: 0.5;
	padding: 0 1px;
}

/* If WC CP injects an unavailable state into .composite_availability, hide our default in-stock line */
.hfm-cfg-summary .composite_availability:not(:empty) ~ .composite_button,
.hfm-cfg-summary:has(.composite_availability:not(:empty)) .hfm-cfg-summary__stock {
	/* keep the WC CP availability messaging visible; default stock row stays as fallback */
}

.hfm-cfg-summary .composite_message {
	margin-top: 4px !important;
}

/* We surface availability inline via .hfm-cfg-summary__stock — hide the plugin divs */
.hfm-cfg-summary .composite_availability,
.hfm-cfg-summary .bundle_availability {
	display: none !important;
}

/* Hide per-component stock status — surfaced only in the summary line at the bottom */
.composite_form .component_content .product-stock-status,
.bundle_form .bundled_item_cart_content .product-stock-status {
	display: none !important;
}

.hfm-cfg-summary .composite_button,
.hfm-cfg-summary .bundle_button {
	margin-top: 12px !important;
	padding: 14px 0 18px !important;
}

/* ── Composite summary panel ─────────────────────────────────────────────── */

.summary_elements {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 8px !important;
}

.summary_element_wrapper {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	padding: 10px 12px !important;
	background: var(--hfm-bg-1) !important;
	border: 1px solid var(--hfm-line) !important;
	border-radius: var(--hfm-r-3) !important;
}

.summary_element_wrapper.disabled {
	opacity: 0.35 !important;
}

/* ── Bundle/composite ATC button ─────────────────────────────────────────── */

.bundle_form .single_add_to_cart_button.button,
.composite_form .single_add_to_cart_button.button {
	width: 100%;
	height: 50px;
	padding: 0 28px;
	background: var(--hfm-accent) !important;
	color: var(--hfm-accent-ink) !important;
	border: none !important;
	border-radius: var(--hfm-r-3) !important;
	font-family: var(--hfm-f-sans) !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	letter-spacing: 0.01em !important;
	cursor: pointer;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: background 150ms ease, transform 80ms ease;
}

.bundle_form .single_add_to_cart_button.button:hover,
.composite_form .single_add_to_cart_button.button:hover {
	background: var(--hfm-accent-2) !important;
}

.bundle_form .single_add_to_cart_button.button:active,
.composite_form .single_add_to_cart_button.button:active {
	transform: translateY(1px);
}

/* Bundle total price in ATC area */
.bundle_form .bundle_price .price .amount,
.composite_form .composite_price .price .amount {
	font-size: 22px !important;
	font-weight: 700 !important;
	letter-spacing: -0.025em !important;
	color: var(--hfm-ink) !important;
}

.bundle_form .bundle_price .price del .amount,
.composite_form .composite_price .price del .amount {
	font-size: 15px !important;
	font-weight: 400 !important;
	opacity: 0.5 !important;
}

/* Hide noisy WC elements */
.composite_form label.select_label,
.composite_form .quantity_button,
.composite_form a.clear_component_options,
.composite_form a.reset_variations,
.composite_form .composited_product_title_wrapper,
.component_data .bundle_button {
	display: none !important;
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
	.hfm-bundle__group,
	.composite_form:not(.paged) .component {
		padding-left: 14px;
		padding-right: 14px;
	}

	.hfm-bundle-atc-wrap {
		padding-left: 14px;
		padding-right: 14px;
	}

	.hfm-option-card,
	.composite_form .component_option_radio_button {
		padding: 10px 12px !important;
	}

	.hfm-option-card.selected,
	.composite_form .component_option_radio_button.selected {
		padding: 9px 11px !important;
	}

	.composite_button {
		flex-direction: column !important;
	}
}

/* ── Suppress ships-in / countdown inside bundled items ─────────────────── */
/* stock.php is product-level only; variation JS injects availability_html   */
/* which also renders stock.php output — CSS hides it, JS replaces it.       */

.bundled_item_cart_content .product-stock-status,
.bundled_item_cart_details .product-stock-status {
	display: none !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   SUPPRESS ROLE-BASED PRICE SUFFIX INSIDE CARDS
   "· Distributor Price · Saving X%" is product-level info only.
   ══════════════════════════════════════════════════════════════════════════ */

.bundled_item_cart_details .price .woocommerce-price-suffix,
.hfm-option-card__price .woocommerce-price-suffix,
.composite_form .radio_button_price .woocommerce-price-suffix {
	display: none !important;
}

/* ── Fix: price inside option card inherits WC global large styles ───────── */
/*  .hfm-product__summary-col .price { display:flex !important }  (line ~213) */
/*  .hfm-product__summary-col .price .amount { font-size:32px !important }    */
/*  Both apply inside the bundle form. Override here with equal or higher      */
/*  specificity + !important (later rule wins at equal specificity).           */

.hfm-option-card__price .price {
	display: inline !important;   /* kill the flex that pushes it block-level */
	font-size: inherit !important;
	font-weight: inherit !important;
	color: inherit !important;
	line-height: inherit !important;
	margin: 0 !important;
}

/* Target .amount explicitly — the 32px !important rule only hits .amount */
.hfm-option-card__price .price .amount,
.hfm-option-card__price .price .woocommerce-Price-amount {
	font-size: inherit !important;
	font-weight: inherit !important;
	color: inherit !important;
}

/* ── Optional item cart content separator ─────────────────────────────────── */
/* WC PB controls show/hide of .bundled_item_cart_content via its own JS.     */
/* We only style it — never override display — so the variation picker works. */

.hfm-option-card .bundled_item_cart_content {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid color-mix(in srgb, var(--hfm-accent) 35%, transparent);
	width: 100%;
}

/* ── Bundled item subtitle (ACF subtitle field) ───────────────────────────── */

.bundled_product_title_subtitle {
	display: block;
	font-size: 11px;
	font-weight: 400;
	color: var(--hfm-ink-2);
	margin-top: 2px;
	font-family: var(--hfm-f-sans);
}

/* ── Sale price display inside composite radio option prices ─────────────── */

.composite_form .radio_button_price.price del {
	font-weight: 400 !important;
	font-size: 11px !important;
	opacity: 0.5 !important;
	margin-right: 2px !important;
	text-decoration: line-through !important;
}

.composite_form .radio_button_price.price ins {
	text-decoration: none !important;
	background: none !important;
}



/* ============================================================
   Back In Stock – Waitlist form  (.hfm-bis-*)
   Fused pill: label above + email/button share one border box.
   ============================================================ */

.hfm-bis {
	margin-top: 1.25rem;
}

.hfm-bis__label {
	margin: 0 0 0.5rem;
	font-size: 0.8125rem;
	color: var(--hfm-ink-2);
	line-height: 1.4;
}

/* Fused pill container — email + button share a single border */
.hfm-bis__fields {
	display: flex;
	gap: 0;
	border: 1px solid var(--hfm-line-2, light-dark(#d4d4d4, #404040));
	border-radius: 0.5rem;
	background: var(--hfm-bg, light-dark(#fcfcfc, #0a0a0a));
	overflow: hidden;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hfm-bis__fields:focus-within {
	border-color: var(--hfm-ink);
	box-shadow: 0 0 0 2px light-dark(hsl(0 0% 0% / 0.08), hsl(0 0% 100% / 0.08));
}

.hfm-bis__email {
	flex: 1 1 0;
	min-width: 0;
	height: 2.5rem;
	padding: 0 0.75rem;
	font-size: 0.875rem;
	font-family: var(--hfm-f-sans, inherit);
	color: var(--hfm-ink);
	background: transparent;
	border: none;
	outline: none;
	box-sizing: border-box;
}

.hfm-bis__email::placeholder {
	color: var(--hfm-ink-4);
}

/* Submit button — dark bg, inverts in dark mode */
.hfm-bis__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
	height: 2.5rem;
	padding: 0 1rem;
	font-size: 0.8125rem;
	font-weight: 600;
	font-family: var(--hfm-f-sans, inherit);
	white-space: nowrap;
	color: light-dark(#ffffff, #0a0a0a) !important;
	background: light-dark(#191919, #f5f5f5) !important;
	border: none;
	border-left: 1px solid light-dark(#333, #d4d4d4);
	cursor: pointer;
	transition: opacity 0.15s ease;
	box-sizing: border-box;
	flex-shrink: 0;
}

/* Logged-in: button is the only child — no left separator, full pill */
.hfm-bis__btn:only-child {
	border-left: none;
	width: 100%;
	border-radius: 0.5rem;
}

.hfm-bis__bell {
	flex-shrink: 0;
}

.hfm-bis__btn:hover:not(:disabled) {
	opacity: 0.85;
}

.hfm-bis__btn:disabled {
	cursor: not-allowed;
	opacity: 0.6;
}

.hfm-bis__btn-label {
	transition: opacity 0.15s ease;
}

/* Spinner inside button */
.hfm-bis__spinner {
	position: absolute;
	inset: 0;
	align-items: center;
	justify-content: center;
}

.hfm-bis__spinner svg {
	animation: hfm-bis-spin 0.75s linear infinite;
}

@keyframes hfm-bis-spin {
	to { transform: rotate(360deg); }
}

/* Opt-in consent row */
.hfm-bis__opt-in {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin-top: 0.625rem;
	cursor: pointer;
}

.hfm-bis__opt-in-check {
	margin-top: 0.1rem;
	flex-shrink: 0;
	accent-color: var(--hfm-ink);
}

.hfm-bis__opt-in-text {
	font-size: 0.75rem;
	color: var(--hfm-ink-2);
	line-height: 1.5;
}

/* Signup count */
.hfm-bis__count {
	margin: 0.5rem 0 0;
	font-size: 0.75rem;
	color: var(--hfm-ink-2);
}

/* Inline error */
.hfm-bis__error {
	margin: 0.5rem 0 0;
	padding: 0.5rem 0.75rem;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--hfm-bad);
	background: light-dark(#fef2f2, #3b0000);
	border: 1px solid light-dark(#fecaca, #6b1414);
	border-radius: 0.375rem;
}

.hfm-bis__login-link {
	font-weight: 600;
	color: inherit;
	text-decoration: underline;
}

/* Success state (replaces form content on signup) */
.hfm-bis__success {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	padding: 0.125rem 0;
}

.hfm-bis__success-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	background: light-dark(#dbeafe, #1e3a5f);
	color: light-dark(#1d4ed8, #60a5fa);
}

.hfm-bis__success-msg {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--hfm-ink);
	line-height: 1.5;
	padding-top: 0.2rem;
}

/* Already-registered state (back-in-stock-registered.php) */
.hfm-bis-registered {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1rem;
	padding: 0.625rem 0.875rem;
	border: 1px solid light-dark(#bfdbfe, #1e40af);
	border-radius: 0.5rem;
	background: light-dark(#eff6ff, #1e3a5f);
}

.hfm-bis-registered__icon {
	display: flex;
	flex-shrink: 0;
	color: light-dark(#1d4ed8, #60a5fa);
}

.hfm-bis-registered__msg {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--hfm-ink);
	line-height: 1.4;
}

/* @media fallback for browsers without light-dark() support (~3%) */
@media (prefers-color-scheme: dark) {
	.hfm-bis__fields {
		background: #0a0a0a;
		border-color: #404040;
	}
	.hfm-bis__fields:focus-within {
		box-shadow: 0 0 0 2px hsl(0 0% 100% / 0.08);
	}
	.hfm-bis__btn {
		color: #0a0a0a !important;
		background: #f5f5f5 !important;
		border-left-color: #d4d4d4;
	}
	.hfm-bis__error {
		background: #3b0000;
		border-color: #6b1414;
	}
	.hfm-bis__success-icon {
		background: #1e3a5f;
		color: #60a5fa;
	}
	.hfm-bis-registered {
		background: #1e3a5f;
		border-color: #1e40af;
	}
	.hfm-bis-registered__icon {
		color: #60a5fa;
	}
}
