/* HOCO theme — design system (WS2) */
:root{
  --bg:#0a0a0a; --surface:#161616; --surface-2:#1e1e1e;
  --bg-light:#ffffff; --bg-light-alt:#f6f7f9; --border:#282828;
  --text:#ffffff; --text-muted:#a0a0a0; --text-on-light:#0a0a0a; --muted-on-light:#565656;
  --brand:#09a9e5; --brand-600:#0787bb; --allegro:#ff5a00; --allegro-600:#e04e00; --badge:#09a9e5;
  --r-card:16px; --r-btn:999px;
  --shadow:0 8px 30px rgba(0,0,0,.35); --glow:0 0 0 1px var(--border);
  --ease:cubic-bezier(.22,.61,.36,1); --dur:240ms;
  --font:"Manrope",system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-head:"Space Grotesk",var(--font);
}
/* Reset/base — scope pod .hoco-scope, by nie zaburzyć paneli/checkout skórki */
.hoco-scope{ font-family:var(--font); color:var(--text); background:var(--bg); line-height:1.6; }
.hoco-scope h1,.hoco-scope h2,.hoco-scope h3{ font-family:var(--font-head); line-height:1.05; letter-spacing:-.02em; margin:0 0 .5em; }
.hoco-scope h1{ font-size:clamp(2.5rem,5vw,4rem); font-weight:700; }
.hoco-scope h2{ font-size:2rem; font-weight:700; }
.hoco-scope h3{ font-size:1.5rem; font-weight:600; }
.hoco-scope p{ font-size:1.0625rem; }
.hoco-scope a{ color:var(--brand); text-decoration:none; }
.hoco-scope a:hover{ color:var(--brand-600); }
@media (prefers-reduced-motion:reduce){ .hoco-scope *{ animation:none!important; transition:none!important; } }

/* Buttons — prefiks .hoco-scope by bic specyficznosc reguly `a` */
.hoco-scope .hoco-btn{ display:inline-flex; align-items:center; gap:.5em; font-family:var(--font);
  font-weight:700; font-size:1rem; padding:14px 28px; border-radius:var(--r-btn);
  border:0; cursor:pointer; transition:transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease); text-decoration:none; }
