/*
Theme Name: Poli-Rain
Theme URI: https://poli-rain.pl/
Author: Poli-Rain Sp. z o.o.
Description: Motyw sklepu z odwodnieniami liniowymi dla wtyczki Poli-Rain Katalog. Strona renderowana po stronie serwera, szybka, dostępna i przyjazna wyszukiwarkom oraz asystentom AI.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: poli-rain
*/

/* Układ: biała strona, kolorystyka z logo Poli-Rain (granat, błękit, jasny niebieski), czarne pismo. */
:root {
  --ink: #000000;
  --ink-2: #333c46;
  --paper: #ffffff;
  --card: #ffffff;
  --line: #cfe0ef;
  --brand: #1058a8;
  --brand-d: #084898;
  --brand-t: #e8f3fc;
  --signal: #38a8e8;
  --signal-d: #2790d6;
  --on-signal: #000000;
  --warn: #e08a00;
  --ok: #1d7f47;
  --bad: #b8322a;
  --nav: #084898;
  --on-nav: #ffffff;
  --il-bg: #eef6fd;
  --il-steel: #a9bbcd;
  --il-steel-d: #6e869e;
  --il-dark: #22364b;
  --il-water: #2088d0;
  --il-green: #5fae6b;
  --font-d: 'Arial Narrow', 'Roboto Condensed', 'Helvetica Neue', Arial, sans-serif;
  --font-b: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --shadow: 0 1px 2px rgba(8, 72, 152, .08), 0 6px 18px rgba(8, 72, 152, .08);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-b); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-d); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; letter-spacing: .005em; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 2px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 20px; }
