/* Chillera — tylko Baloo 2; kolory: czarny, biały, szary #626262 (+ żółte „brzydkie zaznaczenie”). */

@font-face {
	font-family: "Baloo 2";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url(fonts/baloo2-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Baloo 2";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url(fonts/baloo2-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--czarny: #000;
	--bialy: #fff;
	--szary: #626262;
	--szary-jasny: #ededed; /* tło zdjęć i pól — rozjaśniony #626262 */
	--zolty: #ffe500;
	--ramka: 2px solid var(--czarny);
	--cien: 6px 6px 0 var(--czarny);
	--r: 22px;
	--bok: clamp(16px, 4vw, 48px);
	--max: 1200px;
	--sprezyna: cubic-bezier(.2, .9, .25, 1.15);
	--wyjscie: cubic-bezier(.23, 1, .32, 1);
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
html:has(dialog.ch-opis[open]) { overflow: hidden; }
.ch-nw { white-space: nowrap; }
body {
	margin: 0;
	background: var(--bialy);
	color: var(--czarny);
	font: 400 1.0625rem/1.55 "Baloo 2", system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--czarny); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--zolty); color: var(--czarny); }

.ch-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--bialy); padding: 8px 14px; border: var(--ramka); border-radius: 999px; }
.ch-skip:focus { left: 8px; }

/* ---------- Pasek ---------- */
.ch-bar {
	position: sticky; top: 0; z-index: 50;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 10px var(--bok) 8px;
	background: var(--czarny); color: var(--bialy);
}
.ch-logo { font-weight: 800; font-size: 1.6rem; line-height: 1; letter-spacing: -.02em; text-decoration: none; }
.ch-koszyk {
	display: inline-flex; align-items: center; gap: 7px;
	font-weight: 700; font-size: 1.05rem; text-decoration: none; white-space: nowrap;
	padding: 6px 16px 4px 13px; border: 2px solid var(--bialy); border-radius: 999px;
	font-variant-numeric: tabular-nums;
	-webkit-tap-highlight-color: transparent;
	transition: background .2s, color .2s, transform .12s var(--wyjscie);
}
.ch-koszyk__ikona { flex: none; margin-top: -2px; }
.ch-koszyk:hover { background: var(--bialy); color: var(--czarny); }
.ch-koszyk:active { transform: scale(.96); }
.ch-koszyk.ch-bump { animation: ch-bump .5s var(--sprezyna); }
@keyframes ch-bump { 0% { transform: scale(1); } 35% { transform: scale(1.14); } 100% { transform: scale(1); } }

/* ---------- Typografia ---------- */
.ch-h1 {
	margin: 0;
	font-weight: 800;
	font-size: clamp(2.6rem, 9vw, 7rem);
	line-height: .92;
	letter-spacing: -.035em;
	text-wrap: balance;
}
.ch-h2 { margin: 0 0 .6em; font-weight: 800; font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1; letter-spacing: -.025em; }

