/* Wishlist (Kedvencek). The heart shape itself is swapped in wishlist.js.
   The list lives in the Fiókom account tab; see includes/wishlist.php. */

[data-rcx-wish].is-saved {
	color: var(--text-brand, #52614d);
}

/* The account tab renders the saved rows server-side already carrying .is-wished,
   so nothing flashes. Removing a heart drops .is-wished and hides that row at once.
   The attribute selector is doubled on purpose: a row may set its own display at
   the same specificity, and without this the winner would come down to which
   stylesheet happens to load last. */
[data-rcx-wishlist-grid][data-rcx-wishlist-grid] > *:not(.is-wished) {
	display: none;
}

.rcx-wishlist-empty {
	display: none;
	max-width: 32rem;
}

[data-rcx-wishlist-grid][data-wished="0"] + .rcx-wishlist-empty {
	display: block;
}

.rcx-wishlist-empty-title {
	margin: 0 0 var(--space-xs, 0.5rem);
	font-family: var(--heading-font, inherit);
	font-size: var(--large, 1.5rem);
	font-weight: 400;
	line-height: 1.2;
	color: var(--rca-text, var(--text, #2b2522));
}

.rcx-wishlist-empty-text {
	margin: 0 0 var(--space-l, 1.5rem);
	font-size: var(--modest, 0.875rem);
	line-height: 1.6;
	color: var(--rca-text-2, var(--text-secondary, #706b68));
}

.rcx-wishlist-empty a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0 var(--space-l, 1.5rem);
	border-radius: var(--rca-radius, 6px);
	background-color: var(--rca-primary, #52614d);
	font-size: var(--modest, 0.875rem);
	font-weight: 600;
	color: var(--on-primary, #fff);
	text-decoration: none;
	transition: background-color var(--rca-transition, 150ms ease);
}

.rcx-wishlist-empty a:hover {
	background-color: var(--rca-primary-hover, #3e4b3a);
	color: var(--on-primary, #fff);
}

/* ---------- the saved list ---------- */

.rcx-wl {
	display: flex;
	flex-direction: column;
	gap: var(--space-s, 0.75rem);
}

.rcx-wl-row {
	display: flex;
	align-items: center;
	gap: var(--space-m, 1rem);
	padding: var(--space-s, 0.75rem);
	border: 1px solid var(--rca-border-subtle, #e9ede8);
	border-radius: var(--rca-radius-card, 10px);
	background-color: var(--white, #fff);
}

.rcx-wl-thumb {
	flex-shrink: 0;
	width: 4.5rem;
	height: 4.5rem;
	overflow: hidden;
	border-radius: var(--rca-radius, 6px);
	background-color: var(--rca-thumb, #edeceb);
}

.rcx-wl-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rcx-wl-info {
	flex: 1;
	min-width: 0;
}

.rcx-wl-meta {
	margin: 0 0 0.125rem;
	font-size: var(--tiny, 0.75rem);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--rca-muted, #8a8684);
}

.rcx-wl-title {
	margin: 0 0 0.25rem;
	font-family: var(--heading-font, inherit);
	font-size: var(--modest-title, 1.125rem);
	font-weight: 400;
	line-height: 1.25;
}

.rcx-wl-title a {
	color: var(--rca-text, var(--text, #2b2522));
	text-decoration: none;
}

.rcx-wl-title a:hover {
	color: var(--rca-link-hover, #3e4b3a);
}

.rcx-wl-price {
	margin: 0;
	font-size: var(--modest, 0.875rem);
	font-weight: 600;
	color: var(--rca-text, var(--text, #2b2522));
}

.rcx-wl-actions {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: var(--space-xs, 0.5rem);
}

.rcx-wl-link {
	padding: 0.5rem 0.875rem;
	border-radius: var(--rca-radius, 6px);
	background-color: var(--rca-active, #e9ede8);
	font-size: var(--modest, 0.875rem);
	font-weight: 600;
	color: var(--rca-brand-strong, #3e4b3a);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--rca-transition, 150ms ease);
}

.rcx-wl-link:hover {
	background-color: var(--rca-border, #d4dbd2);
	color: var(--rca-brand-strong, #3e4b3a);
}

.rcx-wl-remove {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	border-radius: var(--radius-round, 999px);
	background: none;
	color: var(--text-brand, #52614d);
	cursor: pointer;
	transition: background-color var(--rca-transition, 150ms ease);
}

.rcx-wl-remove:hover {
	background-color: var(--rca-surface, #f7f7f6);
}

.rcx-wl-remove:focus-visible {
	outline: 2px solid var(--rca-focus, #52614d);
	outline-offset: 2px;
}

/* The icon size comes from .rca .rca-icon, and from the file's own 24px when the
   account stylesheet is not in play. Both land at 1.5rem, so nothing to set here. */

@media (max-width: 478px) {
	.rcx-wl-row {
		flex-wrap: wrap;
	}

	.rcx-wl-actions {
		width: 100%;
		justify-content: space-between;
	}
}
