:root {
  /* Paleta "mgla" (morska mgla) - jedyna paleta strony.
     Stare tokeny "porcelain" usuniete w pakiecie 5 audytu (2026-06);
     pelne wartosci historyczne sa w gicie. */
  --bg:        #EEF3F2;   /* mgla nad woda */
  --paper:     #E4ECEA;
  --mist:      #DAE4E2;
  --foam:      #FAFCFB;   /* piana - jasniejsza niz tlo */
  --smoke:     #9DB5AC;   /* szalwia */
  --smoke-d:   #4E7280;   /* szklo morskie ciemne */
  --sea:       #6E94A0;   /* szklo morskie */
  --sea-d:     #4E7280;
  --sage:      #9DB5AC;
  --ink:       #25333A;   /* granat morski przygaszony */
  --ink-soft:  #5B6E76;
  --ink-faint: #5F7079;   /* przyciemniony dla kontrastu WCAG AA (4.59:1 na --bg) */
  --hair:      rgba(37, 51, 58, 0.10);
  --hair-s:    rgba(37, 51, 58, 0.16);
  --hair-m:    rgba(37, 51, 58, 0.26);
  /* Semantyczne - statusy zamowienia, komunikaty, role */
  --danger:    #A03434;
  --success:   #2D6B48;
  --warning:   #8C5A2B;
  --info:      #3C6D9B;
  --accent:    #6E94A0;
  /* Gradient placeholdery dla zdjec produktow (zanim zaladuje sie URL z DB) */
  --gradient-cool: linear-gradient(135deg, #DCE6E4 0%, #C7D6D2 50%, #9DB5AC 100%);
  --gradient-warm: linear-gradient(135deg, #EAE2D4 0%, #DACFBB 50%, #C3AF93 100%);
  --sans: 'Nunito Sans', system-ui, -apple-system, sans-serif;
  --serif: 'Libre Caslon Text', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; letter-spacing: 0.002em;
  min-height: 100vh; display: flex; flex-direction: column;
}
body > .foot { margin-top: auto; }
@media (max-width: 767px) {
  body { font-size: 15px; line-height: 1.55; }
}
/* Czytelnosc w gestym tekscie (14 px i mniej): paragrafy, inputy, listy */
p,
input,
select,
textarea,
.foot li,
.foot .tag,
.cart-summary,
.cart-summary .line,
.cart-summary .perks,
.cart-item .info .opts,
.summary-block,
.summary-block .li,
.summary-block .addr,
.pdp .info .desc,
.pdp .info .perks,
.legal-body p,
.legal-body li,
.acct-form,
.auth-card,
.contact-aside-val,
.contact-aside-social a { font-weight: 400; }
.serif { font-family: var(--serif); font-weight: 400; }
.mono  { font-family: var(--mono); font-weight: 300; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
em, .ital { font-style: italic; font-family: var(--serif); font-weight: 400; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ============ A11Y: skip-link + ukryte teksty dla czytnikow ============ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--ink); color: var(--foam);
  padding: 12px 20px; border-radius: 0 0 10px 0; font-size: 14px;
}
.skip-link:focus { left: 0; }

/* ============ ANNOUNCEMENT + TOP NAV ============ */
/* Rezerwa miejsca na header wstrzykiwany przez partials.js (announce ~41px + topnav ~68px)
   — bez niej strona "skacze" po wstrzyknięciu (CLS). Po podmianie placeholder znika. */
[data-include="header"] { min-height: 109px; }

.announce {
  background: var(--ink); color: var(--bg);
  text-align: center; padding: 12px 20px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em;
}
.announce span { margin: 0 18px; color: rgba(246,247,248,0.6); }
.announce strong { font-weight: 400; color: var(--bg); }

.topnav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246, 247, 248, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px 40px; gap: 36px;
  min-height: 68px;
}
.topnav .links {
  display: flex; gap: 32px; font-size: 15px; color: var(--ink-soft);
}
.topnav .links a { position: relative; padding: 4px 0; white-space: nowrap; transition: color .2s; }
.topnav .links a:hover, .topnav .links a.active { color: var(--ink); }
.topnav .links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: var(--ink);
}
.topnav .logo {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 26px; letter-spacing: 0.01em; white-space: nowrap;
  text-align: center;
}
.topnav .logo a { display: inline-flex; align-items: center; gap: 10px; color: inherit; }
.topnav .logo .logo-mark {
  width: 32px; height: 32px;
  display: block; flex: 0 0 auto;
  object-fit: contain;
}
@media (max-width: 720px) {
  .topnav .logo .logo-mark { width: 26px; height: 26px; }
}
.topnav .icons { display: flex; justify-content: flex-end; gap: 20px; font-size: 15px; color: var(--ink-soft); align-items: center; }
.topnav .icons a { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.topnav .icons .bag { font-weight: 400; color: var(--ink); }
.topnav .icons .count {
  font-family: var(--mono); font-size: 9.5px; padding: 2px 7px; background: var(--ink); color: var(--bg); border-radius: 999px;
}
.topnav .icons .fav-nav { font-weight: 400; color: var(--ink); }
.topnav .icons .fav-nav .heart { font-size: 17px; line-height: 1; }
.topnav .icons .fav-nav.has-items .heart { color: var(--ink); }
.topnav .icons .fav-nav .count { background: var(--ink); color: var(--bg); }
.topnav .icons .fav-nav .count.zero { background: transparent; color: var(--ink-faint); border: 1px solid var(--hair-m); }

/* ============ PAGE ============ */
.page { display: none; }
.page.active { display: block; }

/* ============ PLACEHOLDERS ============ */
.ph {
  position: relative;
  background:
    linear-gradient(135deg, var(--mist) 0%, var(--paper) 50%, var(--bg) 100%);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.ph::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse at 30% 30%, rgba(168, 180, 190, 0.28), transparent 55%),
    radial-gradient(ellipse at 75% 70%, rgba(168, 180, 190, 0.2), transparent 50%);
}
.ph > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.ph .cap {
  position: relative; z-index: 2;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em;
  color: var(--smoke-d); text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--hair-s);
  background: rgba(246, 247, 248, 0.72);
  backdrop-filter: blur(4px);
}
/* Ukryj caption "FOTO …" gdy element ma realny obrazek (chroni dev-annotations) */
.ph[style*="url("] .cap,
.ig-tile[style*="url("] .cap { display: none; }
.ph:has(> img) .cap { display: none; }

/* ============ SECTION HEADER ============ */

/* ============ HOMEPAGE HERO ============ */
/* HERO — editorial pełnoekranowy (Kierunek 1) */

/* value strip */

/* ============ CATEGORIES ============ */

/* ============ PRODUCT GRID (salon cards) ============ */
.prod-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--hair);
}
.prod-card .card-link {
  /* link-nakladka: caly obszar karty klikalny, a przyciski (z-index wyzej) dzialaja */
  position: absolute; inset: 0; z-index: 1; border-radius: inherit;
}
.prod-card .corner, .prod-card .add { position: relative; z-index: 2; }
.prod-card .fav { position: relative; z-index: 2; }
.prod-card {
  padding: 32px 32px 28px;
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  background: var(--bg);
  transition: background 0.3s;
}
.prod-card:hover { background: rgba(168, 180, 190, 0.05); }
.prod-card:nth-child(3n) { border-right: none; }
.prod-grid.g3 .prod-card:nth-last-child(-n+3) { border-bottom: none; }
.prod-grid.g4 { grid-template-columns: repeat(4, 1fr); }
.prod-grid.g4 .prod-card:nth-child(3n) { border-right: 1px solid var(--hair); }
.prod-grid.g4 .prod-card:nth-child(4n) { border-right: none; }
.prod-grid.g4 .prod-card:nth-last-child(-n+4) { border-bottom: none; }
.prod-card .corner {
  display: flex; justify-content: space-between;
  position: absolute; top: 20px; left: 32px; right: 32px;
  align-items: flex-start;
}
.prod-card .n { font-family: var(--mono); color: var(--ink-faint); }
.prod-card .fav::after {
  /* powiekszony obszar trafienia (cel dotykowy) */
  content: ''; position: absolute; inset: -8px; border-radius: 999px;
}
.prod-card .fav {
  width: 28px; height: 28px; border: 1px solid var(--hair-m);
  background: rgba(255,255,255,0.9);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; line-height: 1; color: var(--ink-soft);
}
.prod-card .fav::before { content: "\2661"; }
.prod-card .fav.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.prod-card .fav.on::before { content: "\2665"; }
.prod-card .ph { aspect-ratio: 1/1; margin-top: 28px; }
.prod-card .tag {
  position: absolute; top: 44px; right: 44px; z-index: 3;
  background: var(--bg); padding: 3px 8px;
  font-family: var(--mono); font-size: 9px;
  border: 1px solid var(--hair-s); color: var(--smoke-d);
}
.prod-card .meta { font-family: var(--mono); color: var(--smoke-d); display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; }
.prod-card .name { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.1; }
.prod-card .name em { color: var(--smoke-d); font-style: italic; }
.prod-card .row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 14px; border-top: 1px solid var(--hair); margin-top: 2px;
}
.prod-card .stone { font-size: 12.5px; color: var(--ink-soft); }
.prod-card .price { font-family: var(--serif); font-style: italic; font-size: 20px; }
.prod-card .add {
  margin-top: 8px; padding: 10px 14px; width: 100%;
  border: 1px solid var(--hair-m); background: transparent;
  font-size: 12.5px; color: var(--ink); letter-spacing: 0.02em;
  display: flex; justify-content: space-between; align-items: center;
  transition: all 0.2s;
}
.prod-card .add:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.prod-card .add .ar { opacity: .5; }

/* ============ MAP (origin) ============ */
.map-section {
  padding: 80px 40px;
  border-bottom: 1px solid var(--hair);
  background: var(--bg);
}
.map-section .hd {
  display: grid; grid-template-columns: 1fr 400px; gap: 60px;
  align-items: flex-end; margin-bottom: 40px;
}
.map-section .hd .lbl { font-family: var(--mono); color: var(--smoke-d); margin-bottom: 12px; }
.map-section .hd h2 {
  font-family: var(--serif); font-weight: 400; font-size: 52px; line-height: 1.02; margin: 0;
  max-width: 640px; letter-spacing: -0.01em;
}
.map-section .hd h2 em { color: var(--smoke-d); }
.map-section .hd p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.65; }
.map-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; }
.map-frame {
  position: relative;
  aspect-ratio: 2 / 1;
  background: var(--paper);
  border: 1px solid var(--hair-s);
  overflow: visible;
}
.map-frame svg { display: block; width: 100%; height: 100%; }
.map-frame .pin {
  /* <button> — reset natywnych stylow */
  padding: 0; font: inherit; appearance: none;
  position: absolute; width: 14px; height: 14px; border-radius: 999px;
  background-color: var(--ink); border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--ink);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform .2s, background .2s, box-shadow .2s;
}
.map-frame .pin.has-image {
  width: 22px; height: 22px;
  background-size: cover; background-position: center;
  background-color: var(--mist);
  box-shadow: 0 0 0 1px var(--hair-m), 0 2px 4px rgba(26,29,33,0.18);
}
.map-frame .pin::after {
  /* niewidoczny, powiekszony obszar trafienia (cel dotykowy ~44px) */
  content: ''; position: absolute; inset: -15px; border-radius: 999px;
}
.map-frame .pin::before {
  content: ""; position: absolute; inset: -8px; border-radius: 999px;
  background: rgba(26,29,33,0.08);
}
.map-frame .pin:hover { transform: translate(-50%, -50%) scale(1.3); background-color: var(--smoke-d); }
.map-frame .pin.has-image:hover {
  transform: translate(-50%, -50%) scale(1.35);
  box-shadow: 0 0 0 1px var(--ink), 0 4px 8px rgba(26,29,33,0.22);
}
.map-frame .pin.active {
  transform: translate(-50%, -50%) scale(1.5);
  background-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink), 0 0 0 6px rgba(26, 29, 33, 0.12);
}
.map-frame .pin.has-image.active {
  transform: translate(-50%, -50%) scale(1.5);
  background-color: var(--mist);
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 6px rgba(26, 29, 33, 0.10);
}
.map-frame .pin .tooltip {
  position: absolute; left: 50%; top: -10px; transform: translate(-50%, -100%);
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em;
  color: var(--ink); text-transform: uppercase; white-space: nowrap;
  background: var(--bg); padding: 4px 10px; border: 1px solid var(--hair-s);
  opacity: 0; pointer-events: none; transition: opacity .2s;
  z-index: 10;
}
.map-frame .pin:hover .tooltip, .map-frame .pin.active .tooltip { opacity: 1; }
.map-frame .hint {
  position: absolute; bottom: 14px; right: 16px;
  font-family: var(--mono); font-size: 9px; color: var(--ink-faint);
  letter-spacing: 0.14em; text-transform: uppercase;
}

