/* Header 2026 - wyglad k1 "Fioletowy pasek" (kuplike, 2026-11-03).
   Makieta: https://claude.ai/artifact/2dFx3eaorJPpfnzVLPaFkX (plansza referencyjna, generator proces-makiet/scripts/header-kup/gen_r2.py).
   Markup: views/header/layout-k1.php + hooks/header.php (te same klasy .plh__* co polskielajki), JS: header.js (data-plh-opts).
   Ladowany zamiast header.css (profil 'css'). Pasek 76 / 60 px stalej wysokosci, fixed, spacer w HTML (bez CLS).
   Kolor marki z "Kolor glowny" (--brand), zapas #721AFF. Resety: globalne style motywu dla button/a/ul/li (style.css). */
.plh,
.plh-drawer,
.plh-mask {
	--plh-brand: var(--brand, #721AFF);
	--plh-ink: #240850;
	--plh-ink2: #5C4C75;
	--plh-tint: #F3ECFF;
	--plh-hov: #F7F3FF;
	--plh-press: #EFE6FF;
	--plh-line: #ECE6F7;
	--plh-badge: #FFD84D;
	--plh-font: 'Outfit', Arial, Helvetica, sans-serif; /* Arial ~ szerokosc Outfit (pomiar 03.11: 1,00) - mniejszy skok przy podmianie fontu */
}
html {
	scroll-padding-top: calc(var(--plh-top, 0px) + 76px);
}

/* ---------- pasek ---------- */
.plh {
	position: fixed;
	top: var(--plh-top, var(--wp-admin--admin-bar--height, 0px));
	left: 0;
	right: 0;
	z-index: 990;
	height: 76px;
	background: var(--plh-brand);
	color: #fff;
	font-family: var(--plh-font);
	transition: box-shadow .2s ease;
}
.plh.is-scrolled {
	box-shadow: 0 6px 18px rgba(36, 8, 80, .28);
}
.plh-spacer {
	height: 76px;
}
.plh .plh__bar {
	height: 100%;
}
.plh .plh__inner {
	box-sizing: border-box;
	max-width: 1200px;
	height: 100%;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	gap: 24px;
	position: relative;
}
.plh ul,
.plh-drawer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.plh li,
.plh-drawer li {
	padding: 0;
	margin: 0;
	list-style: none;
}
.plh a,
.plh button,
.plh-drawer a,
.plh-drawer button {
	transition: background-color .15s ease, color .15s ease, transform .08s ease;
}

/* logo */
.plh .plh__logo {
	display: block;
	flex: none;
	line-height: 0;
	color: #fff;
	text-decoration: none;
	border-radius: 6px;
}
.plh .plh__logo-img {
	display: block;
	width: 160px;
	height: 33px;
	max-width: none;
}
.plh .plh__logo-txt {
	font: 600 22px/33px var(--plh-font);
}
.plh .plh__logo:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 4px;
}

/* nawigacja desktop */
.plh .plh__nav {
	margin-left: auto;
}
.plh .plh__menu {
	display: flex;
	align-items: center;
}
.plh .plh__item {
	position: relative;
}
.plh .plh__link {
	box-sizing: border-box;
	height: 44px;
	padding: 0 14px;
	margin: 0;
	border: 0;
	border-radius: 10px;
	background: none;
	color: #fff;
	font: 500 15px/1 var(--plh-font) !important;
	letter-spacing: 0;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	position: relative;
	box-shadow: none;
}
.plh .plh__link:hover,
.plh .plh__link:focus,
.plh .plh__link:active {
	color: #fff;
	text-decoration: none;
}
.plh .plh__chev {
	font-size: 11px;
	line-height: 1;
	transition: transform .2s ease;
}
.plh .plh__link[aria-expanded="true"] .plh__chev {
	transform: rotate(180deg);
}
.plh .plh__link[aria-expanded="true"],
.plh .plh__item.is-open > .plh__link {
	background: rgba(255, 255, 255, .16);
}
@media (hover: hover) and (pointer: fine) {
	.plh .plh__link:hover,
	.plh .plh__item.has-dd:hover > .plh__link {
		background: rgba(255, 255, 255, .16);
	}
	.plh .plh__item.has-dd:hover > .plh__link .plh__chev {
		transform: rotate(180deg);
	}
}
.plh .plh__link:active {
	background: rgba(255, 255, 255, .24);
}
.plh .plh__link:focus {
	outline: 0;
}
.plh .plh__link:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}
/* sekcja biezaca: zolta kreska pod tekstem */
.plh .plh__item.is-active > .plh__link::after {
	content: '';
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 6px;
	height: 2px;
	border-radius: 2px;
	background: var(--plh-badge);
}
.plh .plh__item.is-active > button.plh__link::after {
	right: 32px;
}
.plh .plh__sep {
	width: 1px;
	height: 20px;
	margin: 0 10px;
	background: rgba(255, 255, 255, .3);
}

