/* justfurni.ch — sklep (szablony z makiety, makieta/README.md).
   Układ wzorowany na topeshop.pl, własna identyfikacja: biel, grafit, rdzawy akcent. Kolory w OKLCH.
   CSP sklepu: style-src 'self' — żadnych atrybutów style= w HTML; kolory próbek i pozycje punktów ustawia shop.js.
   Instrument Sans (SIL OFL 1.1) hostowany lokalnie. */

@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  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;
}

:root {
  --bg: oklch(1 0 0);
  --surface: oklch(0.968 0.004 48);
  --surface-2: oklch(0.94 0.006 48);
  --line: oklch(0.905 0.006 48);
  --line-strong: oklch(0.66 0.01 48);
  --ink: oklch(0.22 0.01 48);
  --ink-2: oklch(0.38 0.012 48);
  --muted: oklch(0.49 0.012 48);
  --on-dark: oklch(0.96 0.004 48);
  --on-dark-2: oklch(0.8 0.01 48);

  --brand: oklch(0.51 0.15 42);
  --brand-hover: oklch(0.45 0.14 42);
  --brand-tint: oklch(0.955 0.022 48);
  --ok: oklch(0.5 0.11 150);
  --warn: oklch(0.52 0.11 72);
  --focus: oklch(0.52 0.17 255);
  --tbd: oklch(0.55 0.2 305);
  --note: oklch(0.95 0.07 95);

  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 1px 2px oklch(0.2 0.01 48 / 0.06), 0 10px 30px oklch(0.2 0.01 48 / 0.1);
  --shadow-sm: 0 1px 3px oklch(0.2 0.01 48 / 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1360px;
  --gutter: 16px;

  --z-sticky: 10;
  --z-header: 20;
  --z-dropdown: 30;
  --z-backdrop: 40;
  --z-drawer: 50;
  --z-toast: 60;
}

@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

/* ---------- Podstawy ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.55 var(--font);
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; text-wrap: balance; }
/* Niemieckie złożenia („Waschmaschinenschrank") w wąskich kolumnach dzielimy przenoszeniem */
.card-title, .set-name, .mini-name, .line-name, .co-name, .buy-h, .tile-sub { hyphens: auto; overflow-wrap: break-word; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
dl, dd { margin: 0; }
figure { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--brand-tint); }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: var(--z-toast); padding: 10px 14px; background: var(--ink); color: var(--on-dark); border-radius: var(--radius); }
.skip:focus { top: 8px; }
.muted { color: var(--muted); font-weight: 400; }
.fine { font-size: 0.8125rem; color: var(--muted); }
.lead { font-size: 1.0625rem; color: var(--ink-2); max-width: 62ch; }

@media (max-width: 599px) { .hide-sm { display: none !important; } }
@media (max-width: 899px) { .hide-md { display: none !important; } }
@media (min-width: 1024px) { .hide-lg { display: none !important; } }
@media (max-width: 1023px) { .hide-md-down { display: none !important; } }

/* Wartości do ustalenia z hurtownią / właścicielem — podkreślane tylko poza produkcją */
.tbd { text-decoration: underline dashed var(--tbd); text-decoration-thickness: 1.5px; text-underline-offset: 3px; cursor: help; }

/* ---------- Typografia ---------- */
.h1 { font-size: 1.875rem; }
.h2 { font-size: 1.5rem; }
.h3 { font-size: 1.25rem; }
.h4 { font-size: 1.0625rem; }
@media (min-width: 1024px) {
  .h1 { font-size: 2.25rem; }
  .h2 { font-size: 1.75rem; }
}
.prose p + p { margin-top: 0.9em; }
.prose { max-width: 72ch; color: var(--ink-2); text-wrap: pretty; }

/* ---------- Przyciski i kontrolki ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-weight: 600; font-size: 0.9375rem; text-decoration: none; white-space: nowrap;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.btn .i { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-dark { background: var(--ink); color: var(--on-dark); }
.btn-dark:hover { background: oklch(0.32 0.01 48); }
.btn-ghost { background: var(--bg); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 0.875rem; }
.btn-lg { min-height: 56px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-grow { flex: 1; min-height: 52px; }
.btn:active { transform: translateY(1px); }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 0; border-radius: var(--radius); background: transparent; color: var(--ink);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.icon-btn:hover { background: var(--surface); }
.icon-btn .i { width: 22px; height: 22px; }
.icon-btn--line { border: 1px solid var(--line-strong); background: var(--bg); }
.icon-btn--line:hover { border-color: var(--ink); background: var(--bg); }
.icon-btn--line:disabled { opacity: 0.35; cursor: default; }
.icon-btn--float { position: absolute; background: var(--bg); box-shadow: var(--shadow-sm); }
.icon-btn--float:hover { background: var(--bg); color: var(--brand); }
.icon-btn--brand { background: var(--brand); color: #fff; }
.icon-btn--brand:hover { background: var(--brand-hover); }
.icon-btn--sm { width: 40px; height: 40px; position: relative; }
.icon-btn--sm::after { content: ""; position: absolute; inset: -2px; }
.icon-btn--sm .i { width: 18px; height: 18px; }

.link-more {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 0;
  border: 0; background: none; font-weight: 600; font-size: 0.9375rem; color: var(--ink); text-decoration: none;
}
.link-more .i { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.link-more:hover { color: var(--brand); }
.link-more:hover .i { transform: translateX(2px); }
.link-quiet { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; border: 0; background: none; color: var(--muted); font-size: 0.875rem; text-decoration: none; }
.link-quiet:hover { color: var(--ink); }
.link-quiet .i { width: 16px; height: 16px; }

.pill { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--ink); color: var(--on-dark); font-size: 0.75rem; }

.chip {
  flex: none; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 20px; background: var(--bg);
  font-size: 0.875rem; font-weight: 500;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }

.select { position: relative; display: inline-flex; align-items: center; }
.select select {
  appearance: none; min-height: 44px; padding: 0 40px 0 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); font-size: 0.9375rem;
}
.select .i { position: absolute; right: 12px; width: 18px; height: 18px; pointer-events: none; }
.select--block { display: flex; }
.select--block select { width: 100%; min-height: 48px; font-size: 1rem; }

.qty { display: inline-flex; align-items: stretch; height: 52px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); }
.qty button { width: 44px; border: 0; background: none; display: grid; place-items: center; color: var(--ink); }
.qty button:hover { color: var(--brand); }
.qty button .i { width: 18px; height: 18px; }
.qty input { width: 40px; border: 0; text-align: center; font-weight: 600; background: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm { height: 44px; }
.qty--xs { height: 40px; }
.qty--xs button { width: 38px; }
.qty--xs input { width: 32px; }

.check { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 0.9375rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.check a { color: var(--ink); }

/* ---------- Pasek makiety, pasek usług ---------- */
.ribbon { background: var(--note); color: var(--ink); font-size: 0.8125rem; }
.ribbon-in { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; min-height: 34px; padding-block: 6px; }
.ribbon strong { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.75rem; }

.servicebar { background: var(--surface); color: var(--ink-2); font-size: 0.8125rem; border-bottom: 1px solid var(--line); }
.servicebar-in { display: flex; justify-content: center; gap: 32px; min-height: 38px; align-items: center; }
.servicebar span { display: inline-flex; align-items: center; gap: 8px; }
@media (min-width: 600px) { .servicebar span { white-space: nowrap; } }
.servicebar .i { width: 17px; height: 17px; color: var(--brand); }
/* Trzy napisy + języki potrzebują ok. 1060 px — „Kundenservice” chowamy już poniżej 1100 px, inaczej strona przewija się w bok. */
@media (max-width: 1099px) { .servicebar-in > .hide-md { display: none; } }