/* Żółte „brzydkie zaznaczenie” markerem */
.ch-mark {
	color: inherit;
	background: linear-gradient(100deg, transparent .5%, var(--zolty) 2.5%, rgba(255, 229, 0, .82) 48%, var(--zolty) 94%, transparent 99%) 0 72% / 100% 68% no-repeat;
	padding: 0 .18em;
	margin: 0 -.06em;
	border-radius: .7em .25em .8em .3em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

/* ---------- Przyciski ---------- */
.ch-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	min-height: 48px; padding: 10px 26px 8px;
	background: var(--czarny); color: var(--bialy);
	border: var(--ramka); border-radius: 999px;
	font-weight: 700; font-size: 1.05rem; line-height: 1.1; text-decoration: none; text-align: center;
	cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none;
	transition: transform .14s var(--wyjscie), box-shadow .14s var(--wyjscie), background .2s, color .2s;
	box-shadow: 0 0 0 var(--czarny);
}
@media (hover: hover) {
	.ch-btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--szary); }
}
.ch-btn:active { transform: translate(0, 0) scale(.97); box-shadow: 0 0 0 var(--czarny); transition-duration: .08s; }
.ch-btn--jasny { background: var(--bialy); color: var(--czarny); }
.ch-btn--maly { min-height: 40px; padding: 7px 18px 5px; font-size: .95rem; }
.ch-btn--duzy { min-height: 60px; padding: 14px 36px 12px; font-size: 1.35rem; font-weight: 800; }
.ch-btn--off { background: var(--szary-jasny); color: var(--szary); border-color: var(--szary-jasny); cursor: not-allowed; }
.ch-btn.ch-laduje { pointer-events: none; opacity: .65; }
.ch-btn.ch-ok { background: var(--bialy); color: var(--czarny); animation: ch-ok .45s var(--sprezyna); }
@keyframes ch-ok { 0% { transform: scale(.94); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }

.ch-link {
	background: none; border: 0; padding: 6px 4px; cursor: pointer;
	font-weight: 700; color: var(--szary);
	text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.ch-link:hover { color: var(--czarny); }

/* ---------- Hero + licznik ---------- */
.ch-hero {
	max-width: var(--max); margin: 0 auto;
	padding: clamp(40px, 8vw, 110px) var(--bok) clamp(36px, 6vw, 72px);
	text-align: center;
}
.ch-kropla { position: relative; display: inline-block; }
.ch-kropla::after {
	/* kropla odrywa się od kropki i spada — krótko, żeby nie udawała przecinka */
	content: ""; position: absolute; left: 50%; top: .74em;
	width: .085em; height: .11em; margin-left: -.0425em;
	background: currentColor; border-radius: 50% 50% 50% 50% / 35% 35% 65% 65%;
	transform-origin: 50% 0;
	animation: ch-kap 4.2s 1.6s infinite;
	opacity: 0;
}
@keyframes ch-kap {
	0% { transform: translateY(-.05em) scale(.4, .2); opacity: 0; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
	6% { transform: translateY(0) scale(1, 1); opacity: 1; animation-timing-function: cubic-bezier(.55, 0, .9, .45); }
	17% { transform: translateY(.8em) scale(.75, 1.3); opacity: 0; }
	100% { transform: translateY(.8em); opacity: 0; }
}
.ch-licznik { margin-top: clamp(28px, 5vw, 52px); }
.ch-hero .ch-h1, .ch-licznik__tytul, .ch-licznik__pola, .ch-licznik__placz { animation: ch-wejscie .8s var(--wyjscie) both; }
.ch-licznik__tytul { animation-delay: .12s; }
.ch-licznik__pola { animation-delay: .2s; }
.ch-licznik__placz { animation-delay: .32s; }
@keyframes ch-wejscie { from { opacity: 0; transform: translateY(18px); } }
.ch-licznik__tytul { margin: 0 0 12px; font-weight: 700; font-size: clamp(.95rem, 1.6vw, 1.15rem); letter-spacing: .08em; color: var(--szary); }
.ch-licznik__pola { display: inline-grid; grid-template-columns: repeat(4, minmax(64px, 1fr)); gap: clamp(8px, 1.6vw, 16px); }
.ch-licznik__pole {
	display: grid; justify-items: center;
	padding: 12px 10px 8px; min-width: 64px;
	border: var(--ramka); border-radius: 18px; background: var(--bialy);
	box-shadow: 4px 4px 0 var(--czarny);
}
.ch-licznik__pole b { display: block; font-weight: 800; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ch-licznik__pole { overflow: hidden; }
.ch-licznik__pole b.ch-tik { animation: ch-tik .42s var(--sprezyna); }
@keyframes ch-tik { from { transform: translateY(-.32em); opacity: .15; filter: blur(1.5px); } }
.ch-licznik__pole span { font-size: .85rem; color: var(--szary); font-weight: 600; }
.ch-licznik__placz { margin: 16px 0 0; font-weight: 600; font-size: 1.1rem; color: var(--szary); }

/* ---------- Karty ---------- */
.ch-wybor { max-width: var(--max); margin: 0 auto; padding: 0 var(--bok) clamp(32px, 4vw, 56px); }
.ch-siatka { display: grid; gap: clamp(18px, 2.4vw, 28px); grid-template-columns: 1fr; }
.ch-etykieta {
	grid-column: 1 / -1; margin: 18px 0 -4px;
	font-weight: 800; font-size: 1rem; letter-spacing: .1em; color: var(--szary);
	display: flex; align-items: center; gap: 14px;
}
.ch-etykieta::after { content: ""; flex: 1; height: 2px; background: var(--szary-jasny); }

.ch-karta {
	position: relative;
	display: flex; flex-direction: column;
	background: var(--bialy);
	border: var(--ramka); border-radius: var(--r);
	box-shadow: var(--cien);
	overflow: hidden;
	transition: transform .25s var(--wyjscie), box-shadow .25s var(--wyjscie);
}
@media (hover: hover) {
	.ch-karta:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--czarny); }
}
.ch-karta__foto {
	position: relative; display: block; width: 100%; padding: 0; border: 0; border-bottom: var(--ramka);
	background: var(--szary-jasny); cursor: zoom-in; overflow: hidden; aspect-ratio: 3 / 2;
}
.ch-karta__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--wyjscie); }
.ch-karta__hover {
	position: absolute; inset: 0;
	display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
	padding: 18px 20px; text-align: left;
	background: rgba(0, 0, 0, .8);
	color: var(--bialy); font-weight: 600; font-size: 1rem; line-height: 1.35;
	opacity: 0; transform: translateY(10px);
	transition: opacity .25s var(--wyjscie), transform .3s var(--wyjscie);
}
.ch-karta__hover > span:first-child { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; text-wrap: pretty; }
.ch-karta__czytaj { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.ch-karta__foto:active img { transform: scale(.985); transition-duration: .12s; }
@media (hover: hover) {
	.ch-karta__foto:hover img, .ch-karta__foto:focus-visible img { transform: scale(1.04); }
	.ch-karta__foto:hover .ch-karta__hover, .ch-karta__foto:focus-visible .ch-karta__hover { opacity: 1; transform: none; }
}
.ch-tag {
	position: absolute; top: 14px; left: 14px; z-index: 2;
	padding: 6px 14px 4px; border-radius: 999px;
	background: var(--czarny); color: var(--bialy);
	font-weight: 800; font-size: .85rem; letter-spacing: .06em;
	transform: rotate(-3deg);
	box-shadow: 3px 3px 0 var(--bialy);
}
.ch-karta__info { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
/* Pojedyncze kolekcje: cena w jednym wierszu z „kolekcja”, po prawej (długie nazwy mają całą szerokość) */
.ch-karta__wiersz { display: flex; flex-direction: column; gap: 6px; }
.ch-karta:not(.ch-karta--zestaw) .ch-karta__info { position: relative; }
.ch-karta:not(.ch-karta--zestaw) .ch-karta__wiersz .ch-cena { position: absolute; top: 18px; right: 20px; margin: 0; }
.ch-karta__nazwa { margin: 0; display: flex; flex-direction: column; line-height: .95; }
.ch-karta__nazwa small { font-weight: 600; font-size: 1rem; color: var(--szary); line-height: 1.2; }
.ch-karta__nazwa span { font-weight: 800; font-size: clamp(1.8rem, 3.2vw, 2.4rem); letter-spacing: -.02em; }
.ch-cena { margin: 2px 0 0; font-weight: 800; font-size: 1.6rem; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ch-cena .woocommerce-Price-currencySymbol { font-size: .7em; }
.ch-karta__lead { margin: 4px 0 0; color: var(--szary); font-weight: 600; }
.ch-karta__akcje { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 14px; }

.ch-upsell {
	display: grid; gap: 10px;
	margin: 0 20px 20px; padding: 12px 14px;
	border: 2px dashed var(--szary); border-radius: 16px;
	font-size: .95rem; line-height: 1.35;
}
.ch-upsell p { margin: 0; }
.ch-upsell .ch-btn { justify-self: start; }

@media (min-width: 720px) {
	.ch-siatka { grid-template-columns: repeat(3, 1fr); }
	.ch-karta--zestaw { grid-column: 1 / -1; display: grid; grid-template-columns: 1.35fr 1fr; }
	.ch-karta--zestaw .ch-karta__foto { aspect-ratio: auto; height: 100%; min-height: 340px; border-bottom: 0; border-right: var(--ramka); }
	.ch-karta--zestaw .ch-karta__info { padding: clamp(24px, 3vw, 40px); justify-content: center; }
	.ch-karta--zestaw .ch-karta__nazwa span { font-size: clamp(2.6rem, 5vw, 4rem); }
	.ch-karta--zestaw .ch-cena { font-size: 2.4rem; }
	.ch-karta--zestaw .ch-karta__akcje { margin-top: 18px; }
	.ch-karta--zestaw .ch-btn { min-height: 56px; padding-inline: 34px; font-size: 1.2rem; }
}
@media (min-width: 720px) and (max-width: 1000px) {
	.ch-siatka { grid-template-columns: repeat(2, 1fr); }
	.ch-siatka .ch-karta:last-child { grid-column: 1 / -1; }
}

/* Wejścia sekcji (klasy nadaje JS tylko elementom pod krawędzią ekranu) */
.ch-wejdz { opacity: 0; transform: translateY(24px) scale(.985); }
.ch-wejdz.ch-widac { opacity: 1; transform: none; transition: opacity .45s var(--wyjscie), transform .65s var(--wyjscie); }
@media print { .ch-wejdz { opacity: 1; transform: none; } .ch-bar, .ch-dolny, .ch-toast { position: static; } }

/* ---------- Zasady dropu ---------- */
.ch-zasady {
	max-width: 820px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--bok) clamp(56px, 8vw, 110px);
	text-align: center; font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 500;
}
.ch-zasady p { margin: 0 0 .7em; text-wrap: pretty; }
.ch-zasady p:first-of-type { font-weight: 800; font-size: 1.15em; }
.ch-zasady__wysylka { color: var(--szary); font-size: .9em; }

/* ---------- Okno z opisem ---------- */
.ch-opis {
	width: min(1040px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px);
	margin: auto; padding: 0;
	border: var(--ramka); border-radius: var(--r); box-shadow: var(--cien);
	background: var(--bialy); color: var(--czarny); overflow: hidden;
}
.ch-opis::backdrop { background: rgba(0, 0, 0, .55); opacity: var(--tlo, 1); }
.ch-opis[open] { animation: ch-opis-wejscie .5s cubic-bezier(.2, .9, .25, 1.08); }
.ch-opis[open]::backdrop { animation: ch-tlo .3s ease-out; }
.ch-opis.ch-zamyka { animation: ch-opis-wyjscie .2s cubic-bezier(.4, 0, 1, 1) forwards; }
.ch-opis.ch-zamyka::backdrop { animation: ch-tlo-wyjscie .2s ease-in forwards; }
@keyframes ch-opis-wejscie { from { opacity: 0; transform: translateY(28px) scale(.95); } 40% { opacity: 1; } }
@keyframes ch-opis-wyjscie { to { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes ch-tlo { from { opacity: 0; } }
@keyframes ch-tlo-wyjscie { to { opacity: 0; } }
.ch-opis__uchwyt { display: none; }
.ch-opis__ramka { position: relative; display: grid; max-height: calc(100dvh - 28px); overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.ch-opis__zamknij {
	position: sticky; top: 12px; z-index: 3; justify-self: end; margin: 12px 12px -56px 0;
	width: 44px; height: 44px; border-radius: 50%;
	border: var(--ramka); background: var(--bialy); cursor: pointer;
	font-size: 1.7rem; line-height: 1; display: grid; place-items: center;
	transition: transform .14s var(--wyjscie);
}
.ch-opis__zamknij:active { transform: scale(.92); }
.ch-opis__galeria {
	display: flex; align-items: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0;
	background: var(--szary-jasny); border-bottom: var(--ramka);
	scrollbar-width: thin;
}
.ch-opis__galeria img { flex: 0 0 100%; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; scroll-snap-align: start; }
.ch-opis__tekst { padding: 22px clamp(18px, 3vw, 36px) 32px; }
.ch-opis__tytul { margin: 0; font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1; letter-spacing: -.02em; }
.ch-opis .ch-cena { margin: 8px 0 14px; }
.ch-opis__akcje { margin-bottom: 16px; }
.ch-opis .ch-upsell { margin: 0 0 22px; }
.ch-opis__tresc { font-size: 1.05rem; }
.ch-opis__tresc h3 { margin: 1.4em 0 .4em; font-weight: 800; font-size: 1.25rem; line-height: 1.1; }
.ch-opis__tresc p { margin: 0 0 .8em; text-wrap: pretty; }
.ch-spec { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.ch-spec li { position: relative; padding-left: 22px; }
.ch-spec li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--czarny); }
@media (min-width: 900px) {
	.ch-opis__ramka { grid-template-columns: 1.1fr 1fr; overflow: hidden; }
	.ch-opis__zamknij { position: absolute; top: 14px; right: 14px; margin: 0; }
	.ch-opis__galeria { flex-direction: column; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y proximity; border-bottom: 0; border-right: var(--ramka); max-height: calc(100dvh - 28px); gap: 2px; }
	.ch-opis__galeria img { flex: none; }
	.ch-opis__tekst { overflow-y: auto; overscroll-behavior: contain; max-height: calc(100dvh - 28px); padding-top: 34px; padding-right: 70px; }
}
/* Telefon: arkusz od dołu, zamykany przeciągnięciem w dół, ×, tłem lub Esc */
@media (max-width: 719px) {
	.ch-opis {
		width: 100%; max-width: 100%; margin: auto 0 0;
		max-height: calc(100dvh - 32px - env(safe-area-inset-top));
		border-radius: 26px 26px 0 0; border-bottom: 0; box-shadow: none;
	}
	.ch-opis__ramka { max-height: calc(100dvh - 34px - env(safe-area-inset-top)); padding-bottom: env(safe-area-inset-bottom); }
	.ch-opis[open] { animation: ch-arkusz .5s cubic-bezier(.32, .72, 0, 1); }
	.ch-opis.ch-zamyka { animation: ch-arkusz-wyjscie .28s cubic-bezier(.32, .72, 0, 1) forwards; }
	.ch-opis__uchwyt { display: block; position: sticky; top: 0; z-index: 4; height: 0; }
	.ch-opis__uchwyt::before {
		content: ""; position: absolute; left: 50%; top: 9px; width: 46px; height: 5px; margin-left: -23px;
		border-radius: 99px; background: var(--czarny); box-shadow: 0 0 0 2px var(--bialy);
	}
	.ch-opis__uchwyt::after { content: ""; position: absolute; left: 25%; right: 25%; top: 0; height: 30px; } /* większe pole chwytu */
	.ch-opis__galeria { gap: 6px; scrollbar-width: none; overscroll-behavior-x: contain; }
	.ch-opis__galeria::-webkit-scrollbar { display: none; }
	.ch-opis__galeria img { flex-basis: 86%; width: 86%; aspect-ratio: 4 / 3; scroll-snap-align: center; }
	.ch-opis__galeria img:first-child { scroll-snap-align: start; }
	.ch-opis__galeria img:last-child { scroll-snap-align: end; }
	.ch-opis__tekst { padding-bottom: 40px; }
}
@keyframes ch-arkusz { from { transform: translateY(100%); } }
@keyframes ch-arkusz-wyjscie { to { transform: translateY(105%); } }

/* ---------- Dolny pasek koszyka (telefon, gdy coś jest w koszyku) ---------- */
.ch-dolny { display: none; }
@media (max-width: 719px) {
	.ch-dolny {
		position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 55;
		display: flex; align-items: center; justify-content: space-between; gap: 12px;
		padding: 6px 6px 6px 20px;
		background: var(--czarny); color: var(--bialy);
		border: 2px solid var(--bialy); border-radius: 999px; box-shadow: 4px 4px 0 var(--szary);
		transform: translateY(calc(100% + 40px)); visibility: hidden;
		transition: transform .5s cubic-bezier(.2, .9, .25, 1.1), visibility 0s .5s;
	}
	.ch-pelny .ch-dolny { transform: none; visibility: visible; transition: transform .5s cubic-bezier(.2, .9, .25, 1.1), visibility 0s; }
	.ch-dolny__koszyk { font-weight: 800; font-size: 1.1rem; text-decoration: none; font-variant-numeric: tabular-nums; padding: 8px 0 6px; }
	.ch-dolny__koszyk.ch-bump { display: inline-block; animation: ch-bump .5s var(--sprezyna); }
	.ch-dolny__kasa.ch-btn { min-height: 44px; padding: 8px 20px 6px; border-color: var(--bialy); box-shadow: none; }
	.ch-pelny .ch-stopka { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
	.ch-pelny .ch-toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
	.ch-opis[open] ~ .ch-dolny, html:has(dialog.ch-opis[open]) .ch-dolny { visibility: hidden; transform: translateY(calc(100% + 40px)); }
}

/* ---------- Toast ---------- */
.ch-toast {
	position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60;
	display: flex; align-items: center; gap: 14px;
	max-width: calc(100vw - 32px); padding: 10px 10px 10px 20px;
	background: var(--czarny); color: var(--bialy); border-radius: 999px;
	font-weight: 700; box-shadow: 4px 4px 0 var(--szary);
	transform: translate(-50%, 0); transition: transform .35s var(--sprezyna), opacity .25s;
}
.ch-toast[hidden] { display: flex; opacity: 0; pointer-events: none; transform: translate(-50%, 140%); }
.ch-toast a { background: var(--bialy); color: var(--czarny); border-radius: 999px; padding: 6px 16px 4px; text-decoration: none; white-space: nowrap; }
@media (max-width: 480px) { .ch-toast { width: calc(100vw - 24px); justify-content: space-between; font-size: .95rem; padding-left: 16px; } }

/* ---------- Stopka ---------- */
.ch-stopka { background: var(--czarny); color: var(--bialy); padding: 40px var(--bok) calc(40px + env(safe-area-inset-bottom)); text-align: center; }
.ch-stopka__logo { margin: 0 0 12px; font-weight: 800; font-size: 2rem; line-height: 1; }
.ch-stopka__linki { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-weight: 700; }
.ch-stopka__linki a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.ch-stopka__firma { margin: 18px auto 0; max-width: 640px; color: #bdbdbd; font-size: .9rem; line-height: 1.5; }

/* ---------- Strony (regulamin, polityka, koszyk, kasa) ---------- */
.ch-strona { max-width: 880px; margin: 0 auto; padding: clamp(32px, 5vw, 64px) var(--bok) clamp(48px, 7vw, 96px); }
.ch-strona__tytul { margin: 0 0 .6em; font-weight: 800; font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1; letter-spacing: -.03em; }
.ch-strona__tresc { max-width: 72ch; }
.ch-strona__tresc h2 { margin: 1.6em 0 .4em; font-weight: 800; font-size: 1.35rem; line-height: 1.15; }
.ch-strona__tresc ol { padding-left: 1.4em; }
.ch-strona__tresc li { margin-bottom: .4em; }
.ch-strona__tresc a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
body.woocommerce-cart .ch-strona, body.woocommerce-checkout .ch-strona { max-width: var(--max); }
body.woocommerce-cart .ch-strona__tresc, body.woocommerce-checkout .ch-strona__tresc { max-width: none; }

/* WooCommerce — klasyczny koszyk i kasa w stylu Chillery */
.woocommerce, .woocommerce-page { font-family: "Baloo 2", system-ui, sans-serif; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce .wc-proceed-to-checkout a.checkout-button {
	background: var(--czarny); color: var(--bialy); border: var(--ramka); border-radius: 999px;
	font-family: inherit; font-weight: 700; font-size: 1.05rem; padding: 12px 26px 10px; line-height: 1.1;
	transition: transform .14s var(--wyjscie), box-shadow .14s var(--wyjscie);
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
.woocommerce .wc-proceed-to-checkout a.checkout-button:hover { background: var(--czarny); color: var(--bialy); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--szary); }
.woocommerce button.button:disabled, .woocommerce button.button:disabled[disabled] { background: var(--szary-jasny); color: var(--szary); border-color: var(--szary-jasny); padding: 12px 26px 10px; }
.woocommerce .wc-proceed-to-checkout a.checkout-button { font-size: 1.25rem; font-weight: 800; padding: 16px 26px 14px; }
.woocommerce #place_order { width: 100%; font-size: 1.3rem; font-weight: 800; padding: 16px 26px 14px; }
.woocommerce table.shop_table { border: var(--ramka); border-radius: var(--r); border-collapse: separate; overflow: hidden; }
.woocommerce table.shop_table th { font-weight: 800; }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { border-top-color: var(--szary-jasny); padding: 14px 16px; }
.woocommerce-cart table.cart img { width: 96px; border-radius: 10px; }
.woocommerce-cart table.cart .product-name a { font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.woocommerce a.remove { color: var(--czarny) !important; font-weight: 400; }
.woocommerce a.remove:hover { background: var(--czarny); color: var(--bialy) !important; }
.woocommerce .quantity .qty { width: 4.2em; padding: 8px 4px; border: var(--ramka); border-radius: 12px; font: inherit; font-weight: 700; text-align: center; }
.woocommerce form .form-row label { font-weight: 700; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select,
.woocommerce .select2-container .select2-selection--single {
	border: var(--ramka); border-radius: 14px; padding: 12px 14px; font: inherit; background: var(--bialy); min-height: 50px;
}
.woocommerce .select2-container .select2-selection--single .select2-selection__rendered { line-height: 24px; padding-left: 0; }
.woocommerce .select2-container .select2-selection--single .select2-selection__arrow { top: 12px; right: 10px; }
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus { outline: 3px solid var(--zolty); outline-offset: 0; }
.woocommerce-checkout #payment { background: var(--szary-jasny); border-radius: var(--r); }
.woocommerce-checkout #payment div.payment_box { background: var(--bialy); }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--bialy); }
.woocommerce-checkout h3 { font-weight: 800; font-size: 1.6rem; letter-spacing: -.01em; }
.woocommerce ul#shipping_method li { margin-bottom: 8px; }
.woocommerce ul#shipping_method li label { font-weight: 700; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews, p.no-comments {
	border: var(--ramka); border-radius: 16px; background: var(--bialy); color: var(--czarny); font-weight: 600;
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--czarny); }
.woocommerce-error { border-color: #b00020; }
.woocommerce-message .button, .woocommerce-info .button { padding: 6px 16px 4px !important; font-size: .95rem !important; }
.cart-empty.woocommerce-info { font-size: 1.2rem; }
.return-to-shop .button { margin-top: 8px; }

/* Drobne elementy formularzy */
.woocommerce input[type="radio"], .woocommerce input[type="checkbox"] { accent-color: var(--czarny); width: 18px; height: 18px; vertical-align: -3px; margin: 0 6px 0 0; }
.woocommerce-info::before, .woocommerce-message::before { content: none !important; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { padding: 14px 20px !important; }
.woocommerce-form-coupon-toggle .woocommerce-info { border-style: dashed; border-color: var(--szary); font-weight: 600; }
.woocommerce .coupon .input-text, .woocommerce form.checkout_coupon .input-text {
	min-height: 48px; padding: 10px 16px; border: var(--ramka); border-radius: 999px; font: inherit; font-weight: 600; width: 12em !important; margin-right: 8px;
}
.woocommerce form.checkout_coupon { border: 2px dashed var(--szary); border-radius: var(--r); padding: 18px 20px; }
.woocommerce-shipping-calculator, .woocommerce-shipping-destination, .woocommerce-cart .woocommerce-shipping-totals p.woocommerce-shipping-destination { display: none !important; }
.woocommerce ul#shipping_method { margin: 0; padding: 0; }
.woocommerce ul#shipping_method li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 4px; text-indent: 0; }
.woocommerce ul#shipping_method li > :not(input) { grid-column: 2; }
.woocommerce ul#shipping_method li label { cursor: pointer; }
.woocommerce ul#shipping_method, .woocommerce ul#shipping_method li { text-align: left !important; }
.woocommerce table.shop_table_responsive tr:nth-child(2n) td, .woocommerce-page table.shop_table_responsive tr:nth-child(2n) td { background-color: transparent; }
.woocommerce-checkout #payment .woocommerce-info, .woocommerce-checkout #payment .woocommerce-notice { line-height: 1.45; }
.woocommerce ul#shipping_method li img { border-radius: 6px; }
.woocommerce table.shop_table .product-name, .woocommerce table.shop_table .product-total { font-weight: 600; }
.woocommerce table.shop_table tr.order-total th, .woocommerce table.shop_table tr.order-total td { font-size: 1.3rem; font-weight: 800; }
.woocommerce table.shop_table tr.order-total .woocommerce-Price-amount { font-weight: 800; }
.woocommerce .woocommerce-privacy-policy-text, .woocommerce-terms-and-conditions-wrapper { font-size: .95rem; }
/* Przycisk InPost „Wybierz punkt odbioru” (mapa) jak nasz przycisk */
.woocommerce-checkout #easypack_show_geowidget, .woocommerce-checkout .easypack_show_geowidget {
	display: inline-flex !important; align-items: center; justify-content: center; width: auto !important; height: auto !important;
	min-height: 44px; margin: 4px 0 0 !important; padding: 9px 22px 7px !important;
	background: var(--czarny) !important; color: var(--bialy) !important; border: var(--ramka) !important; border-radius: 999px !important;
	box-shadow: none !important; font: 700 1rem/1.1 "Baloo 2", system-ui, sans-serif !important; text-transform: none !important; letter-spacing: 0 !important;
	cursor: pointer; transition: transform .14s var(--wyjscie), box-shadow .14s var(--wyjscie);
}
@media (hover: hover) { .woocommerce-checkout #easypack_show_geowidget:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--szary) !important; } }
.woocommerce-checkout #easypack_show_geowidget:active { transform: scale(.97); box-shadow: none !important; }
.woocommerce-checkout tr.easypack-parcel-machine td, .woocommerce-checkout tr.easypack-parcel-machine th { border-top: 0; padding-top: 0 !important; text-align: left !important; }

/* Koszyk: tabela po lewej, podsumowanie w ramce po prawej (przyklejone) */
@media (min-width: 960px) {
	.woocommerce-cart .ch-strona__tresc > .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 0 32px; align-items: start; }
	.woocommerce-cart .ch-strona__tresc > .woocommerce > * { grid-column: 1 / -1; }
	.woocommerce-cart .ch-strona__tresc > .woocommerce > form.woocommerce-cart-form { grid-column: 1; }
	.woocommerce-cart .ch-strona__tresc > .woocommerce > .cart-collaterals { grid-column: 2; position: sticky; top: 84px; }
	.woocommerce-cart .ch-strona__tresc > .woocommerce > .ch-zamiana { grid-column: 1 / -1; }
}
.woocommerce-cart .cart-collaterals .cart_totals { float: none; width: 100%; padding: 20px 22px 22px; border: var(--ramka); border-radius: var(--r); box-shadow: var(--cien); background: var(--bialy); }
.woocommerce-cart .cart-collaterals .cart_totals h2 { margin: 0 0 10px; font-weight: 800; font-size: 1.5rem; line-height: 1.1; }
.woocommerce-cart .cart-collaterals .cart_totals table.shop_table { border: 0; border-radius: 0; }
.woocommerce-cart .cart-collaterals .cart_totals table.shop_table th, .woocommerce-cart .cart-collaterals .cart_totals table.shop_table td { padding: 12px 0; }
.woocommerce-cart .cart-collaterals .cart_totals table.shop_table th { width: 36%; }
.woocommerce-cart .wc-proceed-to-checkout { padding: 14px 0 0; }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { margin: 0; width: 100%; }
.woocommerce-cart table.cart td.actions { padding: 12px 16px; }

/* Kasa (układ z inc/sklep.php): .ch-kasa__lewa = dane + płatność, .ch-kasa__prawa = „Twoje zamówienie” w ramce (przyklejone) */
.woocommerce-checkout .ch-kasa__prawa {
	padding: 20px 22px 22px; border: var(--ramka); border-radius: var(--r); box-shadow: var(--cien); background: var(--bialy);
}
.woocommerce-checkout #order_review_heading { margin: 0 0 6px; font-weight: 800; font-size: 1.6rem; letter-spacing: -.01em; line-height: 1.1; }
/* Tabela podsumowania jako wiersze flex: kolumny produktu i sum nie walczą o szerokość */
.woocommerce-checkout #order_review table.shop_table { display: block; border: 0; border-radius: 0; margin: 0; }
.woocommerce-checkout #order_review table.shop_table > thead { display: none; }
.woocommerce-checkout #order_review table.shop_table > tbody, .woocommerce-checkout #order_review table.shop_table > tfoot { display: block; }
.woocommerce-checkout #order_review table.shop_table tr { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 0; border-top: 1px solid var(--szary-jasny); }
.woocommerce-checkout #order_review table.shop_table > tbody > tr:first-child { border-top: 0; }
.woocommerce-checkout #order_review table.shop_table th, .woocommerce-checkout #order_review table.shop_table td { display: block; padding: 0 !important; border: 0 !important; text-align: right; }
.woocommerce-checkout #order_review table.shop_table th { text-align: left; }
.woocommerce-checkout #order_review td.product-name { flex: 1 1 0; min-width: 0; text-align: left; }
.woocommerce-checkout #order_review td.product-name .product-quantity { white-space: nowrap; color: var(--szary); }
.woocommerce-checkout #order_review td.product-total { white-space: nowrap; }
.woocommerce-checkout #order_review tr.woocommerce-shipping-totals > *, .woocommerce-checkout #order_review tr.easypack-parcel-machine > * { flex: 1 1 100%; text-align: left; }
.woocommerce-checkout #order_review tr.easypack-parcel-machine { border-top: 0; padding-top: 0; }
.woocommerce-checkout #order_review tr.easypack-parcel-machine:empty { display: none; }
.woocommerce-checkout #order_review tr.order-total { padding-top: 16px; border-top: 2px solid var(--czarny); }
/* Koszyk na telefonie: etykieta „Przesyłka” nad listą metod */
@media (max-width: 768px) {
	.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals td { text-align: left !important; }
	.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals td::before { display: block; float: none !important; margin-bottom: 8px; }
}
.woocommerce-checkout #order_review table.shop_table td.product-name { display: flex; align-items: center; gap: 8px; }
.woocommerce-checkout #order_review tfoot tr > td:last-child { margin-left: auto; }
.ch-kasa__produkt { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; }
.ch-kasa__mini { width: 56px !important; height: 56px; object-fit: cover; border-radius: 12px; border: 2px solid var(--czarny); background: var(--szary-jasny); flex: none; }
.ch-kasa__nazwa { font-weight: 800; line-height: 1.15; text-wrap: balance; }
/* Telefon: podsumowanie zamówienia nad płatnością, nie pod przyciskiem */
@media (max-width: 959px) {
	.woocommerce-checkout form.checkout { display: flex; flex-direction: column; }
	.woocommerce-checkout form.checkout > .ch-kasa__lewa { display: contents; }
	.woocommerce-checkout .ch-kasa__lewa > #customer_details { order: 1; }
	.woocommerce-checkout form.checkout > .ch-kasa__prawa { order: 2; margin-top: 24px; }
	.woocommerce-checkout .ch-kasa__lewa > .ch-kasa__platnosc { order: 3; }
}
.woocommerce-checkout .ch-kasa__platnosc { margin-top: 26px; }
.woocommerce-checkout .ch-kasa__platnosc-tytul { margin: 0 0 12px; font-weight: 800; font-size: 1.6rem; letter-spacing: -.01em; line-height: 1.1; }
.woocommerce-checkout #payment { border-radius: 18px; }
.woocommerce-checkout #payment ul.payment_methods { border-bottom-color: var(--bialy); }
.woocommerce-checkout #payment .woocommerce-info, .woocommerce-checkout #payment .woocommerce-notice { border-color: var(--szary); border-style: dashed; font-size: .95rem; }
@media (min-width: 960px) {
	.woocommerce-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 0 40px; align-items: start; }
	.woocommerce-checkout form.checkout > * { grid-column: 1 / -1; }
	.woocommerce-checkout form.checkout > .ch-kasa__lewa { grid-column: 1; }
	.woocommerce-checkout form.checkout > .ch-kasa__prawa { grid-column: 2; position: sticky; top: 84px; }
	.woocommerce-checkout #customer_details.col2-set .col-1, .woocommerce-checkout #customer_details.col2-set .col-2 { float: none; width: 100%; }
	.woocommerce-checkout #customer_details.col2-set .col-2 { margin-top: 18px; }
}
@media (max-width: 959px) {
	.woocommerce-checkout .ch-kasa__prawa { margin-top: 28px; }
}
.woocommerce-checkout #customer_details h3, .woocommerce-checkout #ship-to-different-address { font-weight: 800; font-size: 1.6rem; letter-spacing: -.01em; margin: 0 0 14px; }
.woocommerce-checkout #ship-to-different-address label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.woocommerce form .form-row { margin: 0 0 14px; padding: 0; }
.woocommerce form .form-row input.input-text::placeholder, .woocommerce form .form-row textarea::placeholder { color: var(--szary); opacity: .8; }
.woocommerce form .form-row textarea { min-height: 96px; }
.woocommerce form .form-row.woocommerce-invalid input.input-text { border-color: #b00020; }

.ch-zamiana {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px;
	margin: 0 0 24px; padding: 18px 20px;
	border: var(--ramka); border-radius: var(--r); box-shadow: var(--cien); background: var(--bialy);
	font-size: 1.1rem; font-weight: 600;
}
.ch-zamiana p { margin: 0; flex: 1 1 320px; }
.ch-preorder { margin: 0 0 14px; padding: 12px 14px; border: 2px dashed var(--szary); border-radius: 14px; font-weight: 600; }

/* Podziękowanie */
.ch-dzieki { text-align: center; }
.ch-dzieki__tytul { margin: 0 0 .4em; font-weight: 800; font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1; letter-spacing: -.03em; }
.ch-dzieki__lead { font-size: 1.25rem; font-weight: 600; max-width: 34em; margin: 0 auto 1.4em; }
.ch-czat { max-width: 560px; margin: 0 auto; padding: 24px; border: var(--ramka); border-radius: var(--r); box-shadow: var(--cien); }
.ch-czat p { margin: 0 0 18px; font-size: 1.1rem; }
.ch-dzieki__pa { margin: 1.4em 0; font-weight: 700; font-size: 1.2rem; }
.woocommerce .ch-dzieki ul.order_details, .ch-dzieki__dane { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; padding: 0; list-style: none; color: var(--szary); }
.ch-dzieki__dane li { border: 0 !important; margin: 0 !important; padding: 0 !important; float: none !important; font-size: 1rem !important; text-transform: none !important; }
.ch-dzieki__dane strong { color: var(--czarny); font-size: 1rem !important; }
.ch-dzieki .woocommerce-order-details, .ch-dzieki .woocommerce-customer-details { text-align: left; margin-top: 32px; }

/* ---------- Po końcu dropu ---------- */
.ch-po .ch-do-koszyka { pointer-events: none; background: var(--szary-jasny); color: var(--szary); border-color: var(--szary-jasny); }

/* ---------- Dostępność ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.ch-kropla::after { display: none; }
	.ch-opis[open] { animation: none; }
}
@media (prefers-contrast: more) {
	:root { --szary: #3a3a3a; }
	.ch-karta__hover { background: rgba(0, 0, 0, .92); }
}