.hoco-scope .hoco-btn:hover{ transform:scale(1.02); }
.hoco-scope .hoco-btn--allegro{ background:var(--allegro); color:#fff; }
.hoco-scope .hoco-btn--allegro:hover{ background:var(--allegro-600); color:#fff; }
.hoco-scope .hoco-btn--b2b{ background:transparent; color:var(--brand); box-shadow:inset 0 0 0 1px var(--brand); }
.hoco-scope .hoco-btn--b2b:hover{ background:var(--brand); color:#fff; }
.hoco-scope .hoco-btn--ghost{ background:transparent; color:var(--text); }
.hoco-scope .hoco-btn--ghost:hover{ background:var(--surface); color:var(--text); }

/* Product card (bez koszyka) */
.hoco-card{ background:var(--surface); border-radius:var(--r-card); box-shadow:var(--glow);
  overflow:hidden; display:flex; flex-direction:column; transition:transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.hoco-card:hover{ transform:scale(1.02); box-shadow:var(--shadow); }
.hoco-card__media{ aspect-ratio:1/1; background:var(--bg-light); display:flex; align-items:center; justify-content:center; }
.hoco-card__media img{ width:100%; height:100%; object-fit:contain; }
.hoco-card__body{ padding:16px; display:flex; flex-direction:column; align-items:flex-start; gap:6px; }
.hoco-card__label{ font-size:.75rem; text-transform:uppercase; letter-spacing:.08em; color:var(--text-muted); }
.hoco-card__name{ font-weight:600; font-size:1.0625rem; color:var(--text); }
.hoco-card__price{ color:var(--brand); font-weight:700; font-family:var(--font-head); }
.hoco-card__cta{ margin-top:10px; }
.hoco-badge{ align-self:flex-start; display:inline-block; background:var(--badge); color:#001018; font-weight:700;
  font-size:.7rem; text-transform:uppercase; letter-spacing:.06em; padding:4px 10px; border-radius:var(--r-btn); }

/* Layout */
.hoco-section{ padding:64px 0; background:var(--bg); }
.hoco-section--light{ background:var(--bg-light); color:var(--text-on-light); }
.hoco-container{ max-width:1280px; margin:0 auto; padding:0 24px; }
.hoco-scroll-row{ display:grid; grid-auto-flow:column; grid-auto-columns:minmax(220px,1fr); gap:16px; overflow-x:auto; scroll-snap-type:x mandatory; }
.hoco-scroll-row>*{ scroll-snap-align:start; }
/* Banner serii */
.hoco-banner{ position:relative; border-radius:var(--r-card); overflow:hidden; min-height:320px; display:flex; align-items:flex-end; }
.hoco-banner img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform var(--dur) var(--ease); }
.hoco-banner:hover img{ transform:scale(1.04); }
.hoco-banner__overlay{ position:absolute; inset:0; background:linear-gradient(rgba(10,10,10,.15),rgba(10,10,10,.8)); }
.hoco-banner__content{ position:relative; padding:32px; color:#fff; }

/* SEO akordeon — czytelność długiego tekstu na ciemnym */
.hoco-seo{ background:var(--bg); }
.hoco-seo__item{ border-top:1px solid var(--border); }
.hoco-seo__toggle{ list-style:none; text-align:left; color:var(--text);
  font:600 1.25rem/1.3 var(--font-head); padding:20px 0; cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:16px; }
.hoco-seo__toggle::-webkit-details-marker{ display:none; }
.hoco-seo__toggle span{ color:var(--brand); font-size:1.6rem; line-height:1; transition:transform var(--dur) var(--ease); }
.hoco-seo__item[open] .hoco-seo__toggle span{ transform:rotate(45deg); }
.hoco-seo__body{ color:var(--text); font-size:1.0625rem; line-height:1.7; max-width:72ch; padding:0 0 20px; }
.hoco-seo__body a{ color:var(--brand); }

/* Pasek zaufania — redesign (ikony, wyróżnione liczby, separatory) */
.hoco-trust{ background:var(--surface); border-radius:var(--r-card); border:1px solid var(--border); overflow:hidden; }
.hoco-trust__row{ display:grid; grid-template-columns:repeat(3,1fr); }
.hoco-trust__item{ display:flex; align-items:center; gap:16px; padding:24px 28px; }
.hoco-trust__item:not(:last-child){ border-right:1px solid var(--border); }
.hoco-trust__item svg{ width:34px; height:34px; stroke:var(--brand); fill:none; stroke-width:1.8; flex:0 0 auto; }
.hoco-trust__k{ font-family:var(--font-head); font-weight:700; font-size:1.1rem; line-height:1.2; color:var(--text); }
.hoco-trust__s{ color:var(--text-muted); font-size:.85rem; margin-top:2px; }
.hoco-trust__hl{ color:var(--brand); }
@media (max-width:720px){ .hoco-trust__row{ grid-template-columns:1fr; } .hoco-trust__item:not(:last-child){ border-right:0; border-bottom:1px solid var(--border); } }

/* ============================================================================
   PODSTRONY — CIEMNY MOTYW 1:1 z SG (decyzja usera 2026-07-23)
   ----------------------------------------------------------------------------
   Podstrony NIE maja klasy .hoco-scope na <body> (kazdy szablon strony renderuje
   wlasny <body>), wiec reguly ida globalnie. Naglowek i stopka to ten sam markup
   co na SG — wstrzykiwany do body_head.tpl/footer.tpl przez tools/gen_skin_chrome.py,
   dlatego style .sg-* musza byc TU, a nie w <style> wewnatrz sg-new.html.
   ========================================================================== */

/* --- chrome SG (naglowek/stopka) — zrodlo: <style> w tpl-work/sg-new.html.
       Reguly z @media MUSZA zachowac otoczke: przy pierwszej ekstrakcji
       `.sg-menu{display:none}` wyrwane z media query ukrylo menu na kazdej
       szerokosci. --- */
/* SG layout (do scalenia z hoco-theme.css po akceptacji) */
.sg-topbar{background:var(--surface); border-bottom:1px solid var(--border); font-size:.85rem;}
.sg-topbar__in{display:flex; align-items:center; justify-content:space-between; gap:16px; padding:8px 24px; max-width:1280px; margin:0 auto;}
.sg-topbar__l{color:var(--text-muted);}
.sg-topbar__l b{color:var(--text);}
.sg-topbar__r{display:flex; align-items:center; gap:18px;}
.sg-topbar a{color:var(--brand);}
.sg-nav{position:sticky; top:0; z-index:50; background:rgba(10,10,10,.85); backdrop-filter:blur(10px); border-bottom:1px solid var(--border);}
.sg-nav__in{display:flex; align-items:center; gap:32px; padding:16px 24px; max-width:1280px; margin:0 auto;}
.sg-logo{font-family:var(--font-head); font-weight:700; font-size:1.6rem; color:var(--text); letter-spacing:-.03em;}
.sg-logo b{color:var(--brand);}
.sg-menu{display:flex; gap:20px; margin-left:8px; flex:1; align-items:center;}
/* nazwy kategorii z live sa dluzsze niz zmyslone „Audio/Kable" — bez nowrap lamaly sie na 2 linie */
.sg-menu a{color:var(--text); font-weight:500; font-size:.9rem; white-space:nowrap;}
.sg-menu a:hover{color:var(--brand);}
.sg-nav__r{display:flex; align-items:center; gap:16px;}
.sg-nav__r .lang{color:var(--text-muted); font-size:.85rem;}
.sg-search{color:var(--text-muted);}
.sg-footer{background:#060606; border-top:1px solid var(--border); padding:56px 0 28px;}
.sg-footer__grid{display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:32px;}
.sg-footer__brand .sg-logo{font-size:1.6rem;}
.sg-footer__brand p{color:var(--text-muted); font-size:.9rem; margin-top:10px; max-width:32ch;}
.sg-footer h4{font-family:var(--font-head); font-size:.85rem; text-transform:uppercase; letter-spacing:.08em; color:var(--text-muted); margin-bottom:12px;}
.sg-footer a{display:block; color:var(--text); font-size:.9rem; padding:4px 0;}
.sg-footer a:hover{color:var(--brand);}
.sg-footer__bottom{border-top:1px solid var(--border); margin-top:32px; padding-top:20px; color:var(--text-muted); font-size:.85rem; display:flex; justify-content:space-between; gap:16px;}
@media(max-width:1180px){ .sg-menu{gap:14px} .sg-menu a{font-size:.85rem} }
@media(max-width:900px){ .sg-menu{display:none} }
@media(max-width:900px){ .sg-shelf,.sg-rev-grid,.sg-stats,.sg-footer__grid,.sg-blog{grid-template-columns:repeat(2,1fr)} }

/* --- baza ciemna --- */
html, body{ background:var(--bg); color:var(--text); }
body{ font-family:var(--font); line-height:1.6; }
body h1, body h2, body h3, body h4{ font-family:var(--font-head); letter-spacing:-.02em; color:var(--text); }
body a{ color:var(--brand); text-decoration:none; }
body a:hover{ color:var(--brand-600); }
body p, body li, body td, body dd, body label, body span{ color:inherit; }

/* Kontenery skorki */
.wrap, .main, .innermain, .container, .row, .leftcol, .rightcol,
.content, .innerbox, .box{ background:transparent; color:var(--text); }
.box, .product-main-box{ border-color:var(--border); }

/* Naglowki sekcji/boxow */
.boxhead{ border-bottom:2px solid var(--brand); padding-bottom:8px; margin-bottom:16px; background:transparent; }
.boxhead span{ color:var(--text); font-family:var(--font-head); font-weight:700; }

/* Powierzchnie: karty, tabele, ramki */
table, thead, tbody, tr, td, th{ background:transparent; border-color:var(--border); color:var(--text); }
hr{ border-color:var(--border); }
img.px1{ opacity:0; }

/* Ceny */
.price, .main-price, .price__regular{ font-family:var(--font-head); font-weight:700; color:var(--text); }
.otherprice, .price__omnibus, .price-netto, .price__additional-info,
.price__currency, .unit-price-container{ color:var(--text-muted); }

/* Opisy i tresci redakcyjne */
.categorydesc, .product-short-description, .article-content, .description,
.resetcss, .fr-view{ color:var(--text-muted); line-height:1.75; }
.categorydesc h2, .categorydesc h3, .description h2, .description h3,
.fr-view h2, .fr-view h3{ color:var(--text); margin-top:1.4em; }

/* Przyciski — ksztalt i kolor jak w SG */
.btn, button.btn, input[type="submit"], input[type="button"], button{
  border-radius:var(--r-btn); font-family:var(--font); font-weight:600;
  transition:transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.btn:hover{ transform:scale(1.02); }
.btn-red, .availability-notifier-btn, input[type="submit"]{
  background:var(--allegro); border-color:var(--allegro); color:#fff;
}
.btn-red:hover, .availability-notifier-btn:hover, input[type="submit"]:hover{
  background:var(--allegro-600); border-color:var(--allegro-600); color:#fff;
}

/* Formularze — czytelne na ciemnym */
input[type="text"], input[type="email"], input[type="password"], input[type="search"],
input[type="tel"], input[type="number"], select, textarea{
  background:var(--surface); color:var(--text); border:1px solid var(--border);
  border-radius:10px; font-family:var(--font);
}
input::placeholder, textarea::placeholder{ color:var(--text-muted); }
input:focus, select:focus, textarea:focus{ outline:none; border-color:var(--brand); }

/* Nawigacja pomocnicza */
.breadcrumbs, .breadcrumbs a, .paginator, .paginator a{ color:var(--text-muted); }
.breadcrumbs a:hover, .paginator a:hover{ color:var(--brand); }

/* Menu boczne kategorii (lewa kolumna na podstronach) */
.leftcol .box a{ color:var(--text); }
.leftcol .box a:hover{ color:var(--brand); }

/* Zdjecia produktow zostaja na bialym tle — packshoty maja biale tlo wlasne */
.photos, .gallery, .product-main-box .photo, .boximgsize{ background:#fff; border-radius:var(--r-card); }

/* --- klasy uzywane przez chrome SG, potrzebne rowniez POZA .hoco-scope --- */
.hoco-btn{ display:inline-flex; align-items:center; gap:.5em; font-family:var(--font);
  font-weight:600; border-radius:var(--r-btn); padding:12px 24px; border:0; cursor:pointer;
  text-decoration:none; transition:transform var(--dur) var(--ease), background var(--dur) var(--ease); }
.hoco-btn:hover{ transform:scale(1.02); }
.hoco-btn--allegro{ background:var(--allegro); color:#fff; }
.hoco-btn--allegro:hover{ background:var(--allegro-600); color:#fff; }
.hoco-container{ max-width:1280px; margin:0 auto; padding:0 24px; }

/* ===== PODSTRONY: kategoria (.kat-*) i karta produktu (.pdp-*) =====
   Zrodlo: tpl-work/design/kategoria.html i produkt.html (makiety zaakceptowane 2026-07-23).
   Reguly @media MUSZA zachowac otoczke — patrz pulapka z .sg-menu. */
.kat-hero{ padding:44px 0 8px; }
.kat-hero__crumbs{ color:var(--text-muted); font-size:.85rem; margin-bottom:18px; }
.kat-hero__crumbs a{ color:var(--text-muted); }
.kat-hero__crumbs a:hover{ color:var(--brand); }
.kat-hero h1{ font-size:clamp(2rem,3.6vw,2.8rem); margin:0 0 12px; }
.kat-hero__lead{ color:var(--text-muted); max-width:70ch; line-height:1.7; margin:0; }
.kat-hero__count{ color:var(--brand); font-weight:600; font-size:.9rem; margin-top:14px; }

/* Podkategorie jako chipsy — zastepuja lewa kolumne */
.kat-chips{ display:flex; flex-wrap:wrap; gap:10px; padding:26px 0 6px; }
.kat-chip{ display:inline-flex; align-items:center; gap:8px; padding:9px 16px; border-radius:999px;
  background:var(--surface); border:1px solid var(--border); color:var(--text);
  font-size:.88rem; font-weight:500; white-space:nowrap; transition:all var(--dur) var(--ease); }
.kat-chip:hover{ border-color:var(--brand); color:var(--brand); }
.hoco-scope .kat-chip--on{ background:var(--brand); border-color:var(--brand); color:#fff; }
.hoco-scope .kat-chip--on:hover{ color:#fff; }
.hoco-scope .kat-chip{ color:var(--text); }
.kat-chip b{ opacity:.55; font-weight:500; }

/* Pasek narzedzi: liczba + sortowanie */
.kat-bar{ display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:22px 0; margin-top:14px; border-top:1px solid var(--border); }
.kat-bar__l{ color:var(--text-muted); font-size:.9rem; }
.kat-bar__r{ display:flex; align-items:center; gap:10px; }
.kat-select{ background:var(--surface); color:var(--text); border:1px solid var(--border);
  border-radius:999px; padding:9px 16px; font-family:var(--font); font-size:.88rem; }

/* Siatka produktow */
.kat-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; padding-bottom:8px; }
@media(max-width:1080px){ .kat-grid{ grid-template-columns:repeat(3,1fr) } }
@media(max-width:820px){ .kat-grid{ grid-template-columns:repeat(2,1fr) } }

.pcard{ display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-card); overflow:hidden; transition:border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.pcard:hover{ border-color:var(--brand); transform:translateY(-3px); }
.pcard__media{ position:relative; background:#fff; aspect-ratio:1/1; display:flex; align-items:center; justify-content:center; }
.pcard__media img{ width:100%; height:100%; object-fit:contain; padding:14px; }
.pcard__tag{ position:absolute; top:12px; left:12px; background:var(--brand); color:#fff;
  font-size:.7rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; padding:5px 10px; border-radius:999px; }
.pcard__b{ display:flex; flex-direction:column; gap:8px; padding:18px; flex:1; }
.pcard__cat{ color:var(--text-muted); font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; }
.pcard__name{ font-weight:600; font-size:.95rem; line-height:1.4; color:var(--text);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:2.7em; }
.pcard__rate{ color:var(--text-muted); font-size:.82rem; }
.pcard__rate b{ color:#ffb400; font-weight:600; }
.pcard__foot{ margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:10px; padding-top:8px; }
.pcard__price{ font-family:var(--font-head); font-weight:700; font-size:1.15rem; color:var(--text); }
.pcard__cta{ padding:9px 16px; font-size:.82rem; }

/* Paginacja */
.kat-pager{ display:flex; justify-content:center; gap:8px; padding:34px 0 10px; }
.kat-pager a{ min-width:40px; height:40px; display:inline-flex; align-items:center; justify-content:center;
  border-radius:999px; border:1px solid var(--border); color:var(--text); font-size:.9rem; }
.kat-pager a:hover{ border-color:var(--brand); color:var(--brand); }
.kat-pager .on{ background:var(--brand); border-color:var(--brand); color:#fff; }

/* Opis SEO — na DOLE, pierwszy akapit widoczny, reszta zwinieta */
.kat-seo{ border-top:1px solid var(--border); margin-top:26px; padding:40px 0 10px; }
.kat-seo h2{ font-size:1.5rem; margin-bottom:14px; }
.kat-seo p{ color:var(--text-muted); line-height:1.75; margin:0 0 10px; }
.kat-seo h3{ font-size:1.05rem; margin:22px 0 6px; color:var(--text); }

.pdp{ padding:34px 0 10px; }
.pdp__crumbs{ color:var(--text-muted); font-size:.85rem; margin-bottom:24px; }
.pdp__crumbs a{ color:var(--text-muted); }
.pdp__crumbs a:hover{ color:var(--brand); }

.pdp__top{ display:grid; grid-template-columns:1.05fr .95fr; gap:48px; align-items:start; }
@media(max-width:980px){ .pdp__top{ grid-template-columns:1fr; gap:28px } }

/* --- galeria --- */
.pdp-gal__main{ background:#fff; border-radius:var(--r-card); aspect-ratio:1/1;
  display:flex; align-items:center; justify-content:center; overflow:hidden; }
.pdp-gal__main img{ width:100%; height:100%; object-fit:contain; padding:28px; }
.pdp-gal__thumbs{ display:grid; grid-template-columns:repeat(5,1fr); gap:10px; margin-top:12px; }
.pdp-gal__t{ background:#fff; border-radius:12px; aspect-ratio:1/1; overflow:hidden;
  border:2px solid transparent; transition:border-color var(--dur) var(--ease); cursor:pointer; }
.pdp-gal__t img{ width:100%; height:100%; object-fit:contain; padding:8px; }
.pdp-gal__t--on{ border-color:var(--brand); }
.pdp-gal__t:hover{ border-color:var(--brand); }

/* --- panel zakupowy --- */
.pdp-buy__model{ color:var(--text-muted); font-size:.78rem; letter-spacing:.1em; text-transform:uppercase; }
.pdp-buy h1{ font-size:clamp(1.5rem,2.6vw,2.1rem); line-height:1.2; margin:10px 0 14px; }
.pdp-buy__rate{ display:flex; align-items:center; gap:10px; color:var(--text-muted); font-size:.9rem; margin-bottom:22px; }
.pdp-buy__rate b{ color:#ffb400; }
.pdp-buy__rate a{ color:var(--brand); }

.pdp-price{ display:flex; align-items:baseline; gap:12px; }
.pdp-price__now{ font-family:var(--font-head); font-weight:700; font-size:2.4rem; color:var(--text); line-height:1; }
.pdp-price__was{ color:var(--text-muted); text-decoration:line-through; font-size:1.05rem; }
.pdp-price__save{ background:rgba(255,90,0,.14); color:var(--allegro); font-weight:600;
  font-size:.8rem; padding:4px 10px; border-radius:999px; }
.pdp-price__note{ color:var(--text-muted); font-size:.82rem; margin-top:8px; }

.pdp-stock{ display:inline-flex; align-items:center; gap:9px; margin:22px 0 6px;
  padding:8px 14px; border-radius:999px; background:var(--surface); border:1px solid var(--border); font-size:.88rem; }
.pdp-stock__dot{ width:8px; height:8px; border-radius:50%; background:#33c46a; }
.pdp-stock--out .pdp-stock__dot{ background:#8a8a8a; }

.pdp-cta{ display:flex; flex-direction:column; gap:10px; margin-top:20px; }
.pdp-cta .hoco-btn{ justify-content:center; padding:15px 24px; font-size:1rem; }
.pdp-cta__hint{ color:var(--text-muted); font-size:.82rem; text-align:center; margin-top:2px; }

.pdp-trust{ display:grid; grid-template-columns:repeat(3,1fr); gap:2px; margin-top:26px;
  border:1px solid var(--border); border-radius:var(--r-card); overflow:hidden; }
.pdp-trust__i{ padding:16px 14px; background:var(--surface); }
.pdp-trust__k{ font-weight:600; font-size:.86rem; color:var(--text); }
.pdp-trust__s{ color:var(--text-muted); font-size:.76rem; margin-top:3px; line-height:1.4; }

/* --- sekcje --- */
.pdp-sec{ border-top:1px solid var(--border); margin-top:56px; padding-top:40px; }
.pdp-sec h2{ font-size:1.6rem; margin-bottom:20px; }
.pdp-desc{ display:grid; grid-template-columns:1.3fr 1fr; gap:40px; align-items:start; }
@media(max-width:980px){ .pdp-desc{ grid-template-columns:1fr } }
.pdp-desc p{ color:var(--text-muted); line-height:1.8; margin:0 0 14px; }
.pdp-desc h3{ font-size:1.1rem; margin:26px 0 8px; color:var(--text); }
.pdp-desc__img{ background:#fff; border-radius:var(--r-card); overflow:hidden; }
.pdp-desc__img img{ width:100%; display:block; }

.pdp-spec{ width:100%; border-collapse:collapse; }
.pdp-spec tr{ border-bottom:1px solid var(--border); }
.pdp-spec tr:last-child{ border-bottom:0; }
.pdp-spec td{ padding:13px 0; font-size:.92rem; }
.pdp-spec td:first-child{ color:var(--text-muted); width:44%; }
.pdp-spec td:last-child{ color:var(--text); font-weight:500; }

.pdp-rel{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
@media(max-width:980px){ .pdp-rel{ grid-template-columns:repeat(2,1fr) } }








/* --- karta produktu: oryginalne bloki cen sklepowych ukryte ---
   Cena pochodzi z Allegro (js/allegro-prices.js -> .pdp-buy). Ceny ze sklepu
   myliłyby, bo koszyk jest wyłączony, a katalog i oferta Allegro się rozjeżdżają.
   Logiki Smarty nie ruszamy — blok zostaje w DOM, tylko go nie pokazujemy. */
.price__container, .price-netto__container, .unit-price-container,
.availability-notifier-container, .availability-notifier-unsubscribe-container{ display:none !important; }

/* fallback „Zapytaj o cenę" — mniejszy niż cena, bo to nie jest liczba */
.pdp-price__now.is-ask, .pcard__price.is-ask{ font-size:1.15rem; color:var(--brand); }
.pdp-price__now.is-ask{ font-size:1.5rem; }

/* --- mapa kategorii w stopce podstron ---
   Przywraca linkowanie wewnetrzne wyciete razem z {boxesLeft}/{boxesFooter}
   i headerlinks.tpl (spec: „linkowanie wewnetrzne 1:1"). 88 linkow, kompaktowo. */
.sg-catmap{ background:#060606; border-top:1px solid var(--border); padding:30px 0 40px; }
.sg-catmap h4{ font-family:var(--font-head); font-size:.8rem; text-transform:uppercase;
  letter-spacing:.08em; color:var(--text-muted); margin:0 0 16px; }
.sg-catmap__grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:6px 24px; }
.sg-catmap__grid a{ color:var(--text-muted); font-size:.82rem; line-height:1.7; }
.sg-catmap__grid a:hover{ color:var(--brand); }
@media(max-width:1080px){ .sg-catmap__grid{ grid-template-columns:repeat(3,1fr) } }
@media(max-width:720px){ .sg-catmap__grid{ grid-template-columns:repeat(2,1fr) } }

/* cena sklepowa (fallback gdy brak oferty Allegro) — wizualnie rowna cenie z Allegro */
.pcard__price.is-shop, .pdp-price__now.is-shop{ color:var(--text); }

/* naglowek sekcji listingu — na live jest <h2>Lista produktow</h2>; trzymamy go
   w strukturze dla SEO, ale nie pokazujemy (nazwa kategorii juz jest w H1) */
.sr-only-seo{ position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
/* nazwa produktu w kafelku jest <h3> (jak na live) — zerujemy domyslne style naglowka */
h3.pcard__name{ font-family:var(--font); font-size:.95rem; font-weight:600; margin:0; letter-spacing:0; }
h3.pcard__name a{ color:var(--text); }
h3.pcard__name a:hover{ color:var(--brand); }

/* ============================================================================
   POPRAWKI PO REVIEW SCREENÓW (2026-07-23, zatwierdzone)
   ========================================================================== */

/* P2 — stary panel produktu (dostępność, przechowalnia, oceny, koszyk) zastąpiony
   panelem .pdp-buy.
   UWAGA: NIE ukrywać całego .maininfo — GALERIA PRODUKTU JEST W ŚRODKU
   (.maininfo > .f-row > gallery.tpl). Ukrycie całości skasowało zdjęcia i panel.
   Chowamy tylko prawą szpaltę z dostępnością/koszykiem/linkami. */
/* Galeria TEZ ma klase f-grid-6 (`<div class="productimg f-grid-6">`), wiec
   selektor bez wykluczenia chowal i ja, i prawa szpalte. */
.product-main-box .maininfo > .f-row > .f-grid-6:not(.productimg){ display:none !important; }

/* P1 — karta produktu w dwóch kolumnach: galeria | panel zakupowy.
   Panel wstawia JS (layoutPdp) do `.f-row` OBOK galerii. Galerii NIE ruszamy —
   przenoszenie jej węzła zabijało lightbox skórki (klik otwierał goły JPG). */
.hoco-pdp-row{ display:flex !important; align-items:flex-start; gap:40px; }
.hoco-pdp-row > .productimg{ float:none !important; width:50% !important; margin:0 !important; min-width:0; }
.pdp-buy--col{ float:none !important; width:50%; margin:0 !important; min-width:0; box-sizing:border-box; }
@media(max-width:980px){
  .hoco-pdp-row{ flex-direction:column; gap:24px; }
  .hoco-pdp-row > .productimg, .pdp-buy--col{ width:100% !important; }
}

/* P4 — CTA na szerokość panelu, nie całej strony */
.pdp-buy .hoco-btn{ width:100%; justify-content:center; }

/* P5 — galeria: duże zdjęcie + czytelne miniatury.
   UWAGA: `.gallery` to klasa MINIATURKI (<a>), nie kontenera — nie stylować jej
   jak bloku galerii (patrz komentarz w gen_allegro_prices.py / layoutPdp). */
.maininfo .productimg .mainimg{ width:100%; }
.maininfo .productimg img{ max-width:100%; height:auto; }
.maininfo .smallgallery ul{ display:flex; flex-wrap:wrap; gap:8px; list-style:none; padding:0; margin:12px 0 0; }
.maininfo .smallgallery li{ width:76px; }

/* P6 — watermark „hoco." w tle treści */
.product-main-box .watermark, .maininfo .watermark, .logo-watermark{ display:none !important; }

/* P7 — czerwone kwadraciki (bullety z podmienionym obrazkiem) */
.product-main-box img.px1, .maininfo img.px1{ display:none !important; }

/* P9 — H1 produktu ma być nośnikiem hierarchii */
.product-main-box h1.name{ font-family:var(--font-head); font-size:clamp(1.5rem,2.6vw,2.1rem);
  line-height:1.2; margin:0 0 6px; color:var(--text); }

/* K1 — gdy nie ma ceny, „Zapytaj o cenę" pokazujemy TYLKO w CTA, nie dwa razy */
.pcard__price.is-ask{ display:none; }

/* K2 — duplikat nagłówka kategorii (H1 z .kat-hero + nagłówek boksu listingu) */
.kat-hero + .box > .boxhead, .products-sort-container ~ .boxhead{ display:none; }

/* KATEGORIA: opis na dole był czarnym tekstem na czarnym tle (dziedziczył kolor
   ze skórki). Wymuszamy jasny i zawijamy długie słowa. */
.kat-seo, .kat-seo *, .categorydesc, .categorydesc *{
  color:var(--text-muted) !important;
  overflow-wrap:anywhere; word-break:break-word;
}
.kat-seo h2, .kat-seo h3, .categorydesc h2, .categorydesc h3,
.kat-seo strong, .categorydesc strong, .kat-seo b, .categorydesc b{ color:var(--text) !important; }
.kat-seo a, .categorydesc a{ color:var(--brand) !important; }
.kat-seo summary{ color:var(--brand) !important; cursor:pointer; }

/* ===== TURA 2 (2026-07-23) ===== */

/* S1 — belka B2B przyklejona razem z nawigacją */
.sg-topbar{ position:sticky; top:0; z-index:51; }
.sg-nav{ top:37px; }
@media(max-width:900px){ .sg-topbar{ position:static } .sg-nav{ top:0 } }

/* S2 — „Sklep internetowy Shoper.pl" w stopce: było duże i niebieskie */
.bottom-footer, .bottom-footer a, .shoper-link, .footer .powered,
.footer__shoper, [class*="poweredby"], [class*="powered-by"]{
  font-size:.72rem !important; color:var(--text-muted) !important;
  text-align:center; opacity:.55;
}
.bottom-footer a:hover{ color:var(--text-muted) !important; text-decoration:underline; }

/* U1 — TRWALE ukryte artefakty starej skórki na WSZYSTKICH podstronach
   (blog, artykuł, kategorie, strony opisowe, wyszukiwarka, producent).
   Wcześniej wycinałem je tylko w list.tpl i product/index.tpl — pozostałe typy
   stron nadal je renderowały. */
.leftcol, .rightcol,
.bottom-footer .box, .payments, .payment-icons, [class*="payment"],
#box_articlelistsmall, #box_producerlist, #box_paymentlist,
.footer .overall, .userfooter{
  display:none !important;
}
/* treść zawsze pełnej szerokości, skoro kolumn bocznych nie ma */
.centercol, .centercol.s-grid-9, .centercol.s-grid-6{ width:100% !important; max-width:100% !important; flex:0 0 100% !important; }

/* S6 — zdjęcie w banerze „Szybkie ładowanie" rozjeżdżało się (brak object-fit
   na tej instancji, obraz rozciągał kontener) */
.sg-dark-banner{ isolation:isolate; }
.sg-dark-banner > img{ position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; object-position:center; opacity:.45; z-index:0; }
.sg-dark-banner__c{ position:relative; z-index:1; }

/* S4 — wyróżniki marki w hero */
.sg-hero__usp{ list-style:none; margin:26px 0 0; padding:0; display:flex; flex-direction:column; gap:9px; }
.sg-hero__usp li{ color:var(--text-muted); font-size:.95rem; padding-left:22px; position:relative; }
.sg-hero__usp li::before{ content:"—"; position:absolute; left:0; color:var(--brand); font-weight:700; }
.sg-hero__usp b{ color:var(--text); font-weight:700; }

/* Górna belka: topbar i nav sklejały się osobno i B2B zasłaniało menu.
   Teraz cały segment jest jednym sticky blokiem. */
.sg-topbar{ position:static !important; }
.sg-nav{ position:static !important; }
.hoco-chrome-sticky{ position:sticky; top:0; z-index:60; background:var(--bg); }
a.sg-logo{ text-decoration:none; }

/* Kategoria: opis na górze zwijany, opis SEO na dole zwinięty po 1. akapicie */
.kat-desc-top{ margin:18px 0 4px; }
.kat-desc-top > summary{ list-style:none; cursor:pointer; color:var(--brand);
  font-weight:600; font-size:.92rem; padding:6px 0; display:inline-flex; gap:8px; align-items:center; }
.kat-desc-top > summary::-webkit-details-marker{ display:none; }
.kat-desc-top > summary::after{ content:"+"; font-weight:700; }
.kat-desc-top[open] > summary::after{ content:"–"; }
.kat-seo .sg-more__body > *:not(:first-child){ display:none; }
.kat-seo details[open] .sg-more__body > *{ display:revert; }

/* ============================================================================
   BLOG — lista wpisów i widok artykułu (2026-07-29, zgłoszenie usera)
   Objawy: na liście miniatury rozjeżdżały się (float + różne proporcje grafik),
   w artykule zdjęcie główne pływało obok tekstu, a cała treść była wyśrodkowana.
   Robimy CSS-em — szablonów Shopera nie przepisujemy; jedyna zmiana w markupie
   to wycięcie komentarzy (tools/fix_blog_tpl.py).
   Struktura listy: #box_articlelist > .innerbox > article (jeden na wpis).
   ========================================================================== */

/* ----- LISTA WPISÓW: siatka kart zamiast pionowej płachty ----- */
#box_articlelist .innerbox{ display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr));
  gap:28px; align-items:stretch; }
#box_articlelist article{ display:flex; flex-direction:column; background:var(--surface);
  border:1px solid var(--border); border-radius:var(--r-card); overflow:hidden; padding:0 0 20px; }
#box_articlelist .article-header{ padding:20px 22px 0; margin:0; }
#box_articlelist .article-name{ font-family:var(--font-head); font-size:1.06rem; line-height:1.35;
  color:var(--text) !important; text-decoration:none; text-transform:none; display:block; }
#box_articlelist .article-name:hover{ color:var(--brand) !important; }
#box_articlelist .article-info{ padding:8px 22px 0; margin:0; color:var(--text-muted); font-size:.8rem; }
#box_articlelist .article-info a{ color:var(--brand); }
#box_articlelist .article-content{ padding:16px 22px 0; margin:0; flex:1 1 auto;
  display:flex; flex-direction:column; text-align:left !important; }
/* Zdjęcie wpisu: zawsze ten sam kadr 16:9 i pełna szerokość karty (ujemny margines
   kasuje padding treści). `order:-1` wypycha je nad zajawkę. */
#box_articlelist img.article-image{ order:-1; float:none !important; display:block;
  width:calc(100% + 44px); max-width:none; margin:0 -22px 16px;
  aspect-ratio:16/9; object-fit:cover; background:#fff; }
#box_articlelist .article-content p{ text-align:left !important; font-size:.92rem; line-height:1.6;
  color:var(--text-muted); margin:0 0 10px; }
/* grafiki wklejone w zajawkę przez redaktora rozwalały karty */
#box_articlelist .article-content img:not(.article-image){ display:none !important; }
#box_articlelist .readmore{ display:inline-block; margin:14px 22px 0; color:var(--brand);
  font-size:.88rem; font-weight:600; text-decoration:none; }
#box_articlelist .readmore:hover{ text-decoration:underline; }
@media(max-width:640px){ #box_articlelist .innerbox{ grid-template-columns:1fr } }

/* ----- WIDOK ARTYKUŁU ----- */
#box_article{ max-width:860px; margin:0 auto; }
#box_article .article-header{ margin:8px 0 0; }
#box_article .article-name{ display:block; font-family:var(--font-head);
  font-size:clamp(1.7rem,3.4vw,2.4rem); line-height:1.18; letter-spacing:-.01em;
  text-transform:none !important; color:var(--text); }
#box_article .article-info{ color:var(--text-muted); font-size:.85rem; margin:14px 0 26px;
  padding-bottom:18px; border-bottom:1px solid var(--border); }
#box_article .article-info span{ color:var(--text-muted) !important; }
#box_article .article-info a{ color:var(--brand); }
/* Zdjęcie główne: hero na pełną szerokość kolumny, nie float obok tekstu */
#box_article img.article-image{ float:none !important; display:block; width:100%; max-width:100%;
  height:auto; aspect-ratio:16/9; object-fit:cover; border-radius:var(--r-card); margin:0 0 30px; }
#box_article .article-content{ text-align:left !important; font-size:1.02rem; line-height:1.78;
  color:var(--text-muted); }
#box_article .article-content p{ text-align:left !important; margin:0 0 18px; }
#box_article .article-content h1, #box_article .article-content h2,
#box_article .article-content h3, #box_article .article-content h4{
  font-family:var(--font-head); color:var(--text); text-align:left !important;
  line-height:1.25; margin:36px 0 12px; }
#box_article .article-content h2{ font-size:1.5rem; }
#box_article .article-content h3{ font-size:1.2rem; }
/* Redaktor pisze śródtytuły jako samotny <strong> w akapicie — robimy z nich nagłówek */
#box_article .article-content p > strong:only-child{ display:block; font-family:var(--font-head);
  font-size:1.22rem; color:var(--text); line-height:1.3; margin:34px 0 4px; }
#box_article .article-content strong{ color:var(--text); }
#box_article .article-content a{ color:var(--brand); }
#box_article .article-content ul, #box_article .article-content ol{ margin:0 0 18px 22px; }
#box_article .article-content li{ margin-bottom:8px; }
/* zdjęcia w treści: wyśrodkowane, na białym tle (packshoty mają białe tło) */
#box_article .article-content img:not(.article-image){ display:block; max-width:100%; height:auto;
  margin:26px auto; border-radius:12px; background:#fff; }

/* Tagi wpisu jako chipsy */
.article-tags{ list-style:none; display:flex; flex-wrap:wrap; gap:8px; padding:0; margin:32px 0 0; }
.article-tags li{ margin:0; }
.article-tags a{ display:inline-block; padding:6px 12px; border:1px solid var(--border);
  border-radius:999px; color:var(--text-muted) !important; font-size:.82rem; text-decoration:none; }
.article-tags a:hover{ border-color:var(--brand); color:var(--brand) !important; }

/* Komentarze pod wpisem — include wycięty w news/index.tpl; to jest zabezpieczenie
   na wypadek, gdyby szablon wrócił do oryginału (i na licznik „0" przy tytule). */
#box_comments, #commentform, .article-comments, .comments-list{ display:none !important; }

/* Karta produktu: „Opinie o produkcie" usunięte (product/comments.tpl wycięty
   w gen_product_tpl.py) — tu chowamy jeszcze linki „dodaj opinię" z paska ikon. */
.product-main-box li.comment, .product-main-box a.addcomment,
#box_productfull .comments, #product_comments{ display:none !important; }

/* ============================================================================
   PODSTRONY TREŚCIOWE, BREADCRUMBS, COOKIES (2026-07-29)
   Objaw: na stronie B2B tekst leciał od samej krawędzi okna, breadcrumbs były
   listą z bulletami („Jesteś w:" + kropki), a pasek cookies był surowym białym
   paskiem. Przyczyna: `.container` skórki ma tylko `max-width:1180px` BEZ
   paddingu bocznego — przy oknie węższym niż 1180 px treść dotyka krawędzi.
   ========================================================================== */
.innermain.container, .breadcrumbs .container{ padding-left:24px; padding-right:24px; box-sizing:border-box; }
@media(max-width:600px){ .innermain.container, .breadcrumbs .container{ padding-left:16px; padding-right:16px; } }

/* Breadcrumbs w jednej linii, bez bulletów i bez etykiety „Jesteś w:" */
.breadcrumbs{ padding:14px 0 2px; font-size:.85rem; }
.breadcrumbs .breadcrumb-home span{ display:none !important; }
.breadcrumbs .path{ list-style:none !important; display:inline-flex; flex-wrap:wrap; align-items:center;
  gap:2px; margin:0; padding:0; }
.breadcrumbs .path li{ list-style:none !important; display:inline-flex; align-items:center; margin:0; }
.breadcrumbs .path li::marker{ content:""; }
.breadcrumbs a{ color:var(--text-muted); }
.breadcrumbs a:hover{ color:var(--brand); }

/* Pasek cookies — dyskretny, ciemny, na dole ekranu */
#cookie{ position:fixed; left:0; right:0; bottom:0; top:auto; z-index:80;
  background:var(--surface); border-top:1px solid var(--border);
  color:var(--text-muted); font-size:.82rem; padding:12px 0; }
#cookie .pagewidth{ max-width:1180px; margin:0 auto; padding:0 24px;
  display:flex; align-items:center; gap:16px; }
#cookie a{ color:var(--brand); }
#cookie .close{ margin-left:auto; cursor:pointer; color:var(--text-muted); flex:none; }
#cookie .close:hover{ color:var(--text); }

/* Strona informacyjna (/pl/i/*): nagłówek + czytelna kolumna tekstu */
.box_infopage .boxhead{ margin-bottom:22px; }
.box_infopage .boxhead span{ font-size:clamp(1.5rem,3vw,2.1rem); line-height:1.2; display:block; }
.box_infopage .innerbox > .fr-view{ font-size:1.02rem; line-height:1.78; }
.box_infopage .fr-view h1, .box_infopage .fr-view h2, .box_infopage .fr-view h3{
  color:var(--text); margin:34px 0 12px; line-height:1.25; }
.box_infopage .fr-view p{ margin:0 0 16px; }
.box_infopage .fr-view img{ max-width:100%; height:auto; }
.box_infopage .fr-view ul, .box_infopage .fr-view ol{ margin:0 0 18px 22px; }
.box_infopage .fr-view li{ margin-bottom:8px; }

/* ============================================================================
   KARTA PRODUKTU — tabele/ramki i produkty powiązane (2026-07-29)
   ========================================================================== */

/* Tabela atrybutów („Dane techniczne"): lewa kolumna szła jasnym gradientem
   skórki → etykiety były praktycznie niewidoczne na ciemnym motywie. */
.attributes table, .product-modules table, #box_productfull table{
  width:100%; border-collapse:collapse; background:transparent; }
.attributes th, .attributes td, .product-modules th, .product-modules td{
  background:transparent !important; background-image:none !important;
  border:1px solid var(--border); padding:10px 14px; color:var(--text-muted);
  vertical-align:top; }
.attributes tr > *:first-child, .product-modules table tr > *:first-child{
  color:var(--text); font-weight:600; width:42%; }
.attributes tr:nth-child(even) > *{ background:rgba(255,255,255,.02) !important; }

/* Opis produktu: czytelna szerokość i odstępy, obrazy nie wychodzą poza kolumnę */
.product-modules .description, .product-modules .fr-view{ font-size:1rem; line-height:1.8; }
.product-modules .fr-view p{ margin:0 0 16px; }
.product-modules .fr-view img{ max-width:100%; height:auto; display:block; margin:22px auto; border-radius:12px; }
.product-modules .fr-view h2, .product-modules .fr-view h3{ color:var(--text); margin:32px 0 10px; }
.product-modules .tab-head, .product-modules .boxhead{ margin-top:34px; }

/* Produkty powiązane jako karuzela produktowa (przewijana poziomo, scroll-snap).
   Szablon renderuje wiersze (zdjęcie f-grid-2 | opis f-grid-6 | cena f-grid-4) —
   składamy je w pionową kartę i ustawiamy w rząd. */
#box_productrelated .product-related{ display:flex; gap:16px; overflow-x:auto; overflow-y:hidden;
  scroll-snap-type:x mandatory; padding:4px 0 14px; -webkit-overflow-scrolling:touch; }
#box_productrelated .product-related > .product{ flex:0 0 240px; width:240px; scroll-snap-align:start;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-card);
  padding:14px; margin:0; float:none; box-sizing:border-box; }
#box_productrelated .product .f-row{ display:block; margin:0; }
#box_productrelated .product .f-row > *{ float:none !important; width:100% !important;
  margin-left:0 !important; text-align:left !important; }
#box_productrelated .product img{ width:100%; height:auto; aspect-ratio:1/1; object-fit:contain;
  background:#fff; border-radius:10px; margin-bottom:10px; }
#box_productrelated .product .productname{ display:block; color:var(--text); font-size:.9rem;
  line-height:1.35; margin-bottom:8px; }
#box_productrelated .product .description{ display:none; }
#box_productrelated .product .price{ color:var(--text); font-family:var(--font-head); font-weight:700; }
#box_productrelated .product-related::-webkit-scrollbar{ height:8px; }
#box_productrelated .product-related::-webkit-scrollbar-thumb{ background:var(--border); border-radius:99px; }

/* Lightbox galerii — wlasny (galeria skorki nie inicjalizuje sie na tej skorce,
   patrz komentarz przy gallery() w gen_allegro_prices.py). */
.hoco-lb{ position:fixed; inset:0; z-index:9999; display:none; align-items:center; justify-content:center;
  background:rgba(0,0,0,.93); padding:40px; }
.hoco-lb.is-open{ display:flex; }
.hoco-lb__img{ max-width:88vw; max-height:86vh; object-fit:contain; background:#fff; border-radius:12px; }
.hoco-lb button{ position:absolute; background:transparent; border:0; color:#fff; cursor:pointer;
  font-size:2.4rem; line-height:1; padding:12px 18px; opacity:.75; }
.hoco-lb button:hover{ opacity:1; }
.hoco-lb__x{ top:14px; right:18px; font-size:2.8rem; }
.hoco-lb__p{ left:8px; top:50%; transform:translateY(-50%); font-size:3.4rem; }
.hoco-lb__n{ right:8px; top:50%; transform:translateY(-50%); font-size:3.4rem; }
.maininfo .smallgallery a.gallery{ display:block; border:1px solid var(--border); border-radius:8px;
  overflow:hidden; background:#fff; }
.maininfo .smallgallery a.gallery.current{ border-color:var(--brand); }

/* Opis produktu szedl wysrodkowany (inline `text-align:center` z edytora Shopera),
   tak samo jak wczesniej tresc artykulu — wyrownujemy do lewej, srodtytuly ze
   samotnego <strong> renderujemy jak naglowki (ta sama zasada co na blogu). */
.product-modules .fr-view, .product-modules .description,
.product-modules .fr-view p, .product-modules .description p,
.product-modules .fr-view div{ text-align:left !important; }
.product-modules .fr-view p > strong:only-child{ display:block; font-family:var(--font-head);
  font-size:1.18rem; color:var(--text); line-height:1.3; margin:32px 0 4px; }
/* nazwa produktu — glowny naglowek strony, nie drobny tekst */
#box_productfull > .boxhead h1.name{ font-size:clamp(1.4rem,2.4vw,1.9rem); line-height:1.25; margin:0; }

/* ============================================================================
   KARTA PRODUKTU — REDESIGN 2026-07-29
   Zgloszenie: „linie na poczatku, wyglada jak design sprzed 20 lat".
   Zrodlo kresek: skorkowe `.boxhead{border-bottom:1px solid #d8d8d8}` — jasna
   linia ciagnaca sie przez cala szerokosc pod kazdym naglowkiem sekcji.
   Kierunek: zostajemy przy design systemie SG (ciemna baza, Manrope + Space
   Grotesk, akcent #09a9e5, CTA #ff5a00) — sekcje staja sie KARTAMI zamiast
   plach z liniami. Jedyny mocny akcent: panel zakupowy jedzie z trescia (sticky),
   bo cala sprzedaz idzie przez CTA i ma byc pod reka na kazdej wysokosci strony.
   ========================================================================== */

/* 1. Kreski precz — na karcie, kategorii i wszedzie indziej na podstronach */
.boxhead, .tab-head, #box_productfull .boxhead{ border-bottom:0 !important; }
#box_productfull > .boxhead{ padding-bottom:0; margin-bottom:18px; }
.product-modules .fr-view h3:empty, .product-modules h3:empty{ display:none; }

/* 2. Sekcje jako karty */
.product-modules{ display:flex; flex-direction:column; gap:20px; margin-top:40px; }
.product-modules > .box{ background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-card); padding:30px 34px; margin:0; }
.product-modules > .box > .boxhead{ margin:0 0 18px; padding:0; }
.product-modules > .box > .boxhead span,
.product-modules > .box > .boxhead h3{ font-family:var(--font-head); font-size:1.32rem;
  font-weight:700; color:var(--text); letter-spacing:-.01em; }
@media(max-width:640px){ .product-modules > .box{ padding:22px 18px; } }

/* 3. Panel zakupowy jedzie z trescia — sygnatura tej karty */
@media(min-width:981px){
  .pdp-buy--col{ position:sticky; top:88px; align-self:flex-start; }
}

/* 4. Dane techniczne — pary klucz/wartosc, separator tylko miedzy wierszami */
.attributes table, .product-modules table{ border:0; }
.attributes th, .attributes td, .product-modules th, .product-modules td{
  border:0; border-bottom:1px solid rgba(255,255,255,.06); padding:13px 0; }
.attributes tr:last-child th, .attributes tr:last-child td{ border-bottom:0; }
.attributes tr > *:first-child, .product-modules table tr > *:first-child{
  color:var(--text-muted); font-weight:500; font-size:.82rem; letter-spacing:.04em;
  text-transform:uppercase; width:40%; padding-right:20px; }
.attributes tr > *:last-child, .product-modules table tr > *:last-child{ color:var(--text); }
.attributes tr:nth-child(even) > *{ background:transparent !important; }

/* 5. Bezpieczenstwo — bloki (producent / osoba odpowiedzialna / importer) obok
      siebie zamiast kilometrowej kolumny. Kazdy blok to <aside> ze skorki. */
#box_productsafety .innerbox{ display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:20px; }
#box_productsafety aside{ background:rgba(255,255,255,.02); border:1px solid var(--border);
  border-radius:12px; padding:18px 20px; margin:0; }
#box_productsafety aside:first-child{ grid-column:1/-1; }
#box_productsafety h4{ font-family:var(--font-head); font-size:.95rem; color:var(--text);
  margin:0 0 10px; }
