/*
Theme Name: Smarting HOME Pro
Theme URI: https://smartinghome.pl
Author: Grzegorz Kiżewski
Author URI: https://automatklienta.pl
Description: Premium storefront dla sklepu z elektroniką, smart home i zarządzaniem energią. Motyw łączy estetykę premium electronics store, smart home control platform i energy management dashboard. Zbudowany wokół produktu-bohatera „Smarting HOME Pro" — z pełną obsługą WooCommerce, dark/light mode, sekcją ROI, tabelą FREE vs PRO, stronami prawnymi UE i banerem cookies. Mobile-first, accessibility-first, SEO-aware.
Version: 1.1.4
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smarting-home-pro
Tags: e-commerce, woocommerce, dark-mode, custom-colors, full-width-template, translation-ready, featured-images
*/

/* ============================================================
   SMARTING HOME PRO — DESIGN SYSTEM
   Jedno źródło prawdy dla stylów (bez zewnętrznych zależności/CDN).
   Dark mode domyślny · pełny light mode · mobile-first.
   ============================================================ */

/* ---------- 1. TOKENY ---------- */
:root {
  /* Base — dark (domyślny) */
  --bg:            #070A0F;
  --bg-grid:       rgba(255,255,255,0.022);
  --bg-elev:       #0C121A;
  --surface:       #101926;
  --surface-2:     #16212F;
  --surface-3:     #1C2A3B;
  --border:        rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);

  --text:          #EAF1F8;
  --text-dim:      #9FB0C3;
  --text-mute:     #667585;

  /* Akcent — jeden energetyczny (electric mint) + wsparcie */
  --accent:        #00E6A8;
  --accent-ink:    #04140F;   /* tekst na akcencie */
  --accent-soft:   rgba(0,230,168,0.12);
  --accent-line:   rgba(0,230,168,0.30);
  --accent-glow:   rgba(0,230,168,0.22);

  --blue:          #38B6FF;   /* tylko w wizualizacjach danych */
  --amber:         #FFB84D;   /* liczby energii/arbitrażu, oszczędnie */
  --amber-soft:    rgba(255,184,77,0.12);

  --grad-hero:     radial-gradient(1200px 620px at 78% -8%, rgba(0,230,168,0.16), transparent 60%),
                   radial-gradient(900px 520px at 6% 8%, rgba(56,182,255,0.10), transparent 58%);

  /* Skala */
  --radius:        18px;
  --radius-sm:     12px;
  --radius-lg:     26px;
  --radius-pill:   999px;

  --shadow-sm:     0 1px 2px rgba(0,0,0,0.35);
  --shadow:        0 18px 48px -24px rgba(0,0,0,0.75);
  --shadow-glow:   0 0 0 1px var(--accent-line), 0 24px 60px -28px var(--accent-glow);

  --maxw:          1200px;
  --gutter:        clamp(18px, 4vw, 40px);
  --section-y:     clamp(64px, 9vw, 128px);

  --font:          'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-num:      'Inter', system-ui, sans-serif;

  --ease:          cubic-bezier(.22,.61,.36,1);
  --header-h:      68px;
}

/* Light mode */
:root[data-theme="light"] {
  --bg:            #F4F7FB;
  --bg-grid:       rgba(10,25,45,0.03);
  --bg-elev:       #FFFFFF;
  --surface:       #FFFFFF;
  --surface-2:     #F5F8FC;
  --surface-3:     #EEF3F9;
  --border:        rgba(12,24,40,0.10);
  --border-strong: rgba(12,24,40,0.18);

  --text:          #0B1622;
  --text-dim:      #47576A;
  --text-mute:     #7A8798;

  --accent:        #00A578;
  --accent-ink:    #FFFFFF;
  --accent-soft:   rgba(0,165,120,0.10);
  --accent-line:   rgba(0,165,120,0.28);
  --accent-glow:   rgba(0,165,120,0.20);
  --amber:         #B9721A;
  --amber-soft:    rgba(185,114,26,0.10);

  --grad-hero:     radial-gradient(1200px 620px at 80% -10%, rgba(0,165,120,0.12), transparent 60%),
                   radial-gradient(900px 520px at 4% 6%, rgba(56,150,220,0.08), transparent 58%);

  --shadow:        0 20px 46px -26px rgba(20,40,70,0.35);
  --shadow-glow:   0 0 0 1px var(--accent-line), 0 22px 50px -28px var(--accent-glow);
}

/* ---------- 2. RESET / BAZA ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; max-width: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;            /* NIE hidden — chroni position:sticky */
  font-feature-settings: "cv02","cv03","cv04","ss01";
}
/* Długie słowa/URL nie rozpychają layoutu na wąskich ekranach. */
h1, h2, h3, h4, p, li, a, span { overflow-wrap: break-word; }

/* Subtelna siatka technologiczna w tle */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: linear-gradient(var(--bg-grid) 1px, transparent 1px),
                    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none; z-index: 0;
}

img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

