/* =============================================================
   KMM//WORKS — MOTYW SKLEPU (Technical)
   Monospace · ostre krawędzie · ciemny header i stopka.
   Jeden samodzielny arkusz dla całej części publicznej:
   home, /sklep, /produkt, /kontakt, checkout, strony prawne, 404.
   NIE ładuj razem z catalog.css / home.css / checkout.css / legal.css
   — to jest ich zamiennik (stare pliki zostają na wypadek powrotu
   do poprzedniego designu).
   Pokrywa też komponenty generowane z JS: karta produktu, modal,
   drawer koszyka, warianty, banery, toast, cookie, checkout.
   ============================================================= */

:root {
  --bg: #ffffff;
  --bg-2: #fafafa;
  --panel: #ffffff;
  --grid: #ededed;
  --border: #e4e4e4;
  --border-strong: #111111;
  --ink: #0a0a0a;
  --text: #0a0a0a;
  --text-muted: #6b6b6b;
  --text-soft: #9a9a9a;

  /* akcent = elektryczny błękit „blueprint" */
  --accent: #1f36ff;
  --accent-hover: #0a1fe0;
  --accent-light: #eef0ff;
  /* jaśniejszy błękit — czytelny na ciemnym pasku i w stopce */
  --accent-on-dark: #7d8bff;
  --danger: #ff2d2d;
  --success: #12a150;

  /* aliasy dla inline-styli z shop-common.js */
  --surface: var(--panel);
  --surface-2: var(--bg-2);
  --shadow-sm: 0 1px 0 rgba(0,0,0,0.04);
  --shadow-md: 0 2px 0 var(--ink);
  --shadow-lg: 6px 6px 0 var(--ink);

  --radius: 0px;
  --radius-sm: 0px;
  --radius-xs: 0px;
  --max-w: 1360px;

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body.tx-body {
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

/* Stopka zawsze przy dolnej krawędzi okna, nawet gdy treści jest mało
   (status zamówienia, 404, strony prawne). Kolumna flex zamiast min-height na
   samej stopce, bo tylko tak działa niezależnie od wysokości treści.

   UWAGA na `width: 100%` poniżej — bez niego układ się sypie. Sekcje strony mają
   `margin: 0 auto` do wyśrodkowania treści, a w kontenerze flex poziomy margines
   `auto` WYŁĄCZA rozciąganie: element dostaje szerokość swojej zawartości zamiast
   pełnej. Na stronie głównej grid produktów liczył wtedy kolumny od zwężonego
   kontenera i schodził do dwóch. Wyliczamy elementy z osobna, bo selektor
   uniwersalny objąłby też toast i baner cookies — te są `position: fixed`
   i szerokość 100% rozciągnęłaby je na cały ekran. */
body.tx-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.tx-body > .shop-header,
body.tx-body > #site-banners,
body.tx-body > .hero,
body.tx-body > .shop-categories,
body.tx-body > main,
body.tx-body > .checkout-main,
body.tx-body > .result-page,
body.tx-body > .shop-footer {
  width: 100%;
  flex-shrink: 0;
}
body.tx-body > main,
body.tx-body > .checkout-main,
body.tx-body > .result-page { flex: 1 0 auto; }
body.tx-body > .shop-footer { margin-top: auto; }

.tx-body img { display: block; max-width: 100%; }
.muted { color: var(--text-muted); }

/* :where() → zerowa specyficzność, żeby resety nie nadpisywały kolorów i teł z klas
   (bez tego .tx-body a / .tx-body button wygrywały z .btn-home, .btn-pay itd.) */
:where(.tx-body) button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:where(.tx-body) a { color: inherit; }

::selection { background: var(--accent); color: #fff; }

/* uniwersalny wrapper na max szerokość + hairline po bokach */
.tx-header .shop-header-inner,
.tx-main,
.tx-footer .shop-footer-inner,
.tx-footer .shop-footer-bottom,
.site-banner-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ===================== Header (ciemny) ===================== */
.tx-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,10,0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid #1c1c1c;
  color: #fff;
}
/* Desktop: logo — menu — wyszukiwarka i koszyk po prawej.
   Układ burger / logo na środku / koszyk jest tylko w wersji mobilnej
   (media max-width: 900px na końcu pliku). */
.tx-header .shop-header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 28px;
}

.tx-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
}
.tx-header .tx-brand-mark { color: #fff; }
.tx-brand-slash { color: var(--accent-on-dark); margin: 0 1px; }
.tx-header .tx-brand-sub { color: #fff; }
/* logo SVG jest białe → na ciemnym pasku bez filtrów */
.tx-brand img {
  height: 30px;
  width: auto;
  max-width: 150px;
}

.tx-header .shop-nav { display: flex; align-items: center; gap: 26px; margin-left: 14px; }
.tx-header .nav-link {
  position: relative;
  text-decoration: none;
  color: rgba(255,255,255,0.62);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  padding: 6px 0;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
}
.tx-header .nav-link:hover,
.tx-header .nav-link.active { color: #fff; }
.tx-header .nav-link.active::before { content: "> "; color: var(--accent-on-dark); }
/* lucide podmienia <i> na <svg class="lucide">, więc obie postacie muszą być w selektorze */
.tx-header .nav-link :is(i, svg.lucide),
.tx-header .nav-link svg.lucide { width: 13px; height: 13px; transition: transform 0.15s ease; }

/* dropdown — na desktopie pływająca warstwa pod „katalogiem" */
.tx-header .nav-dropdown { position: relative; }
.tx-header .nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 250px;
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  box-shadow: 6px 6px 0 rgba(0,0,0,0.4);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 60;
}
.tx-header .nav-dropdown:hover .nav-dropdown-menu,
.tx-header .nav-dropdown.open .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.tx-header .nav-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px;
  text-decoration: none;
  color: rgba(255,255,255,0.8);
  font-family: var(--mono);
  font-size: 12px;
  transition: background 0.12s ease, color 0.12s ease;
}
.tx-header .nav-dropdown-item:hover { background: var(--accent); color: #fff; }
/* bez ikon w rozwijanym katalogu (menu bywa przebudowywane przez shop-common.js) */
.tx-header .nav-dropdown-item :is(i, svg.lucide),
.tx-header .nav-dropdown-item svg.lucide { display: none; }
.tx-header .nav-dropdown-count { margin-left: auto; color: rgba(255,255,255,0.45); }

/* search — na desktopie w pasku po prawej, na mobile przenoszona do menu */
.tx-header .shop-search {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 8px 12px;
  min-width: 230px;
  transition: border-color 0.15s ease;
}
.tx-header .shop-search:focus-within { border-color: #fff; }
.tx-header .shop-search :is(i, svg.lucide) { width: 14px; height: 14px; color: rgba(255,255,255,0.55); }
.tx-header .shop-search input {
  border: none; outline: none; background: none;
  font-family: var(--mono); font-size: 12px; color: #fff;
  width: 100%;
}
.tx-header .shop-search input::placeholder { color: rgba(255,255,255,0.42); }

.tx-header .shop-header-actions { display: flex; align-items: center; gap: 8px; }
.tx-header .cart-btn {
  position: relative;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.28);
  background: transparent;
  color: #fff;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.tx-header .cart-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.tx-header .cart-btn :is(i, svg.lucide) { width: 16px; height: 16px; }
.tx-header .cart-badge {
  position: absolute;
  top: -8px; right: -8px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  display: grid; place-items: center;
}

.nav-toggle {
  display: none; /* tylko mobile — patrz media max-width: 900px */
  width: 38px; height: 38px;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.28);
  background: transparent;
  color: #fff;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.nav-toggle:hover { background: var(--accent); border-color: var(--accent); }
.nav-toggle :is(i, svg.lucide) { width: 18px; height: 18px; }

/* ===================== Site banners ===================== */
.site-banner { width: 100%; border-bottom: 1px solid var(--ink); }
.site-banner-inner {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 28px;
  font-family: var(--mono);
  font-size: 12px;
}
.site-banner-inner :is(i, svg.lucide) { width: 16px; height: 16px; flex-shrink: 0; }
.site-banner-link { text-decoration: underline; font-weight: 600; margin-left: 4px; }
.site-banner-close { margin-left: auto; display: grid; place-items: center; opacity: 0.7; }
.site-banner-close :is(i, svg.lucide) { width: 14px; height: 14px; }

/* ===================== Hero (baner / slider) ===================== */
.hero {
  position: relative;
  width: 100%;
  max-width: var(--max-w);
  margin: 24px auto 0;
  padding: 0 28px;
}
.hero-track {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1400 / 500;
  background: #1d1d1f;
  border: 1px solid var(--ink);
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.05) 100%);
}
.hero-content {
  position: relative;
  max-width: 540px;
  padding: 0 48px;
  color: #fff;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-block;
  padding: 5px 11px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}
.hero-content h1, .hero-content h2 {
  font-family: var(--sans);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-transform: uppercase;
}
.hero-content p {
  font-family: var(--mono);
  font-size: clamp(13px, 1.2vw, 15px);
  line-height: 1.6;
  margin: 0 0 26px;
  opacity: 0.9;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.hero-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translate(-2px,-2px);
  box-shadow: 6px 6px 0 rgba(255,255,255,0.28);
}
.hero-cta [data-lucide], .hero-cta svg.lucide { width: 15px; height: 15px; }

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: background 0.15s ease, opacity 0.15s ease;
  z-index: 2;
}
.hero-nav [data-lucide], .hero-nav svg.lucide { width: 14px; height: 14px; }
.hero:hover .hero-nav { opacity: 0.9; }
.hero-nav:hover { background: var(--accent); border-color: var(--accent); opacity: 1; }
.hero-prev { left: 42px; }
.hero-next { right: 42px; }
.hero-nav[hidden] { display: none; }

