.home-featured-product-card {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	border-radius: var(--radius-md);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	box-shadow: none;
	overflow: hidden;
	transition:
		border-color 0.15s ease,
		box-shadow 0.15s ease;
}

@media (hover: hover) {
	.home-featured-product-card:hover {
		border-color: var(--color-highlight-muted);
		box-shadow: var(--shadow-sm);
	}
}

.home-featured-product-card__media-link {
	display: block;
	text-decoration: none;
	color: inherit;
	outline: none;
}

.home-featured-product-card__media-link:focus-visible {
	outline: var(--focus-ring);
	outline-offset: var(--focus-offset);
	border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.home-featured-product-card__media {
	position: relative;
	aspect-ratio: 1 / 1;
	background: var(--color-background-muted);
	overflow: hidden;
	flex-shrink: 0;
}

.home-featured-product-card__media img,
.home-featured-product-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.home-featured-product-card__badge {
	position: absolute;
	top: var(--space-3);
	right: var(--space-3);
	z-index: 1;
	padding: var(--space-1) var(--space-3);
	font-size: var(--text-xs);
	font-weight: var(--font-weight-bold);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-radius: var(--radius-sm);
	background: var(--color-warning);
	color: var(--color-primary);
	box-shadow: var(--shadow-sm);
}

.home-featured-product-card__body {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: var(--space-3);
	padding: var(--space-4);
	flex: 1 1 auto;
}

@media (min-width: 768px) {
	.home-featured-product-card__body {
		padding: var(--space-4) var(--space-5);
	}
}

/* Title + options stay together as product info; price/CTA pin below. */
.home-featured-product-card__info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-1);
	width: 100%;
	min-width: 0;
}

.home-featured-product-card__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
}

.home-featured-product-card__title {
	margin: 0;
	/* Override WooCommerce `.products li.product h3 { padding: 0.5em 0 }` */
	padding: 0;
	width: 100%;
	min-width: 0;
	font-family: var(--font-display);
	font-weight: var(--font-weight-semibold);
	font-size: var(--text-base);
	line-height: var(--leading-snug);
	letter-spacing: 0.02em;
	color: var(--color-primary);
	text-wrap: balance;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
}

@media (min-width: 768px) {
	.home-featured-product-card__title {
		font-size: var(--text-lg);
	}
}

.home-featured-product-card__title-link {
	color: inherit;
	text-decoration: none;
	outline: none;
}

.home-featured-product-card__title-link:hover {
	color: var(--color-secondary);
}

.home-featured-product-card__title-link:focus-visible {
	outline: var(--focus-ring);
	outline-offset: var(--focus-offset);
	border-radius: var(--radius-sm);
}

.home-featured-product-card__options {
	margin: 0;
	padding: 0;
	width: 100%;
	min-width: 0;
	font-family: var(--font-body);
	font-size: clamp(10px, 2.5vw, var(--text-xs));
	font-weight: var(--font-weight-medium);
	line-height: var(--leading-snug);
	letter-spacing: 0.02em;
	color: var(--color-text-secondary);
}

.home-featured-product-card__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--space-1) var(--space-2);
	box-sizing: border-box;
	flex: 0 0 auto;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	font-family: var(--font-body);
	/* Fill the actions column: ~max size for range prices without overflow. */
	font-size: clamp(var(--text-sm), 10.5cqi, var(--text-xl));
	font-weight: var(--font-weight-bold);
	line-height: var(--leading-snug);
	letter-spacing: -0.01em;
	font-variant-numeric: tabular-nums;
	color: var(--color-primary);
	white-space: nowrap;
}