.map-legend { display: flex; flex-direction: column; }
.legend-row {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
  cursor: pointer;
  transition: opacity .2s;
}
.legend-row { cursor: pointer; transition: background .2s, opacity .2s; }
.legend-row:hover { opacity: 1; background: rgba(26, 29, 33, 0.02); }
.legend-row:hover .swatch { transform: scale(1.08); border-color: var(--ink); }
.legend-row .swatch { transition: transform .2s, border-color .2s; }
.legend-row.active { background: rgba(26, 29, 33, 0.05); opacity: 1; }
.legend-row.active .name { color: var(--ink); }
.legend-row.active .swatch { border-color: var(--ink); }
.legend-row .swatch {
  width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid var(--hair-s);
}
.legend-row .name { font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1; }
.legend-row .origin { font-family: var(--mono); color: var(--smoke-d); margin-top: 4px; font-size: 10px; }
.legend-row .more { font-size: 13px; color: var(--ink-soft); }

/* ============ STORY ============ */

/* ============ NEWSLETTER ============ */

/* ============ FOOTER ============ */
.foot {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px; padding: 40px 40px 28px;
  border-top: 1px solid var(--hair); background: var(--bg);
}
.foot .mark { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 26px; margin-bottom: 12px; }
.foot .tag { font-size: 15px; color: var(--ink-soft); max-width: 360px; line-height: 1.65; }
.foot h5 { margin: 0 0 14px; font-family: var(--mono); font-weight: 400; color: var(--smoke-d); }
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.foot li { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }
.foot .bottom {
  grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px; margin-top: 12px; border-top: 1px solid var(--hair);
  font-family: var(--mono); color: var(--ink-faint);
}

/* ============ CATALOG ============ */
.cat-hero {
  padding: 60px 40px 32px;
  border-bottom: 1px solid var(--hair);
  display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: flex-end;
}
.cat-hero .bread { font-family: var(--mono); color: var(--smoke-d); margin-bottom: 14px; }
.cat-hero h1 {
  font-family: var(--serif); font-weight: 400; font-size: 64px; line-height: 1;
  margin: 0 0 12px; letter-spacing: -0.012em;
}
.cat-hero h1 em { color: var(--smoke-d); }
.cat-hero p { font-size: 14px; color: var(--ink-soft); margin: 0; max-width: 460px; line-height: 1.65; }
.cat-hero .r { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.cat-hero .r .c1 { font-family: var(--serif); font-style: italic; font-size: 44px; line-height: 1; }
.cat-hero .r .c2 { font-family: var(--mono); color: var(--smoke-d); }

.cat-layout { display: grid; grid-template-columns: 260px 1fr; border-bottom: 1px solid var(--hair); }
.cat-filters { padding: 32px 32px 40px; border-right: 1px solid var(--hair); }
.cat-filters .group { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--hair); }
.cat-filters .group:last-child { border-bottom: none; }
/* h3 (semantycznie lepsze od h5 dla SEO) stylowane na rozmiar dawnego h5 */
.cat-filters h3 { font-family: var(--mono); color: var(--smoke-d); margin: 0 0 12px; font-weight: 400; font-size: 13px; letter-spacing: 0.1em; }
.cat-filters ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.cat-filters li { font-size: 13px; color: var(--ink-soft); display: flex; justify-content: space-between; align-items: baseline; cursor: pointer; }
.cat-filters li:hover { color: var(--ink); }
.cat-filters li .n { font-family: var(--mono); color: var(--ink-faint); font-size: 10px; }
.cat-filters li.sel { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--ink); }
.cat-filters .col {
  width: 28px; height: 28px; border-radius: 999px;
  border: 1px solid var(--hair-s); cursor: pointer;
  position: relative; transition: transform .2s;
}
.cat-filters .col:hover { transform: scale(1.1); }
.cat-filters .col.on::after { content: ""; position: absolute; inset: -3px; border: 1px solid var(--ink); border-radius: 999px; }

/* slider CSS usuniety — uzywamy listy progów cen */

.cat-results .toolbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 32px; border-bottom: 1px solid var(--hair);
}
.cat-results .toolbar .count { font-family: var(--serif); font-style: italic; font-size: 20px; }
.cat-results .toolbar .sort { display: flex; gap: 14px; align-items: center; font-size: 12.5px; color: var(--ink-soft); }
.cat-results .toolbar .sort .chip { padding: 5px 12px; border: 1px solid var(--hair-s); border-radius: 999px; }
.cat-results .toolbar .sort .chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.cat-grid .prod-card { border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 28px 28px 24px; }
.cat-grid .prod-card:nth-child(3n) { border-right: none; }

.cat-pagination {
  padding: 32px 32px; display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--hair);
}
.cat-pagination .page-nums { display: flex; gap: 2px; align-items: center; }
.cat-pagination .pg {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; color: var(--ink-soft); border-radius: 999px;
}
.cat-pagination .pg.on { background: var(--ink); color: var(--bg); }
.cat-pagination .showing { font-family: var(--mono); color: var(--smoke-d); }

/* ============ PRODUCT PAGE ============ */
.pdp-bread { padding: 24px 40px; border-bottom: 1px solid var(--hair); font-family: var(--mono); color: var(--smoke-d); }
.pdp-bread span.crr { color: var(--ink); }
.pdp {
  display: grid; grid-template-columns: 1.1fr 1fr;
  border-bottom: 1px solid var(--hair);
}
.pdp .gallery { padding: 40px; border-right: 1px solid var(--hair); display: flex; flex-direction: column; gap: 12px; background: var(--paper); }
.pdp .gallery .main { aspect-ratio: 4/5; }
.pdp .gallery .thumb { aspect-ratio: 1/1; cursor: pointer; border: 1px solid transparent; }
.pdp .gallery .thumb.on { border-color: var(--ink); }

.pdp .info { padding: 56px 60px; display: flex; flex-direction: column; gap: 22px; }
.pdp .info .pre { font-family: var(--mono); color: var(--smoke-d); display: flex; gap: 18px; }
.pdp .info .pre .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--smoke-d); display: inline-block; margin-right: 8px; vertical-align: middle; }
.pdp .info h1 { font-family: var(--serif); font-weight: 400; font-size: 52px; line-height: 1.02; margin: 0; letter-spacing: -0.01em; }
.pdp .info h1 em { color: var(--smoke-d); }
.pdp .info .desc { font-size: 14px; color: var(--ink-soft); line-height: 1.7; max-width: 500px; margin: 0; }
.pdp .info .price-row {
  display: flex; align-items: baseline; gap: 16px; padding: 16px 0;
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
}
.pdp .info .price { font-family: var(--serif); font-style: italic; font-size: 32px; }
.pdp .info .ship { font-family: var(--mono); color: var(--smoke-d); }

.pdp .info .opt-group { display: flex; flex-direction: column; gap: 10px; }
.pdp .info .opt-group .label { display: flex; justify-content: space-between; font-family: var(--mono); color: var(--smoke-d); }
.pdp .info .opt-group .label .val { color: var(--ink); }
.pdp .info .sizes { display: flex; gap: 8px; }
.pdp .info .size {
  min-width: 52px; height: 52px; padding: 0 14px;
  border: 1px solid var(--hair-m); background: var(--bg);
  font-family: var(--serif); font-style: italic; font-size: 17px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pdp .info .size:hover { border-color: var(--ink); }
.pdp .info .size.sel { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 400; }

.pdp .info .cta-row { display: flex; gap: 10px; margin-top: 6px; }
.pdp .info .btn {
  flex: 1; padding: 16px; background: var(--ink); color: var(--bg);
  font-size: 13px; font-weight: 400; letter-spacing: 0.04em;
  display: flex; justify-content: space-between; align-items: center; border: none;
}
.pdp .info .btn.ghost { flex: 0 0 auto; padding: 16px 22px; background: transparent; color: var(--ink); border: 1px solid var(--hair-m); }

.pdp .info .perks {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px;
  padding-top: 18px; margin-top: 4px; border-top: 1px solid var(--hair);
  font-size: 12px; color: var(--ink-soft);
}
.pdp .info .perks div { display: flex; gap: 8px; align-items: baseline; }
.pdp .info .perks .bullet { color: var(--smoke-d); }

/* stone deep */
.stone-deep {
  padding: 80px 60px; border-bottom: 1px solid var(--hair); background: var(--paper);
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px;
}
.stone-deep .left { display: flex; flex-direction: column; gap: 18px; }
.stone-deep .orb {
  width: 160px; height: 160px; border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, var(--mist), var(--smoke-d) 80%);
  border: 1px solid var(--hair-s);
}
.stone-deep .eye { font-family: var(--mono); color: var(--smoke-d); }
.stone-deep h3 { font-family: var(--serif); font-weight: 400; font-size: 52px; line-height: 1.02; margin: 0; letter-spacing: -0.01em; }
.stone-deep h3 em { font-style: italic; color: var(--smoke-d); }
.stone-deep p { font-size: 14px; color: var(--ink-soft); max-width: 480px; line-height: 1.65; margin: 0; }
.stone-deep .props {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px;
  padding-top: 20px; border-top: 1px solid var(--hair);
}
.stone-deep .props .k { font-family: var(--mono); color: var(--smoke-d); }
.stone-deep .props .v { font-family: var(--serif); font-style: italic; font-size: 20px; margin-top: 2px; margin-bottom: 16px; font-weight: 400; }

/* origin mini-map inside pdp */
.origin-mini {
  padding: 60px 40px; border-bottom: 1px solid var(--hair);
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: center;
}
.origin-mini .txt { }
.origin-mini .eye { font-family: var(--mono); color: var(--smoke-d); margin-bottom: 12px; }
.origin-mini h3 { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.05; margin: 0 0 14px; letter-spacing: -0.01em; }
.origin-mini h3 em { color: var(--smoke-d); }
.origin-mini p { margin: 0 0 10px; font-size: 13.5px; color: var(--ink-soft); max-width: 420px; line-height: 1.6; }
.origin-mini .coords { font-family: var(--mono); color: var(--smoke-d); margin-top: 16px; display: flex; gap: 20px; }
.origin-mini .map-mini {
  aspect-ratio: 2/1; position: relative; border: 1px solid var(--hair-s); background: var(--bg); overflow: hidden;
}
.origin-mini .map-mini svg { display: block; width: 100%; height: 100%; }
/* Wzmocnione kontury w mini-mapie — viewBox 1000x500 skalowany w dol gubi linie */
.origin-mini .map-mini svg path {
  vector-effect: non-scaling-stroke;
  stroke-width: 1;
  stroke: rgba(26, 29, 33, 0.20);
}
.origin-mini .map-mini .pin {
  position: absolute; width: 12px; height: 12px; border-radius: 999px;
  background: var(--ink); border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--ink);
  transform: translate(-50%, -50%);
}
.origin-mini .map-mini .pin::after {
  content: ""; position: absolute; inset: -14px; border: 1px dashed var(--smoke-d);
  border-radius: 999px; opacity: .5;
}

/* also like */
.also {
  padding: 60px 40px 0; border-bottom: 1px solid var(--hair);
}
.also .hd {
  display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px;
}
.also .hd .lbl { font-family: var(--mono); color: var(--smoke-d); margin-bottom: 10px; }
.also .hd h3 { font-family: var(--serif); font-weight: 400; font-size: 36px; margin: 0; letter-spacing: -0.01em; }
.also .hd h3 em { color: var(--smoke-d); }
.also .hd .link { font-size: 12.5px; color: var(--ink-soft); border-bottom: 1px solid var(--hair-m); padding-bottom: 2px; }
.also .prod-grid { border-bottom: none; }
.also .prod-grid .prod-card:nth-last-child(-n+3) { border-bottom: none; }
.also .prod-grid.g4 .prod-card:nth-last-child(-n+4) { border-bottom: none; }