.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.hero-dots[hidden] { display: none; }
.hero-dot {
  width: 16px;
  height: 3px;
  padding: 0;
  border: none;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: background 0.15s ease, width 0.15s ease;
  flex: 0 0 auto;
}
.hero-dot:hover { background: rgba(255,255,255,0.75); }
.hero-dot.active { background: #fff; width: 28px; }

/* ===================== Main ===================== */
.tx-main { padding: 0 28px 90px; }
.tx-loading, .catalog-empty {
  text-align: center;
  padding: 70px 20px;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 13px;
}

/* ===================== Sekcje produktowe ===================== */
/* Licznik należy do całego main, bo sekcja Posty jest rodzeństwem kontenera
   sekcji CMS. Dzięki temu obie części korzystają z jednej sekwencji. */
.tx-main { counter-reset: sec; }
.tx-sections { display: block; }
.home-section { padding: 56px 0 0; }
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}
.home-section,
.home-posts { counter-increment: sec; }
.section-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.section-title::before {
  content: counter(sec, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.section-subtitle {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 12px;
}
.section-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: lowercase;
  transition: color 0.15s ease;
}
.section-link:hover { color: var(--accent); }
.section-link:hover :is(i, svg.lucide) { transform: translateX(3px); transition: transform 0.15s ease; }
.section-link :is(i, svg.lucide) { width: 14px; height: 14px; }

/* siatka z hairline'ami (jak arkusz katalogowy) */
.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

/* ===================== Karta produktu ===================== */
.product-card {
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  transition: background 0.15s ease;
}
.product-card:hover { background: var(--bg-2); }
.product-card:hover::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid var(--accent);
  pointer-events: none;
  z-index: 3;
}
.product-card-image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: transparent;
}
.product-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.08s linear;
  mix-blend-mode: normal;
}
.product-card-image img.loaded { opacity: 1; }
.card-img-hover {
  position: absolute;
  inset: 0;
  opacity: 0 !important;
}
.product-card:hover .product-card-image:has(.card-img-hover.loaded) .card-img-main {
  opacity: 0;
}
.product-card:hover .card-img-hover.loaded { opacity: 1 !important; }
.product-card-image .placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--text-soft); }
.product-card-image .placeholder :is(i, svg.lucide) { width: 30px; height: 30px; }

.product-card-image.skeleton::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--bg-2) 30%, #f0f0f0 50%, var(--bg-2) 70%);
  background-size: 200% 100%;
  animation: tx-shimmer 1.3s ease-in-out infinite;
  z-index: 1;
}
@keyframes tx-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.product-card-labels {
  position: absolute;
  top: 8px; left: 8px;
  display: flex; flex-wrap: wrap; gap: 5px;
  z-index: 2;
}
.product-label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 7px;
}

.product-card-body {
  padding: 14px 0 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card-name {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.35;
  margin: 0 0 auto;
  color: var(--text);
}
.product-card-price {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.product-card-add {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  padding: 10px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.product-card-add:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.product-card-add :is(i, svg.lucide) { width: 13px; height: 13px; }
.product-card-soldout {
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed var(--border-strong);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-soft);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===================== Footer (ciemna) ===================== */
.tx-footer {
  background: var(--ink);
  color: #fff;
}
.tx-footer .shop-footer-inner {
  padding: 52px 28px 40px;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.15fr 1fr;
  gap: 36px;
}
/* logo w stopce — SVG jest białe, więc bez filtrów */
.tx-footer-logo {
  height: 32px;
  width: auto;
  max-width: 160px;
  margin-bottom: 16px;
}
.tx-footer-brand .tx-brand-mark {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 16px;
  display: block;
  margin-bottom: 12px;
  color: #fff;
}
.tx-footer-brand p { margin: 0; color: rgba(255,255,255,0.55); font-family: var(--mono); font-size: 12px; line-height: 1.6; }
.tx-footer-socials {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}
.tx-footer .tx-footer-brand .tx-footer-socials a {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: rgba(255,255,255,0.62);
  transition: color 0.15s ease;
}
.tx-footer .tx-footer-brand .tx-footer-socials a:hover,
.tx-footer .tx-footer-brand .tx-footer-socials a:focus-visible {
  color: #fff;
}
.tx-footer .tx-footer-brand .tx-footer-socials a:focus-visible {
  outline: 2px solid var(--accent-on-dark);
  outline-offset: 4px;
}
.tx-footer-socials svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.tx-footer .shop-footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45);
  margin: 3px 0 16px;
}
.tx-footer .shop-footer-col ul { list-style: none; margin: 0; padding: 0; }
.tx-footer .shop-footer-col li { margin-bottom: 10px; font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,0.65); }
.tx-footer .shop-footer-col a { text-decoration: none; color: rgba(255,255,255,0.65); transition: color 0.15s ease; }
.tx-footer .shop-footer-col a:hover { color: var(--accent-on-dark); }
.tx-footer .shop-footer-bottom {
  padding: 18px 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
}
.tx-footer-tag { color: var(--accent-on-dark); }

