:root {
  --bg: #f6f5f3;
  --paper: #f6f5f3;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --accent: #c81018;
  --brand: #c81018;
  --brand-deep: #a40e14;
  --card: #fff;
  --line: #e6e6e6;
  --ok: #1f7a3f;
  --radius: 2px;
  --font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --max: 1100px;
}

* { box-sizing: border-box; }

/* Pasek strony widoczny — szybkie przeciąganie w dół */
html {
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #b5aea3 transparent;
}
html::-webkit-scrollbar { width: 12px; }
html::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb {
  background: #b5aea3;
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
html::-webkit-scrollbar-thumb:hover { background: #8f877c; background-clip: padding-box; }

/* Ukryj tylko wewnątrz karuzeli / paneli — nie na dokumencie */
.shelf-track,
.cart-body,
.checkout {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.shelf-track::-webkit-scrollbar,
.cart-body::-webkit-scrollbar,
.checkout::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body {
  margin: 0;
  font-family: var(--font);
  background: #fff;
  color: var(--ink);
  min-height: 100vh;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
a:hover { color: var(--brand-deep); }

.topbar {
  background: #111;
  color: #d8d8d8;
  font-size: 0.88rem;
}
.topbar-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
}
.topbar a { color: #f0f0f0; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar-meta { display: flex; flex-wrap: wrap; gap: 0.35rem 1.15rem; }

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  /* 1 rząd domyślnie — bez pustego wiersza cats (na karcie produktu dawał asymetrię góra/dół) */
  grid-template-areas: "brand nav search cart";
  column-gap: 18px;
  row-gap: 0;
  align-items: center;
  padding: 14px max(16px, calc((100% - var(--max)) / 2));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top:has(.cat-bar:not([hidden])) {
  grid-template-areas:
    "brand nav search cart"
    "cats cats cats cats";
  row-gap: 10px;
}
.top:has(.group-bar:not([hidden])) {
  grid-template-areas:
    "brand nav search cart"
    "cats cats cats cats"
    "groups groups groups groups";
  row-gap: 8px;
}
.top .brand { grid-area: brand; }
.top .site-nav { grid-area: nav; }
.top .search { grid-area: search; min-width: 0; } /* ściskaj szukajkę, nie menu */
.top .cart-btn { grid-area: cart; }
.top .cat-bar { grid-area: cats; }
.top .group-bar { grid-area: groups; }
.top-firm {
  grid-template-columns: auto 1fr auto;
}
.site-nav {
  display: flex;
  flex-wrap: nowrap; /* Sklep · O nas · FAQ · Kontakt — zawsze w jednym rzędzie */
  gap: 2px 14px;
  align-items: center;
  flex-shrink: 0;
}
.site-nav-a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 4px 0;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.site-nav-a:hover { color: var(--brand); }
.site-nav-a.is-active {
  color: var(--brand);
  box-shadow: inset 0 -2px 0 var(--brand);
}
@media (max-width: 719px) {
  .top {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand cart"
      "nav nav"
      "search search";
  }
  .top:has(.cat-bar:not([hidden])) {
    grid-template-areas:
      "brand cart"
      "nav nav"
      "search search"
      "cats cats";
  }
  .top:has(.group-bar:not([hidden])) {
    grid-template-areas:
      "brand cart"
      "nav nav"
      "search search"
      "cats cats"
      "groups groups";
  }
  .top-firm {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand cta"
      "nav nav";
  }
  .top-firm .cart-btn { grid-area: cta; font-size: 13px; padding: 8px 12px; }
  .topbar-inner { justify-content: center; text-align: center; }
}
.firm-wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}
.firm-band {
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.firm-band.alt { background: #fff; }
body.page-firm {
  background: #fff;
  color: var(--ink);
}
.firm-band h1,
.firm-band .section-title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  letter-spacing: -0.02em;
  font-weight: 700;
}
.firm-band .lead,
.firm-band .section-lead {
  margin: 0 0 1.6rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.02rem;
}
.onas-shot {
  margin: 0;
  min-height: 0;
}
.onas-shot img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  display: block;
  background: #eee;
}
.onas-h {
  margin: 2.25rem 0 0.45rem;
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  letter-spacing: -0.02em;
  font-weight: 700;
}
.onas-lead-tight { margin-bottom: 1rem; }
.onas-sheet {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
}
.onas-sheet > div {
  margin: 0;
  padding: 0.95rem 1.05rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.onas-sheet > div:nth-child(3n) { border-right: 0; }
.onas-sheet dt {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}
.onas-sheet dd {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink);
  line-height: 1.4;
  font-weight: 600;
}
.onas-who {
  margin: 0;
  max-width: 44rem;
  color: #333;
  line-height: 1.55;
  font-size: 1.02rem;
}
@media (max-width: 900px) {
  .onas-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .onas-sheet > div:nth-child(3n) { border-right: 1px solid var(--line); }
  .onas-sheet > div:nth-child(2n) { border-right: 0; }
}
@media (max-width: 560px) {
  .onas-sheet { grid-template-columns: 1fr; }
  .onas-sheet > div {
    border-right: 0;
  }
  .onas-shot img { min-height: 240px; }
}

.firm-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2rem 2.5rem;
  align-items: center;
}
.firm-intro-grid figure { margin: 0; }
.firm-intro-grid img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.1);
  display: block;
}
.firm-intro-grid figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.firm-intro-grid h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
}
.firm-intro-grid p { margin: 0; color: #333; }

.firm-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.firm-stats > div {
  padding: 1.25rem 1.1rem;
  text-align: center;
  border-right: 1px solid var(--line);
}
.firm-stats > div:last-child { border-right: 0; }
.firm-stats strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 1.05rem;
}
.firm-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.asort-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.asort-grid article {
  background: #fff;
  padding: 1.25rem 1.15rem;
}
.asort-grid h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--brand);
  font-weight: 700;
}
.asort-grid p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem;
}
.about-cols h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  letter-spacing: -0.02em;
}
.bullet-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bullet-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.05rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
  color: #333;
}
.bullet-list li:last-child { border-bottom: 0; }
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
}
.bullet-list strong { color: var(--ink); }

