/*
Theme Name: 4fpv
Description: Motyw potomny Flatsome dla 4fpv.uk — wygląd „Flight Deck” (skórka Glass Cockpit) wspólny z Base for FPV (base.4fpv.uk).
Author: morz.studio
Template: flatsome
Version: 4.4.1
Text Domain: 4fpv
*/

/* =====================================================================
   SPIS
   0. Czcionki (lokalne, bez Google — RODO/GDPR)
   1. Tokeny: Glass Cockpit ciemny (sklep) + jasny (koszyk, kasa, konto)
   1a. Skórki jak w Base (Glass Cockpit, Sectional, Aviator, Squadron × jasny/ciemny)
   2. Baza strony
   3. Nagłówek-kokpit + taśma kursu
   4. Nagłówek strony (okruszki, tytuł kategorii)
   5. Przyciski i pola
   6. Karty produktów i kategorii
   7. Karta produktu
   8. Pasek boczny i widżety
   9. Stopka
   10. Koszyk / kasa / konto — jasno i czytelnie
   11. Menu mobilne (panel z lewej: wiersze, podmenu, wyszukiwarka, ikony social), drobiazgi, ruch
   12. Przełącznik skórek (js/livery.js)
   13. Odnośnik do Base for FPV (menu + karta + pasek na stronie głównej)
   14. Ruch: Motion (js/fx.js), przejścia między stronami, podświetlenia — wspólne z Ledgerem i Base
   Zasada: kolory wyłącznie z tokenów (var(--…)). Nie dotykamy iframe'ów
   WooPayments (pola karty, Google/Apple Pay) — ich wygląd ustawia się
   w ustawieniach WooPayments.
   ===================================================================== */

/* ---------- 0. Czcionki: pliki w ./fonts (licencja SIL OFL 1.1) ---------- */
@font-face {
  font-family: 'Geist';
  src: url('fonts/geist-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  src: url('fonts/geist-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('fonts/geist-mono-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('fonts/geist-mono-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Big Shoulders: czcionka zmienna z osią rozmiaru optycznego — duże nagłówki same dostają krój „Display” */
@font-face {
  font-family: 'Big Shoulders';
  src: url('fonts/big-shoulders-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Big Shoulders';
  src: url('fonts/big-shoulders-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Big Shoulders Stencil';
  src: url('fonts/big-shoulders-stencil-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Big Shoulders Stencil';
  src: url('fonts/big-shoulders-stencil-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- 1. Tokeny ----------
   „html:root” zamiast „:root”, bo Flatsome drukuje własne :root (kolor główny) PÓŹNIEJ w <head>. */
html:root {
  --font-ui: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --font-display: 'Big Shoulders', 'Geist', ui-sans-serif, system-ui, sans-serif;
  --font-stencil: 'Big Shoulders Stencil', 'Big Shoulders', ui-sans-serif, sans-serif;

  --cut: 14px;
  --cut-sm: 7px;
  --cut-lg: 22px;
  --r-md: 3px;
  --r-sm: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --rbf: #c8102e;

  /* Glass Cockpit — HUD: magenta trasy, cyjan wartości */
  --hud: #e270f4;
  --hud-2: #4fd6f0;

  /* Glass Cockpit — ciemny (cały sklep) */
  color-scheme: dark;
  --bg: #05070c;
  --surface: #0c1018;
  --surface-2: #111621;
  --sunk: #171d2a;
  --ink: #e7ecf5;
  --ink-2: #a8b2c4;
  --muted: #76809a;
  --line: #1a2030;
  --line-strong: #283045;
  --accent: #e270f4;
  --accent-ink: #1b0421;
  --accent-2: #4fd6f0;
  --art-bg: #03050a;
  --art-ink: #e8edf7;
  --ok: #58d08d;
  --warn: #f2b652;
  --bad: #ff8b72;
  --shadow-pop: 0 1px 2px rgba(0, 0, 0, 0.5), 0 18px 40px -10px rgba(0, 0, 0, 0.8);

  /* zmienne Flatsome — żeby elementy, których nie stylujemy wprost, też trzymały paletę */
  --primary-color: var(--accent);
  --fs-color-primary: var(--accent);
  --fs-color-secondary: var(--accent-2);
  --fs-color-success: var(--ok);
  --fs-color-alert: var(--bad);
  --fs-experimental-link-color: var(--ink);
  --fs-experimental-link-color-hover: var(--accent);
}

/* Glass Cockpit — jasny: koszyk, kasa, konto (spokojnie, czytelnie, bez ryzyka dla płatności) */
body.woocommerce-cart,
body.woocommerce-checkout,
body.woocommerce-account,
body.woocommerce-order-received {
  color-scheme: light;
  --bg: #e5e8ee;
  --surface: #ffffff;
  --surface-2: #f3f5f8;
  --sunk: #dbe0e8;
  --ink: #0e1320;
  --ink-2: #3a4356;
  --muted: #646e83;
  --line: #d2d8e1;
  --line-strong: #b7bfcc;
  --accent: #a11cae;
  --accent-ink: #ffffff;
  --accent-2: #0b85a6;
  --ok: #1b7a46;
  --warn: #a35f00;
  --bad: #be2e1c;
  --shadow-pop: 0 1px 2px rgba(14, 19, 32, 0.06), 0 12px 32px -8px rgba(14, 19, 32, 0.24);
  --fs-experimental-link-color: var(--accent);
}

/* ---------- 1a. Skórki („livery”), jak w Base for FPV ----------
   Wartości 1:1 z D:/Strony/base.4fpv/strona/styles/liveries.css (4 skórki × jasny/ciemny).
   <html data-livery data-theme> ustawia skrypt z functions.php jeszcze przed narysowaniem strony;
   wybór robi przełącznik z js/livery.js i trzyma go przeglądarka (localStorage). Bez JS: Glass Cockpit ciemny (wyżej).
   Koszyk, kasa i konto zawsze dostają JASNY wariant wybranej skórki. Nagłówek i stopka (--art-bg) są ciemne w każdej. */

/* Glass Cockpit */
html[data-livery='cockpit'] {
  --hud: #e270f4;
  --hud-2: #4fd6f0;
}
html[data-livery='cockpit'][data-theme='light'],
html[data-livery='cockpit'] body.woocommerce-cart,
html[data-livery='cockpit'] body.woocommerce-checkout,
html[data-livery='cockpit'] body.woocommerce-account,
html[data-livery='cockpit'] body.woocommerce-order-received {
  color-scheme: light;
  --bg: #e5e8ee;
  --surface: #ffffff;
  --surface-2: #f3f5f8;
  --sunk: #dbe0e8;
  --ink: #0e1320;
  --ink-2: #3a4356;
  --muted: #646e83;
  --line: #d2d8e1;
  --line-strong: #b7bfcc;
  --accent: #a11cae;
  --accent-ink: #ffffff;
  --accent-2: #0b85a6;
  --art-bg: #060911;
  --art-ink: #e8edf7;
  --art-line: rgba(77, 214, 240, 0.13);
  --shadow-pop: 0 1px 2px rgba(14, 19, 32, 0.06), 0 12px 32px -8px rgba(14, 19, 32, 0.24);
}
html[data-livery='cockpit'][data-theme='dark'] {
  color-scheme: dark;
  --bg: #05070c;
  --surface: #0c1018;
  --surface-2: #111621;
  --sunk: #171d2a;
  --ink: #e7ecf5;
  --ink-2: #a8b2c4;
  --muted: #76809a;
  --line: #1a2030;
  --line-strong: #283045;
  --accent: #e270f4;
  --accent-ink: #1b0421;
  --accent-2: #4fd6f0;
  --art-bg: #03050a;
  --art-ink: #e8edf7;
  --art-line: rgba(79, 214, 240, 0.13);
  --shadow-pop: 0 1px 2px rgba(0, 0, 0, 0.5), 0 18px 40px -10px rgba(0, 0, 0, 0.8);
}

/* Sectional */
html[data-livery='sectional'] {
  --hud: #72aaf0;
  --hud-2: #e670bc;
}
html[data-livery='sectional'][data-theme='light'],
html[data-livery='sectional'] body.woocommerce-cart,
html[data-livery='sectional'] body.woocommerce-checkout,
html[data-livery='sectional'] body.woocommerce-account,
html[data-livery='sectional'] body.woocommerce-order-received {
  color-scheme: light;
  --bg: #efebdd;
  --surface: #fffdf7;
  --surface-2: #f7f3e6;
  --sunk: #e8e1cc;
  --ink: #122033;
  --ink-2: #3d4a5b;
  --muted: #667080;
  --line: #dfd7c0;
  --line-strong: #c6bc9e;
  --accent: #1d5aa6;
  --accent-ink: #ffffff;
  --accent-2: #b0247d;
  --art-bg: #0e2540;
  --art-ink: #eaf1f8;
  --art-line: rgba(160, 200, 240, 0.16);
  --shadow-pop: 0 1px 2px rgba(18, 32, 51, 0.06), 0 12px 32px -8px rgba(18, 32, 51, 0.24);
}
html[data-livery='sectional'][data-theme='dark'] {
  color-scheme: dark;
  --bg: #0a1521;
  --surface: #0f1e2d;
  --surface-2: #132536;
  --sunk: #192e42;
  --ink: #eaf0f6;
  --ink-2: #afc0d0;
  --muted: #7c90a3;
  --line: #1c3146;
  --line-strong: #2a445e;
  --accent: #72aaf0;
  --accent-ink: #06162a;
  --accent-2: #e670bc;
  --art-bg: #06111d;
  --art-ink: #eaf1f8;
  --art-line: rgba(114, 170, 240, 0.15);
  --shadow-pop: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -10px rgba(0, 0, 0, 0.75);
}

/* Aviator */
html[data-livery='aviator'] {
  --hud: #e3b25b;
  --hud-2: #a9c291;
}
html[data-livery='aviator'][data-theme='light'],
html[data-livery='aviator'] body.woocommerce-cart,
html[data-livery='aviator'] body.woocommerce-checkout,
html[data-livery='aviator'] body.woocommerce-account,
html[data-livery='aviator'] body.woocommerce-order-received {
  color-scheme: light;
  --bg: #e8e2d4;
  --surface: #fffcf4;
  --surface-2: #f5efe2;
  --sunk: #dfd6c3;
  --ink: #1e1a14;
  --ink-2: #4c4538;
  --muted: #776e5f;
  --line: #dad0bc;
  --line-strong: #c2b599;
  --accent: #94600f;
  --accent-ink: #ffffff;
  --accent-2: #3f5b3a;
  --art-bg: #1d1913;
  --art-ink: #f3ebdc;
  --art-line: rgba(226, 177, 90, 0.15);
  --shadow-pop: 0 1px 2px rgba(30, 26, 20, 0.07), 0 12px 32px -8px rgba(30, 26, 20, 0.26);
}
html[data-livery='aviator'][data-theme='dark'] {
  color-scheme: dark;
  --bg: #110f0b;
  --surface: #1a1711;
  --surface-2: #201c15;
  --sunk: #29241b;
  --ink: #f1ebdf;
  --ink-2: #c2b8a5;
  --muted: #8d8472;
  --line: #2b261d;
  --line-strong: #3b3428;
  --accent: #e3b25b;
  --accent-ink: #1e1404;
  --accent-2: #a9c291;
  --art-bg: #0c0a07;
  --art-ink: #f3ebdc;
  --art-line: rgba(227, 178, 91, 0.14);
  --shadow-pop: 0 1px 2px rgba(0, 0, 0, 0.5), 0 18px 40px -10px rgba(0, 0, 0, 0.8);
}

/* Squadron */
html[data-livery='squadron'] {
  --hud: #a8be6a;
  --hud-2: #e5574e;
}
html[data-livery='squadron'][data-theme='light'],
html[data-livery='squadron'] body.woocommerce-cart,
html[data-livery='squadron'] body.woocommerce-checkout,
html[data-livery='squadron'] body.woocommerce-account,
html[data-livery='squadron'] body.woocommerce-order-received {
  color-scheme: light;
  --bg: #e2e3d4;
  --surface: #fbfbf3;
  --surface-2: #f0f1e4;
  --sunk: #d7d9c5;
  --ink: #1a1e15;
  --ink-2: #444a3a;
  --muted: #6b7260;
  --line: #d1d3be;
  --line-strong: #b5ba9e;
  --accent: #4a5d23;
  --accent-ink: #ffffff;
  --accent-2: #b3261e;
  --art-bg: #1d2315;
  --art-ink: #eef0e2;
  --art-line: rgba(180, 200, 130, 0.16);
  --shadow-pop: 0 1px 2px rgba(26, 30, 21, 0.07), 0 12px 32px -8px rgba(26, 30, 21, 0.26);
}
html[data-livery='squadron'][data-theme='dark'] {
  color-scheme: dark;
  --bg: #0d100a;
  --surface: #141811;
  --surface-2: #191e15;
  --sunk: #21271b;
  --ink: #e8ecdc;
  --ink-2: #b6bca5;
  --muted: #838a73;
  --line: #242a1e;
  --line-strong: #343c2a;
  --accent: #a8be6a;
  --accent-ink: #141a08;
  --accent-2: #e5574e;
  --art-bg: #090b07;
  --art-ink: #eef0e2;
  --art-line: rgba(168, 190, 106, 0.14);
  --shadow-pop: 0 1px 2px rgba(0, 0, 0, 0.5), 0 18px 40px -10px rgba(0, 0, 0, 0.8);
}

/* kolory stanów zależne od motywu (jak styles/tokens.css w Base) */
html[data-theme='light'] {
  --ok: #1b7a46;
  --warn: #a35f00;
  --bad: #be2e1c;
  --fs-experimental-link-color: var(--ink);
}
html[data-theme='dark'] {
  --ok: #58d08d;
  --warn: #f2b652;
  --bad: #ff8b72;
}


/* ---------- 2. Baza ---------- */
html body.theme-flatsome {
  background-color: var(--bg);
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 10%, transparent) 1px, transparent 1.3px);
  background-size: 24px 24px;
  color: var(--ink-2);
  font: 400 15px/1.55 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
body.theme-flatsome #wrapper,
body.theme-flatsome #main {
  background-color: transparent;
}
body.theme-flatsome h1,
body.theme-flatsome h2,
body.theme-flatsome h3,
body.theme-flatsome h4,
body.theme-flatsome h5,
body.theme-flatsome h6,
body.theme-flatsome .heading-font {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
body.theme-flatsome a {
  color: var(--ink);
}
body.theme-flatsome a:hover {
  color: var(--accent);
}
body.theme-flatsome strong,
body.theme-flatsome b {
  color: var(--ink);
}
body.theme-flatsome ::selection {
  background: color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--ink);
}
body.theme-flatsome :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
body.theme-flatsome .is-divider {
  height: 2px;
  max-width: 48px;
  background-color: var(--accent);
  opacity: 1;
}
body.theme-flatsome .placard,
body.theme-flatsome .fd-placard {
  font: 600 10.5px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- 3. Nagłówek-kokpit ---------- */
body.theme-flatsome .header-wrapper {
  position: relative;
  background: var(--art-bg);
}
body.theme-flatsome .header,
body.theme-flatsome .header-wrapper,
body.theme-flatsome .header-bg-color {
  background-color: var(--art-bg);
}
/* górny pasek → cienki pasek z napisami jak na tablicy przyrządów */
body.theme-flatsome #top-bar.header-top {
  background-color: color-mix(in srgb, var(--art-bg) 70%, #000) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 30px;
}
body.theme-flatsome #top-bar,
body.theme-flatsome #top-bar a,
body.theme-flatsome #top-bar strong {
  color: color-mix(in srgb, var(--art-ink) 58%, transparent);
  font: 600 10.5px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
body.theme-flatsome #top-bar strong {
  color: var(--hud);
}
body.theme-flatsome #top-bar a:hover {
  color: var(--art-ink);
}
body.theme-flatsome #top-bar .nav-divided > li + li > a::after {
  border-color: rgba(255, 255, 255, 0.14);
}

/* główny pasek */
body.theme-flatsome #masthead.header-main {
  height: 72px;
  background-color: var(--art-bg);
  color: var(--art-ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
body.theme-flatsome #logo {
  width: auto;
  margin-right: 28px;
}
/* Logo „4/FPV supply” — jak w Base: krój szablonowy + dopisek Geist Mono w kolorze HUD.
   Znaczniki daje template-parts/header/partials/element-logo.php (logo jest tekstem). */
body.theme-flatsome #logo .fd-logo {
  max-width: none;
  display: inline-flex;
  align-items: flex-start;
  gap: 7px;
  white-space: nowrap;
  color: var(--art-ink);
  text-decoration: none;
}
body.theme-flatsome #logo .fd-logo:hover {
  color: var(--art-ink);
}
body.theme-flatsome .fd-logo-word {
  font: 900 32px/1 var(--font-stencil);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
body.theme-flatsome .fd-logo-word i {
  font-style: normal;
  color: var(--hud);
}
body.theme-flatsome .fd-logo-sub {
  margin-top: 3px;
  font: 600 10px/1 var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hud);
}
body.theme-flatsome .fd-logo:hover .fd-logo-word i {
  color: var(--hud-2);
}
body.theme-flatsome .header-main .nav > li > a,
body.theme-flatsome .header-main .nav-icon a,
body.theme-flatsome .header-main .icon-menu,
body.theme-flatsome .header-main .header-button a {
  color: color-mix(in srgb, var(--art-ink) 75%, transparent);
}
body.theme-flatsome .header-main .nav > li > a:hover,
body.theme-flatsome .header-main .nav > li.active > a {
  color: var(--art-ink);
}
body.theme-flatsome .header-main .nav > li > a {
  font: 800 15px/1 var(--font-display);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
body.theme-flatsome .header-main .cart-price,
body.theme-flatsome .header-main .header-cart-title {
  font: 600 13px/1 var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--art-ink);
}
/* licznik koszyka: magenta HUD zamiast czarnego kółka */
body.theme-flatsome .header .cart-icon strong,
body.theme-flatsome .header .icon-shopping-bag::after,
body.theme-flatsome .header [data-icon-label]::after {
  background-color: var(--hud);
  border-color: var(--hud);
  color: var(--art-bg);
  font-family: var(--font-mono);
  font-weight: 700;
}
body.theme-flatsome .header .cart-icon strong::after {
  border-color: var(--hud);
}

/* wyszukiwarka w pasku i w menu na telefonie (panel jest ciemny w każdej skórce, także jasnej) */
body.theme-flatsome .header .searchform-wrapper .flex-row,
body.theme-flatsome .off-canvas .searchform-wrapper .flex-row {
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
body.theme-flatsome .header .searchform .search-field,
body.theme-flatsome .off-canvas .searchform .search-field,
body.theme-flatsome .header .searchform select.search_categories,
body.theme-flatsome .off-canvas .searchform select.search_categories {
  background: transparent;
  border: 0;
  box-shadow: none;
  height: 40px;
  color: var(--art-ink);
  font: 400 14px/1 var(--font-ui);
}
body.theme-flatsome .header .searchform select.search_categories,
body.theme-flatsome .off-canvas .searchform select.search_categories {
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--art-ink) 65%, transparent);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background-color: transparent;
  min-width: 64px;
  padding-left: 12px;
}
body.theme-flatsome .header .searchform select.search_categories option,
body.theme-flatsome .off-canvas .searchform select.search_categories option {
  background: var(--surface);
  color: var(--ink);
}
body.theme-flatsome .header .searchform .search-field::placeholder,
body.theme-flatsome .off-canvas .searchform .search-field::placeholder {
  color: color-mix(in srgb, var(--art-ink) 50%, transparent);
}
body.theme-flatsome .header .searchform .ux-search-submit,
body.theme-flatsome .off-canvas .searchform .ux-search-submit {
  height: 40px;
  min-width: 44px;
  background: transparent;
  color: var(--hud);
  border: 0;
  box-shadow: none;
  clip-path: none;
}
body.theme-flatsome .header .searchform .ux-search-submit:hover,
body.theme-flatsome .off-canvas .searchform .ux-search-submit:hover {
  background: rgba(255, 255, 255, 0.07);
  filter: none;
}
/* w menu na telefonie pole ma 16 px: iPhone nie powiększa wtedy strony przy wpisywaniu */
body.theme-flatsome .off-canvas .searchform .search-field {
  font-size: 16px;
}

/* dolny pasek z menu kategorii → zakładki kokpitu z podkreśleniem HUD */
body.theme-flatsome #wide-nav.header-bottom {
  background-color: var(--art-bg) !important;
  min-height: 46px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
body.theme-flatsome .header-bottom-nav.nav > li > a {
  position: relative;
  height: 46px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  font: 800 15px/1 var(--font-display);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--art-ink) 62%, transparent);
}
body.theme-flatsome .header-bottom-nav.nav > li > a:hover,
body.theme-flatsome .header-bottom-nav.nav > li.active > a,
body.theme-flatsome .header-bottom-nav.nav > li.current-menu-item > a,
body.theme-flatsome .header-bottom-nav.nav > li.current-menu-ancestor > a {
  color: var(--art-ink);
  background: linear-gradient(0deg, color-mix(in srgb, var(--hud) 16%, transparent), transparent 70%);
}
/* Podkreślenie na ::before, bo ::after zajmuje separator Flatsome (.nav-divided > li + li > a::after:
   top 50%, width 1px, margin-top −7px) — mieszanie obu dawało różowy ząbek przy pierwszej literze. */
