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

@media (hover: hover) {
	.home-top-seller-card:hover {
		box-shadow: var(--shadow-lg);
		transform: translateY(-3px);
		border-color: var(--color-highlight-muted);
	}
}

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

.home-top-seller-card__media-link:focus-visible {
	outline: var(--focus-ring);
	outline-offset: var(--focus-offset);
	border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.home-top-seller-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: linear-gradient(
		160deg,
		var(--color-background-muted) 0%,
		var(--color-background) 55%,
		var(--color-highlight-muted) 180%
	);
	overflow: hidden;
	flex-shrink: 0;
}

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

.home-top-seller-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: 700;
	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-top-seller-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-3);
	padding: var(--space-6);
	flex: 1 1 auto;
}

.home-top-seller-card__title {
	margin: 0;
	font-family: var(--font-display);
	font-weight: var(--font-weight-display);
	font-size: var(--text-xl);
	line-height: var(--leading-snug);
	color: var(--color-primary);
}

.home-top-seller-card__title-link {
	color: inherit;
	text-decoration: none;
	outline: none;
}

.home-top-seller-card__title-link:hover {
	color: var(--color-secondary);
}

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

.home-top-seller-card__excerpt {
	margin: 0;
	font-size: var(--text-sm);
	line-height: 1.55;
	color: var(--color-text-secondary);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
}

.home-top-seller-card__price {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-2);
	font-family: var(--font-mono);
	font-size: var(--text-lg);
	font-weight: 600;
	color: var(--color-primary);
}

.home-top-seller-card__price del {
	font-weight: 400;
	font-size: var(--text-sm);
	color: var(--color-text-secondary);
	margin-right: var(--space-2);
}

.home-top-seller-card__price ins {
	text-decoration: none;
	color: var(--color-accent);
}

.home-top-seller-card__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: var(--space-3);
	width: 100%;
	margin-top: auto;
	padding-top: var(--space-2);
}

@media (min-width: 480px) {
	.home-top-seller-card__actions {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
	}
}

.home-top-seller-card__actions-primary {
	flex: 1 1 auto;
	min-width: 0;
}

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

/* WooCommerce AJAX may inject a "View cart" link after the add-to-cart control; keep success on the button only. */
.home-top-seller-card__actions-primary a.added_to_cart {
	display: none !important;
}

.home-top-seller-card .add_to_cart_button,
.home-top-seller-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-top-seller-card .add_to_cart_button:hover,
.home-top-seller-card .single_add_to_cart_button:hover {
	background: var(--color-primary-hover);
	color: var(--color-surface);
}

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

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

.home-top-seller-card .add_to_cart_button.loading,
.home-top-seller-card .single_add_to_cart_button.loading {
	opacity: 0.88;
}

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

.home-top-seller-card .add_to_cart_button.veylo-top-seller--added:hover,
.home-top-seller-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-top-seller-card,
	.home-top-seller-card:hover {
		transition: none;
		transform: none;
	}
}