.firm-note {
  margin-top: 2.25rem;
  padding: 1.2rem 1.35rem;
  border-left: 3px solid var(--brand);
  background: #fff;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.firm-note strong.block {
  display: block;
  color: var(--ink);
  font-size: 1.08rem;
  margin-bottom: 0.35rem;
}
.firm-note p { margin: 0; color: var(--muted); }

.kontakt-layout {
  display: grid;
  grid-template-columns: minmax(0, 340px) 1fr;
  gap: 2rem;
  align-items: start;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 44rem;
  margin: 0 0 2rem;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  padding: 0.15rem 0.9rem 0.85rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 0.85rem 0 0.35rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 1.1em;
  color: var(--brand);
  font-weight: 700;
}
.faq-item[open] summary::before { content: "–"; }
.faq-item p {
  margin: 0.25rem 0 0.2rem;
  color: #333;
  line-height: 1.55;
}
.firm-dl { margin: 0; }
.firm-dl dt {
  margin: 1rem 0 0.15rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}
.firm-dl dt:first-child { margin-top: 0; }
.firm-dl dd { margin: 0; font-size: 1.05rem; }
.firm-dl a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.firm-dl a:hover { color: var(--brand); }
.firm-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 400;
}
.map-embed {
  border: 1px solid var(--line);
  overflow: hidden;
  background: #eee;
  min-height: 360px;
  margin: 0;
}
.map-embed iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}
.firm-invite {
  text-align: center;
  padding: 2rem 0 0;
  font-weight: 600;
  color: var(--brand);
  font-size: 1.1rem;
  margin: 0;
}
.firm-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.firm-cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.35rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
}
.firm-cta .btn-solid {
  background: var(--brand);
  color: #fff;
}
.firm-cta .btn-solid:hover { background: var(--brand-deep); color: #fff; }
.firm-cta .btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.firm-cta .btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}
@media (max-width: 860px) {
  .firm-intro-grid,
  .about-cols,
  .kontakt-layout { grid-template-columns: 1fr; }
  .firm-stats { grid-template-columns: 1fr; }
  .firm-stats > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .firm-stats > div:last-child { border-bottom: 0; }
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
  flex-shrink: 0;
}
.brand-logo {
  display: block;
  width: auto;
  height: 56px;
  max-width: min(300px, 50vw);
  border-radius: 0;
  object-fit: contain;
  shape-rendering: geometricPrecision;
}
.brand:hover .brand-logo { opacity: 0.94; }
@media (max-width: 720px) {
  .brand-logo { height: 50px; max-width: 200px; }
}
.search input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 15px;
  background: #fff;
  font-family: inherit;
}
.search input:focus {
  outline: 2px solid rgba(200, 16, 24, 0.28);
  border-color: var(--brand);
}
.cart-btn, .cta {
  border: 0;
  border-radius: 2px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 1rem; /* button UA = 13.3px — bez tego Koszyk na głównej był mniejszy niż <a> */
  line-height: 1.25;
  padding: 10px 16px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
}
a.cart-btn:hover { color: #fff; }
.cart-btn:hover, .cta:hover { background: var(--brand-deep); color: #fff; }
.cart-btn span {
  display: inline-block;
  min-width: 1.4em;
  margin-left: 4px;
  background: #fff;
  color: var(--brand);
  border-radius: 2px;
  padding: 0 6px;
  font-size: 13px;
  font-weight: 700;
}

main { padding: 16px; max-width: 1100px; margin: 0 auto; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 12px; }

/* Belka sklepu stacjonarnego — zamiast czarnego topbara, poza katalogiem online */
.store-invite {
  background: #111;
  color: #e8e8e8;
}
.store-invite-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.35fr) auto;
  gap: 14px 22px;
  align-items: center;
  padding: 0.85rem 0;
}
.store-invite-title {
  margin: 0 0 0.2rem;
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: #fff;
}
.store-invite-place {
  margin: 0;
  font-size: 0.88rem;
  color: #a8a8a8;
  line-height: 1.35;
}
.store-invite-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.15rem;
  font-size: 0.86rem;
  color: #cfcfcf;
}
.store-invite-facts > li {
  white-space: nowrap;
}
.store-invite-phones {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.85rem 1.15rem;
}
.store-invite-facts a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.store-invite-facts a:hover { text-decoration: underline; }
.store-invite-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.store-invite-cta:hover {
  background: #fff;
  border-color: #fff;
  color: #111;
}
@media (max-width: 820px) {
  .store-invite-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "copy cta"
      "facts facts";
  }
  .store-invite-copy { grid-area: copy; }
  .store-invite-facts { grid-area: facts; }
  .store-invite-cta { grid-area: cta; align-self: start; }
}
@media (max-width: 480px) {
  .store-invite-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "facts"
      "cta";
  }
  .store-invite-cta {
    justify-self: stretch;
    text-align: center;
  }
}

