/* quietplugs 6.0 „Karta produktu” · theme.css
   Wszystkie strony: krój, tokeny, baza, typografia, pasek ogłoszeń i nagłówek,
   przyciski, komunikaty, szuflada koszyka, strony tekstowe, stopka, ruch.
   Strona Q01: p01.css, sklep: shop.css. */

/* ---------- krój (OFL, plik zmienny z @fontsource-variable, zakresy jak w Google Fonts; cyrylica z Inter 4.001, oś opsz = 14) ---------- */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokeny ----------
   Biel, szara płaszczyzna i czerń jako trzy podłoża. Tekst grafitowy, drugi plan szary.
   Podłoże strony jest wyłącznie białe, działanie (przycisk zakupu, odnośnik) czarne — decyzja
   właściciela 03.10.2026. Szarość --card zostaje tylko dla małych paneli (podsumowanie w kasie,
   komunikaty). Kolor wybranych wkładek żyje w produkcie i w próbce (--c); ustawia go p01.js. */
:root {
  color-scheme: light;

  --paper: #fff;
  --card: #f5f5f7;    /* szara płaszczyzna sekcji i kart */
  --dark: #000;       /* pełnoekranowa czerń z jedną liczbą */
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: #d2d2d7;
  --accent: #000;     /* działanie: czerń */
  --on-accent: #fff;
  --logo: #1d1d1f;
  --ok: #1e8a4f;
  --error: #b3261e;
  --scrim: rgb(0 0 0 / 0.45);

  --c: #3c3c41;

  --ff-text: Inter, "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --t-1: 0.75rem;     /* 12 — przypisy i drobny druk */
  --t-2: 0.875rem;    /* 14 — interfejs, etykiety, tabele */
  --t-3: 1.0625rem;   /* 17 — tekst */
  --t-4: 1.3125rem;   /* 21 — lead, nadtytuł, cena */
  --t-5: 1.75rem;     /* 28 — H3 */
  --t-6: 2.5rem;      /* 40 — nagłówek sekcji */
  --t-7: clamp(2.6rem, 7.2vw, 5.4rem);  /* nazwa produktu i 404 */
  --t-big: clamp(5rem, 17vw, 13rem);    /* jedna liczba na czerni */

  --max: 1240px;      /* karty, wykresy, kadry */
  --text: 980px;      /* kolumna tekstu */
  --gutter: 22px;
  --bar-h: 72px;
  --sec: clamp(88px, 12vw, 190px);

  --r-1: 12px;
  --r-2: 22px;
  --r-3: 26px;
  --r-ctl: 12px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --d-1: 0.25s;
  --d-2: 0.45s;
  --d-3: 0.9s;
}
@media (max-width: 760px) {
  :root { --t-3: 1rem; --t-4: 1.1875rem; --t-5: 1.5rem; --t-6: 2rem; --gutter: 20px; --bar-h: 60px; }
}

/* ---------- baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 16px); background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-text);
  font-size: var(--t-3);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Stopka zawsze na dole okna, także przy krótkiej treści (koszyk, kasa, dokumenty). */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