h1,h2,h3,h4 { line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: 1; }
.section { padding-block: var(--section-y); position: relative; z-index: 1; }
.section--tight { padding-block: clamp(40px,6vw,72px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.section-head { max-width: 720px; margin-bottom: clamp(32px,5vw,56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4.4vw, 46px); margin-top: 18px; }
.section-head p { color: var(--text-dim); font-size: clamp(15px,1.6vw,18px); margin-top: 14px; }

.lead { color: var(--text-dim); }
.accent { color: var(--accent); }
.amber { color: var(--amber); }

/* ---------- 3. PRZYCISKI ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 15px; letter-spacing: -0.01em;
  border: 1px solid transparent; transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s;
  white-space: nowrap; text-align: center;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 82%, #000));
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -10px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn--ghost { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--accent-line); }
.btn--lg { padding: 17px 30px; font-size: 16.5px; }
.btn--block { width: 100%; }
.btn--sm { padding: 10px 16px; font-size: 13.5px; }

/* ---------- 4. HEADER ---------- */
#site-header { display: contents; }   /* wrapper nie tworzy boxa -> sticky działa na body */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header__bar { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; flex: 0 1 auto; }
.brand__mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand__name { font-weight: 800; font-size: 17px; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__name b { color: var(--accent); }
.brand__tag { display: none; } /* podtytuł ukryty (na życzenie) */

/* Menu jako czyste linki — bez punktorów <li> (usuwa „dziwne kropki") */
.nav ul, .mobile-nav__panel ul { list-style: none; margin: 0; padding: 0; display: contents; }
.nav li, .mobile-nav__panel li { list-style: none; margin: 0; padding: 0; }
.nav li::marker, .mobile-nav__panel li::marker { content: ""; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav a { padding: 8px 13px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--text-dim); transition: color .15s, background .15s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }

.header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: 0 0 auto; }
.icon-btn {
  width: 42px; height: 42px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); transition: border-color .15s, transform .15s, background .15s; position: relative;
}
.icon-btn:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-count {
  position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-size: 11px; font-weight: 800; display: grid; place-items: center; line-height: 1;
  z-index: 4; box-shadow: 0 0 0 2px var(--bg);
}
/* Sticky header nie chowa się pod paskiem admina WordPress (widok zalogowanego). */
body.admin-bar .site-header { top: 46px; }
@media (min-width: 783px){ body.admin-bar .site-header { top: 32px; } }
.header__cta { display: none; }
@media (min-width: 901px){ .header__cta { display: inline-flex; } }
.menu-toggle { display: none; }

/* Search dropdown */
.search-panel {
  position: absolute; left: var(--gutter); right: var(--gutter); top: calc(var(--header-h) + 8px);
  background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow); z-index: 60; max-width: var(--maxw); margin-inline: auto;
}
.search-panel[hidden] { display: none; }
.search-panel form { display: flex; gap: 10px; }
.search-panel input {
  flex: 1; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font-size: 15px;
}
.search-panel input::placeholder { color: var(--text-mute); }

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .brand__tag { display: none; }
}

/* Mobile menu drawer */
.mobile-nav { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.mobile-nav[data-open="true"] { visibility: visible; }
.mobile-nav__scrim { position: absolute; inset: 0; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .25s; }
.mobile-nav[data-open="true"] .mobile-nav__scrim { opacity: 1; }
.mobile-nav__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(84vw, 340px);
  background: var(--bg-elev); border-left: 1px solid var(--border-strong);
  padding: 20px; transform: translateX(100%); transition: transform .3s var(--ease);
  display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
}
.mobile-nav[data-open="true"] .mobile-nav__panel { transform: translateX(0); }
.mobile-nav__panel a { padding: 14px 12px; border-radius: 12px; font-weight: 600; font-size: 16px; color: var(--text); }
.mobile-nav__panel a:hover { background: var(--surface-2); }
.mobile-nav__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }

/* ---------- 5. HERO ---------- */
.hero { position: relative; padding-top: clamp(40px,6vw,72px); padding-bottom: var(--section-y); background: var(--grad-hero); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px,5vw,64px); align-items: center; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700;
  padding: 6px 12px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong);
  background: var(--surface-2); color: var(--text-dim); letter-spacing: .02em;
}
.badge--pro { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.badge--dot::before { content:""; width:7px; height:7px; border-radius:50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.hero h1 { font-size: clamp(34px, 5.4vw, 62px); letter-spacing: -0.03em; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Nagłówek hero: wyjustowany + kolor całego zdania zmienia się przy przewijaniu
   (JS przesuwa background-position wg pozycji scrolla). */
.hero__title {
  text-align: justify;
  text-justify: inter-word;
  background: linear-gradient(90deg, var(--text) 0%, var(--accent) 42%, var(--blue) 58%, var(--text) 100%);
  background-size: 280% 100%;
  background-position: 0% 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
@media (prefers-reduced-motion: reduce){ .hero__title { background-position: 30% 0; } }
.hero__sub { margin-top: 20px; font-size: clamp(16px,1.9vw,20px); color: var(--text-dim); max-width: 560px; }

.hero__price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero__price .amount { font-size: clamp(32px,4.5vw,44px); font-weight: 800; letter-spacing: -0.03em; }
.hero__price .unit { color: var(--text-dim); font-weight: 600; font-size: 15px; }
.hero__price .tag { font-size: 12.5px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 5px 11px; border-radius: var(--radius-pill); }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__signals { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; }
.hero__signal { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-dim); font-weight: 600; }
.hero__signal svg { width: 17px; height: 17px; color: var(--accent); flex: 0 0 auto; }

/* Hero visual — energy flow dashboard mock */
.hero__visual { position: relative; }
.energy-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-elev));
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 20px; position: relative; overflow: hidden;
}
.energy-card::after { content:""; position:absolute; inset:0; border-radius: var(--radius-lg); box-shadow: var(--shadow-glow); pointer-events:none; }
.energy-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.energy-card__title { display:flex; align-items:center; gap:9px; font-weight: 700; font-size: 14px; }
.energy-card__title .live { display:inline-flex; align-items:center; gap:6px; font-size:11px; color: var(--accent); font-weight:700; }
.energy-card__title .live::before { content:""; width:7px;height:7px;border-radius:50%; background: var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100%{ opacity:1; box-shadow:0 0 0 0 var(--accent-glow);} 50%{ opacity:.5; box-shadow:0 0 0 6px transparent;} }
.energy-card__tabs { display:flex; gap:6px; }
.energy-card__tabs span,
.energy-card__tabs button { font-size:11px; padding:5px 10px; border-radius: 8px; background: var(--surface-2); color: var(--text-mute); font-weight:700; border:1px solid transparent; cursor:pointer; transition: background .15s, color .15s, border-color .15s; }
.energy-card__tabs span.on,
.energy-card__tabs button.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.energy-card__tabs button:hover { color: var(--text); }
.energy-card__tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.flow { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 16px; }
.flow__node {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 10px; text-align: center;
}
.flow__node .ic { width: 30px; height: 30px; margin: 0 auto 8px; color: var(--accent); }
.flow__node .lbl { font-size: 11px; color: var(--text-mute); font-weight: 600; }
.flow__node .val { font-weight: 800; font-size: 16px; margin-top: 2px; }
.flow__node .val small { font-size: 11px; color: var(--text-mute); font-weight:600; }