/* ============ CART ============ */
.cart-hero {
  padding: 60px 40px 40px; border-bottom: 1px solid var(--hair);
  display: flex; justify-content: space-between; align-items: flex-end;
}
.cart-hero h1 { font-family: var(--serif); font-weight: 400; font-size: 64px; line-height: 1; margin: 0; letter-spacing: -0.012em; }
.cart-hero h1 em { color: var(--smoke-d); }
.cart-hero .steps { display: flex; gap: 20px; font-family: var(--mono); color: var(--ink-faint); align-items: center; }
.cart-hero .steps .s { display: inline-flex; gap: 8px; align-items: baseline; }
.cart-hero .steps .s.on { color: var(--ink); }
.cart-hero .steps .sep { width: 24px; height: 1px; background: var(--hair-m); display: inline-block; }
.cart-hero .steps .s.on .num { color: var(--ink); }
.cart-hero .steps .num { color: var(--smoke-d); }

.cart-layout { display: grid; grid-template-columns: 1.4fr 1fr; border-bottom: 1px solid var(--hair); min-height: 620px; }
.cart-items { border-right: 1px solid var(--hair); padding: 0; }
.cart-items .hdr { padding: 20px 32px; display: flex; justify-content: space-between; font-family: var(--mono); color: var(--smoke-d); border-bottom: 1px solid var(--hair); }
.cart-item {
  display: grid; grid-template-columns: 120px 1fr auto auto;
  gap: 28px; align-items: center;
  padding: 28px 32px;
  border-bottom: 1px solid var(--hair);
}
.cart-item .ph { aspect-ratio: 4/5; width: 120px; }
.cart-item .info .stone { font-family: var(--mono); color: var(--smoke-d); margin-bottom: 6px; }
.cart-item .info .name { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.1; }
.cart-item .info .name em { color: var(--smoke-d); font-style: italic; }
.cart-item .info .opts { font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; }
.cart-item .info .opts span { margin-right: 18px; }
.cart-item .qty {
  display: inline-flex; align-items: center; border: 1px solid var(--hair-m);
}
.cart-item .qty button { width: 32px; height: 32px; background: transparent; border: none; color: var(--ink-soft); font-size: 16px; }
.cart-item .qty .n { width: 36px; text-align: center; font-family: var(--mono); font-size: 12px; }
.cart-item .price { font-family: var(--serif); font-style: italic; font-size: 22px; min-width: 80px; text-align: right; }
.cart-item .rm { font-size: 11px; color: var(--smoke-d); text-decoration: underline; margin-top: 6px; }

.cart-summary { padding: 40px; background: var(--paper); display: flex; flex-direction: column; gap: 18px; }
.cart-summary h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 0 0 10px; }
.cart-summary .line { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-soft); padding: 6px 0; }
.cart-summary .line .v { color: var(--ink); }
.cart-summary .total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--hair); margin-top: 6px; }
.cart-summary .total .k { font-family: var(--mono); color: var(--smoke-d); }
.cart-summary .total .v { font-family: var(--serif); font-style: italic; font-size: 32px; }
.cart-summary .code {
  display: flex; gap: 8px; border: 1px solid var(--hair-s); padding: 10px 14px; align-items: center;
}
.cart-summary .code input { flex: 1; border: none; background: transparent; outline: none; font-family: var(--sans); font-size: 13px; color: var(--ink); }
.cart-summary .code input::placeholder { color: var(--ink-faint); }
.cart-summary .code button { background: transparent; border: none; font-size: 12px; color: var(--smoke-d); }
.cart-summary .checkout {
  padding: 16px; background: var(--ink); color: var(--bg); border: none;
  font-size: 13px; letter-spacing: 0.04em; display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px;
}
.cart-summary .perks { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--ink-soft); padding-top: 12px; border-top: 1px solid var(--hair); margin-top: 10px; }

/* ============ HAMBURGER TOGGLE (3 wyraźne kreski przez CSS) ============ */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
  width: 44px; height: 44px; /* min. cel dotykowy WCAG */
  background: transparent; border: none; padding: 0;
  color: transparent; font-size: 0; line-height: 1; /* chowamy natywny znak ≡ */
  cursor: pointer;
}
.nav-toggle::before {
  content: '';
  position: absolute;
  left: 8px; right: 8px; top: 12px;
  height: 2.5px;
  background: var(--ink);
  box-shadow: 0 8px 0 var(--ink), 0 16px 0 var(--ink);
  border-radius: 2px;
}
body.nav-open .nav-toggle::before {
  /* zamień 3 kreski na X kiedy menu otwarte */
  background: transparent;
  box-shadow: 0 8px 0 var(--ink);
  transform: rotate(45deg); transform-origin: center;
}
body.nav-open .nav-toggle { width: 44px; }

/* ============ RESPONSIVE (mobile-first) ============ */
@media (max-width: 767px) {
  .announce {
    font-size: 11px; letter-spacing: 0.16em; padding: 8px 14px; line-height: 1.5;
  }
  .announce span { margin: 0 8px; }

  .topnav {
    grid-template-columns: auto 1fr auto;
    padding: 14px 20px; gap: 16px; min-height: 56px;
    /* Wyłącz backdrop-filter na mobile — tworzy containing block dla fixed children,
       co psuło wyświetlanie mobilnego menu */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .topnav .logo {
    text-align: left; font-size: 22px;
    grid-column: 1 / 2;
  }
  .topnav .links {
    display: none;
    position: fixed; top: 56px; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    flex-direction: column; gap: 0;
    padding: 20px;
    z-index: 200;
    border-top: 1px solid var(--hair);
    overflow-y: auto;
  }
  .topnav .links a {
    padding: 16px 0; font-size: 16px;
    border-bottom: 1px solid var(--hair);
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .topnav .links { display: flex !important; }
  .topnav .icons { gap: 12px; font-size: 12px; }
  .topnav .icons .bag span:first-child { display: none; }
  .topnav .icons .fav-nav .count { font-size: 9px; padding: 1px 5px; }

  .nav-toggle { display: inline-flex; }

  .prod-grid, .prod-grid.g3 {
    grid-template-columns: 1fr;
  }
  .prod-card {
    padding: 24px 20px 22px;
    border-right: none;
  }
  .prod-card:nth-child(3n) { border-right: none; }
  .prod-card .corner { left: 20px; right: 20px; top: 16px; }
  .prod-card .tag { top: 38px; right: 32px; }

  .map-section {
    padding: 48px 20px;
  }
  .map-section .hd {
    grid-template-columns: 1fr; gap: 20px; margin-bottom: 24px;
  }
  .map-section .hd h2 { font-size: 34px; }
  .map-layout {
    grid-template-columns: 1fr; gap: 24px;
  }

  .foot {
    grid-template-columns: 1fr 1fr; gap: 24px;
    padding: 40px 20px 28px;
  }
  .foot .mark-col { grid-column: 1 / -1; }
  .foot .bottom {
    flex-direction: column; gap: 10px; align-items: flex-start;
  }

  .cat-hero {
    grid-template-columns: 1fr; gap: 20px;
    padding: 40px 20px 24px;
  }
  .cat-hero h1 { font-size: 42px; }
  .cat-hero .r { align-items: flex-start; }

  .cat-layout { grid-template-columns: 1fr; }
  .cat-filters {
    padding: 24px 20px;
    border-right: none;
    border-bottom: 1px solid var(--hair);
  }
  .cat-results .toolbar {
    padding: 16px 20px; flex-wrap: wrap; gap: 10px;
  }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-grid .prod-card:nth-child(3n) { border-right: none; }
  .cat-pagination { padding: 24px 20px; flex-wrap: wrap; gap: 16px; }

  .pdp-bread { padding: 16px 20px; }
  .pdp { grid-template-columns: 1fr; }
  .pdp .gallery {
    padding: 20px; border-right: none; border-bottom: 1px solid var(--hair);
  }
  .pdp .info { padding: 36px 20px; padding-bottom: 92px; }
  .pdp .info h1 { font-size: 38px; }
  .pdp .info .perks { grid-template-columns: 1fr; }
  .pdp .info .cta-row {
    position: sticky;
    bottom: 0;
    background: var(--bg);
    /* margines ujemny = padding .pdp .info w mgle (28px 24px 32px), by pasek siegal krawedzi */
    margin: 6px -24px -32px;
    padding: 14px 24px;
    border-top: 1px solid var(--hair);
    z-index: 5;
  }

  .stone-deep {
    grid-template-columns: 1fr; gap: 32px;
    padding: 48px 20px;
  }
  .stone-deep h3 { font-size: 34px; }
  .stone-deep .orb { width: 120px; height: 120px; }

  .origin-mini {
    grid-template-columns: 1fr; gap: 24px;
    padding: 40px 20px;
  }
  .origin-mini h3 { font-size: 30px; }

  .also { padding: 40px 20px 0; }
  .also .hd {
    flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 20px;
  }
  .also .hd h3 { font-size: 28px; }

  .cart-hero {
    flex-direction: column; align-items: flex-start; gap: 20px;
    padding: 40px 20px 24px;
  }
  .cart-hero h1 { font-size: 42px; }

  .cart-layout { grid-template-columns: 1fr; min-height: auto; }
  .cart-items { border-right: none; border-bottom: 1px solid var(--hair); }
  .cart-items .hdr { padding: 14px 20px; }
  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 16px; padding: 20px;
  }
  .cart-item .ph { width: 80px; }
  .cart-item .info { grid-column: 2 / 3; }
  .cart-item .info .name { font-size: 20px; }
  .cart-item .qty { grid-column: 1 / 2; justify-self: start; }
  .cart-item .price {
    grid-column: 2 / 3; text-align: left; min-width: 0; font-size: 20px;
  }

  .cart-summary { padding: 28px 20px; position: sticky; bottom: 0; z-index: 5; box-shadow: 0 -8px 24px rgba(26,29,33,0.06); }
  .cart-summary .total .v { font-size: 26px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .topnav {
    grid-template-columns: auto 1fr auto;
    padding: 16px 28px;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .topnav .logo { text-align: left; }
  .topnav .links {
    display: none;
    position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    flex-direction: column; gap: 0;
    padding: 24px 28px;
    z-index: 200;
    border-top: 1px solid var(--hair);
    overflow-y: auto;
  }
  .topnav .links a {
    padding: 18px 0; font-size: 17px;
    border-bottom: 1px solid var(--hair);
  }
  body.nav-open .topnav .links { display: flex !important; }
  .nav-toggle { display: inline-flex; }

  .prod-grid, .prod-grid.g3 {
    grid-template-columns: 1fr 1fr;
  }
  .prod-card { padding: 28px 24px 24px; }
  .prod-card:nth-child(3n) { border-right: 1px solid var(--hair); }
  .prod-card:nth-child(2n) { border-right: none; }

  .map-section { padding: 60px 28px; }
  .map-section .hd {
    grid-template-columns: 1fr; gap: 20px;
  }
  .map-layout {
    grid-template-columns: 1fr; gap: 28px;
  }

  .foot {
    grid-template-columns: 1fr 1fr 1fr;
    padding: 48px 28px 32px;
  }
  .foot .mark-col { grid-column: 1 / -1; }

  .cat-hero {
    grid-template-columns: 1fr; gap: 16px;
    padding: 48px 28px 28px;
  }
  .cat-hero h1 { font-size: 52px; }
  .cat-hero .r { align-items: flex-start; }

  .cat-layout { grid-template-columns: 220px 1fr; }
  .cat-filters { padding: 28px 24px; }
  .cat-results .toolbar { padding: 18px 24px; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .cat-grid .prod-card:nth-child(3n) { border-right: 1px solid var(--hair); }
  .cat-grid .prod-card:nth-child(2n) { border-right: none; }
  .cat-pagination { padding: 28px 24px; }

  .pdp-bread { padding: 20px 28px; }
  .pdp { grid-template-columns: 1fr 1fr; }
  .pdp .gallery { padding: 24px; }
  .pdp .info { padding: 44px 36px; }
  .pdp .info h1 { font-size: 44px; }

  .stone-deep {
    grid-template-columns: 1fr 1.2fr; gap: 40px;
    padding: 60px 36px;
  }
  .stone-deep h3 { font-size: 42px; }

  .origin-mini {
    grid-template-columns: 1fr 1.2fr; gap: 28px;
    padding: 48px 28px;
  }

  .also { padding: 48px 28px 0; }

  .cart-hero { padding: 48px 28px 28px; }
  .cart-hero h1 { font-size: 52px; }

  .cart-layout { grid-template-columns: 1.3fr 1fr; }
  .cart-item {
    grid-template-columns: 100px 1fr auto auto;
    gap: 20px; padding: 24px;
  }
  .cart-item .ph { width: 100px; }
  .cart-summary { padding: 32px 28px; }
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
}

/* ============ SEARCH BAR ============ */

.prod-card.kat-hidden { display: none !important; }

/* ============ AUTH (login / rejestracja) ============ */
.auth-wrap {
  min-height: 60vh;
  display: grid; place-items: center;
  padding: 60px 20px;
}
/* Wariant z side panelem (login.html) — 2-kolumnowy layout na desktop */
.auth-wrap--split {
  grid-template-columns: 1fr 440px;
  gap: 80px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 40px;
  align-items: center;
  justify-items: stretch;
}
.auth-wrap--split .auth-side {
  display: flex; flex-direction: column; gap: 18px;
  padding-right: 32px;
  max-width: 480px;
  justify-self: end;
}
.auth-wrap--split .auth-side .eyebrow {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--smoke-d);
}
.auth-wrap--split .auth-side h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: 48px; line-height: 1.05; letter-spacing: -0.01em;
  margin: 0; color: var(--ink);
}
.auth-wrap--split .auth-side h2 em { color: var(--smoke-d); font-style: italic; }
.auth-wrap--split .auth-side p {
  font-size: 15px; color: var(--ink-soft); line-height: 1.65;
  margin: 6px 0 0; max-width: 420px;
}
.auth-wrap--split .auth-card { justify-self: start; }

@media (max-width: 900px) {
  .auth-wrap--split {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 20px;
    max-width: 480px;
  }
  .auth-wrap--split .auth-side { padding-right: 0; max-width: 100%; justify-self: stretch; }
  .auth-wrap--split .auth-side h2 { font-size: 32px; }
  .auth-wrap--split .auth-card { justify-self: stretch; }
}
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--bg); border: 1px solid var(--hair-s);
  padding: 40px 36px;
}
.auth-card .eyebrow { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--ink-soft); text-transform: uppercase; margin-bottom: 14px; }
.auth-card h1 { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1.05; margin: 0 0 12px; }
.auth-card h1 em { font-style: italic; color: var(--smoke-d); }
.auth-card > p { color: var(--ink-soft); margin: 0 0 28px; font-size: 14px; }
.auth-card > p a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.auth-card form { display: flex; flex-direction: column; gap: 14px; }
.auth-card label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: -6px;
}
.auth-card input {
  padding: 14px 16px; border: 1px solid var(--hair-s); background: var(--bg);
  font-family: var(--sans); font-size: 14px; color: var(--ink);
  transition: border-color .15s;
}
.auth-card input:focus { outline: none; border-color: var(--ink); }
.auth-card button[type="submit"] {
  margin-top: 10px; padding: 14px 22px;
  background: var(--ink); color: var(--bg); border: none;
  font-family: var(--sans); font-size: 13px; font-weight: 400; letter-spacing: 0.02em;
  cursor: pointer; transition: opacity .15s;
}
.auth-card button[type="submit"]:hover { opacity: .85; }
.auth-card button[type="submit"][disabled] { opacity: .5; cursor: wait; }
.auth-card .msg {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  padding: 10px 14px; margin-top: 4px;
}
.auth-card .msg.err { background: rgba(200, 60, 60, 0.08); color: var(--danger); border: 1px solid rgba(200, 60, 60, 0.2); }
.auth-card .msg.ok  { background: rgba(60, 140, 90, 0.08); color: var(--success); border: 1px solid rgba(60, 140, 90, 0.2); }
.auth-card .muted { font-size: 12px; color: var(--ink-faint); text-align: center; margin-top: 14px; }
.auth-card .muted a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 767px) {
  .auth-wrap { padding: 30px 16px; min-height: 50vh; }
  .auth-card { padding: 28px 22px; }
  .auth-card h1 { font-size: 34px; }
}

