/**
 * Wishlist toggle + header badge (Phase 6C.1).
 */

.vn-product-card__wish.is-active svg,
.vn-product-card__wish.is-wished svg,
.vn-product-detail__wishlist.is-active svg {
	fill: currentColor;
}

[data-vn-wishlist-toggle].is-loading {
	cursor: wait;
	opacity: 0.65;
}

[data-vn-wishlist-toggle]:focus-visible,
.vn-header-wishlist:focus-visible {
	outline: 3px solid var(--vn-focus-ring);
	outline-offset: 2px;
}

.vn-header-wishlist,
.action-item.action-wishlist.vn-header-wishlist,
a.vn-header-wishlist {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	text-decoration: none;
}

.vn-header-wishlist__count,
.action-wishlist .vn-header-wishlist__count {
	position: absolute;
	top: -6px;
	right: -8px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--red-sale, #e53935);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

.vn-mobile-action__badge[data-vn-wishlist-count] {
	background: var(--red-sale, #e53935);
}

.vn-wishlist-live {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Product card wish — positioning (colors from vn-icon-btn) */
.vn-product-card__wish {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	opacity: 0;
	transform: scale(0.85);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.vn-product-card:hover .vn-product-card__wish,
.vn-product-card__wish.is-active,
.vn-product-card__wish.is-wished {
	opacity: 1;
	transform: scale(1);
}