.muted { color: var(--ink-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ——— przyciski ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--font-b); padding: 12px 20px; border-radius: 4px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--signal); color: var(--on-signal); }
.btn-primary:hover { background: var(--signal-d); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-d); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand-t); }
.btn-light { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-light:hover { background: var(--brand-t); }
.btn-sm { padding: 8px 12px; font-size: .9rem; }
.btn-danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn-danger:hover { background: color-mix(in srgb, var(--bad) 12%, transparent); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ——— nagłówek ——— */
.topbar { background: var(--brand-t); color: var(--ink); font-size: .88rem; border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; padding-block: 8px; }
.topbar a { color: var(--ink); }
.topbar .tb-group { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-head { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 112px; transition: min-height .2s; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none !important; }
.logo-mark { height: 96px; width: auto; flex: none; transition: height .2s; }
.foot-logo { height: 110px; margin-bottom: 12px; display: block; }
.logo-txt { font-family: var(--font-d); font-weight: 700; font-size: 1.35rem; line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.logo-txt small { display: block; font-size: .72rem; font-weight: 500; letter-spacing: .12em; color: var(--ink-2); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav > .ni { position: relative; }
.nav a.nl, .nav button.nl {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px; color: var(--ink); font: 600 .98rem var(--font-b);
  background: none; border: 0; cursor: pointer; text-decoration: none !important; border-radius: 4px; text-transform: uppercase; letter-spacing: .03em;
}
.nav a.nl:hover, .nav button.nl:hover, .nav a.nl[aria-current="page"] { color: var(--brand); background: var(--brand-t); }
.mega {
  display: none; position: absolute; left: 0; top: 100%; width: min(760px, 92vw); background: var(--card); border: 1px solid var(--line);
  border-top: 3px solid var(--signal); box-shadow: var(--shadow); padding: 18px; grid-template-columns: repeat(2, 1fr); gap: 16px 24px; z-index: 40;
}
.ni:hover > .mega, .ni:focus-within > .mega, .ni.open > .mega { display: grid; }
.mega h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin: 0 0 6px; font-family: var(--font-b); font-weight: 600; }
.mega a { display: block; padding: 5px 0; color: var(--ink); font-weight: 500; }
.mega a:hover { color: var(--brand); }
.mega .all { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 12px; font-weight: 600; }
.head-actions { display: flex; align-items: center; gap: 10px; }
.inq-btn { position: relative; }
.badge { background: var(--signal); color: var(--on-signal); border-radius: 999px; min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; font-size: .8rem; font-weight: 700; }
.burger { display: none; background: none; border: 1.5px solid var(--line); border-radius: 4px; padding: 8px 10px; color: var(--ink); cursor: pointer; font: 600 .95rem var(--font-b); }
@media (max-width: 960px) {
  .burger { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--card); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 20px 16px; max-height: calc(100vh - 80px); overflow: auto; }
  .nav.open { display: flex; }
  .nav a.nl, .nav button.nl { width: 100%; }
  .mega { position: static; display: none; width: auto; box-shadow: none; border: 0; border-left: 3px solid var(--signal); grid-template-columns: 1fr; padding: 6px 0 6px 14px; margin: 0 0 8px 8px; }
  .ni:hover > .mega { display: none; }
  .ni.open > .mega { display: grid; }
}

/* ——— karuzela ——— */
.hero { background: #fff; color: var(--ink); position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background-image: linear-gradient(rgba(16,88,168,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(16,88,168,.06) 1px, transparent 1px);
  background-size: 32px 32px; }
.slide { display: none; }
.slide.on { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; padding-block: 44px 64px; }
.slide .eyebrow { font: 600 .85rem var(--font-b); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.slide h1 { color: var(--ink); font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.slide .price-line { font: 600 1.5rem var(--font-d); margin: 14px 0 22px; }
.slide .price-line small { font: 500 .9rem var(--font-b); opacity: .75; margin-left: 6px; }
.slide .pic { background: transparent; border: 0; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.slide .pic img, .slide .pic svg { width: 100%; height: 100%; object-fit: contain; }
.hero-ctl { position: absolute; left: 0; right: 0; bottom: 18px; }
.hero-ctl .wrap { display: flex; align-items: center; gap: 10px; }
.dot { width: 34px; height: 5px; border: 0; padding: 0; background: rgba(16,88,168,.22); cursor: pointer; border-radius: 2px; }
.dot[aria-current="true"] { background: var(--brand); }
.arrow { background: var(--brand-t); color: var(--brand); border: 0; width: 36px; height: 36px; border-radius: 4px; cursor: pointer; font-size: 1.2rem; }
.arrow:hover { background: #d2e8f9; }
@media (max-width: 820px) {
  .slide.on { grid-template-columns: 1fr; padding-block: 28px 64px; }
  .slide .pic { order: -1; max-height: 230px; }
}

/* ——— sekcje ——— */
.sec { padding-block: 56px; }
.sec.alt { background: var(--card); border-block: 1px solid var(--line); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.sec-head h2 { margin: 0; }
.rule { display: block; width: 56px; height: 4px; background: var(--signal); margin: 0 0 14px; }
.intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.intro .lead p { max-width: 62ch; }
.offer-box { border: 1px solid var(--line); border-left: 4px solid var(--signal); background: var(--card); padding: 22px; }
.offer-box h3 { margin-bottom: .3em; }
@media (max-width: 820px) { .intro { grid-template-columns: 1fr; gap: 24px; } }

/* kafelki kategorii */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.tile { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--brand); transform: translateY(-2px); }
.tile .pic { aspect-ratio: 16 / 10; background: var(--il-bg); overflow: hidden; }
.tile .pic svg { width: 100%; height: 100%; }
.tile .tb { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.tile .tg { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
.tile h3 { margin: 0; font-size: 1.25rem; }
.tile .cnt { margin-top: auto; padding-top: 8px; color: var(--brand); font-weight: 600; font-size: .92rem; }

/* skróty */
.shorts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; border: 1px solid var(--line); background: var(--card); }
.short { padding: 22px 20px; border-right: 1px solid var(--line); color: var(--ink); text-decoration: none !important; display: flex; flex-direction: column; gap: 6px; }
.short:last-child { border-right: 0; }
.short:hover { background: var(--brand-t); }
.short .k { font: 700 .8rem var(--font-b); color: var(--brand); letter-spacing: .1em; }
.short b { font: 600 1.25rem var(--font-d); }
.short span { font-size: .9rem; color: var(--ink-2); }
@media (max-width: 700px) { .short { border-right: 0; border-bottom: 1px solid var(--line); } .short:last-child { border-bottom: 0; } }

/* karty produktów */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); position: relative; }
.card .pic { aspect-ratio: 4 / 3; background: var(--il-bg); display: grid; place-items: center; overflow: hidden; }
.card .pic img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.card .pic svg { width: 100%; height: 100%; }
.card .cb { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .cat { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
.card h3 { font: 600 1.02rem/1.3 var(--font-b); margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card h3 a { color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 600 .74rem var(--font-b); padding: 3px 8px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink-2); background: var(--paper); }
.chip.load { background: var(--brand-t); border-color: transparent; color: var(--brand-d); }
.price { font: 700 1.5rem/1 var(--font-d); color: var(--ink); }
.price small { font: 500 .78rem var(--font-b); color: var(--ink-2); margin-left: 4px; }
.price.ask { font-size: 1.1rem; color: var(--ink-2); }
.card .row { margin-top: auto; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px; padding-top: 6px; }
.card .price { white-space: nowrap; }
.flag { position: absolute; left: 0; top: 12px; background: var(--signal); color: var(--on-signal); font: 700 .72rem var(--font-b); letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; z-index: 1; }

/* ——— katalog ——— */
.crumbs { font-size: .9rem; color: var(--ink-2); padding-block: 18px 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--ink-2); }
.cat-layout { display: grid; grid-template-columns: 270px 1fr; gap: 28px; padding-block: 8px 56px; align-items: start; }
.side { background: var(--card); border: 1px solid var(--line); padding: 16px; position: sticky; top: 92px; }
.side h4 { font: 600 .8rem var(--font-b); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin: 14px 0 6px; }
.side h4:first-child { margin-top: 0; }
.side a.cl { display: flex; justify-content: space-between; gap: 10px; padding: 7px 8px; color: var(--ink); border-radius: 3px; font-weight: 500; }
.side a.cl:hover { background: var(--brand-t); text-decoration: none; }
.side a.cl[aria-current="page"] { background: var(--brand); color: #fff; }
.side a.cl .n { opacity: .7; font-variant-numeric: tabular-nums; }
.tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; align-items: end; }
.tools .grow { flex: 1 1 240px; }
.fld { display: flex; flex-direction: column; gap: 4px; }
.fld > label, .fld > .lab { font: 600 .8rem var(--font-b); color: var(--ink-2); letter-spacing: .04em; }
input[type=text], input[type=search], input[type=number], input[type=email], input[type=tel], input[type=date], select, textarea {
  font: 400 1rem var(--font-b); color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 4px; padding: 9px 11px; width: 100%; min-width: 0;
}
textarea { resize: vertical; min-height: 90px; line-height: 1.45; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.result-info { color: var(--ink-2); margin: 0 0 14px; }
.empty { border: 1px dashed var(--line); padding: 32px; text-align: center; color: var(--ink-2); background: var(--card); }
@media (max-width: 900px) { .cat-layout { grid-template-columns: 1fr; } .side { position: static; } }

/* ——— produkt ——— */
.pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; padding-block: 10px 40px; align-items: start; }
.pd .gal { background: var(--il-bg); border: 1px solid var(--line); aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.pd .gal img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pd .gal svg { width: 100%; height: 100%; }
.pd h1 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.pd .big { font: 700 2.4rem/1 var(--font-d); margin: 14px 0 4px; }
.pd .big small { font: 500 .95rem var(--font-b); color: var(--ink-2); margin-left: 6px; }
.pd .alt-price { color: var(--ink-2); margin-bottom: 18px; }
.buy { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0; }
.buy input.qty { width: 90px; }
table.spec { border-collapse: collapse; width: 100%; margin: 10px 0 20px; font-size: .96rem; }
table.spec th, table.spec td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec th { width: 42%; color: var(--ink-2); font-weight: 500; background: var(--paper); }
.note { font-size: .88rem; color: var(--ink-2); border-left: 3px solid var(--line); padding-left: 12px; }
@media (max-width: 820px) { .pd { grid-template-columns: 1fr; } }

/* klasy obciążenia */
.classes { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; border: 1px solid var(--line); background: var(--card); }
.klass { padding: 18px; border-right: 1px solid var(--line); }
.klass:last-child { border-right: 0; }
.klass .kc { font: 700 2rem/1 var(--font-d); color: var(--brand); }
.klass .kn { font: 600 .8rem var(--font-b); color: var(--ink-2); letter-spacing: .06em; margin: 2px 0 8px; }
.klass p { font-size: .92rem; margin: 0; }
@media (max-width: 700px) { .klass { border-right: 0; border-bottom: 1px solid var(--line); } }
.ordered { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 760px; }
.ordered li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.ordered li::before { content: counter(s); font: 700 1.5rem var(--font-d); width: 44px; height: 44px; display: grid; place-items: center; background: var(--brand-t); color: var(--brand-d); }

/* aktualności */
.news { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.news article { background: var(--card); border: 1px solid var(--line); padding: 20px; }
.news time { font: 600 .82rem var(--font-b); letter-spacing: .08em; color: var(--brand); }
.news h3 { margin: 6px 0 8px; font-size: 1.2rem; }
.news p { margin: 0; color: var(--ink-2); }

/* kontakt */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; align-items: start; }
.cbox { background: var(--card); border: 1px solid var(--line); padding: 22px; }
.cbox dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.cbox dt { color: var(--ink-2); font-weight: 500; }
.cbox dd { margin: 0; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); }
.chk input { width: auto; margin-top: 4px; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

/* stopka */
footer.site-foot { background: #f3f9fe; color: var(--ink); border-top: 4px solid var(--signal); padding-block: 44px 20px; margin-top: 0; }
footer.site-foot a { color: var(--brand); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
footer h4 { color: var(--brand-d); font: 600 .85rem var(--font-b); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-bar { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .88rem; color: var(--ink-2); }
.foot-bar button { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print { .topbar, .site-head, .admin-bar, footer.site-foot, .hero-ctl { display: none !important; } }

/* ——— menu produktów: drzewo działów ——— */
.nav > .ni.mega-host { position: static; }
.site-head > .wrap { position: relative; }
.mega-host > .mega { left: 0; right: 0; width: auto; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px 28px; max-height: calc(100vh - 140px); overflow: auto; }
.mega .mcol.wide { grid-column: span 2; }
.mega a.mh { font: 700 1.05rem var(--font-d); text-transform: uppercase; letter-spacing: .06em; color: var(--brand-d); padding: 0 0 6px; margin-bottom: 8px; border-bottom: 2px solid var(--signal); }
.mega .mlist { display: block; }
.mega .mcol.wide .mlist { columns: 2; column-gap: 26px; }
.mega .mg { break-inside: avoid; margin-bottom: 8px; }
.mega a.m1 { font-weight: 600; padding: 4px 0 2px; }
.mega a.m2 { font-weight: 400; font-size: .9rem; color: var(--ink-2); padding: 2px 0 2px 12px; }
.mega a.m2:hover, .mega a.m1:hover { color: var(--brand); }
@media (max-width: 960px) {
  .nav > .ni.mega-host { position: relative; }
  .mega-host > .mega { max-height: none; }
  .mega .mcol.wide { grid-column: auto; }
  .mega .mcol.wide .mlist { columns: 1; }
}

/* ——— katalog: podkategorie, drzewo, „pokaż więcej” ——— */
.side a.cl.d0 { font-weight: 700; margin-top: 4px; }
.side a.cl.d1 { padding-left: 20px; font-size: .94rem; }
.side a.cl.d2 { padding-left: 34px; font-size: .88rem; color: var(--ink-2); }
.side a.cl.d3 { padding-left: 48px; font-size: .86rem; color: var(--ink-2); }
.side a.cl[aria-current="page"] { color: #fff; }
.subcats { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.subcats .lab { font: 600 .8rem var(--font-b); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-right: 4px; }
.subcats a.sub { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; font-weight: 500; font-size: .92rem; text-decoration: none; }
.subcats a.sub:hover { border-color: var(--brand); color: var(--brand); }
.subcats a.sub .n { font-size: .78rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.more { display: flex; justify-content: center; margin: 26px 0 0; }
.chip.var { background: color-mix(in srgb, var(--signal) 22%, var(--card)); border-color: transparent; color: var(--ink); }

/* ——— strona produktu: galeria, warianty, opis ——— */
.galbox { display: grid; gap: 10px; min-width: 0; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumbs .th { width: 72px; height: 54px; padding: 0; border: 2px solid var(--line); background: #fff; cursor: pointer; overflow: hidden; }
.thumbs .th img { width: 100%; height: 100%; object-fit: contain; display: block; }
.thumbs .th[aria-current="true"] { border-color: var(--brand); }
.thumbs .th:hover { border-color: var(--signal); }
.opts { display: grid; gap: 16px; margin: 16px 0 6px; }
.opt-h { font-size: .92rem; color: var(--ink-2); margin-bottom: 6px; }
.opt-h b { color: var(--ink); }
.opt-b { display: flex; flex-wrap: wrap; gap: 8px; }
.vbtn { background: var(--card); color: var(--ink); border: 1.5px solid var(--line); border-radius: 4px; padding: 8px 14px; font: 600 .92rem var(--font-b); cursor: pointer; }
.vbtn:hover { border-color: var(--brand); }
.vbtn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.buyp { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 4px; }
.was { color: var(--ink-2); text-decoration: line-through; font-size: .94rem; margin-bottom: 4px; }
.sku { color: var(--ink-2); font-size: .92rem; margin: 4px 0; }
.sku b { color: var(--ink); }
.stock { background: color-mix(in srgb, var(--warn) 14%, var(--card)); border-left: 4px solid var(--warn); padding: 8px 12px; margin: 10px 0; font-size: .92rem; }
.pdetail { display: grid; gap: 8px; padding-bottom: 40px; max-width: 980px; }
.pdetail h2 { margin-bottom: 10px; }
.pdetail section { margin-bottom: 22px; }
.md { display: grid; gap: 12px; }
.md p, .md ul, .md h3 { margin: 0; }
.md h3 { font-size: 1.2rem; margin-top: 8px; }
.md ul { padding-left: 1.2em; display: grid; gap: 4px; }
.md figure { margin: 4px 0; }
.md img { max-width: 100%; height: auto; display: block; background: #fff; border: 1px solid var(--line); }
.row-btns .btn { flex: 0 0 auto; }

[hidden] { display: none !important; }

@media (max-width: 600px) { .logo-mark { height: 64px; } .site-head .wrap { min-height: 80px; } .logo { gap: 8px; } .logo-txt { font-size: 1.1rem; } .foot-logo { height: 90px; } }

.logo-txt { white-space: nowrap; }
.nav a.nl, .nav button.nl { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1100px) { .nav a.nl, .nav button.nl { padding: 10px 9px; font-size: .92rem; } }
@media (max-width: 600px) { .logo-txt { white-space: normal; } }

/* nagłówek zmniejsza się po przewinięciu strony */
.site-head.compact .wrap { min-height: 72px; }
.site-head.compact .logo-mark { height: 56px; }
@media (max-width: 600px) { .site-head.compact .wrap { min-height: 60px; } .site-head.compact .logo-mark { height: 44px; } }

/* ——— O firmie ——— */
.about-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 8px; }
.about-top.one { grid-template-columns: minmax(0, 70ch); }
.about-text { max-width: 70ch; }
.about-text p { margin: 0 0 1.1em; }
.about-lead { font-size: 1.4rem; line-height: 1.5; color: var(--ink); font-weight: 500; }
.about-stats { display: grid; gap: 14px; }
.about-stat { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--signal); padding: 18px 22px; display: grid; gap: 4px; }
.about-stat strong { font: 700 2.6rem/1.05 var(--font-d); color: var(--brand); letter-spacing: .01em; }
.about-stat span { color: var(--ink-2); font-size: 1rem; }
.about-sec { background: var(--brand-t); border-block: 1px solid var(--line); padding-block: 52px; margin-top: 12px; }
.about-sec h2 { margin-bottom: 14px; }
.about-sec .about-text { max-width: 78ch; }
.about-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 26px 0 0; max-width: none; }
.about-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand); padding: 20px 22px 22px; }
.about-card h3 { margin: 10px 0 6px; font-size: 1.3rem; }
.about-card p { margin: 0; color: var(--ink-2); }
.about-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font: 700 1rem var(--font-b); }
@media (max-width: 860px) { .about-top { grid-template-columns: 1fr; gap: 24px; } .about-lead { font-size: 1.2rem; } .about-sec { padding-block: 36px; } }

/* ——— dobór kanału: klasa, szerokość, wysokość ——— */
.tools.facets { align-items: end; margin-top: -4px; padding: 14px 16px; background: var(--brand-t); border: 1px solid var(--line); border-left: 4px solid var(--brand); }
.tools.facets[hidden] { display: none; }
.facet-h { flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: baseline; }
.facet-h strong { font: 600 1.05rem var(--font-d); letter-spacing: .03em; text-transform: uppercase; color: var(--brand); }
.tools.facets .fld select { min-width: 150px; }
.card .hsel { margin-top: 8px; font-weight: 600; color: var(--brand); font-size: .92rem; }
.htab-sec { padding-block: 8px 24px; }
table.htab { border-collapse: collapse; width: 100%; font-size: .96rem; background: #fff; }
table.htab th { text-align: left; padding: 9px 12px; font: 600 .78rem var(--font-b); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); border-bottom: 2px solid var(--line); white-space: nowrap; background: var(--paper); }
table.htab td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.htab tbody tr { cursor: pointer; }
table.htab tbody tr:hover td { background: color-mix(in srgb, var(--brand-t) 70%, #fff); }
table.htab tbody tr.on td { background: var(--brand-t); font-weight: 600; }
table.htab tbody tr.on td:first-child { box-shadow: inset 4px 0 0 var(--brand); }
@media (max-width: 640px) { table.htab { font-size: .9rem; } table.htab .c-sku { display: none; } table.htab th, table.htab td { padding-inline: 8px; } }

/* adres magazynu */
.wh-note { color: var(--ink-2); font-size: .92em; }
.foot-wh { margin-top: 12px; }
.foot-wh strong { font-weight: 600; }


/* ═══════════ Uzupełnienia motywu WordPress ═══════════ */
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--brand); color: #fff; padding: 10px 16px; z-index: 200; border-radius: 0 0 4px 4px; }
.skip-link:focus { top: 0; text-decoration: none; }
.topbar .tb-search { display: flex; gap: 0; }
.topbar .tb-search input[type=search] { padding: 4px 10px; font-size: .88rem; width: 190px; border-radius: 4px 0 0 4px; border-right: 0; }
.topbar .tb-search button { background: var(--brand); color: #fff; border: 1.5px solid var(--brand); border-radius: 0 4px 4px 0; padding: 0 12px; cursor: pointer; font: 600 .85rem var(--font-b); }
.topbar .tb-social { display: flex; gap: 12px; }
.topbar .tb-social a { font-weight: 600; }
@media (max-width: 700px) { .topbar .tb-search input[type=search] { width: 130px; } }
.logo img.logo-mark { height: 96px; width: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav li.ni { position: relative; }
.nav li.mega-host { position: static; }
.nav li.current-menu-item > a.nl, .nav li.current-menu-ancestor > a.nl, .nav li.current_page_item > a.nl { color: var(--brand); background: var(--brand-t); }
.nav .nl .caret { font-size: .7rem; opacity: .7; }
@media (max-width: 960px) {
  .nav ul { flex-direction: column; align-items: stretch; width: 100%; }
  .nav li.mega-host { position: relative; }
}
.inq-btn .badge[hidden] { display: none; }

/* treść stron i wpisów */
.page-head { padding-block: 10px 6px; }
.page-head h1 { margin-bottom: .25em; }
.page-head .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 70ch; }
.entry { max-width: 78ch; padding-bottom: 48px; }
.entry.wide { max-width: none; }
.entry h2 { margin-top: 1.6em; }
.entry h3 { margin-top: 1.3em; }
.entry ul, .entry ol { padding-left: 1.3em; margin: 0 0 1em; }
.entry li { margin-bottom: .3em; }
.entry img { height: auto; }
.entry table { border-collapse: collapse; width: 100%; margin: 0 0 1.2em; }
.entry th, .entry td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry blockquote { border-left: 4px solid var(--signal); margin: 0 0 1em; padding: 4px 0 4px 16px; color: var(--ink-2); }
.klass-wrap { overflow-x: auto; margin: 0 0 1.4em; }
table.klass-table { border-collapse: collapse; width: 100%; background: #fff; border: 1px solid var(--line); }
table.klass-table th, table.klass-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
table.klass-table thead th { background: var(--brand-t); font: 600 .8rem var(--font-b); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
table.klass-table tbody th { font: 700 1.3rem var(--font-d); color: var(--brand); white-space: nowrap; }
.post-meta { color: var(--ink-2); font-size: .92rem; margin-bottom: 14px; }
.post-list { display: grid; gap: 18px; max-width: 860px; padding-bottom: 40px; }
.post-list article { background: var(--card); border: 1px solid var(--line); padding: 20px; }
.post-list h2 { font-size: 1.5rem; margin: 4px 0 8px; }
.post-list h2 a { color: var(--ink); }

/* lista produktów */
.cat-head { margin-bottom: 14px; }
.cat-desc { max-width: 80ch; margin-bottom: 20px; }
.cat-desc > :last-child { margin-bottom: 0; }
.tools .fld input[type=search] { width: 100%; }
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 0; margin: 28px 0 0; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 4px; background: var(--card); color: var(--ink); font-weight: 600; text-decoration: none; }
.pagination a.page-numbers:hover { border-color: var(--brand); color: var(--brand); }
.pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .page-numbers.dots { border: 0; background: none; }
.card .pic img, .tile .pic img { width: 100%; height: 100%; object-fit: contain; background: #fff; display: block; }
.tile .pic { aspect-ratio: 16 / 10; }
svg.ph { width: 100%; height: 100%; }
.card .pic { text-decoration: none; }

/* strona produktu */
.pd .gal { position: relative; }
.pd .gal .gal-i { width: 100%; height: 100%; }
.pd .gal .gal-i[hidden] { display: none; }
.pd .gal img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.buybox .big { font: 700 2.4rem/1 var(--font-d); margin: 14px 0 4px; }
.buybox .big small { font: 500 .95rem var(--font-b); color: var(--ink-2); margin-left: 6px; }
.buybox .big.ask { font-size: 1.5rem; color: var(--ink-2); }
.buybox .alt-price { color: var(--ink-2); margin-bottom: 14px; }
.buybox .buy { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; }
.buybox input.qty { width: 90px; }
.pd .lead-short { color: var(--ink-2); margin: 0 0 12px; }
.pdetail h2 { font-size: 1.5rem; margin-top: 8px; }
.entry-prod { max-width: 80ch; }
.entry-prod h2, .entry-prod h3 { font-size: 1.25rem; margin-top: 1.2em; }
.entry-prod ul { padding-left: 1.2em; }
.related { padding-block: 8px 48px; }
table.htab tbody tr[data-vi] { cursor: pointer; }

/* zapytanie ofertowe i formularze */
.inq { max-width: 860px; margin-bottom: 36px; }
.contact-page .inq { max-width: none; margin-bottom: 0; }
.inq-basket { border: 1px solid var(--line); background: var(--card); padding: 16px 18px; margin-bottom: 22px; }
.inq-basket h2 { font-size: 1.4rem; }
.inq-empty { color: var(--ink-2); margin: 0; }
.inq-list { list-style: none; margin: 0; padding: 0; }
.inq-item { display: grid; grid-template-columns: 56px 1fr 84px auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.inq-item:last-child { border-bottom: 0; }
.inq-item img { width: 56px; height: 56px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.inq-item:not(:has(img)) { grid-template-columns: 1fr 84px auto auto; }
.inq-info { display: grid; gap: 2px; min-width: 0; }
.inq-name { font-weight: 600; color: var(--ink); }
.inq-meta { color: var(--ink-2); font-size: .88rem; }
.inq-unit { color: var(--ink-2); font-size: .9rem; }
.inq-del { background: none; border: 0; color: var(--bad); cursor: pointer; font: 600 .9rem var(--font-b); text-decoration: underline; }
.inq-form { display: grid; gap: 14px; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fld > span { font: 600 .8rem var(--font-b); color: var(--ink-2); letter-spacing: .04em; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.inq-status { min-height: 1.4em; font-weight: 600; }
.inq-status.is-ok { color: var(--ok); }
.inq-status.is-err { color: var(--bad); }
.inq-ok { border: 1px solid var(--ok); background: color-mix(in srgb, var(--ok) 10%, var(--card)); padding: 20px; }
.inq-err { border: 1px solid var(--bad); background: color-mix(in srgb, var(--bad) 8%, var(--card)); padding: 12px 16px; margin-bottom: 16px; }
@media (max-width: 640px) {
  .fld-row { grid-template-columns: 1fr; }
  .inq-item { grid-template-columns: 56px 1fr auto; }
  .inq-item .inq-qty { grid-column: 2; width: 90px; }
  .inq-item .inq-unit { display: none; }
}
.contact-page .lead { font-size: 1.1rem; color: var(--ink-2); max-width: 70ch; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 36px; align-items: start; margin-bottom: 40px; }
.cbox-links { margin: 14px 0 0; color: var(--ink-2); }
.cform h2 { font-size: 1.5rem; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.pr-toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 4px; z-index: 300; font-weight: 500; box-shadow: var(--shadow); max-width: calc(100vw - 32px); display: flex; gap: 14px; align-items: center; }
.pr-toast a { color: #bfe3fb; font-weight: 700; }

/* stopka: linki społecznościowe */
.foot-social { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; }
.foot-menu ul { display: grid; gap: 6px; }
.empty-state { border: 1px dashed var(--line); padding: 32px; text-align: center; color: var(--ink-2); background: var(--card); }
.search-form { display: flex; gap: 8px; max-width: 520px; margin: 14px 0 24px; }
.search-form input[type=search] { flex: 1; }
.error-404 { padding-block: 40px 70px; text-align: center; }

/* slider na stronie głównej: brak zdjęcia */
.slide .pic.nophoto { background: linear-gradient(135deg, var(--brand-t), #fff); border: 1px solid var(--line); }
.slide .pic img { width: 100%; height: 100%; object-fit: cover; }
.slide .sub { font-size: 1.15rem; color: var(--ink-2); max-width: 56ch; margin: 10px 0 22px; }
.slide .acts { display: flex; flex-wrap: wrap; gap: 10px; }
.slide.only-text.on { grid-template-columns: 1fr; }
.hero.single .hero-ctl { display: none; }
.hero.single .slide.on { padding-block: 44px; }

/* ——— uzupełnienia: nagłówki slajdów, przycisk menu, kompaktowy nagłówek ——— */
.slide h2 { color: var(--ink); font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.nav button.nl.tog { padding: 10px 8px; margin-left: -6px; }
.site-head.compact .wrap { min-height: 72px; }
.site-head.compact .logo-mark { height: 56px; }
.tbl-wrap { overflow-x: auto; }
table.htab td.num { white-space: nowrap; text-align: right; }
.lead-p { font-size: 1.12rem; }
.buybox .sku { color: var(--ink-2); font-size: .92rem; }
.buybox .stock { color: var(--warn); font-weight: 600; margin: 8px 0; }
.buybox .was { text-decoration: line-through; color: var(--ink-2); }
.buybox .row-btns { margin-top: 0; }
[hidden] { display: none !important; }
.nav > .ni { display: flex; align-items: center; }
@media (max-width: 960px) { .nav > .ni { flex-wrap: wrap; } .nav > .ni > a.nl { flex: 1; } .nav > .ni > .mega { flex-basis: 100%; } }
.entry .cbox h2, .entry .cform h2, .contact-page h2 { margin-top: 0; }