/* ---------- Przełącznik języka (pasek, menu mobilne, stopka) ---------- */
.lang { display: flex; align-items: center; gap: 2px; }
.lang a, .lang [aria-current] { display: inline-grid; place-items: center; min-width: 36px; min-height: 32px; padding: 0 6px; border-radius: var(--radius); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.04em; text-decoration: none; }
.lang a { color: var(--muted); }
.lang a:hover { color: var(--ink); background: var(--bg); }
.lang [aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.lang--bar { margin-left: auto; }
@media (max-width: 599px) { .lang--bar { display: none; } .servicebar-in:has(.lang--bar) > span:first-child { margin-right: auto; } }
.servicebar-in:has(.lang--bar) { justify-content: flex-start; gap: 24px; }
.servicebar-in:has(.lang--bar) > span:first-child { margin-left: auto; }
.lang--drawer { gap: 8px; padding-top: 16px; }
.lang--drawer a, .lang--drawer [aria-current] { min-width: 48px; min-height: 44px; font-size: 0.9375rem; }
.lang--footer a { color: var(--on-dark-2); }
.lang--footer a:hover { color: var(--on-dark); background: transparent; text-decoration: underline; }
.lang--footer [aria-current] { color: var(--on-dark); }

/* ---------- Nagłówek ---------- */
.site-header { position: relative; background: var(--bg); border-bottom: 1px solid var(--line); z-index: var(--z-header); }
@media (min-width: 1024px) { .site-header { position: sticky; top: 0; } }
.header-in {
  display: grid; align-items: center; gap: 8px 16px;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "menu logo actions" "search search search";
  padding-block: 8px 12px;
}
.header-in > .icon-btn { grid-area: menu; margin-left: -10px; }
.header-in > .logo { grid-area: logo; }
.logo { display: inline-flex; align-items: baseline; font-size: 1.625rem; font-weight: 700; letter-spacing: -0.04em; color: var(--ink); text-decoration: none; line-height: 1; }
.logo span { font-weight: 450; color: var(--ink-2); }
.logo::after { content: ""; width: 0.26em; height: 0.26em; margin-left: 0.08em; background: var(--brand); border-radius: 1px; }
.search { grid-area: search; position: relative; display: flex; }
.search input {
  width: 100%; height: 46px; padding: 0 52px 0 16px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 1rem;
  transition: background-color 0.18s, border-color 0.18s;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { background: var(--bg); border-color: var(--line-strong); outline: none; box-shadow: 0 0 0 3px oklch(0.52 0.17 255 / 0.25); }
.search button { position: absolute; right: 1px; top: 1px; bottom: 1px; width: 48px; border: 0; background: none; display: grid; place-items: center; color: var(--ink); border-radius: 0 var(--radius) var(--radius) 0; }
.header-actions { grid-area: actions; display: flex; gap: 2px; margin-right: -10px; }
.cart-btn { position: relative; }
.cart-count { position: absolute; top: 4px; right: 3px; min-width: 19px; height: 19px; padding: 0 5px; display: grid; place-items: center; border-radius: 10px; background: var(--brand); color: #fff; font-size: 0.6875rem; font-weight: 700; }
@media (min-width: 600px) {
  .header-in { grid-template-areas: "menu logo search actions"; grid-template-columns: auto auto 1fr auto; padding-block: 14px; }
  .search { max-width: 640px; margin-inline: auto; width: 100%; }
}
@media (min-width: 1024px) {
  .header-in { grid-template-areas: "logo search actions"; grid-template-columns: auto 1fr auto; gap: 32px; }
}

.mainnav { display: none; border-top: 1px solid var(--line); }
@media (min-width: 1024px) { .mainnav { display: block; } }
.mainnav-in { display: flex; gap: 2px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; height: 50px; padding: 0 14px;
  border: 0; background: none; font-size: 0.9375rem; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 -2px 0 transparent; transition: box-shadow 0.18s var(--ease), color 0.18s;
}
.nav-item:first-child .nav-link { padding-left: 0; }
/* 7 kategorii + „Hilfe" mieszczą się od 1024 px dopiero z ciaśniejszymi odstępami */
@media (min-width: 1024px) and (max-width: 1279px) { .nav-link { padding: 0 8px; font-size: 0.875rem; } }
.nav-link .i { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.nav-link:hover, .nav-link[aria-expanded="true"] { box-shadow: inset 0 -2px 0 var(--ink); }
.nav-link[aria-expanded="true"] .i { transform: rotate(180deg); }
.nav-link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ink); }
.nav-link--accent { color: var(--brand); font-weight: 600; }
.mega { position: absolute; left: 0; right: 0; top: 100%; display: none; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px oklch(0.2 0.01 48 / 0.08); z-index: var(--z-dropdown); }
.nav-link[aria-expanded="true"] + .mega { display: block; }
@media (hover: hover) and (min-width: 1024px) {
  .nav-item:hover .mega { display: block; }
  .nav-item:hover .nav-link .i { transform: rotate(180deg); }
}
.mega-in { display: grid; grid-template-columns: 1fr 380px; gap: 48px; padding-block: 28px 32px; }
.mega-list { columns: 2; column-gap: 32px; align-self: start; }
.mega-list a { display: block; padding: 9px 0; font-size: 0.9375rem; text-decoration: none; break-inside: avoid; }
.mega-list a:hover { color: var(--brand); text-decoration: underline; }
.mega-all { display: inline-flex !important; align-items: center; gap: 4px; font-weight: 600; color: var(--brand); }
.mega-all .i { width: 16px; height: 16px; }
.mega-teaser { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; }
.mega-teaser img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.mega-teaser span { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; background: var(--bg); border-radius: var(--radius); font-weight: 600; font-size: 0.875rem; }
.mega-teaser .i { width: 16px; height: 16px; }

/* ---------- Szuflady, tło, komunikat ---------- */
.backdrop { position: fixed; inset: 0; background: oklch(0.2 0.01 48 / 0.45); z-index: var(--z-backdrop); opacity: 0; transition: opacity 0.25s var(--ease); }
.backdrop.is-open { opacity: 1; }
.drawer {
  position: fixed; top: 0; bottom: 0; width: min(420px, 92vw); z-index: var(--z-drawer);
  display: flex; flex-direction: column; background: var(--bg); box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease);
}
.drawer--left { left: 0; transform: translateX(-100%); }
.drawer--right { right: 0; transform: translateX(100%); }
.drawer.is-open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--line); }
.drawer-title { font-size: 1.125rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px 20px; overscroll-behavior: contain; }
.drawer-foot { display: grid; gap: 10px; padding: 16px 20px 20px; border-top: 1px solid var(--line); background: var(--bg); }
.drawer-foot--row { grid-template-columns: auto 1fr; }
.drawer-note { display: flex; align-items: center; gap: 8px; margin: 12px 20px 0; padding: 10px 12px; border-radius: var(--radius); background: oklch(0.95 0.035 150); color: oklch(0.36 0.09 150); font-weight: 600; font-size: 0.875rem; }
.drawer-note .i { width: 18px; height: 18px; }

.mnav > li { border-bottom: 1px solid var(--line); }
.mnav summary, .mnav-link { display: flex; align-items: center; justify-content: space-between; min-height: 54px; font-weight: 500; text-decoration: none; cursor: pointer; list-style: none; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary .i { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.mnav details[open] summary .i { transform: rotate(180deg); }
.mnav details ul { padding: 0 0 12px 12px; }
.mnav details a { display: block; padding: 10px 0; text-decoration: none; color: var(--ink-2); }
.mnav-link { justify-content: flex-start; gap: 10px; }
.mnav-link--accent { color: var(--brand); font-weight: 600; }

.mini-lines { display: grid; }
.mini-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.mini-line img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius); background: var(--surface); }
.mini-name { font-weight: 500; font-size: 0.9375rem; text-decoration: none; line-height: 1.35; }
.mini-name:hover { text-decoration: underline; }
.mini-meta { font-size: 0.8125rem; color: var(--muted); margin-top: 4px; }
.mini-price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: var(--z-toast); padding: 12px 18px; border-radius: var(--radius); background: var(--ink); color: var(--on-dark); font-weight: 500; box-shadow: var(--shadow); }

/* ---------- Sekcje ---------- */
.section { padding-block: 56px; }
.section--tight { padding-block: 32px; }
.section--surface { background: var(--surface); }
@media (min-width: 1024px) {
  .section { padding-block: 80px; }
  .section--tight { padding-block: 48px; }
}
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.clamp--2 { -webkit-line-clamp: 2; }
.clamp.is-open { display: block; -webkit-line-clamp: unset; }
[data-more-btn] .i { transition: transform 0.2s var(--ease); }
[data-more-btn][aria-expanded="true"] .i { transform: rotate(180deg); }
.prose-block { display: grid; gap: 14px; }

/* ---------- Hero ---------- */
.hero { padding-top: 16px; }
@media (min-width: 1024px) { .hero { padding-top: 24px; } }
.hero-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius-lg); }
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide { position: relative; scroll-snap-align: start; display: grid; }
.hero-slide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.hero-panel { display: grid; gap: 12px; justify-items: start; padding: 20px 4px 4px; }
.hero-h { font-size: clamp(1.625rem, 1.15rem + 1.9vw, 2.75rem); letter-spacing: -0.025em; line-height: 1.1; max-width: 18ch; }
.hero-panel p { color: var(--ink-2); max-width: 42ch; }
.hero-panel .btn { margin-top: 4px; }
@media (min-width: 900px) {
  .hero-slide img { aspect-ratio: 16 / 7; }
  .hero-panel { position: absolute; left: 32px; bottom: 32px; max-width: 480px; padding: 28px 30px 30px; background: var(--bg); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
}
.hero-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }
@media (min-width: 900px) { .hero-controls { justify-content: flex-end; } }
.dots { display: flex; gap: 4px; }
.dots button { width: 32px; height: 44px; border: 0; background: none; position: relative; padding: 0; }
.dots button::before { content: ""; position: absolute; left: 4px; right: 4px; top: 21px; height: 3px; border-radius: 2px; background: var(--line-strong); transition: background-color 0.2s; }
.dots button[aria-selected="true"]::before { background: var(--ink); }