/* ===================== Modal produktu ===================== */
.cat-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; }
body.modal-open { overflow: hidden; }
.cat-modal[hidden] { display: none; }
.cat-modal-backdrop { position: absolute; inset: 0; background: rgba(10,10,10,0.5); }
.cat-modal-card {
  position: relative;
  z-index: 1;
  width: min(940px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--panel);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow-lg);
}
.cat-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--panel);
  border: 1px solid var(--ink);
  z-index: 5;
  transition: background 0.15s ease, color 0.15s ease;
}
.cat-modal-close:hover { background: var(--ink); color: #fff; }
.cat-modal-close :is(i, svg.lucide) { width: 16px; height: 16px; }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; min-width: 0; }
.product-detail > * { min-width: 0; }
/* kolumna z galerią rozciąga się na wysokość kolumny z opisem (grid stretch),
   więc kwadratowe zdjęcie centrujemy w pionie — nadmiar miejsca rozkłada się
   symetrycznie zamiast zbierać w jedną lukę pod zdjęciem */
.product-detail-gallery {
  padding: 24px;
  border-right: 1px solid var(--border);
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* bez tła i ramki — zdjęcia mają białe tło, a mix-blend-mode: multiply wtapia je
   bezszwowo w tło galerii (--bg-2), więc produkt zdaje się leżeć wprost na kolumnie */
.product-detail-image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.product-detail-image img { width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 0.3s ease; mix-blend-mode: multiply; }
.product-detail-image img.loaded { opacity: 1; }
.product-detail-image.skeleton::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--bg-2) 30%, #f0f0f0 50%, var(--bg-2) 70%);
  background-size: 200% 100%;
  animation: tx-shimmer 1.3s ease-in-out infinite;
}
.product-detail-image .placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--text-soft); }
.product-detail-thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.detail-thumb {
  width: 56px; height: 56px;
  overflow: hidden;
  border: 1px solid var(--border);
  padding: 0;
  transition: border-color 0.15s ease;
}
.detail-thumb.active { border-color: var(--accent); }
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-detail-info { padding: 36px 32px; display: flex; flex-direction: column; min-width: 0; }
/* min-height rezerwuje miejsce na etykiety, żeby modal nie zmieniał wysokości
   zależnie od tego, czy produkt ma etykiety (9px * 1.4 + 2*3px paddingu ≈ 19px) */
.product-detail-labels { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 14px; min-height: 19px; }
.product-detail-labels .product-label { line-height: 1.4; }
.product-detail-info h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.product-detail-code {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 18px;
}
.product-detail-code::before { content: "// "; color: var(--text-soft); }
.product-detail-code { overflow-wrap: anywhere; }
.product-detail-meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.product-detail-meta-row .product-detail-code { margin-bottom: 0; }
.product-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--ink);
  padding: 5px 10px;
  cursor: pointer;
}
.product-share-btn:hover { color: var(--accent); border-color: var(--accent); }
.product-share-btn [data-lucide], .product-share-btn svg.lucide { width: 12px; height: 12px; }
.product-detail-desc { font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--text-muted); margin: 18px 0 24px; overflow-wrap: anywhere; }
.product-detail-price {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 600;
  margin: 6px 0 22px;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}
/* Strefa akcji — stała wysokość niezależnie od stanu produktu (koszyk /
   „sklep wkrótce” / wstawka „powiadom mnie”). Dzięki temu przełączanie
   wariantów kolorystycznych nie zmienia wysokości modala. */
.product-detail-action {
  margin-top: auto;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
}
.product-detail-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 26px;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  text-transform: lowercase;
  letter-spacing: 0.03em;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.product-detail-add:hover { background: var(--accent); border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translate(-2px,-2px); }
.product-detail-add :is(i, svg.lucide) { width: 16px; height: 16px; }

/* warianty */
.product-detail-colors { margin: 4px 0 22px; }
.product-detail-colors-label { font-family: var(--mono); font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.product-detail-colors-label strong { color: var(--ink); font-weight: 600; }
.product-detail-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.color-swatch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--border);
  background: var(--panel);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.color-swatch:hover { border-color: var(--ink); }
.color-swatch.active { border-color: var(--accent); background: var(--accent-light); }
.color-swatch-dot { width: 18px; height: 18px; border: 1px solid rgba(0,0,0,0.12); flex-shrink: 0; }
.color-swatch-name { font-family: var(--mono); font-size: 11px; color: var(--text); }
.color-swatch.out { opacity: 0.5; }
.color-swatch.out::after {
  content: ""; position: absolute; left: 6px; top: 50%;
  width: 18px; height: 1px; background: var(--danger); transform: rotate(-45deg);
}

.product-soon-note {
  margin: 0;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}