.home-view[hidden] { display: none !important; }
.home-view { margin: 0 0 8px; }
.home-intro {
  margin: 0 0 22px;
  max-width: 40rem;
}
.home-intro-title {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.home-intro-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.shelf-head { margin: 0 0 12px; }
.shelf-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.shelf-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.shelf-title-btn {
  margin: 0;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.shelf-title-btn:hover {
  color: var(--brand);
  text-decoration: underline;
}
.shelf-sub {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.shelf-more {
  border: 0;
  background: none;
  color: var(--brand);
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  padding: 4px 0;
  white-space: nowrap;
}
.shelf-more:hover { color: var(--brand-deep); text-decoration: underline; }

.home-featured {
  margin: 0 0 28px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.home-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
}

.home-shelves {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 12px;
}
.home-shelf { min-width: 0; }
.shelf-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 10px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
}

.shelf-card {
  position: relative;
  z-index: 1;
  flex: 0 0 196px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 10px;
  isolation: isolate;
}
.home-featured-grid .shelf-card {
  flex: unset;
  width: auto;
  min-width: 0;
}
.shelf-card-img::after { pointer-events: none !important; }
.shelf-card-hit {
  display: grid;
  gap: 6px;
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-decoration: none;
}
.shelf-card-img {
  display: block;
  aspect-ratio: 1;
  border-radius: 2px;
  overflow: hidden;
  background: #f3efe8;
  border: 1px solid var(--line);
}
.shelf-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}
.shelf-card-plu {
  font-size: 12px;
  color: var(--muted);
  margin: 0.1rem 0 0;
}
.shelf-card-name {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.shelf-card-price {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
}
.shelf-card-stock {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
}
.shelf-card-buy {
  position: relative;
  z-index: 3;
  margin-top: auto;
  display: grid;
  gap: 6px;
}
.shelf-card-buy .qty-pick {
  width: 100%;
  justify-content: space-between;
}
.shelf-card-add {
  border: 1px solid var(--line);
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 2px;
  cursor: pointer;
  width: 100%;
}
.shelf-card-add:hover { background: var(--brand); border-color: var(--brand); }
.shelf-card-add:disabled { opacity: 0.45; cursor: not-allowed; }
.shelf-card-buy .qty-more {
  text-align: center;
  margin: 0;
}
.shelf-card-buy .pack {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--muted);
  text-align: center;
  min-height: 1.35em;
}
.shelf-card-buy .pack-empty {
  visibility: hidden;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 170px;
}
.card .thumb {
  aspect-ratio: 1;
  border-radius: 2px;
  background: #ebe6df;
  overflow: hidden;
}
.card .thumb.empty { display: none; }
.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}
.cat-bar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 calc(-1 * max(16px, calc((100% - var(--max)) / 2)));
  padding: 8px max(16px, calc((100% - var(--max)) / 2)) 0;
  border-top: 1px solid var(--line);
  background: #fff;
}
.cat-bar[hidden] { display: none !important; }
.cat-chip {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 2px;
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  flex: 0 0 auto;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}
.cat-chip:hover { border-color: #c4bdb0; color: var(--ink); }
.cat-chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 700;
}
.cat-seo-link {
  margin-left: 6px;
  align-self: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  white-space: nowrap;
  padding: 7px 4px;
  flex: 0 0 auto;
}
.cat-seo-link:hover { text-decoration: underline; }
.group-bar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 calc(-1 * max(16px, calc((100% - var(--max)) / 2)));
  padding: 0 max(16px, calc((100% - var(--max)) / 2)) 8px;
  background: #fff;
}
.group-bar[hidden] { display: none !important; }
.group-chip {
  border: 1px solid var(--line);
  background: #f7f5f1;
  color: var(--ink);
  border-radius: 2px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  flex: 0 0 auto;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.group-chip:hover { border-color: #c4bdb0; }
.group-chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.group-chip .group-count {
  opacity: 0.55;
  font-weight: 500;
  font-size: 0.92em;
}
.group-chip.active .group-count { opacity: 0.75; }
@media (max-width: 719px) {
  /* Jedna linia + swipe — zawsze widoczne pod sticky headerem */
  .cat-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    gap: 8px;
    margin: 0 -16px;
    padding: 10px 16px 8px;
    border-top: 1px solid var(--line);
  }
  .cat-bar::-webkit-scrollbar { display: none; width: 0; height: 0; }
  .cat-chip {
    padding: 10px 14px;
    font-size: 14px;
  }
  .group-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    gap: 6px;
    margin: 0 -16px;
    padding: 0 16px 10px;
  }
  .group-bar::-webkit-scrollbar { display: none; width: 0; height: 0; }
  .group-chip {
    padding: 8px 12px;
    font-size: 13px;
  }
}
.card h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  flex: 1;
}
.card .plu,
.card .pack,
.cart-lines .plu,
.cart-lines .pack,
.upsell-item .pack,
.shelf-card .pack,
.page-product .pack {
  font-size: 12px;
  color: var(--muted);
}
.card .pack,
.cart-lines .pack,
.upsell-item .pack,
.shelf-card .pack,
.page-product .pack {
  margin: 0.15rem 0 0;
  line-height: 1.3;
  min-height: 1.35em;
}
.card .pack-empty,
.shelf-card .pack-empty {
  visibility: hidden;
}
.card .pack strong,
.cart-lines .pack strong,
.upsell-item .pack strong,
.shelf-card .pack strong,
.page-product .pack strong {
  font-weight: 700;
  color: var(--ink);
}
.shelf-card .pack {
  display: block;
  font-size: 0.78rem;
  margin: 0.2rem 0 0;
}
.page-product .pack {
  font-size: 0.95rem;
  margin: 0.35rem 0 0.15rem;
}
.card .price { font-size: 18px; font-weight: 800; }
.card .stock { font-size: 12px; color: var(--ok); }
.card .stock.low { color: #a15c00; }
.card .stock.out { color: #888; }
.buy-block { margin-top: auto; display: grid; gap: 6px; }
.buy-row {
  display: grid;
  grid-template-columns: minmax(92px, 108px) 1fr;
  gap: 8px;
  align-items: stretch;
}
.qty-pick {
  display: grid;
  grid-template-columns: 26px 1fr 26px;
  align-items: center;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  background: transparent;
  min-height: 40px;
}
.qty-pick .qty-step {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  min-height: 36px;
}
.qty-pick .qty-step:hover { color: var(--accent); }
.qty-pick input {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: center;
  font: inherit;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  padding: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty-pick input::-webkit-outer-spin-button,
.qty-pick input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.add-btn {
  margin: 0;
  border: 0;
  border-radius: 2px;
  padding: 10px 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.2;
  font-family: inherit;
}
.add-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.add-btn:hover:not(:disabled) { background: #2a2a2a; }
.qty-more {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  font-weight: 400;
}
.qty-more a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.qty-more a:hover { color: var(--brand); }
.product-buy .qty-more { margin-top: 8px; font-size: 13px; }
.cart-btn.cart-pulse {
  animation: cartPulse 0.55s ease;
}
@keyframes cartPulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.cart {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 40;
  display: flex;
  justify-content: flex-end;
}
.cart[hidden],
.step-cart[hidden],
.checkout[hidden],
.done[hidden],
.fs-bar[hidden],
.upsell[hidden],
#box-invoice[hidden],
#box-inpost[hidden],
#box-addr[hidden],
.paczkomat-selected[hidden],
.inpost-map-modal[hidden],
.cart-summary .cta[hidden],
#summary-ship-row[hidden] {
  display: none !important;
}
.cart-panel {
  width: min(640px, 100%);
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  background: #fff;
  padding: 16px 18px calc(16px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  box-shadow: -8px 0 30px rgba(0,0,0,.12);
}
@media (min-width: 900px) {
  .cart-panel { width: min(720px, 48vw); }
}

.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;
}

/* Pełny koszyk — szeroki layout 2 kolumny (e-commerce) */
body.page-cart {
  min-height: 100vh;
  background: #fff;
}
body.page-cart .cart-btn-static { pointer-events: none; }
body.page-cart .site-foot { padding-bottom: 2.25rem; }

main.cart-page {
  width: min(1280px, calc(100% - 2.5rem));
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3.5rem;
}
.cart-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin: 0 0 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.cart-page-head h1 {
  margin: 0 0 0.3rem;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  letter-spacing: -0.02em;
  font-weight: 700;
}
.cart-page-head .lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}
.cart-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}
.cart-steps li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.cart-steps li span {
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
}
.cart-steps li.is-current { color: var(--ink); }
.cart-steps li.is-current span {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.cart-steps li.is-done { color: var(--ok); }
.cart-steps li.is-done span {
  background: #e8f5ec;
  border-color: #b7dfc0;
  color: var(--ok);
}

body.page-cart .cart.cart-full {
  position: static;
  inset: auto;
  background: transparent;
  display: block;
  z-index: auto;
  justify-content: initial;
}
body.page-cart .cart-full .cart-panel.cart-layout {
  width: 100%;
  max-width: none;
  height: auto;
  max-height: none;
  min-height: 0;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  gap: 2.25rem;
  background: transparent;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  align-items: start;
}
@media (max-width: 899px) {
  body.page-cart .cart-full .cart-panel.cart-layout {
    grid-template-columns: 1fr;
  }
  /* Mobile: podsumowanie POD listą/formularzem — bez sticky (iOS: treść „przeświecała” przez kartę) */
  .cart-aside {
    order: 2;
    position: static !important;
    top: auto !important;
    z-index: auto;
  }
}
.cart-main { min-width: 0; display: grid; gap: 1.25rem; }
.cart-aside {
  position: sticky;
  top: 5.5rem;
  display: grid;
  gap: 0.85rem;
  z-index: 2;
  isolation: isolate;
}

body.page-cart .step-cart { overflow: visible; gap: 0; }
body.page-cart .cart-body {
  overflow: visible;
  max-height: none;
  padding-right: 0;
}

.cart-table-head {
  display: none;
  grid-template-columns: minmax(0, 1fr) 6.5rem 8.5rem 6.5rem;
  gap: 12px;
  padding: 0 0 0.55rem;
  margin-bottom: 0.15rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cart-table-head span:nth-child(2),
.cart-table-head span:nth-child(3),
.cart-table-head span:nth-child(4) { text-align: center; }
.cart-table-head span:nth-child(4) { text-align: right; }
@media (min-width: 800px) {
  .cart-table-head:not([hidden]) { display: grid; }
}

body.page-cart .cart-lines li.cart-line-wide {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px 14px;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  font-size: 0.95rem;
}
@media (min-width: 800px) {
  body.page-cart .cart-lines li.cart-line-wide {
    grid-template-columns: 88px minmax(0, 1fr) 6.5rem 8.5rem 6.5rem;
  }
}
body.page-cart .cart-line-wide .cart-thumb {
  width: 88px;
  height: 88px;
  border-radius: var(--radius);
  background: #fff;
}
body.page-cart .cart-line-info { min-width: 0; }
body.page-cart .cart-line-name {
  display: block;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.35;
}
body.page-cart .cart-line-name:hover { color: var(--brand); }
body.page-cart .cart-line-wide .plu {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
}
body.page-cart .cart-line-wide .qty-remove {
  margin: 0.45rem 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.82rem;
}
body.page-cart .cart-line-unit {
  display: none;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-weight: 600;
}
body.page-cart .cart-line-wide .qty {
  justify-content: center;
}
body.page-cart .cart-line-wide .cart-line-price {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  text-align: right;
}
@media (min-width: 800px) {
  body.page-cart .cart-line-unit { display: block; }
  body.page-cart .cart-line-wide .qty { grid-column: auto; }
  body.page-cart .cart-line-wide .cart-line-price { grid-column: auto; }
}
@media (max-width: 799px) {
  body.page-cart .cart-line-wide .qty {
    grid-column: 2;
    justify-content: flex-start;
  }
  body.page-cart .cart-line-wide .cart-line-price {
    grid-column: 2;
    text-align: left;
  }
}

body.page-cart .cart-empty {
  padding: 2.5rem 0;
  text-align: center;
  border: 0;
}
body.page-cart .cart-empty p {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: var(--muted);
}
body.page-cart .cart-empty-cta {
  display: inline-block;
  width: auto;
  text-decoration: none;
  color: #fff;
  padding: 12px 22px;
}

body.page-cart .upsell {
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}
body.page-cart .upsell h3 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
}
body.page-cart .upsell-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}
body.page-cart .upsell-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  grid-template-rows: auto auto;
  gap: 0.35rem 0.75rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem;
  font-size: 0.88rem;
}
body.page-cart .upsell-card-img {
  grid-row: 1 / span 2;
  width: 64px;
  height: 56px;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}