/* ---------- Kafle kategorii ---------- */
.tiles3 { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; padding-bottom: 4px; }
.tiles3::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .tiles3 { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; overflow: visible; } }
.tile { position: relative; display: grid; grid-template-columns: 1fr auto; align-content: start; gap: 4px 12px; scroll-snap-align: start; text-decoration: none; }
.tile-media { grid-column: 1 / -1; overflow: hidden; border-radius: var(--radius-lg); }
.tile-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.6s var(--ease); }
.tile:hover .tile-media img { transform: scale(1.03); }
.tile-cap { display: grid; gap: 2px; padding-top: 12px; }
.tile-h { font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; }
.tile-sub { color: var(--muted); font-size: 0.875rem; }
.tile-go { align-self: end; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.tile:hover .tile-go { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Pasek obietnic ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg); }
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-list { display: flex; }
.ticker-list li { display: inline-flex; align-items: center; gap: 10px; padding: 18px 28px; font-weight: 500; font-size: 0.9375rem; white-space: nowrap; }
.ticker-list li::after { content: ""; width: 5px; height: 5px; margin-left: 46px; background: var(--brand); border-radius: 1px; }
.ticker-list .i { color: var(--brand); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Promocje ---------- */
.promo { display: grid; gap: 16px; }
/* Telefon: zdjęcie nad tekstem. Wysokość z aspect-ratio (height: auto) — Safari liczy height: 100% w siatce .promo-main
   od całego kafla, zdjęcie wchodziło wtedy pod napis i przycisk (zgłoszenie Mariusza 07.11). 100% tylko na desktopie. */
.promo img { display: block; width: 100%; height: auto; object-fit: cover; transition: transform 0.6s var(--ease); }
.promo a:hover img { transform: scale(1.03); }
.promo-main { position: relative; display: grid; overflow: hidden; border-radius: var(--radius-lg); text-decoration: none; }
.promo-main img { aspect-ratio: 4 / 3; }
.promo-panel { display: grid; gap: 8px; justify-items: start; padding: 18px 2px 4px; }
.promo-h { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; }
.promo-sub { color: var(--ink-2); }
.promo-panel .btn { margin-top: 6px; }
.promo-item { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 16px; text-decoration: none; }
.promo-item img { aspect-ratio: 1; border-radius: var(--radius); }
.promo-label { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.promo-label .i { width: 18px; height: 18px; }
@media (min-width: 900px) {
  .promo { grid-template-columns: 1.45fr 1fr; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 20px; height: clamp(540px, 46vw, 660px); }
  .promo-main { grid-row: 1 / -1; }
  .promo-main img, .promo-item img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .promo-panel { position: absolute; left: 24px; bottom: 24px; max-width: 380px; padding: 24px; background: var(--bg); border-radius: var(--radius-lg); }
  .promo-item { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); }
  .promo-item img { aspect-ratio: auto; border-radius: 0; }
  .promo-label { position: absolute; left: 14px; bottom: 14px; padding: 9px 14px; background: var(--bg); border-radius: var(--radius); font-size: 0.9375rem; }
}

/* ---------- Zakładki ---------- */
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: none; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--bg);
  font-weight: 500; font-size: 0.9375rem; transition: background-color 0.18s, color 0.18s, border-color 0.18s;
}
.tabs button:hover { border-color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }

/* ---------- Opinie klientów (Trustindex) na głównej: ocena z lewej, szyna opinii z prawej ---------- */
.reviews-in { display: grid; gap: 28px; }
@media (min-width: 1024px) { .reviews-in { grid-template-columns: minmax(250px, 1fr) minmax(0, 3fr); gap: 48px; align-items: start; } }
.reviews-sum { display: grid; gap: 20px; align-content: start; justify-items: start; }
.reviews-score { display: flex; align-items: center; gap: 14px; }
.reviews-num { font-size: 3.25rem; font-weight: 600; line-height: 0.9; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.reviews-of { display: grid; gap: 6px; }
.reviews-src { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; color: var(--muted); font-size: 0.875rem; }
.reviews-src img { width: auto; height: 15px; }
.stars { display: inline-flex; gap: 1px; }
.stars svg { display: block; width: 18px; height: 18px; }
.stars--lg svg { width: 22px; height: 22px; }
.star-e { fill: var(--line); }
.star-f { fill: var(--brand); }
/* Karty nie rozciągają się do najwyższej (rozwinięta „Mehr lesen” rośnie sama); równe wysokości zwiniętych dają min-height tytułu i treści. */
.rail.reviews-rail { grid-auto-columns: calc((100% - 16px) / 1.12); align-items: start; }
@media (min-width: 640px) { .rail.reviews-rail { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (min-width: 1100px) { .rail.reviews-rail { grid-auto-columns: calc((100% - 2 * 24px) / 3); } }
.reviews-rail > li { display: flex; }
.review { display: flex; flex-direction: column; gap: 12px; width: 100%; padding: 24px 24px 20px; border-radius: var(--radius-lg); background: var(--surface); }
.review-q { display: grid; gap: 8px; margin: 0; }
.review-t { min-height: calc(2 * 1.35em); font-weight: 600; font-size: 1.0625rem; line-height: 1.35; text-wrap: balance; }
.review-b { min-height: calc(5 * 1.6em); color: var(--ink-2); font-size: 0.9375rem; line-height: 1.6; text-wrap: pretty; }
.clamp--5 { -webkit-line-clamp: 5; }
.review-more { align-self: flex-start; margin-top: -8px; padding-block: 4px; }
.review-more[hidden] { display: inline-flex !important; visibility: hidden; }  /* krótka opinia: miejsce zostaje, karty równe */
.review-by { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.review-av { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--bg); font-weight: 600; font-size: 0.9375rem; }
.review-name { font-weight: 600; font-size: 0.9375rem; }
.review-by time { display: block; color: var(--muted); font-size: 0.8125rem; }

/* ---------- Szyna produktów i karta ---------- */
.rail-wrap { display: grid; gap: 16px; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 16px) / 2.15); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 6px; margin: -2px;
  scroll-padding-inline: 2px;
}
.rail::-webkit-scrollbar { display: none; }
.rail > li { scroll-snap-align: start; min-width: 0; }
.rail-nav { display: none; justify-content: flex-end; gap: 8px; }
@media (min-width: 768px) { .rail { grid-auto-columns: calc((100% - 2 * 20px) / 3); gap: 20px; } }
@media (min-width: 1100px) {
  .rail { grid-auto-columns: calc((100% - 3 * 24px) / 4); gap: 24px; }
  .rail-nav { display: flex; }
}

.card { position: relative; display: flex; flex-direction: column; gap: 12px; height: 100%; }
.card-media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s var(--ease), transform 0.6s var(--ease); }
.card-alt { position: absolute; inset: 0; opacity: 0; background: #fff; object-fit: contain !important; }
@media (hover: hover) {
  .card:hover .card-alt { opacity: 1; }
  .card:hover .card-title a { text-decoration: underline; }
}
.card-badge { position: absolute; top: 10px; left: 10px; padding: 4px 8px; border-radius: var(--radius-sm); background: var(--bg); color: var(--brand); font-weight: 700; font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.card-body { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-title { font-size: 0.9375rem; font-weight: 500; line-height: 1.35; letter-spacing: 0; text-wrap: pretty; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-meta { font-size: 0.8125rem; color: var(--muted); }
.card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.card-foot .price { display: grid; white-space: normal; min-width: 0; }
.card-foot .price s { margin-left: 0; }
.card-add {
  position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); color: var(--ink);
  transition: background-color 0.18s, color 0.18s, border-color 0.18s;
}
.card-add:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.card-add .i-plus { position: absolute; right: 6px; bottom: 6px; width: 12px; height: 12px; stroke-width: 2.5; background: inherit; border-radius: 50%; }
.card-add > .i:first-child { width: 20px; height: 20px; }

.price { font-weight: 650; font-size: 1.0625rem; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; white-space: nowrap; }
.price s { margin-left: 6px; color: var(--muted); font-weight: 400; font-size: 0.8125rem; }
.price--sale { color: var(--brand); }
.price--lg { font-size: 2rem; letter-spacing: -0.025em; }
.stock { display: block; font-size: 0.8125rem; font-weight: 500; }
.stock .i { display: inline-block; width: 16px; height: 16px; margin-right: 4px; vertical-align: -3px; stroke-width: 2.25; }
.stock--ok { color: var(--ok); }
.stock--later { color: var(--warn); }
.stock--lg { font-size: 0.9375rem; }
.stock--lg .tbd { color: var(--ok); }

/* ---------- Aranżacje z punktami (Entdecken Sie unsere Kollektionen) ---------- */
/* .looks dostaje wysokość najwyższej kolekcji (shop.js) — przełączanie nie przesuwa strony ani strzałek */
.looks { display: grid; grid-template-columns: minmax(0, 1fr); }
.look { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-content: start; }
.look:not([hidden]) { animation: look-in 0.45s var(--ease); }
@keyframes look-in { from { opacity: 0; transform: translateY(6px); } }
@media (min-width: 900px) { .look { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-content: stretch; } }
/* Kadr 3:2 (Looks::FRAME) — punkty przeliczone na przycięte zdjęcie */
.look-media { position: relative; align-self: start; aspect-ratio: 3 / 2; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); }
.look-media > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.hotspot { position: absolute; z-index: 1; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; cursor: pointer; }
.hotspot::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: oklch(1 0 0 / 0.5); animation: hotspot-pulse 2.6s var(--ease) infinite; }
.hotspot-dot { position: relative; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); box-shadow: 0 1px 4px oklch(0.2 0.01 48 / 0.35); transition: transform 0.25s var(--ease), background-color 0.2s; }
.hotspot:hover .hotspot-dot, .hotspot.is-hint .hotspot-dot { transform: scale(1.25); }
.hotspot[aria-expanded="true"] .hotspot-dot { background: var(--brand); transform: scale(1.25); }
.hotspot[aria-expanded="true"]::before { animation: none; background: oklch(1 0 0 / 0.75); }
@keyframes hotspot-pulse { 0% { transform: scale(0.75); opacity: 1; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
.look-card { position: absolute; z-index: 2; width: min(320px, calc(100% - 24px)); display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 12px 10px 10px; border-radius: var(--radius-lg); background: var(--bg); color: var(--ink); box-shadow: var(--shadow); text-decoration: none; }
.look-card:not([hidden]) { animation: look-card-in 0.25s var(--ease); }
@keyframes look-card-in { from { opacity: 0; transform: translateY(4px) scale(0.98); } }
.look-card.is-docked { left: 12px; right: 12px; bottom: 12px; width: auto; }
.look-card.is-docked.is-top { top: 12px; bottom: auto; }
.look-card-img { width: 88px; height: 88px; border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.look-card-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.look-card-txt { display: grid; gap: 4px; min-width: 0; }
.look-card-name { font-size: 0.9375rem; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; hyphens: auto; }
.look-card-meta { font-size: 0.8125rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.look-card .price { font-size: 1rem; }
.look-card-go { color: var(--muted); transition: transform 0.2s var(--ease), color 0.2s; }
.look-card:hover .look-card-go { color: var(--ink); transform: translateX(3px); }
.look-card:hover .look-card-name { text-decoration: underline; }
.look-body { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.look-h { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.15; text-wrap: balance; }
.look-body .lead { margin: 0; }
.look-list { width: 100%; margin: 4px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.look-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 0.9375rem; }
.look-row-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.look-row-price { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.look-row:hover .look-row-name, .look-row.is-active .look-row-name { text-decoration: underline; }
.look-row.is-active .look-row-price { color: var(--brand); }
/* Strzałki w stałym miejscu: na telefonie tuż pod zdjęciem, na komputerze na dole kolumny (równo z dołem zdjęcia) */
.look-set { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.look-set-sum { margin: 0; display: grid; line-height: 1.25; }
.look-set-sum span { font-size: 0.8125rem; color: var(--muted); }
.look-set-sum strong { font-size: 1.125rem; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.look-set .btn { flex: 0 0 auto; }
.look-set.is-busy .btn { opacity: 0.6; pointer-events: none; }
.look-nav { order: -1; display: flex; align-items: center; gap: 10px; }
@media (min-width: 900px) { .look-nav { order: 0; margin-top: auto; padding-top: 8px; } }
.look-count { margin-left: 6px; color: var(--muted); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  .look:not([hidden]), .look-card:not([hidden]) { animation: none; }
  .hotspot::before { animation: none; transform: scale(1.1); }
}

/* ---------- Obraz z tekstem ---------- */
.split { display: grid; gap: 28px; align-items: center; }
.split + .split, .split + .container { margin-top: 48px; }
.split-media img { width: 100%; border-radius: var(--radius-lg); }
.split-body { display: grid; gap: 16px; justify-items: start; }
.split-body p { color: var(--ink-2); max-width: 62ch; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split--rev .split-media { order: -1; }
}
.checks { display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.checks .i { color: var(--brand); margin-top: 2px; stroke-width: 2.25; }
.checks strong { color: var(--ink); font-weight: 600; }

/* ---------- Bestseller ---------- */
.best { display: grid; gap: 24px; }
.best-media { position: relative; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 4 / 3; }
.best-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.best-media img + img { display: none; }
.best-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
@media (min-width: 1024px) {
  .best { grid-template-columns: 1fr 1fr; gap: 40px; }
  .best-media { aspect-ratio: auto; min-height: 100%; }
  .best-grid { gap: 32px 24px; }
}

/* ---------- Kategoria ---------- */
.crumbs { padding-block: 16px 8px; font-size: 0.8125rem; color: var(--muted); }
.crumbs ol { display: flex; gap: 8px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.crumbs ol::-webkit-scrollbar { display: none; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }

.cat-head { display: grid; gap: 8px; justify-items: start; padding-block: 8px 12px; }
.cat-intro { max-width: 75ch; color: var(--ink-2); }
.quick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 16px; }
.quick::-webkit-scrollbar { display: none; }
@media (max-width: 899px) { .quick .chip { min-height: 44px; } }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-block: 14px; margin-bottom: 24px; border-block: 1px solid var(--line); }
.toolbar-count { margin-right: auto; font-size: 0.875rem; color: var(--muted); }
.toolbar-count strong { color: var(--ink); }
@media (max-width: 599px) {
  .toolbar { display: grid; grid-template-columns: 1fr 1fr; }
  .toolbar-count { grid-column: 1 / -1; grid-row: 2; }
  .toolbar .select select { width: 100%; }
  .toolbar .select { display: flex; }
}
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 24px; } }
.pager { display: grid; justify-items: center; gap: 12px; padding-block: 48px 16px; }
.pager-info { font-size: 0.875rem; color: var(--muted); }
.pager-bar { width: 220px; height: 3px; border: 0; border-radius: 2px; background: var(--line); overflow: hidden; -webkit-appearance: none; appearance: none; }
.pager-bar::-webkit-progress-bar { background: var(--line); }
.pager-bar::-webkit-progress-value { background: var(--ink); }
.pager-bar::-moz-progress-bar { background: var(--ink); }
.pager-pages { display: flex; gap: 4px; margin-top: 4px; }
.pager-pages a { display: grid; place-items: center; min-width: 44px; height: 44px; border-radius: var(--radius); text-decoration: none; font-weight: 500; }
.pager-pages a:hover { background: var(--surface); }
.pager-pages a[aria-current] { background: var(--ink); color: var(--on-dark); }
.link-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.link-cloud a { padding: 10px 14px; border-radius: var(--radius); background: var(--surface); font-size: 0.875rem; text-decoration: none; }
.link-cloud a:hover { background: var(--surface-2); }

.filters { display: grid; gap: 4px; }
.facet { padding: 18px 0; border-bottom: 1px solid var(--line); }
.facet legend { float: left; width: 100%; margin-bottom: 10px; font-weight: 600; }
.facet legend + * { clear: both; }
.swatches { display: grid; gap: 2px; }
.swatch-opt { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-size: 0.9375rem; }
.swatch-opt input { position: absolute; opacity: 0; }
.swatch { width: 28px; height: 28px; border-radius: 50%; background: var(--sw, var(--surface-2)); box-shadow: inset 0 0 0 1px oklch(0 0 0 / 0.15); flex: none; }
.swatch-opt input:checked + .swatch { box-shadow: inset 0 0 0 1px oklch(0 0 0 / 0.15), 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.swatch-opt input:focus-visible + .swatch { outline: 2px solid var(--focus); outline-offset: 4px; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.range label { display: grid; gap: 4px; font-size: 0.8125rem; color: var(--muted); }
.range input { height: 46px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 1rem; color: var(--ink); }

/* ---------- Karta produktu ---------- */
.pdp { display: grid; gap: 28px; padding-bottom: 56px; }
@media (min-width: 1024px) {
  .pdp { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: start; padding-bottom: 80px; }
  .gallery { position: sticky; top: 132px; }
}
.gallery { display: grid; gap: 12px; min-width: 0; }
.gallery-main { position: relative; }
.gallery-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track li { scroll-snap-align: start; }
.gallery-track img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.g-prev { left: 12px; top: 50%; margin-top: -22px; }
.g-next { right: 12px; top: 50%; margin-top: -22px; }
.g-zoom { right: 12px; top: 12px; }
.gallery-track img { cursor: zoom-in; }
.gallery-track video { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #fff; }
.g-count { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 14px; background: oklch(1 0 0 / 0.92); font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 899px) { .g-prev, .g-next { display: none; } }
.thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: 76px; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding: 2px; }
.thumbs button { position: relative; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.thumb-play { position: absolute; inset: 0; margin: auto; width: 30px; height: 30px; padding: 7px 6px 7px 8px; border-radius: 50%; background: oklch(1 0 0 / 0.92); fill: var(--ink); stroke: none; }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.thumbs button[aria-selected="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
@media (min-width: 1024px) { .thumbs { grid-auto-columns: 88px; } }

/* Powiększenie zdjęć (dialog w warstwie górnej): przewijanie jak w galerii, zoom w obrębie slajdu bez przeskoku do sąsiedniego */
.lightbox { width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: #fff; color: var(--ink); overflow: hidden; }
.lightbox::backdrop { background: #fff; }
.lightbox[open] { animation: lb-in 0.22s var(--ease); }
@keyframes lb-in { from { opacity: 0; } }
.lb-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-slide { display: flex; height: 100%; overflow: hidden; scroll-snap-align: start; overscroll-behavior: contain; }
.lb-slide img { margin: auto; width: auto; height: auto; max-width: 100%; max-height: 100%; cursor: zoom-in; touch-action: manipulation; }
.lb-slide video { margin: auto; width: 100%; height: auto; max-height: 100%; }
.lb-slide.is-zoomed { overflow: auto; scrollbar-width: none; }
.lb-slide.is-zoomed::-webkit-scrollbar { display: none; }
.lb-slide.is-zoomed img { max-width: none; max-height: none; cursor: zoom-out; }
.lb-slide img.lb-nozoom { cursor: default; }
.lb-btn { position: absolute; background: var(--bg); box-shadow: var(--shadow-sm); }
.lb-btn:hover { background: var(--bg); color: var(--brand); }
.lb-close { top: max(12px, env(safe-area-inset-top)); right: 12px; }
.lb-prev { left: 16px; top: 50%; margin-top: -22px; }
.lb-next { right: 16px; top: 50%; margin-top: -22px; }
.lb-count { position: absolute; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); padding: 4px 12px; border-radius: 14px; background: oklch(1 0 0 / 0.92); box-shadow: var(--shadow-sm); font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 899px) { .lb-prev, .lb-next { display: none; } }
@media (prefers-reduced-motion: reduce) { .lightbox[open] { animation: none; } }

.buy { position: relative; display: grid; gap: 18px; min-width: 0; }
.series { justify-self: start; font-size: 0.875rem; font-weight: 600; color: var(--brand); text-decoration: none; }
.series:hover { text-decoration: underline; }
.buy-h { font-size: 1.625rem; letter-spacing: -0.02em; margin-top: -10px; padding-right: 52px; }
@media (min-width: 1024px) { .buy-h { font-size: 2rem; } }
.buy-facts { color: var(--ink-2); margin-top: -8px; }
.buy-price { display: grid; gap: 2px; padding-top: 4px; }
.shop-rating { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; justify-self: start; margin-top: 8px; font-size: 0.875rem; color: var(--ink-2); text-decoration: none; }
.shop-rating .stars svg { width: 16px; height: 16px; }
.shop-rating strong { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.shop-rating:hover span { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.bnpl { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; font-size: 0.875rem; color: var(--ink-2); max-width: 46ch; }
.bnpl .i { width: 18px; height: 18px; margin-top: 1px; color: var(--muted); }
.bnpl a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.variant legend { margin-bottom: 10px; font-size: 0.9375rem; color: var(--ink-2); }
.variant legend strong { color: var(--ink); font-weight: 600; }
.variant-opts { display: flex; gap: 10px; }
.variant-opt { display: block; width: 68px; height: 68px; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.variant-opt img { width: 100%; height: 100%; object-fit: contain; }
.variant-opt:hover { border-color: var(--line-strong); }
.variant-opt[aria-current="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.buy-row { display: flex; gap: 12px; }
.buy-alt { margin: -6px 0 0; font-size: 0.9375rem; }
.buy-alt a { color: var(--ink); text-underline-offset: 3px; }
#aehnliche, #masse, #passt { scroll-margin-top: 88px; }
.express { display: grid; gap: 6px; margin-top: -4px; }
.express[hidden] { display: none; }
.express-label { margin: 0; font-size: 0.875rem; font-weight: 600; }
.express-buttons { min-width: 0; }
.express--pending { gap: 0; }
.express--pending > :not([data-express-element]) { display: none; }
.buy .express--pending { margin-top: -18px; }
.express--co.express--pending { margin: 0; }
.express-note { margin: 0; font-size: 0.75rem; color: var(--muted); }
.express-note a { color: inherit; text-decoration: underline; }
.express--co { margin: 4px 0 6px; }
.express-or { display: flex; align-items: center; gap: 12px; margin: 10px 0 0; font-size: 0.8125rem; color: var(--muted); }
.express-or::before, .express-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.paylist { display: flex; flex-wrap: wrap; gap: 6px; }
.paylist li { padding: 4px 9px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 0.75rem; font-weight: 600; color: var(--ink-2); background: var(--bg); }
.paylist--sm { margin-top: -6px; }
.buy-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.buy-links a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; font-size: 0.9375rem; font-weight: 500; }
.buy-links .i { width: 18px; height: 18px; color: var(--muted); }
.infobox { display: grid; border-block: 1px solid var(--line); }
.infobox li { display: flex; gap: 14px; padding: 14px 0; font-size: 0.875rem; color: var(--ink-2); }
.infobox li + li { border-top: 1px solid var(--line); }
.infobox .i { margin-top: 1px; color: var(--ink); }
.infobox strong { color: var(--ink); font-weight: 600; }
.fit { display: grid; gap: 6px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); font-size: 0.875rem; color: var(--ink-2); }
.fit-h { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 0.9375rem; }
.fit-h .i { color: var(--brand); }
.fit strong { color: var(--ink); }
.set { display: grid; gap: 12px; padding-top: 8px; }
.set-head { display: flex; align-items: center; justify-content: space-between; }
.set-nav { display: flex; gap: 6px; }
.set-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 152px; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.set-rail::-webkit-scrollbar { display: none; }
.set-item { position: relative; display: grid; gap: 4px; align-content: start; scroll-snap-align: start; }
.set-item img { width: 100%; aspect-ratio: 1; object-fit: contain; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 4px; }
.set-name { font-size: 0.8125rem; font-weight: 500; line-height: 1.3; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.set-name:hover { text-decoration: underline; }
.set-meta { font-size: 0.75rem; color: var(--muted); }
.set-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.set-foot .price { font-size: 0.9375rem; }

.pdp-desc .split + .split { margin-top: 64px; }
.specs-wrap { display: grid; gap: 40px; }
@media (min-width: 1024px) { .specs-wrap { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 64px; align-items: start; } }
.specs { margin-top: 20px; border-top: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: minmax(130px, 42%) 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.specs dt { color: var(--muted); }
.note { margin-top: 16px; font-size: 0.875rem; color: var(--muted); }
.side-cards { display: grid; gap: 16px; }
.doc { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); text-decoration: none; }
.doc:hover { border-color: var(--ink); }
.doc > .i:first-child { width: 28px; height: 28px; color: var(--brand); }
.doc span { display: grid; gap: 2px; }
.care { display: grid; gap: 6px; padding: 18px; border-radius: var(--radius-lg); background: var(--surface); font-size: 0.875rem; color: var(--ink-2); }
.care .h4 { color: var(--ink); }
.drawing { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.drawing figcaption { padding: 10px 14px; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--muted); }

/* Opis: sekcja bez zdjęcia na całą szerokość tekstu */
@media (min-width: 900px) { .split--text { grid-template-columns: 1fr; } }
.buy-facts a { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.buy-facts a:hover { color: var(--ink); }

/* Masse: rysunek z wymiarami. Obrazek to wycinek samego mebla (ImageShape::boxFile), więc linie biegną po jego krawędziach. */
.measure { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) {
  .measure { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; }
  .measure-fig { order: -1; }
}
.measure-fig { margin: 0; display: flex; justify-content: center; }
.measure-draw { position: relative; display: inline-block; max-width: 100%; padding: 44px 92px 0 0; }
.mdim { position: absolute; margin: 0; display: flex; font-size: 0.9375rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mdim::before, .mdim::after { content: ""; position: absolute; border: 0 solid var(--line-strong); }
.mdim--w { top: 0; left: 0; right: 92px; height: 44px; justify-content: center; }
.mdim--w::before { left: 0; right: 0; bottom: 16px; border-top-width: 1px; }
.mdim--w::after { left: 0; right: 0; bottom: 10px; height: 13px; border-inline-width: 1px; }
.mdim--h { top: 44px; bottom: 0; right: 0; width: 92px; align-items: center; padding-left: 32px; }
.mdim--h::before { top: 0; bottom: 0; left: 16px; border-left-width: 1px; }
.mdim--h::after { top: 0; bottom: 0; left: 10px; width: 13px; border-block-width: 1px; }

.stickybuy { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky); background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px oklch(0.2 0.01 48 / 0.08); transform: translateY(100%); transition: transform 0.3s var(--ease); }
.stickybuy.is-visible { transform: none; }
.stickybuy-in { display: flex; align-items: center; gap: 14px; min-height: 72px; padding-block: 10px; }
.stickybuy img { width: 48px; height: 48px; object-fit: cover; border-radius: var(--radius-sm); }
.stickybuy-name { flex: 1; min-width: 0; font-weight: 500; font-size: 0.9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stickybuy-name .muted { margin-left: 6px; }
@media (max-width: 599px) {
  .stickybuy img, .stickybuy-name { display: none; }
  .stickybuy .price { margin-right: auto; font-size: 1.125rem; }
  .stickybuy .btn { flex: 1; max-width: 230px; }
}

/* ---------- Koszyk ---------- */
.steps { display: flex; gap: 8px 28px; flex-wrap: wrap; margin: 8px 0 28px; font-size: 0.875rem; color: var(--muted); }
.steps li { display: inline-flex; align-items: center; gap: 8px; }
.steps span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong); font-weight: 600; font-size: 0.8125rem; }
.steps [aria-current] { color: var(--ink); font-weight: 600; }
.steps [aria-current] span { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.cart { display: grid; gap: 32px; padding-bottom: 56px; }
@media (min-width: 1024px) { .cart { grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: start; padding-bottom: 80px; } }
.cart-main { display: grid; gap: 20px; justify-items: start; }
.lines { width: 100%; border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 96px 1fr; gap: 8px 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.line-img img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius); background: var(--surface); }
.line-info { display: grid; gap: 4px; align-content: start; }
.line-name { font-weight: 600; text-decoration: none; line-height: 1.35; }
.line-name:hover { text-decoration: underline; }
.line-meta, .line-unit { font-size: 0.8125rem; color: var(--muted); }
.line-qty { grid-column: 2; display: flex; align-items: center; gap: 16px; }
.line-total { grid-column: 2; font-weight: 650; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
@media (min-width: 700px) {
  .line { grid-template-columns: 128px 1fr auto auto; gap: 24px; align-items: start; }
  .line-img img { width: 128px; height: 128px; }
  .line-qty { grid-column: auto; flex-direction: column; align-items: flex-start; gap: 6px; }
  .line-total { grid-column: auto; min-width: 110px; text-align: right; }
}
.summary { display: grid; gap: 18px; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); }
@media (min-width: 1024px) { .summary { position: sticky; top: 132px; } }
.sum { display: grid; gap: 10px; font-size: 0.9375rem; }
.sum > div { display: flex; justify-content: space-between; gap: 16px; }
.sum dt { color: var(--ink-2); }
.sum dd { font-variant-numeric: tabular-nums; font-weight: 500; }
.sum-total { padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line-strong); font-size: 1.25rem; }
.sum-total dt { color: var(--ink); font-weight: 600; }
.sum-total dd { font-weight: 700; letter-spacing: -0.01em; }
.sum-vat { font-size: 0.8125rem; margin-top: -6px; }
.sum-vat dt, .sum-vat dd { color: var(--muted); font-weight: 400; }
/* Rabat za kolejny mebel (Order::bundleDiscount): wiersz w podsumowaniu i zachęta, gdy w koszyku jest jedna sztuka */
.sum-discount dt, .sum-discount dd { color: var(--ok); }
.sum-hint { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 0.875rem; line-height: 1.4; color: var(--ink-2); }
.sum-hint .i { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--ok); }
.coupon summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 0.9375rem; font-weight: 500; cursor: pointer; list-style: none; }
.coupon summary::-webkit-details-marker { display: none; }
.coupon summary .i { width: 18px; height: 18px; color: var(--muted); }
.coupon-form { display: flex; gap: 8px; padding-top: 4px; }
.coupon-form input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); font-size: 1rem; }
.trust { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--ink-2); }
.trust li { display: flex; gap: 10px; align-items: center; }
.trust .i { width: 18px; height: 18px; color: var(--ink); }

/* ---------- Kasa ---------- */
.co-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.co-header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.co-secure { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 600; color: var(--ok); }
.co-secure .i { width: 18px; height: 18px; }
@media (max-width: 599px) { .co-secure { display: none; } }
.checkout { display: grid; gap: 32px; padding-block: 24px 64px; }
@media (min-width: 1024px) { .checkout { grid-template-columns: minmax(0, 1fr) 420px; gap: 64px; align-items: start; padding-top: 40px; } }
.co-main { min-width: 0; max-width: 640px; }
.co-form { display: grid; gap: 36px; }
.co-step { display: grid; gap: 16px; }
.co-legend { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; }
.co-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--on-dark); font-size: 0.875rem; font-weight: 700; }
.field { display: grid; gap: 6px; }
.field label, .field-label { font-size: 0.875rem; font-weight: 600; }
.field-static { margin: 0; font-size: 1rem; }
.field label .muted { font-weight: 400; margin-left: 4px; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); font-size: 1rem;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.field textarea { resize: vertical; min-height: 72px; }
.field input:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px oklch(0.52 0.17 255 / 0.22); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.hint { font-size: 0.8125rem; color: var(--muted); }
.hint--top { display: flex; gap: 8px; align-items: flex-start; margin-top: -6px; }
.hint--top .i { width: 16px; height: 16px; margin-top: 2px; color: var(--ok); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row--zip { grid-template-columns: 110px 1fr; }
@media (max-width: 420px) { .field-row:not(.field-row--zip) { grid-template-columns: 1fr; } }
.opts { display: grid; gap: 10px; }
.opt {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  min-height: 64px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--bg); cursor: pointer;
  transition: border-color 0.18s, background-color 0.18s, box-shadow 0.18s;
}
.opt:hover { border-color: var(--ink-2); }
.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--brand); }
.opt input { width: 20px; height: 20px; margin: 0; accent-color: var(--brand); }
.opt-body { display: grid; gap: 2px; min-width: 0; }
.opt-title { font-weight: 600; }
.opt-sub { font-size: 0.8125rem; color: var(--ink-2); }
.opt-price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.paylogo { display: grid; place-items: center; min-width: 54px; height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; }
.paylogo .i { width: 20px; height: 20px; }
.card-fields { display: grid; gap: 12px; padding: 16px; border-radius: var(--radius-lg); background: var(--surface); }
.co-final { display: grid; gap: 14px; padding-top: 8px; border-top: 1px solid var(--line); }
.co-final .check { padding-top: 16px; }
.co-side { position: sticky; top: 24px; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); }
.co-sum { display: grid; gap: 18px; }
.co-lines { display: grid; gap: 14px; }
.co-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; font-size: 0.875rem; }
.co-img { position: relative; }
.co-img img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); }
.co-qty { position: absolute; top: -8px; right: -8px; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--ink-2); color: var(--on-dark); font-size: 0.75rem; font-weight: 700; }
.co-name { display: grid; gap: 2px; font-weight: 500; line-height: 1.35; }
.co-name .muted { font-size: 0.8125rem; }
.co-name form { justify-self: start; }
.co-name .mini-remove { padding: 4px 0; }
.co-name .mini-actions { margin-top: 6px; font-weight: 400; }
.co-sum:focus { outline: none; }
.co-price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.co-mobile-sum { margin: -24px calc(var(--gutter) * -1) 28px; background: var(--surface); border-bottom: 1px solid var(--line); }
.co-mobile-sum summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 var(--gutter); cursor: pointer; list-style: none; font-weight: 500; color: var(--brand); }
.co-mobile-sum summary::-webkit-details-marker { display: none; }
.co-mobile-sum summary span { display: inline-flex; align-items: center; gap: 8px; }
.co-mobile-sum summary strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.co-mobile-sum .co-sum { padding: 4px var(--gutter) 20px; }
.co-footer { border-top: 1px solid var(--line); font-size: 0.8125rem; }
.co-footer-in { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-block: 20px; }
.co-footer a { color: var(--ink-2); }