body.theme-flatsome .header-bottom-nav.nav > li > a::before {
  display: none;
}
body.theme-flatsome .header-bottom-nav.nav > li.active > a::before,
body.theme-flatsome .header-bottom-nav.nav > li.current-menu-item > a::before,
body.theme-flatsome .header-bottom-nav.nav > li.current-menu-ancestor > a::before,
body.theme-flatsome .header-bottom-nav.nav > li > a:hover::before {
  content: '';
  display: block;
  position: absolute;
  top: auto;
  left: 14px;
  right: 14px;
  bottom: 0;
  width: auto;
  height: 3px;
  margin: 0;
  border: 0;
  opacity: 1;
  transform: none;
  background: var(--hud);
}
body.theme-flatsome .header-bottom .nav > li > a .icon-angle-down {
  opacity: 0.6;
}
body.theme-flatsome #wide-nav .flex-right a,
body.theme-flatsome #wide-nav .html {
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--art-ink) 62%, transparent);
}

/* rozwijane menu */
body.theme-flatsome .nav-dropdown,
body.theme-flatsome .nav .nav-dropdown {
  background-color: var(--surface);
  border: 1px solid var(--line-strong) !important;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-pop);
  color: var(--ink-2);
}
body.theme-flatsome .nav-dropdown li a,
body.theme-flatsome .nav-dropdown > li > a {
  color: var(--ink-2);
  font: 500 14px/1.3 var(--font-ui);
  text-transform: none;
  letter-spacing: 0;
}
body.theme-flatsome .nav-dropdown li a:hover {
  color: var(--ink);
  background: var(--sunk);
}
body.theme-flatsome.nav-dropdown-has-arrow li.has-dropdown::after {
  border-bottom-color: var(--surface);
}
body.theme-flatsome.nav-dropdown-has-arrow.nav-dropdown-has-border li.has-dropdown::before {
  border-bottom-color: var(--line-strong);
}

/* taśma kursu pod nagłówkiem (czysty CSS, bez JS). Przewija się razem ze stroną tam, gdzie
   przeglądarka zna „scroll-driven animations”; gdzie indziej stoi na 274°. */