body.page-cart .upsell-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
body.page-cart .upsell-card-body { min-width: 0; }
body.page-cart .upsell-card-body strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}
body.page-cart .upsell-card-price { font-weight: 800; margin-top: 0.2rem; }
body.page-cart .upsell-card button {
  grid-column: 2;
  justify-self: start;
  border: 0;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius);
  padding: 7px 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.82rem;
}
body.page-cart .upsell-card button:hover { background: var(--brand-deep); }

body.page-cart .fs-bar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
}
body.page-cart .fs-track { background: #e8e4dc; border-radius: var(--radius); }
body.page-cart .fs-bar p { margin: 0.55rem 0 0; font-size: 0.84rem; }

.cart-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.25rem;
  background: #fff;
}
.cart-summary-title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.cart-summary-list { margin: 0; }
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding: 0.4rem 0;
  font-size: 0.95rem;
}
.cart-summary-row dt { margin: 0; color: var(--muted); }
.cart-summary-row dd { margin: 0; font-variant-numeric: tabular-nums; }
.cart-summary-total {
  margin-top: 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 1.08rem;
}
.cart-summary-total dt { color: var(--ink); font-weight: 700; }
.cart-summary-total dd { font-size: 1.2rem; }
.cart-summary .cta {
  margin-top: 1rem;
}
.cart-summary .cta[hidden] { display: none !important; }
.cart-summary .hint { margin: 0.65rem 0 0; text-align: center; }
.cart-trust {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.35rem;
  font-size: 0.84rem;
  color: var(--muted);
}
.cart-trust li {
  padding-left: 1.1rem;
  position: relative;
}
.cart-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--brand);
  border-radius: 1px;
}