/* ---------- Stopka ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-2); font-size: 0.9375rem; margin-top: 0; }
.site-footer .tbd { text-decoration-color: oklch(0.78 0.14 305); }
.footer-grid { display: grid; gap: 36px; padding-block: 56px 40px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-block: 72px 48px; } }
.footer-brand { display: grid; gap: 14px; align-content: start; justify-items: start; max-width: 40ch; }
.logo--footer { color: var(--on-dark); }
.logo--footer span { color: var(--on-dark-2); }
.footer-contact { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark); }
.footer-contact .i { width: 18px; height: 18px; }
.footer-contact a { color: inherit; text-underline-offset: 3px; }
/* Znaczek na dwie linie (napis nad logo) — w jednej linii nie mieści się w kolumnie stopki przy 1024 px. */
.footer-reviews {
  display: inline-grid; justify-items: start; gap: 7px; padding: 10px 14px 12px;
  border: 1px solid oklch(1 0 0 / 0.22); border-radius: var(--radius); color: var(--on-dark-2); font-size: 0.8125rem; line-height: 1.2; text-decoration: none;
  transition: border-color 0.18s, background-color 0.18s, color 0.18s;
}
.footer-reviews:hover { border-color: oklch(1 0 0 / 0.5); background: oklch(1 0 0 / 0.06); color: var(--on-dark); }
.footer-reviews img { display: block; width: auto; height: 18px; }
.footer-h { margin-bottom: 12px; font-size: 0.9375rem; color: var(--on-dark); }
.footer-links a { display: inline-block; padding: 7px 0; text-decoration: none; color: var(--on-dark-2); }
.footer-links a:hover { color: var(--on-dark); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px 28px; border-top: 1px solid oklch(1 0 0 / 0.12); font-size: 0.8125rem; }
.site-footer .paylist li { background: transparent; border-color: oklch(1 0 0 / 0.22); color: var(--on-dark); }

