/* ==========================================================================
   WooCommerce Ulubione – frontend
   ========================================================================== */

:root {
	--wu-primary: #8c2d52;
	--wu-primary-dark: #6f2342;
	--wu-header-bg: #e7d6d2;
	--wu-card-bg: #ffffff;
	--wu-text: #2c2c2c;
	--wu-muted: #6b6b6b;
	--wu-border: #e6e6e6;
	--wu-radius: 14px;
	--wu-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
}

/* ---------------------------- Przyciski serca ---------------------------- */

.wu-fav-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 0;
	cursor: pointer;
	font-family: Barlow;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	color: inherit;
	transition: color .18s ease;
}

.wu-fav-btn:hover {
	color: var(--wu-primary);
}

.wu-fav-btn .wu-heart {
	display: inline-flex;
}

.wu-fav-btn .wu-heart svg {
	width: 26px;
	height: 26px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linejoin: round;
	stroke-linecap: round;
	transition: fill .18s ease, transform .18s ease, stroke .18s ease;
}

.wu-fav-btn.is-active .wu-heart svg {
	fill: var(--wu-primary);
	stroke: var(--wu-primary);
}

.wu-fav-btn.is-active {
	color: var(--wu-primary);
}

.wu-fav-btn.wu-busy {
	opacity: .6;
	pointer-events: none;
}

.wu-fav-btn .wu-pop {
	animation: wu-pop .35s ease;
}

@keyframes wu-pop {
	0%   { transform: scale(1); }
	40%  { transform: scale(1.35); }
	100% { transform: scale(1); }
}

/* Wariant kompaktowy (sama ikona) – przydatny na pętli produktów */
.wu-fav-btn.wu-icon-only {
	padding: 10px;
	border-radius: 50%;
}

/* Licznik */
.wu-count-badge {
	display: inline-block;
	min-width: 20px;
	padding: 0 6px;
	background: var(--wu-primary);
	color: #fff;
	border-radius: 999px;
	font-size: 12px;
	text-align: center;
	line-height: 20px;
}

/* Widget licznika (ikona + opcjonalny tekst + plakietka) */
.wu-count {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: inherit;
	position: relative;
	line-height: 1;
}

.wu-count-icon svg {
	display: block;
	width: 24px;
	height: 24px;
	fill: none;
	stroke: var(--wu-primary);
	stroke-width: 1.8;
	transition: fill .18s ease;
}

.wu-count:hover .wu-count-icon svg { fill: var(--wu-primary); }

.wu-count-text { font-size: 14px; }

/* Plakietka nałożona na ikonę (styl „koszyka”) */
.wu-count .wu-count-badge {
	position: absolute;
	top: -8px;
	left: 14px;
	min-width: 18px;
	line-height: 18px;
	font-size: 11px;
}

/* Wariant w jednej linii (gdy jest etykieta) – plakietka po prawej */
.wu-count:has(.wu-count-text) .wu-count-badge {
	position: static;
	top: auto;
	left: auto;
}

.wu-count-badge.wu-hide-zero { display: none; }

/* ------------------------------ Strona ----------------------------------- */

.wu-page {
	--wu-content-max: 1600px;
	--wu-content-pad: 20px;
	max-width: none;
	margin: 0;
	color: var(--wu-text);
}

/* Kontener treści (kolekcje + produkty) – do 1600px z paddingiem 20px */
.wu-page-content {
	max-width: var(--wu-content-max);
	margin: 0 auto;
	padding: 0 var(--wu-content-pad);
	box-sizing: border-box;
}

/* Nagłówek na pełną szerokość okna (full-bleed – wyrwanie z kontenera motywu) */
.wu-page-header {
	background: var(--wu-header-bg);
	text-align: center;
	padding: 42px 20px 48px;
	margin: 0 0 36px;
	position: relative;
	left: 50%;
	right: 50%;
	width: 100vw;
	margin-left: -50vw;
	margin-right: -50vw;
	box-sizing: border-box;
}

.wu-page-title {
	font-family: Georgia, "Times New Roman", serif;
	letter-spacing: .22em;
	font-weight: 500;
	font-size: clamp(28px, 5vw, 44px);
	margin: 0 0 14px;
	color: #1f1f1f;
}

.wu-page-sub {
	max-width: 640px;
	margin: 0 auto 22px;
	color: #4a4a4a;
	font-size: 15px;
}

/* Udostępnianie */
.wu-share-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #fff;
	border: 1px solid #cfc2bf;
	border-radius: 999px;
	padding: 14px 26px;
	font-size: 14px;
	cursor: pointer;
	color: var(--wu-text);
	transition: all .18s ease;
}

.wu-share-btn:hover { box-shadow: var(--wu-shadow); }
.wu-share-btn svg { fill: var(--wu-text); }

