/* ============================================================
   MATERACE PREMIUM — motyw "męski loft": beton, graphite, złoto
   (panel admina ma własny motyw Sky-Shop — sekcja na dole pliku)
   ============================================================ */
:root {
  --sky: #0da0f2; --sky-dark: #0b6fb4; --sky-bg: #f0f2f5; --sky-text: #33383f;
  --sky-line: #e3e6ea; --sky-yellow: #ffd23f; --sky-green: #1d9d54; --sky-danger: #d32f2f;
  --bg: #16161a;            /* tło: głęboki grafit */
  --bg-2: #1b1b1f;          /* sekcje naprzemienne */
  --card: #232327;          /* karty */
  --card-2: #2a2a2f;        /* karty jaśniejsze / hover */
  --line: #3a3a40;          /* obrysy */
  --ink: #e8e6e1;           /* tekst: ciepła biel */
  --ink-strong: #f4f1ea;    /* nagłówki */
  --muted: #9a968e;         /* tekst wtórny: betonowa szarość */
  --gold: #c9a44c;          /* szczote złoto */
  --gold-soft: #e0c47a;
  --gold-deep: #a8863a;
  --ok: #7fc79c; --err: #e08a7a;
  --navy: var(--ink-strong);  /* kompatybilność: nagłówki */
  --radius: 10px;
  --shadow: 0 8px 30px rgba(0, 0, 0, .35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.7 "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink); background: var(--bg);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; color: var(--ink-strong); letter-spacing: .01em; }
h1 { font-size: 2.2rem; font-weight: 800; }
h2 { font-size: 1.35rem; margin-top: 2.2rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em; }
h2::after { content: ""; display: block; width: 46px; height: 2px;
  background: var(--gold); margin-top: 8px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.mt { margin-top: 2rem; } .mb { margin-bottom: 2rem; }
.gold-rule { height: 1px; margin: 34px 0;
  background: var(--gold); opacity:.5; }
.kicker { color: var(--gold); font-size: .78rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .22em; margin: 0 0 10px; }

/* --- top bar / header --- */
.topbar { background: color-mix(in srgb, var(--bg) 86%, #fff); color: var(--muted, #b9b5ad); font-size: .84rem;
  border-bottom: 1px solid #26262a; }
.topbar .wrap { display: flex; justify-content: space-between; padding: 7px 22px; }
header.site { background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40; }
.nav { display: flex; align-items: center; gap: 26px; padding: 15px 0; }
.logo { font-weight: 800; font-size: 1.22rem; letter-spacing: .04em;
  color: var(--ink); }
.logo em { color: var(--gold); font-style: normal; }
.nav-links { display: flex; gap: 22px; flex: 1; font-weight: 600; font-size: .95rem; }
.nav-links a { color: var(--ink); }
.nav-links a:hover { color: var(--gold); }
.nav-ico { display: flex; gap: 12px; align-items: center; }
.nav-ico a { padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px;
  font-size: .9rem; background: var(--card); color: var(--ink); }
.nav-ico a:hover { border-color: var(--gold); color: var(--gold); }
.badge { background: var(--gold); color: #16161a; border-radius: 999px;
  padding: 0 7px; font-size: .75rem; font-weight: 800; }
.searchbox { display: flex; gap: 6px; flex: 1; max-width: 340px; }
.searchbox input { font-size: .88rem; padding: 8px 14px; border-radius: 999px; }

/* --- przyciski / formularze --- */
.btn { display: inline-block; border: 0; cursor: pointer; font-weight: 800;
  border-radius: 8px; padding: 13px 26px; font-size: .95rem; letter-spacing: .03em;
  background: var(--gold);
  color: #fff; text-transform: uppercase; transition: .15s; }
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn.gold { background: var(--gold);
  color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn.small { padding: 7px 14px; font-size: .82rem; }
.btn.danger { background: #7a3a34; color: #ffd9d2; }
input, select, textarea { font: inherit; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: 8px; width: 100%; background: color-mix(in srgb, var(--bg) 72%, #fff); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 1px solid var(--gold); border-color: var(--gold); }
label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: 4px; }
.field { margin-bottom: 14px; }
.row { display: grid; gap: 14px; } .row.c2 { grid-template-columns: 1fr 1fr; }
.row.c3 { grid-template-columns: 1fr 1fr 1fr; }
.form-card { background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }

/* --- komunikaty --- */
.flash { border-radius: 8px; padding: 12px 16px; margin: 14px 0; font-weight: 600; }
.flash.ok { background: rgba(127, 199, 156, .12); color: var(--ok);
  border: 1px solid rgba(127, 199, 156, .35); }
.flash.error { background: rgba(224, 138, 122, .12); color: var(--err);
  border: 1px solid rgba(224, 138, 122, .35); }

/* --- hero (beton + złoto) --- */
.hero { position: relative; color: #fff; padding: 96px 0 110px;
  background: #26262b;
  border-bottom: 1px solid var(--line); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 3px; background: var(--gold); }
.hero .kicker { margin-bottom: 16px; }
.hero h1 { color: var(--ink-strong); font-size: 3rem; margin: 0 0 18px;
  text-transform: uppercase; letter-spacing: .02em; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p { color: #b9b5ad; font-size: 1.12rem; max-width: 660px; }
.hero .btn.gold { margin-top: 26px; font-size: 1.02rem; }
.hero.small { padding: 40px 0; } .hero.small h1 { font-size: 1.6rem; }

.usp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: -38px;
  position: relative; z-index: 5; }
.usp div { background: var(--card); border: 1px solid var(--line);
  border-top: 2px solid var(--gold); border-radius: var(--radius);
  padding: 18px 16px; box-shadow: var(--shadow); font-size: .92rem; }
.usp b { display: block; color: var(--gold); font-size: .78rem;
  text-transform: uppercase; letter-spacing: .14em; margin-bottom: 5px; }

/* --- siatki / karty produktów --- */
.grid { display: grid; gap: 20px; margin: 24px 0; }
.grid.products { grid-template-columns: repeat(4, 1fr); }
.grid.cats { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: .15s; }
.card:hover { border-color: var(--gold-deep); transform: translateY(-2px); }
.card .thumb { aspect-ratio: 4/3; background: #2c2c31; display: flex; align-items: center; justify-content: center;
  color: var(--muted); overflow: hidden; }
.card .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .brand-line { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); font-weight: 700; }
.price { font-size: 1.25rem; font-weight: 800; color: var(--gold); }
.price s { color: var(--muted); font-weight: 400; font-size: .88rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 800; padding: 3px 10px;
  border-radius: 4px; background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--gold);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); letter-spacing: .04em; }
.tag.med { background: rgba(90,160,220,.12); color: #9cc7e8;
  border-color: rgba(90,160,220,.35); }
.tag.sale { background: rgba(224,138,122,.12); color: var(--err);
  border-color: rgba(224,138,122,.4); }

/* --- półki cenowe (budżet / medium / premium) --- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 26px 0; }
.tier { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; position: relative; display: flex; flex-direction: column; }
.tier .tier-name { font-weight: 800; text-transform: uppercase; letter-spacing: .14em;
  font-size: .82rem; margin-bottom: 8px; }
.tier .tier-price { font-size: 1.5rem; font-weight: 800; color: var(--gold);
  margin: 4px 0 10px; }
.tier p { color: var(--muted); font-size: .92rem; margin: 0 0 14px; flex: 1; }
.tier .models { font-size: .82rem; color: var(--ink); margin-bottom: 16px; }
.tier-budget { border-top: 3px solid #8b8f96; }
.tier-budget .tier-name { color: #aab0b8; }
.tier-medium { border-top: 3px solid var(--gold); }
.tier-medium .tier-name { color: var(--gold); }
.tier-medium::after { content: "NAJCZĘŚCIEJ WYBIERANA"; position: absolute; top: -11px;
  right: 14px; background: var(--gold); color: #fff; font-size: .64rem;
  font-weight: 800; letter-spacing: .1em; padding: 3px 10px; border-radius: 4px; }
.tier-premium { border-top: 3px solid #e8e6e1;
  background: #232327; }
.tier-premium .tier-name { color: var(--ink-strong); }

/* --- 4 typy klientów (czerwony / żółty / zielony / niebieski) --- */
.personas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 26px 0; }
.persona { background: var(--card); border: 1px solid var(--line);
  border-left-width: 3px; border-radius: var(--radius); padding: 20px 18px;
  display: flex; flex-direction: column; gap: 10px; }
.persona h3 { font-size: 1rem; margin: 0; }
.persona p { color: var(--muted); font-size: .88rem; margin: 0; flex: 1; }
.persona .p-tag { font-size: .7rem; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; }
.persona-red { border-left-color: #d15a4a; } .persona-red .p-tag { color: #e08a7a; }
.persona-yellow { border-left-color: #e5b83a; } .persona-yellow .p-tag { color: #e5c96a; }
.persona-green { border-left-color: #4ba368; } .persona-green .p-tag { color: #7fc79c; }
.persona-blue { border-left-color: #4a8fd1; } .persona-blue .p-tag { color: #9cc7e8; }

/* --- karta produktu --- */
.pdp { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; margin-top: 26px; }
.pdp .gallery { background:
  #2c2c31; border: 1px solid var(--line); border-radius: var(--radius);
  min-height: 380px; display: flex; align-items: center; justify-content: center;
  color: var(--muted); overflow: hidden; }
.specs { width: 100%; border-collapse: collapse; margin: 14px 0; }
.specs th, .specs td { text-align: left; padding: 9px 12px;
  border-bottom: 1px solid var(--line); }
.specs th { width: 38%; color: var(--muted); font-weight: 600; }
.faq-item { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq-item b { color: var(--gold); }
.review { border-bottom: 1px solid var(--line); padding: 14px 0; }
.stars { color: var(--gold); letter-spacing: 2px; }

/* --- breadcrumbs --- */
.crumbs { font-size: .85rem; color: var(--muted); padding: 18px 0 0; }
.crumbs a:hover { color: var(--gold); }

/* --- tabele --- */
table.data { width: 100%; border-collapse: collapse; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.data th, table.data td { padding: 11px 14px; text-align: left;
  border-bottom: 1px solid var(--line); font-size: .93rem; }
table.data th { background: #202024; color: var(--gold); font-size: .8rem;
  text-transform: uppercase; letter-spacing: .05em; }
tr.clickable:hover td { background: var(--card-2); cursor: pointer; }
.status { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  display: inline-block; }
.status.nowe { background: rgba(90,160,220,.15); color: #9cc7e8; }
.status.oplacone { background: rgba(127,199,156,.15); color: #7fc79c; }
.status.w_realizacji { background: rgba(229,184,58,.15); color: #e5c96a; }
.status.wyslane, .status.dostarczone { background: rgba(75,163,104,.15); color: #7fc79c; }
.status.anulowane, .status.zwrot { background: rgba(224,138,122,.15); color: var(--err); }
.status.oczekuje { background: rgba(154,150,142,.15); color: var(--muted); }
.status.nieudane, .status.failed { background: rgba(224,138,122,.15); color: var(--err); }

/* --- facet chips / filtry --- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.chips a { background: var(--card); border: 1px solid var(--line); padding: 7px 15px;
  border-radius: 999px; font-size: .87rem; font-weight: 600; }
.chips a:hover { border-color: var(--gold); color: var(--gold); }
.catalog { display: grid; grid-template-columns: 250px 1fr; gap: 26px; margin-top: 20px; }
.filters { background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; height: fit-content; }

/* --- stopka --- */
footer.site { background: color-mix(in srgb, var(--bg) 92%, #fff); color: var(--muted, #8f8b83); margin-top: 70px;
  padding: 46px 0 30px; font-size: .9rem; border-top: 2px solid var(--gold-deep); }
footer.site h4 { color: var(--gold); margin: 0 0 12px; text-transform: uppercase;
  letter-spacing: .1em; font-size: .85rem; }
footer.site a:hover { color: var(--gold); }
.fcols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }

/* --- baner cookies --- */
.cookie-banner { position: fixed; bottom: 16px; left: 16px; right: 16px;
  background: var(--card); border: 1px solid var(--gold-deep); border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,.5); padding: 18px 20px; z-index: 90;
  display: none; gap: 14px; align-items: center; flex-wrap: wrap; }
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; flex: 1; min-width: 260px; font-size: .88rem; }

/* --- admin: zostaje jasny motyw Sky-Shop --- */
body:has(.sky-nav) { background: var(--sky-bg); color: #33383f; font-size: 14px; }
body:has(.sky-nav) h1, body:has(.sky-nav) h2, body:has(.sky-nav) h3 {
  color: #16212f; }
body:has(.sky-nav) input, body:has(.sky-nav) select, body:has(.sky-nav) textarea {
  background: #fff; color: #33383f; border-color: var(--sky-line); }
body:has(.sky-nav) label { color: #33383f; }
body:has(.sky-nav) .muted { color: #667085; }
body:has(.sky-nav) .flash.ok { background: #e7f5ec; color: var(--sky-green); border: 0; }
body:has(.sky-nav) .flash.error { background: #fbe9e7; color: #b3261e; border: 0; }
body:has(.sky-nav) .btn.gold { background: var(--sky-yellow); color: #4a3405; }
body:has(.sky-nav) .btn { background: var(--sky); color: #fff; }
body:has(.sky-nav) .btn.ghost { background: #fff; color: var(--sky-text);
  border: 1px solid var(--sky-line); }
body:has(.sky-nav) .btn.danger { background: var(--sky-danger); color: #fff; }
body:has(.sky-nav) .card, body:has(.sky-nav) .form-card { background: #fff;
  border-color: var(--sky-line); box-shadow: 0 1px 3px rgba(16,24,40,.05); }
body:has(.sky-nav) .price { color: #16212f; }
body:has(.sky-nav) .crumbs { color: #667085; }
body:has(.sky-nav) table.data { background: #fff; }
body:has(.sky-nav) table.data th { background: #f7f8fa; color: #667085; }

/* --- panel admina (Sky-Shop) --- */
.sky-alert { background: #e35b5b; color: #fff; text-align: center;
  font-size: .82rem; padding: 5px 12px; }
.sky-alert a, .sky-alert b { color: #fff; }
.sky-nav { background: var(--sky); display: flex; justify-content: space-between;
  align-items: stretch; padding: 0 14px; position: sticky; top: 0; z-index: 60;
  box-shadow: 0 2px 8px rgba(13,90,140,.25); }
.sky-nav-left { display: flex; }
.sky-nav-right { display: flex; }
.sky-item { display: flex; align-items: center; gap: 7px; color: #fff;
  padding: 12px 16px; font-weight: 600; font-size: .92rem; cursor: pointer;
  white-space: nowrap; }
.sky-item svg { opacity: .9; }
.sky-drop { position: relative; }
.sky-drop > .sky-item { height: 100%; }
.sky-drop:hover > .sky-item, .sky-item:hover, .sky-drop.active > .sky-item {
  background: var(--sky-dark); }
.sky-drop.active > .sky-item { box-shadow: inset 0 -3px 0 rgba(255,255,255,.65); }
.chev { font-style: normal; font-size: .7rem; opacity: .8; }
.sky-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 210px;
  background: #fff; border-radius: 0 0 8px 8px; box-shadow: 0 8px 24px rgba(0,0,0,.16);
  padding: 6px 0; z-index: 70; }
.sky-drop:hover .sky-menu { display: block; }
.sky-menu a { display: block; padding: 9px 18px; color: #33383f;
  font-size: .88rem; font-weight: 500; }
.sky-menu a:hover { background: #eaf7ff; color: var(--sky-dark); }
.sky-body { max-width: 1280px; margin: 0 auto; padding: 18px 20px 40px; }
.sky-body h1 { font-size: 1.35rem; margin: 2px 0 14px; }
.sky-body h2 { font-size: 1.05rem; margin-top: 1.4rem; text-transform: none;
  letter-spacing: 0; }
.sky-body h2::after { display: none; }
.sky-card { background: #fff; border: 1px solid var(--sky-line); border-radius: 8px;
  padding: 16px 18px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(16,24,40,.05); }
.sky-form-card { background: #fff; border: 1px solid var(--sky-line);
  border-radius: 8px; padding: 20px 22px; margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(16,24,40,.05); }
.sky-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--sky-line); border-radius: 8px;
  padding: 10px 14px; margin-bottom: 14px; }
.sky-toolbar .title { font-weight: 700; color: var(--navy); font-size: 1rem;
  margin-right: 8px; }
.sky-tbtn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px;
  border-radius: 7px; border: 1px solid var(--sky-line); background: #fff;
  font-weight: 600; font-size: .86rem; color: var(--sky-text); }
.sky-tbtn:hover { border-color: var(--sky); color: var(--sky-dark); }
.sky-tbtn.primary { background: var(--sky); border-color: var(--sky); color: #fff; }
.sky-tbtn.primary:hover { background: var(--sky-dark); color: #fff; }
.sky-tbtn input { border: 0; padding: 0; width: 160px; font-weight: 500; }
body:has(.sky-nav) .btn { border-radius: 7px; font-size: .9rem; padding: 9px 18px;
  text-transform: none; letter-spacing: 0; }
body:has(.sky-nav) .btn.small { padding: 5px 11px; font-size: .8rem; }
body:has(.sky-nav) table.data { border: 1px solid var(--sky-line); font-size: .87rem;
  border-radius: 8px; }
body:has(.sky-nav) table.data th { font-size: .8rem; text-transform: uppercase;
  letter-spacing: .03em; }
body:has(.sky-nav) table.data td { padding: 9px 12px; }
body:has(.sky-nav) table.data th { padding: 9px 12px; }
tr.row-green td { background: #eefaf2; }
tr.row-red td { background: #fdf0f0; }
tr.row-yellow td { background: #fdf9ec; }
table.data img.thumb-sm { width: 44px; height: 44px; object-fit: cover;
  border-radius: 6px; border: 1px solid var(--sky-line); display: block; }
.act-ico { font-size: 1rem; text-decoration: none; padding: 3px 5px; border-radius: 5px; }
.act-ico:hover { background: #eaf7ff; }
.st-yes { color: var(--sky-green); font-weight: 700; }
.st-no { color: var(--sky-danger); font-weight: 700; }
.stock-zero { color: var(--sky-danger); font-weight: 700; }
.sky-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 14px 0; }
.sky-stat { background: #fff; border: 1px solid var(--sky-line); border-radius: 8px;
  padding: 14px 16px; }
.sky-stat b { display: block; font-size: 1.35rem; color: var(--sky-dark); }
.sky-stat span { font-size: .78rem; color: #667085; }
.sky-shortcuts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 6px 0 20px; }
.sky-shortcuts a { background: #fff; border: 1px solid var(--sky-line); border-radius: 8px;
  padding: 14px 10px; text-align: center; font-weight: 600; font-size: .85rem;
  color: var(--sky-text); }
.sky-shortcuts a:hover { border-color: var(--sky); color: var(--sky-dark); }
.sky-shortcuts a b { display: block; font-size: 1.3rem; margin-bottom: 4px; }
.tree-pick { border: 1px solid var(--sky-line); border-radius: 8px; padding: 10px;
  max-height: 380px; overflow: auto; background: #fff; }
.tree-pick details { margin-left: 0; }
.tree-pick summary, .tree-pick .leaf { display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 6px; cursor: pointer; list-style: none; }
.tree-pick summary::-webkit-details-marker { display: none; }
.tree-pick summary:hover, .tree-pick .leaf:hover { background: #eaf7ff; }
.tree-pick .twist { color: #98a2b3; font-size: .72rem; width: 10px; transition: .12s; }
.tree-pick details[open] > summary .twist { transform: rotate(90deg); }
.tree-pick .count { color: #98a2b3; font-size: .8rem; }
.tree-children { margin-left: 20px; border-left: 1px dashed var(--sky-line); padding-left: 8px; }
.sky-tabsbar { display: flex; gap: 4px; border-bottom: 2px solid var(--sky-line);
  margin: 4px 0 14px; flex-wrap: wrap; }
.sky-tab { padding: 9px 16px; font-weight: 600; font-size: .87rem; color: #667085;
  border-radius: 8px 8px 0 0; border: 1px solid transparent; border-bottom: 0; }
.sky-tab span { background: #eef0f3; border-radius: 999px; padding: 1px 8px;
  font-size: .78rem; margin-left: 4px; }
.sky-tab:hover { color: var(--sky-dark); }
.sky-tab.active { background: #fff; border-color: var(--sky-line); color: #16212f;
  box-shadow: 0 2px 0 #fff; }
.tab-panel { border: 0; padding: 0; }

/* --- kategorie manager (drzewko + zakładki) --- */
.catman { display: grid; grid-template-columns: 320px 1fr; gap: 20px; align-items: start; }
.catman-tree { background: #fff; border: 1px solid var(--sky-line); border-radius: 8px;
  padding: 14px; box-shadow: 0 1px 3px rgba(16,24,40,.05); }
.tree details { margin-left: 0; }
.tree summary { display: flex; align-items: center; gap: 6px; padding: 7px 8px;
  border-radius: 8px; cursor: pointer; list-style: none; font-weight: 600; }
.tree summary::-webkit-details-marker { display: none; }
.tree summary:hover { background: #faf8f2; }
.tree summary.selected { background: #fdf6dd; outline: 1px solid #eadfae; }
.tree summary .twist { color: var(--muted); font-size: .8rem; width: 12px; transition: .12s; }
.tree details[open] > summary .twist { transform: rotate(90deg); }
.tree .count { color: var(--muted); font-weight: 400; font-size: .85rem; }
.tree .hidden-tag { color: var(--muted); font-size: .8rem; }
.tree-children { margin-left: 18px; border-left: 1px dashed var(--sky-line); padding-left: 6px; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--sky-line); margin-bottom: 16px; }
.tab { background: none; border: none; padding: 10px 18px; font: inherit; font-weight: 700;
  color: #667085; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tab.active { color: var(--sky-dark); border-bottom-color: var(--sky-yellow); }

/* --- błędy / 404 --- */
@media (max-width: 900px) {
  .grid.products { grid-template-columns: 1fr 1fr; }
  .pdp, .catalog { grid-template-columns: 1fr; }
  .usp, .fcols, .sky-stats, .sky-shortcuts { grid-template-columns: 1fr 1fr; }
  .row.c2, .row.c3 { grid-template-columns: 1fr; }
  .tiers, .personas { grid-template-columns: 1fr; }
  .sky-nav { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .grid.products, .usp, .fcols, .sky-stats, .sky-shortcuts, .grid.cats { grid-template-columns: 1fr; }
}

/* ===== dosłowne klasy wersji PHP (parzystość z panelem Sky-Shop) ===== */
.stat-tiles{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}
.stat-tiles .tile{flex:1;min-width:150px;background:#fff;border:1px solid #e3e6ea;border-radius:10px;padding:16px;text-align:center}
.stat-tiles .tile b{display:block;font-size:26px;color:#1d2733}
.stat-tiles .tile.warn b{color:#c0392b}
.stat-tiles .tile span{font-size:.85rem;color:#69707a}
.shortcuts{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 26px}
.tabpane{display:none;background:#fff;border:1px solid #e3e6ea;border-radius:0 0 10px 10px;padding:18px}
.tabpane.on{display:block}
.tabs .tab.on{background:#0da0f2;color:#fff}
.tree-row{padding:4px 0;border-bottom:1px dashed #eef0f3}
.img-grid{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}
.img-cell{text-align:center}
.status-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:14px 0}
.status-tabs a{padding:7px 12px;background:#fff;border:1px solid #e3e6ea;border-radius:6px;text-decoration:none;color:#333;font-size:.9rem}
.status-tabs a.on{background:#0da0f2;color:#fff;border-color:#0da0f2}
.orders .st-row-oplacone,.orders .st-row-dostarczone{background:#f2fbf4}
.orders .st-row-anulowane{background:#fdf1f0}
.checkout{display:flex;gap:28px;flex-wrap:wrap}
.checkout .co-left{flex:2;min-width:300px}
.checkout .co-right{flex:1;min-width:260px;background:#fff;border:1px solid #e3e6ea;border-radius:10px;padding:18px}
.checkout label{display:block;margin:10px 0}
.checkout input[type=text],.checkout input[type=email],.checkout input:not([type]){width:100%;padding:9px;border:1px solid #ccd2d8;border-radius:6px}
.stack label{display:block;margin:10px 0}
.stack input,.stack select,.stack textarea{width:100%;padding:9px;border:1px solid #ccd2d8;border-radius:6px;box-sizing:border-box}
.row2{display:flex;gap:14px}.row2>*{flex:1}
.row3{display:flex;gap:14px}.row3>*{flex:1}
.tools{margin:12px 0;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.bulk-bar{background:#fff8e0;border:1px solid #f0e2a0;border-radius:6px;padding:8px 12px;margin:10px 0;display:flex;gap:10px;align-items:center}
.inline{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.details h1{margin-top:0}
.price.big{font-size:30px;color:var(--gold)}
.badge-new{background:var(--gold);color:#fff;font-size:.7rem;padding:2px 8px;border-radius:4px}
.catlist{list-style:none;padding:0;line-height:2}
.video-box{position:relative;padding-top:56.25%;margin-top:12px}
.video-box iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.qa details,.desc{margin:22px 0}
.history{line-height:1.9}
.err{color:#c0392b;font-weight:700}
.right{float:right}
.tab-panel{display:none;background:#fff;border:1px solid #e3e6ea;border-radius:0 0 10px 10px;padding:18px}
.tabs .tab.active{background:#0da0f2;color:#fff}

/* ===== strona główna v2 (bloki z panelu) ===== */
.hero-v2{display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:center;padding:56px 0 40px}
.hero-v2 h1{font-size:clamp(2.2rem,4.5vw,3.4rem);margin:.2em 0}
.hero-v2 .kicker{color:var(--gold);text-transform:uppercase;letter-spacing:.22em;font-size:.78rem;font-weight:800}
.hero-v2 .hero-sub{font-size:1.08rem;color:var(--muted);max-width:46ch;line-height:1.75}
.hero-usp{color:var(--ink);font-weight:600;letter-spacing:.02em;white-space:nowrap}
.hero-cta{display:flex;gap:14px;flex-wrap:wrap;margin-top:22px}
.hero-img{position:relative;border-radius:18px;overflow:hidden;border:1px solid var(--line);
  box-shadow:0 24px 60px rgba(0,0,0,.55), 0 0 0 1px color-mix(in srgb, var(--gold) 18%, transparent)}
.hero-img::after{content:none}
.hero-img img{width:100%;height:100%;object-fit:cover;display:block;aspect-ratio:4/3}
.brands{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:20px 0;margin:8px 0 14px}
.brands-list{display:flex;gap:34px;justify-content:center;flex-wrap:wrap;margin:0;
  font-weight:800;letter-spacing:.14em;text-transform:uppercase;font-size:.92rem;color:var(--muted,#8d8878)}
.brands-list span:hover{color:var(--gold);cursor:default}
.cat-tiles{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.cat-tile{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:18px 16px;
  display:flex;flex-direction:column;gap:4px;transition:.18s}
.cat-tile:hover{border-color:var(--gold);transform:translateY(-3px)}
.cat-tile b{color:var(--ink-strong);font-size:1.02rem}
.tiers{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:16px}
.tier{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:24px;display:flex;flex-direction:column;gap:8px}
.tier h3{margin:0}
.tier-price{color:var(--gold);font-weight:800;font-size:1.05rem;margin:0}
.tier .btn{margin-top:auto;align-self:start}
.tier.gold{border-color:color-mix(in srgb, var(--gold) 55%, transparent);background:var(--card);
  box-shadow:0 0 0 1px color-mix(in srgb, var(--gold) 25%, transparent), 0 18px 40px rgba(0,0,0,.4)}
.personas{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:16px}
.persona{background:var(--card);border:1px solid var(--line);border-left:4px solid var(--gold);
  border-radius:12px;padding:18px;display:flex;flex-direction:column;gap:6px}
.persona h3{margin:0;font-size:1.05rem}
.persona a{color:var(--gold);font-weight:700;margin-top:auto;font-size:.92rem}
.persona.red{border-left-color:#e05252}.persona.yellow{border-left-color:#e8b23f}
.persona.green{border-left-color:#4caf7d}.persona.blue{border-left-color:#4f8fdd}
.faq-sec .faq details{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:14px 18px;margin:10px 0}
.faq-sec .faq summary{cursor:pointer;font-weight:700;color:var(--ink-strong)}
.faq-sec .faq details[open] summary{color:var(--gold)}
.cta-banner{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap;
  background:var(--card);border:1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  border-radius:16px;padding:30px 34px;margin:34px 0}
.cta-banner h2{margin:0}.cta-banner p{color:var(--muted);margin:6px 0 0}
.cta-side{display:flex;align-items:center;gap:18px}
.cta-phone{font-size:1.5rem;font-weight:800;color:var(--gold);margin:0}
@media(max-width:900px){
  .hero-v2{grid-template-columns:1fr;padding-top:30px}
  .hero-usp{white-space:normal}
  .tiers,.personas{grid-template-columns:1fr 1fr}
}
@media(max-width:560px){.tiers,.personas{grid-template-columns:1fr}}
.card > img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:11px 11px 0 0;display:block}
.grid.products{grid-template-columns:repeat(4,1fr)}
@media(max-width:1000px){.grid.products{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.grid.products{grid-template-columns:1fr}}

/* ===== marginesy i rytm sekcji ===== */
.wrap > section{margin:40px 0}
.wrap > section:first-of-type{margin-top:8px}
.wrap > section:last-of-type{margin-bottom:10px}

/* ===== responsywność: nawigacja, topbar, hero, sekcje ===== */
@media (max-width: 760px){
  .topbar .wrap{flex-direction:column;gap:2px;text-align:center;padding:6px 14px}
  .nav{flex-wrap:wrap;gap:12px;padding:12px 0}
  .logo{order:1}
  .nav-ico{order:2;margin-left:auto;gap:8px}
  .nav-links{order:3;flex-basis:100%;justify-content:center;gap:18px;flex:none}
  .searchbox{order:4;flex-basis:100%;max-width:none}
  .searchbox input{flex:1}
  .wrap{padding:0 16px}
  .hero-v2{gap:22px;padding:26px 0 22px}
  .hero-v2 h1{font-size:clamp(1.9rem,8vw,2.4rem)}
  .hero-sub{font-size:1rem}
  .hero-cta .btn{width:100%;text-align:center}
  .hero-cta{gap:10px}
  .brands-list{gap:16px;font-size:.8rem}
  .brands{padding:14px 0}
  .tiers,.personas{grid-template-columns:1fr}
  .tier,.persona{padding:18px}
  .cta-banner{padding:22px;flex-direction:column;align-items:flex-start}
  .cta-side{width:100%;justify-content:space-between}
  .wrap > section{margin:30px 0}
  .product{grid-template-columns:1fr}
  .data{display:block;overflow-x:auto;white-space:nowrap}
}

/* ===== zdjęcia produktów w kartach: całe, bez obcinania ===== */
.card{overflow:hidden}
.card > img{aspect-ratio:5/4;object-fit:contain;padding:14px;border-radius:0;
  background:rgba(255,255,255,.03);border-bottom:1px solid var(--line)}
.card .stars,.card h3,.card p{padding-left:16px;padding-right:16px}
.card h3{margin-top:14px}
.card .price{margin-bottom:16px}

/* ===== kreator strony głównej (panel) ===== */
body:has(.builder){background:#f0f2f5}
.builder{display:grid;grid-template-columns:minmax(430px,560px) 1fr;gap:22px;align-items:start;max-width:1500px;margin:0 auto;padding:14px 16px 40px}
.b-head h1{margin:0 0 6px}
.b-left details{background:#fff;border:1px solid #e3e6ea;border-radius:10px;margin:10px 0;overflow:hidden}
.b-global summary,.b-add summary{padding:12px 16px;font-weight:700;cursor:pointer;list-style:none}
.b-add summary.btn{display:block;text-align:center;border:none}
.b-global form,.b-add .b-types{padding:4px 16px 14px}
.b-types{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.b-type{display:flex;flex-direction:column;gap:2px;border:1px solid #e3e6ea;border-radius:8px;padding:10px;text-decoration:none;color:#33383f;transition:.15s}
.b-type:hover{border-color:#0da0f2;background:#f5fbff}
.b-type code{color:#0da0f2;font-weight:800}
.b-type span{font-size:.82rem;color:#697085}
.b-list{list-style:none;margin:0;padding:0}
.b-list li.b-item[draggable]{cursor:grab}
.b-list li.b-item.dragging{opacity:.45}
.b-item summary{display:flex;align-items:center;gap:10px;padding:11px 14px;cursor:pointer;list-style:none;background:#fff}
.b-item summary::-webkit-details-marker{display:none}
.b-item[open] summary{border-bottom:1px solid #e3e6ea;background:#f8fafc}
.b-handle{color:#98a1ad;font-weight:800;letter-spacing:-2px}
.b-badge{font-size:.72rem;padding:3px 8px;border-radius:5px;background:#eaf6ff;color:#0b6fb4;text-transform:uppercase}
.b-badge.b-hero{background:#fff3d6;color:#8a6d00}.b-badge.b-cta{background:#ffe9e9;color:#b3261e}
.b-badge.b-faq{background:#e8f7ee;color:#1d7a48}.b-badge.b-personas{background:#ece9ff;color:#5a43c9}
.b-title{flex:1;font-weight:700;color:#1d2733;font-size:.95rem}
.b-pos{color:#98a1ad;font-size:.8rem}
.b-vis{font-size:.72rem;padding:3px 8px;border-radius:999px;background:#eef1f4;color:#697085}
.b-vis.on{background:#e7f5ec;color:#1d7a48}
.b-form{padding:12px 14px}
.b-form label{display:block;margin:8px 0;font-size:.9rem;color:#33383f}
.b-form input:not([type=checkbox]),.b-form select,.b-form textarea{width:100%;padding:8px 10px;border:1px solid #ccd2d8;border-radius:6px;box-sizing:border-box;font:inherit}
.b-check input{width:auto}
.b-actions{margin:10px 0 2px}
.b-del{padding:0 14px 14px}
.b-right{position:sticky;top:12px}
.b-preview-bar{display:flex;gap:10px;align-items:center;background:#fff;border:1px solid #e3e6ea;border-radius:10px 10px 0 0;padding:10px 14px}
.b-preview-frame{border:1px solid #e3e6ea;border-top:0;border-radius:0 0 10px 10px;overflow:hidden;background:#16161a}
.b-preview-frame iframe{width:100%;height:calc(100vh - 120px);min-height:640px;border:0;display:block}
@media(max-width:1100px){.builder{grid-template-columns:1fr}.b-right{position:static}}

/* ===== 6 układów bazowych (presety Sky-Shop) — warianty wyglądu ===== */
/* 1. loft — domyślny, brak nadpisań */

/* 2. One Page Scroll — całoekranowe hero, sekcje na przemian toną w tle */
.layout-onepage .hero-v2{min-height:calc(100vh - 140px);grid-template-columns:1fr;text-align:center;
  align-content:center;justify-items:center;padding:60px 20px}
.layout-onepage .hero-v2 .hero-img{max-width:560px;margin-top:26px}
.layout-onepage .hero-v2 h1{font-size:clamp(2.4rem,6vw,4rem)}
.layout-onepage .wrap > section{padding:34px 0;border-bottom:1px solid rgba(255,255,255,.05)}
.layout-onepage .usp-nums{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;text-align:center}
.layout-onepage .usp-nums b{display:block;font-size:2.6rem;color:var(--gold)}
.layout-onepage .usp-nums span{color:var(--muted);text-transform:uppercase;letter-spacing:.14em;font-size:.78rem}

/* 3. Home Comfort — ciepłe, duże kafle, wyśrodkowane nagłówki */
.layout-home .hero-v2{grid-template-columns:1fr;text-align:center;justify-items:center;gap:26px}
.layout-home .hero-v2 .hero-img{max-width:640px}
.layout-home .wrap > section h2{text-align:center}
.layout-home .wrap > section h2::after{margin-left:auto;margin-right:auto}
.layout-home .cat-tile{border-radius:16px;padding:26px 18px;background:var(--card)}
.layout-home .tier{border-radius:18px}
.layout-home .cta-banner{border-radius:24px}

/* 4. Beauty Minimal — powietrze, cienkie złote linie, wyśrodkowanie */
.layout-beauty .hero-v2{grid-template-columns:1fr;text-align:center;justify-items:center;padding:70px 0}
.layout-beauty .hero-v2 h1{font-weight:300;letter-spacing:.04em}
.layout-beauty .hero-v2 .hero-img{display:none}
.layout-beauty .wrap > section{margin:70px 0;text-align:center}
.layout-beauty .wrap > section h2{text-align:center}
.layout-beauty .wrap > section h2::after{margin-left:auto;margin-right:auto;width:26px}
.layout-beauty .grid.products{grid-template-columns:repeat(4,1fr)}
.layout-beauty .card{border-color:color-mix(in srgb, var(--gold) 35%, transparent);box-shadow:none}
.layout-beauty .brands{border-top:0;border-bottom:0;opacity:.75}
.layout-beauty .faq-sec .faq{max-width:760px;margin:0 auto}
.layout-beauty .cta-banner{max-width:760px;margin:60px auto;border-radius:0;border-left:0;border-right:0}

/* 5. Dynamic Sport — ostre krawędzie, wielkie liczby, gęsta siatka */
/* akcent sportu = kolor akcentu z edytora */
.layout-sport .hero-v2 h1{text-transform:uppercase;letter-spacing:-.01em}
.layout-sport .card,.layout-sport .tier,.layout-sport .cta-banner{border-radius:4px}
.layout-sport .cat-tile{border-radius:4px;border-left:3px solid var(--gold)}
.layout-sport .wrap > section h2{text-transform:uppercase;font-weight:900}
.layout-sport .usp-nums{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;text-align:center}
.layout-sport .usp-nums b{display:block;font-size:2.4rem;color:var(--gold);font-style:italic}
.layout-sport .usp-nums span{color:var(--muted);font-weight:800;text-transform:uppercase;font-size:.75rem}

/* 6. Family Playful — duże zaokrąglenia, kolorowe persony jako pełne karty */
.layout-family .hero-v2{grid-template-columns:.9fr 1.1fr}
.layout-family .hero-img img{aspect-ratio:1/1;object-fit:cover;border-radius:50%;max-width:420px;margin:0 auto}
.layout-family .hero-img{border-radius:50%;box-shadow:0 0 0 6px color-mix(in srgb, var(--gold) 25%, transparent),0 24px 60px rgba(0,0,0,.5)}
.layout-family .card,.layout-family .cat-tile,.layout-family .cta-banner{border-radius:22px}
.layout-family .persona{padding:24px;border-left-width:0;border-top:6px solid var(--gold);border-radius:18px}
.layout-family .persona.red{border-top-color:#e05252;background:#2a1c1c}
.layout-family .persona.yellow{border-top-color:#e8b23f;background:#2a251b}
.layout-family .persona.green{border-top-color:#4caf7d;background:#1b2a22}
.layout-family .persona.blue{border-top-color:#4f8fdd;background:#1b222d}
.layout-family .persona h3{font-size:1.25rem}

@media(max-width:760px){
  .layout-onepage .usp-nums,.layout-sport .usp-nums{grid-template-columns:1fr 1fr}
  .layout-family .hero-img img{max-width:280px}
}

/* ===== galeria układów bazowych (kreator) ===== */
.b-layouts summary{font-weight:800;padding:12px 16px;cursor:pointer}
.b-backup{display:flex;gap:12px;align-items:center;justify-content:space-between;background:#fff8e0;border:1px solid #f0e2a0;border-radius:8px;margin:8px 16px;padding:10px 12px;font-size:.88rem}
.b-presets{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:10px 16px 18px}
.b-preset{display:flex;gap:12px;border:1px solid #e3e6ea;border-radius:12px;padding:12px;background:#fbfcfd}
.b-preset.on{border-color:#1d9d54;background:#f4fbf6}
.b-thumb{flex:0 0 78px;display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:6px;background:#fff;border:1px solid #e3e6ea;border-radius:8px;height:64px;box-sizing:border-box}
.b-thumb i{background:#d6dbe1;border-radius:2px}
.b-thumb i:first-child{grid-column:1/3;background:#9aa5b1}
.b-th-onepage i:first-child{grid-row:1/5}
.b-th-home i:first-child,.b-th-beauty i:first-child{grid-column:1/3;height:auto}
.b-th-beauty i{background:#eceff2}
.b-th-sport i{border-radius:0}
.b-th-family i{border-radius:50% 50% 2px 2px}
.b-pinfo{display:flex;flex-direction:column;gap:3px;font-size:.88rem;color:#33383f}
.b-pinfo b{font-size:.95rem}
.b-on{background:#e7f5ec;color:#1d7a48;font-size:.68rem;padding:2px 7px;border-radius:999px;vertical-align:middle}
.b-chips{display:flex;gap:4px;flex-wrap:wrap;margin:4px 0 8px}
.b-chips code{background:#eef6ff;color:#0b6fb4;font-size:.68rem;padding:2px 6px;border-radius:4px}
.b-pinfo form{margin-top:auto}
@media(max-width:1100px){.b-presets{grid-template-columns:1fr}}

/* ===== color picker (kreator) ===== */
.b-colors summary{font-weight:800;padding:12px 16px;cursor:pointer}
.b-colorform{padding:8px 16px 16px}
.b-slots{display:flex;gap:10px;flex-wrap:wrap}
.b-slot{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid #e3e6ea;border-radius:10px;
  padding:10px 14px;font:inherit;font-size:.88rem;color:#33383f;cursor:pointer}
.b-slot:hover{border-color:#0da0f2}
.b-slot.custom{border-color:#1d9d54}
.b-dot{width:22px;height:22px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #ccd2d8;display:inline-block}
.cp-overlay{position:fixed;inset:0;background:rgba(10,12,16,.55);display:flex;align-items:center;justify-content:center;z-index:999}
.cp-modal{background:#fff;border-radius:14px;padding:20px 22px;width:440px;max-width:94vw;color:#33383f;
  box-shadow:0 24px 70px rgba(0,0,0,.4)}
.cp-modal h3{margin:0 0 14px;font-size:1.05rem}
.cp-main{display:flex;gap:14px}
.cp-square{position:relative;flex:1;height:190px;border-radius:8px;cursor:crosshair;border:1px solid #e3e6ea}
.cp-knob{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;
  box-shadow:0 0 4px rgba(0,0,0,.6);transform:translate(-50%,-50%);pointer-events:none}
.cp-hue{position:relative;width:22px;height:190px;border-radius:8px;cursor:ns-resize;border:1px solid #e3e6ea;
  background:linear-gradient(to bottom,#f00 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,#f00 100%)}
.cp-hueknob{position:absolute;left:-4px;right:-4px;height:10px;border-radius:5px;border:2px solid #fff;
  box-shadow:0 0 4px rgba(0,0,0,.6);transform:translateY(-50%);pointer-events:none}
.cp-row{display:flex;gap:8px;align-items:center;margin-top:14px}
.cp-cur{width:34px;height:34px;border-radius:8px;border:1px solid #e3e6ea;flex:none}
.cp-row input{padding:8px 10px;border:1px solid #ccd2d8;border-radius:6px;font:inherit}
.cp-row #cp-hex{width:100px}
.cp-row input[type=number]{width:64px}
.cp-label{font-size:.8rem;color:#697085;margin:14px 0 6px}
.cp-palette{display:grid;grid-template-columns:repeat(12,1fr);gap:6px}
.cp-sw{width:100%;aspect-ratio:1;border-radius:50%;border:1px solid rgba(0,0,0,.12);cursor:pointer;padding:0}
.cp-sw:hover{transform:scale(1.15);transition:.12s}
.cp-actions{display:flex;gap:10px;margin:16px 0 0}
.cp-actions .btn{flex:1;text-align:center}
.cp-overlay[hidden]{display:none}

/* ===== moje szablony (kreator) ===== */
.b-saved summary{font-weight:800;padding:12px 16px;cursor:pointer}
.b-svform{display:flex;gap:8px;padding:10px 16px}
.b-svform input{flex:1;padding:8px 10px;border:1px solid #ccd2d8;border-radius:6px;font:inherit}
.b-svlist{list-style:none;margin:0;padding:4px 16px 14px}
.b-svlist li{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px dashed #eef0f3;font-size:.9rem}
.b-svlist li b{flex:1}

/* ===== więcej marginesów: węższa kolumna One Page, wyśrodkowane bloki ===== */
.layout-onepage .wrap{max-width:1080px}
.layout-onepage .wrap > section{padding:40px 24px}
.layout-onepage .cta-banner,.layout-onepage .usp-nums,.layout-onepage .faq-sec .faq{max-width:920px;margin-left:auto;margin-right:auto}
.layout-onepage .hero-v2{padding:70px 24px 50px}
.layout-onepage .hero-v2 .hero-img{max-width:500px}
.cta-banner{max-width:980px;margin-left:auto;margin-right:auto}
.faq-sec .faq{max-width:860px;margin-left:auto;margin-right:auto}
.tiers-sec .tiers{max-width:980px;margin-left:auto;margin-right:auto}
.personas-sec .personas{max-width:980px;margin-left:auto;margin-right:auto}
.wrap{padding:0 26px}
@media(max-width:760px){
  .wrap{padding:0 16px}
  .layout-onepage .wrap > section{padding:30px 14px}
}

/* ===== gwarantowane marginesy niezależnie od szerokości okna ===== */
.layout-onepage .hero-v2 .hero-img{max-width:min(500px,68vw)}
.layout-onepage .hero-v2 .hero-txt{max-width:min(640px,86vw);margin:0 auto}
.cta-banner{max-width:min(980px,88vw)}
.faq-sec .faq{max-width:min(860px,88vw)}
.tiers-sec .tiers{max-width:min(980px,88vw)}
.personas-sec .personas{max-width:min(980px,92vw)}
@media(max-width:760px){
  .layout-onepage .hero-v2 .hero-img{max-width:min(360px,74vw)}
  .layout-onepage .wrap > section{padding:32px 20px}
}

/* ===== hero: zdjęcie wewnątrz ramki z marginesem, bez przycinania ===== */
.hero-v2 .hero-img img{object-fit:contain;padding:22px;background:transparent;border-radius:14px}

/* ===== mini-landingi zakupowe /l/materac-* ===== */
.landing .wrap{max-width:900px}
.ld-sec{margin:46px 0}
.ld-sec h2{margin-top:0}
.ld-needs{line-height:2;padding-left:20px}
.ld-needs li{margin:6px 0}
.ld-spec{color:var(--muted);font-weight:700;letter-spacing:.04em}
.ld-sol-list{line-height:2;padding-left:20px}
.ld-sol-list li{margin:6px 0}
.ld-benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.ld-benefits>div{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:20px}
.ld-benefits h3{margin:0 0 8px;font-size:1.05rem}
.ld-personas{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.ld-personas .persona{margin:0}
.ld-cta{background:var(--card);border:1px solid color-mix(in srgb,var(--gold) 40%,transparent);border-radius:16px;padding:30px;text-align:center}
.ld-price{font-size:1.1rem}
.ld-ctabtns{display:flex;gap:16px;justify-content:center;align-items:center;flex-wrap:wrap}
.ld-phone{color:var(--muted)}
@media(max-width:760px){.ld-benefits,.ld-personas{grid-template-columns:1fr}.ld-ctabtns{flex-direction:column}}

/* ===== KARTA MATERACA — 12 sekcji ===== */
.card12{max-width:1080px;margin:0 auto}
.c12-hero{display:grid;grid-template-columns:1.05fr .95fr;gap:30px;margin:20px 0 40px}
.c12-mainimg{width:100%;aspect-ratio:4/3;object-fit:contain;background:var(--card);border-radius:14px;border:1px solid var(--line)}
.c12-thumbs{display:flex;gap:8px;margin-top:10px}
.c12-thumbs img{width:70px;height:54px;object-fit:cover;border-radius:6px;border:1px solid var(--line)}
.c12-buy h1{font-size:clamp(1.6rem,3vw,2.2rem);margin:.2em 0}
.c12-feel{font-size:1.05rem;color:var(--ink);line-height:1.65}
.c12-high{margin:10px 0;padding-left:20px;line-height:1.9}
.c12-price{font-size:1.7rem;font-weight:800;color:var(--gold);margin:14px 0}
.c12-price .c12-tward{font-size:.85rem;color:var(--muted);font-weight:600;margin-left:8px}
.c12-qty input{width:70px;margin-right:10px}
.c12-trust{list-style:none;margin:14px 0 0;padding:0;line-height:2;color:var(--muted);font-size:.92rem}
.c12-sec{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:26px;margin:22px 0}
.c12-sec h2{margin-top:0;font-size:1.15rem}
.c12-who3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:12px 0}
.c12-who{background:var(--bg);border-radius:10px;padding:14px}
.c12-who b{color:var(--gold)}
.c12-good,.c12-consider{margin:10px 0;line-height:1.7}
.c12-consider{color:var(--muted)}
.c12-scale{display:flex;align-items:center;gap:14px;margin:14px 0;flex-wrap:wrap}
.c12-dot{width:34px;height:34px;border-radius:50%;border:2px solid var(--line);display:inline-flex;align-items:center;justify-content:center;font-weight:800;color:var(--muted)}
.c12-dot.on{border-color:var(--gold);background:color-mix(in srgb,var(--gold) 25%,transparent);color:var(--gold)}
.c12-scalelab{color:var(--muted);font-size:.9rem;margin-left:8px}
.c12-layers{list-style:none;padding:0;line-height:1.7}
.c12-layers li{padding:12px 0;border-bottom:1px dashed var(--line)}
.c12-care{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.c12-carecell{background:var(--bg);border-radius:10px;padding:14px}
.c12-carecell b{color:var(--gold)}
.c12-specn{padding-left:20px;line-height:2}
.c12-cmp{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:14px 0}
.c12-cmpcard{background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:16px;position:relative}
.c12-cmpcard.on{border:2px solid var(--gold)}
.c12-cmpcard span{position:absolute;top:-11px;left:14px;background:var(--gold);color:#fff;font-size:.68rem;font-weight:800;padding:3px 10px;border-radius:4px;text-transform:uppercase}
.c12-compnote{line-height:1.75}
.c12-rev{margin:12px 0;padding:14px 18px;background:var(--bg);border-radius:10px;line-height:1.7}
.c12-rev footer{color:var(--muted);font-size:.85rem;margin-top:6px}
.c12-cert{color:var(--gold);font-weight:700}
.c12-del{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.c12-del>div{background:var(--bg);border-radius:10px;padding:14px}
.c12-del b{color:var(--gold);text-transform:uppercase;font-size:.8rem;letter-spacing:.06em}
.c12-final{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;background:var(--card);border:1px solid color-mix(in srgb,var(--gold) 40%,transparent);border-radius:14px;padding:24px;margin:26px 0 40px}
.c12-finalimg{display:flex;gap:16px;align-items:center}
.c12-finalimg img{width:110px;height:82px;object-fit:cover;border-radius:8px}
.c12-finalbuy{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.c12-help{color:var(--muted)}
@media(max-width:900px){
  .c12-hero{grid-template-columns:1fr}
  .c12-who3,.c12-cmp{grid-template-columns:1fr}
  .c12-care,.c12-del{grid-template-columns:1fr}
}

/* ===== MOBILE FIX: hero 1-kolumnowy w KAZDYM layoucie (nadpisuje .layout-*) ===== */
@media(max-width:900px){
  .layout-family .hero-v2,.layout-home .hero-v2,.layout-onepage .hero-v2,
  .layout-beauty .hero-v2,.layout-sport .hero-v2,.layout-loft .hero-v2{
    grid-template-columns:1fr !important;text-align:center;justify-items:center}
  .layout-family .hero-img{border-radius:14px;box-shadow:0 14px 34px rgba(0,0,0,.4)}
  .layout-family .hero-img img{aspect-ratio:4/3;object-fit:cover;border-radius:10px;max-width:min(420px,78vw)}
}
/* cookie banner: kompaktowo na telefonie */
@media(max-width:760px){
  .cookie-banner{padding:12px 14px;font-size:.82rem;line-height:1.5}
  .cookie-banner .btn{width:100%;margin-top:8px;text-align:center}
  .cookie-banner p{margin:0 0 6px}
}

/* ===== karta v2: okruszki, parametry przy zakupie, nawigacja, tabela porownania ===== */
.c12-crumbs{color:var(--muted);font-size:.88rem;margin:14px 0 6px}
.c12-crumbs a{color:var(--muted);text-decoration:underline}
.c12-crumbs a:hover{color:var(--gold)}
.c12-summary{font-size:1.02rem;line-height:1.65;color:var(--ink)}
.c12-chips{list-style:none;display:flex;gap:8px;flex-wrap:wrap;padding:0;margin:12px 0}
.c12-chips li{background:var(--card);border:1px solid var(--line);border-radius:999px;padding:5px 12px;font-size:.82rem;color:var(--ink)}
.c12-varlab{margin:10px 0 4px;color:var(--muted);font-size:.88rem}
.c12-variants{list-style:none;display:flex;gap:8px;flex-wrap:wrap;padding:0;margin:0 0 12px}
.c12-variants a{display:block;background:var(--card);border:1px solid var(--gold);border-radius:8px;padding:8px 12px;color:var(--gold);font-weight:700;font-size:.88rem;text-decoration:none}
.c12-nav{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0 26px}
.c12-nav a{background:var(--card);border:1px solid var(--line);border-radius:999px;padding:8px 16px;color:var(--ink);font-size:.88rem;font-weight:700;text-decoration:none}
.c12-nav a:hover{border-color:var(--gold);color:var(--gold)}
.c12-sub{color:var(--muted);margin:4px 0 14px}
.c12-sec h3{margin:22px 0 8px}
.c12-tblwrap{overflow-x:auto}
.c12-cmptable{width:100%;border-collapse:collapse;background:var(--bg);border-radius:10px}
.c12-cmptable th,.c12-cmptable td{border:1px solid var(--line);padding:10px 12px;text-align:left;font-size:.92rem}
.c12-cmptable thead th{background:var(--card);font-size:.85rem}
.c12-cmptable .on{background:color-mix(in srgb,var(--gold) 12%,transparent);font-weight:700}
.c12-sources{font-size:.88rem;color:var(--muted);line-height:1.8}
.c12-sources a{color:var(--gold);text-decoration:underline}
@media(max-width:760px){
  .c12-cmptable th,.c12-cmptable td{padding:8px 6px;font-size:.82rem}
  .c12-nav a{padding:7px 12px;font-size:.8rem}
}

/* ===== KIERUNEK 2026: ciepła biel + głęboka zieleń, Manrope + Source Sans 3 ===== */
:root{--accent-soft:color-mix(in srgb,var(--card) 55%,var(--bg))}
body{font-size:17px;line-height:1.6}
@media(min-width:1024px){body{font-size:18px}}
h1,h2,h3{line-height:1.2}
.hero-v2 h1{font-size:clamp(2rem,5vw,3.25rem)}
.c12-buy h1{font-size:clamp(1.625rem,4vw,2.5rem)}
.c12-sec h2,.c12-sec h3{text-transform:none;font-size:clamp(1.5rem,2.5vw,2rem)}
.c12-sec h3{font-size:clamp(1.25rem,2vw,1.5rem);margin-top:26px}
.c12-sub{font-size:1rem}
.btn{text-transform:none;font-size:1rem;padding:14px 30px;border-radius:10px}
.btn:hover{filter:brightness(.85);transform:translateY(-1px)}
.btn.small{padding:10px 18px}
.nav-links{font-size:1rem}
.c12-who,.c12-carecell,.c12-cmpcard,.c12-del>div{background:var(--accent-soft,var(--bg))}
.c12-trust,.c12-help{font-size:.875rem}
.c12-feel,.c12-summary{line-height:1.6}
.c12-nav a,.c12-chips li,.c12-variants a{font-size:.95rem}
.c12-price{font-size:1.5rem}
@media(max-width:760px){
  .topbar{display:none}              /* kompaktowy naglówek: bez paska telefonow */
  .hero-v2 h1{text-align:left}
  .c12-buy h1{text-align:left}
  .c12-summary,.hero-v2 .hero-sub{text-align:left}
  .c12-chips,.c12-high{padding-left:0}
}
/* zieleń w sekcjach doradczych (persony/koszyki) — jedna paleta */
.persona.red,.persona.yellow,.persona.green,.persona.blue{border-top:4px solid var(--gold);border-left:1px solid var(--line);background:var(--accent-soft,var(--card))}
.persona h3{color:var(--ink-strong)}

/* bez wersalikow w naglowkach sekcji i przyciskach (wytyczne) */
h2{text-transform:none}
h2::after{background:var(--gold)}
.c12-final,.c12-cta{border-radius:14px}
.btn.big{padding:15px 32px}

/* ===== R2026: wspólna siatka + karta produktu (responsywna, clamp) ===== */
.pgrid{display:grid;gap:clamp(12px,2vw,22px);margin:22px 0;
  grid-template-columns:repeat(auto-fill,minmax(clamp(240px,80vw,320px),1fr))}
@media(min-width:560px){.pgrid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1100px){.pgrid{grid-template-columns:repeat(4,1fr)}}
.pcard{background:var(--card);border:1px solid var(--line);border-radius:14px;overflow:hidden;
  display:flex;flex-direction:column;transition:border-color .15s}
.pcard:hover{border-color:var(--gold)}
.pcard-link{display:flex;flex-direction:column;flex:1;text-decoration:none;color:inherit}
.pcard-img{position:relative;background:var(--accent-soft);aspect-ratio:4/3;display:flex;align-items:center;justify-content:center}
.pcard-img img{width:100%;height:100%;object-fit:contain;padding:10px}
.pcard-badge{position:absolute;top:8px;left:8px;background:#9B4935;color:#fff;font-size:.72rem;font-weight:700;padding:3px 10px;border-radius:6px}
.pcard-body{padding:clamp(10px,1.6vw,16px);display:flex;flex-direction:column;gap:4px;text-align:left}
.pcard-name{margin:0;font-size:clamp(1rem,1.4vw,1.12rem);line-height:1.3;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pcard-id{margin:0;font-size:.75rem;color:var(--muted);opacity:.85}
.pcard-feats{margin:0;font-size:.85rem;color:var(--muted)}
.pcard-price{margin:4px 0 6px;font-size:clamp(1.1rem,1.8vw,1.3rem);font-weight:700;color:var(--gold);white-space:nowrap}
.pcard-cta{font-size:.9rem;font-weight:700;color:var(--gold)}

/* ===== nagłówek: 2 rzędy, burger, sticky rząd 1 ===== */
.nav{display:grid;grid-template-columns:auto 1fr auto;grid-template-areas:"burger logo cart" "search search search";
  align-items:center;gap:8px 14px;padding:10px 0}
.nav-burger{grid-area:burger;display:none;width:44px;height:44px;cursor:pointer;position:relative}
.nav-burger span,.nav-burger span::before,.nav-burger span::after{content:"";position:absolute;left:10px;width:24px;height:2.5px;background:var(--ink);border-radius:2px}
.nav-burger span{top:21px}.nav-burger span::before{top:-8px;left:0}.nav-burger span::after{top:8px;left:0}
.logo{grid-area:logo}
.nav-ico{grid-area:cart;display:flex;gap:10px;justify-content:flex-end}
.nav-ico a{min-height:44px;display:inline-flex;align-items:center}
.nav-links{grid-area:nav;display:flex;gap:clamp(10px,2vw,26px);flex-wrap:wrap}
.nav-links a{display:inline-flex;align-items:center;min-height:44px}
.searchbox{grid-area:search;display:flex;gap:6px;max-width:none}
.searchbox input{flex:1}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
@media(max-width:820px){
  .nav-burger{display:block}
  .nav{grid-template-areas:"burger logo cart" "search search search"}
  .nav-links{grid-area:nav;display:none;flex-basis:100%;flex-direction:column;padding:6px 0}
  .nav-toggle:checked ~ .nav-links{display:flex}
  .nav{position:relative}
  header.site{position:sticky;top:0}
}

/* ===== filtry kompaktowe ===== */
.filters-bar{margin:10px 0 16px;border:1px solid var(--line);border-radius:12px;background:var(--card)}
.filters-bar summary{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;cursor:pointer;font-weight:700;min-height:48px;list-style:none}
.filters-bar summary::-webkit-details-marker{display:none}
.filters-bar .count{color:var(--muted);font-weight:600;font-size:.9rem}
.filters{padding:0 14px 14px}
.fchk{display:inline-flex;align-items:center;gap:8px;min-height:44px}
.fchk input{width:20px;height:20px}
.fclear{color:#9B4935;font-weight:700;text-decoration:underline;padding:10px 4px;display:inline-flex;align-items:center}

/* ===== hero kompaktowe ===== */
.hero-v2{padding:clamp(18px,4vh,48px) 0}
.hero-v2 .kicker{margin-bottom:4px}
.hero-cta{margin-top:14px}

/* ===== karta produktu: order mobile + sticky bar ===== */
.c12-hero{gap:clamp(16px,3vw,30px)}
@media(max-width:900px){
  .c12-hero{display:flex;flex-direction:column}
  .c12-buy{order:-1}
  .c12-gal{order:0}
  .c12-buy h1{text-align:left}
}
.c12-stickybuy{display:none}
@media(max-width:900px){
  .c12-stickybuy{position:fixed;left:0;right:0;bottom:0;z-index:60;display:flex;align-items:center;gap:10px;
    background:var(--card);border-top:1px solid var(--line);padding:8px 12px calc(8px + env(safe-area-inset-bottom));
    box-shadow:0 -6px 20px rgba(0,0,0,.08)}
  .c12-stickyinfo{flex:1;min-width:0;display:flex;flex-direction:column}
  .c12-stickyinfo b{font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .c12-stickyinfo span{font-size:.75rem;color:var(--muted)}
  .c12-stickyprice{font-weight:800;color:var(--gold);white-space:nowrap;font-size:1rem}
  .c12-stickybuy .btn{padding:12px 16px;font-size:.9rem}
  body{padding-bottom:64px}
}

/* a11y: H2 wieksze na desktop, FAQ wiersze */
@media(min-width:1024px){.c12-sec h2{font-size:1.75rem}}
.faq-sec details,.c12-sec details{border:1px solid var(--line);border-radius:10px;margin:8px 0;overflow:hidden}
.faq-sec summary,.c12-sec summary{padding:14px 16px;min-height:48px;display:flex;align-items:center;cursor:pointer;font-weight:700}
.faq-sec details p,.c12-sec details p{padding:0 16px 14px}
.srch-cta{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}
.ld-sizes a{display:inline-flex;align-items:center;background:var(--card);border:1px solid var(--line);border-radius:999px;padding:10px 16px;font-weight:700;color:var(--gold);text-decoration:none;min-height:44px}

/* ===== karta produktu: marginesy i kontener ===== */
.card12.wrap{max-width:1080px;margin:0 auto;padding:0 clamp(16px,3vw,26px) 40px}
.c12-crumbs{margin:18px 0 10px}
.c12-hero{margin:10px 0 30px}
.c12-sec{margin:22px 0}
.c12-nav{margin:6px 0 22px}
.c12-final{margin:30px 0 50px}
@media(max-width:760px){
  .c12-sec{padding:18px 16px;margin:16px 0}
  .c12-final{padding:18px 16px}
  .c12-stickybuy{left:0;right:0}
}

/* ===== cross-sell w koszyku ===== */
.xsell{margin:26px 0;padding:18px;background:var(--accent-soft,var(--bg));border:1px solid var(--line);border-radius:14px}
.xsell h2{margin-top:0}
.xsell-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
.xsell-card{display:flex;gap:10px;align-items:center;background:var(--card);border:1px solid var(--line);border-radius:10px;padding:10px}
.xsell-card img{width:64px;height:64px;object-fit:contain;border-radius:6px;background:#fff}
.xsell-info{flex:1;min-width:0}
.xsell-info b{font-size:.9rem;line-height:1.3;display:block}
.xsell-info .price{margin:2px 0;font-size:.95rem}
@media(max-width:560px){.xsell-card{flex-wrap:wrap}}


/* ===== przechwytywanie maila z porównywarki ===== */
.cmp-capture{margin-top:26px;background:var(--accent-soft,var(--bg));border:1px solid var(--line);border-radius:14px;padding:20px}
.cmp-capture h3{margin:0 0 6px}
.cmp-capture-form{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.cmp-capture-form input[type=email]{flex:1;min-width:220px;padding:13px 16px;border:1px solid #7A857E;border-radius:10px;font-size:1rem}
.cmp-capture-form .btn{min-height:48px}

/* ===== kalkulator kosztu snu ===== */
.calc-lead{font-size:1.05rem;color:var(--muted);max-width:60ch}
.calc-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:24px 0;align-items:stretch}
.calc-card{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:22px}
.calc-card label{display:block;margin:12px 0;font-weight:700}
.calc-card select,.calc-card input{width:100%;margin-top:6px;padding:12px 14px;border:1px solid #7A857E;border-radius:10px;font-size:1rem}
.calc-result{background:var(--accent-soft,var(--card));border:1px solid var(--gold);border-radius:14px;padding:22px;display:flex;flex-direction:column;justify-content:center}
.calc-big{margin:0;font-size:clamp(2.2rem,5vw,3.4rem);font-weight:800;color:var(--gold);line-height:1}
.calc-cap{color:var(--muted);margin:4px 0 10px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;font-size:.85rem}
.calc-subline{margin:0 0 12px}
.calc-note{font-size:.82rem;color:var(--muted);margin:0 0 14px}
.calc-compare{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:26px 0 40px}
.calc-compare>div{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:14px 16px;display:flex;flex-direction:column;gap:2px}
.calc-compare span{font-weight:800;color:var(--gold)}
.calc-compare .calc-hl{border-color:var(--gold);background:color-mix(in srgb,var(--gold) 10%,var(--card))}
@media(max-width:820px){.calc-grid{grid-template-columns:1fr}.calc-compare{grid-template-columns:1fr 1fr}}

/* ===== wyslane porownania (panel) ===== */
.sc-list{list-style:none;margin:0;padding:0}
.sc-list li{padding:3px 0;line-height:1.5}
.sc-list a{color:var(--gold);text-decoration:underline}
