/* XSUS Ulubione — kolory jak „szpitalny błękit” sklepu */
:root {
	--xu-niebieski: #1a6fc4;
	--xu-niebieski-ciemny: #155a9f;
	--xu-serce: #d7263d;
	--xu-granat: #0b2545;
	--xu-tekst: #1d2228;
	--xu-szary: #4a525b;
	--xu-linia: #e3e6ea;
	--xu-tlo: #f2f7fc;
}
.xu-svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }

/* ---------- serce na kafelku ---------- */
li.product.xu-kafel { position: relative; }
.xu-serce {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	background: rgba(255, 255, 255, .94);
	color: var(--xu-granat);
	border: 1px solid var(--xu-linia);
	border-radius: 50%;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
	cursor: pointer;
	transition: color .15s, border-color .15s, transform .15s;
}
.xu-serce:hover { color: var(--xu-serce); border-color: var(--xu-serce); }
.xu-serce:focus-visible, .xu-karta:focus-visible, .xu-ikona:focus-visible, .xu-k-usun:focus-visible { outline: 3px solid var(--xu-niebieski); outline-offset: 2px; }
.xu-serce-ikona { display: block; width: 22px; height: 22px; pointer-events: none; }
.xu-on .xu-svg { fill: var(--xu-serce); stroke: var(--xu-serce); }
.xu-serce.xu-on { color: var(--xu-serce); border-color: rgba(215, 38, 61, .35); }
.xu-puls { animation: xu-puls .35s ease-out; }
@keyframes xu-puls { 0% { transform: scale(1); } 45% { transform: scale(1.22); } 100% { transform: scale(1); } }

