/**
 * Botão wishlist: coração que enche e esvazia.
 */

.goya-child-wishlist-summary {
	margin: 1em 0;
}

.goya-child-wishlist-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5em;
	color: inherit;
	text-decoration: none;
	background: none;
	border: none;
	cursor: pointer;
	transition: transform 0.2s ease, color 0.2s ease;
}

.goya-child-wishlist-btn:hover {
	transform: scale(1.1);
}

.goya-child-wishlist-btn:focus {
	color: inherit;
	outline: none;
}

.goya-child-wishlist-btn:focus-visible {
	color: inherit;
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.goya-child-wishlist-btn.goya-child-wishlist-loading {
	pointer-events: none;
	opacity: 0.7;
}

.goya-child-wishlist-heart {
	width: 24px;
    height: 24px;
	display: block;
}

.goya-child-wishlist-heart-path {
	transition: fill 0.35s ease, stroke 0.35s ease, transform 0.25s ease;
	transform-origin: center;
}

/* Coração vazio (só contorno) */
.goya-child-wishlist-btn--empty .goya-child-wishlist-heart-path {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linejoin: round;
}

.goya-child-wishlist-btn--empty:hover .goya-child-wishlist-heart-path {
	transform: scale(1.08);
}

/* Coração cheio */
.goya-child-wishlist-btn--filled .goya-child-wishlist-heart-path {
	fill: currentColor;
	stroke: currentColor;
	stroke-width: 0;
}

.goya-child-wishlist-btn--filled:hover .goya-child-wishlist-heart-path {
	transform: scale(1.08);
}

/* Animação ao “encher” (quando passa a preenchido) */
@keyframes goya-child-heart-fill {
	0% {
		transform: scale(1);
		opacity: 1;
	}
	50% {
		transform: scale(1.25);
		opacity: 0.9;
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}

/* Animação ao “esvaziar” (página recarrega noutro estado; opcional) */
.goya-child-wishlist-btn--filled .goya-child-wishlist-heart-path {
	animation: goya-child-heart-fill 0.4s ease;
}

/* Notificação toast ao adicionar/remover da wishlist */
.goya-child-wishlist-notify {
	position: fixed;
	bottom: 1.5rem;
	left: 50%;
	transform: translateX(-50%) translateY(1rem);
	padding: 0.65rem 1.25rem;
	background: #1a1a1a;
	color: #fff;
	font-size: 0.9rem;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.3s ease;
	z-index: 999999;
	max-width: 90%;
	text-align: center;
}

.goya-child-wishlist-notify:not(.goya-child-wishlist-notify--out) {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.goya-child-wishlist-notify--out {
	opacity: 0;
	transform: translateX(-50%) translateY(-0.5rem);
}

.goya-child-wishlist-notify__link {
	color: #fff;
	text-decoration: underline;
	white-space: nowrap;
}

.goya-child-wishlist-notify__link:hover {
	color: #fff;
	opacity: 0.9;
}