.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-stat { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; text-align: center; }
.mini-stat .k { display: block; font-size: 11.5px; color: var(--text-mute); font-weight: 600; }
.mini-stat .v { display: block; font-weight: 800; font-size: 19px; margin-top: 4px; }
/* Na telefonie: Strategia i Arbitraż jeden pod drugim (nie w poziomie) */
@media (max-width: 600px){
  .mini-stats { grid-template-columns: 1fr; }
}
.mini-stat .v.amber { color: var(--amber); }

/* Animowany słupkowy sparkline */
.spark { display:flex; align-items:flex-end; gap:4px; height: 46px; margin-top: 14px; }
.spark i { flex:1; background: linear-gradient(180deg, var(--accent), transparent); border-radius: 3px 3px 0 0; opacity:.85; animation: growbar 1.6s var(--ease) both; transform-origin: bottom; }
@keyframes growbar { from { transform: scaleY(0);} }
@media (prefers-reduced-motion: reduce){ .spark i, .energy-card__title .live::before { animation: none; } }

@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
}

/* ---------- 6. TRUST BAR ---------- */
.trustbar { border-block: 1px solid var(--border); background: var(--bg-elev); }
.trustbar__row { display: flex; flex-wrap: wrap; gap: clamp(14px,3vw,40px); justify-content: space-between; align-items: center; padding-block: 20px; }
.trust-item { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--text-dim); }
.trust-item svg { width: 20px; height: 20px; color: var(--accent); flex: 0 0 auto; }

/* ---------- 7. KARTY / SIATKI ---------- */
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-elev));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: transform .22s var(--ease), border-color .22s, box-shadow .22s;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: var(--shadow); }
.card__ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.card__ic svg { width: 24px; height: 24px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 14.5px; }

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

/* „Dlaczego" — bento layout (nie 3 kolumny ikon) */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento > * { grid-column: span 2; }
.bento .b-wide { grid-column: span 4; }
.bento .b-tall { grid-row: span 2; grid-column: span 2; }
.bento .b-full { grid-column: span 6; }
@media (max-width: 860px){ .bento { grid-template-columns: repeat(2,1fr);} .bento > *, .bento .b-wide, .bento .b-tall, .bento .b-full { grid-column: span 2; grid-row: auto;} }
@media (max-width: 640px){ .bento { grid-template-columns: 1fr;} .bento > *, .bento .b-wide, .bento .b-tall, .bento .b-full { grid-column: span 1; grid-row: auto; } }

.feature-lg { display:flex; flex-direction: column; justify-content: space-between; gap: 20px; min-height: 220px; }
.feature-lg .big-num { font-size: clamp(34px,5vw,52px); font-weight: 800; letter-spacing: -0.03em; }

/* ---------- 8. ROI / OSZCZĘDNOŚCI ---------- */
.roi { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,48px); align-items: center; }
@media (max-width: 900px){ .roi { grid-template-columns: 1fr; } }
.roi__list { display: flex; flex-direction: column; gap: 12px; }
.roi__item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.roi__item .name { font-weight: 600; font-size: 14.5px; }
.roi__item .name small { display: block; color: var(--text-mute); font-weight: 500; font-size: 12.5px; margin-top: 2px; }
.roi__item .val { font-weight: 800; font-size: 18px; color: var(--accent); white-space: nowrap; }
.roi__bar { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; grid-column: 1 / -1; margin-top: 4px; }
.roi__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--blue)); border-radius: 999px; width: 0; transition: width 1.1s var(--ease); }

.roi__total { background: linear-gradient(180deg, var(--surface), var(--bg-elev)); border: 1px solid var(--accent-line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-glow); }
.roi__total .big { font-size: clamp(40px,7vw,68px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.roi__total .big small { font-size: 20px; color: var(--text-dim); font-weight: 700; }
.roi__ring { display:flex; align-items:center; gap: 18px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border); }
.ring { --p:0; width: 86px; height: 86px; flex: 0 0 auto; border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--p)*1%), var(--surface-3) 0);
  display: grid; place-items: center; transition: --p 1s var(--ease); }