/* Szukaj / Wyloguj — tekst na desktopie, ikona na mobile/tablet */
.zk-logout-icon { display: none; font-size: 18px; line-height: 1; }

/* ============ ROLE BADGE + USER EMAIL W TOPNAV ============ */
.topnav .icons .user-email {
  font-size: 15px; color: var(--ink-soft);
}
.topnav .icons .role-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg);
  vertical-align: 1px;
  font-weight: 400;
}
.role-badge.role-admin    { background: var(--success); }
.role-badge.role-pro      { background: var(--warning); }
.role-badge.role-customer { background: var(--smoke-d); }

@media (max-width: 1023px) {
  .topnav .icons .user-email {
    max-width: 140px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    display: inline-block; vertical-align: middle;
  }
}
@media (max-width: 1023px) {
  /* Tablet/mobile: Szukaj i Wyloguj jako ikony, bez tekstu */
.zk-logout-text { display: none; }
  .zk-logout-icon { display: inline-block; }
  /* Ukryj badge roli na wąskich ekranach — za dużo zajmuje */
  .topnav .icons .role-badge { display: none; }
}
@media (max-width: 767px) {
  .topnav .icons .user-email { display: none; }
  .topnav .icons .role-badge { margin-left: 0; }
  /* Zwiększ rozmiar klikalny ikon na telefonie */
  .topnav .icons a { padding: 4px 2px; }
  /* Ukryj tekst "Koszyk" (zachowaj licznik) — font-size na <a>, restore na .count */
  .topnav .icons .bag { font-size: 0; }
  .topnav .icons .bag .count { font-size: 11px; }
  /* Hamburger — wymuś widoczność */
  .nav-toggle { display: inline-flex !important; }
  .topnav .icons { gap: 10px; }
  /* Mniej paddingu na topnav i ikonach żeby wszystko się zmieściło */
  .topnav { padding: 12px 14px; gap: 10px; }
}

/* Bardzo wąskie ekrany (≤480px) — schowaj Szukaj i link Konto, zostaw Wyloguj */
@media (max-width: 480px) {
  .topnav .icons a[href="login.html"],
  .topnav .icons a[href="konto.html"],
  .topnav .icons a[href="admin/index.html"],
  .topnav .icons a[href="../admin/index.html"] {
    display: none !important;
  }
  .topnav .icons { gap: 12px; }
}

/* ============ KOSZYK — kroki checkout ============ */
.cart-step { display: none; }
.cart-step.active { display: block; }
/* Kroki będące jednocześnie .cart-layout muszą wrócić do grida,
   inaczej display:block z reguły wyżej składa kolumny w pion */
.cart-layout.cart-step.active { display: grid; }

.cart-items .empty {
  padding: 60px 32px;
  text-align: center;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cart-items .empty a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }

.cart-item .ph.placeholder { background: linear-gradient(135deg, #D6D9DD, #A8B4BE); }

/* Formularz dostawy / płatności */
.cart-form {
  display: flex; flex-direction: column; gap: 14px;
  padding: 32px;
}
.cart-form h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: 32px; margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.cart-form h2 em { color: var(--smoke-d); font-style: italic; }
.cart-form label {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: -6px;
}
.cart-form input[type="text"],
.cart-form input[type="tel"],
.cart-form select,
.cart-form textarea {
  padding: 14px 16px;
  border: 1px solid var(--hair-s);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  transition: border-color .15s;
  width: 100%;
}
.cart-form input:focus, .cart-form select:focus, .cart-form textarea:focus {
  outline: none; border-color: var(--ink);
}
.cart-form textarea { min-height: 80px; resize: vertical; line-height: 1.5; }
.cart-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cart-form .btn-row {
  display: flex; gap: 10px; margin-top: 18px; justify-content: space-between; align-items: center;
}
.cart-form .back-link {
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.08em; color: var(--smoke-d);
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer; background: transparent; border: none;
}
.cart-form .back-link:hover { color: var(--ink); }
.cart-form .next {
  padding: 14px 22px; background: var(--ink); color: var(--bg);
  border: none; font-family: var(--sans); font-size: 13px;
  letter-spacing: 0.04em; cursor: pointer;
  display: inline-flex; gap: 12px; align-items: center;
}
.cart-form .next:disabled { opacity: .55; cursor: wait; }
.cart-form .next:hover:not(:disabled) { opacity: .88; }

/* Radio metody płatności */
.pay-methods { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.pay-methods label {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--hair-s);
  background: var(--bg); cursor: pointer;
  font-family: var(--sans); font-size: 13.5px;
  color: var(--ink); text-transform: none;
  letter-spacing: 0; margin: 0;
}
.pay-methods label:has(input:checked) { border-color: var(--ink); }
.pay-methods input[type="radio"] { accent-color: var(--ink); margin: 0; }
.pay-methods .hint {
  margin-left: auto; font-family: var(--mono);
  font-size: 10.5px; color: var(--smoke-d);
  letter-spacing: 0.08em;
}

/* Podsumowanie pozycji w kroku 3 */
.summary-block {
  padding: 20px; border: 1px solid var(--hair-s);
  background: var(--paper); margin-top: 8px;
}
.summary-block h4 {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--smoke-d); margin: 0 0 10px;
}
.summary-block .li {
  display: flex; justify-content: space-between;
  padding: 8px 0; font-size: 13px; color: var(--ink-soft);
  border-bottom: 1px dashed var(--hair);
}
.summary-block .li:last-child { border-bottom: none; }
.summary-block .li .n { color: var(--ink); }
.summary-block .addr {
  font-size: 13px; line-height: 1.55; color: var(--ink); white-space: pre-wrap;
}

/* Komunikaty w koszyku */
.msg {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; padding: 10px 14px;
  margin: 0 32px 12px;
}
.msg.err {
  background: rgba(200, 60, 60, 0.08);
  color: var(--danger);
  border: 1px solid rgba(200, 60, 60, 0.2);
}
.msg.ok {
  background: rgba(60, 140, 90, 0.08);
  color: var(--success);
  border: 1px solid rgba(60, 140, 90, 0.2);
}
.msg.hidden { display: none; }

/* Ekran sukcesu */
.cart-success {
  padding: 80px 40px;
  text-align: center;
}
.cart-success .eyebrow {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--smoke-d); margin-bottom: 12px;
}
.cart-success h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: 48px; margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.cart-success h2 em { color: var(--smoke-d); font-style: italic; }
.cart-success p { color: var(--ink-soft); font-size: 14px; margin: 0 auto 24px; max-width: 460px; }
.cart-success .order-id {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.14em; color: var(--ink);
  padding: 10px 16px; display: inline-block;
  border: 1px solid var(--hair-m); margin-bottom: 28px;
}
.cart-success .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cart-success .ctas a {
  padding: 14px 22px;
  font-family: var(--sans); font-size: 13px;
  letter-spacing: 0.04em;
  border: 1px solid var(--ink);
  color: var(--ink); background: transparent;
}
.cart-success .ctas a.primary { background: var(--ink); color: var(--bg); }

@media (max-width: 767px) {
  .cart-form { padding: 22px 18px; }
  .cart-form h2 { font-size: 26px; }
  .cart-form .row-2 { grid-template-columns: 1fr; }
  .msg { margin: 0 18px 10px; }
  .cart-success { padding: 48px 20px; }
  .cart-success h2 { font-size: 32px; }
}

/* ============ KONTO — DASHBOARD UZYTKOWNIKA ============ */
.acct-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 28px 80px;
}

.acct-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid var(--hair);
  padding-right: 22px;
}