/* Zdjęcia bez przeciągania, zaznaczania i menu po długim przytrzymaniu na telefonie (razem z blokadą w motion.js). */
img, canvas, video { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
button, input, select, textarea { font: inherit; color: inherit; }
/* Szybkie stuknięcia w kontrolki (np. strzałki karuzel) nie przybliżają strony na telefonie — przybliżanie
   dwoma palcami zostaje (dostępność). touch-action: manipulation wyłącza tylko podwójne stuknięcie. */
a, button, input, select, textarea, label, summary, [role="button"], [role="radio"] { touch-action: manipulation; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
b, strong { font-weight: 600; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
/* Tytuły, na które fokus przenosi otwarcie koszyka albo menu, nie są kontrolkami: bez obrysu. */
[tabindex="-1"]:focus-visible { outline: none; }
::selection { background: color-mix(in oklab, var(--ink) 16%, transparent); }

.sr, .screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  font: inherit; /* nagłówek tylko dla czytnika nie wnosi domyślnego stopnia pisma */
}
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: var(--paper);
  border-radius: var(--r-pill); font-size: var(--t-2); text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--text { max-width: calc(var(--text) + 2 * var(--gutter)); }

/* ---------- typografia: wyśrodkowana, ciasna, jeden krój ---------- */
.label { font-size: var(--t-2); line-height: 1.5; color: var(--ink-2); }
.h1 { font-size: var(--t-7); font-weight: 600; line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.h2 { font-size: var(--t-6); font-weight: 600; line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
.h3 { font-size: var(--t-5); font-weight: 600; line-height: 1.2; letter-spacing: -0.025em; text-wrap: balance; }
.eyebrow { font-size: var(--t-4); font-weight: 600; letter-spacing: -0.02em; color: var(--ink-2); }
.big { font-size: var(--t-big); font-weight: 600; line-height: 0.9; letter-spacing: -0.05em; }
.big small { font-size: 0.34em; font-weight: 600; letter-spacing: -0.03em; }
/* Teksty mają własny `max-width` liczony w znakach, więc w wyśrodkowanej kolumnie samo
   `text-align: center` nie wystarcza: pudełko staje przy lewej krawędzi, a tekst centruje
   się tylko w jego obrębie (stąd podpisy pod kadrami uciekały o 400 px). Kontener, który
   centruje, podaje `--txt-mi: auto`; kontekst wyrównany do lewej nie ustawia nic. */
.lead { font-size: var(--t-4); line-height: 1.4; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; margin-inline: var(--txt-mi, 0); }
.body { max-width: 62ch; color: var(--ink-2); text-wrap: pretty; margin-inline: var(--txt-mi, 0); }
.num { font-variant-numeric: tabular-nums; }
.fine { font-size: var(--t-1); line-height: 1.5; color: var(--ink-2); max-width: 78ch; letter-spacing: 0; margin-inline: var(--txt-mi, 0); }
.center { text-align: center; --txt-mi: auto; }
.center .lead, .center .body, .center .fine { margin-inline: auto; }
/* przypisy: numer przy liczbie i lista w stopce */
/* Znak przypisu ma zawsze drobny druk (12 px), niezależnie od wielkości tekstu obok. */
sup.ref { font-size: var(--t-1); font-weight: 400; line-height: 0; vertical-align: super; letter-spacing: 0; }
sup.ref a { color: inherit; text-decoration: none; }
sup.ref a:hover { text-decoration: underline; }

/* ---------- nagłówek: wąski pasek, drobne odnośniki, jedno działanie ---------- */
.bar {
  position: sticky; top: 0; z-index: 30;
  /* Bez rozmycia tła (backdrop-filter): przeglądarka musiała je przeliczać przy każdej zmianie pod paskiem,
     a gdy pod spodem powstawało albo znikało płótno WebGL (zmiana koloru, ziarno), pasek potrafił mrugnąć. */
  background: rgb(255 255 255 / 0.97);
  border-bottom: 1px solid transparent;   /* linia dopiero po przewinięciu (.is-scrolled, motion.js) */
  transition: transform var(--d-2) var(--ease), border-color var(--d-2) var(--ease);
}
.bar.is-scrolled { border-bottom-color: rgb(0 0 0 / 0.08); }
.bar.is-hidden { transform: translateY(-100%); }
.admin-bar .bar { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .bar { top: 0; } }
.bar__in { height: var(--bar-h); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 22px; }
/* Logo zawsze na środku. Po lewej sekcje (od 1000 px) albo przycisk menu (poniżej), po prawej koszyk. */
.bar__in > .logo { grid-column: 2; grid-row: 1; }
.bar__in > .nav, .bar__in > .menubtn { grid-column: 1; grid-row: 1; justify-self: start; }
.bar__in > .nav { margin: 0; }
.bar__in > .bar__end { grid-column: 3; grid-row: 1; justify-self: end; margin: 0; }
.logo { display: inline-flex; align-items: center; height: var(--bar-h); color: var(--logo); }
/* Ostatnia litera dotyka prawej krawędzi pola rysunku (243,75 z 243,75), a wbudowane SVG przycina
   wszystko poza polem — wygładzona krawędź „s” była ucinana. Rysunek może wyjść poza pole. */
.logo__svg { height: 26px; width: auto; fill: currentColor; overflow: visible; }
@media (max-width: 760px) { .logo__svg { height: 21px; } }
/* Odstęp między pozycjami rośnie z szerokością okna: przy 1000–1100 px stały odstęp 28 px wypychał ostatnią
   pozycję na logo stojące na środku paska. */
.nav { display: none; gap: clamp(12px, calc(4vw - 28px), 28px); margin-inline: auto; font-size: var(--t-2); letter-spacing: 0; white-space: nowrap; }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: var(--bar-h); color: var(--ink); text-decoration: none; }
/* Kreska pod odnośnikiem rysuje się od lewej i znika w prawo. */
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: calc(50% - 14px); height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right center; transition: transform var(--d-2) var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left center; }
@media (min-width: 1000px) { .nav { display: flex; } }

/* Menu poniżej 1000 px (header.php, menu.js): przycisk po lewej stronie paska, arkusz na cały ekran.
   Znak menu to dwie kreski różnej długości; w otwartym menu te same kreski składają się w krzyżyk. */
.menubtn, .menu__close {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: -10px; padding: 0;
  border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer;
}
.menubtn__icon { position: relative; display: block; width: 22px; height: 12px; }
.menubtn__icon i { position: absolute; left: 0; height: 1.75px; border-radius: 1px; background: currentColor; transition: transform var(--d-2) var(--ease), width var(--d-2) var(--ease), top var(--d-2) var(--ease); }
.menubtn__icon i:first-child { top: 0; width: 22px; }
.menubtn__icon i:last-child { top: 10px; width: 13px; }
.menubtn:hover .menubtn__icon i:last-child { width: 22px; }
.menubtn__icon.is-x i { top: 5px; width: 22px; }
.menubtn__icon.is-x i:first-child { transform: rotate(45deg); }
.menubtn__icon.is-x i:last-child { transform: rotate(-45deg); }
@media (min-width: 1000px) { .menubtn { display: none; } }
/* Sekcje w pasku tylko, gdy mieszczą się obok wyśrodkowanego logo z odstępem 24 px. Progi zmierzone
   dla etykiet w każdym języku (Inter, --t-2): angielski 1000 px, polski 1160 px, ukraiński 1250 px.
   Poniżej progu — przycisk menu jak na mniejszych ekranach. Po zmianie etykiet zmierz ponownie. */
@media (min-width: 1000px) and (max-width: 1159.98px) {
  html[lang^="pl"] .nav { display: none; }
  html[lang^="pl"] .menubtn { display: inline-grid; }
}
@media (min-width: 1000px) and (max-width: 1249.98px) {
  html[lang^="uk"] .nav { display: none; }
  html[lang^="uk"] .menubtn { display: inline-grid; }
}
.menu {
  width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0;
  border: 0; background: var(--paper); color: var(--ink);
}
.menu[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.menu::backdrop { background: var(--paper); }
.menu__head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; height: var(--bar-h); padding-inline: var(--gutter); }
.menu__head .menu__close { justify-self: start; }
.menu__nav { display: grid; align-content: center; overflow: auto; padding: 8px var(--gutter) 24px; counter-reset: item; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line);
  font-size: clamp(1.75rem, 8.5vw, 2.5rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; color: var(--ink); text-decoration: none;
}
.menu__nav a::before { counter-increment: item; content: counter(item, decimal-leading-zero); min-width: 2.2em; font-size: var(--t-2); font-weight: 400; letter-spacing: 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.menu__foot { display: flex; align-items: center; justify-content: space-between; padding: 18px var(--gutter) calc(22px + env(safe-area-inset-bottom)); }
.menu__foot .langs { display: inline-flex; font-size: var(--t-3); }
html.is-menu { overflow: hidden; }  /* strona pod menu stoi */

.bar__end { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: var(--t-2); }
.tool {
  min-height: 32px; padding: 0 8px; border-radius: var(--r-pill);
  border: 0; background: transparent; color: var(--ink); opacity: 0.82;
  font-size: var(--t-1); cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: opacity var(--d-1) var(--ease), background-color var(--d-1) var(--ease);
}
.tool:hover { opacity: 1; }
.tool[aria-pressed="true"] { background: var(--ink); color: var(--paper); opacity: 1; }
.tool__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
@media (max-width: 759px) { .tool[data-qp-motion] { display: none; } }  /* na telefonie ruch idzie za ustawieniem systemu */
@media (max-width: 860px) {
  .tool__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tool { padding: 0 10px; }
}
.ghost {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 34px; padding: 0 14px;
  background: transparent; border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: var(--t-2); color: inherit; text-decoration: none; cursor: pointer;
}
.ghost:hover { border-color: var(--ink-3); }
/* Kasa na telefonie: zamiast napisu „Wróć do koszyka” po prawej — strzałka wstecz po lewej stronie logo. */
.backbtn { display: none; grid-column: 1; grid-row: 1; justify-self: start; place-items: center; width: 44px; height: 44px; margin-left: -10px; border-radius: 50%; color: var(--ink); }
.backbtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) { .backbtn { display: inline-grid; } .bar__end .ghost--back { display: none; } }
.cartbtn {
  min-height: 32px; padding: 0 4px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--t-2); color: var(--ink); text-decoration: none;
}
/* Poniżej 1000 px koszyk to ikona z licznikiem na rogu; napis zostaje dla czytników. */
.cartbtn__ico { display: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 999px) {
  .cartbtn { position: relative; width: 44px; height: 44px; margin-right: -10px; padding: 0; justify-content: center; }
  .cartbtn__ico { display: block; }
  .cartbtn__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cartbtn .count { position: absolute; top: 4px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; }
  .cartbtn .count:not(.has) { display: none; }
}
.count {
  min-width: 22px; height: 22px; padding: 0 6px;
  display: inline-grid; place-items: center;
  font-size: var(--t-1); line-height: 1; font-variant-numeric: tabular-nums;
  border-radius: var(--r-pill); background: rgb(0 0 0 / 0.08);
}
.count.has { background: var(--accent); color: var(--on-accent); }
.langs { display: inline-flex; align-items: center; gap: 2px; font-size: var(--t-2); color: var(--ink-2); }
.langs a { display: inline-grid; place-items: center; min-width: 30px; min-height: 32px; padding: 0 4px; border-radius: var(--r-1); text-decoration: none; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current="true"] { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .langs { display: none; } }

/* ---------- przyciski: niebieski to działanie ---------- */
.btn, .button {
  min-height: 50px; padding: 0 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font-weight: 400; font-size: var(--t-3); line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
  transition: border-color var(--d-1) var(--ease), background-color var(--d-2) var(--ease), filter var(--d-1) var(--ease);
}
.btn:hover, .button:hover { border-color: var(--ink-3); }
.btn--primary, .button.alt, .button.checkout-button {
  background: var(--accent); color: var(--on-accent); border-color: transparent;
}
.btn b, .button b { font-weight: inherit; }
.btn--primary:hover, .button.alt:hover, .button.checkout-button:hover { background: #2a2a2d; border-color: transparent; }
.btn--sm { min-height: 34px; padding: 0 17px; font-size: var(--t-2); }
.btn[disabled], .button:disabled, .button.disabled { opacity: 0.4; cursor: not-allowed; filter: none; }
.link {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--ink); font-size: var(--t-2); text-decoration: underline; text-underline-offset: 0.25em;
}
.link:hover { color: var(--ink-2); }

/* ---------- komunikaty WooCommerce i motywu ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .notice {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  margin: 0 0 16px; padding: 14px 18px; list-style: none;
  border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--card);
  font-size: var(--t-2); line-height: 1.5;
}
.woocommerce-message, .notice { border-color: color-mix(in oklab, var(--ok) 35%, var(--line)); background: color-mix(in oklab, var(--ok) 6%, var(--card)); }
.woocommerce-error { display: grid; gap: 6px; border-color: color-mix(in oklab, var(--error) 35%, var(--line)); background: color-mix(in oklab, var(--error) 6%, var(--card)); }
.woocommerce-error li { color: var(--ink); }
.woocommerce-message .button, .woocommerce-info .button { min-height: 40px; padding: 0 18px; font-size: var(--t-2); order: 2; }
.notices .woocommerce-notices-wrapper:not(:empty) { padding-top: 16px; }

/* ---------- szuflada koszyka ---------- */
dialog { color: var(--ink); background: var(--paper); border: 0; padding: 0; max-width: none; max-height: none; }
dialog::backdrop { background: var(--scrim); }
/* Szuflada to karta unosząca się nad rozmytą stroną: 12 px od krawędzi okna, duże zaokrąglenie. */
dialog.drawer::backdrop { background: rgb(0 0 0 / 0.22); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.drawer { width: min(460px, calc(100vw - 24px)); height: calc(100dvh - 24px); margin: 12px 12px 12px auto; border-radius: 28px; box-shadow: 0 40px 120px rgb(0 0 0 / 0.22), 0 0 0 1px rgb(0 0 0 / 0.06); overflow: hidden; }
.drawer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
@media (max-width: 640px) {
  /* Telefon: koszyk na pełną wysokość ekranu (decyzja właściciela 04.10). */
  .drawer { width: 100vw; inset: 0; height: 100dvh; max-height: none; margin: 0; border-radius: 0; }
}
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 16px 16px 26px; border-bottom: 1px solid var(--line); font-size: var(--t-3); font-weight: 600; letter-spacing: -0.015em; }
.drawer__body { overflow: auto; padding: 22px 26px; display: grid; gap: 20px; align-content: start; transition: opacity var(--d-1) var(--ease); }
.drawer[aria-busy="true"] .drawer__body { opacity: 0.55; pointer-events: none; }
.drawer__empty { color: var(--ink-2); max-width: 32ch; }
.drawer__body .link { justify-self: start; }
.drawer__foot { padding: 18px 26px calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 12px; }
.drawer__count:not(:empty) { margin-left: 10px; font-size: var(--t-2); font-weight: 400; letter-spacing: 0; color: var(--ink-3); }
.x { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: var(--r-1); background: transparent; cursor: pointer; }
.x:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); }
.x svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; fill: none; }