body.theme-flatsome .header-wrapper::after {
  content: '';
  display: block;
  position: relative; /* nad .header-bg-container Flatsome */
  z-index: 1;
  height: 26px;
  background-color: color-mix(in srgb, var(--art-bg) 80%, #000);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2160' height='26' viewBox='0 0 2160 26'%3E%3Cpath d='M0.5 26v-8M30.5 26v-4M60.5 26v-8M90.5 26v-4M120.5 26v-8M150.5 26v-4M180.5 26v-8M210.5 26v-4M240.5 26v-8M270.5 26v-4M300.5 26v-8M330.5 26v-4M360.5 26v-8M390.5 26v-4M420.5 26v-8M450.5 26v-4M480.5 26v-8M510.5 26v-4M540.5 26v-8M570.5 26v-4M600.5 26v-8M630.5 26v-4M660.5 26v-8M690.5 26v-4M720.5 26v-8M750.5 26v-4M780.5 26v-8M810.5 26v-4M840.5 26v-8M870.5 26v-4M900.5 26v-8M930.5 26v-4M960.5 26v-8M990.5 26v-4M1020.5 26v-8M1050.5 26v-4M1080.5 26v-8M1110.5 26v-4M1140.5 26v-8M1170.5 26v-4M1200.5 26v-8M1230.5 26v-4M1260.5 26v-8M1290.5 26v-4M1320.5 26v-8M1350.5 26v-4M1380.5 26v-8M1410.5 26v-4M1440.5 26v-8M1470.5 26v-4M1500.5 26v-8M1530.5 26v-4M1560.5 26v-8M1590.5 26v-4M1620.5 26v-8M1650.5 26v-4M1680.5 26v-8M1710.5 26v-4M1740.5 26v-8M1770.5 26v-4M1800.5 26v-8M1830.5 26v-4M1860.5 26v-8M1890.5 26v-4M1920.5 26v-8M1950.5 26v-4M1980.5 26v-8M2010.5 26v-4M2040.5 26v-8M2070.5 26v-4M2100.5 26v-8M2130.5 26v-4' stroke='%23e8edf7' stroke-opacity='.42' stroke-width='1'/%3E%3Cg fill='%23e8edf7' fill-opacity='.55' font-family='ui-monospace,Consolas,monospace' font-size='10' letter-spacing='.6' text-anchor='middle'%3E%3Ctext x='0' y='12' fill-opacity='1' font-weight='700'%3EN%3C/text%3E%3Ctext x='180' y='12'%3E030%3C/text%3E%3Ctext x='360' y='12'%3E060%3C/text%3E%3Ctext x='540' y='12' fill-opacity='1' font-weight='700'%3EE%3C/text%3E%3Ctext x='720' y='12'%3E120%3C/text%3E%3Ctext x='900' y='12'%3E150%3C/text%3E%3Ctext x='1080' y='12' fill-opacity='1' font-weight='700'%3ES%3C/text%3E%3Ctext x='1260' y='12'%3E210%3C/text%3E%3Ctext x='1440' y='12'%3E240%3C/text%3E%3Ctext x='1620' y='12' fill-opacity='1' font-weight='700'%3EW%3C/text%3E%3Ctext x='1800' y='12'%3E300%3C/text%3E%3Ctext x='1980' y='12'%3E330%3C/text%3E%3Ctext x='2160' y='12' fill-opacity='1' font-weight='700'%3EN%3C/text%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: calc(50vw - 1644px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}
/* znacznik kursu (bug) na środku taśmy */
body.theme-flatsome .header-wrapper::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 3;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid var(--hud);
  transform: translateX(-6px);
  pointer-events: none;
}
body.theme-flatsome .header-wrapper.stuck::after,
body.theme-flatsome .header-wrapper.stuck::before {
  display: none;
}
@supports (animation-timeline: scroll()) {
  body.theme-flatsome .header-wrapper::after {
    animation: fd-heading linear both;
    animation-timeline: scroll(root);
  }
  @keyframes fd-heading {
    from {
      background-position: calc(50vw - 1644px) 0;
    }
    to {
      background-position: calc(50vw - 1644px - 1080px) 0;
    }
  }
}

/* ---------- 4. Nagłówek strony ---------- */
body.theme-flatsome .page-title,
body.theme-flatsome .shop-page-title {
  background: transparent;
}
body.theme-flatsome .featured-title .page-title-bg,
body.theme-flatsome .featured-title .title-overlay {
  display: none;
}
body.theme-flatsome .featured-title,
body.theme-flatsome .page-title.dark {
  color: var(--ink-2);
}
body.theme-flatsome .page-title-inner {
  padding-top: 22px;
  padding-bottom: 10px;
  min-height: 0;
}
body.theme-flatsome .breadcrumbs,
body.theme-flatsome .woocommerce-breadcrumb {
  font: 600 11px/1.4 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
body.theme-flatsome .breadcrumbs a {
  color: var(--muted);
  font-weight: 600;
}
body.theme-flatsome .breadcrumbs a:hover {
  color: var(--accent);
}
body.theme-flatsome .breadcrumbs .divider {
  color: var(--line-strong);
  margin: 0 6px;
}
body.theme-flatsome .woocommerce-result-count {
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* tytuł kategorii w stylu nagłówka Base: szablonowa czcionka, linia 2px z magentowym odcinkiem */
body.theme-flatsome .fd-page-head,
body.theme-flatsome .woocommerce-products-header {
  position: relative;
  margin: 6px 0 26px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
}
body.theme-flatsome .fd-page-head::after,
body.theme-flatsome .woocommerce-products-header::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 96px;
  height: 2px;
  background: var(--accent);
}
body.theme-flatsome .fd-page-head h1,
body.theme-flatsome .woocommerce-products-header__title {
  margin: 8px 0 0;
  font: 900 clamp(40px, 6vw, 64px) / 0.88 var(--font-stencil);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ink);
}
body.theme-flatsome .fd-page-head p,
body.theme-flatsome .term-description {
  max-width: 640px;
  margin: 10px 0 0;
  color: var(--ink-2);
}

/* tytuł kategorii (Dostosuj → Product Catalogue → Show title): szablonowa czcionka jak nagłówki w Base,
   pod nim okruszki; opis kategorii z WooCommerce jako lead */
body.theme-flatsome .category-page-title h1.shop-page-title {
  margin: 4px 0 8px;
  font: 900 clamp(34px, 4.4vw, 56px)/0.92 var(--font-stencil);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
}
body.theme-flatsome .category-page-title .page-title-inner {
  align-items: flex-end;
  padding-top: 18px;
  padding-bottom: 12px;
}
body.theme-flatsome .term-description {
  max-width: 720px;
  margin-bottom: 18px;
  padding-left: 12px;
  border-left: 2px solid var(--accent);
  color: var(--ink-2);
  font-size: 15px;
}

/* strona główna = strona sklepu z blokiem startowym (Dostosuj → WooCommerce → Product Catalogue → Shop Page Header):
   tytuł „Shop” jest tam zbędny, zostaje licznik i sortowanie pod nagłówkiem „Latest gear” */
body.home.woocommerce-shop h1.shop-page-title {
  display: none;
}

/* ---------- 5. Przyciski i pola ---------- */
body.theme-flatsome .button,
body.theme-flatsome button.button,
body.theme-flatsome input[type='submit'],
body.theme-flatsome input[type='button'].button,
body.theme-flatsome .single_add_to_cart_button,
body.theme-flatsome .checkout-button,
body.theme-flatsome a.button.wc-forward {
  border: 0;
  border-radius: 0;
  background-color: var(--sunk);
  color: var(--ink);
  box-shadow: none;
  font: 800 15px/1 var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  /* Flatsome robi z przycisku inline-block z line-height ~2.4em — tu tekst zawsze na środku */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  vertical-align: middle;
  height: auto;
  min-height: 40px;
  padding: 0 18px;
  /* Big Shoulders ma wysoko osadzone wersaliki — optyczne wyśrodkowanie */
  padding-top: 0.12em;
  clip-path: polygon(var(--cut-sm) 0, 100% 0, 100% calc(100% - var(--cut-sm)), calc(100% - var(--cut-sm)) 100%, 0 100%, 0 var(--cut-sm));
  transition: background-color 0.15s, filter 0.15s, color 0.15s;
}
/* <input> nie umie być flexem — wyśrodkowanie przez line-height */
body.theme-flatsome input[type='submit'],
body.theme-flatsome input[type='button'].button {
  display: inline-block;
  height: 40px;
  line-height: 40px;
  padding-top: 0;
}
body.theme-flatsome .button:hover,
body.theme-flatsome input[type='submit']:hover {
  background-color: var(--line-strong);
  color: var(--ink);
  box-shadow: none;
}
body.theme-flatsome .button.primary,
body.theme-flatsome .button.alt,
body.theme-flatsome .single_add_to_cart_button,
body.theme-flatsome .checkout-button,
body.theme-flatsome #place_order,
body.theme-flatsome input[type='submit'].button.primary,
/* „Proceed to checkout” i „Checkout” w mini-koszyku mają też .wc-forward — bez tego wygrywa szare a.button.wc-forward */
body.theme-flatsome a.button.alt.wc-forward,
body.theme-flatsome a.button.checkout.wc-forward {
  background-color: var(--accent);
  color: var(--accent-ink);
}
body.theme-flatsome .button.primary:hover,
body.theme-flatsome .button.alt:hover,
body.theme-flatsome .single_add_to_cart_button:hover,
body.theme-flatsome .checkout-button:hover,
body.theme-flatsome #place_order:hover,
body.theme-flatsome a.button.alt.wc-forward:hover,
body.theme-flatsome a.button.checkout.wc-forward:hover {
  background-color: var(--accent);
  color: var(--accent-ink);
  filter: brightness(1.08);
}
body.theme-flatsome .button.is-outline,
body.theme-flatsome .button.primary.is-outline {
  background-color: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
body.theme-flatsome .button.is-outline:hover {
  background-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: none;
}
/* okrągłe przyciski-ikony (ulubione, zoom, poprzedni/następny) → małe kwadraty ze ściętym rogiem */
body.theme-flatsome .button.icon.circle,
body.theme-flatsome .button.icon {
  min-height: 34px;
  min-width: 34px;
  padding: 0;
  border-radius: 0;
  background-color: color-mix(in srgb, var(--surface) 85%, transparent);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
body.theme-flatsome .button.icon:hover {
  background-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: none;
}

/* pola formularzy (ciemny sklep) */
body.theme-flatsome input[type='text'],
body.theme-flatsome input[type='email'],
body.theme-flatsome input[type='search'],
body.theme-flatsome input[type='number'],
body.theme-flatsome input[type='tel'],
body.theme-flatsome input[type='password'],
body.theme-flatsome input[type='url'],
body.theme-flatsome textarea,
body.theme-flatsome select {
  background-color: var(--sunk);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: none;
  color: var(--ink);
  font-family: var(--font-ui);
}
body.theme-flatsome input:focus,
body.theme-flatsome textarea:focus,
body.theme-flatsome select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
  background-color: var(--surface);
  color: var(--ink);
}
body.theme-flatsome select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2376809a' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}
body.theme-flatsome label,
body.theme-flatsome legend {
  font: 600 11px/1.3 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ilość: −  1  + */
body.theme-flatsome .ux-quantity .ux-quantity__button,
body.theme-flatsome .quantity .button.is-form {
  height: 40px;
  min-height: 40px;
  min-width: 34px;
  padding: 0;
  margin: 0;
  background-color: var(--sunk);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  clip-path: none;
  font: 600 16px/38px var(--font-mono);
}
body.theme-flatsome .ux-quantity .ux-quantity__button:hover {
  background-color: var(--line-strong);
}
body.theme-flatsome .ux-quantity input.qty {
  height: 40px;
  width: 44px;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  background: var(--surface);
  font: 600 15px/1 var(--font-mono);
}

/* ---------- 6. Karty produktów i kategorii ---------- */
/* ścięte narożniki z linią krawędzi także na skosie (jak .card w Base) */
body.theme-flatsome .products .product-small > .col-inner,
body.theme-flatsome .product-category > .col-inner,
body.theme-flatsome .fd-card {
  --edge: var(--line-strong);
  position: relative;
  height: 100%;
  background:
    linear-gradient(135deg, transparent calc(50% - 0.8px), var(--edge) calc(50% - 0.8px) calc(50% + 0.8px), transparent calc(50% + 0.8px)) top left / var(--cut) var(--cut) no-repeat,
    linear-gradient(135deg, transparent calc(50% - 0.8px), var(--edge) calc(50% - 0.8px) calc(50% + 0.8px), transparent calc(50% + 0.8px)) bottom right / var(--cut) var(--cut) no-repeat,
    var(--surface);
  box-shadow: inset 0 0 0 1px var(--edge);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: box-shadow 0.15s;
}
body.theme-flatsome .products .product-small > .col-inner:hover,
body.theme-flatsome .product-category > .col-inner:hover,
body.theme-flatsome .fd-card:hover {
  --edge: var(--accent);
}
body.theme-flatsome .products .product-small .box {
  background: transparent;
}
body.theme-flatsome .products .product-small .box-image {
  background: #0c0c0c;
  overflow: hidden;
}
body.theme-flatsome .products .product-small .box-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
body.theme-flatsome .products .product-small:hover .box-image img {
  transform: scale(1.05);
}
/* delikatne przyciemnienie krawędzi zdjęcia jak w kartach quadów */
body.theme-flatsome .products .product-small .box-image::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.35));
}
body.theme-flatsome .products .product-small .box-text {
  padding: 12px 16px 18px;
  text-align: left;
}
body.theme-flatsome .products .product-small .box-text .category {
  display: block;
  margin-bottom: 7px;
  font: 600 10px/1.2 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 1;
}
body.theme-flatsome .products .product-small .woocommerce-loop-product__title,
body.theme-flatsome .products .product-small .product-title {
  margin: 0 0 10px;
  font: 700 18px/1.08 var(--font-display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.theme-flatsome .products .product-small .woocommerce-loop-product__title a {
  color: var(--ink);
}
body.theme-flatsome .products .product-small .woocommerce-loop-product__title a:hover {
  color: var(--accent);
}
/* ceny: cyfry tabelaryczne, jak odczyty przyrządów */
body.theme-flatsome .price,
body.theme-flatsome .amount {
  font-family: var(--font-mono);
  font-feature-settings: 'tnum';
  color: var(--ink);
}
body.theme-flatsome .products .price {
  font-size: 15px;
  font-weight: 600;
}
body.theme-flatsome .price del,
body.theme-flatsome .price del .amount {
  color: var(--muted);
  font-weight: 500;
  opacity: 1;
}
body.theme-flatsome .price ins,
body.theme-flatsome .price ins .amount {
  color: var(--accent-2);
  font-weight: 600;
  text-decoration: none;
}
/* „Sale!” → czerwona zawieszka „Remove Before Flight” */
body.theme-flatsome .badge-container {
  margin: 0;
  z-index: 3;
}
body.theme-flatsome .badge.badge-circle,
body.theme-flatsome .badge {
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
}
body.theme-flatsome .badge-inner.on-sale,
body.theme-flatsome .badge-circle .badge-inner {
  width: auto;
  height: auto;
  min-height: 0;
  padding: 18px 9px 14px;
  margin-left: 22px;
  border-radius: 0;
  background-color: var(--rbf);
  color: #fff;
  writing-mode: vertical-rl;
  font: 800 11px/1 var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 50% 100%, 0 88%);
  position: relative;
}
body.theme-flatsome .badge-inner.on-sale::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: #2a0a0f;
  box-shadow: inset 0 0 0 1.5px #e8e8e8;
}
/* narzędzia na zdjęciu (ulubione / szybki podgląd) */
body.theme-flatsome .image-tools .wishlist-button {
  opacity: 1;
}
body.theme-flatsome .grid-tools {
  background: transparent;
}
body.theme-flatsome .grid-tools a {
  background-color: color-mix(in srgb, var(--art-bg) 82%, transparent);
  color: var(--art-ink);
  font: 700 12px/1 var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
body.theme-flatsome .grid-tools a:hover {
  background-color: var(--accent);
  color: var(--accent-ink);
}
/* przycisk „Select options / Add to basket” pod ceną w siatce */
body.theme-flatsome .products .add-to-cart-button .button,
body.theme-flatsome .products .box-text .button {
  margin-top: 12px;
  min-height: 32px;
  font-size: 13px;
}

/* YITH „Add to wishlist” pod przyciskiem w siatce → drobny napis jak na tabliczce */
/* YITH wstawia ten blok POZA .box-text, prosto na dolną krawędź karty — dajemy mu te same odstępy co tekstowi karty */
body.theme-flatsome .products .product-small > .col-inner {
  display: flex;
  flex-direction: column;
}
body.theme-flatsome .products .yith-wcwl-add-to-wishlist {
  margin: auto 0 0; /* zawsze przy dole karty, także w kartach niższych niż sąsiednie */
  padding: 0 16px 18px;
  text-align: left;
}
body.theme-flatsome .products .product-small > .col-inner:has(> .yith-wcwl-add-to-wishlist) .box-text {
  padding-bottom: 12px;
}
body.theme-flatsome .products .yith-wcwl-add-to-wishlist .yith-wcwl-add-button,
body.theme-flatsome .products .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistaddedbrowse,
body.theme-flatsome .products .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistexistsbrowse {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
}
body.theme-flatsome .products .yith-wcwl-add-to-wishlist a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
body.theme-flatsome .products .yith-wcwl-add-to-wishlist a,
body.theme-flatsome .products .yith-wcwl-add-to-wishlist a span {
  font: 600 10.5px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
body.theme-flatsome .products .yith-wcwl-add-to-wishlist a:hover,
body.theme-flatsome .products .yith-wcwl-add-to-wishlist a:hover span {
  color: var(--accent);
}
body.theme-flatsome .products .yith-wcwl-add-to-wishlist svg,
body.theme-flatsome .products .yith-wcwl-add-to-wishlist .yith-wcwl-icon {
  width: 13px;
  height: 13px;
  color: var(--muted);
}

/* kafelki kategorii: zdjęcie + nazwa nałożona jak napis OSD */
body.theme-flatsome .product-category .box {
  position: relative;
}
body.theme-flatsome .product-category .box-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0c0c0c;
}
body.theme-flatsome .product-category .box-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) contrast(1.1);
  transition: transform 0.6s var(--ease), filter 0.3s;
}
body.theme-flatsome .product-category:hover .box-image img {
  transform: scale(1.05);
  filter: brightness(0.8) contrast(1.1);
}
body.theme-flatsome .product-category .box-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  text-align: left;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), transparent);
}
body.theme-flatsome .product-category .header-title {
  margin: 0;
  font: 800 22px/1 var(--font-display);
  letter-spacing: 0.04em;
  color: #fff;
}
body.theme-flatsome .product-category .count {
  margin-top: 6px;
  font: 600 10.5px/1 var(--font-mono);
  letter-spacing: 0.14em;
  color: var(--hud);
  opacity: 1;
}
body.theme-flatsome .box-badge.hover-dark:hover .box-text {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), transparent);
}