#box_productsafety p, #box_productsafety li{ color:var(--text-muted); font-size:.88rem;
  line-height:1.65; margin:0 0 4px; }
#box_productsafety ul{ margin:0; padding-left:18px; }

/* 6. Produkty powiazane — realne karty (obrazek byl mikroskopijny, bo siedzi
      w zagniezdzonym <div>, ktorego poprzednia regula nie obejmowala) */
#box_productrelated .product .f-row > div{ display:contents; }
#box_productrelated .product a.details{ display:block; float:none !important;
  width:100% !important; margin:0 !important; }
#box_productrelated .product a.details img{ width:100%; height:auto; aspect-ratio:1/1;
  object-fit:contain; background:#fff; border-radius:12px; padding:10px; box-sizing:border-box; }
#box_productrelated .product h3{ order:2; margin:10px 0 0; font-size:.9rem; }
#box_productrelated .product .productname{ display:-webkit-box; -webkit-line-clamp:2;
  -webkit-box-orient:vertical; overflow:hidden; color:var(--text); font-size:.9rem;
  line-height:1.35; }
#box_productrelated .product a:hover .productname{ color:var(--brand); }

/* 7. Opis — powietrze i rytm zamiast sciany tekstu */
#box_description .fr-view{ max-width:74ch; }
#box_description .fr-view > p:first-child{ font-size:1.08rem; color:var(--text); }

