/*
 * BeArt Wishlist — standalone "Obľúbené produkty" page (shortcode/block).
 * Uses the same custom properties BeArt Theme defines via theme.json when
 * present, with plain fallbacks so the plugin also looks reasonable under
 * any other theme.
 */

.beart-wishlist-page {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.5rem;
}

.beart-wishlist-page__loading,
.beart-wishlist-page__empty {
	grid-column: 1 / -1;
	color: var(--wp--preset--color--neutral, #64748b);
}

.beart-wishlist-item {
	position: relative;
	background-color: var(--wp--preset--color--base, #fff);
	border: 1px solid var(--wp--preset--color--border, #e2e8f0);
	border-radius: 8px;
	padding: 1.5rem 1rem 1rem;
	text-align: center;
}

.beart-wishlist-item__image {
	width: 140px;
	height: 140px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid var(--wp--preset--color--border, #e2e8f0);
	margin: 0 auto 1rem;
	display: block;
}

.beart-wishlist-item__name {
	display: block;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary, #0b1b2b);
	text-decoration: none;
	margin-bottom: 0.5rem;
}

.beart-wishlist-item__price {
	font-weight: 600;
	margin-bottom: 1rem;
}

.beart-wishlist-item__remove {
	background-color: transparent;
	border: 1px solid var(--wp--preset--color--border, #e2e8f0);
	border-radius: 4px;
	color: var(--wp--preset--color--neutral, #64748b);
	cursor: pointer;
	font-size: 0.8125rem;
	padding: 0.4em 0.9em;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.beart-wishlist-item__remove:hover {
	border-color: #dc2626;
	color: #dc2626;
}

.beart-wishlist-item.is-removing {
	opacity: 0.4;
	pointer-events: none;
}

.beart-wishlist-block-placeholder {
	background-color: #f8f9fa;
	border: 1px dashed #64748b;
	border-radius: 8px;
	padding: 1.5rem;
}

.beart-wishlist-block-placeholder__hint {
	color: #64748b;
	font-size: 0.875rem;
	margin: 0;
}

/* --------------------------------------------------------------------------
   Srdiečka + počítadlo (frontend UI)
   Farby berú role --beart-* z témy (prepnú sa s tmavým režimom); ak téma
   nie je aktívna, fallback na neutrálne hodnoty, aby plugin vyzeral dobre
   v každej téme.
   -------------------------------------------------------------------------- */

.beart-wishlist-heart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid var(--beart-border, #e2e8f0);
	background-color: var(--beart-surface-raised, #fff);
	color: var(--beart-on-surface-soft, #64748b);
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.beart-wishlist-heart:hover {
	border-color: var(--beart-accent, #ff007a);
	color: var(--beart-accent, #ff007a);
	transform: translateY(-2px);
}

/* Signálny gradient 4 pilierov (farby prevzaté z MegaMenuData — jediný
   zdroj pravdy akcentov): Reklamná tlač #ff007a, Svetelná reklama #00e5ff,
   Výroba & POS #ff6b00, Smart Tech #00ff88. */
.beart-wishlist-heart.is-active {
	background-image: linear-gradient(135deg, #ff007a 0%, #00e5ff 45%, #ff6b00 75%, #00ff88 100%);
	background-color: #ff007a;
	border-color: transparent;
	color: #fff;
}

.beart-wishlist-heart.is-active svg {
	fill: currentColor;
}

.beart-wishlist-heart--card {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 6;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

/*
 * Detail produktu: srdiečko vkladá JS až po načítaní. V toku dokumentu by
 * posunulo nadpis aj konfigurátor pod ním (mobil: CLS 0,57). Preto je
 * absolútne v pravom hornom rohu súhrnu a nadpis má miesto rezervované
 * vopred, aj keď sa JS ešte nenačítal.
 */
.single-product div.product div.summary {
	position: relative;
}

.single-product div.product div.summary .product_title {
	padding-right: 56px;
}

.beart-wishlist-heart--detail {
	position: absolute;
	top: 0.35rem;
	right: 0;
	z-index: 1;
	width: 44px;
	height: 44px;
	margin: 0;
}

/* Odkaz v hlavičke má 40 px — lišta ikon ho má mať rezervovaný vopred. */
.beart-header-actions {
	min-height: 40px;
}

/* Odkaz v hlavičke – rovnaký vzhľad ako košík témy. */
.beart-wishlist-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: var(--beart-on-surface-strong, #0b1b2b);
	border: 1px solid var(--beart-border, #e2e8f0);
	transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.beart-wishlist-link:hover {
	color: var(--beart-accent, #ff007a);
	border-color: var(--beart-accent, #ff007a);
	transform: translateY(-2px);
}

.beart-wishlist-count {
	position: absolute;
	top: -6px;
	right: -6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 700;
	line-height: 1;
	background-image: linear-gradient(135deg, #ff007a 0%, #00e5ff 45%, #ff6b00 75%, #00ff88 100%);
	background-color: #ff007a;
	color: #fff;
}

/* Položka „Obľúbené“ v mobilnom draweri. */
.beart-wishlist-mobile-link {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	position: relative;
}

.beart-wishlist-mobile-link .beart-wishlist-count {
	position: static;
	min-width: 18px;
	height: 18px;
	margin-left: auto;
}