/* ---------- 7. Karta produktu ---------- */
body.theme-flatsome .product-main {
  padding-top: 18px;
}
body.theme-flatsome .product-info .product-title,
body.theme-flatsome .product_title {
  margin-top: 4px;
  font: 800 clamp(30px, 3.4vw, 40px) / 0.95 var(--font-display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
body.theme-flatsome .product-info .price-wrapper .price {
  font-size: 26px;
  font-weight: 600;
  margin: 6px 0 14px;
}
body.theme-flatsome .product-short-description,
body.theme-flatsome .woocommerce-product-details__short-description {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}
/* galeria w ramce ze ściętymi narożnikami + celowniki HUD na rogach */
body.theme-flatsome .product-gallery .product-images,
body.theme-flatsome .woocommerce-product-gallery {
  position: relative;
  background: #0c0c0c;
  clip-path: polygon(var(--cut-lg) 0, 100% 0, 100% calc(100% - var(--cut-lg)), calc(100% - var(--cut-lg)) 100%, 0 100%, 0 var(--cut-lg));
}
body.theme-flatsome .woocommerce-product-gallery::after {
  content: '';
  position: absolute;
  inset: 12px;
  z-index: 2;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.85);
  --bl: 18px;
  --bw: 2px;
  background:
    linear-gradient(currentColor, currentColor) top left / var(--bl) var(--bw) no-repeat,
    linear-gradient(currentColor, currentColor) top left / var(--bw) var(--bl) no-repeat,
    linear-gradient(currentColor, currentColor) top right / var(--bl) var(--bw) no-repeat,
    linear-gradient(currentColor, currentColor) top right / var(--bw) var(--bl) no-repeat,
    linear-gradient(currentColor, currentColor) bottom left / var(--bl) var(--bw) no-repeat,
    linear-gradient(currentColor, currentColor) bottom left / var(--bw) var(--bl) no-repeat,
    linear-gradient(currentColor, currentColor) bottom right / var(--bl) var(--bw) no-repeat,
    linear-gradient(currentColor, currentColor) bottom right / var(--bw) var(--bl) no-repeat;
}
body.theme-flatsome .product-thumbnails .col a,
body.theme-flatsome .product-thumbnails a {
  border: 1px solid var(--line-strong);
  background: #0c0c0c;
}
body.theme-flatsome .product-thumbnails img {
  opacity: 0.6;
  transform: none;
}
body.theme-flatsome .product-thumbnails .is-nav-selected a,
body.theme-flatsome .product-thumbnails a:hover {
  border-color: var(--accent);
}
body.theme-flatsome .product-thumbnails .is-nav-selected img,
body.theme-flatsome .product-thumbnails a:hover img {
  opacity: 1;
}
/* wybór wariantu (wtyczka Variation Swatches) */
body.theme-flatsome table.variations th.label,
body.theme-flatsome table.variations th.label label {
  font: 600 11px/1.3 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
/* Kolory wariantów: każda skórka ma własną „lampkę”.
   Glass Cockpit (domyślnie): szklane lampki kontrolek ze ściętym rogiem, wybrana w narożnikach celownika HUD.
   Aviator: okrągłe klejnoty lampek w mosiężnej, radełkowanej oprawie; wybrana ze złotym pierścieniem i wskazówką.
   Sectional: kafelki legendy mapy VFR; pod wybranym linia trasy.
   Squadron: próbki farby z nitami; wybrana z czerwoną zawieszką „Remove Before Flight”.
   Kolor próbki daje wtyczka (inline background-color na .cfvsw-swatch-inner). */
body.theme-flatsome .cfvsw-swatches-container {
  gap: 10px;
  padding: 4px 2px 10px;
}
body.theme-flatsome .cfvsw-swatches-option {
  position: relative;
  width: 34px;
  height: 34px;
  min-width: 34px !important;
  min-height: 34px !important;
  padding: 4px;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--sunk);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: box-shadow 0.15s, transform 0.15s var(--ease);
}
body.theme-flatsome .cfvsw-swatches-option .cfvsw-swatch-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35), inset 0 -7px 10px rgba(0, 0, 0, 0.28);
}
/* szybka lampki: odblask u góry */
body.theme-flatsome .cfvsw-swatches-option .cfvsw-swatch-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.08) 42%, transparent 55%);
  pointer-events: none;
}
body.theme-flatsome .cfvsw-swatches-option:hover {
  box-shadow: inset 0 0 0 1px var(--ink-2);
  transform: translateY(-1px);
}
/* wybrana: narożniki celownika HUD */
body.theme-flatsome .cfvsw-swatches-option::before {
  --c: var(--accent);
  content: '';
  position: absolute;
  inset: -5px;
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) top left / 9px 2px,
    linear-gradient(var(--c), var(--c)) top left / 2px 9px,
    linear-gradient(var(--c), var(--c)) top right / 9px 2px,
    linear-gradient(var(--c), var(--c)) top right / 2px 9px,
    linear-gradient(var(--c), var(--c)) bottom left / 9px 2px,
    linear-gradient(var(--c), var(--c)) bottom left / 2px 9px,
    linear-gradient(var(--c), var(--c)) bottom right / 9px 2px,
    linear-gradient(var(--c), var(--c)) bottom right / 2px 9px;
  background-repeat: no-repeat;
  transition: opacity 0.15s, inset 0.2s var(--ease);
}
body.theme-flatsome .cfvsw-swatches-option.cfvsw-selected-swatch {
  box-shadow: inset 0 0 0 1px var(--accent);
}
body.theme-flatsome .cfvsw-swatches-option.cfvsw-selected-swatch::before {
  opacity: 1;
  inset: -6px;
}

/* --- Aviator: mosiężne oprawki lampek --- */
html[data-livery='aviator'] body.theme-flatsome .cfvsw-swatches-option {
  width: 36px;
  height: 36px;
  min-width: 36px !important;
  min-height: 36px !important;
  padding: 5px;
  border-radius: 50% !important;
  background:
    repeating-conic-gradient(rgba(60, 38, 8, 0.28) 0 5deg, transparent 5deg 10deg),
    radial-gradient(circle at 34% 28%, #fbe7b0 0%, #e3b25b 32%, #a8752a 64%, #5c3d10 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(40, 24, 4, 0.55);
}
html[data-livery='aviator'] body.theme-flatsome .cfvsw-swatches-option .cfvsw-swatch-inner {
  border-radius: 50%;
  clip-path: none;
  box-shadow: inset 0 0 0 1.5px rgba(40, 24, 4, 0.7), inset 0 -6px 9px rgba(0, 0, 0, 0.35), inset 0 3px 5px rgba(255, 255, 255, 0.25);
}
html[data-livery='aviator'] body.theme-flatsome .cfvsw-swatches-option .cfvsw-swatch-inner::after {
  border-radius: 50%;
  background: radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.85) 0, rgba(255, 255, 255, 0.25) 18%, transparent 40%);
}
html[data-livery='aviator'] body.theme-flatsome .cfvsw-swatches-option:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(40, 24, 4, 0.55);
}
html[data-livery='aviator'] body.theme-flatsome .cfvsw-swatches-option::before,
html[data-livery='aviator'] body.theme-flatsome .cfvsw-swatches-option.cfvsw-selected-swatch::before {
  inset: -4px;
  border-radius: 50%;
  background: none;
  box-shadow: 0 0 0 2px var(--accent);
}
/* wskazówka pod wybraną lampką */
html[data-livery='aviator'] body.theme-flatsome .cfvsw-swatches-option::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 8px;
  height: 6px;
  margin-left: -4px;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  opacity: 0;
  transition: opacity 0.15s;
}
html[data-livery='aviator'] body.theme-flatsome .cfvsw-swatches-option.cfvsw-selected-swatch::after {
  opacity: 1;
}
html[data-livery='aviator'] body.theme-flatsome .cfvsw-swatches-option.cfvsw-selected-swatch {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(40, 24, 4, 0.55);
}

/* --- Sectional: legenda mapy VFR --- */
html[data-livery='sectional'] body.theme-flatsome .cfvsw-swatches-option {
  padding: 3px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--ink-2);
}
html[data-livery='sectional'] body.theme-flatsome .cfvsw-swatches-option .cfvsw-swatch-inner {
  clip-path: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}