.ring::before { content:""; position:absolute; }
.ring span { width: 66px; height: 66px; border-radius: 50%; background: var(--bg-elev); display: grid; place-items: center; font-weight: 800; font-size: 15px; text-align:center; line-height:1.1; }
.arbitraz { margin-top: 18px; display:flex; align-items:center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--text-dim); background: var(--amber-soft); border: 1px solid color-mix(in srgb, var(--amber) 40%, transparent); border-radius: var(--radius-sm); padding: 12px 16px; }
.arbitraz b { color: var(--amber); }

/* ---------- 9. „JAK TO DZIAŁA" — kroki ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; counter-reset: step; }
@media (max-width: 780px){ .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 26px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step::before { counter-increment: step; content: "0" counter(step); font-weight: 800; font-size: 15px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--text-dim); font-size: 14.5px; }

/* ---------- 10. FUNKCJE / DASHBOARD MOCK ---------- */
.panel-mock { background: linear-gradient(180deg, var(--surface), var(--bg-elev)); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.panel-mock__bar { display:flex; align-items:center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.panel-mock__bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.panel-mock__bar .title { margin-left: 8px; font-size: 13px; font-weight: 700; color: var(--text-dim); }
.panel-mock__tabs { display: flex; gap: 4px; padding: 12px 16px 0; flex-wrap: wrap; }
.panel-mock__tabs button { font-size: 12.5px; font-weight: 600; color: var(--text-dim); background: transparent; border: 1px solid transparent; padding: 8px 13px; border-radius: 10px 10px 0 0; }
.panel-mock__tabs button[aria-selected="true"] { color: var(--accent); background: var(--surface-2); border-color: var(--border); border-bottom-color: transparent; }
.panel-mock__body { padding: 20px; }
.panel-view { display: none; }
.panel-view.on { display: block; animation: fade .35s var(--ease); }
@keyframes fade { from { opacity:0; transform: translateY(6px);} }

.strategy-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
@media (max-width:640px){ .strategy-grid { grid-template-columns: 1fr 1fr; } }
.strategy { padding: 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.strategy .ic { width: 34px; height: 34px; color: var(--accent); margin-bottom: 10px; }
.strategy h4 { font-size: 14.5px; }
.strategy p { font-size: 12.5px; color: var(--text-mute); margin-top: 4px; }

.bars { display: grid; gap: 12px; }
.bars__row { display: grid; grid-template-columns: 130px 1fr auto; align-items: center; gap: 14px; font-size: 13.5px; }
.bars__track { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bars__track i { display: block; height: 100%; background: linear-gradient(90deg,var(--accent),var(--blue)); width: 0; border-radius: 999px; transition: width 1s var(--ease); }
.bars__val { font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }

/* ---------- 11. HARDWARE / SPEC ---------- */
.spec-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px,4vw,48px); align-items: start; }
@media (max-width: 880px){ .spec-split { grid-template-columns: 1fr; } }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 14px 4px; border-bottom: 1px solid var(--border); font-size: 14.5px; vertical-align: top; }
.spec-table th { color: var(--text-mute); font-weight: 600; width: 42%; }
.spec-table td { font-weight: 600; }
.spec-list { display: flex; flex-direction: column; gap: 12px; }
.spec-list li { display: flex; gap: 12px; align-items: flex-start; }
.spec-list svg { width: 20px; height: 20px; color: var(--accent); flex: 0 0 auto; margin-top: 1px; }
.spec-list b { display: block; font-size: 14.5px; }
.spec-list span { color: var(--text-dim); font-size: 13.5px; }

/* ---------- 12. KOMPATYBILNOŚĆ ---------- */
.compat-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
@media (max-width: 720px){ .compat-grid { grid-template-columns: 1fr; } }
.compat { display: flex; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.compat__ic { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.compat__ic svg { width: 24px; height: 24px; }
.compat h4 { font-size: 15.5px; margin-bottom: 4px; }
.compat p { font-size: 13.5px; color: var(--text-dim); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text-dim); }

/* ---------- 13. FREE vs PRO ---------- */
.vs { overflow-x: auto; }
.vs-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 520px; }
.vs-table th, .vs-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.vs-table thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-mute); }
.vs-table thead th.col-pro { color: var(--accent); }
.vs-table .col-feat { font-weight: 600; font-size: 14.5px; }
.vs-table .col-free { color: var(--text-mute); text-align: center; width: 120px; }
.vs-table .col-pro { text-align: center; width: 140px; background: var(--accent-soft); font-weight: 700; }
.vs-table tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.vs-table tbody tr:hover td.col-pro { background: color-mix(in srgb, var(--accent-soft) 160%, transparent); }
.vs-yes { color: var(--accent); font-weight: 800; }
.vs-no { color: var(--text-mute); }
.vs-head-pro { display:inline-flex; align-items:center; gap:8px; }