body.page-cart .checkout {
  overflow: visible;
  gap: 1.35rem;
  max-width: none;
}
body.page-cart .co-block {
  display: grid;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
body.page-cart .co-block-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
body.page-cart .co-trust {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 500;
}
body.page-cart .co-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 0.85rem;
}
body.page-cart .co-span-2 { grid-column: 1 / -1; }
@media (max-width: 599px) {
  body.page-cart .co-grid { grid-template-columns: 1fr; }
  body.page-cart .co-span-2 { grid-column: auto; }
}
body.page-cart .checkout label { font-size: 0.9rem; }
body.page-cart .checkout textarea,
body.page-cart .checkout input[type="text"],
body.page-cart .checkout input[type="email"],
body.page-cart .checkout input[type="tel"],
body.page-cart .checkout input:not([type]) {
  border-radius: var(--radius);
}
body.page-cart .ship {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}
@media (max-width: 699px) {
  body.page-cart .ship { grid-template-columns: 1fr; }
}
body.page-cart .ship-opt {
  border-radius: var(--radius);
  padding: 0.85rem 0.9rem;
  gap: 0.35rem;
}
body.page-cart .ship-opt-label {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
}
body.page-cart .ship-opt:has(input:checked) {
  border-color: var(--brand);
  background: #faf5f5;
}
body.page-cart .co-ship-extra {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.35rem;
}
body.page-cart .inpost-open-btn { background: var(--brand); }
body.page-cart .inpost-open-btn:hover {
  background: var(--brand-deep);
  filter: none;
}
body.page-cart .paczkomat-selected {
  background: var(--paper);
  border-color: var(--line);
  border-radius: var(--radius);
}
body.page-cart .inpost-map-modal-hint { background: var(--paper); }
body.page-cart .done {
  padding: 2rem 0;
  text-align: left;
}
body.page-cart .done .cta {
  display: inline-block;
  width: auto;
  text-align: center;
  text-decoration: none;
  color: #fff;
  margin-top: 0.75rem;
  padding: 12px 22px;
}
body.page-cart .cart-lines .qty-input,
body.page-cart .cart-lines .qty button:not(.qty-remove) {
  border-radius: var(--radius);
}