html[data-livery='sectional'] body.theme-flatsome .cfvsw-swatches-option .cfvsw-swatch-inner::after {
  background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(255, 255, 255, 0.14) 5px 6px);
}
html[data-livery='sectional'] body.theme-flatsome .cfvsw-swatches-option::before {
  inset: auto 0 -8px;
  height: 3px;
  background: var(--accent-2);
}
html[data-livery='sectional'] body.theme-flatsome .cfvsw-swatches-option.cfvsw-selected-swatch::before {
  inset: auto -3px -8px;
}
html[data-livery='sectional'] body.theme-flatsome .cfvsw-swatches-option.cfvsw-selected-swatch {
  box-shadow: inset 0 0 0 2px var(--accent);
}

/* --- Squadron: próbki farby z nitami --- */
html[data-livery='squadron'] body.theme-flatsome .cfvsw-swatches-option {
  padding: 6px;
  background:
    radial-gradient(circle, var(--muted) 1.2px, transparent 1.7px) 3px 3px / 28px 28px,
    var(--sunk);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
html[data-livery='squadron'] body.theme-flatsome .cfvsw-swatches-option .cfvsw-swatch-inner {
  clip-path: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3), inset 0 0 6px rgba(0, 0, 0, 0.25);
}
html[data-livery='squadron'] body.theme-flatsome .cfvsw-swatches-option .cfvsw-swatch-inner::after {
  background: none;
}
html[data-livery='squadron'] body.theme-flatsome .cfvsw-swatches-option::before,
html[data-livery='squadron'] body.theme-flatsome .cfvsw-swatches-option.cfvsw-selected-swatch::before {
  inset: -4px -6px auto auto;
  width: 7px;
  height: 14px;
  background: var(--rbf);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
}
html[data-livery='squadron'] body.theme-flatsome .cfvsw-swatches-option.cfvsw-selected-swatch {
  box-shadow: inset 0 0 0 2px var(--accent);
}
body.theme-flatsome .reset_variations {
  font: 600 10.5px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
body.theme-flatsome .single_add_to_cart_button {
  min-height: 46px;
  padding: 0 24px;
  font-size: 16px;
}
/* WooPayments (Google / Apple Pay): sam przycisk to iframe — tylko odstęp; motyw przycisku w ustawieniach WooPayments */
body.theme-flatsome .wcpay-express-checkout-wrapper {
  margin: 14px 0 6px;
}
/* komunikat o ratach (Clearpay / Klarna) pod ceną: iframe Stripe sam dobiera jasny tekst do ciemnego tła.
   Ramka WooPayments ma sztywne 60 px, a iframe 68 px — dolna linijka wchodziła na opis. Tylko wysokość i odstęp. */
body.theme-flatsome #payment-method-message {
  height: auto !important;
  min-height: 4em; /* miejsce zarezerwowane na czas ładowania, jak w WooPayments */
  margin: 2px 0 16px;
}
/* SKU / kategorie / tagi jak tabliczka znamionowa */
body.theme-flatsome .product_meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font: 500 12px/1.7 var(--font-mono);
  color: var(--muted);
}
body.theme-flatsome .product_meta > span {
  display: block;
  border-top: 0;
  padding: 1px 0;
}
body.theme-flatsome .product_meta a {
  color: var(--ink-2);
}
body.theme-flatsome .product_meta a:hover {
  color: var(--accent);
}
body.theme-flatsome .social-icons .button.icon {
  min-height: 30px;
  min-width: 30px;
}
body.theme-flatsome .social-icons .button.icon i {
  color: var(--ink-2);
}
body.theme-flatsome .social-icons .button.icon:hover i {
  color: var(--accent-ink);
}
/* zakładki: Opis / Informacje dodatkowe / Opinie */
body.theme-flatsome .product-footer .woocommerce-tabs {
  border-top: 2px solid var(--ink);
  padding-top: 0;
}
body.theme-flatsome .woocommerce-tabs .nav.tabs,
body.theme-flatsome .product-tabs {
  border: 0;
}
body.theme-flatsome .product-tabs > li > a,
body.theme-flatsome .woocommerce-tabs .tabs li a {
  position: relative;
  padding: 14px 4px;
  margin-right: 18px;
  font: 800 16px/1 var(--font-display);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  border: 0;
}
body.theme-flatsome .product-tabs > li.active > a,
body.theme-flatsome .product-tabs > li > a:hover {
  color: var(--ink);
}
body.theme-flatsome .product-tabs > li > a::before {
  background-color: var(--accent) !important;
  height: 3px !important;
  top: -2px !important;
}
body.theme-flatsome .woocommerce-Tabs-panel {
  max-width: 760px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
}
/* Informacje dodatkowe → odczyty przyrządów */
body.theme-flatsome table.woocommerce-product-attributes,
body.theme-flatsome .shop_attributes {
  border-top: 1px solid var(--line-strong);
}
body.theme-flatsome .woocommerce-product-attributes th,
body.theme-flatsome .shop_attributes th {
  font: 600 10.5px/1.3 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-color: var(--line);
}
body.theme-flatsome .woocommerce-product-attributes td,
body.theme-flatsome .shop_attributes td {
  font: 500 14px/1.4 var(--font-mono);
  color: var(--ink);
  border-color: var(--line);
  font-style: normal;
}
/* nagłówki sekcji („Related products”) — szablonowa czcionka */
body.theme-flatsome .product-section-title,
body.theme-flatsome .related > h2,
body.theme-flatsome .up-sells > h2,
body.theme-flatsome .section-title-main {
  font: 900 34px/0.9 var(--font-stencil);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ink);
}
body.theme-flatsome .product-section {
  border-top: 1px solid var(--line);
}
/* poprzedni/następny produkt */
body.theme-flatsome .next-prev-thumbs .nav-dropdown {
  padding: 6px;
}

/* ---------- 8. Pasek boczny i widżety ---------- */
body.theme-flatsome .widget-title,
body.theme-flatsome .widget .widget-title,
body.theme-flatsome span.widget-title {
  font: 600 10.5px/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
body.theme-flatsome .widget .is-divider {
  max-width: 24px;
  height: 2px;
  margin: 10px 0 12px;
  background-color: var(--line-strong);
}
body.theme-flatsome .row-divided > .col + .col:not(.large-12) {
  border-left-color: var(--line);
}
body.theme-flatsome .widget > ul > li {
  border-top: 1px solid var(--line) !important;
}
body.theme-flatsome .widget > ul > li > a {
  font: 600 15px/1.2 var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
}
body.theme-flatsome .widget .toggle {
  color: var(--muted);
}

/* Menu kategorii w pasku bocznym: „wybierak kanałów” zamiast listy Flatsome.
   Rodzic = numer kanału (01, 02…) + nazwa + kwadratowy przełącznik ze ściętym rogiem.
   Podkategorie wiszą na taśmie z podziałką; wybrana ma znacznik w kolorze akcentu i poświatę. */
body.theme-flatsome .widget_product_categories > ul.product-categories {
  counter-reset: fd-ch;
  margin: 0;
  border-top: 1px solid var(--line-strong);
}
body.theme-flatsome .widget_product_categories > ul > li {
  counter-increment: fd-ch;
  position: relative;
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  margin: 0;
  border-top: 0 !important;
  border-bottom: 1px solid var(--line);
}
body.theme-flatsome .widget_product_categories > ul > li::before {
  display: none;
}
body.theme-flatsome .widget_product_categories > ul > li > a {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 8px 12px 0;
  font: 700 15px/1.15 var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color 0.15s;
}
body.theme-flatsome .widget_product_categories > ul > li > a::before {
  content: counter(fd-ch, decimal-leading-zero);
  flex: none;
  min-width: 16px;
  font: 600 10px/1 var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 0.15s;
}
body.theme-flatsome .widget_product_categories > ul > li > a:hover,
body.theme-flatsome .widget_product_categories > ul > li.active > a,
body.theme-flatsome .widget_product_categories > ul > li.current-cat > a,
body.theme-flatsome .widget_product_categories > ul > li.current-cat-parent > a {
  color: var(--ink);
}
body.theme-flatsome .widget_product_categories > ul > li > a:hover::before,
body.theme-flatsome .widget_product_categories > ul > li.active > a::before,
body.theme-flatsome .widget_product_categories > ul > li.current-cat > a::before,
body.theme-flatsome .widget_product_categories > ul > li.current-cat-parent > a::before {
  color: var(--accent);
}
/* przełącznik rozwijania: kwadrat ze ściętym rogiem; obraca się sama strzałka, nie przycisk */
body.theme-flatsome .widget_product_categories .toggle {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--surface-2);
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
  transition: color 0.15s, box-shadow 0.15s;
}
body.theme-flatsome .widget_product_categories .active > .toggle {
  transform: none;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
body.theme-flatsome .widget_product_categories .toggle:hover {
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink-2);
}
body.theme-flatsome .widget_product_categories .toggle i {
  top: 0;
  font-size: 15px;
  transition: transform 0.2s var(--ease);
}
body.theme-flatsome .widget_product_categories .active > .toggle i {
  transform: rotate(180deg);
}
/* podkategorie: taśma z podziałką pod numerem kanału */
body.theme-flatsome .widget_product_categories > ul > li > ul.children {
  width: 100%;
  margin: -2px 0 12px 7px;
  padding: 2px 0;
  border-left: 1px solid var(--line-strong);
}
body.theme-flatsome .widget_product_categories ul.children li {
  margin: 0;
  border: 0;
}
body.theme-flatsome .widget_product_categories ul.children li a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 10px 6px 0;
  font: 500 13.5px/1.3 var(--font-ui);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
  transition: color 0.15s, background-color 0.15s;
}
body.theme-flatsome .widget_product_categories ul.children li a::before {
  content: '';
  flex: none;
  width: 9px;
  height: 1px;
  background: var(--line-strong);
  transition: width 0.15s var(--ease), background-color 0.15s;
}
body.theme-flatsome .widget_product_categories ul.children li a:hover {
  color: var(--ink);
}
body.theme-flatsome .widget_product_categories ul.children li a:hover::before {
  width: 14px;
  background: var(--ink-2);
}
body.theme-flatsome .widget_product_categories ul.children li.current-cat > a {
  color: var(--ink);
  font-weight: 600;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 16%, transparent), transparent 85%);
}
body.theme-flatsome .widget_product_categories ul.children li.current-cat > a::before {
  width: 14px;
  height: 3px;
  background: var(--accent);
}
body.theme-flatsome .widget_product_categories .count {
  margin-left: auto;
  font: 600 10px/1 var(--font-mono);
  color: var(--muted);
  opacity: 1;
}
body.theme-flatsome .product_list_widget li {
  border-color: var(--line);
}
body.theme-flatsome .product_list_widget li img {
  border: 1px solid var(--line-strong);
}
body.theme-flatsome .product_list_widget .product-title {
  color: var(--ink);
  font: 500 13.5px/1.35 var(--font-ui);
}