/* ---------- Newsletter: box w stopce (ciemne tło) i strona /newsletter/ (jasne) ---------- */
/* Odstęp od góry stopki paddingiem (margines pierwszego dziecka „wypadłby” nad stopkę jako biały pas). */
.nl-wrap { padding-top: 40px; }
@media (min-width: 1024px) { .nl-wrap { padding-top: 56px; } }
.nl {
  display: grid; gap: 20px 56px; align-items: center; padding: 28px 22px;
  border: 1px solid oklch(1 0 0 / 0.14); border-radius: var(--radius-lg); background: oklch(1 0 0 / 0.05);
}
@media (min-width: 960px) { .nl { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); padding: 36px 44px; } }
.nl-copy { display: grid; gap: 8px; max-width: 44ch; }
.nl-copy p { margin: 0; }
.nl-h { font-size: clamp(1.25rem, 1.05rem + 0.75vw, 1.625rem); color: var(--on-dark); }
.nl-form { display: grid; gap: 10px; min-width: 0; }
.nl-row { display: flex; gap: 8px; }
.nl-row[hidden] { display: none; }
.nl-row input {
  flex: 1; min-width: 0; min-height: 50px; padding: 12px 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); color: var(--ink); font-size: 1rem;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.nl-row input::placeholder { color: var(--muted); }