.product-out-of-stock {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 16px;
  min-width: 0;
}
.product-out-of-stock-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.product-out-of-stock-title :is(i, svg.lucide) { width: 16px; height: 16px; flex-shrink: 0; color: var(--text-muted); }
.product-out-of-stock-note {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}
.notify-stock-form { display: flex; gap: 8px; margin-top: 4px; min-width: 0; }
.notify-stock-done {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  min-height: 40px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
  color: var(--success);
}
.notify-stock-done :is(i, svg.lucide) { width: 14px; height: 14px; flex-shrink: 0; }
.notify-stock-email {
  flex: 1 1 auto;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  outline: none;
  background: var(--panel);
}
.btn-notify-stock {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 16px;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-notify-stock:hover { background: var(--accent); border-color: var(--accent); }
.btn-notify-stock :is(i, svg.lucide) { width: 13px; height: 13px; }

/* ===================== Drawer koszyka ===================== */
.cart-drawer { position: fixed; inset: 0; z-index: 210; }
.cart-drawer[hidden] { display: none; }
.cart-drawer-backdrop { position: absolute; inset: 0; background: rgba(10,10,10,0.5); }
.cart-drawer-panel {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: min(420px, 100%);
  background: var(--panel);
  border-left: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  animation: tx-slide 0.24s cubic-bezier(0.2,0.7,0.2,1);
}
@keyframes tx-slide { from { transform: translateX(100%); } to { transform: translateX(0); } }
.cart-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--ink);
}
.cart-drawer-header h2 { font-family: var(--mono); font-weight: 600; font-size: 15px; margin: 0; }
.cart-drawer-header .cat-modal-close { position: static; width: 32px; height: 32px; }
.cart-items { flex: 1; overflow-y: auto; padding: 8px 22px; }
.cart-empty { text-align: center; color: var(--text-muted); padding: 60px 20px; font-family: var(--mono); font-size: 13px; }
.cart-item { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.cart-item-img { width: 60px; height: 60px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--border); flex-shrink: 0; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-family: var(--sans); font-size: 14px; font-weight: 500; margin: 0 0 4px; }
.cart-item-price { font-family: var(--mono); font-size: 11px; color: var(--text-muted); }
.cart-item-controls { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 10px; }
.qty-stepper { display: flex; align-items: center; border: 1px solid var(--ink); }
.qty-stepper button { width: 26px; height: 26px; display: grid; place-items: center; font-family: var(--mono); font-size: 14px; transition: background 0.12s ease, color 0.12s ease; }
.qty-stepper button:hover { background: var(--ink); color: #fff; }
.qty-stepper .qty { min-width: 26px; text-align: center; font-family: var(--mono); font-size: 12px; }
.cart-item-remove { font-family: var(--mono); font-size: 11px; color: var(--text-soft); text-decoration: underline; }
.cart-item-remove:hover { color: var(--danger); }

.cart-drawer-footer { padding: 18px 22px 22px; border-top: 1px solid var(--ink); background: var(--bg-2); }
.discount-row { display: flex; gap: 8px; margin-bottom: 14px; }
.discount-row input {
  flex: 1; padding: 11px 12px;
  border: 1px solid var(--ink);
  font-family: var(--mono); font-size: 12px;
  outline: none; background: var(--panel);
}
.discount-row button { padding: 11px 18px; background: var(--ink); color: #fff; font-family: var(--mono); font-size: 12px; }
.discount-applied {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  background: var(--accent-light);
  border: 1px solid var(--accent);
  font-family: var(--mono); font-size: 12px;
  margin-bottom: 12px;
}
.discount-applied :is(i, svg.lucide) { width: 14px; height: 14px; color: var(--success); }
.discount-remove-btn { margin-left: auto; font-family: var(--mono); font-size: 11px; text-decoration: underline; color: var(--text-muted); }

.cart-summary { margin-bottom: 16px; }
.cart-summary-line { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 13px; color: var(--text-muted); padding: 5px 0; }
.discount-line { color: var(--success); }
.cart-total-line { border-top: 1px solid var(--ink); margin-top: 8px; padding-top: 12px; color: var(--text); }
.cart-total-line span { font-size: 13px; }
.cart-total-line strong { font-family: var(--mono); font-size: 20px; font-weight: 600; }

.btn-checkout {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-checkout:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); }
.btn-checkout:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-checkout :is(i, svg.lucide) { width: 16px; height: 16px; }

/* ===================== Toast ===================== */
.catalog-toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  font-family: var(--mono);
  font-size: 12px;
  border: 1px solid var(--ink);
  box-shadow: var(--shadow-lg);
  animation: tx-toast 0.2s ease;
}
.catalog-toast[hidden] { display: none; }
.catalog-toast::before { content: "> "; color: var(--accent); }
@keyframes tx-toast { from { opacity: 0; transform: translateX(-50%) translateY(8px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ===================== Cookie banner ===================== */
.cookie-banner {
  position: fixed;
  bottom: 18px; left: 18px;
  z-index: 250;
  max-width: 380px;
  background: var(--panel);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow-lg);
  padding: 18px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0 0 14px; font-family: var(--mono); font-size: 12px; line-height: 1.55; color: var(--text-muted); }
.cookie-banner a { color: var(--accent); text-decoration: underline; }
.cookie-accept { padding: 10px 20px; background: var(--accent); color: #fff; font-family: var(--mono); font-size: 12px; }

/* ===================== Responsywność ===================== */
@media (max-width: 900px) {
  /* ===== Mobile: burger — logo na środku — koszyk =====
     Skrajne kolumny 1fr trzymają logo dokładnie na osi, niezależnie od
     szerokości burgera i koszyka. Strony bez nawigacji (checkout, legal, 404)
     mają samo logo — dlatego pozycje w siatce przypisane są wprost. */
  .tx-header .shop-header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
  }
  /* wiersze przypisane wprost — inaczej auto-placement zepchnąłby koszyk
     pod menu, bo w HTML stoi za nawigacją */
  .nav-toggle { display: grid; grid-column: 1; grid-row: 1; justify-self: start; }
  .tx-brand { grid-column: 2; grid-row: 1; justify-self: center; }
  .tx-brand img { height: 26px; }
  .tx-header .shop-header-actions { grid-column: 3; grid-row: 1; justify-self: end; }

  /* nawigacja + wyszukiwarka w panelu spod burgera */
  .tx-header .shop-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 10px -18px 0;
    padding: 4px 18px 8px;
    border-top: 1px solid rgba(255,255,255,0.14);
  }
  .tx-header .shop-nav.open { display: flex; }
  .tx-header .nav-link {
    display: flex;
    width: 100%;
    gap: 6px;
    font-size: 13px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .tx-header .nav-link :is(i, svg.lucide),
  .tx-header .nav-link svg.lucide { width: 14px; height: 14px; }
  .tx-header .nav-dropdown-toggle :is(i, svg.lucide),
  .tx-header .nav-dropdown-toggle svg.lucide { margin-left: auto; }
  .tx-header .nav-dropdown.open .nav-dropdown-toggle :is(i, svg.lucide),
  .tx-header .nav-dropdown.open .nav-dropdown-toggle svg.lucide { transform: rotate(180deg); }

  /* katalog rozwija się w miejscu, bez pływającej warstwy */
  .tx-header .nav-dropdown-menu {
    position: static;
    display: none;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: transparent;
    min-width: 0;
    padding: 4px 0 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .tx-header .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .tx-header .nav-dropdown:hover .nav-dropdown-menu { display: none; }
  .tx-header .nav-dropdown.open:hover .nav-dropdown-menu { display: block; }
  .tx-header .nav-dropdown-item { padding: 9px 4px; color: rgba(255,255,255,0.72); }
  .tx-header .nav-dropdown-item:hover { background: none; color: var(--accent-on-dark); }

  .tx-header .shop-search { width: 100%; min-width: 0; margin: 10px 0 6px; padding: 10px 12px; }

  .hero { padding: 0 18px; margin-top: 16px; }
  .hero-track { aspect-ratio: 16 / 9; }
  .hero-slide { align-items: flex-end; }
  .hero-slide::before {
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.2) 45%, rgba(0,0,0,0.7) 100%);
  }
  .hero-content { max-width: 100%; padding: 0 22px 26px; }
  .hero-eyebrow { font-size: 10px; padding: 3px 8px; margin-bottom: 10px; }
  .hero-content h1, .hero-content h2 { font-size: clamp(20px, 5.5vw, 30px); line-height: 1.1; margin: 0 0 8px; }
  .hero-content p { font-size: 12px; line-height: 1.45; margin: 0 0 14px; }
  .hero-cta { padding: 9px 16px; font-size: 11px; }
  .hero-nav { width: 26px; height: 26px; opacity: 0.7; }
  .hero-prev { left: 26px; }
  .hero-next { right: 26px; }
  .hero-dots { bottom: 8px; }


  .tx-main { padding: 0 18px 72px; }
  .home-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .section-header { flex-wrap: wrap; }

  /* Modal produktu na pełny ekran — bez marginesów, w których treść
     potrafiła wychodzić poza szerokość i robić poziomy scroll. */
  .cat-modal { padding: 0; }
  .cat-modal-card {
    width: 100%;
    max-width: 100%;
    max-height: none;
    height: 100vh;
    height: 100dvh;
    border: none;
  }
  /* Zamknięcie przypięte do viewportu — nie ucieka przy scrollu treści,
     44 px to wygodny cel dotykowy. */
  .cat-modal-card > .cat-modal-close {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    right: 12px;
    width: 44px;
    height: 44px;
    box-shadow: var(--shadow-lg);
  }
  .cat-modal-card > .cat-modal-close :is(i, svg.lucide) { width: 20px; height: 20px; }

  .product-detail { grid-template-columns: 1fr; }
  .product-detail-gallery { border-right: none; border-bottom: 1px solid var(--border); }
  .product-detail-info { padding: 26px 22px 32px; }
  /* Wstawka „powiadom mnie” układa się w kolumnę — zawsze mieści się
     w szerokości i ma stałą wysokość. */
  .product-detail-action { min-height: 196px; }
  .notify-stock-form { flex-direction: column; align-items: stretch; gap: 8px; }
  .notify-stock-email { width: 100%; padding: 12px; font-size: 16px; }
  .btn-notify-stock { justify-content: center; padding: 13px 16px; }

  .tx-footer .shop-footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; padding: 40px 18px 30px; }
  .tx-footer-brand { grid-column: 1 / -1; }
  .tx-footer .shop-footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 18px; }
}

@media (max-width: 480px) {
  .home-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 0 12px; }
  .hero-track { aspect-ratio: 4 / 3; }
  .hero-content { padding: 0 16px 20px; }
  .hero-content p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-prev { left: 20px; }
  .hero-next { right: 20px; }
  .cart-drawer-panel { width: 100%; }
  .tx-footer .shop-footer-inner { grid-template-columns: 1fr; }
}

.product-card-link {
  color: inherit;
  text-decoration: none;
}
.product-card-link:hover { text-decoration: none; }