.acct-nav .user-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 14px;
  background: var(--paper);
  border: 1px solid var(--hair);
  margin-bottom: 18px;
}
.acct-nav .user-card .uc-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
}
.acct-nav .user-card .uc-email {
  font-size: 12.5px;
  color: var(--ink-soft);
  word-break: break-all;
}
.acct-nav .user-card .uc-badge {
  margin-top: 4px;
}
.acct-nav .user-card .uc-logout {
  margin-top: 8px;
  padding: 9px 12px;
  background: transparent;
  border: 1px solid var(--hair-m);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.acct-nav .user-card .uc-logout:hover {
  background: var(--ink);
  color: var(--bg);
}

.acct-nav button.acct-tab {
  display: block;
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: none;
  border-left: 2px solid transparent;
  text-align: left;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.acct-nav button.acct-tab:hover {
  color: var(--ink);
  background: var(--paper);
}
.acct-nav button.acct-tab.active {
  color: var(--ink);
  font-weight: 400;
  border-left-color: var(--ink);
  background: var(--paper);
}

.acct-panel {
  min-width: 0;
}
.acct-section {
  display: none;
}
.acct-section.active {
  display: block;
}
.acct-section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 36px;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.acct-section h2 em { color: var(--smoke-d); font-style: italic; }
.acct-section .sub {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--smoke-d);
  margin-bottom: 24px;
}

/* Formularz konta */
.acct-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 560px;
  background: var(--paper);
  padding: 28px;
  border: 1px solid var(--hair);
  margin-bottom: 22px;
}
.acct-form h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 6px;
  color: var(--ink);
}
.acct-form label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: -6px;
}
.acct-form input[type="text"],
.acct-form input[type="email"],
.acct-form input[type="password"],
.acct-form input[type="tel"] {
  padding: 14px 16px;
  border: 1px solid var(--hair-s);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  transition: border-color .15s;
  width: 100%;
}
.acct-form input:focus { outline: none; border-color: var(--ink); }
.acct-form input[disabled] { opacity: .65; cursor: not-allowed; background: var(--mist); }
.acct-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.acct-form .inline-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: var(--bg); border: 1px solid var(--hair-s);
  font-size: 13px;
}
.acct-form .check {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 13px; color: var(--ink-soft);
  text-transform: none; letter-spacing: 0; margin: 0;
}
.acct-form .check input { accent-color: var(--ink); }
.acct-form button[type="submit"],
.acct-form .btn-save {
  margin-top: 8px;
  padding: 14px 22px;
  background: var(--ink); color: var(--bg);
  border: none;
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.04em;
  cursor: pointer; transition: opacity .15s;
  align-self: flex-start;
}
.acct-form button[type="submit"]:hover,
.acct-form .btn-save:hover { opacity: .88; }
.acct-form button[type="submit"][disabled] { opacity: .5; cursor: wait; }

/* Tabela zamowien */
.orders-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  border: 1px solid var(--hair);
}
.orders-table th {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--smoke-d);
  font-weight: 400;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hair);
  background: var(--paper);
}
.orders-table td {
  padding: 14px;
  border-bottom: 1px solid var(--hair);
  font-size: 13.5px;
  color: var(--ink);
  vertical-align: middle;
}
.order-row { cursor: pointer; transition: background .15s; }
.order-row:hover { background: var(--paper); }
.order-row.expanded { background: var(--paper); }
.order-row .nr { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-soft); }
.order-row .exp-toggle {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--smoke-d);
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.order-row .exp-toggle:hover { color: var(--ink); }

.order-status-badge {
  display: inline-block;
  padding: 3px 9px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg);
  font-weight: 400;
}
.order-status-badge.pending   { background: var(--smoke-d); }
.order-status-badge.paid      { background: var(--info); }
.order-status-badge.shipped   { background: var(--accent); }
.order-status-badge.delivered { background: var(--success); }
.order-status-badge.cancelled { background: var(--danger); }

.order-details {
  background: var(--paper);
}
.order-details td { padding: 20px 24px; }
.order-details .od-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
.order-details .od-block h4 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--smoke-d);
  margin: 0 0 10px;
  font-weight: 400;
}
.order-details .od-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--hair);
  font-size: 13px;
}
.order-details .od-item:last-child { border-bottom: none; }
.order-details .od-item .thumb {
  width: 56px; height: 70px;
  background: linear-gradient(135deg, #D6D9DD, #A8B4BE);
  background-size: cover; background-position: center;
}
.order-details .od-item .nm { color: var(--ink); font-size: 13px; line-height: 1.3; }
.order-details .od-item .qty { font-family: var(--mono); font-size: 11px; color: var(--smoke-d); margin-top: 3px; }
.order-details .od-item .pr { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink); }
.order-details .od-addr {
  white-space: pre-wrap;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.55;
}
.order-details .od-notes {
  margin-top: 10px; padding: 10px 12px;
  background: var(--bg); border: 1px dashed var(--hair-s);
  font-size: 12.5px; color: var(--ink-soft); white-space: pre-wrap;
}
.order-details .od-total {
  display: flex; justify-content: space-between;
  padding-top: 12px; margin-top: 10px;
  border-top: 1px solid var(--hair);
  font-size: 14px;
}
.order-details .od-total .v {
  font-family: var(--serif); font-style: italic; font-size: 22px;
}

/* Adresy */
.addresses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.address-box {
  position: relative;
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.address-box.is-default { border-color: var(--ink); }
.address-box .ab-default-badge {
  position: absolute; top: 14px; right: 14px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--bg); background: var(--ink);
  padding: 3px 8px;
}
.address-box .ab-name {
  font-family: var(--serif); font-size: 20px; font-weight: 400; color: var(--ink);
  margin-bottom: 4px; padding-right: 88px; line-height: 1.2;
}
.address-box .ab-line {
  font-size: 13px; color: var(--ink-soft); line-height: 1.45;
}
.address-box .ab-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.address-box .ab-actions button {
  padding: 8px 10px;
  background: transparent;
  border: 1px solid var(--hair-m);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.address-box .ab-actions button:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.address-box .ab-actions button.danger:hover { background: var(--danger); border-color: var(--danger); }
.address-box .ab-actions button.full { grid-column: 1 / -1; }

.btn-add-address {
  padding: 12px 18px;
  background: var(--ink); color: var(--bg);
  border: none;
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.04em;
  cursor: pointer;
  margin-bottom: 22px;
}
.btn-add-address:hover { opacity: .88; }

/* Modal adresu */
.acct-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(26, 29, 33, 0.55);
  z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.acct-modal-backdrop.open { display: flex; }
.acct-modal {
  background: var(--bg);
  border: 1px solid var(--hair);
  width: 100%;
  max-width: 520px;
  padding: 32px;
  max-height: 90vh;
  overflow-y: auto;
}
.acct-modal h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 28px; margin: 0 0 18px;
}
.acct-modal .btn-row {
  display: flex; gap: 10px; margin-top: 12px; justify-content: flex-end;
}
.acct-modal .btn-cancel {
  background: transparent; border: 1px solid var(--hair-m);
  padding: 11px 18px; color: var(--ink-soft);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer;
}
.acct-modal .btn-cancel:hover { color: var(--ink); border-color: var(--ink); }

/* Ulubione — siatka produktow */
.fav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0;
  border-top: 1px solid var(--hair);
  border-left: 1px solid var(--hair);
}
.fav-grid .prod-card {
  position: relative;
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 28px;
}

.empty-state.is-error { color: var(--danger); }
.empty-state {
  padding: 60px 20px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--smoke-d);
  background: var(--paper);
  border: 1px dashed var(--hair);
}
.empty-state a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Strona ulubione — wrapper z lista kart */
.fav-page { padding: 40px 40px 80px; }
.fav-page .fav-grid { margin-top: 0; }
@media (max-width: 900px) {
  .fav-page { padding: 24px 18px 60px; }
}

/* Podnaglowek w cart-hero (na stronie ulubione) */
.cart-hero .sub {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Karta produktu (PDP) — przycisk serca */
.pdp .btn.ghost.fav-toggle {
  transition: background .15s, color .15s, border-color .15s;
}
.pdp .btn.ghost.fav-toggle.on {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* Karta produktu — serce klikalne */
.prod-card .corner { pointer-events: auto; }
.prod-card .fav {
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.prod-card .fav:hover { transform: scale(1.12); border-color: var(--ink); color: var(--ink); }
.prod-card .fav.on:hover { color: #fff; }

/* Mobile: konto jako tabs na gorze */
@media (max-width: 900px) {
  .acct-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 18px 60px;
  }
  .acct-nav {
    border-right: none;
    border-bottom: 1px solid var(--hair);
    padding-right: 0;
    padding-bottom: 14px;
  }
  .acct-nav .user-card { margin-bottom: 10px; }
  .acct-nav .tabs-row {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }
  .acct-nav .tabs-row::-webkit-scrollbar { display: none; }
  .acct-nav button.acct-tab {
    flex: 0 0 auto;
    border-left: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
  }
  .acct-nav button.acct-tab.active {
    border-left: none;
    border-bottom-color: var(--ink);
  }
  .orders-table thead { display: none; }
  .orders-table, .orders-table tbody, .orders-table tr, .orders-table td { display: block; width: 100%; }
  .order-row td { border-bottom: none; padding: 4px 14px; }
  .order-row td:first-child { padding-top: 14px; }
  .order-row td:last-child { padding-bottom: 14px; border-bottom: 1px solid var(--hair); }
  .order-row td::before {
    content: attr(data-label);
    display: inline-block;
    width: 100px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--smoke-d);
  }
  .order-details .od-grid { grid-template-columns: 1fr; }
  .acct-section h2 { font-size: 28px; }
  .acct-form { padding: 22px; }
  .acct-form .row-2 { grid-template-columns: 1fr; }
}


/* Newsletter inline form — wrap msg w nowy wiersz */

/* ============ BRAK W MAGAZYNIE ============ */
.prod-card.is-out-of-stock .ph { opacity: 0.55; filter: grayscale(0.3); }
.prod-card.is-out-of-stock .name, .prod-card.is-out-of-stock .price { color: var(--ink-faint); }
.prod-card .out-of-stock-tag {
  background: var(--smoke-d); color: var(--bg);
}
.prod-card .add.out-of-stock,
.btn.out-of-stock, button.out-of-stock {
  background: var(--mist); color: var(--smoke-d);
  border: 1px solid var(--hair-s); cursor: not-allowed;
  opacity: 0.75;
}
.prod-card .add.out-of-stock:hover,
.btn.out-of-stock:hover {
  background: var(--mist); color: var(--smoke-d);
}

/* ============ STOCK INFO ============ */
.stock-info {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--smoke-d);
}
.stock-info.stock-out   { color: var(--danger); }
.stock-info.stock-one   { color: var(--warning); font-weight: 400; }
.stock-info.stock-low   { color: var(--warning); }
#pdpStock { display: inline-block; margin: 4px 0 14px; padding: 6px 14px; background: var(--paper); border-radius: 999px; font-size: 12.5px; }
.prod-card .stock-row { padding: 0 0 10px; border-top: 1px dashed var(--hair); margin-top: 10px; padding-top: 10px; }

/* ============ LEGAL PAGES ============ */
.legal-wrap { max-width: 820px; margin: 0 auto; padding: 28px 28px; }
.legal-header { margin-bottom: 24px; border-bottom: 1px solid var(--hair); padding-bottom: 18px; }
.legal-header .eyebrow { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--ink-soft); text-transform: uppercase; margin-bottom: 14px; }
.legal-header h1 { font-family: var(--serif); font-weight: 400; font-size: 56px; line-height: 1.05; margin: 0 0 12px; }
.legal-header h1 em { font-style: italic; color: var(--smoke-d); }
.legal-header p { color: var(--ink-soft); font-size: 16px; margin: 0; }
.legal-body section { margin-bottom: 40px; }
.legal-body h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0 0 16px; color: var(--ink); }
.legal-body p { margin: 0 0 14px; line-height: 1.65; }
.legal-body ol, .legal-body ul { padding-left: 22px; margin: 0 0 14px; line-height: 1.7; }
.legal-body ol li, .legal-body ul li { margin-bottom: 8px; }
.legal-body strong { font-weight: 400; color: var(--ink); background: rgba(232, 213, 192, 0.18); padding: 1px 4px; }
.legal-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-footer-note { padding-top: 28px; border-top: 1px solid var(--hair); color: var(--ink-soft); font-size: 14px; }
@media (max-width: 767px) {
  .legal-wrap { padding: 36px 18px; }
  .legal-header h1 { font-size: 38px; }
  .legal-body h2 { font-size: 22px; }
}

