/* Pesto — style bazowe (token-driven). Klasy: pesto-*. */

:root {
	--pesto-ink: var(--wp--preset--color--ink, #121316);
	--pesto-body: var(--wp--preset--color--body, #2b2f36);
	--pesto-muted: var(--wp--preset--color--muted, #6f6e6a);
	--pesto-line: var(--wp--preset--color--line, #e7e3da);
	--pesto-surface: var(--wp--preset--color--surface, #f3efe7);
	--pesto-paper: var(--wp--preset--color--paper, #faf7f1);
	--pesto-base: var(--wp--preset--color--base, #ffffff);
	/* Tokeny używane dotąd tylko z wartością zapasową w kodzie (C-091) — teraz mają jedno źródło; wartości = dawne zapasowe (bez zmiany wyglądu). */
	--pesto-soft: #f6f3ee; /* tło miniatur i pól pomocniczych (karta zamówienia, cross-selle) */
	--pesto-ink-soft: var(--pesto-ink); /* tekst drugorzędny w kolorze atramentu */
	--pesto-pdp-max: 1120px; /* maksymalna szerokość treści opisu produktu (.pesto-pdp) */
	--pesto-accent: var(--wp--preset--color--accent, #c8a24a);
	--pesto-accent-d: #a9863a;
	/* Akcent jako TEKST/IKONA na jasnym tle (eyebrow, aktywna pozycja menu, hover linków, znaczniki ✓). Wartość pochodna od „Akcent — hover"
	   (--pesto-accent-d) przyciemnionego tuszem: zawsze >= 4,5:1 na bieli/papierze/surface (WCAG AA) i zostaje w kolorach marki —
	   (kontrast na papierze #faf7f1): fiolet #572c59 -> #422545 (12,5:1), granat #2e4a7d -> #263a5e (10,7:1), złoto domyślne #a9863a -> #7c642f (5,3:1).
	   Opcja Customizera „Akcent na jasnym tle" nadal ją nadpisuje (kolor wpisany ręcznie wygrywa). Koral #ff6260 jako tekst = 2,74:1 — NIE używać. */
	--pesto-accent-on-light: color-mix(in srgb, var(--pesto-accent-d) 70%, var(--pesto-ink));
	--pesto-leaf: var(--wp--preset--color--leaf, #d9bd6e);
	--pesto-coral: var(--wp--preset--color--coral, #1c6b8c);
	--pesto-coral-d: #155977;
	--pesto-accent-ink: var(--wp--preset--color--accent-ink, #1a1a17);
	/* AUTO-KONTRAST (Customizer: „Automatyczny kontrast tekstu na przyciskach"): tekst na plakietkach/etykietach w kolorze
	   --pesto-coral i na plakietce promocji (--pesto-sale-bg, a bez niej --pesto-coral). Biały = dotychczasowy wygląd;
	   motyw nadpisuje na ciemny tylko tam, gdzie biały nie osiąga 4,5:1 (WCAG AA). Akcent (kolor marki) zostaje bez zmian. */
	--pesto-coral-ink: #ffffff;
	--pesto-sale-ink: #ffffff;
	/* Tekst na tle --pesto-coral-d (hover .pesto-btn--coral; #155977 = biały 7,7:1). */
	--pesto-coral-d-ink: #ffffff;
	/* UWAGA: --pesto-accent-ink-hover (tekst przycisku po najechaniu, tło --pesto-accent-d) celowo NIE ma tu wartości:
	   reguły :hover czytają var(--pesto-accent-ink-hover, var(--pesto-accent-ink)), więc bez nadpisania z Customizera hover
	   dziedziczy zwykły tekst przycisku (także w presetach karty produktu, które zmieniają --pesto-accent-ink). */
	--pesto-gold: var(--wp--preset--color--gold, #c59f17);
	/* Semantyczna czerwień (usuń / błąd) — poza paletą marki; biały tekst na niej = 4,0:1 (duży znak ×). */
	--pesto-danger: #e23b4a;

	--pesto-radius-sm: 12px;
	--pesto-radius: 18px;
	--pesto-radius-lg: 26px;
	--pesto-radius-xl: 36px;
	--pesto-radius-pill: 999px;
	--pesto-shadow: 0 18px 48px rgba(20,24,29,.08);
	--pesto-shadow-sm: 0 6px 20px rgba(20,24,29,.06);
	/* Cień CTA PODĄŻA za akcentem (color-mix) — zmiana koloru przycisku w Customizerze
	   nie zostawia „starej" poświaty (wcześniej złoty hardcode w fallbackach). */
	--pesto-cta-shadow: 0 4px 14px color-mix(in srgb, var(--pesto-accent) 30%, transparent);
	--pesto-cta-shadow-h: 0 6px 20px color-mix(in srgb, var(--pesto-accent) 40%, transparent);
	--pesto-container: 1180px;
	--pesto-container-narrow: 760px;
	--pesto-gap: clamp(1rem, 0.6rem + 1.4vw, 2rem);
	--pesto-header-h: 74px;
	/* Zapas na dole panelu menu mobilnego/tabletowego (<=860 px): wysokość paska nad nagłówkiem
	   (np. pasek zaufania ~35 px, na górze strony) + oddech. Panel ma max-height 100dvh − nagłówek − zapas
	   i się przewija (NAV-01). Sklep z wyższym paskiem górnym zmienia tylko tę zmienną. */
	--pesto-nav-reserve: 3.5rem;
	/* Kolor obrysu fokusu klawiatury: ciemny (tusz) — min. 3:1 na tle jasnym; na ciemnym tle ratuje go jasny odstęp (box-shadow). */
	--pesto-focus: var(--pesto-ink);
	/* Obrys KOMPONENTÓW interaktywnych (pola, stepper ilości, radio, karty wyboru) — WCAG 1.4.11 wymaga >= 3:1 względem tła
	   (--pesto-line #e7e3da ma 1,28:1 i zostaje WYŁĄCZNIE dla linii dekoracyjnych: kart, separatorów, tabel). Tusz 54% + biel:
	   #7f8081 = 3,97:1 na bieli, 3,72:1 na papierze, 3,46:1 na surface. Zmiana wyglądu pól = zmiana tej jednej zmiennej. */
	--pesto-field-border: color-mix(in srgb, var(--pesto-ink) 54%, var(--pesto-base));

	/* SKALA Z-INDEX — jedno źródło prawdy (motyw + moduły przez var(...,fallback)).
	   Drabina od dołu: treść(0) < nagłówek < floaty < nakładki < szuflady < modale
	   < powiadomienia < zgoda cookies. Naprawia: nagłówek zasłaniający wyszukiwarkę,
	   floaty nad nakładkami, brak wspólnej skali. */
	--pesto-topbar-speed: 40s; /* ticker górnego paska: czas jednego pełnego przesunięcia (większy = wolniej) */
	--pesto-topbar-gap: 2.5rem; /* odstęp między komunikatami w tickerze */
	--pesto-z-header: 100;
	--pesto-z-sticky-header: 150;
	--pesto-z-dropdown: 200;
	--pesto-z-float: 9980;
	--pesto-z-overlay: 100000;
	--pesto-z-drawer: 100010;
	--pesto-z-modal: 100020;
	--pesto-z-toast: 100030;
	--pesto-z-consent: 100050;

	--pesto-font-body: var(--wp--preset--font-family--body, Inter, system-ui, sans-serif);
	--pesto-font-display: var(--wp--preset--font-family--display, "Bricolage Grotesque", system-ui, sans-serif);
}

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--pesto-font-body);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--pesto-body);
	background: var(--pesto-paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--pesto-font-display);
	color: var(--pesto-ink);
	line-height: 1.07;
	letter-spacing: -.02em;
	font-weight: 700;
	margin: 0 0 0.5em;
}
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.8rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); }
h3 { font-size: 1.3rem; }

a { color: var(--pesto-accent); text-underline-offset: 2px; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* Układ */
.pesto-container { width: 100%; max-width: var(--pesto-container); margin-inline: auto; padding-inline: var(--pesto-gap); }
.pesto-container--narrow { max-width: var(--pesto-container-narrow); }
.pesto-main { padding-block: clamp(1.5rem, 1rem + 2vw, 3rem); }

/* Dostępność */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.pesto-skip-link:focus {
	position: fixed; left: 1rem; top: 1rem; z-index: 1000;
	width: auto; height: auto; clip: auto;
	padding: 0.6rem 1rem; background: var(--pesto-ink); color: #fff; border-radius: 8px;
}
:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--pesto-accent);
	outline-offset: 2px;
	border-radius: 4px;
}

/* Nagłówek */
.pesto-header {
	position: sticky; top: 0; z-index: var(--pesto-z-header, 100);
	background: color-mix(in srgb, var(--pesto-base) 88%, transparent);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--pesto-line);
}
.pesto-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	min-height: var(--pesto-header-h);
}
.pesto-site-title { font-family: var(--pesto-font-display); font-size: 1.3rem; margin: 0; }
.pesto-site-title a { color: var(--pesto-ink); text-decoration: none; }

/* Menu */
.pesto-menu { display: flex; gap: clamp(0.75rem, 0.4rem + 1vw, 1.75rem); list-style: none; margin: 0; padding: 0; }
.pesto-menu a { color: var(--pesto-ink); text-decoration: none; font-weight: 500; padding: 0.5rem 0; display: inline-block; font-size: var(--pesto-menu-size, 15px); text-transform: var(--pesto-menu-transform, none); }
.pesto-menu a:hover { color: var(--pesto-accent); }
.pesto-menu .current-menu-item > a { color: var(--pesto-accent); }

.pesto-nav-toggle {
	display: none;
	width: 44px; height: 44px; border: 1px solid var(--pesto-line);
	background: var(--pesto-base); border-radius: 10px; cursor: pointer; position: relative;
}
.pesto-nav-toggle__bar, .pesto-nav-toggle__bar::before, .pesto-nav-toggle__bar::after {
	content: ""; position: absolute; left: 50%; width: 20px; height: 2px; background: var(--pesto-ink);
	transform: translateX(-50%); transition: transform 0.2s ease, opacity 0.2s ease;
}
.pesto-nav-toggle__bar { top: 50%; }
.pesto-nav-toggle__bar::before { top: -6px; }
.pesto-nav-toggle__bar::after { top: 6px; }
.pesto-nav-toggle[aria-expanded="true"] .pesto-nav-toggle__bar { background: transparent; }
.pesto-nav-toggle[aria-expanded="true"] .pesto-nav-toggle__bar::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.pesto-nav-toggle[aria-expanded="true"] .pesto-nav-toggle__bar::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

/* Przyciski */
.pesto-button, .wp-block-button__link, button.pesto-searchform__submit {
	display: inline-block; font-family: var(--pesto-font-body); font-weight: 600;
	/* Tło = ciemny atrament → tekst JASNY (audyt B9: accent-ink #1a1a17 na ink #121316 = niewidoczny). */
	background: var(--pesto-ink); color: var(--pesto-base, #fff);
	border: 0; border-radius: var(--pesto-radius-pill); padding: 0.7rem 1.4rem;
	text-decoration: none; cursor: pointer; transition: transform 0.12s ease, background 0.2s ease;
}
.pesto-button:hover { background: var(--pesto-accent); transform: translateY(-1px); }

/* Karty / listy */
.pesto-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--pesto-gap); }
.pesto-card { border: 1px solid var(--pesto-line); border-radius: var(--pesto-radius); overflow: hidden; background: var(--pesto-base); display: flex; flex-direction: column; }
.pesto-card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.pesto-card__body { padding: 1rem 1.1rem 1.25rem; }
.pesto-card__title { font-size: 1.15rem; margin: 0 0 0.35rem; }
.pesto-card__title a { color: var(--pesto-ink); text-decoration: none; }
.pesto-card__title a:hover { color: var(--pesto-accent); }
.pesto-entry-meta { color: var(--pesto-muted); font-size: 0.875rem; margin: 0 0 0.5rem; }

/* Treść wpisu */
.pesto-entry__header { margin-bottom: 1.25rem; }
.pesto-entry__media { margin: 0 0 1.5rem; border-radius: var(--pesto-radius); overflow: hidden; }
.pesto-entry__content > * + * { margin-top: 1rem; }

/* Wyszukiwarka */
.pesto-searchform { display: flex; gap: 0.5rem; }
.pesto-searchform__field { flex: 1; padding: 0.6rem 0.8rem; border: 1px solid var(--pesto-field-border, var(--pesto-line)); border-radius: 10px; font: inherit; }

/* Paginacja */
.pesto-pagination, .navigation.pagination { margin-top: 2rem; }
.pesto-pagination .page-numbers, .navigation .page-numbers {
	display: inline-block; padding: 0.4rem 0.75rem; border: 1px solid var(--pesto-line);
	border-radius: 8px; margin: 0 0.15rem; text-decoration: none; color: var(--pesto-ink);
}
.pesto-pagination .current, .navigation .current { background: var(--pesto-ink); color: #fff; border-color: var(--pesto-ink); }

/* Stopka */
.pesto-footer { border-top: 1px solid var(--pesto-line); background: var(--pesto-surface); margin-top: 3rem; }
.pesto-footer__inner { padding-block: 2.5rem; }
.pesto-footer__widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--pesto-gap); margin-bottom: 1.5rem; }
.pesto-footer-menu { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; margin: 0 0 1rem; padding: 0; }
.pesto-footer-menu a { color: var(--pesto-body); text-decoration: none; }
.pesto-footer-menu a:hover { color: var(--pesto-accent); }
.pesto-footer__copy { color: var(--pesto-muted); font-size: 0.875rem; margin: 0; }

/* 404 */
.pesto-404 { text-align: center; padding-block: clamp(2rem, 1rem + 5vw, 5rem); }
.pesto-404 .pesto-searchform { max-width: 420px; margin-inline: auto; }

/* Mobile */
@media (max-width: 860px) {
	.pesto-nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
	.pesto-nav {
		position: absolute; left: 0; right: 0; top: var(--pesto-header-h);
		background: var(--pesto-base); border-bottom: 1px solid var(--pesto-line);
		padding: 0.5rem var(--pesto-gap) 1rem;
		display: none;
	}
	.pesto-nav.is-open { display: block; }
	.pesto-menu { flex-direction: column; gap: 0; }
	.pesto-menu li { border-top: 1px solid var(--pesto-line); }
	.pesto-menu a { padding: 0.85rem 0; }
}

/* Redukcja ruchu */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ============================================================
   KOMPONENTY WYGLĄDU (redesign 4.5) — klasy pesto-*
   ============================================================ */
.pesto-btn{display:inline-flex;align-items:center;gap:.5rem;border:0;cursor:pointer;font-family:var(--pesto-font-body);font-weight:600;font-size:1rem;padding:.85rem 1.6rem;border-radius:var(--pesto-radius-pill);transition:transform .15s ease,box-shadow .2s ease,background .2s ease;text-decoration:none}
.pesto-btn:focus-visible{outline:3px solid var(--pesto-ink);outline-offset:2px}
.pesto-btn--primary{background:var(--pesto-accent);color:var(--pesto-accent-ink);box-shadow:var(--pesto-cta-shadow,0 10px 24px rgba(200,162,74,.32))}
.pesto-btn--primary:hover{background:var(--pesto-accent-d);color:var(--pesto-accent-ink-hover,var(--pesto-accent-ink));transform:translateY(-2px);box-shadow:var(--pesto-cta-shadow-h,0 12px 28px rgba(200,162,74,.4))}
.pesto-btn--coral{background:var(--pesto-coral);color:var(--pesto-coral-ink);box-shadow:0 8px 22px color-mix(in srgb,var(--pesto-coral,#ff6b4a) 30%,transparent)}
.pesto-btn--coral:hover{background:var(--pesto-coral-d);color:var(--pesto-coral-d-ink);transform:translateY(-2px)}
/* AUTO-KONTRAST: tekst przycisków Woo po najechaniu/stuknięciu. Tło hover = --pesto-accent-d (woocommerce.css), więc tekst liczymy OSOBNO
   (--pesto-accent-ink-hover z Customizera; bez niego = zwykły tekst przycisku, czyli dotychczasowy wygląd). Selektory = lista z woocommerce.css, gdzie
   tło hover faktycznie się zmienia; swoistość +1 (:hover) przebija color:…!important z bazowej reguły przycisku. */
.woocommerce ul.products li.product .button:hover,
.woocommerce a.button:hover,.woocommerce a.button.alt:hover,
.woocommerce button.button:hover,.woocommerce button.button.alt:hover,
.woocommerce input.button:hover,.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit:hover,.woocommerce #respond input#submit.alt:hover,
.woocommerce .single_add_to_cart_button:hover{color:var(--pesto-accent-ink-hover,var(--pesto-accent-ink))!important}
.pesto-btn--ghost{background:transparent;color:var(--pesto-ink);border:1.5px solid var(--pesto-line)}
.pesto-btn--ghost:hover{border-color:var(--pesto-ink)}
.pesto-eyebrow{font-weight:700;font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;color:var(--pesto-accent)}

/* Hero */
.pesto-hero__grid{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(1.4rem,3vw,2.6rem);align-items:center;padding:clamp(2rem,4vw,3.6rem) 0}
.pesto-hero h1{font-size:clamp(2.4rem,5.2vw,4.1rem);font-weight:800}
.pesto-hero h1 em{font-style:normal;color:var(--pesto-accent);position:relative}
.pesto-hero h1 em::after{content:"";position:absolute;left:0;right:0;bottom:.06em;height:.14em;background:var(--pesto-coral);opacity:.45;border-radius:2px}
.pesto-hero p{font-size:1.12rem;color:var(--pesto-muted);max-width:32ch;margin:1.2rem 0 1.8rem}
.pesto-hero__media{position:relative;aspect-ratio:1/1;width:100%;max-width:440px;margin-inline:auto}
.pesto-blob{position:absolute;inset:0;background:radial-gradient(120% 120% at 30% 20%,var(--pesto-leaf),var(--pesto-accent));border-radius:42% 58% 56% 44%/52% 44% 56% 48%;animation:pesto-morph 14s ease-in-out infinite}
@keyframes pesto-morph{50%{border-radius:54% 46% 40% 60%/46% 56% 44% 54%}}
.pesto-hero__photo{position:absolute;inset:8%;border-radius:var(--pesto-radius-xl);overflow:hidden;box-shadow:var(--pesto-shadow)}
.pesto-hero__photo img{width:100%;height:100%;object-fit:cover}

/* Pasek zaufania */
.pesto-trust{background:var(--pesto-base);border-top:1px solid var(--pesto-line);border-bottom:1px solid var(--pesto-line)}
.pesto-trust__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.2rem;padding:1.6rem 0}
.pesto-trust__item{display:flex;gap:.8rem;align-items:center}
.pesto-trust__ic{flex:none;width:42px;height:42px;border-radius:var(--pesto-radius-pill);background:var(--pesto-surface);display:grid;place-items:center;color:var(--pesto-accent)}
/* Przypięty rozmiar SVG (globalny reset img,svg{height:auto} nadpisuje atrybut height) + block = zero luzu baseline. */
.pesto-trust__ic svg{display:block;width:22px;height:22px}

/* Pills */
.pesto-pills{display:flex;gap:.7rem;flex-wrap:wrap}
.pesto-pill{display:inline-flex;align-items:center;gap:.5rem;padding:.6rem 1.2rem;border-radius:var(--pesto-radius-pill);background:var(--pesto-base);border:1.5px solid var(--pesto-line);font-weight:600;font-size:.92rem;transition:.18s;text-decoration:none;color:var(--pesto-ink)}
.pesto-pill:hover{border-color:var(--pesto-accent);color:var(--pesto-accent);transform:translateY(-2px)}
.pesto-pill--active{background:var(--pesto-accent);color:var(--pesto-accent-ink);border-color:var(--pesto-accent)}

/* Kafle kategorii na stronie głównej (nowoczesna siatka ze zdjęciami; ładny wariant bez zdjęcia). */
.pesto-cats{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:1.1rem}
.pesto-cat{display:flex;flex-direction:column;text-decoration:none;color:var(--pesto-ink);background:var(--pesto-base);border:1px solid var(--pesto-line);border-radius:var(--pesto-radius);overflow:hidden;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.pesto-cat:hover{transform:translateY(-4px);box-shadow:var(--pesto-shadow-sm);border-color:var(--pesto-accent)}
.pesto-cat__img{display:block;aspect-ratio:4/3;background-size:cover;background-position:center;background-color:var(--pesto-surface)}
.pesto-cat__img--ph{display:grid;place-items:center;color:var(--pesto-accent);background:linear-gradient(135deg,color-mix(in srgb,var(--pesto-accent) 14%,var(--pesto-surface)),var(--pesto-surface))}
.pesto-cat__name{padding:.75rem .9rem;font-weight:700;font-size:.98rem;text-align:center;line-height:1.25}
.pesto-cat:hover .pesto-cat__name{color:var(--pesto-accent)}
@media(max-width:560px){.pesto-cats{grid-template-columns:repeat(2,1fr);gap:.8rem}}

/* Karta produktu */
.pesto-card{background:var(--pesto-base);border:1px solid var(--pesto-line);border-radius:var(--pesto-radius-lg);padding:.7rem;transition:transform .18s ease,box-shadow .22s ease}
.pesto-card:hover{transform:translateY(-4px);box-shadow:var(--pesto-shadow)}
.pesto-card__media{position:relative;aspect-ratio:1/1;border-radius:var(--pesto-radius);overflow:hidden;background:var(--pesto-surface)}
.pesto-card__media img{width:100%;height:100%;object-fit:cover}
.pesto-badge{position:absolute;top:.6rem;left:.6rem;background:var(--pesto-coral);color:var(--pesto-coral-ink);font-size:.72rem;font-weight:700;padding:.25rem .6rem;border-radius:var(--pesto-radius-pill)}
.pesto-card__name{font-weight:600;font-size:.98rem;line-height:1.3;margin:.7rem .4rem .2rem}
.pesto-card__row{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin:.4rem .4rem .3rem}
.pesto-card__price{font-family:var(--pesto-font-display);font-weight:700;font-size:1.15rem}
.pesto-card__add{width:42px;height:42px;border-radius:var(--pesto-radius-pill);background:var(--pesto-accent);color:var(--pesto-accent-ink);border:0;cursor:pointer;font-size:1.3rem;display:grid;place-items:center;transition:.18s;text-decoration:none;line-height:1}
.pesto-card__add:hover{background:var(--pesto-accent-d);color:var(--pesto-accent-ink-hover,var(--pesto-accent-ink));transform:scale(1.08)}

/* Historia / pasy sekcji */
.pesto-band{background:var(--pesto-surface)}
.pesto-section{padding:4rem 0}

/* Klub / newsletter */
.pesto-club{background:var(--pesto-ink);color:#fff;border-radius:var(--pesto-radius-xl);padding:3rem;display:grid;grid-template-columns:1.2fr 1fr;gap:2rem;align-items:center;position:relative;overflow:hidden}
.pesto-club::before{content:"";position:absolute;right:-60px;top:-60px;width:240px;height:240px;background:var(--pesto-accent);opacity:.35;border-radius:50%}
.pesto-club__off{display:inline-block;background:var(--pesto-coral);color:var(--pesto-coral-ink);font-weight:700;padding:.2rem .7rem;border-radius:var(--pesto-radius-pill);font-size:.8rem;margin-bottom:.8rem;position:relative}

@media(max-width:980px){
	.pesto-hero__grid{grid-template-columns:1fr;gap:1.3rem;padding:1.8rem 0}
	.pesto-hero__media{aspect-ratio:16/10;max-width:420px}
	.pesto-trust__grid{grid-template-columns:repeat(2,1fr)}
	.pesto-club{grid-template-columns:1fr;padding:2rem}
}
@media(prefers-reduced-motion:reduce){.pesto-blob{animation:none}}

/* ============================================================
   KONSUMPCJA OPCJI CUSTOMIZERA (sekcje wyglądu)
   ============================================================ */
:root{
	--pesto-font-size:16px;
	--pesto-heading-weight:700;
	--pesto-heading-spacing:-.02em;
	--pesto-section-pad:64px;
	--pesto-header-bg:var(--pesto-paper);
	--pesto-header-fg:var(--pesto-ink);
	--pesto-footer-bg:var(--pesto-ink);
	--pesto-footer-fg:#cfd2d6;
	--pesto-shop-cols:4;
	--pesto-card-gap:22px;
	--pesto-head-btn-room:16.5rem; /* miejsce po bokach nagłówka sekcji z podtytułem i przyciskiem po prawej */
	--pesto-card-bg:#ffffff;
	--pesto-card-border:1px;
	--pesto-price-color:var(--pesto-ink);
}
body{font-size:var(--pesto-font-size)}
h1,h2,h3,h4,h5,h6{font-weight:var(--pesto-heading-weight);letter-spacing:var(--pesto-heading-spacing)}
/* Skala H2/H3 z Customizera — tylko treść stron/wpisów (bez widżetów/sekcji) */
.pesto-entry__content h2,.pesto-page__content h2{font-size:var(--pesto-h2-size,clamp(1.5rem,1.2rem + 1.4vw,2rem))}
.pesto-entry__content h3,.pesto-page__content h3{font-size:var(--pesto-h3-size,clamp(1.2rem,1.05rem + .8vw,1.5rem))}
.pesto-section{padding-block:var(--pesto-section-pad)}

/* Nagłówek sterowany opcjami */
.pesto-header{background:var(--pesto-header-bg);color:var(--pesto-header-fg);min-height:var(--pesto-header-h)}
.pesto-header a,.pesto-header .pesto-site-title a{color:var(--pesto-header-fg)}
.pesto-has-sticky-header .pesto-header{position:sticky;top:0;z-index:var(--pesto-z-sticky-header,150);backdrop-filter:blur(12px)}
.pesto-has-dark-header .pesto-header{border-bottom:1px solid rgba(255,255,255,.12)}
.pesto-has-dark-header .pesto-header .pesto-nav a:hover{color:var(--pesto-accent)}

/* Stopka sterowana opcjami */
.pesto-footer{background:var(--pesto-footer-bg);color:var(--pesto-footer-fg);border-top:0}
.pesto-footer a{color:var(--pesto-footer-fg)}
.pesto-footer a:hover{color:#fff}

/* ---------- Strona główna: dopełnienia ----------
   Nagłówek sekcji: JEDNA kanoniczna definicja (wcześniej dublowała się z „wzorcem
   wyśrodkowanym" niżej i tytuł nie siedział na środku). Tytuł wyśrodkowany;
   przycisk („Wszystkie produkty") na desktopie absolutnie po prawej, na mobile pod tytułem. */
.pesto-section__head{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:.15rem;margin:0 auto 1.8rem}
.pesto-section__head h2{font-size:clamp(1.7rem,3.4vw,2.4rem);margin:.2rem 0 0;max-width:60ch}
.pesto-section__head p{color:var(--pesto-muted);font-size:1.05rem;max-width:60ch}
.pesto-section__head > .pesto-btn{position:absolute;right:0;top:50%;transform:translateY(-50%)}
@media(max-width:760px){.pesto-section__head > .pesto-btn{position:static;transform:none;margin-top:.9rem}}
/* Sekcja „Promocje” w trybie wycinka strony Promocje ma podtytuł pod tytułem: od 1001 px zostawiamy po bokach nagłówka miejsce na przycisk (podtytuł zawija się zamiast wchodzić pod przycisk), a na tablecie (761–1000 px) przycisk stoi pod podtytułem jak na telefonie. */
@media(max-width:1000px){.pesto-sale--excerpt .pesto-section__head > .pesto-btn{position:static;transform:none;margin-top:.9rem}}
@media(min-width:1001px){.pesto-sale--excerpt .pesto-section__head > div{max-width:calc(100% - 2 * var(--pesto-head-btn-room))}}
.pesto-hero__cta{display:flex;gap:.8rem;flex-wrap:wrap}
.pesto-hero__photo{position:absolute;inset:8%;border-radius:var(--pesto-radius-xl);overflow:hidden;box-shadow:var(--pesto-shadow)}
.pesto-hero__photo img{width:100%;height:100%;object-fit:cover}
.pesto-story__grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:3rem;align-items:center;padding-block:var(--pesto-section-pad)}
.pesto-story__media{aspect-ratio:4/5;border-radius:var(--pesto-radius-xl);background:linear-gradient(160deg,#f3efe7,#efe7d6);display:grid;place-items:center;font-size:5rem;overflow:hidden;box-shadow:var(--pesto-shadow)}
.pesto-story__media img{width:100%;height:100%;object-fit:cover}
.pesto-club__form{display:flex;gap:.6rem;position:relative;flex-wrap:wrap}
.pesto-club__form input{flex:1 1 200px;border:0;border-radius:var(--pesto-radius-pill);padding:.9rem 1.2rem;font-size:1rem;font-family:var(--pesto-font-body)}
.pesto-front .products{list-style:none;padding:0}
@media(max-width:900px){.pesto-story__grid{grid-template-columns:1fr;gap:1.5rem}}

/* ---------- Nagłówek: narzędzia + badge ---------- */
.pesto-header__inner{gap:1.5rem}
.pesto-header__brand{display:flex;align-items:center}
.pesto-header .pesto-nav{margin-right:auto;margin-left:.5rem}
.pesto-header__tools{display:flex;align-items:center;gap:.25rem}
.pesto-tool{width:44px;height:44px;display:grid;place-items:center;border-radius:var(--pesto-radius-pill);color:inherit;position:relative;transition:background .15s ease}
.pesto-tool:hover{background:color-mix(in srgb,currentColor 10%,transparent)}
.pesto-cart-badge{position:absolute;top:4px;right:4px;min-width:18px;height:18px;line-height:18px;padding:0 4px;background:var(--pesto-coral);color:var(--pesto-coral-ink);border-radius:var(--pesto-radius-pill);font-size:.7rem;font-weight:700;text-align:center;font-family:var(--pesto-font-body)}
.pesto-cart-badge[data-count="0"]{display:none}
/* Próg menu mobilnego = 860 px, TEN SAM co w bloku „Mobile" wyżej (nawigacja chowa się przy <=860, hamburger od <=860):
   wcześniej reguły panelu kończyły się na 782 px, a hamburger znikał już od 783 px — w zakresie 783-860 px
   (iPad pionowo 810/820/834) nie było ani menu, ani hamburgera (NAV-01). */
@media(max-width:860px){
	.pesto-header .pesto-nav{position:fixed;inset:var(--pesto-header-h) 0 auto;background:var(--pesto-paper);border-bottom:1px solid var(--pesto-line);padding:1rem var(--pesto-gap);transform:translateY(-120%);transition:transform .25s ease;margin:0}
	.pesto-nav.is-open{transform:translateY(0)}
	/* Długie menu (kategorie rozwinięte) nie może być wyższe od ekranu: panel ma max-height i własne przewijanie,
	   żeby dolne pozycje („Akcje", „Kontakt") były osiągalne. overscroll-behavior: przewijanie panelu nie „ciągnie" strony pod spodem.
	   100vh = zapas dla przeglądarek bez dvh (nadpisywane przez 100dvh). NIGDY overflow na html/body (psuje sticky nagłówka). */
	.pesto-header .pesto-nav{max-height:calc(100vh - var(--pesto-header-h) - var(--pesto-nav-reserve));max-height:calc(100dvh - var(--pesto-header-h) - var(--pesto-nav-reserve));overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
}
@media(min-width:861px){.pesto-nav-toggle{display:none}}

/* ============================================================
   KOSZYK / CHECKOUT — pełne wygładzenie
   ============================================================ */
.woocommerce-cart .pesto-main,.woocommerce-checkout .pesto-main{padding-block:2.5rem}
.woocommerce table.shop_table{border-radius:var(--pesto-radius);border:1px solid var(--pesto-line);border-collapse:separate;overflow:hidden}
.woocommerce table.shop_table th{background:var(--pesto-surface);font-family:var(--pesto-font-display)}
.woocommerce table.shop_table td,.woocommerce table.shop_table th{border-top:1px solid var(--pesto-line);padding:1rem}
.woocommerce .cart_item img{border-radius:var(--pesto-radius-sm);width:64px}
.woocommerce .cart-collaterals .cart_totals,.woocommerce-checkout .woocommerce-checkout-review-order{background:var(--pesto-base);border:1px solid var(--pesto-line);border-radius:var(--pesto-radius-lg);padding:1.4rem}
.woocommerce .cart_totals h2,.woocommerce-checkout #order_review_heading{font-family:var(--pesto-font-display);font-size:1.3rem}
.woocommerce-cart .actions .coupon input{border-radius:var(--pesto-radius-pill);border:1.5px solid var(--pesto-line);padding:.7rem 1rem}
.woocommerce form.checkout h3{font-family:var(--pesto-font-display);color:var(--pesto-ink)}
.woocommerce-checkout #payment{border-radius:var(--pesto-radius-lg);border:1px solid var(--pesto-line)}
.woocommerce-checkout #payment ul.payment_methods{border-bottom:1px solid var(--pesto-line)}
.woocommerce-checkout #place_order{width:100%;font-size:1.05rem;padding:1rem}
.woocommerce .woocommerce-message,.woocommerce .woocommerce-info{border-top-color:var(--pesto-accent)}
.woocommerce .woocommerce-message::before,.woocommerce .woocommerce-info::before{color:var(--pesto-accent)}

/* Ciemny nagłówek: hover narzędzi jaśniejszy */
.pesto-has-dark-header .pesto-tool:hover{background:rgba(255,255,255,.12)}

/* ---------- Wyszukiwarka (nakładka) ---------- */
.pesto-search{position:fixed;inset:0;z-index:var(--pesto-z-overlay,100000)}
.pesto-search[hidden]{display:none}
.pesto-search__backdrop{position:absolute;inset:0;background:rgba(18,19,22,.5);opacity:0;transition:opacity .2s ease}
.pesto-search.is-open .pesto-search__backdrop{opacity:1}
.pesto-search__panel{position:relative;background:var(--pesto-paper);max-width:760px;margin:0 auto;padding:1.6rem var(--pesto-gap) 1.8rem;border-radius:0 0 var(--pesto-radius-lg) var(--pesto-radius-lg);box-shadow:var(--pesto-shadow);transform:translateY(-110%);transition:transform .25s cubic-bezier(.16,1,.3,1)}
.pesto-search.is-open .pesto-search__panel{transform:translateY(0)}
.pesto-search__form{display:flex;align-items:center;gap:.6rem;border:1.5px solid var(--pesto-field-border,var(--pesto-line));border-radius:var(--pesto-radius-pill);padding:.4rem .4rem .4rem 1rem;background:var(--pesto-base)}
.pesto-search__icon{color:var(--pesto-muted);flex:none}
.pesto-search__input{flex:1 1 auto;border:0;outline:0;background:transparent;font-size:1.05rem;font-family:var(--pesto-font-body);padding:.6rem 0}
.pesto-search__submit{flex:none}
.pesto-search__close{flex:none;width:44px;height:44px;border-radius:var(--pesto-radius-pill);border:0;background:transparent;font-size:1.6rem;line-height:1;cursor:pointer;color:var(--pesto-muted)}
.pesto-search__close:hover{background:var(--pesto-surface);color:var(--pesto-ink)}
.pesto-search__hint{color:var(--pesto-muted);font-size:.85rem;margin:.8rem 0 0;padding-left:1rem}
@media(max-width:560px){.pesto-search__submit{display:none}}
@media(prefers-reduced-motion:reduce){.pesto-search__panel,.pesto-search__backdrop{transition:none}}

/* Hero: znak-łapka gdy brak obrazu */
.pesto-hero__mark{position:absolute;inset:0;display:grid;place-items:center;color:rgba(255,255,255,.92)}
.pesto-hero__mark svg{filter:drop-shadow(0 8px 24px rgba(0,0,0,.18))}
/* Produkty na stronie głównej: usuń domyślne marginesy listy Woo wewnątrz sekcji */
.pesto-front .woocommerce{margin:0}
.pesto-front .woocommerce ul.products{margin:0}

/* ---------- Customizer: nowe tokeny (Botiga-style rozbudowa) ---------- */
:root{
	--pesto-line-height:1.6;
	--pesto-btn-radius:999px;
	--pesto-btn-transform:none;
	--pesto-header-shadow:none;
	--pesto-footer-heading:#ffffff;
	--pesto-card-title-size:1rem;
}
body{line-height:var(--pesto-line-height)}
.pesto-btn{border-radius:var(--pesto-btn-radius);text-transform:var(--pesto-btn-transform)}
.pesto-header{box-shadow:var(--pesto-header-shadow)}
.pesto-header-noborder .pesto-header{border-bottom:0}

/* Builder nagłówka — sloty lewo / środek / prawo (z Customizera) */
.pesto-header__inner--builder{display:flex;align-items:center;gap:clamp(.5rem,1.5vw,1.2rem)}
.pesto-header__slot{display:flex;align-items:center;gap:clamp(.3rem,1.2vw,.9rem);min-width:0}
.pesto-header__slot--left{justify-content:flex-start}
.pesto-header__slot--center{flex:1 1 auto;justify-content:center}
.pesto-header__slot--right{margin-left:auto;justify-content:flex-end}
.pesto-header__slot .pesto-nav{margin:0}
.pesto-header__cta{padding:.5rem 1.1rem;font-size:.9rem;white-space:nowrap}
.pesto-header__cta--2{font-weight:600}
.pesto-header__html{display:inline-flex;align-items:center;min-width:0;gap:.4rem}
.pesto-header__html :where(p){margin:0}

/* Zmniejszanie nagłówka po przewinięciu (sticky_shrink) */
.pesto-shrink-header.pesto-has-sticky-header .pesto-header{transition:min-height .2s ease,box-shadow .2s ease}
.pesto-shrink-header.pesto-has-sticky-header.pesto-scrolled .pesto-header{min-height:calc(var(--pesto-header-h) * .76);box-shadow:0 6px 20px rgba(20,24,29,.08)}
.pesto-shrink-header.pesto-has-sticky-header.pesto-scrolled .pesto-header__inner{padding-block:.15rem}
.pesto-footer h4,.pesto-footer .pesto-footer__brand{color:var(--pesto-footer-heading)}
.pesto-hide-rating .woocommerce ul.products li.product .star-rating{display:none}

/* ============================================================
   ANTY-OVERFLOW: blokada poziomego "bujania" strony
   ============================================================ */
/* clip zamiast hidden — nie psuje position:sticky nagłówka */
/* Obrazy i media nigdy nie rozpychają układu */
img,svg,video,iframe{max-width:100%}
/* Grid/flex: pozwól dzieciom się kurczyć (fix "grid blowout") */
.pesto-container{max-width:min(var(--pesto-container),100%)}

/* ============================================================
   TIP-TOP #1 — nawigacja: podmenu, hover, mobile
   ============================================================ */
/* Animowane podkreślenie pozycji menu */
.pesto-menu > li{position:relative}
.pesto-menu > li > a{position:relative}
.pesto-menu > li > a::after{content:"";position:absolute;left:0;right:100%;bottom:.2rem;height:2px;background:var(--pesto-accent);transition:right .22s cubic-bezier(.16,1,.3,1)}
.pesto-menu > li > a:hover::after,
.pesto-menu > li.current-menu-item > a::after{right:0}

/* Rozwijane podmenu (desktop) */
.pesto-menu .sub-menu{position:absolute;top:100%;left:-.9rem;min-width:220px;background:var(--pesto-base);border:1px solid var(--pesto-line);border-radius:var(--pesto-radius);box-shadow:var(--pesto-shadow);padding:.5rem;margin:0;list-style:none;opacity:0;visibility:hidden;transform:translateY(8px);transition:.18s;z-index:60}
.pesto-menu li:hover > .sub-menu,
.pesto-menu li:focus-within > .sub-menu{opacity:1;visibility:visible;transform:none}
.pesto-menu .sub-menu li{display:block}
.pesto-menu .sub-menu a{display:block;padding:.5rem .8rem;border-radius:10px;font-weight:500;white-space:nowrap}
.pesto-menu .sub-menu a:hover{background:var(--pesto-surface);color:var(--pesto-ink)}
.pesto-menu .sub-menu a::after{display:none}
/* Strzałka przy pozycji z podmenu */
.pesto-menu > li.menu-item-has-children > a{padding-right:1.05rem}
.pesto-menu > li.menu-item-has-children > a::before{content:"";position:absolute;right:0;top:50%;width:7px;height:7px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:translateY(-70%) rotate(45deg);opacity:.55}

/* MEGA MENU — pozycja menu z klasą CSS „pesto-mega" → szerokie, wielokolumnowe podmenu.
   2. poziom = nagłówki kolumn, 3. poziom = linki. Włącz: Wygląd → Menu → „Klasy CSS (opcjonalne)" = pesto-mega. */
.pesto-nav{position:relative}
.pesto-menu > li.pesto-mega{position:static}
.pesto-menu > li.pesto-mega > .sub-menu{
	left:0;right:auto;width:min(760px,94vw);
	display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
	gap:.1rem 1.4rem;padding:1.3rem 1.5rem;
}
.pesto-menu > li.pesto-mega > .sub-menu > li{break-inside:avoid}
.pesto-menu > li.pesto-mega > .sub-menu > li > a{font-weight:700;color:var(--pesto-ink);padding:.4rem .4rem;white-space:normal}
.pesto-menu > li.pesto-mega > .sub-menu > li.menu-item-has-children > a::before{display:none}
.pesto-menu > li.pesto-mega .sub-menu .sub-menu{
	position:static;opacity:1;visibility:visible;transform:none;
	box-shadow:none;border:0;background:none;min-width:0;padding:.1rem 0 .5rem;margin:0;
}
.pesto-menu > li.pesto-mega .sub-menu .sub-menu a{font-weight:500;color:var(--pesto-muted);padding:.32rem .4rem;white-space:normal}
.pesto-menu > li.pesto-mega .sub-menu .sub-menu a:hover{color:var(--pesto-accent);background:var(--pesto-surface)}

/* Mobile: podmenu w pionie z wcięciem (próg 860 px jak panel menu wyżej — spójnie, patrz NAV-01) */
@media(max-width:860px){
	.pesto-menu{flex-direction:column;gap:.1rem}
	.pesto-menu > li > a{padding:.65rem 0;font-size:1.05rem}
	.pesto-menu > li > a::after{display:none}
	.pesto-menu .sub-menu{position:static;opacity:1;visibility:visible;transform:none;border:0;box-shadow:none;background:transparent;padding:0 0 .3rem 1rem;min-width:0}
	.pesto-menu .sub-menu a{white-space:normal;color:var(--pesto-muted)}
	/* Mega menu na mobile = zwykła pionowa lista (bez siatki kolumn). */
	.pesto-menu > li.pesto-mega > .sub-menu{display:block;width:auto;max-width:none;padding:0 0 .3rem 1rem}
}

/* ============================================================
   TIP-TOP #2 — stopka: siatka widżetów, logo, linki
   ============================================================ */
.pesto-footer{padding:3.2rem 0 1.6rem}
.pesto-footer__widgets{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:2.2rem;margin-bottom:2.2rem}
@media(max-width:900px){.pesto-footer__widgets{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.pesto-footer__widgets{grid-template-columns:1fr}}
.pesto-footer .widget{margin:0}
.pesto-footer .widget img{max-width:170px;height:auto;filter:brightness(0) invert(1);opacity:.95}
.pesto-footer .widget-title,
.pesto-footer h3,.pesto-footer h4{color:var(--pesto-footer-heading);font-family:var(--pesto-font-display);font-size:1rem;margin:0 0 .9rem;letter-spacing:.01em}
.pesto-footer ul{list-style:none;margin:0;padding:0}
.pesto-footer ul li{margin:0}
.pesto-footer ul a{display:inline-block;padding:.28rem 0;color:var(--pesto-footer-fg);text-decoration:none;transition:color .15s,transform .15s}
.pesto-footer ul a:hover{color:#fff;transform:translateX(3px)}
.pesto-footer p{margin:.3rem 0;line-height:1.7}
.pesto-footer a{color:var(--pesto-footer-fg)}
.pesto-footer a:hover{color:#fff}
.pesto-footer__copy{border-top:1px solid color-mix(in srgb,var(--pesto-footer-fg) 22%,transparent);padding-top:1.4rem;margin-top:.5rem;font-size:.82rem;color:color-mix(in srgb,var(--pesto-footer-fg) 75%,transparent);text-align:center}

/* ============================================================
   TIP-TOP #3 — detale globalne
   ============================================================ */
::selection{background:var(--pesto-accent);color:var(--pesto-accent-ink)}
a:focus-visible,button:focus-visible{outline:2.5px solid var(--pesto-accent);outline-offset:2px;border-radius:4px}
/* Kotwice (TOC, #reviews…) I elementy fokusowane klawiaturą (WCAG 2.4.11) nie chowają się pod sticky nagłówkiem.
   scroll-padding-top na <html> działa dla kotwic, scrollIntoView ORAZ przewijania do fokusu — zastępuje dawną regułę scroll-margin-top na elementach z atrybutem id,
   która obejmowała tylko takie elementy (a obie naraz podwoiłyby odstęp kotwicy). Bez overflow na html/body (psuje sticky). */
html{scroll-padding-top:calc(var(--pesto-header-h) + 16px)}
/* Rytm treści wpisów/stron */
.pesto-entry-content p{margin:0 0 1.1rem}
.pesto-entry-content h2{margin:2rem 0 .8rem;font-size:1.6rem}
.pesto-entry-content h3{margin:1.6rem 0 .6rem;font-size:1.25rem}
.pesto-entry-content ul,.pesto-entry-content ol{margin:0 0 1.1rem;padding-left:1.3rem}
.pesto-entry-content li{margin:.25rem 0}
.pesto-entry-content a{color:var(--pesto-accent-d);text-decoration:underline;text-underline-offset:2px}
.pesto-entry-content blockquote{margin:1.4rem 0;padding:.8rem 1.2rem;border-left:3px solid var(--pesto-accent);background:var(--pesto-surface);border-radius:0 var(--pesto-radius-sm) var(--pesto-radius-sm) 0;color:var(--pesto-muted)}
/* Klub: pole + fokus na ciemnym pasie */
.pesto-club__form input:focus{outline:3px solid color-mix(in srgb,#fff 65%,transparent);outline-offset:2px}

/* ============================================================
   FIX MOBILE: kuloodporny boczny padding + pas zaufania
   ============================================================ */
/* Padding kontenera z twardym fallbackiem (gdyby zmienna nie doszła) */
.pesto-container{padding-left:16px;padding-right:16px;padding-left:var(--pesto-gap,clamp(1rem,4vw,2rem));padding-right:var(--pesto-gap,clamp(1rem,4vw,2rem))}
.pesto-main{padding-top:.6rem}

/* Pas zaufania: tytuł nad opisem (koniec sklejania "dostawa2-3"), brak ucinania */
.pesto-trust__grid{grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:1rem 1.4rem}
.pesto-trust__item{min-width:0}
.pesto-trust__item>div{min-width:0}
.pesto-trust__item strong{display:block;margin-bottom:.1rem}
.pesto-trust__item span{display:block;color:var(--pesto-muted);font-size:.9rem;line-height:1.35}
@media(max-width:560px){
	.pesto-trust__grid{grid-template-columns:1fr 1fr;gap:1rem .9rem;padding:1.2rem 0}
	.pesto-trust__ic{width:36px;height:36px}
	.pesto-trust__item strong{font-size:.92rem}
	.pesto-trust__item span{font-size:.82rem}
}

/* Sekcje home: oddech pionowy na mobile */
@media(max-width:560px){
	.pesto-section{padding-block:2rem}
	.pesto-eyebrow{font-size:.72rem}
}

/* ---------- Topbar ---------- */
.pesto-topbar{background:var(--pesto-topbar-bg,#121316);color:var(--pesto-topbar-fg,#f3efe7);font-size:.82rem}
.pesto-topbar__in{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:36px;padding-top:.3rem;padding-bottom:.3rem}
.pesto-topbar__text{font-weight:600;letter-spacing:.02em}
.pesto-topbar__phone{color:inherit;font-weight:700;text-decoration:none;white-space:nowrap}
/* Pasek górny — prawa grupa (telefon/social/język/HTML) + rotator komunikatów */
.pesto-topbar__right{display:inline-flex;align-items:center;gap:.9rem;margin-left:auto}
.pesto-topbar__rotator{display:inline-grid;text-align:left}
.pesto-topbar__rotator .pesto-topbar__msg{grid-area:1/1;opacity:0;transition:opacity .5s ease;font-weight:600;letter-spacing:.02em}
.pesto-topbar__rotator .pesto-topbar__msg.is-on{opacity:1}
/* Ticker górnego paska (opcja „Płynący ticker”): dwie identyczne sekwencje, tor przesuwa się o -50% = bez szwu */
.pesto-topbar__marquee{flex:1;min-width:0;overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent);mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent)}
.pesto-topbar__track{display:flex;width:max-content;animation:pesto-topbar-ticker var(--pesto-topbar-speed,40s) linear infinite}
.pesto-topbar__marquee:hover .pesto-topbar__track,.pesto-topbar__marquee:focus-within .pesto-topbar__track{animation-play-state:paused}
.pesto-topbar__seq{display:flex;flex:none}
.pesto-topbar__item{flex:none;padding-right:var(--pesto-topbar-gap,2.5rem);font-weight:600;letter-spacing:.02em;white-space:nowrap}
.pesto-topbar__item::after{content:"\2726";margin-left:var(--pesto-topbar-gap,2.5rem);opacity:.7}
@keyframes pesto-topbar-ticker{to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.pesto-topbar__track{animation:none;width:auto;justify-content:center}.pesto-topbar__seq[aria-hidden="true"]{display:none}.pesto-topbar__marquee{-webkit-mask-image:none;mask-image:none}}
.pesto-topbar__social{display:inline-flex;gap:.5rem}
.pesto-topbar__html :where(p){margin:0}
/* Widoczność per urządzenie (builder nagłówka/stopki) — owijka przezroczysta dla układu */
.pesto-dev{display:contents}
@media(max-width:782px){.pesto-dev--desktop{display:none!important}}
@media(min-width:783px){.pesto-dev--mobile{display:none!important}}
.pesto-topbar__phone:hover{color:var(--pesto-accent,#c8a24a)}
@media(max-width:560px){.pesto-topbar__in{justify-content:center;text-align:center}.pesto-topbar__phone{display:none}}

/* ---------- Skala H1 ---------- */
h1,.pesto-hero__title{font-size:var(--pesto-h1-size,clamp(2rem,1.4rem + 2.4vw,3rem))}

/* ---------- Kolumny stopki (desktop) ---------- */
@media(min-width:900px){.pesto-footer__widgets{grid-template-columns:repeat(var(--pesto-footer-cols,3),1fr)}}

/* ---------- Przycisk "do góry" ---------- */
.pesto-top{position:fixed;bottom:24px;left:18px;z-index:var(--pesto-z-float,9980);width:46px;height:46px;border:1.5px solid var(--pesto-line,#e7e3da);border-radius:50%;background:var(--pesto-base,#fff);color:var(--pesto-ink,#121316);display:grid;place-items:center;cursor:pointer;box-shadow:var(--pesto-shadow-sm,0 4px 14px rgba(0,0,0,.12));opacity:0;transform:translateY(8px);transition:.2s;
	/* Audyt B13: niewidoczny = NIEklikalny i poza fokusem (opacity:0 sam zostawiał „ducha"). */
	visibility:hidden;pointer-events:none}
.pesto-top.is-visible{opacity:1;transform:none;visibility:visible;pointer-events:auto}
.pesto-top[hidden]{display:grid}
.pesto-top:hover{border-color:var(--pesto-accent,#c8a24a);color:var(--pesto-accent-d,#a9863a)}
@media(max-width:782px){.pesto-top{bottom:88px}}

/* Pasek górny */
/* Linki w treści */
.pesto-entry-content a,.woocommerce-Tabs-panel a,.pesto-footer__copy a{color:var(--pesto-link,var(--pesto-accent-d))}
/* Plakietka promocji wg ustawienia */
.woocommerce span.onsale{background:var(--pesto-sale-bg,var(--pesto-coral))!important}
/* Tekst plakietki promocji: woocommerce.css ładuje się PÓŹNIEJ i ma color:#fff!important — stąd przedrostek html (wyższa swoistość). */
html .woocommerce span.onsale{color:var(--pesto-sale-ink)!important}
/* Przycisk do góry */
.pesto-scrolltop{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);z-index:var(--pesto-z-float,9980);width:44px;height:44px;border:0;border-radius:50%;background:var(--pesto-ink,#121316);color:#fff;display:grid;place-items:center;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.25);opacity:.92;transition:.18s}
.pesto-scrolltop:hover{opacity:1;transform:translateX(-50%) translateY(-2px)}
.pesto-scrolltop[hidden]{display:none}
@media(max-width:782px){.pesto-scrolltop{left:auto;right:18px;transform:none;bottom:84px}.pesto-scrolltop:hover{transform:translateY(-2px)}}
/* B29: lewy dolny róg dzielą 3 pływaki (przycisk „do góry", pasek odstąpienia, sales-pop).
   Gdy „do góry" jest widoczny (scroll >600px), unosimy pozostałe NAD niego, żeby się nie
   nakładały. Tylko desktop (mobile koordynuje moduł app-bar). Fallback bez :has() = jak dotąd. */
@media(min-width:783px){
	body:has(.pesto-top.is-visible) .pesto-wb-float,
	body:has(.pesto-top.is-visible) .pesto-sp{bottom:82px!important}
}

/* ============================================================
   MEGA-MENU: pozycji menu nadaj klasę CSS "pesto-mega"
   (Wygląd > Menu > Opcje ekranu > Klasy CSS), a jej podmenu
   rozwinie się jako szeroki, wielokolumnowy panel.
   ============================================================ */
.pesto-nav .pesto-menu > li.pesto-mega{position:static}
.pesto-nav .pesto-menu > li.pesto-mega > .sub-menu{
	left:50%;transform:translateX(-50%) translateY(8px);
	width:min(920px,calc(100vw - 2rem));
	display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
	gap:.2rem 1.6rem;padding:1.2rem 1.4rem;
}
.pesto-nav .pesto-menu > li.pesto-mega:hover > .sub-menu,
.pesto-nav .pesto-menu > li.pesto-mega:focus-within > .sub-menu{transform:translateX(-50%) translateY(0)}
/* Drugi poziom w mega: nagłówki kolumn + lista pod spodem */
.pesto-nav .pesto-menu > li.pesto-mega > .sub-menu > li > a{
	font-weight:800;font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;
	color:var(--pesto-muted,#6f6e6a);padding:.4rem .2rem .5rem;border-bottom:1px solid var(--pesto-line,#e7e3da);margin-bottom:.3rem
}
.pesto-nav .pesto-menu > li.pesto-mega > .sub-menu > li > .sub-menu{
	position:static;transform:none;opacity:1;visibility:visible;pointer-events:auto;
	box-shadow:none;border:0;padding:0;width:auto;display:block;background:transparent
}
.pesto-nav .pesto-menu > li.pesto-mega > .sub-menu > li > .sub-menu a{padding:.35rem .2rem;font-size:.92rem}
@media(max-width:980px){
	/* Na mobile mega zachowuje się jak zwykłe podmenu (wcięcia). Wersje z :hover/:focus-within są WAŻNE: po dotknięciu strzałki pozycja ma oba stany,
	   a komputerowa reguła „:hover > .sub-menu {transform:translateX(-50%)}” (większa swoistość niż samo „transform:none”) przesuwała panel o połowę szerokości
	   w lewo — za ekran (felinela.bg, 19.10). */
	.pesto-nav .pesto-menu > li.pesto-mega > .sub-menu,
	.pesto-nav .pesto-menu > li.pesto-mega:hover > .sub-menu,
	.pesto-nav .pesto-menu > li.pesto-mega:focus-within > .sub-menu{display:block;width:auto;left:auto;transform:none}
}

/* Mega z kategorii w układzie „lista” (klasa pesto-mega--list z inc/mega-menu.php): płaskie drzewo kategorii (większość bez podkategorii) —
   kategorie jako zwykłe linki ułożone w kolumny, podkategorie wcięte pod rodzicem; zamiast nagłówków kolumn, które przy płaskim drzewie były puste.
   Liczbę kolumn wyznacza szerokość panelu (column-width), „Zobacz wszystkie…” rozciąga się pod całą listą. */
.pesto-nav .pesto-menu > li.pesto-mega.pesto-mega--list > .sub-menu{
	display:block;columns:200px 5;column-gap:1.6rem;
	width:min(1040px,calc(100vw - 2rem));padding:1rem 1.2rem 1.1rem
}
.pesto-nav .pesto-menu > li.pesto-mega.pesto-mega--list > .sub-menu > li{break-inside:avoid;margin:0}
.pesto-nav .pesto-menu > li.pesto-mega.pesto-mega--list > .sub-menu > li > a{
	font-size:.95rem;font-weight:600;letter-spacing:0;text-transform:none;color:var(--pesto-ink);
	padding:.4rem .6rem;margin:0;border-bottom:0;border-radius:8px
}
.pesto-nav .pesto-menu > li.pesto-mega.pesto-mega--list > .sub-menu > li > a:hover{color:var(--pesto-accent-on-light,var(--pesto-accent));background:var(--pesto-surface)}
.pesto-nav .pesto-menu > li.pesto-mega.pesto-mega--list > .sub-menu > li > .sub-menu{margin:0 0 .35rem .6rem;padding:0 0 0 .7rem;border-left:2px solid var(--pesto-line,#e7e3da)}
.pesto-nav .pesto-menu > li.pesto-mega.pesto-mega--list > .sub-menu > li > .sub-menu a{font-size:.88rem;font-weight:500;color:var(--pesto-muted,#6f6e6a);padding:.28rem .5rem}
.pesto-nav .pesto-menu > li.pesto-mega.pesto-mega--list > .sub-menu > li.pesto-mega__all{column-span:all;margin-top:.6rem;padding-top:.5rem;border-top:1px solid var(--pesto-line,#e7e3da)}
@media(max-width:980px){
	.pesto-nav .pesto-menu > li.pesto-mega.pesto-mega--list > .sub-menu{columns:auto;column-gap:normal;width:auto;padding:0 0 .3rem 1rem}
	.pesto-nav .pesto-menu > li.pesto-mega.pesto-mega--list > .sub-menu > li.pesto-mega__all{column-span:none;border-top:0;margin-top:0;padding-top:0}
}

/* ============================================================
   NAGŁÓWEK: logo o stałej wysokości (koniec rozjazdu)
   ============================================================ */
.pesto-logo{display:flex;align-items:center;line-height:0}
.pesto-logo img,
.pesto-header__brand .custom-logo{
	height:var(--pesto-logo-h,44px);width:auto;max-width:none;object-fit:contain;display:block
}
.pesto-site-title{font-family:var(--pesto-font-display,inherit);font-size:1.35rem;font-weight:800;margin:0;line-height:1.1}
.pesto-site-title a{color:inherit;text-decoration:none}
.pesto-header__brand{display:flex;align-items:center;min-width:0;flex:0 0 auto}
.pesto-header__inner{gap:1.2rem}
@media(max-width:782px){
	.pesto-logo img,.pesto-header__brand .custom-logo{height:var(--pesto-logo-h-m,36px)}
}

/* Tryb: treść stron/wpisów na pełną szerokość (opcja Customizera) */
body.pesto-content-full .pesto-main > .pesto-container,
body.pesto-content-full .pesto-page > .pesto-container{max-width:100%;padding-inline:clamp(1rem,4vw,3rem)}
/* Ikony narzędzi w nagłówku: ukrywanie steruje PHP (warunki), tu spójny układ */
.pesto-header__tools{display:flex;align-items:center;gap:.4rem}
.pesto-header__tools .pesto-tool{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:50%;color:inherit;background:transparent;border:0;cursor:pointer;position:relative;transition:.15s}
.pesto-header__tools .pesto-tool:hover{background:var(--pesto-surface,#f3efe7)}

/* ============================================================
   SZLIF STOPKI: nagłówki kolumn, odstępy, oddzielenie copy
   ============================================================ */
.pesto-footer__widgets .widget-title,
.pesto-footer__widgets .wp-block-heading{
	font-family:var(--pesto-font-display,inherit);font-size:.82rem;font-weight:800;
	letter-spacing:.08em;text-transform:uppercase;margin:0 0 1rem;opacity:.85
}
.pesto-footer__widgets .widget{margin:0}
.pesto-footer__widgets ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.5rem}
.pesto-footer__widgets a{text-decoration:none;opacity:.9;transition:.15s}
.pesto-footer__widgets a:hover{opacity:1;color:var(--pesto-footer-link-hover,var(--pesto-accent))}
/* Dolny pasek stopki (builder: copyright / menu) */
.pesto-footer__bottom{display:flex;flex-wrap:wrap;gap:.7rem 1.5rem;align-items:center;margin-top:1.6rem;padding-top:1.2rem;border-top:1px solid color-mix(in srgb,var(--pesto-footer-fg,#cfd2d6) 16%,transparent)}
.pesto-footer__bottom .pesto-footer__copy{margin:0}
.pesto-footer__bottom .pesto-footer-menu{margin:0}
.pesto-footer__bottom .pesto-footer__cookies{margin:0;color:color-mix(in srgb,var(--pesto-footer-fg,#cfd2d6) 75%,transparent);font-size:.82rem;text-decoration:underline;cursor:pointer}
.pesto-footer__bottom .pesto-footer__cookies:hover{color:var(--pesto-footer-fg,#fff)}
.pesto-footer__bottom--split{justify-content:space-between}
.pesto-footer__bottom--center{flex-direction:column;justify-content:center;text-align:center}
.pesto-footer__bottom--center .pesto-footer-menu{justify-content:center}
.pesto-footer__bottom--left{justify-content:flex-start}
@media(max-width:600px){.pesto-footer__bottom{flex-direction:column;align-items:flex-start;text-align:left}}
.pesto-footer__copy{border-top:1px solid var(--pesto-line);padding-top:1.3rem;margin-top:1.3rem;display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;align-items:center}
@media(max-width:560px){.pesto-footer__copy{flex-direction:column;text-align:center;gap:.6rem}}

/* ============================================================
   SZLIF WIZUALNY v2 — nagłówek, menu, stopka
   ============================================================ */
/* Nagłówek: subtelny blur przy przyklejeniu + płynny cień po przewinięciu */
body.pesto-has-sticky-header .pesto-header{
	position:sticky;top:0;z-index:var(--pesto-z-sticky-header,150);
	background:color-mix(in srgb,var(--pesto-header-bg,#fff) 92%,transparent);
	backdrop-filter:saturate(1.4) blur(10px);-webkit-backdrop-filter:saturate(1.4) blur(10px);
	transition:box-shadow .25s ease,padding .2s ease;
}
body.pesto-has-sticky-header .pesto-header.is-scrolled{box-shadow:0 6px 24px rgba(20,24,29,.08)}

/* Menu główne: podkreślenie aktywnej pozycji animowane */
.pesto-menu > li > a{position:relative;padding:.4rem .2rem}
.pesto-menu > li > a::after{
	content:"";position:absolute;left:.2rem;right:.2rem;bottom:-2px;height:2px;
	background:var(--pesto-accent);transform:scaleX(0);transform-origin:left;
	transition:transform .22s ease;border-radius:2px;
}
.pesto-menu > li:hover > a::after,
.pesto-menu > li.current-menu-item > a::after{transform:scaleX(1)}

/* Liczba w koszyku: kropka akcentu */
.pesto-cart-link .pesto-cart-count{
	position:absolute;top:2px;right:2px;min-width:18px;height:18px;
	background:var(--pesto-accent);color:var(--pesto-accent-ink);border-radius:999px;
	font-size:.68rem;font-weight:800;display:grid;place-items:center;padding:0 4px;line-height:1;
}

/* Stopka: czytelna hierarchia, akcentowe linki, oddech */
.pesto-footer{background:var(--pesto-footer-bg,var(--pesto-ink));color:var(--pesto-footer-fg,#cfcdc8)}
.pesto-footer a{color:var(--pesto-footer-fg,#cfcdc8);text-decoration:none;transition:color .15s ease}
.pesto-footer a:hover{color:var(--pesto-accent)}
.pesto-footer__widgets{padding-block:clamp(2.2rem,5vw,3.4rem)}
.pesto-footer .widget-title,.pesto-footer__widgets h3{color:var(--pesto-footer-heading,#fff);font-family:var(--pesto-font-display);font-size:1rem;font-weight:700;margin-bottom:.9rem;letter-spacing:.01em}
.pesto-footer__bottom{border-top:1px solid rgba(255,255,255,.12);padding-block:1.1rem;font-size:.85rem}
.pesto-footer__bottom .pesto-container{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}

/* Drobny, spójny focus dla dostępności */
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{
	outline:2px solid var(--pesto-accent);outline-offset:2px;border-radius:4px;
}

/* ============================================================
   SZLIF PROFESJONALNY v3 — spójność systemu
   ============================================================ */
/* Przyciski: stany active + disabled + spójny aktywny cień */
.pesto-btn:active{transform:translateY(0)!important}
.pesto-btn[disabled],.pesto-btn.is-loading{opacity:.6;cursor:not-allowed;transform:none!important;box-shadow:none}
.pesto-btn--primary:active{box-shadow:0 4px 12px color-mix(in srgb,var(--pesto-accent) 28%,transparent)}
.pesto-btn--lg{padding:1rem 2rem;font-size:1.08rem}
.pesto-btn--sm{padding:.55rem 1.1rem;font-size:.9rem}

/* Pola formularzy: jednolity, czysty styl w całym motywie */
input[type=text],input[type=email],input[type=tel],input[type=number],input[type=search],
input[type=password],input[type=url],textarea,select{
	font-family:var(--pesto-font-body);font-size:1rem;color:var(--pesto-ink);
	background:var(--pesto-base,#fff);border:1.5px solid var(--pesto-field-border,var(--pesto-line));
	border-radius:var(--pesto-radius,18px);padding:.7rem 1rem;transition:border-color .15s ease,box-shadow .15s ease;
}
input:focus,textarea:focus,select:focus{
	border-color:var(--pesto-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--pesto-accent) 18%,transparent);outline:none;
}
/* Placeholder = realny tekst podpowiedzi: pełna nieprzezroczystość (muted #6f6e6a = 5,2:1 na bieli; przy .75 było ~3,1:1). */
::placeholder{color:var(--pesto-muted);opacity:1}
label{font-weight:600;color:var(--pesto-ink)}

/* Nagłówek sekcji: kanoniczna definicja wyżej (sekcja „Strona główna: dopełnienia") —
   duplikat usunięty, bo nadpisywał margines/szerokość nie nadpisując flexa → tytuł zjeżdżał z osi. */

/* Linki w treści: eleganckie podkreślenie */
.pesto-entry-content a:not(.pesto-btn){
	color:var(--pesto-link,var(--pesto-accent-d));text-decoration:underline;
	text-underline-offset:.18em;text-decoration-thickness:.08em;
	text-decoration-color:color-mix(in srgb,var(--pesto-link,#a9863a) 40%,transparent);transition:text-decoration-color .15s ease;
}
.pesto-entry-content a:not(.pesto-btn):hover{text-decoration-color:currentColor}

/* Obrazy w treści: zaokrąglone, nigdy nie wychodzą poza kontener */
.pesto-entry-content img{max-width:100%;height:auto;border-radius:var(--pesto-radius,18px)}

/* Selekcja tekstu w kolorach marki */
::selection{background:color-mix(in srgb,var(--pesto-accent) 30%,transparent);color:var(--pesto-ink)}

/* Płynne pojawianie się sekcji przy wejściu (delikatne, z poszanowaniem reduced-motion) */
@media(prefers-reduced-motion:no-preference){
	.pesto-reveal{opacity:0;transform:translateY(14px);transition:opacity .5s ease,transform .5s ease}
	.pesto-reveal.is-visible{opacity:1;transform:none}
}

/* ============================================================
   MODEL SZEROKOŚCI v3 — CSS GRID FULL-BLEED
   Solidna metoda bez 100vw, bez ujemnych marginesów, bez
   overflow-hacków → brak poziomego scrolla, sticky działa.

   Kontener treści jest gridem z 3 pasami:
     [full] [ margines | KOLUMNA TREŚCI | margines ] [full]
   Zwykłe elementy lądują w kolumnie treści (z max-width),
   a .alignfull / .pesto-full rozciągają się na cały grid (full).
   .alignwide / .pesto-wide — szerszy pas pośredni.
   ============================================================ */

:root{
	--pesto-content:var(--pesto-container,1180px);
	--pesto-content-narrow:var(--pesto-container-narrow,760px);
	--pesto-wide:1400px;
	--pesto-edge:clamp(1rem,4vw,2.5rem); /* boczny oddech */
}

/* Grid zakładamy na realnych kontenerach treści motywu */
.pesto-main,
.pesto-entry,
.pesto-entry__content,
.pesto-page__content{
	display:grid;
	grid-template-columns:
		[full-start] minmax(var(--pesto-edge),1fr)
		[wide-start] minmax(0, calc((var(--pesto-wide) - var(--pesto-content)) / 2))
		[content-start] min(var(--pesto-content), 100% - 2 * var(--pesto-edge)) [content-end]
		minmax(0, calc((var(--pesto-wide) - var(--pesto-content)) / 2)) [wide-end]
		minmax(var(--pesto-edge),1fr) [full-end];
}
/* Wariant wąski (page/single): węższa kolumna treści */
.pesto-main.pesto-container--narrow,
.pesto-container--narrow .pesto-entry__content{
	--pesto-content:var(--pesto-content-narrow);
}

/* <main> jako grid nie potrzebuje już max-width/padding z .pesto-container */
main.pesto-main.pesto-container{max-width:100%;padding-inline:0;margin-inline:0;width:100%}

/* Domyślnie KAŻDE dziecko kontenera siada w kolumnie treści */
.pesto-main > *,
.pesto-entry__content > *,
.pesto-page__content > *{
	grid-column:content;
	min-width:0; /* fix grid blowout */
}

/* Pełna szerokość — sięga krawędzi okna (kolumna full) */
.pesto-main > .alignfull,  .pesto-main > .pesto-full,
.pesto-entry__content > .alignfull, .pesto-entry__content > .pesto-full,
.pesto-page__content > .alignfull, .pesto-page__content > .pesto-full{
	grid-column:full;
	width:auto;max-width:none;margin-inline:0;
}
/* Szeroki pas pośredni */
.pesto-main > .alignwide, .pesto-main > .pesto-wide,
.pesto-entry__content > .alignwide, .pesto-entry__content > .pesto-wide,
.pesto-page__content > .alignwide, .pesto-page__content > .pesto-wide{
	grid-column:wide;
	width:auto;max-width:none;margin-inline:0;
}

/* Strona/wpis: treść jest w <article class="pesto-entry"> → .pesto-entry__content.
   Żeby sekcje pełnej szerokości (.alignfull/.pesto-full) sięgały krawędzi okna,
   rozciągamy article na cały grid, a wewnętrzny wrapper czynimy „przezroczystym"
   (display:contents) — jego bloki trafiają wprost do gridu article i podlegają
   regułom content/wide/full powyżej. */
.pesto-main > .pesto-entry{ grid-column:full; }
.pesto-entry > *{ grid-column:content; min-width:0; }
.pesto-entry > .pesto-entry__content{ display:contents; }

/* Treść WEWNĄTRZ sekcji full-width może wrócić do kolumny własnym pasem */
.alignfull > .pesto-container,
.pesto-full > .pesto-container{
	max-width:var(--pesto-content);margin-inline:auto;
	padding-inline:var(--pesto-edge);box-sizing:border-box;
}

/* Element, który MA być pełnej szerokości, ale leży głębiej (nie jest
   bezpośrednim dzieckiem gridu) — wymuś przez wyrwanie marginesem.
   Fallback dla treści z page builderów.
   Dołączamy tu .pesto-pdp__features (sekcja 4 kart wokół zdjęcia, jak w WP
   Bakery): siedzi w wąskim panelu opisu (max-width 75ch/90ch), a jej grid
   narożników potrzebuje PEŁNEJ szerokości okna — inaczej karty są ściśnięte
   i „cięte na bokach". Reguła trzymana w base.css (model szerokości żyje tu,
   nie w woocommerce.css). WARUNEK symetrii: rodzic (panel opisu) wyśrodkowany —
   patrz margin-inline:auto na .woocommerce-Tabs-panel. */
.pesto-full--deep,
.pesto-pdp__features{
	width:100vw;max-width:100vw;
	margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);
}

/* Bezpiecznik: media nigdy nie rozpychają układu */
img,svg,video,iframe{max-width:100%;height:auto}

/* Tryb „treść na pełną szerokość" (opcja Customizera): poszerz kolumnę treści */
body.pesto-content-full .pesto-main,
body.pesto-content-full .pesto-entry__content{--pesto-content:100%}

/* ============================================================
   BUILDER NAGŁÓWKA/STOPKI — nowe elementy
   (telefon, tekst/USP, ikony social, kolumny stopki: o nas/menu/kontakt/płatności)
   ============================================================ */
/* Nagłówek: telefon + tekst/USP */
.pesto-header__phone{display:inline-flex;align-items:center;gap:.45rem;color:inherit;text-decoration:none;font-weight:600;white-space:nowrap}
.pesto-header__phone svg{flex:none}
.pesto-header__phone:hover{color:var(--pesto-accent)}
.pesto-header__text{font-size:.85rem;color:var(--pesto-muted);line-height:1.25;max-width:22ch}
@media(max-width:980px){.pesto-header__phone-txt{display:none}.pesto-header__text{display:none}}

/* Ikony social (nagłówek i stopka) */
.pesto-social{display:inline-flex;align-items:center;gap:.4rem}
.pesto-social__link{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;color:inherit;border:1px solid var(--pesto-line);transition:border-color .15s ease,color .15s ease,background .15s ease}
.pesto-social__link:hover{border-color:var(--pesto-accent);color:var(--pesto-accent)}
.pesto-header__social .pesto-social__link{width:32px;height:32px}

/* Przełącznik języka (i waluty — wspólny dropdown) w nagłówku */
.pesto-langsw,.pesto-cursw{position:relative}
.pesto-langsw__btn,.pesto-cursw__btn{display:inline-flex;align-items:center;gap:.3rem;background:none;border:0;cursor:pointer;color:inherit;font:inherit;font-weight:600;padding:.3rem .4rem;border-radius:8px}
.pesto-langsw__btn:hover,.pesto-cursw__btn:hover{color:var(--pesto-accent)}
.pesto-langsw__list,.pesto-cursw__list{position:absolute;top:100%;right:0;min-width:9rem;margin:.3rem 0 0;padding:.3rem;list-style:none;background:var(--pesto-base,#fff);border:1px solid var(--pesto-line,#e7e3da);border-radius:var(--pesto-radius-sm,12px);box-shadow:0 8px 24px rgba(0,0,0,.1);display:none;z-index:60}
.pesto-langsw.is-open .pesto-langsw__list,.pesto-cursw.is-open .pesto-cursw__list{display:block}
.pesto-langsw__list a,.pesto-cursw__list a,.pesto-cursw__list button{display:block;width:100%;text-align:left;background:none;border:0;cursor:pointer;font:inherit;padding:.45rem .6rem;border-radius:8px;color:var(--pesto-ink,#121316);text-decoration:none}
.pesto-langsw__list a:hover,.pesto-cursw__list a:hover,.pesto-cursw__list button:hover{background:var(--pesto-surface,#f3efe7)}
.pesto-langsw__list [aria-current="true"] a{font-weight:700}

/* Builder stopki: siatka kolumn + bloki */
.pesto-footer__widgets--builder{display:grid;gap:1.6rem 2rem;grid-template-columns:repeat(var(--pesto-footer-cols,3),minmax(0,1fr))}
.pesto-footer__heading{color:var(--pesto-footer-heading,#fff);font-family:var(--pesto-font-display,inherit);font-size:1rem;font-weight:700;margin:0 0 .9rem}
.pesto-footer__about .pesto-brand,.pesto-footer__about .site-title,.pesto-footer__about a{color:var(--pesto-footer-heading,#fff)}
.pesto-footer__about-text,.pesto-footer__text{margin:.7rem 0 0;line-height:1.6;font-size:.92rem;opacity:.92}
.pesto-footer__contact,.pesto-footer__menu{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.55rem;font-size:.92rem}
.pesto-footer__contact a,.pesto-footer__menu a{color:inherit;text-decoration:none;opacity:.92}
.pesto-footer__contact a:hover,.pesto-footer__menu a:hover{color:var(--pesto-footer-link-hover,var(--pesto-accent));opacity:1}
.pesto-footer__contact-item--hours{opacity:.7}
.pesto-footer__social{margin-top:.2rem}
.pesto-footer__social .pesto-social__link{color:var(--pesto-footer-fg,#cfd2d6);border-color:rgba(255,255,255,.18)}
.pesto-footer__social .pesto-social__link:hover{color:var(--pesto-footer-link-hover,var(--pesto-accent));border-color:var(--pesto-footer-link-hover,var(--pesto-accent))}
.pesto-footer__pay{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.2rem;align-items:center}
/* Białe chipy z realnym logo marki (SVG) */
.pesto-pay{display:inline-flex;align-items:center;justify-content:center;height:26px;min-width:42px;padding:0 .5rem;border-radius:6px;background:#fff;border:1px solid rgba(0,0,0,.08);box-shadow:0 1px 2px rgba(0,0,0,.1)}
.pesto-pay svg{display:block}
/* Blok „O nas" z extras: odstęp social + płatności pod tekstem */
.pesto-footer__about .pesto-footer__about-social{margin-top:.75rem}
.pesto-footer__about .pesto-footer__pay{margin-top:.6rem}
/* Blok własny HTML/shortcode */
.pesto-footer__html{font-size:.92rem;line-height:1.6}
.pesto-footer__html :where(iframe,img){max-width:100%;border:0;border-radius:8px}
.pesto-footer__html :where(p):last-child{margin-bottom:0}
.pesto-footer__img img{max-width:min(200px,100%);height:auto;display:block}
.pesto-footer__hours{white-space:normal;line-height:1.7}
@media(max-width:782px){.pesto-footer__widgets--builder{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.pesto-footer__widgets--builder{grid-template-columns:1fr}}

/* ==========================================================================
   STOPKA v2 — czysty, spójny układ (AUTORYTATYWNY; nadpisuje wcześniejsze fragmenty)
   Koniec „chaosu": kolumny wyrównane do GÓRY (jedna linia nagłówków), równy rytm,
   nagłówki z krótką kreską akcentu, listy zwarte z subtelnym hover, stonowany
   wyśrodkowany pasek dolny. Wszystko na tokenach --pesto-footer-* / --pesto-accent
   → działa na jasnej i ciemnej stopce (rebranding = zmiana tokenów, nie tego CSS).
   ========================================================================== */
.pesto-footer__inner{padding-block:clamp(2.6rem,5vw,3.8rem)}
.pesto-footer__widgets{grid-template-columns:repeat(var(--pesto-footer-cols,3),minmax(0,1fr));align-items:start;gap:clamp(1.8rem,4vw,3rem);padding-block:0;margin-bottom:0}
@media(max-width:900px){.pesto-footer__widgets{grid-template-columns:1fr 1fr;gap:2rem 2.4rem}}
@media(max-width:560px){.pesto-footer__widgets{grid-template-columns:1fr;gap:1.8rem}}
.pesto-footer__col{min-width:0}
/* Nagłówki kolumn: jednolite, z krótką kreską akcentu pod spodem */
.pesto-footer__heading{font-size:.95rem;font-weight:700;letter-spacing:.02em;margin:0 0 1.05rem;padding-bottom:.6rem;position:relative}
.pesto-footer__heading::after{content:"";position:absolute;left:0;bottom:0;width:28px;height:2px;border-radius:2px;background:var(--pesto-accent)}
/* Marka: logo u góry (równo z nagłówkami) + zwięzły opis */
.pesto-footer__col--about .pesto-footer__about{max-width:36ch}
.pesto-footer__about-text{margin:1rem 0 0;font-size:.92rem;line-height:1.65;opacity:.82;text-wrap:pretty}
/* Kontakt (HTML z etykietami E-mail/Telefon/Cím): etykiety w równej kolumnie, wartości wyrównane */
.pesto-footer__col--html .pesto-footer__html p{display:flex;flex-wrap:wrap;gap:.15rem .5rem;margin:0 0 .75rem;line-height:1.55;font-size:.92rem}
.pesto-footer__col--html .pesto-footer__html p:last-child{margin-bottom:0}
.pesto-footer__col--html .pesto-footer__html p strong{color:var(--pesto-footer-heading);font-weight:600;flex:0 0 auto;min-width:4.5rem}
.pesto-footer__html a{color:inherit;text-decoration:none;transition:color .15s ease}
.pesto-footer__html a:hover{color:var(--pesto-footer-link-hover,var(--pesto-accent))}
/* Lista „Fontos oldalak": równe, ciasne odstępy + subtelny hover (przesunięcie + akcent) */
.pesto-footer__html ul,.pesto-footer__menu{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.1rem}
.pesto-footer__html ul li,.pesto-footer__menu li{margin:0}
.pesto-footer__html ul a,.pesto-footer__menu a{display:inline-block;padding:.36rem 0;font-size:.92rem;opacity:.85;transition:color .15s ease,transform .15s ease,opacity .15s ease}
.pesto-footer__html ul a:hover,.pesto-footer__menu a:hover{opacity:1;transform:translateX(3px);color:var(--pesto-footer-link-hover,var(--pesto-accent))}
/* Dolny pasek: wyśrodkowany, stonowany, subtelna kreska nad całą szerokością */
.pesto-footer__bottom{justify-content:center;text-align:center;margin-top:clamp(2rem,4vw,2.8rem);padding-top:1.35rem;border-top:1px solid color-mix(in srgb,var(--pesto-footer-fg,#888) 18%,transparent)}
.pesto-footer__copy{border:0;margin:0;padding:0;font-size:.85rem;opacity:.72}
/* Mobile: etykieta kontaktu nad wartością (czytelniej na wąskim ekranie) */
@media(max-width:560px){.pesto-footer__col--html .pesto-footer__html p strong{flex-basis:100%;min-width:0}}

/* ==========================================================================
   STOPKA AUTOMATYCZNA (0.8.1) — 4 kolumny z danych sklepu (inc/footer-auto.php).
   Siatka i wygląd dziedziczone ze „STOPKA v2”; tu tylko liczba kolumn i proporcje
   (marka szersza). Responsywność: reguły v2 (≤900px 2 kol., ≤560px 1 kol.).
   ========================================================================== */
.pesto-footer__widgets--auto{--pesto-footer-cols:4}
@media(min-width:901px){.pesto-footer__widgets--auto{grid-template-columns:1.4fr 1fr 1.2fr 1.1fr}}
.pesto-footer__widgets--auto .pesto-footer__about-social{margin-top:1rem}
.pesto-footer__widgets--auto .pesto-footer__pay{margin-top:1rem}

/* ============================================================
   KONTRAST LINKÓW W KASIE/KOSZYKU + WIDOCZNY FOKUS KLAWIATURY (audyt CRO/UX 2026-10, rank 30; B-016, B-017)
   ------------------------------------------------------------
   PROBLEM 1: zwykłe linki w kasie/koszyku (regulamin, polityka prywatności, „Oblicz koszt wysyłki", linki w komunikatach)
   dziedziczyły globalne `a{color:var(--pesto-accent)}` — koral #ff6260 na kremowym tle = 2,74:1 (norma AA tekstu: 4,5:1).
   LEKARSTWO: ten sam kolor co linki w treści stron — var(--pesto-link, var(--pesto-accent-d)). Zmierzone na 8 sklepach:
   felinela/kociecentrum #572c59 = 10,3:1 (krem) / 11,0:1 (biel); trunava #2e4a7d = 8,2:1 / 8,8:1. Kolor akcentu NIE jest ruszany
   (przyciski, plakietki — decyzja właściciela). Linki są podkreślone (domyślne text-decoration), więc nie opierają się tylko na kolorze.
   PROBLEM 2: obrys fokusu w kolorze akcentu miał ~2,7:1 na kremie/bieli (norma 1.4.11: 3:1), a pola formularzy/stepper ilości
   miały `outline:none` i tylko blady cień (18% akcentu).
   LEKARSTWO: jeden token --pesto-focus (tusz, ≥ 16:1 na jasnych tłach sklepów) i obrys DWUTONOWY: ciemny 3 px + jasny odstęp 2 px
   (box-shadow w kolorze powierzchni) — czytelny na koralu, bieli i na ciemnym tle (stopka), gdzie ciemny obrys znika, a jasny odstęp zostaje.
   Kolor akcentu zostaje w hoverach i w stylu marki; fokus jest osobną osią (dostępność).
   ============================================================ */
.woocommerce-terms-and-conditions-link,
.woocommerce-privacy-policy-link,
.shipping-calculator-button,
.woocommerce-checkout :is(.showcoupon,.showlogin),
.woocommerce-LostPassword a,
.pesto-co__placeorder a:not(.button),
.woocommerce-checkout #order_review a:not(.button),
.woocommerce-checkout .woocommerce-form__label a,
:is(.woocommerce-cart,.woocommerce-checkout,.woocommerce-account) :is(.woocommerce-info,.woocommerce-message,.woocommerce-error) a:not(.button){
	color:var(--pesto-link,var(--pesto-accent-d))
}

/* :where() = swoistość 0, więc wyjątki poniżej (0,2,x) wygrywają bez wyścigu zbrojeń; !important, bo pola/stepper miały `outline:none`/`box-shadow:none!important`. */
:where(a,button,input,select,textarea,summary,[tabindex]:not([tabindex="-1"])):focus-visible{
	outline:3px solid var(--pesto-focus)!important;
	outline-offset:2px!important;
	box-shadow:0 0 0 2px var(--pesto-base,#fff)!important
}
/* Stepper ilości (+/−): kontener ma overflow:hidden, więc obrys na zewnątrz byłby ucinany — pierścień idzie DO WEWNĄTRZ, bez cienia */
:is(.pesto-qty,.quantity) :is(input.qty,.pesto-qty-btn,.pesto-qbtn):focus-visible{
	outline-offset:-3px!important;
	box-shadow:none!important
}
/* Nakładka wyszukiwarki: pole nie ma własnej ramki (siedzi w „pigułce") — pierścień na całej pigułce zamiast na polu */
.pesto-search__input:focus-visible{outline:0!important;box-shadow:none!important}
.pesto-search__form:focus-within{outline:3px solid var(--pesto-focus);outline-offset:2px;box-shadow:0 0 0 2px var(--pesto-base,#fff)}
/* Chipy filtrów: input jest ukryty, więc obrys dostaje cały chip (przeglądarki bez :has() — jak dotąd) */
.pesto-filters__chip:has(input:focus-visible){outline:3px solid var(--pesto-focus);outline-offset:2px;box-shadow:0 0 0 2px var(--pesto-base,#fff)}

/* ============================================================
   A11Y + CELE DOTYKOWE v9 — CZĘŚĆ OGÓLNA (audyt CRO/UX 2026-10; B-010 „koral jako tekst", B-055, B-024, WCAG 2.4.11)
   ------------------------------------------------------------
   Ten blok leży NA KOŃCU base.css (ostatni wygrywa kaskadę); reguły SPECYFICZNE dla WooCommerce (koszyk, kasa, karta produktu) są
   w woocommerce.css w bloku o tej samej nazwie. Tu tylko to, co działa także na sklepie BEZ WooCommerce (menu, stopka, logo, eyebrow).
   Zasady: zero kolorów na sztywno (tokeny), zero overflow na html/body (psuje sticky), zero reguł od szerokości okna przeglądarki.
   Cele dotykowe powiększamy TYLKO na telefonie/tablecie (<=782 px lub wskaźnik „coarse"); desktop z myszą bez zmian układu.
   ============================================================ */

/* (a) Tekst w kolorze akcentu NA JASNYM TLE — koral #ff6260 ma tam 2,74:1 (norma 4,5:1): bierzemy --pesto-accent-on-light
   (pochodna od akcentu-hover, zawsze >= 4,5:1). Kolor akcentu (tła, przyciski) NIE zmienia się. Nagłówek ciemny: zostaje akcent (jasny tekst na ciemnym). */
.pesto-eyebrow,
.pesto-hero h1 em{color:var(--pesto-accent-on-light)}
body:not(.pesto-has-dark-header) .pesto-header .pesto-menu > li > a:hover,
body:not(.pesto-has-dark-header) .pesto-header .pesto-menu .current-menu-item > a,
body:not(.pesto-has-dark-header) .pesto-header :is(.pesto-header__phone,.pesto-langsw__btn,.pesto-cursw__btn):hover,
.pesto-menu > li.pesto-mega .sub-menu .sub-menu a:hover,
.pesto-pill:hover,
.pesto-cat:hover .pesto-cat__name,
.pesto-card__title a:hover{color:var(--pesto-accent-on-light)}
/* (f) Aktywna pigułka: tło zostaje akcentem także po najechaniu — tekst MUSI zostać tuszem na akcencie
   (wcześniej .pesto-pill:hover malowało tekst kolorem tła = 1:1). */
.pesto-pill--active:hover{color:var(--pesto-accent-ink)}

/* (d) Cele dotykowe >= 44 px: logo, stopka, menu mobilne, narzędzia nagłówka (wystarczy pole klikalne, wygląd bez zmian). */
@media (max-width:782px),(pointer:coarse){
	a.custom-logo-link{min-height:44px;min-width:44px}
	.pesto-header :is(.pesto-langsw__btn,.pesto-cursw__btn,.pesto-header__phone,.pesto-header__cta){min-height:44px;min-width:44px}
	.pesto-footer :is(ul,ol) a,
	.pesto-footer__contact a,
	.pesto-footer__col--html .pesto-footer__html p > a,
	.pesto-footer__bottom a,
	.pesto-footer__copy a{display:inline-flex;align-items:center;min-height:44px;min-width:44px}
	.pesto-footer .pesto-social__link{width:44px;height:44px}
}
@media (max-width:860px){
	/* Pozycje menu mobilnego (także podmenu/kategorie): cały wiersz jest celem, nie tylko tekst */
	.pesto-nav .pesto-menu a{display:flex;align-items:center;min-height:44px}
}

/* (g) Mega menu — linki „Zobacz wszystkie…" (inc/mega-menu.php, klasa .pesto-mega__all): wyglądają jak LINK (podkreślenie, zwykła wielkość liter),
   a nie jak kolejny wersalikowy nagłówek kolumny. Kolor z tuszu (panel jest jasny), hover w akcencie na jasnym tle (>= 4,5:1). */
.pesto-nav .pesto-menu > li.pesto-mega .sub-menu li.pesto-mega__all > a{
	font-weight:700;font-size:.92rem;letter-spacing:0;text-transform:none;color:var(--pesto-ink);
	text-decoration:underline;text-underline-offset:3px;border-bottom:0
}
.pesto-nav .pesto-menu > li.pesto-mega .sub-menu li.pesto-mega__all > a:hover{color:var(--pesto-accent-on-light)}


/* ==========================================================================
   STRONA GŁÓWNA v2 (audyt CRO/UX 2026-10, N-1; wdrożenie HM1) — strona wygląda na skończoną z samych danych sklepu.
   ------------------------------------------------------------------------
   Blok leży NA KOŃCU base.css (ostatni wygrywa kaskadę nad starszymi regułami strony głównej wyżej). Znaczniki: front-page.php.
   Zasady: zero kolorów na sztywno (tokeny marki), zero stylów inline w PHP, zero overflow na html/body (psuje sticky),
   układ liczony z liczby elementów (kolaż 2/3 zdjęcia, kafle 4–6 w rzędzie), a nie z szerokości okna, więc nic nie skacze (CLS).
   Rebranding = zmiana zmiennych w pierwszej regule bloku (albo --pesto-* w :root).
   ========================================================================== */
.pesto-front{
	/* Odstęp między kaflami kategorii i produktami sekcji. */
	--pesto-home-gap:clamp(.7rem,.4rem + 1vw,1.1rem);
	/* Ile kafli kategorii w rzędzie: tablet 3, telefon 2, komputer z klasy .pesto-cats--cN (liczy PHP, inc/home.php). */
	--pesto-home-cats-cols:3;
	/* Kolaż zdjęć w hero (bez własnego obrazu): odstęp i zaokrąglenie kafelków. */
	--pesto-home-collage-gap:.55rem;
	--pesto-home-tile-radius:var(--pesto-radius-lg);
	/* Kafel kategorii bez zdjęcia: tło z tokenów marki. */
	--pesto-home-ph-from:color-mix(in srgb,var(--pesto-accent) 16%,var(--pesto-surface));
	--pesto-home-ph-to:var(--pesto-surface);
	--pesto-home-ph-icon:44px;
	/* Sekcja „O nas” bez obrazu: wąska, wyśrodkowana kolumna. */
	--pesto-home-story-max:46rem;
	/* Mniejszy oddech sekcji „Promocje”/„Nowości” pod główną listą produktów. */
	--pesto-home-compact-pad:calc(var(--pesto-section-pad,64px) * .6);
}

/* (a) Hero bez własnego obrazu: kolaż 2–3 zdjęć produktów (albo kategorii) na tle znaku marki. Pudełko .pesto-hero__media ma stałe
   proporcje, kolaż jest w nim ułożony absolutnie, więc ładowanie zdjęć nie przesuwa układu. */
.pesto-hero__collage{position:absolute;inset:5%;display:grid;grid-template-columns:1.12fr .88fr;grid-template-rows:1fr 1fr;gap:var(--pesto-home-collage-gap)}
.pesto-hero__tile{position:relative;min-width:0;min-height:0;overflow:hidden;border-radius:var(--pesto-home-tile-radius);background:var(--pesto-base);box-shadow:var(--pesto-shadow)}
/* Hero bez podtytułu (sklep bez progu darmowej dostawy): przyciski nie dotykają nagłówka. */
.pesto-hero h1 + .pesto-hero__cta{margin-top:1.5rem}
.pesto-hero__tile > img{display:block;width:100%;height:100%;object-fit:cover}
.pesto-hero__collage .pesto-hero__tile:nth-child(1){grid-row:1 / span 2}
.pesto-hero__collage--n2 .pesto-hero__tile:nth-child(2){grid-row:1 / span 2}

/* (b) Kafle kategorii: rząd z wyśrodkowaniem niepełnego rzędu (nigdy „sierota” przy lewej krawędzi), szerokość kafla z liczby kolumn.
   Zdjęcie to <img> (wymiary + srcset z WordPressa), nie background-image. */
.pesto-cats{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--pesto-home-gap)}
.pesto-cat{flex:0 0 calc((100% - (var(--pesto-home-cats-cols) - 1) * var(--pesto-home-gap)) / var(--pesto-home-cats-cols));min-width:0}
.pesto-cat__img{position:relative;overflow:hidden}
.pesto-cat__photo{display:block;width:100%;height:100%;object-fit:cover}
.pesto-cat__img--ph{background:linear-gradient(135deg,var(--pesto-home-ph-from),var(--pesto-home-ph-to))}
.pesto-cat__img--ph svg{width:var(--pesto-home-ph-icon);height:var(--pesto-home-ph-icon)}
.pesto-cat__name{flex:1;display:flex;align-items:center;justify-content:center;overflow-wrap:anywhere;hyphens:auto}
@media (min-width:981px){
	/* Zapas dla starego HTML z pamięci podręcznej strony (bez klasy --cN): 5 kolumn zamiast 3 olbrzymich kafli, do czasu wyczyszczenia cache. */
	.pesto-cats{--pesto-home-cats-cols:5}
	.pesto-cats--c4{--pesto-home-cats-cols:4}
	.pesto-cats--c5{--pesto-home-cats-cols:5}
	.pesto-cats--c6{--pesto-home-cats-cols:6}
}
@media (max-width:560px){
	.pesto-cats{--pesto-home-cats-cols:2}
}

/* (c) Pas zaufania: skrót `padding:1.2rem 0` wyżej zerował boczne wcięcie kontenera, więc na telefonie ikona dotykała krawędzi ekranu
   (audyt B-046) — przywracamy wcięcie (tylko poziome, pionowe zostaje z reguł wyżej). Na telefonie nieparzysta liczba kafli (3):
   ostatni na całą szerokość, wyśrodkowany, zamiast dziury obok. */
.pesto-trust__grid{padding-inline:var(--pesto-gap,clamp(1rem,4vw,2rem))}
/* Tablet (561–980 px): 4 kafle w układzie 2×2 (wcześniej 3 + 1 sierota); 3 kafle zostają w jednym rzędzie. */
@media (min-width:561px) and (max-width:980px){
	.pesto-trust__grid--n4{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:560px){
	.pesto-trust__item:nth-child(odd):last-child{grid-column:1 / -1;justify-self:center}
}

/* (d) „Promocje” i „Nowości” pod główną listą: zwarte sekcje, bez podwójnego odstępu między sobą. */
.pesto-section--compact{padding-block:var(--pesto-home-compact-pad)}
.pesto-section--compact + .pesto-section--compact{padding-top:0}
.pesto-section--compact :is(.pesto-section__head){margin-bottom:1.2rem}
/* Dwie karty w sekcji (parzysta liczba ma 2 lub 4): na szerokim ekranie wyśrodkowane, w szerokości dwóch kolumn siatki sklepu. */
@media (min-width:901px){
	.pesto-section--n2 .woocommerce ul.products{grid-template-columns:repeat(2,1fr);max-width:calc(50% - var(--pesto-card-gap,22px) / 2);margin-inline:auto}
}

/* (e) „O nas” bez obrazu: wąski, wyśrodkowany blok tekstu zamiast pustej ramki z łapką obok. */
.pesto-story__grid--solo{grid-template-columns:1fr;justify-items:center;text-align:center;max-width:var(--pesto-home-story-max);margin-inline:auto}
.pesto-story__grid--solo p{margin-inline:auto}

/* (f) Pas newslettera: nagłówek dziedziczy biel pasa. Globalny `h2{color:ink}` malował go atramentem na atramentowym tle (nagłówek niewidoczny,
   widać było tylko podpis). Pas był wyłączony na żywych sklepach, a teraz pojawia się sam, gdy działa formularz (moduł Newsletter). */
.pesto-club h2{color:inherit}
/* Ozdobne koło (::before) leżało NAD przyciskiem zapisu i zakrywało go półprzezroczystą plamą (napis przycisku tracił kontrast).
   isolation + z-index:-1 chowa je pod treść pasa, ale nad jego tło. */
.pesto-club{isolation:isolate}
.pesto-club::before{z-index:-1}


/* ============================================================
   DOPRACOWANIE „FEEL” (0.8.15) — typografia, nagłówek, menu mobilne
   Subtelne poprawki jakości, bez zmiany układu. Wszystko z tokenów --pesto-*.
   ============================================================ */

/* Zapasowy font o metrykach Intera (Arial dopasowany rozmiarem): przy podmianie fontu tekst prawie się nie przesuwa (CLS).
   Stos Inter w pesto_font_registry() kończy się „Pesto Fallback”, zanim przejdzie na font systemowy. */
@font-face {
	font-family: "Pesto Fallback";
	src: local("Arial");
	size-adjust: 107.4%;
	ascent-override: 90.2%;
	descent-override: 22.5%;
	line-gap-override: 0%;
}

:root {
	color-scheme: light; /* formularze i paski przewijania nie wpadają w automatyczny ciemny tryb przeglądarki */
	accent-color: var(--pesto-accent); /* natywne pola wyboru, przełączniki i suwaki w kolorze marki (przeglądarka sama dobiera kontrastowy znacznik) */
}

body {
	font-optical-sizing: auto;
	/* Dotknięcie na telefonie: delikatna poświata w kolorze marki zamiast szarego mignięcia. */
	-webkit-tap-highlight-color: color-mix(in srgb, var(--pesto-accent) 16%, transparent);
}

a,
button,
summary,
label,
input,
select,
textarea {
	touch-action: manipulation; /* bez opóźnienia i przypadkowego powiększenia przy podwójnym dotknięciu */
}

h1,
h2,
h3 {
	text-wrap: balance; /* równe linie nagłówków, bez „sierot” */
}

p,
li,
figcaption {
	text-wrap: pretty; /* unika pojedynczego słowa w ostatnim wierszu */
}

/* Ceny i sumy: cyfry tej samej szerokości — kolumny kwot równo pod sobą, brak „drgania” przy zmianie ilości. */
.price,
.amount,
.woocommerce-Price-amount,
td.product-subtotal,
.pesto-price {
	font-variant-numeric: tabular-nums;
}

/* Nagłówek „zmniejsz po przewinięciu”: kurczył się tylko zewnętrzny kontener, a wewnętrzny blok trzymał pełną wysokość
   (opcja nie działała). Teraz kurczy się wnętrze, a logo ma ograniczoną wysokość, żeby nie „skakało”. */
.pesto-header__inner {
	transition: min-height 0.2s ease;
}

.pesto-shrink-header.pesto-has-sticky-header.pesto-scrolled .pesto-header__inner {
	min-height: calc(var(--pesto-header-h) * 0.76);
}

.pesto-shrink-header.pesto-has-sticky-header .pesto-header__inner img {
	transition: max-height 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
	.pesto-header__inner,
	.pesto-shrink-header.pesto-has-sticky-header .pesto-header__inner img {
		transition: none;
	}
}

/* Menu mobilne: nagłówki podkategorii to były szare WERSALIKI 800 (krzyk, słaba czytelność) i zaokrąglone „pigułki” wierszy.
   Teraz zwykły tekst w kolorze tuszu, wygodny cel dotyku 44 px i cienka linia między pozycjami. */
@media (max-width: 860px) {
	.pesto-nav .pesto-menu > li.pesto-mega > .sub-menu > li > a {
		font-size: 1rem;
		font-weight: 600;
		letter-spacing: 0;
		text-transform: none;
		color: var(--pesto-ink);
		border-bottom: 0;
		margin-bottom: 0;
	}

	.pesto-menu .sub-menu a {
		display: flex;
		align-items: center;
		min-height: 44px;
		border-radius: 0;
		color: var(--pesto-body);
	}

	.pesto-menu .sub-menu li + li {
		border-top: 1px solid var(--pesto-line);
	}
}


/* Panel menu mobilnego — położenie i wysokość odporne na otoczenie.
   Dotąd panel był „fixed” z położeniem liczonym od wysokości nagłówka: działało tylko dzięki temu, że rozmycie tła (backdrop-filter)
   robi z nagłówka układ odniesienia, i psuło się przy pasku nad nagłówkiem, kurczeniu nagłówka albo trybie bez rozmycia (Redakcyjny).
   Teraz panel jest zawsze tuż pod nagłówkiem (nagłówek jest „sticky”, więc jest jego układem odniesienia), a wysokość uwzględnia
   pasek nad nagłówkiem (--pesto-nav-reserve) i dolny pasek aplikacji (--pesto-mab-h, 0 gdy moduł wyłączony) — ostatnie pozycje
   nie chowają się pod paskiem i dają się przewinąć. */
@media (max-width: 860px) {
	.pesto-header .pesto-nav {
		position: absolute;
		inset: 100% 0 auto;
		max-height: calc(100vh - var(--pesto-header-h) - var(--pesto-nav-reserve) - var(--pesto-mab-h, 0px));
		max-height: calc(100dvh - var(--pesto-header-h) - var(--pesto-nav-reserve) - var(--pesto-mab-h, 0px));
	}
}

/* Rozwijane podmenu (skrypt assets/js/nav-mobile.js; zwijanie włącza dopiero klasa .pesto-nav--acc, więc bez JS menu jest rozwinięte). */
.pesto-sub-toggle {
	display: none;
}

@media (max-width: 860px) {
	.pesto-nav--acc .pesto-menu li.menu-item-has-children {
		position: relative;
	}

	.pesto-nav--acc .pesto-menu li.menu-item-has-children > a {
		padding-inline-end: 3rem;
	}

	/* Strzałka „desktopowa” przy pozycji z podmenu zastępuje przycisk. */
	.pesto-nav--acc .pesto-menu > li.menu-item-has-children > a::before {
		display: none;
	}

	.pesto-nav--acc .pesto-sub-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		inset-block-start: 0;
		inset-inline-end: 0;
		width: 44px;
		height: 44px;
		padding: 0;
		background: transparent;
		border: 0;
		border-radius: 0;
		color: var(--pesto-ink);
		cursor: pointer;
	}

	.pesto-nav--acc .pesto-sub-toggle::before {
		content: "";
		width: 8px;
		height: 8px;
		border-inline-end: 2px solid currentColor;
		border-block-end: 2px solid currentColor;
		transform: translateY(-2px) rotate(45deg);
		transition: transform 0.15s ease;
	}

	.pesto-nav--acc .pesto-sub-toggle[aria-expanded="true"]::before {
		transform: translateY(2px) rotate(-135deg);
	}

	.pesto-nav--acc .pesto-menu li.menu-item-has-children:not(.is-sub-open) > .sub-menu {
		display: none;
	}
}

@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
	.pesto-nav--acc .pesto-sub-toggle::before {
		transition: none;
	}
}

/* Mega-menu na komputerze (N-02): panel był wyśrodkowany względem WĄSKIEGO bloku nawigacji (.pesto-nav ma szerokość samych pozycji menu),
   więc przy krótkim menu (3–5 pozycji) jego lewa krawędź wychodziła za ekran (zmierzone: x = −133 px przy oknie 1100 px). Teraz panel jest
   wyśrodkowany względem całego nagłówka (jest „sticky”, więc jest układem odniesienia) — zawsze mieści się w oknie (szerokość z reguły wyżej:
   min(920px, 100vw − 2rem)) i zaczyna się tuż pod nagłówkiem. Przezroczysty „mostek” nad panelem utrzymuje :hover przy przejściu kursora
   z pozycji menu do panelu (między pozycją a dolną krawędzią nagłówka jest kilkadziesiąt pikseli). */
@media (min-width: 981px) {
	.pesto-nav {
		position: static;
	}

	.pesto-nav .pesto-menu > li.pesto-mega > .sub-menu::before {
		content: "";
		position: absolute;
		inset-inline: 0;
		bottom: 100%;
		height: var(--pesto-header-h, 74px);
	}
}

/* ==========================================================================
   STOPKA — KONTAKT KONFIGUROWALNY NA ŻYWO (HM2-stopka-kontakt; PHP: inc/footer-contact.php)
   Blok leży NA KOŃCU base.css (autorytatywny, wygrywa kolejnością źródła — jak „STOPKA v2”). Każda zmiana = podbicie PESTOTHEME_VERSION.
   Rebranding = zmiana tokenów poniżej; kolory pochodzą z --pesto-footer-* (Customizer → Stopka), więc działa na jasnej
   i ciemnej stopce; czytelność tekstu/nagłówków/hover pilnuje PHP (pesto_footer_ink_vars → emituje poprawione tokeny).
   ========================================================================== */
.pesto-footer{
	--pesto-fcontact-gap:.1rem;          /* odstęp między pozycjami kontaktu */
	--pesto-fcontact-icon:18px;          /* rozmiar ikony pozycji */
	--pesto-fcontact-icon-gap:.7rem;     /* odstęp ikona → tekst */
	--pesto-fcontact-tap:44px;           /* min. cel dotykowy linku (tel:, mailto:) — WCAG 2.5.5 */
	--pesto-fcontact-ico-opacity:.8;     /* ikony są dekoracją: stonowane względem tekstu */
	--pesto-footer-social-line:color-mix(in srgb,var(--pesto-footer-fg,currentColor) 30%,transparent); /* obrys ikon social: widoczny też na jasnej stopce */
}

/* --- Lista kontaktu: ikona + tekst, telefon i e-mail jako duże cele dotykowe --- */
.pesto-footer__contact{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--pesto-fcontact-gap);font-size:.95rem}
.pesto-footer__contact-item{display:flex;align-items:flex-start;gap:var(--pesto-fcontact-icon-gap);margin:0;line-height:1.5;opacity:1}
/* Pozycje bez linku (adres, godziny) mają własny, mały oddech — linki dostają wysokość z celu dotykowego */
.pesto-footer__contact-item--addr,.pesto-footer__contact-item--hours{padding-block:.45rem}
.pesto-footer__contact .pesto-footer__contact-link{display:flex;align-items:center;gap:var(--pesto-fcontact-icon-gap);min-height:var(--pesto-fcontact-tap);min-width:var(--pesto-fcontact-tap);padding:0;color:inherit;text-decoration:none;opacity:1}
.pesto-footer__contact-ico{flex:0 0 auto;width:var(--pesto-fcontact-icon);height:var(--pesto-fcontact-icon);opacity:var(--pesto-fcontact-ico-opacity)}
.pesto-footer__contact-item--addr .pesto-footer__contact-ico,.pesto-footer__contact-item--hours .pesto-footer__contact-ico{margin-top:.18em}
.pesto-footer__contact-text{min-width:0;overflow-wrap:anywhere}
/* Numer telefonu = najważniejsza akcja: pogrubiony, cyfry równej szerokości; podpis (np. „Infolinia”) nad numerem */
.pesto-footer__contact-item--phone .pesto-footer__contact-text{font-weight:600;font-variant-numeric:tabular-nums}
.pesto-footer__contact-label{display:block;font-size:.8rem;font-weight:500;line-height:1.25;letter-spacing:.02em}
/* Hover/fokus: zmiana koloru (token poprawiony pod tło stopki) ORAZ podkreślenie — nie sam kolor (WCAG 1.4.1) */
.pesto-footer__contact .pesto-footer__contact-link:hover,
.pesto-footer__contact .pesto-footer__contact-link:focus-visible{color:var(--pesto-footer-link-hover,var(--pesto-accent));opacity:1}
.pesto-footer__contact .pesto-footer__contact-link:hover .pesto-footer__contact-text,
.pesto-footer__contact .pesto-footer__contact-link:focus-visible .pesto-footer__contact-text{text-decoration:underline;text-underline-offset:3px}
/* Godziny nie są wyszarzane (opacity .7 z buildera obniżało kontrast) */
.pesto-footer__contact-item--hours{opacity:1}

/* --- Hover linków stopki: JEDEN kolor z tokenu --pesto-footer-link-hover (PHP poprawia go pod tło stopki) + podkreślenie
       (kolor sam w sobie nie wystarcza przy małej różnicy tonów, WCAG 1.4.1). Starsze reguły malowały hover linków list
       (.pesto-footer ul a:hover, swoistość 0,2,2) na BIAŁO, a pozostałych linków na akcent: na jasnej stopce to 1,15:1 / 2,55:1. --- */
.pesto-footer a:not(.pesto-btn):hover,
.pesto-footer ul a:hover{color:var(--pesto-footer-link-hover,var(--pesto-accent))}
.pesto-footer__menu a:hover,.pesto-footer__html a:hover,.pesto-footer__bottom a:hover{text-decoration:underline;text-underline-offset:3px}

/* --- Dolny pasek: tekst praw autorskich i link „Ustawienia cookies” miały kolor z przezroczystością (75%) PLUS opacity .72
       = ok. 3,2:1 na jasnej stopce. Teraz kolor tekstu stopki rozjaśniony mieszaniem z tłem stopki (bez alfa): >= 4,5:1. --- */
.pesto-footer__copy{opacity:1;color:color-mix(in srgb,var(--pesto-footer-fg) 82%,var(--pesto-footer-bg))}
.pesto-footer__bottom .pesto-footer__cookies{color:color-mix(in srgb,var(--pesto-footer-fg) 82%,var(--pesto-footer-bg))}
.pesto-footer__bottom .pesto-footer__cookies:hover{color:var(--pesto-footer-link-hover,var(--pesto-accent))}

/* --- Nagłówki widżetów w stopce (h2.pesto-widget__title z setup.php) dziedziczyły kolor tuszu → znikały na ciemnej
       stopce (felinela.de, B-042). Teraz kolor z tokenu nagłówka stopki, wygląd jak nagłówki kolumn. --- */
.pesto-footer .pesto-widget__title,.pesto-footer__widgets h2{color:var(--pesto-footer-heading);font-family:var(--pesto-font-display,inherit);font-size:.95rem;font-weight:700;letter-spacing:.02em;margin:0 0 1.05rem}

/* --- Ikony social: obrys z koloru tekstu stopki (wcześniej biały półprzezroczysty = niewidoczny na jasnej stopce) --- */
.pesto-footer__social .pesto-social__link{border-color:var(--pesto-footer-social-line)}

/* --- Telefon/tablet: kolumny w stos/2 kolumny, a „Kontakt” zaraz po marce (wysoko, nie na samym dole za długimi listami) --- */
@media(max-width:900px){
	.pesto-footer__widgets--auto .pesto-footer__col--about{order:1}
	.pesto-footer__widgets--auto .pesto-footer__col--contact{order:2}
	.pesto-footer__widgets--auto .pesto-footer__col--shop{order:3}
	.pesto-footer__widgets--auto .pesto-footer__col--info{order:4}
}

/* Pas zaufania: ikona w kółku. Reguła „.pesto-trust__item span” (blok + szary kolor) przesłaniała display:grid i kolor akcentu, więc ikony siedziały przy górnej krawędzi kółka i były szare. */
.pesto-trust__item .pesto-trust__ic{display:grid;place-items:center;color:var(--pesto-accent)}


/* Menu główne na komputerze: etykieta nigdy nie łamie się w środku („Karma / sucha”, „O / nas” przy 9 pozycjach). Gdy pozycji jest za dużo na jeden rząd,
   do drugiego rzędu przechodzi cała pozycja (wrap), a nie pojedyncze słowo. Tylko poziome menu (od 861 px); menu mobilne i kolumny mega-menu bez zmian. */
@media (min-width: 861px) {
	.pesto-header .pesto-menu { flex-wrap: wrap; row-gap: 0; }
	.pesto-header .pesto-menu > li { flex: 0 0 auto; }
	.pesto-header .pesto-menu > li > a { white-space: nowrap; }
	/* 8+ pozycji (klasa z pesto_primary_menu_class()): odstępy i pismo o 1 px mniejsze, żeby menu zmieściło się w jednym rzędzie obok logo i narzędzi. */
	.pesto-header .pesto-menu--dense { column-gap: clamp(0.6rem, 0.2rem + 0.8vw, 1.1rem); }
	.pesto-header .pesto-menu--dense > li > a { font-size: calc(var(--pesto-menu-size, 15px) - 1px); }
}