/* =============================================================
   ===== /sklep — pasek kategorii, toolbar, siatka katalogu =====
   ============================================================= */
.shop-categories {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  overflow-x: auto;
  scrollbar-width: none;
}
.shop-categories::-webkit-scrollbar { display: none; }
.shop-categories-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  gap: 0;
  padding: 0 28px;
}
.cat-pill {
  flex: 0 0 auto;
  padding: 14px 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.cat-pill:hover { color: var(--ink); }
.cat-pill.active { color: var(--ink); border-bottom-color: var(--accent); }
.cat-pill .muted { color: var(--text-soft); }

.shop-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px 90px;
}
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 0 18px;
}
.shop-results {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.shop-results::before { content: "// "; color: var(--text-soft); }
.shop-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}
.shop-sort select {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 8px 12px;
  cursor: pointer;
}
.shop-sort select:focus { outline: none; box-shadow: 2px 2px 0 var(--ink); }

/* siatka katalogu — te same hairline'y co na home */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.catalog-grid .catalog-empty,
.catalog-grid .catalog-loading {
  grid-column: 1 / -1;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* =============================================================
   ===== Strony treściowe (kontakt) =====
   ============================================================= */
.page-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px 90px;
}
.page-hero-simple {
  padding: 52px 0 34px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 46px;
}
.page-hero-simple h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.page-hero-simple p {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
  max-width: 520px;
}

/* ===== Kontakt ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 0;
  border: 1px solid var(--border);
}
.contact-info-card { padding: 32px 30px; background: var(--bg-2); border-right: 1px solid var(--border); }
.contact-form-card { padding: 32px 30px; background: var(--panel); }
.contact-info-card h2,
.contact-form-card h2 {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  margin: 0 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border-strong);
}
.contact-info-card h2::before,
.contact-form-card h2::before { content: "// "; color: var(--text-soft); }

.contact-info-list { list-style: none; margin: 0 0 24px; padding: 0; }
.contact-info-list li { display: flex; gap: 12px; margin-bottom: 18px; }
.contact-info-list :is(i, svg.lucide),
.contact-info-list svg.lucide { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.contact-info-list a,
.contact-info-list span { font-family: var(--mono); font-size: 13px; color: var(--text); text-decoration: none; }
.contact-info-list a:hover { color: var(--accent); text-decoration: underline; }
.contact-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 3px;
}
.contact-info-note {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 7px; }
.contact-form label > span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-form input,
.contact-form textarea {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 0;
  padding: 11px 13px;
  width: 100%;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.contact-form textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 2px 2px 0 var(--accent);
}
.btn-primary {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: #fff;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary i, .btn-primary svg.lucide { width: 15px; height: 15px; }

.contact-form-status {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
}
.contact-form-status[hidden] { display: none; }
.contact-form-status.success { border-color: var(--success); color: var(--success); }
.contact-form-status.error { border-color: var(--danger); color: var(--danger); }

/* =============================================================
   ===== Checkout =====
   ============================================================= */
.checkout-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 30px 28px 80px;
}
.checkout-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: lowercase;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 22px;
  transition: color 0.15s ease;
}
.checkout-back:hover { color: var(--accent); }
.checkout-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--ink);
}
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: start;
}

.checkout-form-col fieldset { border: none; margin: 0 0 32px; padding: 0; }
.checkout-form-col legend,
.consent-fieldset legend {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  padding: 0 0 12px;
  margin-bottom: 18px;
  width: 100%;
  border-bottom: 1px dashed var(--border-strong);
}
.checkout-form-col legend::before,
.consent-fieldset legend::before { content: "// "; color: var(--text-soft); }

.form-row { margin-bottom: 14px; }
.form-row label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-row input {
  width: 100%;
  padding: 11px 13px;
  font-family: var(--mono);
  font-size: 13px;
  border: 1px solid var(--border-strong);
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.form-row input:focus { outline: none; border-color: var(--accent); box-shadow: 2px 2px 0 var(--accent); }
.form-row input.error { border-color: var(--danger); box-shadow: 2px 2px 0 var(--danger); }
.form-error {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--danger);
  margin-top: 5px;
  display: none;
}
.form-error.visible { display: block; }