.lines { display: grid; gap: 16px; }
/* Propozycja „Druga para 50% taniej” (inc/promo.php): szara karta, kolory jak próbki na Q01. */
.offer { display: grid; gap: 6px; padding: 16px 18px 18px; border-radius: var(--r-1); background: var(--card); }
.offer__title { font-size: var(--t-3); font-weight: 600; letter-spacing: -0.01em; }
.offer__text { color: var(--ink-2); }
.offer__colors { display: flex; flex-wrap: wrap; gap: 10px; }
.offer__sw { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); cursor: pointer; transition: border-color var(--d-1) var(--ease), transform var(--d-1) var(--ease); }
.offer__sw span { width: 24px; height: 24px; border-radius: 50%; background: var(--sc); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08); }
.offer__sw:hover { border-color: var(--ink-3); }
.offer__sw:active { transform: scale(0.94); }
.offer__sw[aria-pressed="true"] { border-color: var(--ink); }
.offer__sw:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.offer__sw:disabled { opacity: 0.35; cursor: not-allowed; }
.offer__label { margin-top: 8px; font-size: var(--t-2); color: var(--ink-2); }
.offer__label b { font-weight: 600; color: var(--ink); }
.offer__colors { margin-top: 0; }
.offer__step { display: grid; gap: 8px; justify-items: start; }
.offer__step[hidden] { display: none; }
.offer__add { margin-top: 6px; }
.sum__save dd { color: var(--ok); }
.line { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
/* miniatura bez tła: render z białym tłem mnoży się z tłem szuflady albo podsumowania */
.line__img { width: 76px; height: 76px; overflow: hidden; isolation: isolate; background: var(--line-ground, var(--card)); border-radius: var(--r-1); }
.drawer__body, .drawer__foot { font-size: var(--t-2); }
.line__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; filter: brightness(1.006); transform: scale(-1.12, 1.12); }   /* odbicie lustrzane: decyzja właściciela 04.10 */
.line__meta { display: grid; gap: 2px; min-width: 0; }
.line__meta b { font-weight: 600; font-size: var(--t-3); letter-spacing: -0.015em; }
.line__meta > span { font-size: var(--t-2); color: var(--ink-2); }
.line__price { font-size: var(--t-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.line__meta > .line__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 6px; color: var(--ink); }
.line__remove {
  min-height: 32px; padding: 0; background: none; border: 0; cursor: pointer;
  font-size: var(--t-2); color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.line__remove:hover { color: var(--ink); }
.qty { display: inline-flex; align-items: center; gap: 2px; width: max-content; border: 1px solid var(--line); border-radius: var(--r-pill); }
.qty button { width: 34px; height: 32px; border: 0; background: none; cursor: pointer; }
.qty button:hover:not(:disabled) { background: color-mix(in oklab, var(--ink) 6%, transparent); border-radius: var(--r-pill); }
.qty button:disabled { color: color-mix(in oklab, var(--ink) 28%, transparent); cursor: default; }
.qty output { min-width: 22px; text-align: center; font-size: var(--t-2); font-variant-numeric: tabular-nums; }

.sum { display: grid; gap: 8px; }
.sum > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sum dt small { display: block; font-size: var(--t-2); color: var(--ink-2); font-weight: 400; }
.sum dd { font-variant-numeric: tabular-nums; text-align: right; }
/* pasek postępu do darmowej dostawy (szuflada koszyka): na całą szerokość wiersza pod podpisem */
.sum__ship { position: relative; padding-bottom: 12px; margin-bottom: 6px; }
.sum__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.sum__bar i { display: block; height: 100%; border-radius: inherit; background: var(--ink); transition: width var(--d-2) var(--ease); }
.sum > div:last-child { padding-top: 10px; border-top: 1px solid var(--line); font-weight: 600; font-size: var(--t-3); }
.sum strong { font-weight: 600; }

/* ---------- ramka z informacją (podziękowanie) ---------- */
.care { display: grid; gap: 8px; padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-2); }
.care p { color: var(--ink); max-width: 60ch; }

/* ---------- strony: dokumenty, pomoc, /qr, 404 ---------- */
/* Nie samo `.page`: WordPress dokleja tę klasę do <body> każdej strony, więc odstęp lądował nad
   nagłówkiem i pod stopką (koszyk, kasa, dokumenty). Odstęp należy do treści, nie do dokumentu. */
:is(main, section).page { padding-block: clamp(36px, 6vw, 72px) var(--sec); }
.page__head { margin-bottom: clamp(24px, 3vw, 40px); display: grid; gap: 12px; }
.qr-apv { max-width: 28rem; }
.qr-apv caption { padding-bottom: 8px; text-align: left; color: var(--ink-2); font-size: var(--t-2); }
.qr-apv td { font-variant-numeric: tabular-nums; }
.qr-back { margin-top: 2.4em; }
.qr-keep strong { font-weight: 600; color: var(--ink); }
.qr-print { display: none; }

/* /qr jako PDF do wydruku (scripts/qr-pdf.sh drukuje stronę w Chrome bez okna): sama instrukcja na A4,
   bez nagłówka, stopki, zgody, okien i przycisków. Odnośnik do PDF w samym PDF-ie nie ma sensu. */
@media print {
  @page { size: A4; margin: 16mm 18mm; }
  .qp-qr :is(.skip, .bar, .foot, dialog, .consent, .qr-back, .qr-keep__pdf, .qr-links, .doc__head .lead) { display: none !important; }
  .qp-qr .qr-print { display: block; }
  .qp-qr { background: #fff; color: #000; font-size: 10pt; }
  .qp-qr .doc__head { padding-block: 0 6mm; border-bottom: 0.5pt solid #000; }
  .qp-qr .doc__title { font-size: 22pt; }
  .qp-qr .doc__body { max-width: none; padding: 6mm 0 0; }
  .qp-qr .wrap { padding-inline: 0; }
  .qp-qr .prose h2 { break-after: avoid; }
  .qp-qr .prose :is(table, ol, ul) { break-inside: avoid; }
  .qp-qr .qr-apv :is(th, td) { padding-block: 1.4mm; }
  .qp-qr .prose :is(p, li) { orphans: 3; widows: 3; }
  .qp-qr .prose .fine { margin-top: 2em; color: #000; }
  .qp-qr a { color: #000; }
}
.page--404 .wrap { display: grid; gap: 18px; justify-items: start; }

/* Dokumenty i pomoc (page.php, qr.php, single.php) jak sekcje strony głównej: tytuł na środku w szarym
   pasie, wąska kolumna tekstu, pierwszy akapit jako lead, nagłówki H3 ze strony głównej. */
.doc__head { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5.5vw, 72px); border-bottom: 1px solid var(--line); }
.doc__head .wrap { display: grid; gap: 14px; }
.doc__title { font-size: clamp(2.25rem, 5.4vw, 3.5rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.doc__body { max-width: calc(720px + 2 * var(--gutter)); padding-block: clamp(40px, 6vw, 72px) var(--sec); }
.doc .prose { max-width: none; }
.doc .prose:not(.prose--plain) > p:first-child { font-size: var(--t-4); line-height: 1.45; color: var(--ink-2); }
.doc .prose h2 { margin-top: 2em; font-size: var(--t-5); line-height: 1.2; letter-spacing: -0.02em; }
.doc .prose h2 + * { margin-top: 0.7em; }
.doc .prose .fine h2 { margin-top: 0; font-size: inherit; letter-spacing: 0; }
.doc .prose a:not(.btn) { color: var(--ink); text-decoration: underline; }
.doc .prose a:not(.btn):hover { color: var(--ink-2); }
.doc .prose summary { display: flex; justify-content: space-between; gap: 18px; padding: 19px 0; list-style: none; }
.doc .prose summary::-webkit-details-marker { display: none; }
.doc .prose summary::after { content: "+"; color: var(--accent); font-size: var(--t-4); font-weight: 400; line-height: 1; }
.doc .prose details[open] summary::after { content: "–"; }

/* Formularz na stronie (śledzenie zamówienia): szara karta, pola jak w kasie. */
.qp-form { display: grid; gap: 18px; justify-items: start; padding: clamp(20px, 3vw, 28px); border-radius: var(--r-2); background: var(--card); }
.qp-form__fields { display: grid; gap: 14px; width: 100%; }
@media (min-width: 600px) { .qp-form__fields { grid-template-columns: 1fr 1.4fr; } }
.qp-field { display: grid; gap: 6px; margin: 0; }
.qp-field label { font-size: var(--t-2); color: var(--ink-2); }
.qp-field input {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-1);
  background: var(--paper); font-size: var(--t-3); letter-spacing: -0.01em;
  transition: border-color var(--d-1) var(--ease), box-shadow var(--d-1) var(--ease);
}
.qp-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent); }
.doc .prose .qp-form + h2 { margin-top: 2.4em; }
.doc .woocommerce-error, .doc .woocommerce-message, .doc .woocommerce-info { list-style: none; padding: 14px 18px; border-radius: var(--r-1); background: var(--card); }
.doc .woocommerce-error { color: var(--error); }
.doc .order-info mark { background: none; color: inherit; font-weight: 600; }

.prose { max-width: var(--text); color: var(--ink); }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2.2em; font-size: var(--t-4); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
.prose h3 { margin-top: 1.8em; font-size: var(--t-3); font-weight: 600; line-height: 1.4; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose p, .prose li { text-wrap: pretty; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--ink-2); }
.prose a:not(.btn) { color: var(--ink); }
.prose strong, .prose b { font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.prose blockquote { padding: 16px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-1); }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: var(--t-2); }
.prose th, .prose td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; }
.prose details { border-top: 1px solid var(--line); }
.prose details:last-of-type { border-bottom: 1px solid var(--line); }
.prose details + details { margin-top: 0; }
.prose summary { padding: 16px 0; font-weight: 600; cursor: pointer; }
.prose details > :not(summary) { padding-bottom: 16px; color: var(--ink-2); }
.prose .wp-block-group, .prose .wp-block-columns { display: grid; gap: 1em; }
/* Mały druk na końcu regulaminu: wzór formularza i dane sprzedawcy (tylko tam, decyzja właściciela 30.09.2026). */
.prose .fine { margin-top: 3em; font-size: var(--t-1); line-height: 1.5; color: var(--ink-2); }
.prose .fine + .fine { margin-top: 1.5em; }

/* ---------- kontakt (template-parts/contact.php) ---------- */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; margin-top: clamp(24px, 3vw, 36px); }
.contact__card { display: grid; gap: 8px; padding: clamp(20px, 2.4vw, 28px); border: 1px solid var(--line); border-radius: var(--r-2); color: var(--ink); text-decoration: none; transition: border-color var(--d-1) var(--ease), background-color var(--d-1) var(--ease); }
.contact__card:hover, .contact__card:focus-visible { border-color: var(--ink); }
.contact__label { font-size: var(--t-2); color: var(--ink-2); }
.contact__value { font-size: clamp(1.125rem, 1.6vw, 1.375rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.contact__help { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(20px, 2.4vw, 28px); }
.prose .fine h2 { margin-top: 0; font-size: inherit; }
.prose .fine > * + * { margin-top: 0.6em; }
.prose .qp-lang-note { padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-1); background: var(--card); color: var(--ink-2); }
mark.qp-missing { padding: 1px 5px; border-radius: 4px; background: #fff1c2; color: #5c4400; }

.product-simple { display: grid; gap: 32px; }
@media (min-width: 900px) { .product-simple { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.product-simple__media img { border-radius: var(--r-2); background: var(--card); }
.product-simple__info { display: grid; gap: 16px; }

/* ---------- stopka jak na apple.com: katalog odnośników i dolny wiersz, drobnym drukiem ---------- */
.foot { background: var(--paper); font-size: var(--t-2); line-height: 1.5; color: var(--ink-2); padding-bottom: env(safe-area-inset-bottom, 0px); }
/* Katalog odnośników u góry, pod nim logo na całą szerokość kolumny. */
.foot__top { display: grid; gap: clamp(48px, 7vw, 104px); padding-block: clamp(48px, 6vw, 88px) clamp(28px, 3vw, 44px); border-top: 1px solid var(--line); }
.foot .foot__logo { order: 2; display: block; color: var(--logo); }
.foot__logo-svg { display: block; width: 100%; height: auto; fill: currentColor; overflow: visible; }
/* Logo zamienia się pod kursorem w ziarno, jak tafla w sekcji „W pudełku” (logo-dust.js): w spoczynku widać SVG, w ruchu płótno nad nim. */
.foot .foot__logo { position: relative; }
.foot__logo-dust { position: absolute; max-width: none; pointer-events: none; visibility: hidden; }   /* położenie i rozmiar: logo-dust.js */
.foot__logo.is-dust .foot__logo-dust { visibility: visible; }
.foot__logo.is-dust .foot__logo-svg { opacity: 0; }
.foot .tool { opacity: 1; color: var(--ink-2); font-size: var(--t-1); }
.foot .tool[aria-pressed="true"] { color: var(--paper); }
.foot a { color: var(--ink-2); text-decoration: none; transition: color var(--d-1) var(--ease); }
.foot a:hover { color: var(--ink); text-decoration: underline; }
/* Kasa na telefonie: bez stopki — dokumenty są podlinkowane przy zgodach (decyzja właściciela 30.09.2026). */
@media (max-width: 759px) { .foot--lean { display: none; } }
.foot__dir {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 24px;   /* piąta kolumna: „Zastosowanie” (7.11) */
}
@media (max-width: 1100px) { .foot__dir { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.foot__col h2 { margin-bottom: 14px; font-size: var(--t-2); font-weight: 600; letter-spacing: 0; color: var(--ink); }
.foot__col ul { display: grid; gap: 11px; }
.foot__base {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
  padding-block: 18px 24px; border-top: 1px solid var(--line); font-size: var(--t-1);
}
.foot__docs { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot__btn {
  padding: 0; border: 0; background: none; font: inherit; color: var(--ink-2); cursor: pointer;
  transition: color var(--d-1) var(--ease);
}
.foot__btn:hover { color: var(--ink); text-decoration: underline; }

/* ---------- zgoda na Google Analytics (inc/analytics.php): karta na dole, oba wybory równorzędne ---------- */
.consent {
  position: fixed; z-index: 60; inset: auto 16px calc(16px + env(safe-area-inset-bottom, 0px)) auto;
  width: min(420px, calc(100vw - 32px)); padding: 20px 22px;
  display: grid; gap: 16px;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-2);
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.12);
  font-size: var(--t-2); line-height: 1.5;
  opacity: 0; transform: translateY(12px);
  transition: opacity var(--d-2) var(--ease), transform var(--d-2) var(--ease);
}
.consent.is-open { opacity: 1; transform: none; }
.consent[hidden] { display: none; }
.consent__title { margin-bottom: 4px; font-size: var(--t-2); font-weight: 600; letter-spacing: 0; }
.consent__text p { color: var(--ink-2); }
.consent__text a { color: var(--ink); }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 639px) {
  .consent { inset-inline: 12px; width: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .consent { transition: none; transform: none; } }
@media (max-width: 760px) { .foot__dir { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- logotypy przewoźników: tylko wybór dostawy w kasie ---------- */
.carriers { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
/* Logo trzyma swoje proporcje: bez `flex: none` wiersz stawki ściskał je na szerokość (każde inaczej). */
.carriers > * { flex: none; }
.carriers img { width: auto; max-width: none; height: var(--carrier-h, 22px); }
/* logo InPost ma podpis pod znakiem: wyższe, żeby znaki wyglądały na równe */
.carriers [data-carrier="inpost"] img { height: calc(var(--carrier-h, 22px) * 1.4); }

/* ---------- ruch ----------
   Ruch włącza klasa .motion na <html> (header.php): jest, gdy działa JavaScript,
   system nie prosi o ograniczenie ruchu i właściciel nie wyłączył go przyciskiem.
   Bez niej strona jest pełna i nieruchoma. */
html.motion { scroll-behavior: smooth; }
/* Szuflada: wjeżdża zza krawędzi z lekkim obrotem i skalą (0,75 s, miękkie wyhamowanie), tło strony
   rozmywa się razem z nią, a nagłówek, pozycje i podsumowanie wchodzą kaskadą (.is-opening z cart.js).
   Zamknięcie jest krótsze niż otwarcie. */
html.motion .drawer, html.motion dialog::backdrop {
  transition: translate 0.42s var(--ease-io), scale 0.42s var(--ease-io), rotate 0.42s var(--ease-io), opacity 0.42s var(--ease), display 0.42s allow-discrete, overlay 0.42s allow-discrete;
}
html.motion .drawer[open], html.motion dialog[open]::backdrop {
  transition: translate 0.75s cubic-bezier(0.16, 1, 0.3, 1), scale 0.75s cubic-bezier(0.16, 1, 0.3, 1), rotate 0.75s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s var(--ease), display 0.75s allow-discrete, overlay 0.75s allow-discrete;
}
@keyframes qp-drawer-item { from { opacity: 0; translate: 44px 0; filter: blur(6px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
html.motion .drawer.is-opening :is(.drawer__head, .drawer__body > *, .drawer__body .line, .drawer__foot) {
  animation: qp-drawer-item 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(0.16s + var(--i, 0) * 0.07s);
}
html.motion .drawer.is-opening .drawer__body > :nth-child(2), html.motion .drawer.is-opening .line:nth-child(2) { --i: 1; }
html.motion .drawer.is-opening .drawer__body > :nth-child(3), html.motion .drawer.is-opening .line:nth-child(3) { --i: 2; }
html.motion .drawer.is-opening .drawer__body > :nth-child(n + 4), html.motion .drawer.is-opening .line:nth-child(n + 4) { --i: 3; }
html.motion .drawer.is-opening .drawer__foot { --i: 4; }
/* Menu: arkusz rozjaśnia się i zsuwa z góry, a pozycje wchodzą kaskadą od dołu. */
html.motion .menu { transition: opacity var(--d-2) var(--ease), translate var(--d-2) var(--ease), display var(--d-2) allow-discrete, overlay var(--d-2) allow-discrete; opacity: 0; translate: 0 -16px; }
html.motion .menu[open] { opacity: 1; translate: 0 0; }
@starting-style { html.motion .menu[open] { opacity: 0; translate: 0 -16px; } }
@keyframes qp-menu-item { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
html.motion .menu[open] .menu__nav a, html.motion .menu[open] .menu__foot { animation: qp-menu-item 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(0.08s + var(--i, 0) * 0.06s); }
html.motion .menu[open] .menu__nav a:nth-child(2) { --i: 1; }
html.motion .menu[open] .menu__nav a:nth-child(3) { --i: 2; }
html.motion .menu[open] .menu__nav a:nth-child(4) { --i: 3; }
html.motion .menu[open] .menu__nav a:nth-child(5) { --i: 4; }
html.motion .menu[open] .menu__nav a:nth-child(n + 6) { --i: 5; }
html.motion .menu[open] .menu__foot { --i: 6; }
html.motion .drawer { translate: 112% 0; scale: 0.94; rotate: 2deg; transform-origin: 100% 50%; }
html.motion .drawer[open] { translate: 0 0; scale: 1; rotate: 0deg; }
@starting-style { html.motion .drawer[open] { translate: 112% 0; scale: 0.94; rotate: 2deg; } }
@media (max-width: 640px) {
  html.motion .drawer { translate: 0 105%; scale: 1; rotate: 0deg; }
  html.motion .drawer[open] { translate: 0 0; }
  @starting-style { html.motion .drawer[open] { translate: 0 105%; scale: 1; rotate: 0deg; } }
}
html.motion dialog::backdrop { opacity: 0; }
html.motion dialog[open]::backdrop { opacity: 1; }
@starting-style { html.motion dialog[open]::backdrop { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