/* ---------- 9. Stopka ---------- */
body.theme-flatsome .footer-wrapper {
  margin-top: 40px;
  background: var(--art-bg);
  color: color-mix(in srgb, var(--art-ink) 70%, transparent);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
body.theme-flatsome .footer-1,
body.theme-flatsome .footer-2 {
  background-color: var(--art-bg) !important;
  border: 0;
  color: color-mix(in srgb, var(--art-ink) 70%, transparent);
}
body.theme-flatsome .footer-2 {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
body.theme-flatsome .footer-wrapper .widget-title {
  color: var(--hud);
}
body.theme-flatsome .footer-wrapper a,
body.theme-flatsome .footer-wrapper .product-title {
  color: color-mix(in srgb, var(--art-ink) 85%, transparent);
}
body.theme-flatsome .footer-wrapper a:hover {
  color: var(--hud);
}
body.theme-flatsome .footer-wrapper .amount,
body.theme-flatsome .footer-wrapper .price {
  color: var(--art-ink);
}
body.theme-flatsome .footer-wrapper del .amount {
  color: color-mix(in srgb, var(--art-ink) 45%, transparent);
}
body.theme-flatsome .footer-wrapper ins .amount {
  color: var(--hud-2);
}
body.theme-flatsome .footer-wrapper .product_list_widget li,
body.theme-flatsome .footer-wrapper .widget > ul > li {
  border-color: rgba(255, 255, 255, 0.07) !important;
}
body.theme-flatsome .footer-wrapper .product_list_widget li img {
  border-color: rgba(255, 255, 255, 0.12);
}
body.theme-flatsome .footer-wrapper .is-divider {
  background-color: rgba(255, 255, 255, 0.16);
}
body.theme-flatsome .absolute-footer,
body.theme-flatsome .absolute-footer.dark {
  background-color: color-mix(in srgb, var(--art-bg) 70%, #000) !important;
  color: color-mix(in srgb, var(--art-ink) 50%, transparent);
  font: 500 11px/1.6 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
body.theme-flatsome .absolute-footer a {
  color: color-mix(in srgb, var(--art-ink) 70%, transparent);
}
body.theme-flatsome .absolute-footer strong {
  color: var(--hud);
  text-transform: none; /* nazwa studia zawsze jako „morz.studio” */
}
body.theme-flatsome .footer-wrapper .tagcloud a {
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: var(--r-sm);
  font: 500 11px/1 var(--font-mono);
}
body.theme-flatsome #top-link {
  border-radius: 0;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: none;
}

/* ---------- 10. Koszyk / kasa / konto — jasno, czytelnie, zwykłe pola ----------
   Tu celowo mało „kokpitu”: biała karta, normalne pola, duży czytelny tekst. Nagłówek i stopka
   zostają ciemne. Nie nadpisujemy niczego wewnątrz #payment .payment_box (pola karty WooPayments). */
body.woocommerce-cart.theme-flatsome,
body.woocommerce-checkout.theme-flatsome,
body.woocommerce-account.theme-flatsome,
body.woocommerce-order-received.theme-flatsome {
  background-image: none;
  color: var(--ink-2);
}
body.woocommerce-cart .cart-container,
body.woocommerce-checkout .checkout-page-title + .cart-container,
body.woocommerce-checkout form.checkout,
body.woocommerce-account .my-account,
body.woocommerce-account .account-container {
  font-size: 15px;
}
body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .cart-collaterals .cart-sidebar,
body.woocommerce-checkout .col-inner.has-border,
body.woocommerce-checkout #order_review,
body.woocommerce-account .woocommerce-MyAccount-content {
  background: var(--surface);
  border: 1px solid var(--line) !important;
  border-radius: var(--r-md);
  padding: 20px;
}
body.woocommerce-cart table.shop_table th,
body.woocommerce-checkout table.shop_table th {
  font: 600 10.5px/1.3 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-color: var(--line-strong);
}
body.woocommerce-cart table.shop_table td,
body.woocommerce-checkout table.shop_table td {
  border-color: var(--line);
  color: var(--ink);
}
body.woocommerce-cart input[type='text'],
body.woocommerce-cart input[type='email'],
body.woocommerce-cart input[type='number'],
body.woocommerce-cart input[type='tel'],
body.woocommerce-cart select,
body.woocommerce-checkout input[type='text'],
body.woocommerce-checkout input[type='email'],
body.woocommerce-checkout input[type='tel'],
body.woocommerce-checkout input[type='password'],
body.woocommerce-checkout select,
body.woocommerce-checkout textarea,
body.woocommerce-account input[type='text'],
body.woocommerce-account input[type='email'],
body.woocommerce-account input[type='password'],
body.woocommerce-account input[type='tel'],
body.woocommerce-account select,
body.woocommerce-account textarea {
  background-color: #fff;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 16px; /* 16px = brak auto-zoomu na iPhonie */
  min-height: 44px;
}
body.woocommerce-checkout .form-row label,
body.woocommerce-cart label,
body.woocommerce-account .form-row label {
  font: 500 14px/1.4 var(--font-ui);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
}
body.woocommerce-checkout #payment {
  background: var(--surface-2);
  border-radius: var(--r-md);
}
body.woocommerce-checkout #place_order,
body.woocommerce-cart .checkout-button {
  min-height: 52px;
  font-size: 17px;
  width: 100%;
}
body.woocommerce-account .woocommerce-MyAccount-navigation li a {
  font: 700 15px/1.2 var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
  color: var(--accent);
}
body.woocommerce .woocommerce-message,
body.woocommerce .woocommerce-info,
body.woocommerce .woocommerce-error,
body.theme-flatsome .message-container {
  border-radius: var(--r-md);
  font-family: var(--font-ui);
}

/* ---------- 11. Menu mobilne, drobiazgi, ruch ---------- */
body.theme-flatsome .off-canvas .mfp-content,
body.theme-flatsome .off-canvas-left .mfp-content,
body.theme-flatsome .off-canvas-right .mfp-content {
  background-color: var(--art-bg);
  color: var(--art-ink);
}
/* panel menu z lewej: trochę szerszy niż 300 px z Flatsome, żeby długie nazwy kategorii mieściły się w jednej linii */
body.theme-flatsome .off-canvas-left .mfp-content {
  --drawer-width: min(340px, 88vw);
}
/* wiersz menu: nazwa bierze wolne miejsce (na wąskim ekranie łamie się na 2 linie),
   przełącznik podmenu stoi zawsze po prawej — Flatsome zrzucał go pod długą nazwę */
body.theme-flatsome .off-canvas .nav-sidebar > li > a,
body.theme-flatsome .off-canvas .nav-vertical > li > a {
  flex: 1 1 0;
  min-width: 0;
  padding: 16px 12px 16px 20px;
  font: 800 17px/1.15 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--art-ink);
}
body.theme-flatsome .off-canvas .nav-sidebar > li {
  border-color: rgba(255, 255, 255, 0.08);
}
body.theme-flatsome .off-canvas .nav-sidebar.nav-vertical > li.menu-item:hover {
  background-color: transparent;
}
body.theme-flatsome .off-canvas .nav-sidebar.nav-vertical > li.menu-item.active {
  background-color: rgba(255, 255, 255, 0.025);
}
body.theme-flatsome .off-canvas .nav-vertical > li.current-menu-item > a,
body.theme-flatsome .off-canvas .nav-vertical > li.current-menu-parent > a,
body.theme-flatsome .off-canvas .nav-vertical > li.current-menu-ancestor > a,
body.theme-flatsome .off-canvas .nav-vertical li li.current-menu-item > a {
  color: var(--hud);
}
/* przełącznik podmenu: pole dotyku 52 × min. 48 px, oddzielone kreską od nazwy (nazwa = odnośnik do kategorii) */
body.theme-flatsome .off-canvas .nav-vertical > li > .toggle {
  flex: none;
  align-self: stretch;
  width: 52px;
  min-height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  opacity: 1;
  transform: none;
  color: color-mix(in srgb, var(--art-ink) 62%, transparent);
}
body.theme-flatsome .off-canvas .nav-vertical > li > .toggle i {
  top: 0;
  font-size: 24px;
  transition: transform 0.2s var(--ease);
}
body.theme-flatsome .off-canvas .nav-vertical > li.active > .toggle {
  color: var(--hud);
}
body.theme-flatsome .off-canvas .nav-vertical > li.active > .toggle i {
  transform: rotate(180deg);
}
/* podmenu: taśma z kreską jak w bocznym menu kategorii; wiersze wygodne pod palec */
body.theme-flatsome .off-canvas .nav-vertical > li > ul.children {
  width: auto;
  flex: 1 1 100%;
  margin: 0 16px 14px 20px;
  padding: 2px 0;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}
body.theme-flatsome .off-canvas .nav-vertical > li > ul.children > li {
  padding-left: 0;
}
body.theme-flatsome .off-canvas .nav-vertical li li a {
  color: color-mix(in srgb, var(--art-ink) 70%, transparent);
}
body.theme-flatsome .off-canvas .nav-vertical > li > ul.children > li:not([class*='fd-nav-base']) > a {
  padding: 10px 12px 10px 16px;
  font: 500 15px/1.3 var(--font-ui);
}
/* ikony social na dole menu: pole dotyku 44 px */
body.theme-flatsome .off-canvas .nav-vertical > li.header-social-icons {
  padding: 8px 10px;
}
body.theme-flatsome .off-canvas .social-icons a.icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  color: color-mix(in srgb, var(--art-ink) 70%, transparent);
}
body.theme-flatsome .off-canvas .social-icons a.icon:hover {
  color: var(--hud);
}
body.theme-flatsome .off-canvas .social-icons a.icon i {
  font-size: 20px;
}
/* adresy-zaślepki z demo Flatsome („http://url”, „your@email”) nigdy nie są pokazywane */
body.theme-flatsome .social-icons a.icon[href='http://url'],
body.theme-flatsome .social-icons a.icon[href='mailto:your@email'] {
  display: none;
}
body.theme-flatsome .off-canvas-cart .widget_shopping_cart {
  color: var(--art-ink);
}
body.theme-flatsome .mfp-bg {
  background: #000;
}
body.theme-flatsome .tooltipster-base {
  --tooltip-color: var(--accent-ink);
  --tooltip-bg-color: var(--accent);
}
body.theme-flatsome .loading-spin,
body.theme-flatsome .processing::before {
  border-left-color: var(--accent);
}

/* elementy własne strony głównej (blok UX Builder „fd-hero”, „fd-section”) */
body.theme-flatsome .fd-hero {
  position: relative;
  min-height: 440px;
  margin: 22px 0 8px;
  overflow: hidden;
  background: #000;
  color: #fff;
  clip-path: polygon(var(--cut-lg) 0, 100% 0, 100% calc(100% - var(--cut-lg)), calc(100% - var(--cut-lg)) 100%, 0 100%, 0 var(--cut-lg));
}
body.theme-flatsome .fd-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 55%;
  filter: brightness(0.62) contrast(1.12) saturate(1.1);
}
body.theme-flatsome .fd-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.15) 55%, transparent),
    radial-gradient(ellipse at 60% 50%, transparent 40%, rgba(0, 0, 0, 0.6) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px);
}
body.theme-flatsome .fd-hero > *:not(img) {
  position: absolute;
  z-index: 2;
}
body.theme-flatsome .fd-hero .fd-osd {
  font: 600 13px/1.25 var(--font-mono);
  letter-spacing: 0.07em;
  text-shadow: 0 1px 3px #000;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: #fff;
}
body.theme-flatsome .fd-hero .fd-osd b {
  color: var(--hud);
  font-weight: 600;
}
body.theme-flatsome .fd-hero .fd-rec i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 0 10px #ff3b30;
  animation: fd-blink 1.2s steps(2, start) infinite;
}
@keyframes fd-blink {
  50% {
    opacity: 0.15;
  }
}
body.theme-flatsome .fd-hero .fd-cross {
  left: 64%;
  top: 46%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.85);
}
body.theme-flatsome .fd-hero .fd-horizon {
  left: 64%;
  top: 46%;
  width: 300px;
  height: 1px;
  transform: translate(-50%, 0) rotate(-4deg);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.7) 0 30%, transparent 30% 70%, rgba(255, 255, 255, 0.7) 70%);
}
/* „lot”: celownik wędruje po kadrze, horyzont leci z nim i przechyla się w zakrętach */
body.theme-flatsome .fd-hero .fd-cross {
  animation: fd-fly-cross 16s ease-in-out infinite;
}
body.theme-flatsome .fd-hero .fd-horizon {
  animation: fd-fly-horizon 16s ease-in-out infinite;
}
@keyframes fd-fly-cross {
  0%, 100% { transform: translate(-50%, -50%) translate(0, 0); }
  18% { transform: translate(-50%, -50%) translate(-90px, 26px); }
  36% { transform: translate(-50%, -50%) translate(-30px, -34px); }
  56% { transform: translate(-50%, -50%) translate(96px, -16px); }
  76% { transform: translate(-50%, -50%) translate(54px, 34px); }
}
@keyframes fd-fly-horizon {
  0%, 100% { transform: translate(-50%, 0) translate(0, 0) rotate(-4deg); }
  18% { transform: translate(-50%, 0) translate(-90px, 34px) rotate(-13deg); }
  36% { transform: translate(-50%, 0) translate(-30px, -22px) rotate(2deg); }
  56% { transform: translate(-50%, 0) translate(96px, -8px) rotate(10deg); }
  76% { transform: translate(-50%, 0) translate(54px, 40px) rotate(3deg); }
}
/* Żywa telemetria OSD (czysty CSS: @property + liczniki). Jeden lot = 24 min w czasie rzeczywistym:
   uzbrojenie, wznoszenie ~3 m/s do 120–175 m, przelot 10 km przy ~60 km/h, zawrót, powrót, lądowanie, „nowa bateria”.
   Dystans rośnie o 0.1 km co ~6 s, mAh ~1.2/s (4.4 A), napięcie Li-Ion spada o setne części wolta co minutę lub dwie,
   LQ spada z 100 do ~93 przy 10 km. Profil: klatki kluczowe poniżej (generator: 4fpv/strona/preview/telemetry_gen.py). */