/* karty na mobile zamiast scrolla */
.vs-cards { display: none; }
@media (max-width: 620px){
  .vs { display: none; }
  .vs-cards { display: grid; gap: 12px; }
  .vs-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; }
  .vs-card.pro { border-color: var(--accent-line); background: linear-gradient(180deg,var(--accent-soft),var(--bg-elev)); }
  .vs-card h4 { font-size: 15px; margin-bottom: 10px; display:flex; justify-content:space-between; align-items:center; }
  .vs-card ul { display: flex; flex-direction: column; gap: 8px; }
  .vs-card li { display:flex; gap:9px; font-size: 13.5px; color: var(--text-dim); }
  .vs-card li svg { width:17px; height:17px; flex:0 0 auto; color: var(--accent); margin-top:2px; }
}

/* ---------- 14. W PUDEŁKU ---------- */
.box-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
@media (max-width: 780px){ .box-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px){ .box-grid { grid-template-columns: 1fr; } }
.box-item { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.box-item svg { width: 22px; height: 22px; color: var(--accent); flex: 0 0 auto; margin-top: 1px; }
.box-item b { font-size: 14px; display: block; }
.box-item span { font-size: 12.5px; color: var(--text-mute); }

/* ---------- 15. FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 10px; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; background: transparent; color: var(--text); font-weight: 700; font-size: 15.5px; text-align: left; border: 0; }
.faq__q .ico { flex: 0 0 auto; transition: transform .25s var(--ease); color: var(--accent); }
.faq__item[data-open="true"] .faq__q .ico { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq__a-inner { padding: 0 20px 18px; color: var(--text-dim); font-size: 14.5px; }

/* ---------- 16. FINAL CTA ---------- */
.final { position: relative; background: var(--grad-hero); border-block: 1px solid var(--border); }
.final__card { background: linear-gradient(180deg, var(--surface), var(--bg-elev)); border: 1px solid var(--accent-line); border-radius: var(--radius-lg); padding: clamp(28px,5vw,56px); box-shadow: var(--shadow-glow); text-align: center; max-width: 860px; margin-inline: auto; }
.final__card h2 { font-size: clamp(28px,4.6vw,48px); }
.final__price { display:flex; align-items:baseline; justify-content:center; gap:12px; flex-wrap:wrap; margin: 22px 0 8px; }
.final__price .amount { font-size: clamp(38px,6vw,58px); font-weight: 800; letter-spacing: -0.03em; }
.final__price .unit { color: var(--text-dim); font-weight: 600; }
.final__meta { display:flex; flex-wrap:wrap; gap: 16px; justify-content:center; margin-top: 18px; color: var(--text-dim); font-size: 13.5px; }
.final__meta span { display:inline-flex; align-items:center; gap:7px; }
.final__meta svg { width:16px;height:16px; color: var(--accent); }

/* ---------- 17. MINI-LISTING ---------- */
.mini-shop { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
@media (max-width: 900px){ .mini-shop { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .mini-shop { grid-template-columns: 1fr; } }
.mini-prod { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .2s; opacity: .92; }
.mini-prod:hover { border-color: var(--border-strong); transform: translateY(-3px); opacity:1; }
.mini-prod__img { aspect-ratio: 4/3; background: var(--surface-2); display: grid; place-items: center; color: var(--text-mute); }
.mini-prod__img svg { width: 46px; height: 46px; opacity: .5; }
.mini-prod__b { padding: 14px 16px; }
.mini-prod__cat { font-size: 11px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.mini-prod__t { font-size: 14.5px; font-weight: 700; margin: 4px 0 8px; }
.mini-prod__p { font-size: 13px; color: var(--text-mute); }

/* ---------- 18. FOOTER ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-elev); padding-block: clamp(40px,6vw,72px) 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 820px){ .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px){ .footer__grid { grid-template-columns: 1fr; } }
.footer__brand p { color: var(--text-dim); font-size: 14px; margin-top: 14px; max-width: 320px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-mute); margin-bottom: 14px; }
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer a { color: var(--text-dim); font-size: 14px; transition: color .15s; }
.footer a:hover { color: var(--accent); }
.footer__bottom { margin-top: clamp(32px,5vw,52px); border-top: 1px solid var(--border); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.footer__bottom p { color: var(--text-mute); font-size: 13px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__legal a { font-size: 13px; }
.footer__legal button { background: none; border: 0; color: var(--text-dim); font-size: 13px; }
.footer__legal button:hover { color: var(--accent); }

/* ---------- 19. STICKY MOBILE CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-strong);
  transform: translateY(120%); transition: transform .3s var(--ease);
}
.sticky-cta[data-show="true"] { transform: translateY(0); }
.sticky-cta__price { line-height: 1.1; }
.sticky-cta__price .a { font-weight: 800; font-size: 18px; }
.sticky-cta__price .u { font-size: 11px; color: var(--text-mute); display: block; }
.sticky-cta .btn { margin-left: auto; }
@media (max-width: 760px){ .sticky-cta { display: flex; } }

/* ---------- 20. COOKIE BANNER ---------- */
.cookie-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 90;
  width: min(680px, calc(100% - 28px));
  background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 20px;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { font-size: 13.5px; color: var(--text-dim); }
.cookie-bar p a { color: var(--accent); text-decoration: underline; }
.cookie-bar__row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cookie-bar__row .btn { flex: 1; min-width: 130px; }
@media (max-width: 760px){ .sticky-cta[data-show="true"] ~ .cookie-bar, .cookie-bar { bottom: 84px; } }

/* ---------- 20b. LOGO MARK ---------- */
.brand__mark { display: inline-flex; }
.logo-mark { border-radius: 11px; display: block; }
/* Własne logo z Customizera — ogranicz wysokość, by nie rozpychało nagłówka. */
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { max-height: 44px; width: auto; }

/* ---------- 20c. KALKULATOR OSZCZĘDNOŚCI ---------- */
.calc { margin-top: 8px; }
.calc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
@media (max-width: 860px){ .calc__grid { grid-template-columns: 1fr; } }

.calc__form { background: linear-gradient(180deg,var(--surface),var(--bg-elev)); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; gap: 22px; }
.calc__field { display: flex; flex-direction: column; gap: 10px; }
.calc__field > label, .calc__legend { font-weight: 700; font-size: 14.5px; }
.calc__unit { color: var(--text-mute); font-weight: 500; }

.calc__billrow { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.calc__billrow input[type="range"] { flex: 1; min-width: 160px; accent-color: var(--accent); height: 6px; }
.calc__num { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 8px 12px; }
.calc__num input { width: 90px; background: transparent; border: 0; color: var(--text); font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.calc__num input:focus { outline: none; }
.calc__num span { color: var(--text-mute); font-weight: 700; }

.calc__toggles { display: flex; flex-direction: column; gap: 10px; }
.calc__toggle { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14.5px; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s; }
.calc__toggle:hover { border-color: var(--accent-line); }
.calc__toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.calc__box { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; background: var(--surface-3); color: var(--text-mute); border: 1px solid var(--border); transition: all .15s; }
.calc__toggle input:checked + .calc__box { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.calc__toggle:has(input:checked) { border-color: var(--accent-line); background: color-mix(in srgb, var(--accent-soft) 120%, transparent); }

.calc__form select { padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); font-size: 14.5px; font-weight: 600; }

.calc__disclaimer { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--text-mute); margin-top: auto; }
.calc__disclaimer svg { color: var(--accent); flex: 0 0 auto; margin-top: 1px; }

.calc__result { background: linear-gradient(180deg,var(--surface),var(--bg-elev)); border: 1px solid var(--accent-line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-glow); display: flex; flex-direction: column; gap: 20px; }
.calc__result-head { text-align: left; }
.calc__result-label { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-mute); font-weight: 700; }
.calc__big { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.calc__big .num { font-size: clamp(34px,6vw,50px); font-weight: 800; letter-spacing: -0.03em; color: var(--accent); line-height: 1; }
.calc__big small { color: var(--text-dim); font-weight: 700; font-size: 18px; }
.calc__pct { margin-top: 8px; font-size: 14px; color: var(--text-dim); font-weight: 600; }

.calc__rows { display: flex; flex-direction: column; gap: 2px; border-block: 1px solid var(--border); padding-block: 6px; }
.calc__row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 0; font-size: 14px; color: var(--text-dim); }
.calc__row b { font-size: 16px; color: var(--text); }
.calc__row--roi b { color: var(--amber); }

.calc__breakdown { display: flex; flex-direction: column; gap: 12px; }
.calc__breakdown .bars__row { grid-template-columns: 120px 1fr auto; }
@media (max-width: 480px){ .calc__breakdown .bars__row { grid-template-columns: 96px 1fr auto; font-size: 12.5px; } }

/* ---------- 21. WOOCOMMERCE (spójny wygląd) ---------- */
.woo-wrap { padding-block: clamp(32px,5vw,64px); }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-radius: var(--radius-sm) !important; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); border-top: 3px solid var(--accent); padding: 14px 18px 14px 44px; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.woocommerce ul.products li.product .price { color: var(--accent) !important; font-weight: 800; }
.woocommerce span.onsale { background: var(--accent); color: var(--accent-ink); }
.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt {
  background: var(--accent); color: var(--accent-ink); border-radius: var(--radius-pill); font-weight: 700; padding: 12px 22px;
}
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--accent); font-weight: 800; }
.woo-note { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--radius-sm); padding: 14px 18px; font-size: 14px; color: var(--text-dim); margin-bottom: 18px; }
.woo-note b { color: var(--text); }