/* ============ WYSZUKIWARKA (modal) ============ */
body.zk-search-open { overflow: hidden; }
.zk-search-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(26, 29, 33, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 80px 20px 40px;
  animation: zk-search-fade .15s ease-out;
}
@keyframes zk-search-fade { from { opacity: 0; } to { opacity: 1; } }
.zk-search-panel {
  width: 100%; max-width: 640px;
  background: var(--bg);
  border: 1px solid rgba(26, 29, 33, 0.08);
  display: flex; flex-direction: column;
  max-height: calc(100vh - 120px);
}
.zk-search-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--hair);
}
.zk-search-bar-icon {
  color: var(--ink-soft); flex-shrink: 0; display: block;
}
.zk-search-input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: var(--sans); font-size: 17px; color: var(--ink);
  padding: 4px 0;
}
.zk-search-input::placeholder { color: var(--ink-faint); }
.zk-search-close {
  border: none; background: transparent; cursor: pointer;
  font-size: 24px; color: var(--ink-soft); padding: 4px 8px;
  line-height: 1; transition: color .2s;
}
.zk-search-close:hover { color: var(--ink); }
.zk-search-results {
  overflow-y: auto;
  flex: 1;
}
.zk-search-hint {
  padding: 28px 20px; text-align: center;
  font-size: 14px; color: var(--ink-faint);
}
.zk-search-error { color: var(--danger); }
.zk-search-section {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  color: var(--smoke-d); text-transform: uppercase;
  padding: 14px 20px 8px; border-top: 1px solid rgba(26, 29, 33, 0.04);
}
.zk-search-section:first-child { border-top: none; }
.zk-search-item {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 20px;
  text-decoration: none; color: var(--ink);
  transition: background .15s;
}
.zk-search-item:hover { background: rgba(168, 180, 190, 0.08); }
.zk-search-thumb {
  width: 48px; height: 48px; flex-shrink: 0;
  background: linear-gradient(135deg, #D6D9DD, #A8B4BE);
  overflow: hidden; position: relative;
}
.zk-search-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.zk-search-meta { flex: 1; min-width: 0; }
.zk-search-name {
  font-family: var(--serif); font-size: 17px; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.zk-search-sub {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  color: var(--ink-soft); text-transform: uppercase;
  margin-top: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.zk-search-price {
  font-family: var(--serif); font-style: italic; font-size: 17px;
  color: var(--ink); flex-shrink: 0;
}

@media (max-width: 600px) {
  .zk-search-overlay { padding: 60px 12px 20px; }
  .zk-search-bar { padding: 14px 16px; }
  .zk-search-input { font-size: 16px; }
  .zk-search-item { padding: 10px 16px; }
  .zk-search-thumb { width: 40px; height: 40px; }
  .zk-search-name { font-size: 15px; }
}

/* ============ INSTAGRAM / KLIENTKI SECTION ============ */
.ig-section {
  padding: 80px 40px 60px;
  border-top: 1px solid var(--hair);
}
.ig-section .hd {
  display: grid; grid-template-columns: 1fr auto;
  align-items: end; gap: 30px; margin-bottom: 40px;
}
.ig-section .hd .lbl {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.14em; color: var(--ink-soft); text-transform: uppercase;
  margin-bottom: 8px;
}
.ig-section h2 {
  font-family: var(--serif); font-weight: 400; font-size: 56px;
  line-height: 1.05; margin: 0; letter-spacing: 0.005em;
}
.ig-section h2 em {
  font-style: italic; color: var(--smoke-d);
}
.ig-tile {
  display: block; aspect-ratio: 1/1;
  background-size: cover !important;
  background-position: center !important;
  position: relative; overflow: hidden;
  transition: opacity .25s, transform .35s;
}
.ig-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(26,29,33,0.18));
  opacity: 0; transition: opacity .25s;
}
.ig-tile:hover { opacity: 0.92; transform: scale(1.005); }
.ig-tile:hover::after { opacity: 1; }
.ig-tile .cap {
  position: absolute; bottom: 12px; left: 12px;
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.14em; color: var(--smoke-d);
  text-transform: uppercase;
  padding: 3px 8px;
  background: rgba(246,247,248,0.72);
  backdrop-filter: blur(4px);
  z-index: 2;
}

@media (max-width: 767px) {
  .ig-section { padding: 60px 20px 40px; }
  .ig-section .hd { grid-template-columns: 1fr; }
  .ig-section h2 { font-size: 38px; }
}

/* ============ OPINIE KLIENTEK SECTION ============ */

/* ============ FAQ SECTION ============ */

/* ============ FOCUS-VISIBLE (a11y) ============ */
/* Globalny outline dla nawigacji klawiatura — niewidoczny przy klikach myszka */
:focus { outline: none; }
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
/* Inputy maja juz border-color: var(--ink) przy focus — zostaw outline subtelniejszy */
.auth-card input:focus-visible,
.cart-form input:focus-visible,
.cart-form select:focus-visible,
.cart-form textarea:focus-visible,
.acct-form input:focus-visible {
  outline: 2px solid var(--smoke-d);
  outline-offset: 2px;
}
/* Ciemne tlo (np. CTA czarne) — outline na bg, nie na ink */
.cta:focus-visible,
.checkout:focus-visible,
.btn-add-address:focus-visible,
.auth-card button[type="submit"]:focus-visible,
.acct-form button[type="submit"]:focus-visible,
.cart-form .next:focus-visible,
.pdp .info .btn:not(.ghost):focus-visible,
.contact-submit:focus-visible {
  outline: 2px solid var(--bg);
  outline-offset: -5px;
  box-shadow: 0 0 0 4px var(--ink);
}

/* ============ ACTIVE / DISABLED — feedback kliknięcia ============ */
.cta:active,
.checkout:active,
.btn-add-address:active,
.contact-submit:active,
.cart-form .next:active,
.pdp .info .btn:active,
.prod-card .add:active,
.auth-card button[type="submit"]:active,
.acct-form button[type="submit"]:active {
  transform: scale(0.985);
  opacity: .8;
}
.cart-summary .checkout:disabled { opacity: .5; cursor: not-allowed; }

/* Newsletter — sygnalizacja błędnego adresu po rozpoczęciu wpisywania */

/* ============ STRONA 404 ============ */
.err-404 { text-align: center; padding: 60px 0; }
.err-404 .num { font-family: var(--serif); font-size: 96px; line-height: 1; color: var(--ink-faint); margin: 0; }
.err-404 .hint { margin-top: 32px; }
.err-404 .links { margin-top: 40px; display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }

/* Dwukolumnowy grid pól formularza (modale admina itd.) */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Komunikat ładowania w gridach produktów */
.loading-note { padding: 40px; color: var(--ink-faint); grid-column: 1 / -1; }

/* ============ KONTAKT — FORMULARZ ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 56px;
  align-items: flex-start;
}
.contact-form {
  display: flex; flex-direction: column; gap: 12px;
  border: 1px solid var(--hair);
  background: var(--bg);
  padding: 32px;
}
.contact-form-title {
  font-family: var(--serif); font-weight: 400;
  font-size: 28px; line-height: 1.1; letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.contact-form-title em { color: var(--smoke-d); font-style: italic; }
.contact-form label {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: -6px;
}
.contact-form input,
.contact-form textarea {
  padding: 14px 16px;
  border: 1px solid var(--hair-s);
  background: var(--bg);
  font-family: var(--sans); font-size: 14px;
  color: var(--ink); width: 100%;
  transition: border-color .15s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--ink);
}
.contact-form textarea {
  min-height: 140px; resize: vertical; line-height: 1.55;
}
.contact-form-msg {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; padding: 0;
  min-height: 0;
}
.contact-form-msg.is-err {
  padding: 10px 14px; margin-top: 4px;
  background: rgba(200, 60, 60, 0.08); color: var(--danger);
  border: 1px solid rgba(200, 60, 60, 0.2);
}
.contact-form-msg.is-ok {
  padding: 10px 14px; margin-top: 4px;
  background: rgba(60, 140, 90, 0.08); color: var(--success);
  border: 1px solid rgba(60, 140, 90, 0.2);
  font-family: var(--sans); font-size: 13px; letter-spacing: 0;
  line-height: 1.55;
}
.contact-form-msg.is-ok a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.contact-form-msg.is-err a { color: var(--danger); text-decoration: underline; text-underline-offset: 3px; }
.contact-form-msg.is-loading {
  padding: 10px 14px; margin-top: 4px;
  color: var(--ink-soft);
}
.contact-form-msg .u { font-family: var(--sans); font-size: 13px; letter-spacing: 0; color: var(--ink-soft); }

.contact-form-actions {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  margin-top: 10px;
}
.contact-submit {
  padding: 14px 22px;
  background: var(--ink); color: var(--bg);
  border: none; cursor: pointer;
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 14px;
  transition: opacity .15s;
}
.contact-submit:hover:not(:disabled) { opacity: .88; }
.contact-submit:disabled { opacity: .55; cursor: wait; }
.contact-submit-arrow { opacity: .7; }

.contact-mailto {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--smoke-d);
}
.contact-mailto .u {
  font-family: var(--sans); font-size: 12.5px; letter-spacing: 0;
  text-transform: none; color: var(--ink);
  border-bottom: 1px solid var(--hair-m); padding-bottom: 1px;
}
.contact-mailto:hover .u { border-bottom-color: var(--ink); }

.contact-aside {
  display: flex; flex-direction: column; gap: 28px;
  padding-top: 14px;
}
.contact-aside-block {
  border-bottom: 1px solid var(--hair);
  padding-bottom: 16px;
}
.contact-aside-block:last-child { border-bottom: none; }
.contact-aside-lbl {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--smoke-d); margin-bottom: 8px;
}
.contact-aside-val {
  font-family: var(--serif); font-size: 19px; font-weight: 400;
  color: var(--ink); line-height: 1.3;
}
.contact-aside-val em { color: var(--smoke-d); font-style: italic; margin: 0 6px; }
.contact-aside-link { display: inline-block; border-bottom: 1px solid var(--hair-m); padding-bottom: 1px; }
.contact-aside-link:hover { border-bottom-color: var(--ink); }
.contact-aside-social { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.contact-aside-social a {
  font-family: var(--sans); font-size: 14px; color: var(--ink-soft);
  border-bottom: 1px solid transparent; padding-bottom: 1px;
  transition: color .15s, border-bottom-color .15s;
}
.contact-aside-social a:hover { color: var(--ink); border-bottom-color: var(--hair-m); }

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .contact-form { padding: 24px 20px; }
  .contact-aside { padding-top: 0; }
}
@media (max-width: 767px) {
  .contact-form-title { font-size: 24px; }
  .contact-form-actions { gap: 12px; }
  .contact-submit { width: 100%; justify-content: space-between; }
}

/* ============ ADMIN-ONLY ELEMENTS ============ */
/* Elementy widoczne tylko dla admin/pro. Klasa zk-is-staff dodawana przez inline-editor.js
   po sprawdzeniu auth.profile.role */
.zk-placeholder-only { display: none; }
body.zk-is-staff .zk-placeholder-only {
  display: block;
  margin-top: 18px;
  font-style: italic;
  color: var(--ink-faint);
  font-size: 13px;
}

/* ============ KATALOG: inline style cleanup ============ */
.cat-hero .bread .crr { color: var(--ink); }
.cat-filters #filtersReset {
  font-family: var(--mono); color: var(--ink);
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}

/* ============ PDP: inline style cleanup ============ */
.stone-deep .care {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--hair);
}
.stone-deep .care p {
  font-size: 13.5px; color: var(--ink-soft);
  margin: 0; line-height: 1.6;
}

/* ============ STONES / LEKSYKON (kamienie.html) ============ */
.map-frame { position: relative; }
.map-frame .map-bg-img { width: 100%; height: 100%; display: block; object-fit: contain; user-select: none; }

/* Przycisk "+ Dodaj kamień" */
.zk-btn-add {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 28px; cursor: pointer;
  background: var(--ink); color: var(--bg);
  border: 1px solid var(--ink);
  display: inline-flex; align-items: center; gap: 12px;
  transition: background .15s, color .15s, transform .15s;
  line-height: 1;
}
.zk-btn-add:hover {
  background: transparent; color: var(--ink);
  transform: translateY(-1px);
}
.zk-btn-add .plus {
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--bg); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 400; line-height: 1;
  transition: background .15s, color .15s;
}
.zk-btn-add:hover .plus { background: var(--ink); color: var(--bg); }