@property --fd-hm {
  syntax: '<integer>';
  inherits: false;
  initial-value: 0;
}
@property --fd-alt {
  syntax: '<integer>';
  inherits: false;
  initial-value: 0;
}
@property --fd-cv {
  syntax: '<integer>';
  inherits: false;
  initial-value: 418;
}
@property --fd-sats {
  syntax: '<integer>';
  inherits: false;
  initial-value: 6;
}
@property --fd-sec {
  syntax: '<integer>';
  inherits: false;
  initial-value: 0;
}
@property --fd-km {
  syntax: '<integer>';
  inherits: false;
  initial-value: 0;
}
@property --fd-dec {
  syntax: '<integer>';
  inherits: false;
  initial-value: 0;
}
@property --fd-v {
  syntax: '<integer>';
  inherits: false;
  initial-value: 4;
}
@property --fd-vf {
  syntax: '<integer>';
  inherits: false;
  initial-value: 18;
}
@property --fd-min {
  syntax: '<integer>';
  inherits: false;
  initial-value: 0;
}
@property --fd-s {
  syntax: '<integer>';
  inherits: false;
  initial-value: 0;
}
body.theme-flatsome .fd-tm-sats {
  animation: fd-sats 1440s linear infinite;
  counter-reset: fd-sats var(--fd-sats);
}
body.theme-flatsome .fd-tm-sats::after {
  content: counter(fd-sats);
}
body.theme-flatsome .fd-tm-home {
  animation: fd-hm 1440s linear infinite;
  --fd-km: calc(var(--fd-hm) / 10 - 0.5);
  --fd-dec: calc(var(--fd-hm) - var(--fd-km) * 10);
  counter-reset: fd-km var(--fd-km) fd-dec var(--fd-dec);
}
body.theme-flatsome .fd-tm-home::after {
  content: counter(fd-km) '.' counter(fd-dec) ' km';
}
body.theme-flatsome .fd-tm-rec {
  animation: fd-sec 1440s linear infinite;
  --fd-min: calc(var(--fd-sec) / 60 - 0.5);
  --fd-s: calc(var(--fd-sec) - var(--fd-min) * 60);
  counter-reset: fd-min var(--fd-min) fd-s var(--fd-s);
}
body.theme-flatsome .fd-tm-rec::after {
  content: '00:' counter(fd-min, decimal-leading-zero) ':' counter(fd-s, decimal-leading-zero);
}
body.theme-flatsome .fd-tm-alt {
  animation: fd-alt 1440s linear infinite;
  counter-reset: fd-alt var(--fd-alt);
}
body.theme-flatsome .fd-tm-alt::after {
  content: counter(fd-alt) ' m';
}
body.theme-flatsome .fd-tm-cell {
  animation: fd-cv 1440s linear infinite;
  --fd-v: calc(var(--fd-cv) / 100 - 0.5);
  --fd-vf: calc(var(--fd-cv) - var(--fd-v) * 100);
  counter-reset: fd-v var(--fd-v) fd-vf var(--fd-vf);
}
body.theme-flatsome .fd-tm-cell::after {
  content: counter(fd-v) '.' counter(fd-vf, decimal-leading-zero) ' V';
}
body.theme-flatsome .fd-tm-sats,
body.theme-flatsome .fd-tm-home,
body.theme-flatsome .fd-tm-rec,
body.theme-flatsome .fd-tm-alt,
body.theme-flatsome .fd-tm-cell {
  animation-delay: -767s; /* wszystkie wartości w tym samym momencie lotu co zegar REC */
}
@keyframes fd-sats {
  0% {
    --fd-sats: 6;
  }
  2.083% {
    --fd-sats: 8;
  }
  4.167% {
    --fd-sats: 11;
  }
  8.333% {
    --fd-sats: 14;
  }
  16.667% {
    --fd-sats: 17;
  }
  33.333% {
    --fd-sats: 19;
  }
  50% {
    --fd-sats: 18;
  }
  69.444% {
    --fd-sats: 20;
  }
  90.278% {
    --fd-sats: 18;
  }
  100% {
    --fd-sats: 17;
  }
}
@keyframes fd-hm {
  0% {
    --fd-hm: 0;
  }
  2.083% {
    --fd-hm: 0;
  }
  43.75% {
    --fd-hm: 100;
  }
  47.917% {
    --fd-hm: 100;
  }
  89.583% {
    --fd-hm: 0;
  }
  100% {
    --fd-hm: 0;
  }
}
@keyframes fd-sec {
  0% {
    --fd-sec: 0;
  }
  100% {
    --fd-sec: 1440;
  }
}
@keyframes fd-alt {
  0% {
    --fd-alt: 0;
  }
  2.083% {
    --fd-alt: 0;
  }
  4.861% {
    --fd-alt: 120;
  }
  16.667% {
    --fd-alt: 150;
  }
  29.167% {
    --fd-alt: 175;
  }
  41.667% {
    --fd-alt: 140;
  }
  47.917% {
    --fd-alt: 160;
  }
  62.5% {
    --fd-alt: 130;
  }
  76.389% {
    --fd-alt: 150;
  }
  89.583% {
    --fd-alt: 100;
  }
  95.833% {
    --fd-alt: 0;
  }
  100% {
    --fd-alt: 0;
  }
}
@keyframes fd-cv {
  0% {
    --fd-cv: 418;
  }
  2.083% {
    --fd-cv: 417;
  }
  4.861% {
    --fd-cv: 392;
  }
  8.333% {
    --fd-cv: 396;
  }
  47.917% {
    --fd-cv: 376;
  }
  89.583% {
    --fd-cv: 357;
  }
  95.833% {
    --fd-cv: 362;
  }
  100% {
    --fd-cv: 370;
  }
}
/* bez animacji (ustawienie systemu): stałe wartości z tego samego momentu lotu */
@media (prefers-reduced-motion: reduce) {
  body.theme-flatsome .fd-tm-sats {
    --fd-sats: 18;
  }
  body.theme-flatsome .fd-tm-home {
    --fd-hm: 87;
  }
  body.theme-flatsome .fd-tm-rec {
    --fd-sec: 767;
  }
  body.theme-flatsome .fd-tm-alt {
    --fd-alt: 149;
  }
  body.theme-flatsome .fd-tm-cell {
    --fd-cv: 374;
  }
}
body.theme-flatsome .fd-hero .fd-copy {
  left: 40px;
  bottom: 40px;
  max-width: 580px;
}
body.theme-flatsome .fd-hero .fd-copy .fd-placard {
  color: var(--hud);
}
body.theme-flatsome .fd-hero .fd-copy h1,
body.theme-flatsome .fd-hero .fd-copy h2 {
  margin: 10px 0;
  font: 900 clamp(46px, 6.4vw, 76px) / 0.86 var(--font-stencil);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: #fff;
}
body.theme-flatsome .fd-hero .fd-copy p {
  margin: 0 0 18px;
  max-width: 470px;
  font-size: 15.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}
body.theme-flatsome .fd-hero .button {
  background-color: rgba(255, 255, 255, 0.14);
  color: #fff;
  backdrop-filter: blur(6px);
  margin: 0 8px 0 0;
  min-height: 48px;
  font-size: 16px;
}
body.theme-flatsome .fd-hero .button:hover {
  background-color: rgba(255, 255, 255, 0.24);
}
body.theme-flatsome .fd-hero .button.primary {
  background-color: var(--hud);
  color: #111;
}
body.theme-flatsome .fd-section-t {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 34px 0 14px;
}
body.theme-flatsome .fd-section-t h2 {
  margin: 0;
  font: 900 34px/0.9 var(--font-stencil);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ink);
}
body.theme-flatsome .fd-section-t a {
  white-space: nowrap;
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
/* pasek odczytów pod hero: wysyłka / druk / zwroty */
body.theme-flatsome .fd-readouts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}
body.theme-flatsome .fd-readouts > div {
  padding: 12px 16px;
  border-right: 1px solid var(--line);
}
body.theme-flatsome .fd-readouts > div:last-child {
  border-right: 0;
}
body.theme-flatsome .fd-readouts b {
  display: block;
  margin-top: 6px;
  font: 600 15px/1.2 var(--font-mono);
  font-feature-settings: 'tnum';
  color: var(--ink);
}

