/* ===== SCY YITH Helper – edycja BizuGold (Alukas) ===== */

:root {
	/* Kolor aktywnego serca – zmień na np. #e6007e, aby zgrać z różem cen BizuGold */
	--scy-accent: #e0245e;
}

.scy-rel { position: relative; }

/* Serce – białe kółko */
button.scy-heart {
	width: 32px !important;
	height: 32px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	outline: none !important;
	border-radius: 50% !important;
	background: rgba(255,255,255,.95) !important;
	color: #444 !important;
	box-shadow: 0 1px 5px rgba(0,0,0,.2) !important;
	cursor: pointer !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	line-height: 1 !important;
	transition: transform .15s ease !important;
	-webkit-tap-highlight-color: transparent;
}
button.scy-heart:hover,
button.scy-heart:focus,
button.scy-heart:active,
button.scy-heart.is-active,
button.scy-heart.is-active:hover {
	background: rgba(255,255,255,.95) !important;
	color: #444 !important;
	border: 0 !important;
	box-shadow: 0 1px 5px rgba(0,0,0,.2) !important;
}
button.scy-heart:hover { transform: scale(1.08) !important; }
.scy-heart svg {
	width: 17px !important;
	height: 17px !important;
	fill: none;
	stroke: #444;
	stroke-width: 1.8;
	pointer-events: none;
	display: block;
	transition: fill .15s ease, stroke .15s ease;
}
.scy-heart.is-active svg { fill: var(--scy-accent) !important; stroke: var(--scy-accent) !important; }
.scy-heart.is-active { animation: scy-pop .3s ease; }
@keyframes scy-pop { 0%{transform:scale(1)} 40%{transform:scale(1.25)} 100%{transform:scale(1)} }

/* Wariant nakładany na zdjęcie */
.scy-heart--overlay {
	position: absolute !important;
	right: 8px !important;
	bottom: 8px !important;
	z-index: 9 !important;
}
/* BizuGold: serce w prawym GÓRNYM rogu zdjęcia (obok badge "Nowość") */
body.scy-pos-tr .scy-heart--overlay {
	top: 8px !important;
	bottom: auto !important;
}
.scy-heart--single { width: 40px !important; height: 40px !important; }
.scy-heart--single svg { width: 21px !important; height: 21px !important; }

/* Wariant inline (shortcode [scy_heart] w dowolnym miejscu) */
.scy-heart-slot { display: inline-flex; vertical-align: middle; }
.scy-heart--inline { position: static !important; }

/* Ikona z licznikiem */
.scy-nav-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: inherit;
	text-decoration: none;
}
.scy-nav-icon svg { width: 24px; height: 24px; display: block; }
.scy-count {
	position: absolute;
	top: -7px;
	right: -9px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 9px;
	background: #1b4a4a;
	color: #fff;
	font-size: 11px;
	line-height: 17px;
	text-align: center;
	font-weight: 600;
}
.scy-header-inject {
	display: inline-flex;
	align-items: center;
	margin-right: 14px;
	vertical-align: middle;
}
.scy-mobile-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	color: inherit;
	text-decoration: none;
	font-size: 11px;
	letter-spacing: .06em;
	text-transform: uppercase;
	flex: 1 1 0;
	padding: 4px 0;
}
.scy-mobile-item .scy-nav-icon svg { width: 22px; height: 22px; }