/* ===== Dostawa ===== */
.delivery-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.delivery-card {
  position: relative;
  padding: 16px;
  border: 1px solid var(--border-strong);
  background: var(--panel);
  cursor: pointer;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.delivery-card:hover { box-shadow: 3px 3px 0 var(--ink); }
.delivery-card.selected {
  border-color: var(--accent);
  box-shadow: 4px 4px 0 var(--accent);
}
.delivery-card.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.delivery-card.is-disabled:hover { box-shadow: none; }
.delivery-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.delivery-card-icon { width: 20px; height: 20px; margin-bottom: 10px; color: var(--text-muted); }
.delivery-card.selected .delivery-card-icon { color: var(--accent); }
.delivery-card-name { font-family: var(--sans); font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.delivery-card-price { font-family: var(--mono); font-size: 12px; color: var(--text-muted); }
.delivery-loading,
.delivery-unavailable {
  grid-column: 1 / -1;
  padding: 16px;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 13px;
}

/* ===== Paczkomaty ===== */
#paczkomat-section, #courier-section { margin-top: 14px; }
#paczkomat-section[hidden], #courier-section[hidden] { display: none; }
.paczkomat-search[hidden],
.paczkomat-results[hidden],
.paczkomat-none[hidden],
.paczkomat-selected[hidden],
.paczkomat-clear[hidden] { display: none; }

.paczkomat-search { position: relative; display: flex; align-items: center; }
.paczkomat-search > :is(i, svg.lucide),
.paczkomat-search > svg {
  position: absolute; left: 12px;
  width: 15px; height: 15px;
  color: var(--text-muted);
  pointer-events: none;
}
.paczkomat-search input { width: 100%; padding-left: 36px; padding-right: 36px; }
.paczkomat-clear {
  position: absolute; right: 8px;
  display: grid; place-items: center;
  width: 24px; height: 24px;
  color: var(--text-muted);
}
.paczkomat-clear:hover { color: var(--ink); }
.paczkomat-clear i, .paczkomat-clear svg { width: 14px; height: 14px; }

.paczkomat-results {
  margin-top: 6px;
  border: 1px solid var(--ink);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.paczkomat-item {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  background: none;
}
.paczkomat-item:last-child { border-bottom: none; }
.paczkomat-item:hover,
.paczkomat-item.active { background: var(--accent-light); }
.paczkomat-item-code { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--accent); }
.paczkomat-item-address { font-family: var(--sans); font-size: 13px; color: var(--text); }
.paczkomat-item-desc { font-family: var(--mono); font-size: 11px; color: var(--text-muted); }
.paczkomat-empty { padding: 14px; font-family: var(--mono); font-size: 12px; color: var(--text-muted); text-align: center; }
.paczkomat-hint {
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.paczkomat-none {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border: 1px dashed var(--border-strong);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}
.paczkomat-none i, .paczkomat-none svg { width: 16px; height: 16px; flex-shrink: 0; }
.paczkomat-selected {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--accent);
  background: var(--accent-light);
}
.paczkomat-selected > :is(i, svg.lucide),
.paczkomat-selected > svg,
.selected-point-icon { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.paczkomat-selected-info { display: grid; gap: 3px; flex: 1; min-width: 0; }
.paczkomat-selected-info strong { font-family: var(--mono); font-size: 11px; color: var(--accent); }
.paczkomat-selected-info span { font-family: var(--sans); font-size: 13px; }
.paczkomat-selected-desc { font-family: var(--mono); font-size: 11px; color: var(--text-muted); }
.selected-point-name { font-weight: 600; }
.paczkomat-change {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: lowercase;
  color: var(--accent);
  flex-shrink: 0;
  text-decoration: underline;
}
.paczkomat-tip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  margin-top: 6px;
}
.paczkomat-tip:hover { text-decoration: underline; }
.paczkomat-tip i, .paczkomat-tip svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ===== Zgody ===== */
.consent-fieldset { border: none; margin: 0 0 28px; padding: 0; }
.consent-row {
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.consent-row-all {
  color: var(--ink);
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.consent-row input[type="checkbox"] {
  width: 16px; height: 16px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.consent-row a { color: var(--accent); text-decoration: underline; }
.consent-row input.error { outline: 2px solid var(--danger); outline-offset: 1px; }

/* ===== Podsumowanie ===== */
.checkout-summary {
  position: sticky;
  top: 90px;
  background: var(--panel);
  border: 1px solid var(--ink);
  padding: 24px;
}
.checkout-summary h2 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-strong);
}
.checkout-summary h2::before { content: "// "; color: var(--text-soft); }
.summary-items { list-style: none; padding: 0; margin: 0 0 16px; }
.summary-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.summary-item:last-child { border-bottom: none; }
.summary-item-img {
  width: 48px; height: 48px;
  object-fit: cover;
  background: var(--bg-2);
  border: 1px solid var(--border);
  flex-shrink: 0;
  mix-blend-mode: multiply;
}
.summary-item-info { flex: 1; min-width: 0; }
.summary-item-name {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.summary-item-qty { font-family: var(--mono); font-size: 11px; color: var(--text-muted); }
.summary-item-price { font-family: var(--mono); font-size: 13px; font-weight: 600; white-space: nowrap; }
.summary-divider { border: none; border-top: 1px dashed var(--border-strong); margin: 14px 0; }
.summary-row {
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  margin-bottom: 8px;
}
.summary-row.discount { color: var(--success); }
.summary-row.shipping { color: var(--text-muted); }
.summary-row.total {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
}
.btn-pay {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%;
  margin-top: 20px;
  padding: 15px 24px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-pay:hover { background: var(--accent); border-color: var(--accent); }
.btn-pay:disabled { opacity: 0.4; cursor: not-allowed; background: var(--ink); border-color: var(--ink); }
.btn-pay .spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
.btn-pay.loading .spinner { display: block; }
.btn-pay.loading .btn-pay-label { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.checkout-error {
  margin-top: 14px;
  padding: 11px 14px;
  border: 1px solid var(--danger);
  color: var(--danger);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  display: none;
}
.checkout-error.visible { display: block; }

/* =============================================================
   ===== Strony prawne =====
   ============================================================= */
.legal-main { max-width: 780px; margin: 0 auto; padding: 40px 28px 80px; }
.legal-back {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: lowercase;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 26px;
  transition: color 0.15s ease;
}
.legal-back:hover { color: var(--accent); }
.legal-content h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.legal-content .legal-updated {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 34px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ink);
}
.legal-content h2 {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 36px 0 12px;
}
.legal-content h3 { font-family: var(--sans); font-size: 15px; font-weight: 600; margin: 24px 0 8px; }
.legal-content p,
.legal-content li {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-muted);
}
.legal-content ul, .legal-content ol { padding-left: 20px; margin: 8px 0 16px; }
.legal-content a { color: var(--accent); text-decoration: underline; }
.legal-content .legal-placeholder {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  margin: 16px 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}

/* =============================================================
   ===== Strony wynikowe (404 / płatność udana / anulowana) =====
   ============================================================= */
.result-page { max-width: 560px; margin: 90px auto; text-align: center; padding: 0 28px; }
.result-page .code {
  font-family: var(--mono);
  font-size: 64px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  margin-bottom: 10px;
}
.result-icon { width: 56px; height: 56px; margin: 0 auto 22px; color: var(--text-muted); }
.result-icon.ok { color: var(--success); }
.result-page h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.result-page p { font-family: var(--mono); font-size: 13px; line-height: 1.7; color: var(--text-muted); margin: 0 0 8px; }
.result-order { font-family: var(--mono); font-size: 12px; color: var(--text-muted); margin: 18px 0 30px; }
.result-order strong { color: var(--ink); }
.btn-home {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px;
  padding: 13px 26px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: #fff;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-home:hover { background: var(--accent); border-color: var(--accent); }

/* =============================================================
   ===== Responsywność dopisanych sekcji =====
   ============================================================= */
@media (max-width: 900px) {
  .shop-categories-inner { padding: 0 18px; }
  .cat-pill { padding: 12px 14px; }
  .shop-main { padding: 0 18px 72px; }
  .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

  .page-main { padding: 0 18px 72px; }
  .page-hero-simple { padding: 40px 0 28px; margin-bottom: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info-card { border-right: none; border-bottom: 1px solid var(--border); }
  .contact-info-card, .contact-form-card { padding: 26px 20px; }

  .checkout-main { padding: 24px 18px 64px; }
  .checkout-layout { grid-template-columns: 1fr; gap: 28px; }
  .checkout-summary { position: static; order: -1; }
  .delivery-options { grid-template-columns: 1fr; }

  .legal-main { padding: 30px 18px 64px; }
  .result-page { margin: 60px auto; padding: 0 18px; }
}

@media (max-width: 480px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-toolbar { padding: 16px 0 14px; }
}

/* =============================================================
   ===== Filtry katalogu (kolor / cena / dostępność) =====
   ============================================================= */
.shop-toolbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.filters-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--ink);
  padding: 8px 12px;
}
.filters-toggle:hover { background: var(--ink); color: #fff; }
.filters-toggle :is(i, svg.lucide) { width: 14px; height: 14px; }
.filters-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 10px;
  font-family: var(--mono);
  background: var(--accent);
  color: #fff;
}
.filters-panel {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding: 18px 20px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  background: var(--bg-2);
}
.filter-group { display: flex; flex-direction: column; gap: 10px; }
.filter-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}
.filter-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-color {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
}
.filter-color:hover { border-color: var(--ink); color: var(--ink); }
.filter-color.active { border-color: var(--ink); color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.filter-color-dot {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(0,0,0,0.18);
  display: block;
}
.filter-price { display: flex; align-items: center; gap: 8px; }
.filter-price input {
  width: 84px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--ink);
  padding: 8px 10px;
}
.filter-price input:focus { outline: none; box-shadow: 2px 2px 0 var(--ink); }
.filter-dash { color: var(--text-soft); font-family: var(--mono); }
.filter-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 0;
}
.filter-check input { width: 15px; height: 15px; accent-color: var(--accent); }
.filters-clear {
  margin-left: auto;
  align-self: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding: 2px 0;
}
.filters-clear:hover { color: var(--danger); border-color: var(--danger); }

/* Stronicowanie katalogu */
.load-more-wrap { display: flex; justify-content: center; padding: 32px 0 0; }
.btn-load-more {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--ink);
  padding: 14px 34px;
}
.btn-load-more:hover:not(:disabled) { background: var(--ink); color: #fff; }
.btn-load-more:disabled { opacity: 0.5; cursor: default; }

/* =============================================================
   ===== Podpowiedzi wyszukiwania =====
   ============================================================= */
.shop-search { position: relative; }
.search-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 120;
  background: var(--bg);
  border: 1px solid var(--ink);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.12);
  max-height: 62vh;
  overflow-y: auto;
}
.search-suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.search-suggest-item:last-child { border-bottom: none; }
.search-suggest-item:hover,
.search-suggest-item.active { background: var(--accent-light); }
.search-suggest-img {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  overflow: hidden;
}
.search-suggest-img img { width: 100%; height: 100%; object-fit: cover; }
.search-suggest-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.search-suggest-name {
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-suggest-code { font-family: var(--mono); font-size: 10px; color: var(--text-soft); }
.search-suggest-price { font-family: var(--mono); font-size: 12px; color: var(--ink); white-space: nowrap; }
.search-suggest-empty {
  padding: 14px 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* =============================================================
   ===== Próg darmowej dostawy (koszyk) =====
   ============================================================= */
.free-ship {
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  background: var(--bg-2);
}
.free-ship-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
}
.free-ship-text strong { color: var(--ink); }
.free-ship :is(i, svg.lucide) { width: 15px; height: 15px; flex: 0 0 15px; }
.free-ship-bar {
  margin-top: 9px;
  height: 4px;
  background: var(--grid);
  overflow: hidden;
}
.free-ship-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width 0.25s ease;
}
.free-ship-done {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--success);
  border-color: var(--success);
  background: rgba(18,161,80,0.06);
}

