/* ==========================================================================
   Wunschliste / Wishlist
   ========================================================================== */

:root {
	/* Farbe des gefüllten Herzens - hier anpassen (z.B. #FFD400 für reines Gelb) */
	--thw-heart-fill: #C8A779;
}

/* --- Herz-Button ---------------------------------------------------------- */
.wishlist-btn,
.e-loop-item .elementor-element-9fab1f8 {
	cursor: pointer;
	z-index: 5;
	-webkit-tap-highlight-color: transparent;
}

.wishlist-btn .elementor-icon,
.e-loop-item .elementor-element-9fab1f8 .elementor-icon {
	cursor: pointer;
	display: inline-flex;
	transform-origin: 50% 50%;
}

.wishlist-btn svg .thw-fill {
	fill: transparent;
	transition: fill .25s ease-out;
}

.wishlist-btn.is-wishlisted svg .thw-fill {
	fill: var(--thw-heart-fill);
}

.wishlist-btn:focus-visible .elementor-icon {
	outline: 2px solid var(--thw-heart-fill);
	outline-offset: 3px;
	border-radius: 4px;
}

/* Klick-Animation */
.wishlist-btn.thw-pop .elementor-icon {
	animation: thwPop .35s ease-out;
}

@keyframes thwPop {
	0%   { transform: scale(1); }
	40%  { transform: scale(1.25); }
	100% { transform: scale(1); }
}

/* --- Wunschliste-Seite ---------------------------------------------------- */
.thw-hidden {
	display: none !important;
}

.thw-empty {
	display: block;
	width: 100%;
	padding: 60px 20px;
	text-align: center;
	font-size: 18px;
	line-height: 1.6;
	color: var( --e-global-color-text, #244346 );
}

.thw-empty a {
	color: #C8A779;
	text-decoration: underline;
}

/* --- Zähler (optional, im Header) ----------------------------------------- */
.wishlist-count {
	display: inline-block;
	min-width: 18px;
	height: 18px;
	line-height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: #C8A779;
	color: #fff;
	font-size: 11px;
	text-align: center;
}

.wishlist-count.thw-count-empty {
	display: none;
}

/* --- PDF-Button ----------------------------------------------------------- */
/* Erst sichtbar, wenn wishlist.js etwas auf der Wunschliste findet. */
.th-wishlist-pdf:not(.thw-ready) {
	display: none !important;
}