/* Toast – biały z czarną ramką */
.scy-toast {
	position: fixed;
	left: 50%;
	bottom: 96px;
	transform: translateX(-50%) translateY(12px);
	background: #fff !important;
	color: #111 !important;
	border: 1px solid #111;
	border-radius: 8px;
	padding: 12px 18px;
	font-size: 14px;
	line-height: 1.4;
	letter-spacing: normal;
	text-transform: none;
	display: inline-flex;
	white-space: nowrap;
	gap: 14px;
	align-items: center;
	box-shadow: 0 6px 20px rgba(0,0,0,.16);
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s ease, transform .25s ease;
	z-index: 99999;
	max-width: calc(100vw - 24px);
}
.scy-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.scy-toast a { color: #1b4a4a !important; font-weight: 600; text-decoration: underline; white-space: nowrap; }
@media (min-width: 992px) { .scy-toast { bottom: 32px; } }
@media (max-width: 420px) { .scy-toast { font-size: 13px; padding: 10px 14px; gap: 10px; } }
@media (prefers-reduced-motion: reduce) {
	.scy-heart, .scy-heart svg, .scy-toast { transition: none !important; animation: none !important; }
}

/* ===== v1.1: przejęcie od Alukas/YITH ===== */

/* Ukryj natywne przyciski YITH drukowane przez motyw Alukas:
   - serce/checkmark w rogu kafelka na listingach,
   - link "Przejrzyj listę" / "Dodaj do listy życzeń" na karcie produktu.
   (Strona listy ulubionych YITH używa innych klas i działa normalnie.) */
.yith-wcwl-add-to-wishlist,
.yith-wcwl-add-button,
.yith-wcwl-wishlistaddedbrowse,
.yith-wcwl-wishlistexistsbrowse {
	display: none !important;
}

/* Ikona w pasku mobilnym - dopasowanie do pozostałych ikon Alukas */
.scy-mobile-item,
.scy-mobile-item .scy-mobile-label,
.scy-mobile-item .scy-nav-icon {
	color: #fff !important;
	opacity: 1 !important;
}
.scy-mobile-item {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	text-decoration: none !important;
}
.scy-mobile-item .scy-nav-icon svg {
	width: 24px;
	height: 24px;
}
.scy-mobile-item .scy-nav-icon svg path { stroke: #fff; stroke-width: 1.4; }
/* Badge liczby: bialy krazek, CIEMNA cyfra (wyzsza specyficznosc niz regula koloru wyzej) */
.scy-mobile-item .scy-nav-icon .scy-count,
.scy-mobile-item span.scy-count {
	position: absolute;
	top: -6px;
	right: -8px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 8px;
	background: #fff !important;
	color: #111 !important;
	font-size: 10px;
	line-height: 16px;
	font-weight: 600;
	text-align: center;
}

/* ===== v1.4: serce zamiast licznika + korekta etykiety ===== */

/* Gdy lista niepusta - serce w nagłówku/pasku wypełnione na czerwono */
.scy-nav-icon.has-items svg path {
	fill: var(--scy-accent) !important;
	stroke: var(--scy-accent) !important;
}

/* Napis ULUBIONE - wyrównanie do pozostałych pozycji paska (1px w górę) */
.scy-mobile-item .scy-mobile-label {
	position: relative;
	top: -3px;
}

/* ===== v1.5: całkowite ukrycie natywnych elementów YITH ===== */

/* Karta produktu: chowamy KAŻDY element YITH (dowolna wersja wtyczki,
   dowolne klasy zaczynające się od yith-wcwl) - znika przycisk, serduszko
   i odstęp między "Kup teraz" a opisem. */
body.single-product div.product [class*="yith-wcwl"],
body.single-product .summary [class*="yith-wcwl"] {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	height: 0 !important;
}

/* Kafelki na listingach - to samo. */
ul.products [class*="yith-wcwl"],
li.product [class*="yith-wcwl"] {
	display: none !important;
}

/* Strona listy ulubionych YITH celowo NIE jest objęta tymi regułami
   (nie jest single-product ani listingiem) - działa normalnie. */

/* ===== Strona listy ulubionych YITH =====
   Edycja BizuGold: BEZ nadpisywania wyglądu – lista zostaje w domyślnym
   stylu YITH/motywu (obrazek, nazwa, Price/Stock, "Dodaj do koszyka", X),
   dokładnie jak na sklepie. */

/* v2.1: licznik wyłączony (przy pełnym cache pokazywał nieaktualne wartości) */
.scy-count { display: none !important; }

/* ===== v2.2/2.4 ===== */

/* Sygnalizacja "masz produkty na liście" (stan z AJAX - odporny na cache):
   desktop: serce wypełnia się na czerwono */
.scy-header-inject .scy-nav-icon.scy-has svg path,
header .scy-nav-icon.scy-has svg path,
.site-header .scy-nav-icon.scy-has svg path {
	fill: var(--scy-accent) !important;
	stroke: var(--scy-accent) !important;
}
/* mobile (czarny pasek): serce zostaje białe konturowe + mała czerwona kropka */
.scy-mobile-item .scy-nav-icon.scy-has svg path {
	fill: none !important;
	stroke: #fff !important;
}
.scy-mobile-item .scy-nav-icon.scy-has::after {
	content: "";
	position: absolute;
	top: -3px;
	right: -5px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--scy-accent);
}
.scy-mobile-item .scy-nav-icon { position: relative; }

/* ===== v2.4.1: czerwona kropka przy sercu w nawigacji motywu ===== */

/* Ukryj natywny licznik liczbowy przy adoptowanym linku Ulubione */
a[data-scy-native] .scy-native-num { display: none !important; }

/* Kropka - pojawia sie, gdy lista zawiera co najmniej 1 produkt */
a[data-scy-native] .scy-dot {
	position: absolute;
	top: -3px;
	right: -5px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--scy-accent);
	opacity: 0;
	transform: scale(.5);
	transition: opacity .15s ease, transform .15s ease;
	pointer-events: none;
}
a[data-scy-native].scy-native-has .scy-dot {
	opacity: 1;
	transform: scale(1);
}

/* ===== v2.4.2 ===== */

/* Natywny przycisk wishlist motywu w kafelku/galerii - ukryty przez JS,
   zostaje tylko nasze serce (bez dubli). */
.scy-hide-native { display: none !important; }