/* Podgląd na liście — węższy panel */
.cart.cart-preview .cart-panel {
  width: min(420px, 100%);
}
@media (min-width: 900px) {
  .cart.cart-preview .cart-panel { width: min(420px, 36vw); }
}
.cart.cart-preview .cart-foot .hint {
  font-size: 12px;
  color: var(--muted);
}
.cart-panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.cart-panel h2 { margin: 0; font-size: 20px; }
.linkish {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-size: 14px;
}

.step-cart {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 10px;
  overflow: hidden;
}
.cart-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.fs-bar { background: #f7f3ea; border-radius: 8px; padding: 10px; flex-shrink: 0; }
.fs-track { height: 8px; background: #e8e0d2; border-radius: 999px; overflow: hidden; }
.fs-fill { height: 100%; width: 0; background: var(--ok); transition: width .25s ease; }
.fs-bar p { margin: 8px 0 0; font-size: 13px; }

.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-lines li.cart-line {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  align-items: start;
}
.cart-lines li.cart-empty {
  display: block;
  padding: 18px 0;
  color: var(--muted);
  border-bottom: 0;
}
.cart-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f3efe8;
  overflow: hidden;
  flex-shrink: 0;
}
.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}
.cart-line-main { min-width: 0; display: grid; gap: 10px; }
.cart-line-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: start;
}
.cart-line-top strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
}
.cart-line-price {
  font-weight: 800;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.cart-lines .qty {
  display: flex;
  gap: 8px;
  align-items: center;
}
.cart-lines .qty-input {
  width: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: center;
  font: inherit;
  font-weight: 700;
  padding: 4px 2px;
  -moz-appearance: textfield;
  appearance: textfield;
}
.cart-lines .qty-input::-webkit-outer-spin-button,
.cart-lines .qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.cart-lines .qty button:not(.qty-remove) {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  flex: 0 0 auto;
  line-height: 1;
  padding: 0;
}
.cart-lines .qty .qty-remove {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  font-size: 13px;
  line-height: 1;
  padding: 6px 4px;
  margin-left: 4px;
  width: auto;
  height: auto;
  flex: 0 0 auto;
}

.upsell { margin-top: 8px; padding-bottom: 4px; }
.upsell h3 { margin: 0 0 8px; font-size: 14px; }
.upsell-list { display: grid; gap: 8px; }
.upsell-item {
  display: flex; justify-content: space-between; gap: 8px; align-items: center;
  border: 1px dashed var(--line); border-radius: 8px; padding: 8px;
  font-size: 13px;
}
.upsell-item button {
  border: 0; background: var(--accent); color: #fff; border-radius: 6px; padding: 6px 8px; cursor: pointer; font-weight: 700;
}

.cart-foot {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  flex-shrink: 0;
  background: #fff;
}
.sum { font-size: 18px; margin-bottom: 10px; }
.cta { width: 100%; padding: 12px; font-size: 16px; }
.cta:disabled { opacity: 0.45; cursor: not-allowed; }
.hint { font-size: 12px; color: var(--muted); margin: 8px 0 0; }

.trust {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.sticky-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(0,0,0,.08);
}
.sticky-bar[hidden] { display: none !important; }
.sticky-bar .cta { width: auto; margin: 0; padding: 12px 18px; }
.sticky-sum { font-size: 15px; }

.checkout {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  flex: 1;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: 8px;
}
.checkout label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.checkout textarea {
  width: 100%;
  min-height: 4.5rem;
  resize: vertical;
  font: inherit;
  font-weight: 500;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.co-note-hint {
  margin: 0.45rem 0 0;
  line-height: 1.4;
}
.product-note {
  margin: 0.65rem 0 0.85rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  background: #fafafa;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink);
}
.checkout input[type="text"],
.checkout input[type="email"],
.checkout input[type="tel"],
.checkout input:not([type]) {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 400;
}
.checkout .row2 { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.ship {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.ship legend { padding: 0 4px; font-weight: 700; font-size: 13px; grid-column: 1 / -1; }
.ship-opt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.25;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  min-width: 0;
}
.ship-opt:has(input:checked) {
  border-color: var(--brand);
  background: #faf5f5;
}
.ship-opt input { margin: 0; }
.ship-opt span { margin-left: 0; color: var(--muted); font-size: 12px; font-weight: 600; }
.inpost-open-btn {
  width: 100%;
  margin: 0;
  background: var(--brand);
}
.inpost-open-btn:hover { background: var(--brand-deep); }
.paczkomat-selected {
  margin: 0 0 8px;
  padding: 10px 12px;
  background: #eef8f0;
  border: 1px solid #b7dfc0;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
}
.inpost-manual { margin-top: 8px; font-size: 13px; color: var(--muted); }
.inpost-manual summary { cursor: pointer; margin-bottom: 6px; }
.inpost-manual label { margin-top: 4px; }

.inpost-map-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
}
.inpost-map-modal[hidden] { display: none !important; }
.inpost-map-modal-panel {
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.inpost-map-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.inpost-map-modal-head h3 { margin: 0; font-size: 18px; }
.inpost-map-modal-hint {
  margin: 0;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--muted);
  flex-shrink: 0;
  background: #f7f3ea;
}
.inpost-geowidget-host {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}
.inpost-geowidget-host inpost-geowidget {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
}
.inv-check { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 8px; font-weight: 600; }
.inv-check input { width: auto; margin-top: 3px; }
.terms-check { font-weight: 500; font-size: 13px; line-height: 1.35; }
.terms-check a { color: var(--accent); }
#box-invoice { display: grid; gap: 10px; padding: 8px 0 0; }
.site-foot {
  margin: 0;
  padding: 2.25rem 16px 88px;
  background: #141414;
  color: #bdbdbd;
  font-size: 0.92rem;
  line-height: 1.55;
  text-align: center;
}
.site-foot p { margin: 0.35rem 0; }
.site-foot strong { color: #f2f2f2; }
.site-foot a { color: #f0f0f0; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; color: #fff; }
.foot-links { margin-top: 1rem !important; }
.foot-copy {
  margin-top: 1.1rem !important;
  font-size: 0.8rem;
  color: #888;
  max-width: 40em;
  margin-left: auto !important;
  margin-right: auto !important;
  line-height: 1.6;
}
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 48px;
  line-height: 1.5;
}
.legal h1 { font-size: 1.5rem; margin: 0 0 12px; }
.legal h2 { font-size: 1.05rem; margin: 22px 0 8px; }
.legal a { color: var(--accent); }
.return-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  max-width: 520px;
}
.return-form label {
  display: grid;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
}
.return-form input,
.return-form select,
.return-form textarea {
  font: inherit;
  font-weight: 400;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.return-form .hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.legal .hint { font-size: 14px; color: var(--muted); font-weight: 400; }
.card.highlight {
  outline: 3px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(200, 16, 24, 0.16);
}
.product-page .crumb,
.page-product .crumb { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.back-brand {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.back-brand:hover { text-decoration: underline; }
.back-brand-lg {
  font-size: 16px;
  padding: 12px 0;
}
.product-back {
  margin: 28px 0 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.page-product .crumb a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.page-product .crumb a:hover { color: var(--brand); }
.product-hero {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: start;
  margin-bottom: 2rem;
}
.product-hero-img {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}
.product-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}
.product-hero-copy h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.product-buy {
  margin-top: 1rem;
  max-width: 28rem;
}
.ship-promise {
  background: #1a1a1a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #e8e8e8;
}
.ship-promise-list {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.55rem 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0;
  font-size: 0.86rem;
  line-height: 1.35;
}
.ship-promise-list li {
  margin: 0;
  padding: 0 1.1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  color: #cfcfcf;
}
.ship-promise-list li:last-child { border-right: none; }
.ship-promise-list strong { color: #fff; font-weight: 700; }
@media (max-width: 720px) {
  .ship-promise-list {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    padding: 0.65rem 0;
  }
  .ship-promise-list li {
    border-right: none;
    padding: 0;
  }
}
.product-ship {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
}
.product-ship-muted {
  margin-top: 0.25rem;
  font-size: 0.86rem;
  font-weight: 400;
  color: var(--muted);
}
.product-sizes { margin: 1.1rem 0 0; }
.product-sizes h2,
.product-similar h2 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
}
.size-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.size-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 3.2rem;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: inherit;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}
.size-chip span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}
.size-chip:hover { border-color: #bbb; }
.size-chip.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.size-chip.is-active span { color: rgba(255,255,255,0.75); }
.product-similar { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.similar-card {
  display: grid;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  padding: 8px;
  background: #fff;
}
.similar-card:hover { border-color: #bbb; }
.similar-img {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f3efe8;
  border: 1px solid var(--line);
}
.similar-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}
.similar-name {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}
.similar-price { font-size: 0.92rem; font-weight: 700; }
.card-media {
  display: block;
  aspect-ratio: 1;
  margin: 0 0 8px;
  border: 1px solid var(--line);
  background: #f3efe8;
  overflow: hidden;
  text-decoration: none;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}
.card-media:empty {
  background: linear-gradient(145deg, #f7f3ea 0%, #ebe4d8 100%);
}
.card-media:empty::after {
  content: "Brak zdjęcia";
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #9a9186;
  font-size: 0.85rem;
  font-weight: 600;
}
.card-title-link {
  color: inherit;
  text-decoration: none;
}
.card-title-link:hover { color: var(--brand); }
.shelf-card-hit { text-decoration: none; color: inherit; }
@media (max-width: 720px) {
  .product-hero { grid-template-columns: 1fr; }
}
.product-page h1 { margin: 0 0 8px; font-size: clamp(1.25rem, 3vw, 1.75rem); line-height: 1.25; }
.product-page .price { font-size: 1.5rem; font-weight: 800; margin: 8px 0; }
.product-page .meta { margin: 0; color: var(--muted); font-size: 14px; }

/* Strony kategorii /k/ */
.cat-page { max-width: var(--max); margin: 0 auto; padding: 12px 16px 48px; }
.cat-page h1 {
  margin: 8px 0 10px;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.cat-lead { margin: 0 0 16px; color: var(--muted); max-width: 42rem; line-height: 1.45; }
.cat-count { margin: 8px 0 14px; font-size: 14px; color: var(--muted); }
.cat-crumb { margin: 0 0 8px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.cat-crumb a { color: var(--ink); text-underline-offset: 2px; }
.cat-crumb a:hover { color: var(--brand); }
.cat-sub { margin: 0 0 16px; }
.cat-sub-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chip-n { opacity: 0.65; font-weight: 500; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
}
.cat-prod {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  min-height: 100%;
}
.cat-prod:hover { border-color: #c4bdb0; }
.cat-prod-img {
  display: block;
  aspect-ratio: 1;
  background: #faf9f7;
  overflow: hidden;
}
.cat-prod-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.cat-prod-name {
  font-size: 13px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-prod-price { font-weight: 700; font-size: 14px; margin-top: auto; }
.cat-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.cat-index-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
}
.cat-index-card:hover { border-color: var(--brand); }
.cat-index-card span { color: var(--muted); font-size: 14px; }
.page-product .price { font-size: 1.45rem; font-weight: 800; margin: 0.35rem 0; }
.page-product .meta { margin: 0 0 0.5rem; color: var(--muted); font-size: 0.92rem; }
.co-trust { margin: 0; font-size: 13px; color: var(--ok); }
.co-sum { background: #f7f3ea; border-radius: 8px; padding: 10px; font-size: 14px; display: grid; gap: 4px; }
.co-total { font-size: 18px; margin-top: 4px; }
.done { text-align: center; padding: 24px 8px; }
.done h3 { margin: 0 0 8px; color: var(--ok); }

@media (max-width: 640px) {
  main { padding-bottom: 80px; }
}