/* Parametry techniczne wyciagniete z opisu (JS: specs()) — siatka zamiast luznych
   linii. Lewy akcent zamiast punktora: to dane, nie lista do czytania po kolei. */
.pdp-specs{ list-style:none; display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:10px; margin:22px 0 6px; padding:0; }
.pdp-specs li{ background:rgba(255,255,255,.03); border:1px solid var(--border);
  border-left:2px solid var(--brand); border-radius:10px; padding:12px 14px;
  color:var(--text); font-size:.9rem; line-height:1.35; }

/* powiazane: nazwa miala sie zmiescic, karta byla za waska */
#box_productrelated .product-related > .product{ flex-basis:250px; width:250px; }
#box_productrelated .product .productname{ -webkit-line-clamp:3; }

/* Tresc strony B2B ma 12 nieuzupelnionych placeholderow z panelu
   (`TU_WKLEJ_ZDJECIE_1`, `PASTE_CONTACT_ICON`…) — kazdy to martwy obrazek 404
   z ikona bledu. Chowamy je, zeby nie psuly strony; docelowo do poprawy
   w panelu Shopera (tresc, nie skorka). */
img[src*="TU_WKLEJ"], img[src*="PASTE_"], img[src$="_ICON"]{ display:none !important; }

/* naglowki dodane dla SEO (fix_headings_seo.py) — maja wygladac tak jak wczesniej */
#box_articlelist h2.article-title{ margin:0; font-size:1.06rem; line-height:1.35; }
#box_articlelist h2.article-title a{ font-family:var(--font-head); color:var(--text) !important;
  text-decoration:none; }