/* ---------- karta produktu (w rzędzie „Powiększ” / „Porównaj”) ---------- */
.xu-karta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 8px 14px;
	background: #fff;
	color: #111;
	border: 1px solid var(--xk-linia, var(--xu-linia));
	border-radius: 6px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
}
.xu-karta:hover { border-color: var(--xu-granat); }
.xu-karta .xu-serce-ikona { width: 18px; height: 18px; }
.xu-karta.xu-on { color: var(--xu-serce); border-color: rgba(215, 38, 61, .45); }
.xu-karta-zapas { display: flex; justify-content: flex-end; margin-top: 10px; }
@media (max-width: 767px) {
	/* trzy przyciski w oknie zdjęcia na telefonie — serce bez napisu */
	.xk-galeria-akcje .xu-karta { padding: 7px 10px; }
	.xk-galeria-akcje .xu-karta .xu-napis { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- nagłówek ---------- */
.xu-ikona {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-right: 6px;
	color: var(--xu-tekst);
	border-radius: 50%;
	text-decoration: none !important;
	transition: background .15s, color .15s;
}
.xu-ikona:hover { background: var(--xu-tlo); color: var(--xu-serce); }
.xu-ikona .xu-svg { width: 24px; height: 24px; }
.xu-ikona.xu-ma .xu-svg { fill: var(--xu-serce); stroke: var(--xu-serce); }
.xu-licznik {
	position: absolute;
	top: 1px;
	right: -1px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	background: var(--xu-serce);
	color: #fff;
	border-radius: 9px;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}
.xu-licznik[hidden], .xu-xem-licznik[hidden] { display: none !important; }
/* element Shortcode w nagłówku Oxygena (1809): nie ściskać mini-koszyka obok */
#shortcode-ulubione { flex: none; }
#shortcode-ulubione ~ .oxy-mini-cart { flex-shrink: 0; }
/* miejsce na serce: zamiast napisu „N elementów” liczba sztuk w kółku na wózku (kwota zostaje) — menu mieściło się na styk */
#shortcode-ulubione ~ .oxy-mini-cart .oxy-woo-mini-cart__items-count { display: none !important; }
#shortcode-ulubione ~ .oxy-mini-cart .oxy-woo-mini-cart__summary { position: relative; }
#shortcode-ulubione ~ .oxy-mini-cart .oxy-woo-mini-cart__quantity-badge {
	display: block !important;
	position: absolute;
	top: -7px;
	right: -9px;
	left: auto;
	z-index: 2;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	background: var(--xu-niebieski) !important;
	color: #fff !important;
	border-radius: 9px;
	font-size: 11px !important;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}
#shortcode-ulubione ~ .oxy-mini-cart .oxy-woo-mini-cart__quantity-badge[data-xu-zero] { display: none !important; }

/* szuflada menu (xsus-exon-menu) — tylko tam, gdzie menu jest szufladą */
.xu-xem .xu-serce-ikona { width: 22px; height: 22px; color: var(--xu-serce); }
.xu-xem-licznik { margin-left: auto; min-width: 22px; padding: 1px 7px; background: var(--xu-serce); color: #fff; border-radius: 11px; font-size: 12px; font-weight: 700; text-align: center; }
@media (min-width: 1200px) { .xem .xu-xem { display: none !important; } }
@media (max-width: 1199.98px) { .xem .xem-konto.xu-przed { margin-bottom: 0; } .xem .xu-xem { margin-top: 10px; margin-bottom: 24px; } }

/* ---------- komunikat ---------- */
.xu-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 100000;
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: calc(100vw - 32px);
	padding: 12px 18px;
	background: var(--xu-granat);
	color: #fff;
	border-radius: 10px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
	font-size: 15px;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 12px);
	transition: opacity .2s, transform .2s;
}
.xu-toast.xu-widoczny { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.xu-toast-link { color: #9fd0ff !important; font-weight: 700; text-decoration: underline !important; white-space: nowrap; }
@media (max-width: 767px) { .xu-toast { bottom: 84px; } }

/* ---------- strona /ulubione/ ---------- */
.xu-strona { box-sizing: border-box; max-width: 1340px; margin: 0 auto; padding: 8px 20px 40px; color: var(--xu-tekst); }
@media (max-width: 767px) { .xu-strona { padding: 4px 16px 32px; } }
.xu-tytul { margin: 8px 0 6px; font-size: 32px; line-height: 1.2; color: var(--xu-granat); }
.xu-wstep { margin: 0 0 18px; color: var(--xu-szary); font-size: 15px; }
@media (max-width: 767px) { .xu-tytul { font-size: 26px; } }
.xu-pasek { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 20px; padding: 14px 18px; background: var(--xu-tlo); border: 1px solid var(--xu-linia); border-radius: 12px; }
.xu-pasek[hidden] { display: none; }
.xu-pasek-tytul { margin: 0; font-size: 18px; font-weight: 700; }
.xu-pasek-akcje { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.xu-przycisk, a.xu-przycisk, .xu-strona .button.xu-przycisk {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	background: var(--xu-niebieski) !important;
	color: #fff !important;
	border: 0;
	border-radius: 10px !important;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
}
.xu-przycisk:hover { background: var(--xu-niebieski-ciemny) !important; }
.xu-przycisk.xu-drugorzedny { background: #fff !important; color: var(--xu-niebieski) !important; border: 2px solid var(--xu-niebieski); }
.xu-przycisk.xu-drugorzedny:hover { background: var(--xu-tlo) !important; }
.xu-link { padding: 6px 4px; background: none; border: 0; color: var(--xu-szary); font-family: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.xu-siatka { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .xu-siatka { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .xu-siatka { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.xu-k { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 14px; background: #fff; border: 1px solid var(--xu-linia); border-radius: 12px; }
.xu-k-obraz { display: block; }
.xu-k-obraz img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.xu-k-nazwa { color: var(--xu-tekst) !important; font-size: 15px; font-weight: 700; line-height: 1.35; text-decoration: none !important; }
.xu-k-nazwa:hover { color: var(--xu-niebieski) !important; }
.xu-cena { font-size: 18px; font-weight: 700; color: var(--xu-niebieski); }
.xu-cena del { margin-right: 4px; color: #8a929b; font-size: 14px; font-weight: 400; }
.xu-cena ins { text-decoration: none; }
.xu-k-dostepnosc { font-size: 13px; font-weight: 600; }
.xu-k-dostepnosc.xu-jest { color: #0b8474; }
.xu-k-dostepnosc.xu-brak { color: #b4232f; }
.xu-k-akcje { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.xu-k-akcje .xu-przycisk { width: 100%; }
.xu-k-akcje .added_to_cart { text-align: center; font-size: 14px; }
.xu-strona .xu-k-porownaj.wcp-btn { width: 100%; margin: 0 !important; min-height: 38px; border-radius: 10px !important; font-size: 13px !important; }
.xu-k-usun { position: absolute; top: 8px; right: 8px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; background: #fff; color: var(--xu-szary); border: 1px solid var(--xu-linia); border-radius: 50%; cursor: pointer; }
.xu-k-usun:hover { color: var(--xu-serce); border-color: var(--xu-serce); }
.xu-k-usun svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.xu-pusto { max-width: 560px; margin: 20px auto; padding: 36px 24px; text-align: center; background: var(--xu-tlo); border: 1px solid var(--xu-linia); border-radius: 14px; }
.xu-pusto[hidden], .xu-ladowanie[hidden] { display: none; }
.xu-pusto-ikona { width: 46px; height: 46px; margin: 0 auto 10px; color: var(--xu-serce); }
.xu-pusto-tytul { font-size: 20px; font-weight: 700; }
.xu-ladowanie { padding: 30px 0; text-align: center; color: var(--xu-szary); }
@media (max-width: 767px) {
	.xu-k { padding: 10px; }
	.xu-k-nazwa { font-size: 14px; }
	.xu-cena { font-size: 16px; }
	.xu-pasek-akcje { width: 100%; }
	.xu-pasek-akcje .xu-przycisk { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
	.xu-serce, .xu-toast, .xu-ikona { transition: none; }
	.xu-puls { animation: none; }
}