.home-featured-product-card__price .screen-reader-text {
	border: 0;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.home-featured-product-card__price .price,
.home-featured-product-card__price .woocommerce-Price-amount,
.home-featured-product-card__price .amount,
.home-featured-product-card__price bdi {
	display: inline;
	margin: 0;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	color: inherit;
	white-space: nowrap;
}

.home-featured-product-card__price .woocommerce-Price-currencySymbol {
	margin: 0;
	padding: 0;
	font-size: inherit;
	font-weight: inherit;
	letter-spacing: inherit;
	color: inherit;
	vertical-align: baseline;
	line-height: inherit;
}

.home-featured-product-card__price .veylo-price-range {
	display: inline;
	white-space: nowrap;
}

.home-featured-product-card__price .veylo-price-range-sep {
	display: inline;
	margin: 0 0.1em;
	font-size: 0.85em;
	font-weight: var(--font-weight-regular);
	letter-spacing: 0;
	color: inherit;
	vertical-align: baseline;
}

.home-featured-product-card__price del,
.home-featured-product-card__price del .woocommerce-Price-amount,
.home-featured-product-card__price del .amount,
.home-featured-product-card__price del bdi {
	font-weight: var(--font-weight-regular);
	/* AA floor: --text-sm (≥13px), not --text-xs. */
	font-size: var(--text-sm);
	letter-spacing: 0;
	color: var(--color-text-secondary);
}

.home-featured-product-card__price del .woocommerce-Price-currencySymbol {
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
	vertical-align: baseline;
}

.home-featured-product-card__price ins,
.home-featured-product-card__price ins .woocommerce-Price-amount,
.home-featured-product-card__price ins .amount,
.home-featured-product-card__price ins bdi {
	text-decoration: none;
	font-weight: inherit;
	font-size: inherit;
	color: inherit;
}

/* Standard card: sale price left, strikethrough regular on the right
 * (WooCommerce/wc_format_sale_price outputs <del> then <ins>). */
.veylo-product-card--standard .home-featured-product-card__price del {
	order: 2;
}

.veylo-product-card--standard .home-featured-product-card__price ins {
	order: 1;
}

.home-featured-product-card__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: var(--space-3);
	width: 100%;
	min-width: 0;
	/* Price font-size uses cqi against this column width. */
	container-type: inline-size;
	/* Pin price + CTA to the bottom as card height scales. */
	margin-top: auto;
	/* padding: var(--space-3) 0 0; */
	/* border-top: 1px solid var(--color-border); */
}

.home-featured-product-card__actions-primary {
	flex: 1 1 auto;
	min-width: 0;
}

.home-featured-product-card .veylo-home-product-card-variable,
.home-top-seller-card .veylo-home-product-card-variable {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.home-featured-product-card__actions-primary a.added_to_cart {
	display: none !important;
}

/* Variation options dialog (native <dialog>). */
dialog.veylo-home-product-card-options {
	position: fixed;
	inset: 0;
	z-index: 200000;
	width: min(420px, calc(100vw - var(--space-8)));
	max-height: min(80vh, 560px);
	margin: auto;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background: var(--color-surface);
	box-shadow: 0 16px 42px color-mix(in srgb, var(--color-primary) 25%, transparent);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: var(--text-base);
	line-height: var(--leading-body);
}

dialog.veylo-home-product-card-options::backdrop {
	background: color-mix(in srgb, var(--color-primary) 48%, transparent);
	backdrop-filter: blur(2px);
}

.veylo-home-product-card-options__inner {
	display: grid;
	gap: var(--space-4);
	padding: var(--space-6) var(--space-6) var(--space-5);
	max-height: min(80vh, 560px);
	overflow: auto;
}

.veylo-home-product-card-options__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-3);
}

.veylo-home-product-card-options__title {
	margin: 0;
	padding: 0;
	font-family: var(--font-display);
	font-weight: var(--font-weight-display);
	font-size: clamp(var(--text-lg), 4vw, var(--text-xl));
	line-height: var(--leading-tight);
	color: var(--color-primary);
}

.veylo-home-product-card-options__close {
	box-sizing: border-box;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--size-touch);
	height: var(--size-touch);
	margin: calc(var(--space-1) * -1) calc(var(--space-1) * -1) 0 0;
	padding: 0;
	appearance: none;
	-webkit-appearance: none;
	border: none;
	border-radius: var(--radius-md);
	background: transparent;
	color: var(--color-primary);
	font-size: var(--text-2xl);
	line-height: 1;
	cursor: pointer;
}

.veylo-home-product-card-options__close:hover {
	background: var(--color-background-muted);
}

.veylo-home-product-card-options__close:focus-visible {
	outline: var(--focus-ring);
	outline-offset: var(--focus-offset);
}

.veylo-home-product-card-options__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: var(--space-2);
}

.veylo-home-product-card-options__item {
	margin: 0;
	padding: 0;
}

.veylo-home-product-card-options__option {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	width: 100%;
	min-height: var(--size-touch-lg);
	margin: 0;
	padding: var(--space-3) var(--space-4);
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background: var(--color-surface);
	color: var(--color-primary);
	font-family: var(--font-body);
	font-size: var(--text-sm);
	font-weight: var(--font-weight-semibold);
	line-height: var(--leading-snug);
	text-align: left;
	cursor: pointer;
	transition:
		background-color 0.15s ease,
		border-color 0.15s ease;
}

.veylo-home-product-card-options__option:hover {
	background: var(--color-background-muted);
	border-color: var(--color-primary);
}

.veylo-home-product-card-options__option:focus-visible {
	outline: var(--focus-ring);
	outline-offset: var(--focus-offset);
}