.wu-share-result {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-top: 16px;
	flex-wrap: wrap;
}

.wu-share-url {
	min-width: 280px;
	max-width: 420px;
	padding: 10px 14px;
	border: 1px solid #cfc2bf;
	border-radius: 8px;
	font-size: 13px;
	background: #fff;
}

.wu-share-copy {
	background: var(--wu-primary);
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 10px 18px;
	cursor: pointer;
}

.wu-share-copy:hover { background: var(--wu-primary-dark); }

/* Sekcje */
.wu-section { margin-bottom: 44px; }

.wu-section-title {
	font-family: Georgia, "Times New Roman", serif;
	text-align: center;
	font-size: clamp(22px, 3.4vw, 32px);
	font-weight: 500;
	margin: 0 0 24px;
	color: #1f1f1f;
}

/* Siatki */
.wu-grid {
	display: grid;
	gap: 22px;
}

.wu-grid-collections {
	grid-template-columns: repeat(3, 1fr);
}

.wu-grid-products {
	grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
	.wu-grid-products { grid-template-columns: repeat(2, 1fr); }
	.wu-grid-collections { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
	.wu-grid-products { grid-template-columns: repeat(2, 1fr); }
	.wu-grid-collections { grid-template-columns: 1fr; }
}

/* Karty */
.wu-card {
	position: relative;
	background: var(--wu-card-bg);
	border-radius: var(--wu-radius);
	overflow: hidden;
}

.wu-card-thumb {
	display: block;
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: var(--wu-radius);
	background: #f3efee;
}

.wu-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s ease;
}

.wu-card:hover .wu-card-thumb img { transform: scale(1.04); }

/* Serce na karcie (badge) */
.wu-card-remove {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
	background: #fff;
	border: 0;
	border-radius: 50%;
	width: 42px;
	height: 42px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 3px 10px rgba(0, 0, 0, .15);
	cursor: pointer;
}

.wu-card-remove .wu-heart svg { fill: var(--wu-primary); stroke: var(--wu-primary); stroke-width: 1.5; }
.wu-card-remove:hover { transform: translateY(-1px); }

.wu-folder-badge {
	position: absolute;
	left: 10px;
	bottom: 10px;
	background: rgba(0, 0, 0, .6);
	color: #fff;
	font-size: 12px;
	padding: 4px 10px;
	border-radius: 999px;
}

.wu-card-body { padding: 12px 4px 4px; }

.wu-card-price {
	margin-bottom: 4px;
}

.wu-card-price .woocommerce-Price-amount {
	font-family: 'Barlow';
	font-size: 27px;
	font-weight: 400;
	color: #000;
}

.wu-card-price del .woocommerce-Price-amount { color: var(--wu-muted); font-size: 16px; }
.wu-card-price del { color: var(--wu-muted); }
.wu-card-price ins { text-decoration: none; }

.wu-card-title {
	display: block;
	font-family: 'Barlow Condensed';
	font-size: 21px;
	font-weight: 500;
	color: #666;
	line-height: 1.35;
	text-decoration: none;
}

.wu-card-title:hover { color: var(--wu-primary); }

.wu-card-cart {
	display: inline-block;
	margin-top: 10px;
	font-size: 13px;
}

/* Animacja usuwania */
.wu-card.wu-removing {
	opacity: 0;
	transform: scale(.92);
	transition: all .25s ease;
}

/* Pusta lista */
.wu-empty {
	text-align: center;
	padding: 40px 20px;
	color: var(--wu-muted);
}

/* Toast */
.wu-toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	transform: translateX(-50%) translateY(20px);
	background: #1f1f1f;
	color: #fff;
	padding: 12px 20px;
	border-radius: 999px;
	font-size: 14px;
	z-index: 99999;
	opacity: 0;
	pointer-events: none;
	transition: all .25s ease;
}

.wu-toast.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

/* ------------------ Blok kolekcji (tytuł + karuzela + przycisk) ---------- */

.wu-kolekcja-blok {
	margin: 0;
}

.wu-kolekcja-tytul {
	font-family: Cormorant;
	font-size: 36px;
	font-weight: 500;
	line-height: 1;
	color: #000000;
	margin: 0 0 30px;
}

.wu-kolekcja-akcja {
	text-align: center;
	margin-top: 30px;
}

.wu-kolekcja-btn {
	display: inline-block;
	font-family: Cormorant;
	font-size: 19px;
	padding-top: 10px;
	padding-bottom: 10px;
	padding-left: 30px;
	padding-right: 30px;
	border: 1px solid #000;
	background-color: #ffffff;
	color: #000000;
	border-radius: 50px;
	transition: all ease 0.2s;
	text-decoration: none;
	line-height: 1.6;
}

.wu-kolekcja-btn:hover,
.wu-kolekcja-btn:focus {
	background-color: #000000;
	color: #ffffff;
}