/* Archiwum sklepu — 4 kolumny (desktop), 2 (tablet), 1 (telefon); kompaktowe karty */
.woocommerce ul.products, .woocommerce-page ul.products {
  display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin: 0 0 24px !important; padding: 0; list-style: none;
}
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
  width: auto !important; float: none !important; margin: 0 !important; clear: none;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 16px !important;
}
.woocommerce ul.products li.product a img { max-width: 100%; width: 100%; margin: 0 auto 12px !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 15px; padding: 0 !important; line-height: 1.35; }
.woocommerce ul.products li.product .price { margin-bottom: 6px; font-size: 15px; }
.woocommerce ul.products li.product .button { margin-top: auto !important; }
@media (max-width: 900px){ .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 520px){ .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: 1fr !important; } }

/* Sklep — nagłówek „Sklep" i wyniki wyśrodkowane */
body.woocommerce-shop .page-hero,
body.post-type-archive-product .page-hero,
body.woocommerce-shop .page-hero h1,
body.post-type-archive-product .page-hero h1 { text-align: center; }
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  float: none !important; width: 100%; text-align: center; margin: 0 auto 14px !important;
}
.woocommerce .woocommerce-ordering select { display: inline-block; }
.woocommerce ul.products li.product { text-align: center; }

/* Stopka — wyśrodkowana, tekst wyjustowany (ostatnia linia wyśrodkowana) */
.footer__grid { text-align: center; }
.footer__brand { align-items: center; }
.footer__brand .brand { justify-content: center; }
.footer__brand p { text-align: justify; text-align-last: center; margin-inline: auto; max-width: 340px; }
.footer ul { align-items: center; }
.footer__legal-fallback .footer__hint { display: block; text-align: justify; text-align-last: center; }
.footer__bottom { justify-content: center; text-align: center; }
.footer__legal { justify-content: center; width: 100%; }