/* =============================================================
   ===== Produkty powiązane (w karcie produktu) =====
   ============================================================= */
.related-wrap {
  border-top: 1px solid var(--border);
  padding: 26px 28px 4px;
}
.related-title {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 500;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.related-grid .product-card-body { padding: 12px; }
.related-grid .product-card-name { font-size: 12.5px; }
.related-grid .product-card-price { font-size: 13px; }

/* =============================================================
   ===== Status zamówienia (/zamowienie) =====
   ============================================================= */
.order-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px 90px;
}
.order-head { padding: 52px 0 26px; border-bottom: 1px solid var(--border); margin-bottom: 30px; }
.order-head h1 {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.order-head p { margin: 0; color: var(--text-muted); font-size: 14px; }
.order-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  align-items: end;
  padding: 22px 20px;
  border: 1px solid var(--ink);
  background: var(--bg-2);
}
.order-form label { display: flex; flex-direction: column; gap: 7px; }
.order-form label span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-soft);
}
.order-form input {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--ink);
  padding: 11px 12px;
}
.order-form input:focus { outline: none; box-shadow: 2px 2px 0 var(--ink); }
.order-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  padding: 12px 22px;
  white-space: nowrap;
}
.order-submit:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); }
.order-submit:disabled { opacity: 0.55; cursor: default; }
.order-submit :is(i, svg.lucide) { width: 14px; height: 14px; }
.order-error {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--danger);
}
.order-help {
  margin-top: 26px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}
.order-help a { color: var(--accent); }

.order-result { margin-top: 30px; border: 1px solid var(--border); }
.order-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}
.order-result-head h2 { margin: 4px 0 0; font-family: var(--mono); font-size: 20px; font-weight: 600; }
.order-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}
.order-date { margin: 6px 0 0; font-size: 12px; color: var(--text-muted); font-family: var(--mono); }
.order-status-badge {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--ink);
  white-space: nowrap;
}
.order-status-badge.status-wysłane { background: var(--accent); border-color: var(--accent); color: #fff; }
.order-status-badge.status-zakończone { background: var(--success); border-color: var(--success); color: #fff; }
.order-status-badge.status-anulowane { background: var(--danger); border-color: var(--danger); color: #fff; }

.order-steps {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 26px 24px 4px;
  gap: 0;
}
.order-step {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-soft);
}
.order-step::before {
  content: "";
  position: absolute;
  top: 6px;
  left: -50%;
  width: 100%;
  height: 1px;
  background: var(--border);
}
.order-step:first-child::before { display: none; }
.order-step.done::before, .order-step.current::before { background: var(--ink); }
.order-step-dot {
  width: 13px;
  height: 13px;
  border: 1px solid var(--border);
  background: var(--bg);
  position: relative;
  z-index: 1;
}
.order-step.done .order-step-dot { background: var(--ink); border-color: var(--ink); }
.order-step.current .order-step-dot { background: var(--accent); border-color: var(--accent); }
.order-step.done, .order-step.current { color: var(--ink); }
.order-status-desc {
  margin: 14px 24px 0;
  font-size: 13.5px;
  color: var(--text-muted);
  text-align: center;
}
.order-cancelled {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 26px 24px 4px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--danger);
}

.order-tracking {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px;
  padding: 18px 20px;
  border: 1px solid var(--ink);
  background: var(--bg-2);
}
.order-tracking-nr {
  margin: 6px 0 0;
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--ink);
  word-break: break-all;
}
.order-track-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  white-space: nowrap;
}
.order-track-btn:hover { background: var(--accent); color: #fff; }
.order-track-btn :is(i, svg.lucide) { width: 15px; height: 15px; }

.order-block { padding: 22px 24px; border-top: 1px solid var(--border); }
.order-items { list-style: none; margin: 12px 0 0; padding: 0; }
.order-items li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.order-item-name { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.order-item-code { font-family: var(--mono); font-size: 10.5px; color: var(--text-soft); }
.order-item-qty, .order-item-price { font-family: var(--mono); font-size: 12.5px; color: var(--text-muted); }
.order-sum { margin-top: 14px; }
.order-sum-line {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-muted);
  padding: 5px 0;
}
.order-sum-total { border-top: 1px solid var(--ink); margin-top: 6px; padding-top: 10px; color: var(--ink); }
.order-delivery { margin: 10px 0 0; font-size: 13.5px; color: var(--text); }

@media (max-width: 900px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .related-wrap { padding: 22px 18px 4px; }
  .order-main { padding: 0 18px 72px; }
  .order-form { grid-template-columns: 1fr; }
  .order-submit { justify-content: center; }
  .filters-panel { gap: 20px; padding: 16px; }
  .filters-clear { margin-left: 0; }
}

/* =============================================================
   ===== Karta produktu jako podstrona (/produkt/KOD) =====
   Zastąpiła modal 2026-08-18. Style próbek koloru, etykiet, „powiadom mnie"
   i przycisku kopiowania linku są współdzielone z poprzednim widokiem.
   ============================================================= */
.product-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px 90px;
}

.product-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 22px 0 18px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-muted);
}
.product-crumbs a { color: var(--text-muted); text-decoration: none; }
.product-crumbs a:hover { color: var(--accent); }
.product-crumbs [aria-current] { color: var(--ink); }
.crumb-sep { color: var(--text-soft); }

.product-view {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}
.product-view .catalog-loading,
.product-view .catalog-empty { grid-column: 1 / -1; }

/* ---- Galeria ---- */
.product-gallery {
  border-right: 1px solid var(--border);
  padding: 28px;
  min-width: 0;
}
.product-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-2);
  border: 1px solid var(--border);
  overflow: hidden;
}
.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.product-photo img.loaded { opacity: 1; }
.product-photo .placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-soft);
}
.product-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.product-thumb {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--bg-2);
  overflow: hidden;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb:hover { border-color: var(--ink); }
.product-thumb.active { border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }

/* ---- Kolumna informacji ---- */
.product-info {
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.product-labels { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.product-name {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.product-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.product-code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
}
.product-price {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  margin: 22px 0 20px;
}
.product-action { margin-bottom: 24px; }
.product-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
}
.product-add:hover { background: var(--accent); border-color: var(--accent); }
.product-add :is(i, svg.lucide) { width: 16px; height: 16px; }
.product-soon-note {
  margin: 0;
  padding: 16px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  border: 1px dashed var(--border);
}

.product-perks {
  list-style: none;
  margin: 4px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
}
.product-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-muted);
}
.product-perks :is(i, svg.lucide) { width: 15px; height: 15px; color: var(--ink); }

/* ---- Opis ---- */
.product-desc {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding: 30px 32px;
}
.product-section-title {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.product-desc-body {
  max-width: 70ch;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text);
  white-space: pre-line;
}

