/* Lucy – Favoritos */
.lucy-fav {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0;
	border: 0;
	background: none;
	color: var(--c-ink, #241d1b);
	font: inherit;
	cursor: pointer;
}
.lucy-fav svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	transition: transform 0.2s ease, fill 0.2s ease, stroke 0.2s ease;
}
.lucy-fav.is-active svg {
	fill: var(--c-rose, #c98a90);
	stroke: var(--c-rose, #c98a90);
}
.lucy-fav:active svg { transform: scale(0.85); }
.lucy-fav:focus-visible {
	outline: 2px solid var(--c-green, #00524b);
	outline-offset: 3px;
}

/* Ficha de producto */
.lucy-fav--single {
	margin-top: var(--space-2, 1rem);
	font-size: var(--fs-sm, 0.85rem);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	transition: color 0.2s ease;
}
.lucy-fav--single:hover { color: var(--c-green, #00524b); }

/* Tarjetas */
li.product,
.brxe-block:has(> .brxe-shortcode > .lucy-fav--card),
.brxe-block:has(> .lucy-fav--card) { position: relative; }
.lucy-fav--card {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 3;
	width: 38px;
	height: 38px;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 2px 10px rgba(30, 20, 18, 0.12);
}
.lucy-fav--card:hover svg { stroke: var(--c-rose, #c98a90); }
.lucy-fav--card .lucy-fav__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Contador en el corazón del header */
[data-lucy-fav-count] { position: relative; }
[data-lucy-fav-count]:not([data-lucy-fav-count=""])::after {
	content: attr(data-lucy-fav-count);
	position: absolute;
	top: -7px;
	right: -9px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 8px;
	background: var(--c-rose, #c98a90);
	color: #fff;
	font: 600 10px/16px var(--font-body, sans-serif);
	text-align: center;
	pointer-events: none;
}

/* Página de favoritos */
.lucy-fav-list { width: 100%; }
.lucy-fav-loading { color: var(--c-graphite, #4a3f3b); }
.lucy-fav-empty {
	padding: var(--space-6, 4rem) 0;
	text-align: center;
	color: var(--c-graphite, #4a3f3b);
}
.lucy-fav-empty p { margin: 0 0 0.5rem; }
.lucy-fav-empty__cta {
	display: inline-block;
	margin-top: var(--space-3, 1.5rem);
	padding: 0.85rem 1.8rem;
	border: 1px solid var(--c-green, #00524b);
	color: var(--c-green, #00524b);
	font-size: var(--fs-sm, 0.85rem);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
}
.lucy-fav-empty__cta:hover {
	background: var(--c-green, #00524b);
	color: #fff;
}