.zk-stone-admin-actions { display: flex; }
.zk-btn {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 10px 18px; cursor: pointer; line-height: 1;
  border: 1px solid var(--hair-s); background: transparent; color: var(--ink-soft);
}
.zk-btn:hover { border-color: var(--ink); color: var(--ink); }
.zk-btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.zk-btn-primary:hover { opacity: .85; color: var(--bg); }

#stPinMap .pin {
  position: absolute; width: 16px; height: 16px; border-radius: 999px;
  background: var(--danger); border: 2px solid var(--bg); box-shadow: 0 0 0 2px rgba(26,29,33,0.1);
  transform: translate(-50%, -50%); pointer-events: none;
}

.zk-modal-backdrop {
  position: fixed; inset: 0; background: rgba(26,29,33,0.5);
  z-index: 10000; display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 20px; overflow-y: auto;
}
.zk-modal.zk-modal-wide {
  max-width: 720px; width: 100%; background: var(--bg);
  padding: 32px; box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}
.zk-modal h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 0 0 6px; }
.zk-modal h3 em { font-style: italic; color: var(--smoke-d); }
.zk-modal .mono { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); letter-spacing: 0.08em; margin: 0 0 18px; }
.zk-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

.zk-edit-msg { padding: 8px 12px; font-family: var(--mono); font-size: 11px; margin-top: 12px; }
.zk-edit-msg.ok { background: rgba(60,140,90,0.10); color: var(--success); border: 1px solid rgba(60,140,90,0.22); }
.zk-edit-msg.err { background: rgba(160,52,52,0.08); color: var(--danger); border: 1px solid rgba(160,52,52,0.22); }

/* ============ PASSWORD TOGGLE ============ */
.password-row {
  position: relative;
  display: flex;
}
.password-row input { flex: 1; padding-right: 48px !important; }
.password-toggle {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 44px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none;
  cursor: pointer;
  color: var(--ink-faint);
  font-family: var(--mono); font-size: 16px;
  transition: color .15s;
}
.password-toggle:hover { color: var(--ink); }
.password-toggle.is-on { color: var(--ink); }


/* ============ TOPNAV DROPDOWN ============ */
.topnav .dropdown { position: relative; }
.topnav .dropdown .trigger {
  font: inherit; color: var(--ink-soft);
  background: transparent; border: none;
  padding: 4px 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
  transition: color .2s;
}
.topnav .dropdown .trigger .caret { font-size: 10px; transition: transform .2s; }
.topnav .dropdown .trigger:hover { color: var(--ink); }
.topnav .dropdown .trigger.active { color: var(--ink); }
.topnav .dropdown.open .trigger .caret,
.topnav .dropdown:hover .trigger .caret { transform: rotate(180deg); }
.topnav .dropdown .menu {
  position: absolute; top: 100%; left: 0;
  margin-top: 14px;
  min-width: 200px;
  background: var(--bg);
  border: 1px solid var(--hair-s);
  padding: 8px 0;
  box-shadow: 0 10px 30px rgba(26,29,33,0.10);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility .15s;
  z-index: 50;
}
.topnav .dropdown:hover .menu,
.topnav .dropdown.open .menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
}
.topnav .dropdown .menu a {
  display: block;
  padding: 10px 22px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.topnav .dropdown .menu a:hover { background: var(--paper); color: var(--ink); }
.topnav .dropdown .menu a.active { color: var(--ink); }

/* Mobile: dropdown menu pokazane bezpośrednio (mobile menu i tak buduje plaską listę przez buildMobileMenu) */
@media (max-width: 1023px) {
  .topnav .dropdown .menu {
    position: static;
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: none;
    box-shadow: none; border: none;
    background: transparent;
    padding: 0;
    margin: 0;
  }
}

/* IG section conditional hide */
.ig-section.zk-empty-hidden { display: none; }

/* ============================================================
   PALETA „MGŁA" — redesign wg makiety 4 (morska mgła)
   Aktywna tylko na stronach z <body data-palette="mgla">.
   Strony z data-palette="porcelain" wyglądają jak dotychczas.
   ============================================================ */
/* Tokeny mgla przeniesione do :root (jedyna paleta). Atrybut data-palette="mgla"
   na <body> zostaje - gatuje ponizsze overridy komponentow. */
body[data-palette="mgla"] .announce { background: linear-gradient(90deg, var(--sea-d), var(--sea)); color: var(--foam); }
body[data-palette="mgla"] .announce span { color: rgba(250, 252, 251, 0.78); }
body[data-palette="mgla"] .announce strong { color: var(--foam); }
body[data-palette="mgla"] .topnav { background: rgba(238, 243, 242, 0.93); }
body[data-palette="mgla"] .map-frame { border-radius: 16px; background: var(--foam); }
body[data-palette="mgla"] .ph .cap { background: rgba(250, 252, 251, 0.78); }

/* ---------- Newsletter w stopce (wszystkie strony) ---------- */
.foot-newsletter { margin-top: 18px; max-width: 360px; }
.foot-newsletter .nl-lbl { display: block; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 10px; }
.foot-newsletter .nl-row { display: flex; gap: 8px; }
.foot-newsletter input {
  flex: 1; min-width: 0; padding: 11px 14px;
  border: 1px solid var(--hair-m); border-radius: 10px;
  background: var(--foam, #fff); font: inherit; font-size: 14px; color: var(--ink);
}
.foot-newsletter input:focus { outline: none; border-color: var(--sea, var(--smoke-d)); }
.foot-newsletter button {
  padding: 11px 18px; border: none; border-radius: 10px;
  background: var(--ink); color: var(--foam, var(--bg));
  font: inherit; font-size: 13.5px; white-space: nowrap; transition: background 0.2s;
}
.foot-newsletter button:hover { background: var(--sea-d, var(--smoke-d)); }
.foot-newsletter button:disabled { opacity: 0.6; cursor: default; }
.foot-newsletter .nl-msg { margin-top: 8px; font-size: 13px; }
.foot-newsletter .nl-msg.ok { color: var(--success); }
.foot-newsletter .nl-msg.err { color: var(--danger); }

/* ---------- HOME V2: hero z falą i akwarelowymi plamami ---------- */
.hero-v2 { position: relative; overflow: hidden; padding: 88px 40px 150px; text-align: center; }
.hero-v2 .blob { position: absolute; border-radius: 999px; filter: blur(70px); opacity: 0.5; pointer-events: none; }
.hero-v2 .b1 { width: 520px; height: 520px; background: var(--sage, var(--smoke)); left: -140px; top: -120px; }
.hero-v2 .b2 { width: 460px; height: 460px; background: var(--sea, var(--smoke-d)); right: -120px; top: 40px; opacity: 0.35; }
.hero-v2 .in { position: relative; max-width: 880px; margin: 0 auto; }
.hero-v2 .eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--smoke-d); }
.hero-v2 h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 6.6vw, 86px); line-height: 1.1; margin: 22px 0 24px; letter-spacing: -0.01em; }
.hero-v2 h1 em { font-style: italic; color: var(--sea-d, var(--smoke-d)); }
.hero-v2 p { font-size: 17px; line-height: 1.8; color: var(--ink-soft); max-width: 56ch; margin: 0 auto; }
.hero-v2 .ctas { display: flex; gap: 16px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.hero-v2 .cta { background: var(--ink); color: var(--foam, var(--bg)); padding: 15px 30px; border-radius: 12px; font-size: 14.5px; font-weight: 400; display: inline-flex; gap: 8px; align-items: center; transition: background 0.2s; }
.hero-v2 .cta:hover { background: var(--sea-d, var(--smoke-d)); }
.hero-v2 .cta.ghost { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.hero-v2 .cta.ghost:hover { background: var(--foam, var(--paper)); }
.hero-v2 .wave { position: absolute; bottom: -2px; left: 0; right: 0; pointer-events: none; }
.hero-v2 .wave svg { display: block; width: 100%; height: 90px; }

/* ---------- HOME V2: produkty wynurzające się z fali ---------- */
.float { background: var(--foam, var(--paper)); padding: 0 40px 70px; }
.float .prod-grid { max-width: 1280px; margin: -70px auto 0; position: relative; z-index: 2; gap: 26px; border-bottom: none; }
.float .prod-card,
.float .prod-card:nth-child(3n) {
  border: none; border-radius: 18px; overflow: hidden;
  background: var(--foam, var(--bg));
  box-shadow: 0 18px 50px -18px rgba(37, 51, 58, 0.25);
  transition: transform 0.3s, box-shadow 0.3s;
}
.float .prod-card:hover { transform: translateY(-4px); background: var(--foam, var(--bg)); box-shadow: 0 26px 60px -20px rgba(37, 51, 58, 0.32); }
.float .prod-card .ph { border-radius: 10px; }
.float .prod-card .add { border-radius: 999px; padding: 10px 18px; }
.float .more { text-align: center; margin-top: 40px; }
.float .more .all { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 1px solid var(--hair-m); padding-bottom: 2px; }

/* ---------- HOME V2: bay — o pracowni ---------- */
.bay { background: var(--foam, var(--paper)); border-bottom: 1px solid var(--hair); }
.bay .in { max-width: 1280px; margin: 0 auto; padding: 30px 40px 100px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.bay .imgs { position: relative; height: 480px; }
.bay .imgs .i1 { position: absolute; width: 72%; aspect-ratio: 4/4.6; border-radius: 16px; overflow: hidden; left: 0; top: 0; box-shadow: 0 22px 60px -20px rgba(37, 51, 58, 0.35); }
.bay .imgs .i2 { position: absolute; width: 46%; aspect-ratio: 1/1; border-radius: 16px; overflow: hidden; right: 0; bottom: 0; border: 6px solid var(--foam, var(--bg)); box-shadow: 0 22px 60px -20px rgba(37, 51, 58, 0.3); }
.bay .imgs .ph { width: 100%; height: 100%; background-size: cover !important; background-position: center !important; }
.bay .txt .eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--smoke-d); }
.bay h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 42px); line-height: 1.18; margin: 16px 0 20px; }
.bay h2 em { font-style: italic; color: var(--sea-d, var(--smoke-d)); }
.bay .txt p { font-size: 16px; line-height: 1.8; color: var(--ink-soft); max-width: 50ch; margin: 0; }
.bay .perks { margin-top: 30px; display: grid; gap: 12px; }
.bay .perk { display: flex; gap: 12px; align-items: baseline; font-size: 14.5px; color: var(--ink); }
.bay .perk b { color: var(--sea-d, var(--smoke-d)); font-weight: 600; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; }
.bay .link { display: inline-flex; gap: 8px; font-size: 12.5px; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; width: fit-content; margin-top: 26px; }

/* ---------- HOME V2: kategorie — pastelowe pigułki ---------- */
/* width:100% konieczne: body jest flex-kolumną, a margin:auto na flex-item
   wyłącza rozciąganie i sekcja kurczyłaby się do zawartości */