/* Uproszczony widok produktu: nazwa → galeria → cena → nazwa + opis */
.single-simple { max-width: 860px; margin-inline: auto; display: flex; flex-direction: column; gap: 28px; }
.single-simple .sp-gallery { max-width: 560px; margin-inline: auto; width: 100%; position: relative; }
.single-simple .sp-gallery .woocommerce-product-gallery { width: 100% !important; margin: 0 !important; }
.single-simple .sp-gallery img { border-radius: var(--radius); }
.single-simple .sp-buy { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.single-simple .sp-buy .price { font-size: clamp(26px,4vw,36px); font-weight: 800; color: var(--accent) !important; }
.single-simple .sp-buy .price del { color: var(--text-mute); font-weight: 600; font-size: 20px; }
.single-simple .sp-desc h2 { font-size: clamp(22px,3.2vw,30px); margin-bottom: 16px; }
.single-simple .sp-desc .prose { max-width: none; }
.single-simple .stock { color: var(--accent); font-weight: 600; font-size: 14px; }

/* ---------- 21b. KOSZYK (układ w stylu sklepu odzieżowego: pozycje + podsumowanie) ---------- */

/* Układ 2-kolumnowy na desktopie: pozycje po lewej, podsumowanie (sticky) po prawej */
@media (min-width: 900px) {
  .woocommerce-cart .woocommerce { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
  .woocommerce-cart .woocommerce-cart-form { grid-column: 1; margin: 0; }
  .woocommerce-cart .cart-collaterals { grid-column: 2; position: sticky; top: 88px; }
  .woocommerce-cart .woocommerce-notices-wrapper { grid-column: 1 / -1; }
}

/* Tabela koszyka → lista czystych kart pozycji */
.woocommerce-cart table.cart {
  border: 0 !important; background: transparent !important; margin: 0 !important; border-spacing: 0 !important;
}
.woocommerce-cart table.cart thead { display: none; }
.woocommerce-cart table.cart,
.woocommerce-cart table.cart tbody,
.woocommerce-cart table.cart tr { display: block; width: 100%; }

.woocommerce-cart table.cart tr.cart_item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  grid-template-areas: "thumb name remove" "thumb price subtotal" "thumb qty qty";
  gap: 6px 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; margin-bottom: 12px;
}
.woocommerce-cart table.cart tr.cart_item td { border: 0 !important; padding: 0 !important; }
.woocommerce-cart td.product-thumbnail { grid-area: thumb; }
.woocommerce-cart td.product-name { grid-area: name; align-self: end; }
.woocommerce-cart td.product-price { grid-area: price; align-self: start; color: var(--text-dim); font-size: 14px; }
.woocommerce-cart td.product-quantity { grid-area: qty; justify-self: start; margin-top: 4px; }
.woocommerce-cart td.product-subtotal { grid-area: subtotal; justify-self: end; font-weight: 800; color: var(--accent); }
.woocommerce-cart td.product-remove { grid-area: remove; justify-self: end; align-self: start; }

.woocommerce-cart td.product-thumbnail img {
  width: 80px !important; height: 80px; object-fit: contain;
  background: #fff; border-radius: 12px; border: 1px solid var(--border); padding: 6px; margin: 0 !important;
}
.woocommerce-cart .product-name a { color: var(--text) !important; font-weight: 700; text-decoration: none; font-size: 15px; }
.woocommerce-cart .product-name a:hover { color: var(--accent) !important; }
.woocommerce-cart td.product-name .variation { font-size: 12.5px; color: var(--text-mute); margin: 4px 0 0; }

.woocommerce a.remove {
  color: var(--text-mute) !important; border: 1px solid var(--border); background: var(--surface-2) !important;
  width: 26px; height: 26px; line-height: 24px; font-size: 18px;
}
.woocommerce a.remove:hover { background: var(--accent) !important; color: var(--accent-ink) !important; border-color: var(--accent); }
.woocommerce .quantity .qty {
  background: var(--surface-2) !important; border: 1px solid var(--border-strong) !important;
  color: var(--text) !important; border-radius: 8px; padding: 8px 6px; width: 64px;
}

/* Wiersz akcji (kupon + aktualizacja koszyka) */
.woocommerce-cart td.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 2px !important; }
.woocommerce-cart td.actions .coupon { display: flex; gap: 8px; }
.woocommerce-cart .actions .coupon input,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text); border-radius: 8px; padding: 10px 12px;
}