/* dropdown: karta 8 px pod paskiem, dziobek nad srodkiem przycisku */
.plh .plh__dd {
	--plh-dx: 0px;
	position: absolute;
	top: calc(100% + 24px);
	left: 50%;
	transform: translateX(calc(-50% + var(--plh-dx)));
	z-index: 2;
	box-sizing: border-box;
	min-width: 360px;
	width: max-content;
	max-width: 440px;
	padding: 8px;
	background: #fff;
	color: var(--plh-ink);
	border-radius: 14px;
	box-shadow: 0 18px 40px rgba(36, 8, 80, .24);
	visibility: hidden;
	opacity: 0;
	/* zamykanie z opoznieniem 150 ms (kursor w szczelinie nie gubi karty) */
	transition: opacity .12s ease .15s, visibility 0s linear .27s;
}
.plh .plh__dd::before {
	content: '';
	position: absolute;
	top: -6px;
	left: calc(50% - 7px - var(--plh-dx));
	width: 14px;
	height: 14px;
	background: #fff;
	border-radius: 2px;
	transform: rotate(45deg);
}
/* most dla kursora miedzy przyciskiem a karta */
.plh .plh__dd::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: -24px;
	height: 24px;
}
.plh .plh__item.is-open > .plh__dd,
.plh:not(.is-js) .plh__item.has-dd:focus-within > .plh__dd {
	visibility: visible;
	opacity: 1;
	transition: opacity .12s ease, visibility 0s;
}
@media (hover: hover) and (pointer: fine) {
	.plh .plh__item.has-dd:hover > .plh__dd {
		visibility: visible;
		opacity: 1;
		transition: opacity .12s ease, visibility 0s;
	}
}
.plh .plh__dd ul {
	position: relative;
	z-index: 1;
}
.plh .plh__dd-link {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	padding: 0 12px;
	border-radius: 10px;
	color: var(--plh-ink);
	text-decoration: none;
	position: relative;
}
.plh .plh__dd-link:hover,
.plh .plh__dd-link:focus,
.plh .plh__dd-link:active {
	color: var(--plh-ink);
	text-decoration: none;
}
.plh .plh-ico {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--plh-tint);
	color: var(--plh-brand);
	display: grid;
	place-items: center;
	flex: none;
	font-size: 16px;
	line-height: 1;
}
.plh .plh-ico i {
	font-size: 16px;
	width: 1.25em;
	text-align: center;
}
.plh .plh-name {
	flex: 1;
	white-space: nowrap;
	font: 500 15px/1.25 var(--plh-font) !important;
	letter-spacing: 0;
}
.plh .plh-price {
	margin-left: 24px;
	white-space: nowrap;
	color: var(--plh-ink2);
	font: 400 14px/1.25 var(--plh-font) !important;
	font-variant-numeric: tabular-nums;
}
@media (hover: hover) and (pointer: fine) {
	.plh .plh__dd-link:hover {
		background: var(--plh-hov);
	}
	.plh .plh__dd-link:hover .plh-name {
		color: var(--plh-brand);
	}
}
.plh .plh__dd-link:active {
	background: var(--plh-press);
}
.plh .plh__dd-link:focus {
	outline: 0;
}
.plh .plh__dd-link:focus-visible {
	outline: 2px solid var(--plh-brand);
	outline-offset: -2px;
}
.plh .plh__dd-link.is-current {
	background: var(--plh-tint);
}
.plh .plh__dd-link.is-current .plh-name {
	font-weight: 600 !important;
}
.plh .plh__dd-link.is-current .plh-ico {
	background: #fff;
}
.plh .plh__dd-all .plh__dd-link {
	border-top: 1px solid var(--plh-line);
}