.veylo-home-product-card-options__option-label {
	flex: 1 1 auto;
	min-width: 0;
}

.veylo-home-product-card-options__option-price {
	flex: 0 0 auto;
	color: var(--color-secondary);
	font-weight: var(--font-weight-medium);
}

.veylo-home-product-card-options__option-price .amount,
.veylo-home-product-card-options__option-price .woocommerce-Price-amount {
	color: inherit;
	font-weight: inherit;
}

.home-featured-product-card .add_to_cart_button,
.home-featured-product-card .single_add_to_cart_button {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: var(--size-touch-lg);
	margin: 0;
	padding: var(--space-3) var(--space-4);
	font-family: var(--font-body);
	font-size: var(--text-sm);
	font-weight: var(--font-weight-semibold);
	line-height: var(--leading-snug);
	text-align: center;
	text-decoration: none;
	border: none;
	border-radius: var(--radius-md);
	cursor: pointer;
	background: var(--color-primary);
	color: var(--color-surface);
	transition:
		background-color 0.15s ease,
		opacity 0.15s ease;
}

.home-featured-product-card .add_to_cart_button:hover,
.home-featured-product-card .single_add_to_cart_button:hover {
	background: var(--color-primary-hover);
	color: var(--color-surface);
}

.home-featured-product-card .add_to_cart_button:focus-visible,
.home-featured-product-card .single_add_to_cart_button:focus-visible {
	outline: var(--focus-ring);
	outline-offset: var(--focus-offset);
}

.home-featured-product-card .add_to_cart_button:disabled,
.home-featured-product-card .add_to_cart_button[aria-disabled="true"],
.home-featured-product-card .single_add_to_cart_button:disabled,
.home-featured-product-card .single_add_to_cart_button[aria-disabled="true"] {
	cursor: not-allowed;
	opacity: 0.65;
	background: var(--color-primary);
	color: var(--color-surface);
}

.home-featured-product-card .add_to_cart_button.veylo-top-seller--busy,
.home-featured-product-card .single_add_to_cart_button.veylo-top-seller--busy {
	pointer-events: none;
	cursor: wait;
	opacity: 0.92;
}

.home-featured-product-card .add_to_cart_button.loading,
.home-featured-product-card .single_add_to_cart_button.loading {
	opacity: 0.88;
}

.home-featured-product-card .add_to_cart_button.veylo-top-seller--added,
.home-featured-product-card .single_add_to_cart_button.veylo-top-seller--added {
	background: var(--color-accent);
	box-shadow: var(--shadow-accent);
}

.home-featured-product-card .add_to_cart_button.veylo-top-seller--added:hover,
.home-featured-product-card .single_add_to_cart_button.veylo-top-seller--added:hover {
	background: var(--color-accent-hover);
	color: var(--color-surface);
}

@media (prefers-reduced-motion: reduce) {
	.home-featured-product-card,
	.home-featured-product-card:hover {
		transition: none;
	}
}

/*
 * Defend featured card styles inside WooCommerce loops.
 * WooCommerce uses highly specific `.woocommerce ... li.product ...` selectors;
 * these scoped selectors keep catalog and PDP related cards visually consistent.
 */
body.woocommerce :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .home-featured-product-card__title,
body.woocommerce-page :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .home-featured-product-card__title,
body.woocommerce ul.products li.product .home-featured-product-card .home-featured-product-card__title,
body.woocommerce-page ul.products li.product .home-featured-product-card .home-featured-product-card__title {
	margin: 0;
	padding: 0;
	font-family: var(--font-display);
	font-weight: var(--font-weight-semibold);
	font-size: var(--text-base);
	line-height: var(--leading-snug);
	letter-spacing: 0.02em;
	color: var(--color-primary);
}

@media (min-width: 768px) {
	body.woocommerce :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .home-featured-product-card__title,
	body.woocommerce-page :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .home-featured-product-card__title,
	body.woocommerce ul.products li.product .home-featured-product-card .home-featured-product-card__title,
	body.woocommerce-page ul.products li.product .home-featured-product-card .home-featured-product-card__title {
		font-size: var(--text-lg);
	}
}

body.woocommerce :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .home-featured-product-card__title-link,
body.woocommerce-page :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .home-featured-product-card__title-link {
	color: inherit;
	text-decoration: none;
}

body.woocommerce :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .home-featured-product-card__title-link:hover,
body.woocommerce-page :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .home-featured-product-card__title-link:hover {
	color: var(--color-secondary);
}