/* Podsumowanie zamówienia — czysty box */
.woocommerce .cart-collaterals { display: block; width: 100%; }
.woocommerce .cart-collaterals .cross-sells { display: none; } /* bez „powiązanych" w podsumowaniu */
.woocommerce .cart-collaterals .cart_totals {
  float: none !important; width: 100% !important;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
}
.woocommerce .cart_totals h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-mute); margin-bottom: 14px; }
.woocommerce .cart_totals table { border: 0 !important; margin: 0; }
.woocommerce .cart_totals table th, .woocommerce .cart_totals table td { border: 0 !important; padding: 10px 0 !important; background: transparent !important; color: var(--text); }
.woocommerce .cart_totals .order-total th, .woocommerce .cart_totals .order-total td { border-top: 1px solid var(--border) !important; padding-top: 14px !important; font-size: 16px; }
.woocommerce .cart_totals .order-total .amount { color: var(--accent); font-size: 22px; }
.woocommerce .wc-proceed-to-checkout { padding: 4px 0 0; }
.woocommerce .wc-proceed-to-checkout a.checkout-button { display: block; width: 100%; text-align: center; font-size: 16px; padding: 16px; border-radius: var(--radius-pill); }

@media (max-width: 480px){
  .woocommerce-cart table.cart tr.cart_item { grid-template-columns: 72px 1fr; grid-template-areas: "thumb name" "thumb price" "thumb qty" "subtotal subtotal" "remove remove"; }
  .woocommerce-cart td.product-subtotal { justify-self: start; }
  .woocommerce-cart td.product-remove { justify-self: start; }
}

/* Koszyk — dodatki (płatności, zwrot, akceptacja regulaminu) */
.cart-extras { display: flex; flex-direction: column; gap: 14px; margin: 4px 0 16px; }
.cart-pay__lbl { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--text); }
.cart-pay__lbl svg { color: var(--accent); flex: 0 0 auto; }
.cart-pay__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pay-badge { font-size: 12.5px; font-weight: 600; padding: 7px 12px; border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text-dim); }
.cart-return { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-dim); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--radius-sm); padding: 12px 14px; }
.cart-return svg { color: var(--accent); flex: 0 0 auto; margin-top: 1px; }
.cart-return a { color: var(--accent); text-decoration: underline; }
.cart-accept { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text); cursor: pointer; padding: 10px 2px; }
.cart-accept input { width: 20px; height: 20px; accent-color: var(--accent); flex: 0 0 auto; margin-top: 1px; }
.cart-accept a { color: var(--accent); text-decoration: underline; }
.cart-accept--warn { color: #ff6b6b; }
.cart-accept--warn input { outline: 2px solid #ff6b6b; outline-offset: 2px; border-radius: 4px; }
.checkout-button.shp-disabled { opacity: .5; cursor: not-allowed; }

/* Koszyk — wyśrodkowany i węższy, kompaktowy nagłówek */
body.woocommerce-cart .page-hero, body.woocommerce-checkout .page-hero { padding-block: clamp(22px,3.5vw,34px) 16px; }
body.woocommerce-cart .woo-wrap .container, body.woocommerce-checkout .woo-wrap .container { max-width: 980px; }

/* Zabezpieczenie miniatury: nigdy nie pokazuj tekstu/alt jako słupka (gdy brak zdjęcia) */
.woocommerce-cart td.product-thumbnail { width: 80px; height: 80px; overflow: hidden; }
.woocommerce-cart td.product-thumbnail a { display: block; font-size: 0 !important; color: transparent !important; }
.woocommerce-cart td.product-thumbnail img { font-size: 0 !important; color: transparent !important; }

/* Ukryj pływający widżet koszyka (miejsce na widżet AI) — najczęstsze wtyczki */
#fkcart-mini, .fkcart-mini, .fkcart-floating-toggle, .fkcart-slider, .fkcart-checkout-btn-floating,
.xoo-wsc-modal, .xoo-wsc-basket, .wpcp-side-cart, .cart-widget-block, .side-cart-woocommerce,
.floating-cart, .cart-float, .sticky-cart, .sticky-cart-btn, .woofc-area, .woofc-icon,
.wp-block-woocommerce-mini-cart, .wc-block-mini-cart__button { display: none !important; }

/* ---------- 22. REVEAL ANIM ----------
   Stan ukrycia obowiązuje TYLKO gdy JS aktywny (html.shp-js) — bez JS lub przy
   błędzie skryptu treść pozostaje widoczna (nigdy nie znika na stałe). */
.shp-js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.shp-js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .shp-js [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---------- 23. STRONY TREŚCI (page.php / 404) ---------- */
.page-hero { padding-block: clamp(48px,7vw,88px) clamp(24px,4vw,40px); background: var(--grad-hero); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(30px,5vw,50px); }
.prose { max-width: 820px; margin-inline: auto; }
.prose h2 { font-size: clamp(22px,3vw,30px); margin: 34px 0 14px; }
.prose h3 { font-size: 19px; margin: 24px 0 10px; }
.prose p, .prose li { color: var(--text-dim); font-size: 15.5px; margin-bottom: 12px; text-align: justify; text-align-last: left; hyphens: auto; }
.prose ul, .prose ol { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose strong { color: var(--text); }
.legal-note { background: var(--amber-soft); border: 1px solid color-mix(in srgb,var(--amber) 40%,transparent); border-radius: var(--radius-sm); padding: 16px 18px; color: var(--text-dim); font-size: 14px; margin-bottom: 24px; }
.legal-note strong { color: var(--amber); }

.notfound { text-align: center; padding-block: clamp(60px,10vw,120px); }
.notfound .code { font-size: clamp(64px,14vw,140px); font-weight: 800; letter-spacing: -0.04em; background: linear-gradient(120deg,var(--accent),var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }

/* ---------- util ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mt-0{margin-top:0} .center{text-align:center}
.divider { height:1px; background: var(--border); border:0; margin: 0; }
