/* ==========================================================================
   Danje Wishlist — heart buttons, header badge, /wishlist/ page
   ========================================================================== */

/* Heart button — product card */
.danje-product-card__image-container {
	position: relative;
}

.danje-wishlist-btn {
	appearance: none;
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid var(--border);
	color: var(--text-secondary);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .danje-wishlist-btn {
	background: rgba(22, 22, 22, 0.85);
}

.danje-wishlist-btn--card {
	position: absolute;
	top: 12px;
	left: 12px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	z-index: 3;
	backdrop-filter: blur(6px);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.danje-wishlist-btn--single {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	flex: 0 0 auto;
}

.danje-wishlist-btn:hover {
	border-color: var(--gold);
	color: var(--gold);
	transform: scale(1.08);
}

.danje-wishlist-btn.is-busy {
	opacity: 0.6;
	pointer-events: none;
}

.danje-wishlist-btn__icon {
	transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), fill 0.25s ease;
}

.danje-wishlist-btn.is-active {
	background: var(--gold);
	border-color: var(--gold);
	color: var(--text-on-gold);
}

.danje-wishlist-btn.is-active .danje-wishlist-btn__icon {
	fill: currentColor;
	transform: scale(1.12);
}

.danje-wishlist-btn:active .danje-wishlist-btn__icon {
	transform: scale(0.85);
}

/* Single product wrapper — now sits beside the product title */
.danje-wishlist-single-wrap {
	display: inline-flex;
	flex: 0 0 auto;
	vertical-align: middle;
}

/* Title + heart row — heart sits opposite the title (left side in RTL) */
.danje-title-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.danje-title-row .product_title {
	flex: 1 1 auto;
	min-width: 0;
}

/* Header badge */
.danje-header__wishlist {
	position: relative;
}

.danje-header__wishlist .action-icon {
	position: relative;
}

.danje-wishlist-badge {
	display: none;
	position: absolute;
	top: -6px;
	left: -8px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--gold);
	color: var(--text-on-gold);
	font-size: 10px;
	font-weight: 700;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

/* /wishlist/ page */
.danje-wishlist-page {
	min-height: 50vh;
}

.danje-wishlist-page__header {
	text-align: center;
	margin-bottom: var(--space-xl, 48px);
}

.danje-wishlist-page__title {
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	font-weight: 800;
	color: var(--text-title);
	margin-bottom: 8px;
}

.danje-wishlist-page__subtitle {
	color: var(--text-secondary);
	font-size: 14px;
}

#danje-wishlist-container.is-loading {
	position: relative;
	min-height: 240px;
}

#danje-wishlist-container.is-loading::after {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 36px;
	height: 36px;
	border: 2px solid var(--border);
	border-top-color: var(--gold);
	border-radius: 50%;
	animation: danje-wishlist-spin 0.8s linear infinite;
}

@keyframes danje-wishlist-spin {
	to {
		transform: rotate(360deg);
	}
}

.danje-wishlist-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: var(--space-lg, 24px);
}

.danje-wishlist-empty {
	display: none;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 80px 20px;
	color: var(--text-secondary);
}

.danje-wishlist-empty__icon {
	color: var(--gold-border);
	margin-bottom: 20px;
}

.danje-wishlist-empty__title {
	font-size: 18px;
	font-weight: 700;
	color: var(--text-title);
	margin-bottom: 8px;
}

.danje-wishlist-empty__cta {
	display: inline-block;
	margin-top: 20px;
	padding: 12px 28px;
	border-radius: var(--radius-sm);
	background: var(--gold);
	color: var(--text-on-gold);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	transition: all 0.3s ease;
}

.danje-wishlist-empty__cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px var(--gold-muted);
}

@media (max-width: 600px) {
	.danje-wishlist-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.danje-wishlist-btn--card {
		width: 30px;
		height: 30px;
		top: 8px;
		left: 8px;
	}
}
