/* ==========================================================================
   Lubowski – oprawa świąteczna (Dostosuj → Lubowski → Święta i Nowy Rok, inc/xmas.php)
   Ładowane tylko w okresie świątecznym. Głęboka zieleń, szampańskie złoto, ciepłe lampki.
   ========================================================================== */

:root {
	--lb-x-pine: #0E2A20;
	--lb-x-pine-2: #17402F;
	--lb-x-gold: #C9A66B;
	--lb-x-gold-2: #E8D3A2;
	--lb-x-star: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

@keyframes lb-x-twinkle {
	0%, 100% { opacity: .45; transform: scale(.62); }
	50% { opacity: 1; transform: scale(1); }
}
@keyframes lb-x-glow {
	0%, 100% { opacity: 1; }
	45% { opacity: .55; }
	55% { opacity: .55; }
}
@keyframes lb-x-glint {
	0%, 80%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
	86% { opacity: 1; transform: scale(1) rotate(45deg); }
	93% { opacity: 0; transform: scale(.2) rotate(90deg); }
}
@keyframes lb-x-sheen {
	from { background-position: 200% 0; }
	to { background-position: -200% 0; }
}

/* --- Pasek u góry ---------------------------------------------------------- */

.lb-xmas .lb-topwrap {
	background: radial-gradient(120% 260% at 50% 0%, var(--lb-x-pine-2) 0%, var(--lb-x-pine) 55%, #0A1F17 100%);
}
.lb-xmas .lb-topwrap::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent 6%, rgba(201, 166, 107, .85) 50%, transparent 94%);
	pointer-events: none;
}
.lb-xmas .lb-topbar { background: transparent; }
.lb-xmas .lb-topbar--promo > .ph,
.lb-xmas .lb-topbar--promo .lb-code { color: var(--lb-x-gold-2); }
.lb-xmas-spark {
	display: inline-block;
	width: 10px;
	height: 10px;
	margin: 0 14px;
	vertical-align: 0;
	background: var(--lb-x-gold-2);
	clip-path: var(--lb-x-star);
	animation: lb-x-twinkle 3.2s ease-in-out infinite;
}
.lb-xmas-spark:last-child { animation-delay: -1.6s; }
.lb-xmas-count {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: -3px 0 -3px 12px;
	padding: 3px 12px 3px 10px;
	border: 1px solid rgba(201, 166, 107, .6);
	border-radius: 999px;
	color: #F4E6C4;
	white-space: nowrap;
}
.lb-xmas-count .ph { font-size: 14px; color: var(--lb-x-gold-2); }
.lb-xmas-count strong { font-weight: 700; color: #fff; }
@media (max-width: 700px) {
	.lb-xmas-spark { display: none; }
	.lb-xmas-base { font-size: 0; }
	.lb-xmas-base .lb-topbar__fs { font-size: 11px; }
	.lb-xmas-count { margin: 6px 0 0; white-space: normal; text-align: left; }
}

/* --- Girlanda lampek pod nagłówkiem ------------------------------------------ */

.lb-garland {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 34px;
	margin-top: -1px;
	display: flex;
	overflow: hidden;
	pointer-events: none;
	z-index: 1;
}
.lb-garland i {
	position: relative;
	flex: 0 0 96px;
	height: 34px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 20'%3E%3Cpath d='M0 1Q48 23 96 1' fill='none' stroke='%23786C5C' stroke-opacity='.6' stroke-width='1.1'/%3E%3C/svg%3E") no-repeat 0 0 / 96px 20px;
}
/* Oprawka i żarówka w najniższym punkcie przewodu. */
.lb-garland i::before {
	content: "";
	position: absolute;
	left: 46.5px;
	top: 11px;
	width: 3px;
	height: 5px;
	border-radius: 1px;
	background: #5F5648;
}
.lb-garland i::after {
	content: "";
	position: absolute;
	left: 44.5px;
	top: 15px;
	width: 7px;
	height: 11px;
	border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
	background: radial-gradient(circle at 50% 36%, #FFFFFF 0, #FFEDC2 38%, #F0BE62 100%);
	box-shadow: 0 0 6px 2px rgba(255, 210, 130, .8), 0 0 20px 7px rgba(255, 190, 95, .32);
	animation: lb-x-glow 4.6s ease-in-out infinite;
}
.lb-garland i:nth-child(3n + 2)::after { background: radial-gradient(circle at 50% 36%, #FFFFFF 0, #FFF6E0 45%, #F3D9A6 100%); animation-duration: 5.4s; animation-delay: -1.2s; }
.lb-garland i:nth-child(3n)::after { animation-duration: 3.9s; animation-delay: -2.5s; }
.lb-garland i:nth-child(4n)::after { animation-delay: -3.4s; }
/* Otwarte menu na telefonie – bez girlandy na dole listy. */
.lb-header:has(.lb-drawer:not([hidden])) .lb-garland { display: none; }
@media (max-width: 700px) {
	.lb-garland { height: 28px; }
	.lb-garland i { flex-basis: 68px; height: 28px; background-size: 68px 15px; }
	.lb-garland i::before { left: 32.5px; top: 8px; }
	.lb-garland i::after { left: 31px; top: 12px; width: 6px; height: 9px; }
}

/* --- Logo, nadtytuły, przyciski ---------------------------------------------- */

.lb-xmas .lb-logo { position: relative; }
.lb-xmas .lb-logo::after {
	content: "";
	position: absolute;
	top: -4px;
	right: -10px;
	width: 14px;
	height: 14px;
	background: radial-gradient(circle, #fff 0 22%, var(--lb-x-gold-2) 60%);
	clip-path: var(--lb-x-star);
	opacity: 0;
	animation: lb-x-glint 7s ease-in-out 1.2s infinite;
	pointer-events: none;
}

.lb-xmas .lb-kicker::before {
	content: "";
	display: inline-block;
	width: 9px;
	height: 9px;
	margin-right: 10px;
	vertical-align: -.5px;
	background: var(--lb-x-gold);
	clip-path: var(--lb-x-star);
	animation: lb-x-twinkle 4s ease-in-out infinite;
}

/* Złoty połysk przechodzący przez przycisk po najechaniu. */
.lb-xmas .lb-btn,
.lb-xmas div.product form.cart .single_add_to_cart_button,
.lb-xmas .lb-cart-pill {
	background-image: linear-gradient(110deg, transparent 38%, rgba(232, 211, 162, .42) 50%, transparent 62%);
	background-size: 260% 100%;
	background-position: 130% 0;
	background-repeat: no-repeat;
	transition: background-position 900ms var(--lb-ease), background-color 200ms var(--lb-ease), border-color 200ms var(--lb-ease), color 200ms var(--lb-ease);
}
.lb-xmas .lb-btn:hover,
.lb-xmas div.product form.cart .single_add_to_cart_button:hover,
.lb-xmas .lb-cart-pill:hover {
	background-image: linear-gradient(110deg, transparent 38%, rgba(232, 211, 162, .42) 50%, transparent 62%);
	background-position: -30% 0;
}

/* --- Stopka: złota linia i życzenia ------------------------------------------ */

.lb-xmas .lb-footer {
	position: relative;
	box-shadow: inset 0 1px 0 rgba(201, 166, 107, .35);
}
.lb-xmas-wish {
	position: relative;
	z-index: 2;
	max-width: var(--lb-max);
	margin: 0 auto;
	padding: 6px var(--lb-gutter) 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	font-size: 12px;
	line-height: 1.6;
	letter-spacing: .3em;
	text-transform: uppercase;
	text-align: center;
	color: var(--lb-x-gold);
}
.lb-xmas-wish > span:not(.lb-xmas-star) {
	background: linear-gradient(90deg, #B8925A 0%, #B8925A 35%, #F6E7C1 50%, #B8925A 65%, #B8925A 100%);
	background-size: 200% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: lb-x-sheen 7s linear infinite;
}
.lb-xmas-star {
	flex: 0 0 auto;
	width: 10px;
	height: 10px;
	background: var(--lb-x-gold);
	clip-path: var(--lb-x-star);
	animation: lb-x-twinkle 3.6s ease-in-out infinite;
}
.lb-xmas-star:last-child { animation-delay: -1.8s; }
@media (max-width: 600px) {
	.lb-xmas-wish { letter-spacing: .18em; gap: 10px; font-size: 11px; }
}

/* --- Śnieg i złoty pył (assets/js/xmas.js) ------------------------------------ */

.lb-snow {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 1;
}
.lb-snow--fixed { position: fixed; z-index: 30; }

@media (prefers-reduced-motion: reduce) {
	.lb-xmas-spark,
	.lb-xmas-star,
	.lb-xmas .lb-kicker::before,
	.lb-garland i::after,
	.lb-xmas-wish > span:not(.lb-xmas-star) { animation: none; }
	.lb-xmas .lb-logo::after { display: none; }
	.lb-xmas-wish > span:not(.lb-xmas-star) { background: none; color: var(--lb-x-gold); }
}