/* konto, koszyk, burger: kola 44 */
.plh .plh__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: none;
}
.plh .plh__btn {
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	min-width: 44px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	display: inline-grid;
	place-items: center;
	position: relative;
	cursor: pointer;
	flex: none;
	font-size: 20px;
	line-height: 1;
	text-decoration: none;
	box-shadow: none;
	letter-spacing: 0;
}
.plh .plh__btn:hover,
.plh .plh__btn:focus,
.plh .plh__btn:active {
	color: #fff;
	text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
	.plh .plh__btn:hover {
		background: rgba(255, 255, 255, .24);
	}
}
.plh .plh__btn:focus {
	outline: 0;
}
.plh .plh__btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}
.plh .plh__btn:active {
	background: rgba(255, 255, 255, .24);
	transform: scale(.96);
}
.plh .plh__btn i {
	font-size: 20px;
	line-height: 1;
}
.plh .plh__cart-wrap {
	display: flex;
	position: relative;
}
.plh .plh__count {
	position: absolute;
	top: -3px;
	right: -3px;
	box-sizing: border-box;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 10px;
	background: var(--plh-badge);
	color: var(--plh-ink);
	font: 600 12px/20px var(--plh-font) !important;
	text-align: center;
	box-shadow: 0 0 0 2px var(--plh-brand);
	font-variant-numeric: tabular-nums;
}
.plh .plh__count.is-bump {
	animation: plh-k1-bump .24s ease;
}
@keyframes plh-k1-bump {
	50% { transform: scale(1.2); }
}
.plh .plh__btn.is-busy i {
	opacity: 0;
}
.plh .plh__btn.is-busy::after {
	content: '';
	position: absolute;
	top: 13px;
	left: 13px;
	width: 18px;
	height: 18px;
	box-sizing: border-box;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .35);
	border-top-color: #fff;
	animation: plh-k1-spin .8s linear infinite;
}
@keyframes plh-k1-spin {
	to { transform: rotate(360deg); }
}
.plh .plh__burger {
	display: none;
}
.plh .plh__burger-box {
	position: relative;
	display: block;
	width: 18px;
	height: 14px;
}
.plh .plh__burger-box span {
	position: absolute;
	left: 0;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: #fff;
	transition: transform .2s ease, opacity .15s ease, top .2s ease;
}
.plh .plh__burger-box span:nth-child(1) { top: 0; }
.plh .plh__burger-box span:nth-child(2) { top: 6px; }
.plh .plh__burger-box span:nth-child(3) { top: 12px; }
.plh .plh__burger[aria-expanded="true"] .plh__burger-box span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.plh .plh__burger[aria-expanded="true"] .plh__burger-box span:nth-child(2) { opacity: 0; }
.plh .plh__burger[aria-expanded="true"] .plh__burger-box span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* szuflada (mobile) */
.plh-mask,
.plh-drawer {
	display: none;
}

/* ---------- kompakt 1024-1279 ---------- */
@media (min-width: 1024px) and (max-width: 1279px) {
	.plh .plh__inner {
		max-width: none;
		padding: 0 20px;
		gap: 16px;
	}
	.plh .plh__logo-img {
		width: 140px;
		height: 29px;
	}
	.plh .plh__link {
		padding: 0 10px;
		font-size: 14px !important;
	}
	.plh .plh__item.is-active > .plh__link::after {
		left: 10px;
		right: 10px;
	}
	.plh .plh__item.is-active > button.plh__link::after {
		right: 28px;
	}
	.plh .plh__actions {
		margin-left: 0;
	}
}