.nl-row input:hover { border-color: var(--ink-2); }
.nl-row input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px oklch(0.6 0.17 255 / 0.4); }
.nl-row input[aria-invalid="true"] { border-color: var(--bad, #b3261e); }
.nl-row .btn { flex: none; min-height: 50px; padding-inline: 26px; }
.nl-form.is-busy .btn { opacity: 0.7; pointer-events: none; }
@media (max-width: 479px) { .nl-row { flex-direction: column; } }
.nl-msg { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 0.9375rem; font-weight: 500; line-height: 1.45; }
.nl-msg[hidden] { display: none; }
.nl-msg:focus { outline: none; }   /* fokus tylko po to, by czytnik przeczytał wynik — to nie kontrolka */
.nl-msg .i { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.nl-msg--err { color: var(--bad, #b3261e); }
.nl-msg--ok { color: var(--ok); }
.nl-note { margin: 0; font-size: 0.8125rem; line-height: 1.5; color: var(--muted); max-width: 68ch; }
/* „Powiadom mnie, gdy wróci” na karcie produktu, którego nie ma w hurtowni (ten sam formularz co newsletter) */
.stock-alert { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.stock-alert-h { display: flex; gap: 8px; align-items: center; margin: 0; font-weight: 600; }
.stock-alert-h .i { width: 18px; height: 18px; flex: none; }
.stock-alert .nl-row .btn { padding-inline: 18px; }
.nl-note a { color: inherit; }
.site-footer .nl-msg--err { color: oklch(0.83 0.09 27); }
.site-footer .nl-msg--ok { color: var(--on-dark); }
.site-footer .nl-msg--ok .i { color: oklch(0.8 0.13 150); }
.site-footer .nl-note { color: var(--on-dark-2); }
.site-footer .nl-note a:hover { color: var(--on-dark); }
.nl-page .nl-form { max-width: 560px; }
.nl-page form { margin: 0; }

/* ---------- Ruch ograniczony ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .ticker-track { animation: none; width: auto; }
  .ticker-list[aria-hidden="true"] { display: none; }
  .ticker-list { flex-wrap: wrap; justify-content: center; }
}

/* ---------- Sklep: elementy spoza makiety ---------- */
.notice { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; padding: 12px 14px; border-radius: var(--radius); background: var(--brand-tint); color: var(--ink); font-size: 0.9375rem; }
.notice .i { color: var(--brand); margin-top: 1px; }
.notice--ok { background: oklch(0.95 0.035 150); }
.notice--ok .i { color: var(--ok); }
.empty-state { display: grid; justify-items: center; gap: 14px; padding: 56px 16px; text-align: center; }
.empty-state .i { width: 40px; height: 40px; color: var(--muted); stroke-width: 1.5; }
.empty-state p { color: var(--ink-2); max-width: 46ch; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 20px; }
.active-filters a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 18px; background: var(--surface-2); font-size: 0.875rem; text-decoration: none; }
.active-filters a:hover { background: var(--line); }
.active-filters .i { width: 14px; height: 14px; }
.chip { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.search-head { display: grid; gap: 6px; padding-block: 8px 20px; }
.pager-pages a[aria-disabled="true"] { color: var(--line-strong); pointer-events: none; }
.line-qty form { display: contents; }
.qty-form { display: inline-flex; }
.desc { max-width: 72ch; color: var(--ink-2); }
.desc h3 { margin: 28px 0 10px; font-size: 1.25rem; color: var(--ink); }
.desc h3:first-child { margin-top: 0; }
.desc p { margin: 0 0 14px; }
.desc ul { margin: 0 0 14px; padding-left: 20px; list-style: disc; display: grid; gap: 6px; }
.desc strong { color: var(--ink); }
.soon { display: grid; justify-items: start; gap: 14px; max-width: 640px; padding-block: 48px 72px; }
.mini-empty { padding: 32px 4px; color: var(--ink-2); text-align: center; }
.mini-line form { margin-top: 6px; }
.mini-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 10px; }
.mini-actions form { margin-top: 0; }
.mini-actions form.is-busy .qty { opacity: 0.6; }
.mini-remove { padding: 0; border: 0; background: none; color: var(--muted); font-size: 0.8125rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mini-remove:hover { color: var(--ink); }
.card-form { display: contents; }
.is-busy { opacity: 0.6; pointer-events: none; }
.drawer-content { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.stickybuy form { display: contents; }
.set-foot form { display: contents; }
.range input { width: 100%; min-width: 0; }
.range label { min-width: 0; }

/* ---------- Kasa: błędy pól, przegląd adresu, płatność, „Danke" ---------- */
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--bad, #b3261e); }
.field-err { display: flex; align-items: flex-start; gap: 6px; margin: 0; color: var(--bad, #b3261e); font-size: 0.875rem; font-weight: 500; }
.field-err .i { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.check.has-error span { color: var(--bad, #b3261e); }
.notice--error { background: oklch(0.96 0.03 27); color: oklch(0.42 0.15 27); }
.notice .i { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.pay-element { min-height: 180px; }
.pay-loading { padding: 24px 0; }
/* Płatność: formularz Stripe pod opcją „Online bezahlen", znika przy pobraniu; dopisek pod przyciskiem zgodny z wyborem. */
.pay-online { display: grid; gap: 16px; }
.pay-choice .pay-online { padding: 6px 2px 10px; }
.pay-choice:has(input[value="cod"]:checked) .pay-online { display: none; }
.co-form:has(input[name="pm"][value="cod"]:checked) .fine-online,
.co-form:has(input[name="pm"][value="online"]:checked) .fine-cod { display: none; }
.btn.is-loading { opacity: 0.7; cursor: progress; }
/* Pasek z kwotą na telefonie (jak .stickybuy na karcie produktu); chowa się, gdy widać główny przycisk albo klient pisze. */
.co-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky); display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px oklch(0.2 0.01 48 / 0.08); transition: transform 0.3s var(--ease);
}
.co-bar.is-hidden { transform: translateY(110%); }
.co-bar-sum { display: grid; margin: 0; line-height: 1.25; }
.co-bar-sum span { font-size: 0.8125rem; color: var(--ink-2); }
.co-bar-sum strong { font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.co-bar .btn { flex: 1; max-width: 230px; min-height: 48px; }
@media (max-width: 1023px) { .is-checkout:has(.co-bar) .co-footer { padding-bottom: calc(76px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .co-bar { transition: none; } }
/* Ikonka zgód Cookiebota (lewy dolny róg) nad paskiem z kwotą w kasie i z ceną na karcie produktu, nie na nim. */
#CookiebotWidget { transition: bottom 0.3s var(--ease); }
/* Lighthouse / zrzut strony dla Trustindex (lab_screenshot()): bez okna zgody na zdjęciu. */
html[data-lab] #CybotCookiebotDialog, html[data-lab] #CybotCookiebotDialogBodyUnderlay { display: none !important; }
body:has(.stickybuy.is-visible) #CookiebotWidget { bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
@media (max-width: 1023px) { body:has(.co-bar:not(.is-hidden)) #CookiebotWidget { bottom: calc(84px + env(safe-area-inset-bottom)) !important; } }
@media (prefers-reduced-motion: reduce) { #CookiebotWidget { transition: none; } }
.thanks { display: grid; gap: 28px; max-width: 720px; padding-block: 40px 72px; }
.thanks-head { display: grid; gap: 14px; justify-items: start; }
.thanks-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--surface); color: var(--ink-2); }
.thanks-icon .i { width: 28px; height: 28px; }
.thanks-icon--ok { background: oklch(0.94 0.05 150); color: oklch(0.42 0.11 150); }
.thanks-icon--bad { background: oklch(0.95 0.03 27); color: oklch(0.45 0.15 27); }
.thanks-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.thanks-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 4px 12px; align-items: start; counter-increment: s; }
.thanks-steps li::before { content: counter(s); grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--on-dark); font-size: 0.8125rem; font-weight: 700; }
.thanks-steps strong { display: block; }
.thanks-sum { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.legal { display: grid; gap: 24px; max-width: 720px; padding-block: 40px 72px; line-height: 1.6; }
.legal section { display: grid; gap: 6px; }
.legal--page { gap: 20px; }
.legal--page .prose { max-width: none; }
.legal-stand { font-size: 0.875rem; color: var(--muted); }
/* Strony prawne na stagingu: decyzje do podjęcia (na produkcji zwykły tekst, bez <mark>) */
mark.offen { padding: 0 3px; border-radius: var(--radius-sm); background: oklch(0.93 0.05 305); color: inherit; box-decoration-break: clone; -webkit-box-decoration-break: clone; cursor: help; }
.draft-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid oklch(0.82 0.08 305); border-radius: var(--radius-lg); background: oklch(0.97 0.02 305); font-size: 0.9375rem; line-height: 1.5; }
.draft-note .i { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--tbd); }
/* FAQ: grupy (h2) i rozwijane pytania bez JS */
.faq h2 { margin: 1.6em 0 0.5em; font-size: 1.25rem; letter-spacing: -0.01em; }
.faq h2:first-child { margin-top: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand); }
.faq-item summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--radius-sm); }
.faq-icon { flex: none; width: 20px; height: 20px; transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1); }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-answer { max-width: none; padding-bottom: 18px; font-size: 1rem; }
@media (prefers-reduced-motion: reduce) { .faq-icon { transition: none; } }

/* ---------- Inspiration & Ratgeber ---------- */
.tabs a.tab { display: inline-flex; align-items: center; flex: none; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--bg); font-weight: 500; font-size: 0.9375rem; color: var(--ink); text-decoration: none; transition: background-color 0.18s, color 0.18s, border-color 0.18s; }
.tabs a.tab:hover { border-color: var(--ink); }
.tabs a.tab.is-active { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.blog { display: grid; gap: 24px; padding-bottom: 72px; }
.blog-head { display: grid; gap: 10px; }
.blog-empty { padding: 40px 0; }
.blog-pager { display: flex; flex-wrap: wrap; gap: 8px; }
.post-grid { display: grid; gap: 32px 24px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
/* Strona główna: 4 wpisy w jednym rzędzie od 1100 px, 2 × 2 na tablecie, na telefonie 3 (czwarty schowany — lista i tak jest długa). */
.post-grid--home { grid-template-columns: minmax(0, 1fr); }
.post-grid--home > :nth-child(n + 4) { display: none; }
@media (min-width: 600px) { .post-grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); } .post-grid--home > :nth-child(4) { display: grid; } }
@media (min-width: 1100px) { .post-grid--home { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.post-card { position: relative; display: grid; gap: 10px; align-content: start; }
.post-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.post-card:hover .post-card-media img { transform: scale(1.03); }
.post-kicker { margin: 0; font-size: 0.8125rem; font-weight: 600; color: var(--brand); }
.post-card-title { margin: 0; font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
.post-card-title a { text-decoration: none; color: var(--ink); }
.post-card-title a::after { content: ""; position: absolute; inset: 0; }
.post-card-excerpt { margin: 0; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.5; }
.post { padding-bottom: 48px; }
.post-narrow { max-width: 760px; }
.post-head { display: grid; gap: 12px; padding-block: 8px 24px; }
.post-title { margin: 0; font-size: clamp(1.875rem, 1.3rem + 2.2vw, 2.75rem); line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
.post-cover { margin-block: 0 32px; }
.post-cover img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-lg); background: var(--surface); }
.prose { font-size: 1.0625rem; line-height: 1.7; color: var(--ink); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.015em; text-wrap: balance; }
.prose h3 { margin-top: 1.5em; font-size: 1.1875rem; line-height: 1.3; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--muted); }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--brand); text-underline-offset: 3px; }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brand); font-size: 1.1875rem; line-height: 1.5; color: var(--ink); }
.prose blockquote p { margin: 0; }
.prose figure { margin-inline: 0; }
.prose figure img { width: 100%; border-radius: var(--radius-lg); background: var(--surface); }
.prose figcaption { margin-top: 8px; font-size: 0.875rem; color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.prose .table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-weight: 600; background: var(--surface); }
.post-products { margin-block: 28px; }
.post-cta { padding-top: 16px; }

/* ---------- Kontakt ---------- */
.contact { display: grid; gap: 28px; padding-block: 40px 72px; }
.contact-head { display: grid; gap: 10px; max-width: 62ch; }
.contact-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px; } }
.contact-card { display: grid; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); box-shadow: 0 1px 2px oklch(0.2 0.01 48 / 0.04); }
@media (min-width: 600px) { .contact-card { padding: 32px; } }
.contact-form { display: grid; gap: 18px; }
.contact-form .btn-lg { justify-self: start; padding-inline: 28px; }
@media (max-width: 599px) { .contact-form .btn-lg { justify-self: stretch; } }
.topic { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.topic legend { padding: 0; margin-bottom: 10px; font-size: 0.875rem; font-weight: 600; }
.topic-list { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-opt { position: relative; display: inline-flex; }
.topic-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.topic-opt span { white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 22px; font-size: 0.9375rem; font-weight: 500; transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease); }
.topic-opt:hover span { border-color: var(--ink); }
.topic-opt input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.topic-opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.topic.has-error .topic-opt span { border-color: var(--bad, #b3261e); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-aside { display: grid; gap: 4px; }
.contact-block { display: flex; gap: 14px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.contact-block:last-child { border-bottom: 0; }
.contact-block h2 { margin-bottom: 4px; }
.contact-block p { color: var(--ink-2); line-height: 1.55; }
.contact-block a { color: var(--brand); text-underline-offset: 3px; }
.contact-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); }
.contact-icon .i { width: 20px; height: 20px; }
.contact-links { display: grid; gap: 6px; margin-top: 2px; }
.contact-block--plain { padding-left: 58px; }
.contact-done { display: grid; gap: 12px; justify-items: start; padding-block: 12px; }
.contact-done-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: oklch(0.95 0.035 150); color: var(--ok); }
.contact-done-icon .i { width: 26px; height: 26px; }
.contact-done-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .topic-opt span { transition: none; } }
/* reCAPTCHA v3: plakietka ukryta (dozwolone, gdy przy formularzu jest informacja o Google) */
.grecaptcha-badge { visibility: hidden; }