/* ---- „Zobacz też" na podstronie (w modalu miało własne marginesy) ---- */
.product-main .related-wrap {
  border: 1px solid var(--border);
  border-top: none;
  padding: 26px 32px 32px;
}

@media (max-width: 900px) {
  .product-main { padding: 0 18px 72px; }
  .product-view { grid-template-columns: 1fr; }
  .product-gallery { border-right: none; border-bottom: 1px solid var(--border); padding: 18px; }
  .product-info { padding: 24px 18px; }
  .product-desc { padding: 24px 18px; }
  .product-main .related-wrap { padding: 22px 18px 26px; }
  .product-thumb { width: 60px; height: 60px; }
}

/* =============================================================
   Posty na stronie głównej
   ============================================================= */
.home-posts {
  padding: 64px 0 0;
}
.home-posts[hidden],
.home-posts-controls[hidden] { display: none; }
.home-posts-controls { display: flex; gap: 7px; flex: 0 0 auto; }
.home-posts-controls button,
.post-slider-controls button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  transition: background .15s, color .15s, border-color .15s;
}
.home-posts-controls button:hover,
.post-slider-controls button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.home-posts-controls :is(i, svg),
.post-slider-controls :is(i, svg) { width: 15px; height: 15px; }
.home-posts-viewport {
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.home-posts-viewport::-webkit-scrollbar { display: none; }
.home-posts-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 32px) / 3);
  gap: 16px;
}
.home-post-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  border: 1px solid var(--border);
  background: var(--panel);
}
.home-post-image {
  position: relative;
  aspect-ratio: 16 / 10;
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.home-post-image img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s, transform .45s; }
.home-post-image img.loaded { opacity: 1; }
.home-post-card:hover .home-post-image img { transform: scale(1.025); }
.home-post-image-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--text-soft); }
.home-post-image-placeholder :is(i, svg) { width: 28px; height: 28px; }
.home-post-body { min-height: 230px; display: flex; flex-direction: column; padding: 20px; }
.home-post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.home-post-meta > span { color: var(--accent); }
.home-post-body h3 { margin: 0 0 10px; font-family: var(--sans); font-size: 20px; line-height: 1.2; letter-spacing: -.015em; }
.home-post-body h3 a { color: var(--ink); text-decoration: none; }
.home-post-body p {
  display: -webkit-box;
  margin: 0 0 18px;
  overflow: hidden;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.65;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.home-post-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  text-transform: lowercase;
}
.home-post-link:hover { color: var(--accent); }
.home-post-link :is(i, svg) { width: 13px; height: 13px; }

/* =============================================================
   Publiczny template posta
   ============================================================= */
.post-main {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px 90px;
}
.post-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 22px 0 18px;
  overflow: hidden;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 11.5px;
  white-space: nowrap;
}
.post-crumbs a { color: var(--text-muted); text-decoration: none; }
.post-crumbs a:hover { color: var(--accent); }
.post-crumbs [aria-current] { overflow: hidden; color: var(--ink); text-overflow: ellipsis; }
.post-public-header {
  max-width: 940px;
  padding: 56px 0 42px;
}
.post-public-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.post-public-meta > span { color: var(--accent); }
.post-public-header h1 {
  max-width: 920px;
  margin: 0 0 18px;
  font-family: var(--sans);
  font-size: clamp(36px, 5.8vw, 76px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.045em;
}
.post-public-header > p {
  max-width: 760px;
  margin: 0;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: clamp(13px, 1.5vw, 16px);
  line-height: 1.7;
}
.post-public-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8;
  margin: 0 0 58px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-2);
}
.post-public-cover img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.post-public-cover img.loaded { opacity: 1; }
.post-public-content { display: flex; flex-direction: column; gap: 0; }
.post-content-block { margin: 0 auto 34px; }
.post-text-block,
.post-quote-block { width: 100%; max-width: 820px; }
.post-text-block p {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.82;
}
.post-heading-block { margin-top: 28px; margin-bottom: 24px; }
.post-heading-block h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(27px, 3vw, 42px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.025em;
  scroll-margin-top: 110px;
}
.post-text-block strong,
.post-quote-block strong { font-weight: 700; color: var(--ink); }
.post-text-block u,
.post-quote-block u { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post-quote-block {
  padding: 10px 0 10px 28px;
  border-left: 3px solid var(--accent);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 17px;
  line-height: 1.75;
}
.post-toc-block {
  width: 100%;
  max-width: 820px;
  padding: 28px 30px 24px;
  border: 1px solid var(--border);
  background: var(--panel);
}
.post-toc-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.post-toc-block h2 {
  margin: 0 0 18px;
  font-family: var(--sans);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -.02em;
}
.post-toc-block ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.post-toc-block li { display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: baseline; border-bottom: 1px solid var(--border); }
.post-toc-block li > span { color: var(--accent); font-family: var(--mono); font-size: 10px; }
.post-toc-block a {
  display: block;
  padding: 13px 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
  text-decoration: none;
}
.post-toc-block a:hover { color: var(--accent); }
.post-image-block { width: 100%; max-width: 1080px; }
.post-image-block img { width: 100%; max-height: 760px; object-fit: contain; opacity: 0; transition: opacity .25s; }
.post-image-block img.loaded { opacity: 1; }
.post-image-block figcaption {
  margin-top: 9px;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.5;
}
.post-products-block { width: 100%; max-width: none; margin-top: 30px; margin-bottom: 54px; }
.post-products-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}
.post-products-kicker { display: block; margin-bottom: 5px; color: var(--accent); font-family: var(--mono); font-size: 10px; }
.post-products-header h2 { margin: 0; font-family: var(--sans); font-size: clamp(22px, 2.5vw, 32px); font-weight: 600; }
.post-slider-controls { display: flex; gap: 7px; flex: 0 0 auto; }
.post-products-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.post-products-viewport::-webkit-scrollbar { display: none; }
.post-products-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2px) / 3);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.post-products-track .product-card { scroll-snap-align: start; }
.post-public-footer { max-width: 820px; margin: 28px auto 0; padding-top: 28px; border-top: 1px solid var(--border); }
.post-back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-family: var(--mono); font-size: 11.5px; text-decoration: none; }
.post-back-link:hover { color: var(--accent); }
.post-back-link :is(i, svg) { width: 14px; height: 14px; }
.post-load-error { padding: 90px 20px; text-align: center; }
.post-load-error h1 { margin: 0 0 10px; }

@media (max-width: 900px) {
  .home-posts-track { grid-auto-columns: calc((100% - 14px) / 2); gap: 14px; }
  .post-main { padding: 0 18px 72px; }
  .post-public-header { padding: 38px 0 30px; }
  .post-public-cover { margin-bottom: 42px; }
  .post-products-track { grid-auto-columns: 50%; }
}

@media (max-width: 560px) {
  .home-posts { padding-top: 52px; }
  .home-posts-header { flex-wrap: nowrap; align-items: flex-end; }
  .home-posts-track { grid-auto-columns: 88%; gap: 12px; }
  .home-post-body { min-height: 220px; padding: 16px; }
  .post-main { padding: 0 14px 60px; }
  .post-public-header { padding: 28px 0 24px; }
  .post-public-header h1 { font-size: clamp(34px, 12vw, 52px); }
  .post-public-cover { aspect-ratio: 4 / 3; margin-bottom: 34px; }
  .post-text-block p { font-size: 16px; line-height: 1.75; }
  .post-quote-block { padding-left: 18px; font-size: 15px; }
  .post-toc-block { padding: 22px 18px 18px; }
  .post-products-track { grid-auto-columns: 84%; }
  .post-products-header { align-items: center; }
}