/* ---------- mobile < 1024 ---------- */
@media (max-width: 1023px) {
	html {
		scroll-padding-top: calc(var(--plh-top, 0px) + 60px);
	}
	.plh {
		height: 60px;
	}
	.plh-spacer {
		height: 60px;
	}
	.plh .plh__inner {
		max-width: none;
		padding: 0 8px;
		gap: 0;
		justify-content: space-between;
	}
	.plh .plh__nav {
		display: none;
	}
	.plh .plh__burger {
		display: inline-grid;
	}
	.plh .plh__logo {
		position: absolute;
		left: 50%;
		top: 17.5px;
		transform: translateX(-50%);
	}
	.plh .plh__logo-img {
		width: 122px;
		height: 25px;
	}
	.plh .plh__logo-txt {
		font-size: 18px;
		line-height: 25px;
	}
	.plh .plh__actions {
		gap: 6px;
	}
	body.plh-menu-open .plh {
		z-index: 996;
	}
	.plh-mask {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		top: var(--plh-bottom, 60px);
		z-index: 994;
		background: rgba(36, 8, 80, .45);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		touch-action: none;
		transition: opacity .2s ease, visibility 0s linear .2s;
	}
	body.plh-menu-open .plh-mask {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transition: opacity .2s ease, visibility 0s;
	}
	.plh-drawer {
		display: block;
		position: fixed;
		left: 0;
		top: var(--plh-bottom, 60px);
		bottom: 0;
		z-index: 995;
		box-sizing: border-box;
		width: 86%;
		max-width: 360px;
		background: #fff;
		color: var(--plh-ink);
		font-family: var(--plh-font);
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
		touch-action: pan-y;
		box-shadow: 12px 0 30px rgba(36, 8, 80, .2);
		transform: translateX(-100%);
		visibility: hidden;
		transition: transform .26s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .26s;
	}
	body.plh-menu-open .plh-drawer {
		transform: none;
		visibility: visible;
		transition: transform .26s cubic-bezier(.2, .8, .2, 1), visibility 0s;
	}
	.plh-drawer .plh-drawer__item {
		border-bottom: 1px solid var(--plh-line);
	}
	.plh-drawer .plh-drawer__toggle {
		box-sizing: border-box;
		width: 100%;
		height: 56px;
		margin: 0;
		padding: 0 20px;
		border: 0;
		border-radius: 0;
		background: none;
		box-shadow: none;
		display: flex;
		align-items: center;
		justify-content: space-between;
		color: var(--plh-ink);
		font: 500 17px/1.2 var(--plh-font) !important;
		letter-spacing: 0;
		text-align: left;
		text-decoration: none;
		cursor: pointer;
	}
	.plh-drawer .plh-drawer__toggle:hover,
	.plh-drawer .plh-drawer__toggle:focus,
	.plh-drawer .plh-drawer__toggle:active {
		color: var(--plh-ink);
		text-decoration: none;
	}
	.plh-drawer .plh-drawer__toggle[aria-expanded="true"] {
		color: var(--plh-brand);
	}
	.plh-drawer .plh-drawer__toggle i {
		font-size: 12px;
		transition: transform .2s ease;
	}
	.plh-drawer .plh-drawer__toggle[aria-expanded="true"] i {
		transform: rotate(180deg);
	}
	@media (hover: hover) and (pointer: fine) {
		.plh-drawer .plh-drawer__toggle:hover {
			background: var(--plh-hov);
		}
	}
	.plh-drawer .plh-drawer__toggle:focus {
		outline: 0;
	}
	.plh-drawer .plh-drawer__toggle:focus-visible {
		outline: 2px solid var(--plh-brand);
		outline-offset: -4px;
		border-radius: 8px;
	}
	.plh-drawer .plh-drawer__sub {
		padding: 0 10px 10px;
	}
	.plh-drawer .plh-drawer__sub[hidden] {
		display: none !important;
	}
	.plh-drawer .plh-drawer__link {
		box-sizing: border-box;
		display: flex;
		align-items: center;
		gap: 10px;
		min-height: 48px;
		padding: 0 10px;
		border-radius: 10px;
		color: var(--plh-ink);
		text-decoration: none;
		font: 400 15px/1.25 var(--plh-font) !important;
	}
	.plh-drawer .plh-drawer__link:hover,
	.plh-drawer .plh-drawer__link:focus,
	.plh-drawer .plh-drawer__link:active {
		color: var(--plh-ink);
		text-decoration: none;
	}
	.plh-drawer .plh-ico {
		width: 30px;
		height: 30px;
		border-radius: 8px;
		background: var(--plh-tint);
		color: var(--plh-brand);
		display: grid;
		place-items: center;
		flex: none;
		line-height: 1;
	}
	.plh-drawer .plh-ico i {
		font-size: 14px;
		width: 1.25em;
		text-align: center;
	}
	.plh-drawer .plh-name {
		flex: 1;
		min-width: 0;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		font: inherit !important;
		line-height: 1.45 !important;
		padding-bottom: 1px;
	}
	.plh-drawer .plh-price {
		white-space: nowrap;
		color: var(--plh-ink2);
		font: 400 13px/1.25 var(--plh-font) !important;
		font-variant-numeric: tabular-nums;
	}
	.plh-drawer .plh-drawer__link.is-current {
		background: var(--plh-tint);
		font-weight: 500 !important;
	}
	.plh-drawer .plh-drawer__link.is-current .plh-ico {
		background: #fff;
	}
	.plh-drawer .plh-drawer__link:focus {
		outline: 0;
	}
	.plh-drawer .plh-drawer__link:focus-visible {
		outline: 2px solid var(--plh-brand);
		outline-offset: -2px;
	}
	.plh-drawer .plh-drawer__link:active {
		background: var(--plh-press);
	}
	.plh-drawer .plh__dd-all .plh-drawer__link {
		border-top: 1px solid var(--plh-line);
		border-radius: 0;
	}
}

/* screen-reader-text (na wypadek braku w motywie serwisu) */
.plh .screen-reader-text,
.plh-drawer .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.plh,
	.plh *,
	.plh-drawer,
	.plh-drawer *,
	.plh-mask {
		transition: none !important;
	}
	.plh .plh__count.is-bump {
		animation: none;
	}
	.plh .plh__btn.is-busy::after {
		animation-duration: 1.5s;
	}
	.plh .plh__chev,
	.plh-drawer .plh-drawer__toggle i {
		transform: none !important;
	}
}

/* ---------- pasek "Wybierz pakiet" na desktopie (widget 2026 .vw-dbar) tuz pod headerem k1 (76 px, nie 84 px jak pl) ---------- */
@media (min-width: 1024px) {
	body form#product_widget .vw-dbar {
		top: calc(var(--plh-top, 0px) + 76px);
	}
}