/* „Passt das bei mir?" (passt.js): wymiary miejsca klienta → luz/nadmiar + rysunek mebla w tym miejscu. Bez JS ukryte. */
.measure--nofig:not(.has-fig) .measure-fig { display: none; }
@media (min-width: 900px) { .measure--nofig:not(.has-fig) { grid-template-columns: minmax(0, 760px); } }
.fit { margin-top: 28px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.fit-h { margin: 0 0 4px; font-size: 1.125rem; font-weight: 650; text-wrap: balance; }
.fit-lead { margin: 0 0 16px; max-width: 60ch; color: var(--ink-2); font-size: 0.9375rem; }
.fit-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 12px; }
.fit-field { display: grid; gap: 4px; font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); }
.unit-in { position: relative; display: block; }
.unit-in input { width: 100%; height: 46px; padding: 0 40px 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); font-size: 1rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.unit-in input:hover { border-color: var(--ink-2); }
.unit-in input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px oklch(0.52 0.17 255 / 0.22); }
.unit-in input[aria-invalid="true"] { border-color: var(--bad, #b3261e); }
.unit-in > span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 0.875rem; font-weight: 400; pointer-events: none; }
.range--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.facet-hint { margin: 8px 0 0; font-size: 0.8125rem; color: var(--muted); }
.fit-out { margin-top: 18px; }
.fit-out:empty { display: none; }
.fit-verdict { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 10px; font-size: 1.25rem; line-height: 1.3; font-weight: 700; color: var(--ok); text-wrap: balance; }
.fit-verdict::before { content: "✓"; display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; margin-top: 0; border-radius: 50%; background: var(--ok); color: var(--bg); font-size: 0.875rem; line-height: 1; }
.fit-verdict--tight { color: var(--warn); }
.fit-verdict--tight::before { content: "!"; background: var(--warn); }
.fit-verdict--no { color: var(--bad, #b3261e); }
.fit-verdict--no::before { content: "✕"; background: var(--bad, #b3261e); }
.fit-rows { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.fit-row { display: flex; align-items: baseline; gap: 10px; font-size: 0.9375rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.fit-row::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); transform: translateY(-1px); }
.fit-row--tight::before { background: var(--warn); }
.fit-row--no::before { background: var(--bad, #b3261e); }
.fit-row strong { font-weight: 600; }
.fit-tip { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--radius); background: var(--note); font-size: 0.875rem; color: var(--ink); }
.fit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 16px 0 0; font-size: 0.9375rem; }
.fit-actions[hidden] { display: none; }
.fit-more { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.fit-more:hover { color: var(--brand-hover); }
.fit-more .i { width: 16px; height: 16px; vertical-align: -3px; }
.fit-clear { padding: 0; border: 0; background: none; font: inherit; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fit-clear:hover { color: var(--ink); }
.fit-hint { margin: 16px 0 0; font-size: 0.8125rem; color: var(--muted); }
.fit-fig { display: flex; justify-content: center; width: 100%; }
.fit-fig[hidden], .measure-draw[hidden] { display: none; }
.fit-svg { max-width: 100%; height: auto; overflow: visible; }
.fit-floor { stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.fit-prod { fill: var(--surface-2); stroke: var(--ink-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.fit-prod--img { fill: none; stroke: var(--line-strong); }
.fit-over { fill: oklch(0.58 0.2 27 / 0.28); stroke: var(--bad, #b3261e); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.fit-space { fill: oklch(0.51 0.15 42 / 0.05); stroke: var(--brand); stroke-width: 2; stroke-dasharray: 7 5; vector-effect: non-scaling-stroke; }
line.fit-space { fill: none; }
.fit-label { fill: var(--brand); font-family: var(--font); font-weight: 600; font-variant-numeric: tabular-nums; }
.fit-label--item { fill: var(--ink-2); font-weight: 500; }

/* Lista produktów z filtrami: od 1024 px filtry stoją w kolumnie po lewej, na telefonie zostaje wysuwany panel (przycisk „Filter”). */
@media (min-width: 1024px) {
  .catalog--filters { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 40px; align-items: start; }
  .catalog--filters [data-open="filter-drawer"] { display: none; }
  .drawer--filter, .drawer--filter[hidden] { position: static; display: block !important; width: auto; transform: none; transition: none; box-shadow: none; background: none; z-index: auto; }
  .drawer--filter .drawer-head { min-height: 74px; padding: 0; border-block: 1px solid var(--line); }
  .drawer--filter .drawer-title { font-size: 1rem; }
  .drawer--filter [data-close] { display: none; }
  .drawer--filter .drawer-content { display: block; }
  .drawer--filter .drawer-body { padding: 0; overflow: visible; }
  .drawer--filter .drawer-foot { grid-template-columns: minmax(0, 1fr); padding: 18px 0 0; border-top: 0; background: none; }
  .drawer--filter .drawer-foot .btn-primary { order: -1; }
  .catalog--filters .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; }
}
@media (min-width: 1400px) { .catalog--filters .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 24px; } }

/* Merkliste: serce na kafelku, na karcie produktu i w nagłówku (shop.js, localStorage). */
.fav { display: grid; place-items: center; cursor: pointer; }
.fav .i { transition: transform 0.2s var(--ease), fill 0.2s var(--ease), stroke 0.2s var(--ease); }
.fav:active .i { transform: scale(0.85); }
.fav[aria-pressed="true"] .i { fill: var(--brand); stroke: var(--brand); }
.fav--card { position: absolute; top: 8px; right: 8px; z-index: 1; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: oklch(1 0 0 / 0.9); color: var(--ink); box-shadow: var(--shadow-sm); }
.fav--card:hover { background: var(--bg); color: var(--brand); }
.fav--title { position: absolute; top: -6px; right: 0; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--bg); color: var(--ink); }
.fav--title:hover { border-color: var(--ink-2); color: var(--brand); }
.fav--title .i { width: 22px; height: 22px; }
.fav-head { margin-bottom: 20px; }
.fav-lead { max-width: 60ch; margin-top: 8px; color: var(--ink-2); }
.fav-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-block: 14px; margin-bottom: 24px; border-block: 1px solid var(--line); }
.fav-bar-label { margin-right: 4px; font-size: 0.9375rem; font-weight: 600; }
.fav-bar .btn .i { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) { .fav .i { transition: none; } .fav:active .i { transform: none; } }