@media (max-width: 849px) {
  body.theme-flatsome #masthead.header-main {
    height: 60px;
  }
  body.theme-flatsome #logo {
    margin-right: 0;
  }
  body.theme-flatsome .fd-logo-word {
    font-size: 27px;
  }
  body.theme-flatsome .fd-logo-sub {
    display: none;
  }
  body.theme-flatsome .header-wrapper::after {
    height: 22px;
    background-position-y: -2px;
  }
  body.theme-flatsome .fd-hero {
    min-height: 420px;
  }
  body.theme-flatsome .fd-hero .fd-copy {
    left: 20px;
    right: 20px;
    bottom: 24px;
  }
  body.theme-flatsome .fd-hero .fd-cross,
  body.theme-flatsome .fd-hero .fd-horizon,
  body.theme-flatsome .fd-hero .fd-hide-sm {
    display: none;
  }
  body.theme-flatsome .fd-readouts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.theme-flatsome .fd-readouts > div:nth-child(2) {
    border-right: 0;
  }
  body.theme-flatsome .fd-readouts > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  body.theme-flatsome .products .product-small .woocommerce-loop-product__title {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.theme-flatsome *,
  body.theme-flatsome *::before,
  body.theme-flatsome *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- 12. Przełącznik skórek (js/livery.js), wygląd jak menu „Livery / Theme” w Base ---------- */
body.theme-flatsome .fd-livery-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}
body.theme-flatsome .fd-livery-btn svg {
  display: block;
}
.fd-livery-pop {
  position: fixed;
  z-index: 100000;
  width: 296px;
  max-width: calc(100vw - 16px);
  padding: 6px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-pop);
  font: 400 13.5px/1.4 var(--font-ui);
  text-align: left;
  animation: fd-popin 0.14s var(--ease);
}
.fd-livery-pop[hidden] {
  display: none;
}
@keyframes fd-popin {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
}
.fd-livery-pop .fd-livery-label {
  padding: 10px 9px 7px;
  font: 600 10px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.fd-livery-pop .fd-livery-list {
  display: grid;
  gap: 2px;
  padding: 0 2px;
}
/* reset przycisków Flatsome (uppercase, min-height, margin-right) */
.fd-livery-pop button {
  margin: 0;
  min-height: 0;
  max-width: none;
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
  text-shadow: none;
  box-shadow: none;
}
.fd-livery-pop button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.fd-livery-pop .fd-livery-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 8px;
  border: 1px solid transparent;
  text-align: left;
}
.fd-livery-pop .fd-livery-opt:hover {
  background: var(--surface-2);
}
.fd-livery-pop .fd-livery-opt[aria-pressed='true'] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}
.fd-livery-pop .fd-livery-opt i {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--a) 0 50%, var(--b) 50% 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.fd-livery-pop .fd-livery-opt b {
  font-weight: 600;
  font-size: 13px;
}
.fd-livery-pop .fd-livery-opt em {
  margin-left: 6px;
  font: 600 9.5px/1 var(--font-mono);
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.fd-livery-pop .fd-livery-opt small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
}
.fd-livery-pop .fd-livery-seg {
  display: flex;
  gap: 2px;
  margin: 0 6px 4px;
  padding: 2px;
  border-radius: 3px;
  background: var(--sunk);
}
.fd-livery-pop .fd-livery-seg button {
  flex: 1;
  padding: 8px 6px;
  border: 0;
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.fd-livery-pop .fd-livery-seg button:hover {
  color: var(--ink);
}
.fd-livery-pop .fd-livery-seg button[aria-pressed='true'] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.fd-livery-pop .fd-livery-note {
  margin: 6px 9px 4px;
  font-size: 11.5px;
  color: var(--muted);
}
@media (prefers-reduced-motion: reduce) {
  .fd-livery-pop {
    animation: none;
  }
}

/* ---------- 13. Odnośnik do Base for FPV (base.4fpv.uk) ----------
   Menu: pozycja z klasą fd-nav-base, tytuł „Base<span class="fd-tag">Free</span>”, podpozycja fd-nav-base-card
   z kartą .fd-base-card (treść: strona/tresci/base-link.html). Strona główna: .fd-base-promo w Shop Page Header. */
body.theme-flatsome .fd-tag {
  display: inline-block;
  margin-left: 7px;
  padding: 3px 5px 2px;
  border-radius: var(--r-sm);
  background: var(--accent-2);
  color: var(--art-bg);
  font: 700 9px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  vertical-align: 2px;
}
body.theme-flatsome .header-bottom-nav > li.fd-nav-base > a {
  color: var(--art-ink);
}
/* karta w rozwijanym menu */
body.theme-flatsome .fd-nav-base .nav-dropdown {
  min-width: 0;
  width: 360px;
  padding: 6px;
}
body.theme-flatsome .nav-dropdown li.fd-nav-base-card > a,
body.theme-flatsome .nav-dropdown li.fd-nav-base-card > a:hover {
  display: block;
  padding: 0;
  background: transparent;
  white-space: normal;
}
body.theme-flatsome .fd-base-card {
  display: block;
  padding: 14px 14px 16px;
  border-radius: var(--r-md);
  transition: background-color 0.15s;
}
body.theme-flatsome .fd-nav-base-card > a:hover .fd-base-card {
  background: var(--surface-2);
}
body.theme-flatsome .fd-base-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
body.theme-flatsome .fd-base-mark {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  box-shadow: 0 0 0 1px var(--line-strong);
}
body.theme-flatsome .fd-base-pl {
  font: 600 10px/1.2 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
body.theme-flatsome .fd-base-title {
  display: block;
  margin: 12px 0 6px;
  font: 800 21px/1 var(--font-display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
}
body.theme-flatsome .fd-base-text {
  display: block;
  font: 400 13.5px/1.45 var(--font-ui);
  color: var(--ink-2);
}
body.theme-flatsome .fd-base-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 12px 0 14px;
}
body.theme-flatsome .fd-base-chips i {
  padding: 4px 7px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font: 600 10px/1 var(--font-mono);
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
body.theme-flatsome .fd-base-cta {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 800 14px/1 var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}
/* menu na telefonie (wysuwane z lewej): karta na ciemnym tle, bez kreski-taśmy zwykłego podmenu */
body.theme-flatsome .off-canvas .nav-vertical > li.fd-nav-base > ul.children {
  margin: 0 12px 10px;
  padding: 0;
  border-left: 0;
}
body.theme-flatsome .off-canvas li.fd-nav-base-card > a {
  padding: 4px 0 12px;
  white-space: normal;
}
body.theme-flatsome .off-canvas .fd-base-card {
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
}
body.theme-flatsome .off-canvas .fd-base-title {
  color: var(--art-ink);
}
body.theme-flatsome .off-canvas .fd-base-text,
body.theme-flatsome .off-canvas .fd-base-chips i,
body.theme-flatsome .off-canvas .fd-base-forum {
  color: color-mix(in srgb, var(--art-ink) 75%, transparent);
}
body.theme-flatsome .off-canvas .fd-base-chips i {
  border-color: rgba(255, 255, 255, 0.2);
}
/* panel jest ciemny także w jasnych skórkach: akcenty z --hud, nie z --accent */
body.theme-flatsome .off-canvas .fd-base-pl,
body.theme-flatsome .off-canvas .fd-nav-base-forum > a:hover .fd-base-forum b {
  color: var(--hud);
}
body.theme-flatsome .off-canvas .fd-base-forum b {
  color: var(--art-ink);
}
body.theme-flatsome .off-canvas .fd-base-cta {
  background: var(--hud);
  color: var(--art-bg);
}
body.theme-flatsome .off-canvas .fd-nav-base-card > a:hover .fd-base-card {
  background: rgba(255, 255, 255, 0.08);
}

/* pasek-zaproszenie na stronie głównej */
body.theme-flatsome a.fd-base-promo {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  margin: 30px 0 6px;
  padding: 22px 26px;
  color: var(--ink-2);
  text-decoration: none;
}
body.theme-flatsome .fd-base-promo .fd-base-mark {
  width: 56px;
  height: 56px;
  border-radius: 12px;
}
body.theme-flatsome .fd-base-copy {
  display: grid;
  gap: 6px;
}
body.theme-flatsome .fd-base-copy b {
  font: 800 clamp(22px, 2.4vw, 30px)/1 var(--font-display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
}
body.theme-flatsome .fd-base-copy > span:last-child {
  max-width: 640px;
  font-size: 14.5px;
  line-height: 1.5;
}
body.theme-flatsome .fd-base-promo .fd-base-go {
  margin: 0;
  white-space: nowrap;
}
@media (max-width: 849px) {
  body.theme-flatsome a.fd-base-promo {
    grid-template-columns: auto 1fr;
  }
  body.theme-flatsome .fd-base-promo .fd-base-go {
    grid-column: 1 / -1;
    justify-self: start;
  }
}
@media (max-width: 549px) {
  body.theme-flatsome a.fd-base-promo {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  body.theme-flatsome .fd-base-promo .fd-base-mark {
    width: 44px;
    height: 44px;
  }
}
/* druga podpozycja pod „Base”: forum */
body.theme-flatsome .nav-dropdown li.fd-nav-base-forum > a {
  display: block;
  margin-top: 2px;
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  white-space: normal;
}
body.theme-flatsome .fd-base-forum {
  font: 500 13px/1.3 var(--font-ui);
  color: var(--ink-2);
}
body.theme-flatsome .fd-base-forum b {
  margin-right: 6px;
  font: 800 14px/1 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
body.theme-flatsome .fd-nav-base-forum > a:hover .fd-base-forum b {
  color: var(--accent);
}
/* strona produktu: pytanie o dopasowanie → forum na Base */
body.theme-flatsome a.fd-forum-note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 18px 0 14px;
  padding: 11px 14px;
  border-left: 2px solid var(--accent-2);
  background: var(--surface-2);
  color: var(--ink);
  font: 500 14px/1.35 var(--font-ui);
  text-decoration: none;
  transition: background-color 0.15s;
}
body.theme-flatsome a.fd-forum-note .fd-placard {
  color: var(--accent-2);
}
body.theme-flatsome a.fd-forum-note:hover {
  background: var(--sunk);
}

/* ---------- 14. Ruch — ten sam język co Ledger, plan.morz.studio i Base for FPV ----------
   Tokeny: czasy 90/160/240/380 ms, krzywa out (.22,1,.36,1), in (.4,0,1,1). Sprężyny w js/fx.js (Motion 12).
   html.fx = Motion załadowany i system nie prosi o ograniczenie ruchu. Bez tego wszystko działa zwyczajnie. */
html:root {
  --dur-instant: 90ms;
  --dur-fast: 160ms;
  --dur-base: 240ms;
  --dur-slow: 380ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --glow: color-mix(in srgb, var(--accent) 55%, transparent);
}

@media (prefers-reduced-motion: no-preference) {
  /* przejścia między podstronami: stara strona gaśnie, nowa wsuwa się; nagłówek stoi w miejscu */
  @view-transition {
    navigation: auto;
  }
  ::view-transition-old(root) {
    animation: fd-vt-out var(--dur-fast) var(--ease-in) both;
  }
  ::view-transition-new(root) {
    animation: fd-vt-in var(--dur-slow) var(--ease-out) both;
  }
  body.theme-flatsome #header {
    view-transition-name: fd-header;
  }
  ::view-transition-group(fd-header),
  ::view-transition-old(fd-header),
  ::view-transition-new(fd-header) {
    animation: none;
  }
  html {
    scroll-behavior: smooth;
  }
  /* zdjęcie w bloku startowym jedzie wolniej niż strona (paralaksa, czysty CSS) */
  @supports (animation-timeline: view()) {
    body.theme-flatsome .fd-hero > img {
      animation: fd-hero-par linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 100%;
    }
  }
}
@keyframes fd-vt-out {
  to {
    opacity: 0;
  }
}
@keyframes fd-vt-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
@keyframes fd-hero-par {
  from {
    transform: translateY(0) scale(1.06);
  }
  to {
    transform: translateY(9%) scale(1.06);
  }
}

/* menu kategorii: podświetlenie płynie pod kursorem, kreska aktywnej pozycji przechodzi między stronami */
html.fx body.theme-flatsome .fx-group {
  position: relative;
}
html.fx body.theme-flatsome .fx-group > li {
  position: relative;
  z-index: 1;
}
html.fx body.theme-flatsome .fx-hov,
html.fx body.theme-flatsome .fx-ind {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  pointer-events: none;
  will-change: transform, width;
}
html.fx body.theme-flatsome .fx-hov {
  overflow: hidden;
  opacity: 0;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  transition: opacity var(--dur-base) var(--ease-out), scale var(--dur-fast) var(--ease-out), background-color var(--dur-fast);
}
html.fx body.theme-flatsome .fx-hov.on {
  opacity: 1;
}
html.fx body.theme-flatsome .fx-hov.down {
  scale: 0.96;
  background: rgba(255, 255, 255, 0.1);
}
html.fx body.theme-flatsome .fx-hov::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(90px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--hud) 26%, transparent), transparent 70%);
}
html.fx body.theme-flatsome .fx-ind {
  height: 3px;
  background: var(--hud);
  box-shadow: 0 0 12px color-mix(in srgb, var(--hud) 55%, transparent);
  transform-origin: center;
}
html.fx body.theme-flatsome .fd-tl {
  display: inline-flex;
  align-items: center;
  transform: translate(var(--tx, 0), var(--ty, 0));
  transition: transform var(--dur-base) var(--ease-out);
}
/* stare podkreślenie i tło pod kursorem zastępuje ruchoma kreska i podświetlenie */
html.fx body.theme-flatsome .header-bottom-nav.nav > li > a::before,
html.fx body.theme-flatsome .header-bottom-nav.nav > li > a:hover::before {
  display: none;
}
html.fx body.theme-flatsome .header-bottom-nav.nav > li > a:hover {
  background: none;
}

/* karty: światło pod kursorem i lekkie uniesienie */
body.theme-flatsome .product-small > .col-inner::after,
body.theme-flatsome .product-category > .col-inner::after,
body.theme-flatsome .fd-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(280px circle at var(--mx, -999px) var(--my, -999px), color-mix(in srgb, var(--accent) 12%, transparent), transparent 62%);
  transition: opacity var(--dur-slow) var(--ease-out);
}
body.theme-flatsome .product-small > .col-inner:hover::after,
body.theme-flatsome .product-category > .col-inner:hover::after,
body.theme-flatsome .fd-card:hover::after {
  opacity: 1;
}
body.theme-flatsome .fd-base-card {
  background-image: radial-gradient(220px circle at var(--mx, -999px) var(--my, -999px), color-mix(in srgb, var(--accent) 10%, transparent), transparent 65%);
}
@media (prefers-reduced-motion: no-preference) {
  body.theme-flatsome .product-small > .col-inner,
  body.theme-flatsome .product-category > .col-inner,
  body.theme-flatsome a.fd-base-promo {
    transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
  }
  body.theme-flatsome .product-small > .col-inner:hover,
  body.theme-flatsome .product-category > .col-inner:hover,
  body.theme-flatsome a.fd-base-promo:hover {
    transform: translateY(-3px);
  }

  /* przyciski jak klawisze: unoszą się, przebiega po nich światło, wciskają się przy kliknięciu */
  body.theme-flatsome .button,
  body.theme-flatsome button.button,
  body.theme-flatsome .single_add_to_cart_button,
  body.theme-flatsome .checkout-button,
  body.theme-flatsome #place_order,
  body.theme-flatsome .fd-base-cta {
    background-image: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, 0.22) 50%, transparent 62%);
    background-size: 260% 100%;
    background-position: 130% 0;
    background-repeat: no-repeat;
    transition: background-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast) var(--ease-out), filter var(--dur-fast), background-position 0.7s var(--ease-out);
  }
  body.theme-flatsome .button:hover,
  body.theme-flatsome .single_add_to_cart_button:hover,
  body.theme-flatsome .checkout-button:hover,
  body.theme-flatsome #place_order:hover,
  body.theme-flatsome .fd-nav-base-card > a:hover .fd-base-cta,
  body.theme-flatsome a.fd-base-promo:hover .fd-base-go {
    background-position: -30% 0;
    transform: translateY(-1px);
  }
  body.theme-flatsome .button:active,
  body.theme-flatsome .single_add_to_cart_button:active,
  body.theme-flatsome .checkout-button:active,
  body.theme-flatsome #place_order:active {
    transform: translateY(1px) scale(0.975);
    transition-duration: 60ms;
  }

  /* logo: przy najechaniu ukośnik przechyla się (zachowanie marki jak w Ledgerze) */
  body.theme-flatsome .fd-logo .fd-logo-word i {
    display: inline-block;
    transition: transform var(--dur-base) var(--ease-out);
  }
  body.theme-flatsome .fd-logo:hover .fd-logo-word i {
    transform: rotate(-5deg) scale(1.05);
  }
}

/* nagłówek po przewinięciu: przyklejony pasek robi się „szklany” i rzuca cień */
body.theme-flatsome.fx-scrolled .header-wrapper.stuck .header-main,
body.theme-flatsome.fx-scrolled .header-wrapper.stuck #wide-nav {
  background-color: color-mix(in srgb, var(--art-bg) 82%, transparent) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
}
body.theme-flatsome.fx-scrolled .header-wrapper.stuck {
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.7);
}

/* widoczny fokus z klawiatury (jak w Ledgerze: 2 px akcentu, odstęp 3 px) */
body.theme-flatsome a:focus-visible,
body.theme-flatsome button:focus-visible,
body.theme-flatsome .button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