.cats-v2 { width: 100%; padding: 86px 40px; max-width: 1280px; margin: 0 auto; text-align: center; }
.cats-v2 .eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--smoke-d); }
.cats-v2 h2 { font-family: var(--serif); font-weight: 400; font-size: 38px; margin: 12px 0 0; }
.cats-v2 h2 em { font-style: italic; color: var(--sea-d, var(--smoke-d)); }
.cats-v2 .row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.cats-v2 .catp { position: relative; border-radius: 999px 999px 18px 18px; overflow: hidden; aspect-ratio: 3/3.9; display: block; }
.cats-v2 .catp .ph { position: absolute; inset: 0; background-size: cover !important; background-position: center !important; transition: transform 0.5s; }
.cats-v2 .catp:hover .ph { transform: scale(1.05); }
.cats-v2 .catp .lbl { position: absolute; left: 14px; right: 14px; bottom: 14px; background: rgba(250, 252, 251, 0.94); border-radius: 999px; padding: 13px 8px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--ink); z-index: 2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- PODSTRONY MGŁA: katalog ---------- */
body[data-palette="mgla"] .cat-hero {
  position: relative; overflow: hidden;
  padding: 64px 40px 48px;
  border-bottom: none;
}
body[data-palette="mgla"] .cat-hero::before {
  content: ""; position: absolute; width: 460px; height: 460px; border-radius: 999px;
  filter: blur(70px); opacity: 0.5; background: var(--sage);
  left: -140px; top: -160px; pointer-events: none;
}
body[data-palette="mgla"] .cat-hero::after {
  content: ""; position: absolute; width: 380px; height: 380px; border-radius: 999px;
  filter: blur(70px); opacity: 0.3; background: var(--sea);
  right: -120px; top: -80px; pointer-events: none;
}
body[data-palette="mgla"] .cat-hero > div { position: relative; z-index: 1; }
body[data-palette="mgla"] .cat-hero .r .c1 { color: var(--sea-d); }
.cat-pills { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.cat-pills a {
  padding: 9px 18px; border-radius: 999px; font-size: 13.5px; color: var(--ink-soft);
  background: var(--foam, var(--paper)); border: 1px solid var(--hair-s);
  transition: all 0.2s;
}
.cat-pills a:hover { color: var(--ink); border-color: var(--hair-m); }
.cat-pills a.on { background: var(--ink); color: var(--foam, var(--bg)); border-color: var(--ink); }

body[data-palette="mgla"] .cat-layout { border-bottom: none; gap: 0 28px; padding: 0 40px 56px; grid-template-columns: 250px 1fr; }
body[data-palette="mgla"] .cat-filters {
  background: var(--foam); border-right: none; border-radius: 18px;
  padding: 26px 24px 18px; align-self: start;
  box-shadow: 0 14px 40px -18px rgba(37, 51, 58, 0.18);
  position: sticky; top: 130px;
}
body[data-palette="mgla"] .cat-filters li { padding: 6px 12px; border-radius: 999px; transition: background 0.2s, color 0.2s; }
body[data-palette="mgla"] .cat-filters li:hover { background: var(--bg); }
body[data-palette="mgla"] .cat-filters li.sel {
  font-family: var(--sans); font-style: normal; font-size: 13px;
  background: var(--sea); color: var(--foam);
}
body[data-palette="mgla"] .cat-results .toolbar { border-bottom: none; padding: 20px 4px 4px; }
body[data-palette="mgla"] .cat-results .toolbar .sort .chip { background: var(--foam); }
body[data-palette="mgla"] .cat-results .toolbar .sort .chip.on { background: var(--ink); color: var(--foam); border-color: var(--ink); }
body[data-palette="mgla"] .cat-grid { gap: 24px; padding-top: 18px; border-bottom: none; }
body[data-palette="mgla"] .cat-grid .prod-card,
body[data-palette="mgla"] .cat-grid .prod-card:nth-child(3n) {
  border: none; border-radius: 18px; overflow: hidden;
  background: var(--foam); padding: 16px 16px 22px;
  box-shadow: 0 14px 40px -16px rgba(37, 51, 58, 0.2);
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
}
body[data-palette="mgla"] .cat-grid .prod-card:hover {
  transform: translateY(-4px); background: var(--foam);
  box-shadow: 0 22px 52px -18px rgba(37, 51, 58, 0.28);
}
body[data-palette="mgla"] .cat-grid .prod-card .ph { border-radius: 10px; }
body[data-palette="mgla"] .cat-grid .prod-card .add { border-radius: 999px; padding: 10px 18px; }
body[data-palette="mgla"] .cat-pagination .pg {
  border-radius: 999px; background: var(--foam); border: 1px solid var(--hair-s);
}
body[data-palette="mgla"] .cat-pagination .pg.on { background: var(--ink); color: var(--foam); border-color: var(--ink); }
@media (max-width: 1023px) {
  body[data-palette="mgla"] .cat-layout { grid-template-columns: 1fr; padding: 0 20px 48px; }
  body[data-palette="mgla"] .cat-filters { position: static; margin-bottom: 8px; }
}

/* ---------- PODSTRONY MGŁA: karta produktu ---------- */
body[data-palette="mgla"] .pdp-bread { border-bottom: none; padding: 24px 40px 10px; }
body[data-palette="mgla"] .pdp { border-bottom: none; gap: 32px; padding: 10px 40px 48px; align-items: start; }
body[data-palette="mgla"] .pdp .gallery { background: transparent; border-right: none; padding: 0; }
body[data-palette="mgla"] .pdp .gallery .main { border-radius: 18px; overflow: hidden; box-shadow: 0 18px 50px -18px rgba(37, 51, 58, 0.3); }
body[data-palette="mgla"] .pdp .gallery .thumb { border-radius: 10px; overflow: hidden; border-width: 2px; }
body[data-palette="mgla"] .pdp .gallery .thumb.on { border-color: var(--sea); }
body[data-palette="mgla"] .pdp .info {
  background: var(--foam); border-radius: 18px;
  box-shadow: 0 18px 50px -18px rgba(37, 51, 58, 0.2);
  padding: 40px 44px 44px;
  position: sticky; top: 130px;
}
body[data-palette="mgla"] .pdp .info .size { border-radius: 999px; }
body[data-palette="mgla"] .pdp .info .size.sel { background: var(--sea-d); color: var(--foam); border-color: var(--sea-d); }
body[data-palette="mgla"] .pdp .info .btn { border-radius: 12px; }
body[data-palette="mgla"] .origin-mini { border-bottom: none; }
body[data-palette="mgla"] .origin-mini .map-mini {
  border-radius: 16px; background: var(--foam); border-color: var(--hair);
  box-shadow: 0 14px 40px -18px rgba(37, 51, 58, 0.18);
}
body[data-palette="mgla"] .origin-mini .map-mini .pin { background: var(--sea-d); box-shadow: 0 0 0 1px var(--sea-d); border-color: var(--foam); }
body[data-palette="mgla"] .stone-deep {
  border-bottom: none; background: var(--foam);
  border-radius: 18px; margin: 0 40px 48px; padding: 64px 56px;
  box-shadow: 0 14px 40px -18px rgba(37, 51, 58, 0.16);
}
body[data-palette="mgla"] .also { border-bottom: none; }
body[data-palette="mgla"] .also .prod-grid { gap: 22px; padding-bottom: 56px; }
body[data-palette="mgla"] .fav-grid { gap: 22px; }
body[data-palette="mgla"] .also .prod-card,
body[data-palette="mgla"] .also .prod-grid.g4 .prod-card:nth-child(3n),
body[data-palette="mgla"] .also .prod-grid.g4 .prod-card:nth-child(4n),
body[data-palette="mgla"] .fav-grid .prod-card,
body[data-palette="mgla"] .fav-grid .prod-card:nth-child(3n) {
  border: none; border-radius: 18px; overflow: hidden;
  background: var(--foam); padding: 16px 16px 22px;
  box-shadow: 0 14px 40px -16px rgba(37, 51, 58, 0.2);
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
}
body[data-palette="mgla"] .also .prod-card:hover,
body[data-palette="mgla"] .fav-grid .prod-card:hover {
  transform: translateY(-4px); background: var(--foam);
  box-shadow: 0 22px 52px -18px rgba(37, 51, 58, 0.28);
}
body[data-palette="mgla"] .also .prod-card .ph,
body[data-palette="mgla"] .fav-grid .prod-card .ph { border-radius: 10px; }
body[data-palette="mgla"] .also .prod-card .add,
body[data-palette="mgla"] .fav-grid .prod-card .add { border-radius: 999px; padding: 10px 18px; }
@media (max-width: 1023px) {
  body[data-palette="mgla"] .pdp { padding: 10px 20px 40px; }
  body[data-palette="mgla"] .pdp .info { position: static; padding: 28px 24px 32px; }
  body[data-palette="mgla"] .stone-deep { margin: 0 20px 40px; padding: 40px 28px; }
}

/* ---------- PODSTRONY MGŁA: koszyk ---------- */
body[data-palette="mgla"] .cart-hero { position: relative; overflow: hidden; border-bottom: none; }
body[data-palette="mgla"] .cart-hero::before {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 999px;
  filter: blur(70px); opacity: 0.45; background: var(--sage);
  left: -130px; top: -150px; pointer-events: none;
}
body[data-palette="mgla"] .cart-hero > * { position: relative; z-index: 1; }
body[data-palette="mgla"] .cart-hero .steps .s {
  padding: 8px 16px; border-radius: 999px;
  background: var(--foam); border: 1px solid var(--hair-s); color: var(--ink-soft);
}
body[data-palette="mgla"] .cart-hero .steps .s.on { background: var(--sea-d); border-color: var(--sea-d); color: var(--foam); }
body[data-palette="mgla"] .cart-hero .steps .s.on .num { color: rgba(250, 252, 251, 0.8); }
body[data-palette="mgla"] .cart-layout { border-bottom: none; gap: 28px; padding: 8px 40px 56px; align-items: start; min-height: auto; }
body[data-palette="mgla"] .cart-items { border-right: none; }
body[data-palette="mgla"] .cart-items .hdr { border-bottom: none; padding: 0 8px 14px; }
body[data-palette="mgla"] .cart-item {
  background: var(--foam); border-radius: 16px; border: none;
  padding: 18px; margin-bottom: 16px;
  box-shadow: 0 12px 36px -16px rgba(37, 51, 58, 0.18);
}
body[data-palette="mgla"] .cart-item .ph { border-radius: 12px; overflow: hidden; }
body[data-palette="mgla"] .cart-item .qty { border: 1px solid var(--hair-s); border-radius: 999px; background: var(--bg); }
body[data-palette="mgla"] .cart-summary {
  background: var(--foam); border-radius: 18px;
  box-shadow: 0 18px 50px -18px rgba(37, 51, 58, 0.2);
  position: sticky; top: 130px;
}
body[data-palette="mgla"] .cart-summary .code { border: 1px solid var(--hair-s); border-radius: 999px; padding: 10px 16px; background: var(--bg); }
body[data-palette="mgla"] .cart-summary .checkout { border-radius: 12px; }
.ship-progress { padding: 4px 0 2px; }
.ship-progress .note { font-size: 12px; color: var(--smoke-d); margin-bottom: 8px; }
.ship-progress .track { height: 6px; border-radius: 999px; background: var(--mist); overflow: hidden; }
.ship-progress .bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--sea-d, var(--smoke-d)), var(--sea, var(--smoke))); border-radius: 999px; transition: width 0.4s; }
body[data-palette="mgla"] .cart-form input[type="text"],
body[data-palette="mgla"] .cart-form input[type="tel"],
body[data-palette="mgla"] .cart-form select,
body[data-palette="mgla"] .cart-form textarea { border-radius: 10px; background: var(--foam); }
body[data-palette="mgla"] .cart-form input:focus,
body[data-palette="mgla"] .cart-form select:focus,
body[data-palette="mgla"] .cart-form textarea:focus { border-color: var(--sea); }
body[data-palette="mgla"] .cart-form .next { border-radius: 12px; }
body[data-palette="mgla"] .pay-methods label { border-radius: 12px; background: var(--foam); }
body[data-palette="mgla"] .pay-methods label:has(input:checked) { border-color: var(--sea-d); box-shadow: 0 0 0 1px var(--sea-d); }
body[data-palette="mgla"] .summary-block { background: var(--foam); border-radius: 14px; padding: 18px 20px; border: none; }
@media (max-width: 1023px) {
  body[data-palette="mgla"] .cart-layout { grid-template-columns: 1fr; padding: 8px 20px 48px; }
}
@media (max-width: 767px) {
  body[data-palette="mgla"] .cart-summary { position: sticky; top: auto; bottom: 0; border-radius: 18px 18px 0 0; }
}

/* ---------- HOME V2: responsywność ---------- */
@media (max-width: 1023px) {
  .float .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .bay .in { grid-template-columns: 1fr; gap: 40px; }
  .bay .imgs { height: 420px; max-width: 560px; }
}
@media (max-width: 767px) {
  .hero-v2 { padding: 56px 20px 116px; }
  .hero-v2 p { font-size: 15px; }
  .hero-v2 .wave svg { height: 60px; }
  .float { padding: 0 20px 56px; }
  .float .prod-grid { grid-template-columns: 1fr; margin-top: -46px; }
  .bay .in { padding: 16px 20px 70px; }
  .bay .imgs { height: 340px; }
  .cats-v2 { padding: 64px 20px 72px; }
  .cats-v2 .row3 { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
}



/* ============ A11Y: ogranicz ruch (ustawienie systemowe) ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