body.woocommerce :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .home-featured-product-card__price,
body.woocommerce-page :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .home-featured-product-card__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--space-1) var(--space-2);
	box-sizing: border-box;
	flex: 0 0 auto;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	font-family: var(--font-body);
	/* Fill the actions column: ~max size for range prices without overflow. */
	font-size: clamp(var(--text-sm), 10.5cqi, var(--text-xl));
	font-weight: var(--font-weight-bold);
	line-height: var(--leading-snug);
	letter-spacing: -0.01em;
	font-variant-numeric: tabular-nums;
	color: var(--color-primary);
	white-space: nowrap;
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
}

body.woocommerce :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .home-featured-product-card__price .screen-reader-text,
body.woocommerce-page :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .home-featured-product-card__price .screen-reader-text {
	border: 0;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

body.woocommerce :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .home-featured-product-card__price .price,
body.woocommerce-page :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .home-featured-product-card__price .price,
body.woocommerce :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .home-featured-product-card__price .woocommerce-Price-amount,
body.woocommerce-page :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .home-featured-product-card__price .woocommerce-Price-amount,
body.woocommerce :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .home-featured-product-card__price .amount,
body.woocommerce-page :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .home-featured-product-card__price .amount,
body.woocommerce :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .home-featured-product-card__price bdi,
body.woocommerce-page :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .home-featured-product-card__price bdi {
	display: inline;
	margin: 0;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	color: inherit;
	white-space: nowrap;
}

body.woocommerce :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .home-featured-product-card__price .woocommerce-Price-currencySymbol,
body.woocommerce-page :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .home-featured-product-card__price .woocommerce-Price-currencySymbol {
	margin: 0;
	padding: 0;
	font-size: inherit;
	font-weight: inherit;
	letter-spacing: inherit;
	color: inherit;
	vertical-align: baseline;
	line-height: inherit;
}

body.woocommerce :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .home-featured-product-card__price del,
body.woocommerce-page :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .home-featured-product-card__price del,
body.woocommerce :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .home-featured-product-card__price del .woocommerce-Price-amount,
body.woocommerce-page :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .home-featured-product-card__price del .woocommerce-Price-amount,
body.woocommerce :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .home-featured-product-card__price del .amount,
body.woocommerce-page :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .home-featured-product-card__price del .amount,
body.woocommerce :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .home-featured-product-card__price del bdi,
body.woocommerce-page :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .home-featured-product-card__price del bdi {
	font-weight: var(--font-weight-regular);
	/* AA floor: --text-sm (≥13px), not --text-xs. */
	font-size: var(--text-sm);
	letter-spacing: 0;
	color: var(--color-text-secondary);
}

body.woocommerce :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .home-featured-product-card__price del .woocommerce-Price-currencySymbol,
body.woocommerce-page :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .home-featured-product-card__price del .woocommerce-Price-currencySymbol {
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
	vertical-align: baseline;
}

body.woocommerce :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .home-featured-product-card__price ins,
body.woocommerce-page :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .home-featured-product-card__price ins,
body.woocommerce :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .home-featured-product-card__price ins .woocommerce-Price-amount,
body.woocommerce-page :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .home-featured-product-card__price ins .woocommerce-Price-amount,
body.woocommerce :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .home-featured-product-card__price ins .amount,
body.woocommerce-page :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .home-featured-product-card__price ins .amount,
body.woocommerce :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .home-featured-product-card__price ins bdi,
body.woocommerce-page :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .home-featured-product-card__price ins bdi {
	text-decoration: none;
	font-weight: inherit;
	font-size: inherit;
	color: inherit;
}

body.woocommerce :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .add_to_cart_button.button,
body.woocommerce :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .single_add_to_cart_button.button,
body.woocommerce-page :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .add_to_cart_button.button,
body.woocommerce-page :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .single_add_to_cart_button.button {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: var(--size-touch-lg);
	margin: 0;
	padding: var(--space-3) var(--space-4);
	font-family: var(--font-body);
	font-size: var(--text-sm);
	font-weight: var(--font-weight-semibold);
	line-height: var(--leading-snug);
	text-align: center;
	text-decoration: none;
	border: none;
	border-radius: var(--radius-md);
	background: var(--color-primary);
	color: var(--color-surface);
}

body.woocommerce :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .add_to_cart_button.button:hover,
body.woocommerce :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .single_add_to_cart_button.button:hover,
body.woocommerce-page :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .add_to_cart_button.button:hover,
body.woocommerce-page :is(.veylo-shop, .cross-sells.veylo-shop) .home-featured-product-card .single_add_to_cart_button.button:hover {
	background: var(--color-primary-hover);
	color: var(--color-surface);
}