#box_articlelist h2.article-title a:hover{ color:var(--brand) !important; }
h1.blog-page-title{ font-family:var(--font-head); font-size:clamp(1.6rem,3vw,2.2rem);
  color:var(--text); margin:6px 0 26px; }
#box_article h1.article-name{ margin:0; }
.box_infopage .boxhead h1{ font-size:clamp(1.5rem,3vw,2.1rem); line-height:1.2; margin:0; }

/* ============================================================================
   KARTA PRODUKTU — ZAKLADKI (plugin wceapp_tabs) 2026-07-29
   Wtyczka po zaladowaniu PRZENOSI sekcje z `.product-modules` do
   `.tab-container.wceapp_tabs > .product-tabs > .product-tab` i buduje
   <nav><ul role="tablist">. Dlatego reguly celujace w `.product-modules`
   dzialaly tylko przez ulamek sekundy — komplet selektorow musi obejmowac
   OBA kontenery (przed i po inicjalizacji wtyczki).
   ========================================================================== */
.product-tabs, .product-modules{ display:block; margin-top:36px; }
.tab-container nav ul{ display:flex; flex-wrap:wrap; gap:8px; list-style:none;
  margin:0 0 20px; padding:0; border:0; }
.tab-container nav li{ background:var(--surface); border:1px solid var(--border);
  border-radius:999px; padding:10px 20px; cursor:pointer; color:var(--text-muted);
  font-size:.92rem; font-weight:600; transition:background var(--dur) var(--ease),
  color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.tab-container nav li:hover{ color:var(--text); border-color:var(--text-muted); }
.tab-container nav li[aria-selected="true"]{ background:var(--brand); border-color:var(--brand);
  color:#04222c; }
.tab-container nav li:focus-visible{ outline:2px solid var(--brand); outline-offset:2px; }

/* sekcja w zakladce oraz sekcje poza zakladkami (np. Bezpieczenstwo) = karta */
.product-tab, .product-modules > .box, #box_productsafety{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-card);
  padding:30px 34px; margin:0 0 20px; }
.product-tab > .boxhead, .product-tab > .tab-head{ display:none; }  /* tytul jest juz w zakladce */
@media(max-width:640px){ .product-tab, #box_productsafety{ padding:22px 18px; } }

/* tresc opisu — wyrownanie do lewej mimo inline center z edytora; komplet
   selektorow dla obu kontenerow */
.product-tab .fr-view, .product-tab .fr-view p, .product-tab .fr-view div,
.product-tab .description, .product-tab .description p{ text-align:left !important; }
.product-tab .fr-view{ max-width:78ch; font-size:1rem; line-height:1.8; }
.product-tab .fr-view p{ margin:0 0 16px; }
.product-tab .fr-view img{ display:block; max-width:100%; height:auto; margin:24px 0;
  border-radius:12px; }
.product-tab .fr-view p > strong:only-child{ display:block; font-family:var(--font-head);
  font-size:1.18rem; color:var(--text); line-height:1.3; margin:32px 0 4px; }
.product-tab .fr-view strong{ color:var(--text); }
.product-tab table{ width:100%; border-collapse:collapse; }
.product-tab th, .product-tab td{ border:0; border-bottom:1px solid rgba(255,255,255,.06);
  padding:13px 0; }
.product-tab tr > *:first-child{ color:var(--text-muted); font-weight:500; font-size:.82rem;
  letter-spacing:.04em; text-transform:uppercase; width:40%; }

/* Zakladka to <li><div class="boxhead"><h2><img class="px1">Opis</h2></div></li> —
   spacer 1px.gif ma ze skorki tlo i wystawal poza pigulke jako niebieskie kolo,
   a .boxhead wnosilo wlasne marginesy. Zerujemy otoczke, zostawiamy sam tekst. */
.tab-container nav li img.px1{ display:none !important; }
.tab-container nav li .boxhead{ border:0 !important; margin:0 !important; padding:0 !important;
  background:transparent !important; }
.tab-container nav li h2, .tab-container nav li h3, .tab-container nav li span{
  font-family:var(--font); font-size:.92rem; font-weight:600; margin:0; color:inherit;
  letter-spacing:0; }

/* zdjecia w opisie: pelna szerokosc kolumny tekstu, nie miniaturki */
.product-tab .fr-view img{ width:100%; max-width:560px; }

/* Logo — oryginalne, jednokolorowe (bez niebieskiej kropki; decyzja usera 2026-07-30).
   Plik: images/hoco/logo-hoco.png, biale z przezroczystoscia. */
.sg-logo{ display:inline-flex; align-items:center; line-height:0; }
.sg-logo img{ height:26px; width:auto; display:block; }
.sg-footer__brand .sg-logo img{ height:24px; }

/* Wyszukiwarka w naglowku — byla sama ikona bez pola. Lupa rozwija input,
   Enter/drugie klikniecie przenosi na /pl/searchquery/<fraza> (JS: search()). */
.sg-search{ display:flex; align-items:center; gap:6px; }
.sg-search__btn{ background:transparent; border:0; padding:6px; display:flex; cursor:pointer;
  color:var(--text-muted); transition:color var(--dur) var(--ease); }
.sg-search__btn:hover{ color:var(--text); }
.sg-search__btn:focus-visible{ outline:2px solid var(--brand); outline-offset:2px; border-radius:8px; }
.sg-search__input{ width:0; opacity:0; padding:0; border:1px solid transparent; background:var(--surface);
  color:var(--text); border-radius:999px; font-family:var(--font); font-size:.9rem;
  transition:width var(--dur) var(--ease), opacity var(--dur) var(--ease), padding var(--dur) var(--ease); }
.sg-search.is-open .sg-search__input{ width:220px; opacity:1; padding:9px 16px; border-color:var(--border); }
.sg-search__input:focus{ outline:none; border-color:var(--brand); }
@media(max-width:900px){ .sg-search.is-open .sg-search__input{ width:150px; } }
@media(prefers-reduced-motion:reduce){ .sg-search__input{ transition:none } }

/* Input wyszukiwarki jest flex-itemem w ciasnym pasku nawigacji — samo `width`
   nie wystarczylo, bo flex-shrink sciskal go z powrotem do zera. */
.sg-search__input{ flex:0 0 0; min-width:0; }
.sg-search.is-open .sg-search__input{ flex:0 0 220px; }
@media(max-width:900px){ .sg-search.is-open .sg-search__input{ flex:0 0 150px; } }

/* ============================================================================
   MOBILE — poprawki po zgloszeniu 2026-07-30 (zrzuty z telefonu)
   ========================================================================== */

/* 1. Pasek B2B zajmowal na telefonie CZTERY linie. Zwezamy do jednego paska:
      dopisek o cenach i mail chowamy, zostaje sama zajawka + CTA. */
@media(max-width:720px){
  .sg-topbar__in{ padding:7px 16px; gap:10px; font-size:.76rem; }
  .sg-topbar__l{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
  .sg-topbar__l b{ display:none; }
  .sg-topbar__r{ gap:10px; flex:none; }
  .sg-topbar__r span{ display:none; }          /* adres e-mail */
  .sg-topbar__r a{ white-space:nowrap; }
}

/* 2. W kafelku kategorii cena i przycisk staly obok siebie i CTA wychodzilo
      poza karte („Zobacz produ…" ucięte na krawedzi). Na waskich ukladamy w kolumne. */
.pcard{ overflow:hidden; }
@media(max-width:820px){
  .pcard__foot{ display:flex; flex-direction:column; align-items:stretch; gap:10px; }
  .pcard__cta{ width:100%; justify-content:center; white-space:normal; text-align:center;
    padding:11px 14px; font-size:.85rem; line-height:1.25; }
  .pcard__price{ font-size:1rem; }
}

/* Przyciski dziedziczyly `content-box` ze skorki, wiec `width:100%` + padding
   dawalo szerokosc wieksza niz kontener — CTA wychodzilo poza kafelek produktu. */
.hoco-btn, .pcard__cta, .pdp-buy .hoco-btn, .sg-search__input{ box-sizing:border-box; }
.pcard, .pcard__b, .pcard__foot{ box-sizing:border-box; }

/* ============================================================================
   ZAKLADKI KARTY — dopracowanie 2026-07-30 (zgloszenie: „brzydko wygladaja")
   ========================================================================== */
.tab-container nav ul{ gap:10px; margin:0 0 22px; align-items:stretch; }
.tab-container nav li{ display:inline-flex; align-items:center; padding:11px 22px;
  border-radius:999px; font-size:.9rem; font-weight:600; letter-spacing:-.01em;
  background:transparent; border:1px solid var(--border); color:var(--text-muted);
  line-height:1.2; user-select:none; }
.tab-container nav li:hover{ background:var(--surface); color:var(--text); border-color:var(--text-muted); }
.tab-container nav li[aria-selected="true"]{ background:var(--brand); border-color:var(--brand);
  color:#04222c; box-shadow:0 4px 16px rgba(9,169,229,.25); }
.tab-container nav li[aria-selected="true"]:hover{ background:var(--brand); color:#04222c; }
/* focus tylko z klawiatury — po kliknieciu myszka zostawala cyjanowa obwodka */
.tab-container nav li:focus{ outline:none; }
.tab-container nav li:focus-visible{ outline:2px solid var(--brand); outline-offset:3px; }
@media(max-width:640px){
  .tab-container nav ul{ gap:8px; }
  .tab-container nav li{ padding:9px 16px; font-size:.85rem; }
}

/* Tresc zakladek wtyczki siedzi w `.resetcss` (bez `.fr-view`) — ta sama typografia
   co w opisie, inaczej kazda zakladka wygladala jak z innej strony. */
.product-tab .resetcss{ font-size:1rem; line-height:1.8; color:var(--text-muted); max-width:78ch; }
.product-tab .resetcss p{ margin:0 0 16px; text-align:left !important; }
.product-tab .resetcss strong{ color:var(--text); }
.product-tab .resetcss ul{ margin:0 0 16px 20px; }
.product-tab .resetcss li{ margin-bottom:6px; }

/* Parametry jako lista definicji (JS: params()) — etykieta | wartosc */
.pdp-params{ display:grid; grid-template-columns:minmax(150px,32%) 1fr; gap:0; margin:6px 0 0; max-width:640px; }
.pdp-params dt{ color:var(--text-muted); font-size:.82rem; letter-spacing:.04em;
  text-transform:uppercase; padding:12px 20px 12px 0; border-bottom:1px solid rgba(255,255,255,.06); }
.pdp-params dd{ color:var(--text); margin:0; padding:12px 0; font-size:.95rem;
  border-bottom:1px solid rgba(255,255,255,.06); }
.pdp-params dd.pdp-params__solo{ grid-column:1/-1; color:var(--text-muted); }
.pdp-params dt:last-of-type, .pdp-params dd:last-of-type{ border-bottom:0; }
@media(max-width:560px){
  .pdp-params{ grid-template-columns:1fr; }
  .pdp-params dt{ padding-bottom:2px; border-bottom:0; }
  .pdp-params dd{ padding-top:0; }
}

/* Mobile: „Kup na Allegro" w naglowku rozjezdzal sie — przycisk mial padding
   i font z desktopu, wiec tekst lamal sie w srodku pigulki. */
@media(max-width:900px){
  .sg-nav__in{ gap:12px; padding:12px 16px; }
  .sg-nav__r{ gap:10px; }
  .sg-nav__r .hoco-btn--allegro{ padding:9px 14px !important; font-size:.8rem !important;
    white-space:nowrap; line-height:1.2; }
  .sg-nav__r .lang{ display:none; }
}
@media(max-width:400px){
  .sg-nav__r .hoco-btn--allegro{ padding:8px 12px !important; font-size:.75rem !important; }
  .sg-logo img{ height:22px; }
}

/* Przycisk zamkniecia paska cookies bywal niewidoczny: skorka renderuje
   `<span class="close fa fa-times">&nbsp;</span>`, czyli sam znak pochodzi z
   Font Awesome — gdy font nie zdazyl sie zaladowac, zostawala pusta spacja i
   nie bylo w co kliknac. Rysujemy krzyzyk wlasnym znakiem, niezaleznie od FA. */
#cookie .close{ font-size:0 !important; width:34px; height:34px; display:inline-flex;
  align-items:center; justify-content:center; border-radius:50%; flex:none;
  border:1px solid var(--border); background:var(--bg); }
#cookie .close::before{ content:"\00d7" !important; font-family:var(--font) !important;
  font-size:1.35rem; line-height:1; color:var(--text-muted); }
#cookie .close:hover{ border-color:var(--text-muted); }
#cookie .close:hover::before{ color:var(--text); }

/* Ocena z Allegro w panelu zakupowym. Musi byc WIDOCZNA — bez tego
   `AggregateRating` w danych strukturalnych nie ma pokrycia w tresci strony
   i Google traktuje to jako niezgodnosc. */
.pdp-buy__rate:empty{ display:none; }
.pdp-buy__rate b{ color:#ffb400; font-size:1rem; }
.pdp-buy__rate span{ color:var(--text-muted); font-size:.85rem; }
