/* ============ Apollo Forged — design system „XPERION bento" ============ */
:root {
  --bg: #e9eae7;
  --card: #ffffff;
  --ink: #17181a;
  --dark: #141416;
  --mute: #8a8d90;
  --line: #ececea;
  --accent: #2563eb;
  --accent-soft: #dce7fb;
  --accent-contrast: #ffffff;
  --flash: #e11d2e;
  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-pill: 999px;
  --font-display: "Comfortaa", sans-serif;
  --font-body: "Manrope", sans-serif;
  --shadow-card: 0 10px 30px rgba(23, 24, 26, 0.06);
  --shadow-pop: 0 24px 60px rgba(23, 24, 26, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(circle at 15% 10%, rgba(255,255,255,.7), transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(255,255,255,.5), transparent 40%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 20px; }

.display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.05; }
.label { font-family: var(--font-body); font-weight: 700; letter-spacing: 0.02em; }

/* ciemna tekstura hali/carbonu */
.carbon-weave {
  background-color: #141416;
  background-image:
    radial-gradient(circle at 80% 0%, rgba(59,110,245,.14), transparent 45%),
    linear-gradient(45deg, rgba(255,255,255,.025) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.025) 75%),
    linear-gradient(45deg, rgba(255,255,255,.025) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.025) 75%);
  background-position: 0 0, 0 0, 6px 6px;
  background-size: auto, 12px 12px, 12px 12px;
}

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.rise { animation: rise .7s cubic-bezier(.22,1,.36,1) both; }
.rise-1 { animation-delay: .08s; }
.rise-2 { animation-delay: .16s; }
.rise-3 { animation-delay: .24s; }

/* przyciski */
.af-btn { display: inline-block; padding: 14px 30px; font-size: 14px; font-weight: 700; border-radius: var(--r-pill); transition: all .2s; }
.af-btn-light { background: #fff; color: var(--ink); }
.af-btn-light:hover { background: var(--accent); color: var(--accent-contrast); }
.af-btn-ghost { border: 1.5px solid rgba(255,255,255,.35); color: #fff; }
.af-btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.af-btn-dark { background: var(--ink); color: #fff; }
.af-btn-dark:hover { background: var(--accent); color: var(--accent-contrast); }
.af-btn-accent { background: var(--accent); color: var(--accent-contrast); }
.af-btn-accent:hover { background: var(--ink); color: #fff; }

/* ============ pasek promo (subtelny, jasny) ============ */
.af-announce { overflow: hidden; padding: 10px 0 2px; }
.af-announce-track { display: inline-flex; align-items: center; white-space: nowrap; animation: af-marquee 26s linear infinite; }
.af-announce .label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #9b9e9a; padding: 0 22px; }
.af-announce .af-dot { color: var(--accent); }
@keyframes af-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ header — biała pigułkowa karta ============ */
.af-header { position: sticky; top: 10px; z-index: 50; padding: 12px 20px 0; } /* gorny odstep po usunieciu paska promo */
.af-header-inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card); border-radius: var(--r-pill);
  padding: 8px 12px 8px 22px; box-shadow: var(--shadow-card);
}
.af-logo { display: flex; align-items: center; gap: 10px; }
.af-logo-mark { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: var(--ink); color: var(--accent); font-family: var(--font-display); font-weight: 700; font-size: 15px; border-radius: 12px; }
.af-logo-text { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1; letter-spacing: .02em; }
.af-logo-text small { display: block; font-size: 9px; letter-spacing: .34em; color: var(--mute); font-weight: 600; }
.af-nav { display: none; align-items: center; gap: 4px; }
.af-nav > a, .af-drop > button, .af-mega > button {
  font-size: 14px; font-weight: 600; color: var(--ink); padding: 12px 16px; border-radius: var(--r-pill);
  transition: all .2s; display: inline-flex; align-items: center; gap: 7px;
}
.af-nav > a:hover, .af-mega > button:hover { background: #f4f4f2; }
.af-nav > a.is-active { color: var(--ink); position: relative; }
.af-nav > a.is-active::after { content: ""; position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.af-mega > button svg { transition: transform .2s; opacity: .5; }
.af-mega:hover > button svg, .af-mega:focus-within > button svg { transform: rotate(180deg); }
.af-cart { position: relative; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; background: var(--ink); color: #fff; border-radius: 50%; transition: all .2s; }
.af-cart:hover { background: var(--accent); color: var(--accent-contrast); }
.af-cart svg { width: 20px; height: 20px; }
.af-cart-count { position: absolute; top: -4px; right: -4px; display: none; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: var(--accent-contrast); font-size: 10px; font-weight: 800; border: 2px solid var(--card); }
.af-cart-count.is-visible { display: flex; }
.af-burger { display: flex; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; background: #f4f4f2; }
.af-burger span { width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: all .2s; }
body.af-menu-open .af-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.af-menu-open .af-burger span:nth-child(2) { opacity: 0; }
body.af-menu-open .af-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1024px) {
  .af-nav { display: flex; }
  .af-burger, .af-mobile-menu { display: none !important; }
}

/* ============ mega menu — biała zaokrąglona karta ============ */
.af-mega-panel {
  visibility: hidden; opacity: 0; transform: translateY(10px);
  position: absolute; left: 20px; right: 20px; top: calc(100% + 10px);
  background: var(--card); border-radius: var(--r-xl); box-shadow: var(--shadow-pop);
  transition: all .18s ease; z-index: 45; overflow: hidden;
}
.af-mega:hover .af-mega-panel, .af-mega:focus-within .af-mega-panel { visibility: visible; opacity: 1; transform: translateY(0); }
.af-mega-grid { display: grid; grid-template-columns: 1fr 1fr 300px; gap: 36px; padding: 32px 36px; max-width: 1320px; margin: 0 auto; }
.af-mega-grid-vehicles { grid-template-columns: 1fr 300px; }
.af-mega-brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; align-content: start; }
.af-mega-head { display: flex; align-items: baseline; gap: 10px; padding-bottom: 12px; border-bottom: 1.5px solid var(--line); margin-bottom: 8px; }
.af-mega-head { gap: 10px; }
.af-mega-head .af-brand-logo { color: var(--ink); }
.af-mega-head:hover .af-brand-logo { color: var(--accent); }
.af-mega-head .display { font-size: 19px; }
.af-mega-head .label { font-size: 10px; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; }
.af-mega-head:hover .display { color: var(--accent); }
.af-mega-model { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; margin: 0 -14px; font-size: 14px; font-weight: 600; border-radius: var(--r-md); transition: background .15s; }
.af-mega-model:hover { background: #f6f6f4; }
.af-mega-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--accent); color: var(--accent-contrast); font-weight: 800; font-size: 11px; }
.af-mega-soon { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); border: 1.5px dashed #ddd; border-radius: 99px; padding: 3px 9px; }
.af-mega-kids { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.af-mega-kid { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: var(--r-pill); background: #f4f4f1; color: var(--ink); transition: all .15s; }
.af-mega-kid:hover { background: var(--accent); color: var(--accent-contrast); }
.af-mega-item { display: flex; align-items: center; gap: 14px; padding: 9px 12px; margin: 0 -12px; border-radius: var(--r-md); transition: background .15s; }
.af-mega-item:hover { background: #f6f6f4; }
.af-mega-thumb { flex-shrink: 0; width: 54px; border-radius: 12px; overflow: hidden; background: #f1f1ee; }
.af-mega-thumb img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.af-mega-item-name { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.af-mega-item-price { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 700; color: var(--mute); }
.af-mega-more { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 700; color: var(--ink); }
.af-mega-more:hover { color: var(--accent); }
.af-mega-cta { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; color: #fff; padding: 26px; border-radius: var(--r-lg); }
.af-mega-cta .display { font-size: 21px; }
.af-mega-cta p { margin: 10px 0 16px; font-size: 13px; color: rgba(255,255,255,.65); }
.af-mega-cta .af-btn { padding: 11px 22px; font-size: 12px; }
.af-mega-featured { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; background: #f6f6f4; padding-bottom: 18px; transition: all .2s; }
.af-mega-featured:hover { box-shadow: var(--shadow-card); }
.af-mega-featured img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.af-mega-featured .af-mega-item-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; padding: 14px 18px 0; }
.af-mega-featured .af-mega-item-price { padding: 3px 18px 0; font-size: 14px; color: var(--ink); }
.af-mega-featured .af-mega-more { margin: 8px 18px 0; }

/* badge */
.af-badge, .woocommerce ul.products li.product .onsale {
  position: absolute; z-index: 2; top: 12px; left: 12px; right: auto; bottom: auto; min-height: 0; min-width: 0; margin: 0;
  padding: 6px 12px; background: var(--accent); color: var(--accent-contrast); border-radius: 99px;
  font-family: var(--font-body); font-weight: 800; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; line-height: 1.4;
}

/* ============ mobilne menu — biała karta fullscreen ============ */
.af-mobile-menu {
  position: fixed; left: 0; right: 0; bottom: 0; top: 0; z-index: 49;
  padding-top: 70px;
  background: var(--bg);
  color: var(--ink);
  display: flex; flex-direction: column;
  visibility: hidden; opacity: 0; transform: translateY(-3%);
  transition: opacity .3s ease, transform .35s cubic-bezier(.22,1,.36,1), visibility 0s .35s;
}
body.af-menu-open .af-mobile-menu { visibility: visible; opacity: 1; transform: translateY(0); transition-delay: 0s; }
body.af-menu-open { overflow: hidden; }
.af-mm-scroll { flex: 1; overflow-y: auto; padding: 18px 20px 130px; }
.af-mm-big { display: block; font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 26px; padding: 12px 18px; background: var(--card); border-radius: var(--r-lg); margin-bottom: 10px; box-shadow: var(--shadow-card); }
.af-mm-big:active { color: var(--accent); }
.af-mm-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); margin: 20px 4px 10px; }
.af-mm-brand { background: var(--card); border-radius: var(--r-lg); margin-bottom: 10px; box-shadow: var(--shadow-card); overflow: hidden; }
.af-mm-brand-head { width: 100%; display: flex; align-items: center; justify-content: space-between; font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 24px; padding: 14px 18px; text-align: left; }
.af-mm-brand-name { display: inline-flex; align-items: center; gap: 12px; }
.af-mm-brand-name .af-brand-logo { color: var(--ink); }
.af-mm-chev { transition: transform .25s; opacity: .4; }
.af-mm-brand.is-open .af-mm-chev { transform: rotate(180deg); }
.af-mm-brand-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.af-mm-brand.is-open .af-mm-brand-body { max-height: 400px; }
.af-mm-model { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; color: var(--ink); font-size: 15px; font-weight: 600; border-top: 1.5px solid var(--line); }
.af-mm-model:active { background: #f6f6f4; }
.af-mm-count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 7px; background: var(--accent); border-radius: 99px; font-weight: 800; font-size: 11px; color: var(--accent-contrast); }
.af-mm-soon { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border: 1.5px dashed #d5d5d2; border-radius: 99px; padding: 3px 9px; color: var(--mute); }
.af-mm-plain { display: block; margin: 22px 4px 0; font-size: 14px; font-weight: 700; color: var(--mute); }
.af-mm-cta { position: absolute; bottom: 0; left: 0; right: 0; display: flex; gap: 10px; padding: 16px 20px 24px; background: linear-gradient(transparent, var(--bg) 40%); }
.af-mm-cta a { flex: 1; text-align: center; font-size: 13px; font-weight: 700; padding: 15px 8px; border-radius: var(--r-pill); }
.af-mm-cta-light { background: var(--ink); color: #fff; }
.af-mm-cta-light:active { background: var(--accent); color: var(--accent-contrast); }
.af-mm-cta-ghost { border: 1.5px solid var(--ink); color: var(--ink); }

/* ============ HERO BENTO ============ */
.xp-bento { display: grid; grid-template-columns: 1fr; gap: 14px; padding-top: 16px; }
@media (min-width: 1024px) { .xp-bento { grid-template-columns: 1.9fr 1fr; } }

.xp-hero {
  position: relative; overflow: hidden; border-radius: var(--r-xl); color: #fff;
  background:
    radial-gradient(ellipse 70% 60% at 75% 20%, rgba(59,110,245,.16), transparent 60%),
    radial-gradient(ellipse 90% 70% at 30% 100%, rgba(0,0,0,.5), transparent 70%),
    linear-gradient(180deg, #232326 0%, #17181a 55%, #101012 100%);
  min-height: 480px; display: flex; flex-direction: column;
}
.xp-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.028) 0 1.5px, transparent 1.5px 110px),
    linear-gradient(180deg, rgba(255,255,255,.05) 0, transparent 30%);
}
.xp-hero-content { position: relative; padding: 40px 40px 0; }
.xp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.xp-chip { font-size: 12.5px; font-weight: 700; padding: 7px 16px; border-radius: 99px; }
.xp-chip-accent { background: var(--accent); color: var(--accent-contrast); }
.xp-chip-line { border: 1.5px solid rgba(255,255,255,.35); color: #fff; }
.xp-hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 4.5vw, 58px); line-height: 1.08; margin-top: 22px; max-width: 620px; }
.xp-hero-sub { margin-top: 16px; max-width: 480px; font-size: 15px; color: rgba(255,255,255,.65); }
.xp-hero-sub b { color: var(--accent); font-weight: 700; }
.xp-hero-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.xp-hero-link:hover { gap: 14px; }
.xp-hero-car { position: relative; margin-top: auto; padding: 10px 4px 0; line-height: 0; }
.xp-hero-car svg, .xp-hero-car img { width: 100%; max-height: 300px; }
/* wariant ze zdjęciem (PNG bez tła): auto „stoi" na karcie — poświata + cień pod kołami */
.xp-hero-car.is-photo { padding: 0 0 18px; }
/* rozjaśniona podłoga — bez niej czarny cień ginie na ciemnej karcie */
.xp-hero-car.is-photo::before {
  content: ""; position: absolute; left: 4%; right: 4%; bottom: 0; height: 110px; z-index: 0;
  background: radial-gradient(ellipse at 50% 74%, rgba(255,255,255,.34), rgba(255,255,255,.12) 45%, transparent 74%);
  filter: blur(20px); pointer-events: none;
}
/* cień kontaktowy pod kołami */
.xp-hero-car.is-photo::after {
  content: ""; position: absolute; left: 18%; right: 18%; bottom: 22px; height: 56px; border-radius: 50%; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,1) 0%, rgba(0,0,0,.9) 42%, rgba(0,0,0,.5) 66%, transparent 82%);
  filter: blur(16px); pointer-events: none;
}
.xp-hero-car.is-photo img {
  position: relative; z-index: 1; display: block; width: 88%; margin: 0 auto;
  max-height: none; object-fit: contain;
  filter: drop-shadow(0 26px 24px rgba(0,0,0,.7));
}

.xp-side { display: grid; gap: 14px; grid-template-rows: auto auto auto; }
.xp-card { position: relative; border-radius: var(--r-xl); overflow: hidden; }
.xp-card-product { background: linear-gradient(160deg, #4b82f7, var(--accent)); min-height: 170px; display: flex; }
/* prawdziwe zdjęcie wypełnia kafel, rysunek SVG zostaje wyśrodkowany na niebieskim tle */
.xp-card-product img { width: 100%; height: 100%; min-height: 170px; object-fit: cover; display: block; }
/* tylko rysunek zastępczy (bezpośrednie dziecko) — inaczej reguła zjada ikonkę w .xp-fab */
.xp-card-product > svg { height: 170px; width: auto; margin: auto; padding: 18px; }
/* napis na zdjęciu — gradient zapewnia czytelność niezależnie od jasności foto */
.xp-card > .xp-fab { z-index: 2; }
.xp-card-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: flex; flex-direction: column; gap: 4px;
  padding: 46px 76px 20px 22px; color: #fff;
  background: linear-gradient(to top, rgba(12,14,16,.78), rgba(12,14,16,0));
}
.xp-card-caption .display { font-size: 19px; line-height: 1.15; }
.xp-card-caption-sub { font-size: 12px; color: rgba(255,255,255,.7); }
.xp-card-promo { background: var(--card); padding: 24px; box-shadow: var(--shadow-card); display: flex; align-items: center; gap: 16px; }
.xp-promo-num { font-family: var(--font-display); font-weight: 700; font-size: 52px; line-height: .95; color: var(--accent); }
.xp-promo-num small { display: block; font-size: 30px; }
.xp-card-promo p { font-size: 13px; font-weight: 600; color: #5a5d60; max-width: 190px; }
.xp-card-video { color: #fff; padding: 24px; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; }
.xp-card-video .display { font-size: 19px; max-width: 240px; }
.xp-card-video p { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 6px; }
.xp-fab {
  position: absolute; right: 16px; bottom: 16px; width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--ink); box-shadow: var(--shadow-card); transition: all .2s;
}
.xp-fab:hover { background: var(--ink); color: var(--accent); transform: scale(1.06); }
.xp-fab-accent { background: var(--accent); color: var(--accent-contrast); }

/* pasek pigułek nad katalogiem (bez podwójnego marginesu z kartą treści) */
.af-woo-tabs { padding-top: 16px; }
.af-woo-tabs .xp-tabsbar { margin-top: 0; }
.af-woo-tabs + .af-woo { margin-top: 14px; }

/* dolny pasek pigułek */
.xp-tabsbar { scrollbar-width: none; -ms-overflow-style: none; }
.xp-tabsbar::-webkit-scrollbar { display: none; }
.xp-tabsbar {
  margin-top: 14px; background: var(--card); border-radius: var(--r-pill); box-shadow: var(--shadow-card);
  display: flex; align-items: center; gap: 10px; padding: 10px; overflow-x: auto;
}
.xp-arrows { display: none; gap: 8px; }
@media (min-width: 768px) { .xp-arrows { display: flex; } }
.xp-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--mute); transition: all .2s; }
.xp-arrow:hover { border-color: var(--ink); color: var(--ink); }
.xp-tabs { display: flex; align-items: center; gap: 6px; flex: 1; }
.xp-tab { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 14px; font-weight: 700; padding: 12px 20px; border-radius: var(--r-pill); color: var(--ink); transition: all .2s; }
.xp-tab:hover { background: #f4f4f2; }
.xp-tab.is-active { background: var(--ink); color: #fff; }
.xp-tab .soon { font-size: 9px; font-weight: 700; text-transform: uppercase; color: var(--mute); border: 1.5px dashed #d5d5d2; border-radius: 99px; padding: 2px 8px; }
.xp-tab-cta { white-space: nowrap; font-size: 14px; font-weight: 700; padding: 12px 22px; border-radius: var(--r-pill); border: 1.5px solid var(--line); transition: all .2s; }
.xp-tab-cta:hover { border-color: var(--accent); background: var(--accent-soft); }


/* drugi pasek: podkategorie (wykonczenie) */
.xp-subtabs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding: 0 6px; }
.xp-subtabs-label { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-right: 4px; }
.xp-subtab { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; padding: 8px 15px; border-radius: var(--r-pill); background: var(--card); box-shadow: var(--shadow-card); color: var(--ink); transition: all .2s; }
.xp-subtab:hover { background: var(--accent-soft); }
.xp-subtab.is-active { background: var(--accent); color: var(--accent-contrast); }
.xp-subtab-count { font-size: 11px; font-weight: 800; background: rgba(23,24,26,.07); border-radius: var(--r-pill); padding: 1px 7px; }
.xp-subtab.is-active .xp-subtab-count { background: rgba(255,255,255,.24); }

/* ============ sekcje ============ */
.af-section-head { text-align: center; }
.af-section-head h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3.5vw, 36px); }
.af-section-head p { margin-top: 8px; font-size: 14px; color: var(--mute); }
.af-section-head-row { display: flex; align-items: flex-end; justify-content: space-between; text-align: left; }
.af-link-arrow { font-size: 13px; font-weight: 800; display: none; }
.af-link-arrow:hover { color: var(--accent); }
@media (min-width: 768px) { .af-link-arrow { display: inline; } }

/* benefity — 4 białe karty */
.af-features { padding-top: 40px; }
.af-features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.af-feature { display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--card); border-radius: var(--r-lg); padding: 24px 14px; box-shadow: var(--shadow-card); }
.af-feature svg { color: var(--ink); }
.af-feature .label { margin-top: 12px; font-size: 13px; }
.af-feature p { margin-top: 3px; font-size: 12px; color: var(--mute); }
@media (min-width: 768px) { .af-features-grid { grid-template-columns: repeat(4, 1fr); } }

/* logotypy marek (Simple Icons, inline SVG dziedziczące kolor tekstu) */
.af-brand-logo { display: inline-flex; align-items: center; justify-content: center; }
.af-brand-logo svg { width: 46px; height: 46px; display: block; }
.af-brand-logo-sm svg { width: 22px; height: 22px; }

/* marki */
.af-makes { padding-top: 56px; padding-bottom: 8px; }
.af-makes-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.af-make { display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 4/3; background: var(--card); border-radius: var(--r-xl); box-shadow: var(--shadow-card); transition: all .2s; min-width: 0; padding: 0 10px; text-align: center; }
.af-make:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.af-make .display { font-size: clamp(15px, 4vw, 27px); max-width: 100%; overflow-wrap: anywhere; }
.af-make .af-brand-logo { margin-bottom: 12px; color: var(--ink); transition: color .2s; }
.af-make:hover .af-brand-logo { color: var(--accent); }
.af-make .label { margin-top: 8px; font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; }
.af-make:hover .label { color: var(--accent); }
@media (min-width: 768px) { .af-makes-grid { grid-template-columns: repeat(4, 1fr); } }

/* produkty (Woo loop) */
.af-products-home { padding: 56px 0 8px; }
.af-products-home .af-section-head-row { margin-bottom: 28px; }
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(1, 1fr); gap: 14px; list-style: none; margin: 0; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
@media (min-width: 640px) { .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .woocommerce ul.products.columns-4 { grid-template-columns: repeat(4, 1fr); }
  .woocommerce ul.products.columns-3 { grid-template-columns: repeat(3, 1fr); }
}
.woocommerce ul.products li.product {
  width: auto !important; margin: 0 !important; padding: 0 !important; float: none !important;
  background: var(--card); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-card);
  transition: all .2s; position: relative; display: flex; flex-direction: column;
}
.woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; }
/* 1:1 + contain: wysokie butelki (kosmetyki) mieszczą się w kadrze zamiast być przycinane */
.woocommerce ul.products li.product img { width: 100%; aspect-ratio: 1/1; object-fit: contain; background: #fff; padding: 10px; margin: 0 !important; }
.af-card-cat { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; color: var(--mute); padding: 18px 22px 0; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-display) !important; font-weight: 700; font-size: 19px !important; line-height: 1.25;
  padding: 6px 22px 0 !important; color: var(--ink);
}
.af-card-fit { font-size: 13px; color: var(--mute); padding: 4px 22px 0; }
.woocommerce ul.products li.product .price {
  font-family: var(--font-body) !important; font-weight: 800; font-size: 19px !important; color: var(--ink) !important;
  padding: 14px 22px 0; margin-top: auto !important;
}
/* stopka karty: CTA pojawia się na hover, na dotyku zawsze widoczne */
.af-card-cta {
  display: inline-flex; align-items: center; gap: 7px; margin: 10px 22px 20px;
  font-size: 13px; font-weight: 700; color: var(--accent);
  opacity: 0; transform: translateX(-6px); transition: all .2s;
}
.woocommerce ul.products li.product:hover .af-card-cta { opacity: 1; transform: translateX(0); }
@media (hover: none) { .af-card-cta { opacity: 1; transform: none; } }
.woocommerce ul.products li.product .price del { opacity: .4; margin-right: 8px; }
.woocommerce ul.products li.product .button, .woocommerce ul.products li.product .added_to_cart { display: none !important; }


/* sekcja tekstowa (SEO) na stronie glownej */
.af-seo-text { padding: 56px 0 0; }
.af-seo-grid { display: grid; gap: 14px; }
@media (min-width: 900px) { .af-seo-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }
.af-seo-grid > div { background: var(--card); border-radius: var(--r-xl); box-shadow: var(--shadow-card); padding: 32px 30px; }
.af-seo-grid h2 { font-family: var(--font-display); font-weight: 700; font-size: 24px; margin-bottom: 12px; }
.af-seo-grid p { font-size: 14.5px; line-height: 1.75; color: #4c4f52; margin-bottom: 12px; }
.af-seo-grid p:last-child { margin-bottom: 0; }
.af-seo-grid strong { color: var(--ink); font-weight: 700; }
.af-seo-grid a { color: var(--accent); font-weight: 700; }

/* banner */
.af-banner { padding: 56px 0 0; }
.af-banner-inner {
  display: flex; flex-direction: column; align-items: flex-start; gap: 24px;
  color: #fff; border-radius: var(--r-xl); padding: 44px 40px; overflow: hidden; position: relative;
}
.af-banner h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 4vw, 40px); max-width: 620px; }
.af-banner p { margin-top: 14px; max-width: 520px; font-size: 14px; color: rgba(255,255,255,.65); }
@media (min-width: 768px) { .af-banner-inner { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ============ stopka — ciemna karta ============ */
.af-footer { padding: 56px 20px 20px; color: #fff; background: transparent; }
.af-footer-card { max-width: 1320px; margin: 0 auto; border-radius: var(--r-xl); overflow: hidden; }
.af-footer-grid { display: grid; gap: 36px; padding: 48px 40px; }
.af-footer-logo { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.af-footer-logo span { color: var(--accent); }
.af-footer p { margin-top: 14px; max-width: 300px; font-size: 14px; color: rgba(255,255,255,.55); }
.af-footer-head { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 14px; }
.af-footer ul { list-style: none; }
.af-footer ul li { margin-bottom: 10px; font-size: 14px; color: rgba(255,255,255,.75); }
.af-footer ul a:hover { color: var(--accent); }
.af-footer-bar { border-top: 1px solid rgba(255,255,255,.1); }
.af-footer-bar > div { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 40px; font-size: 12px; color: rgba(255,255,255,.4); }
@media (min-width: 768px) {
  .af-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .af-footer-bar > div { flex-direction: row; justify-content: space-between; }
}

/* ============ strony ogólne + Woo ============ */
.af-page, .af-woo { max-width: 1320px; margin: 20px auto 40px; background: var(--card); border-radius: var(--r-xl); box-shadow: var(--shadow-card); padding: 40px 24px 48px; }
@media (min-width: 768px) { .af-page, .af-woo { padding: 48px 44px 56px; } }
.af-page-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4.5vw, 42px); margin-bottom: 20px; }
.af-content p { margin-bottom: 16px; max-width: 720px; }

.af-woo .woocommerce-products-header__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4.5vw, 42px); }
.af-woo .woocommerce-result-count { font-size: 13px; color: var(--mute); margin: 8px 0 0; float: none; }
.af-woo .woocommerce-ordering { float: none; margin: 16px 0 28px; }
.af-woo .woocommerce-ordering select { font-weight: 700; font-size: 13px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--r-pill); background: var(--card); }
.af-woo .woocommerce-breadcrumb, .af-breadcrumb { font-size: 12px; font-weight: 700; color: var(--mute); margin-bottom: 20px; text-transform: uppercase; letter-spacing: .06em; }
.af-woo .woocommerce-breadcrumb a, .af-breadcrumb a { color: var(--mute); }
.af-woo .woocommerce-breadcrumb a:hover, .af-breadcrumb a:hover { color: var(--ink); }
.af-crumb-sep { margin: 0 8px; color: var(--accent); }

.af-woo div.product { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 1024px) { .af-woo div.product { grid-template-columns: 1.08fr 1fr; gap: 60px; } }
.af-woo div.product div.images { width: 100% !important; float: none !important; border-radius: var(--r-lg); overflow: hidden; background: #f1f1ee; margin-bottom: 0 !important; align-self: start; }
.af-woo div.product div.images img { width: 100%; aspect-ratio: 1/1; object-fit: contain; background: #fff; display: block; }
.af-woo div.product div.summary { align-self: start; }
.af-woo div.product div.summary { width: 100% !important; float: none !important; margin-bottom: 0 !important; }
.af-woo div.product .product_title { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4vw, 38px); line-height: 1.1; }
.af-woo div.product p.price { font-weight: 800; font-size: 26px; color: var(--ink) !important; margin: 18px 0 !important; }
.af-woo div.product .woocommerce-product-details__short-description { color: #4c4f52; max-width: 520px; }
.af-woo div.product form.cart { margin: 26px 0 !important; display: flex; gap: 12px; align-items: stretch; }
.af-woo div.product form.cart div.quantity { float: none; margin: 0; display: flex; }
.af-woo div.product form.cart .qty { width: 70px; min-height: 52px; border: 1.5px solid var(--line); border-radius: var(--r-pill); text-align: center; font-weight: 700; font-size: 15px; }
.af-woo div.product form.cart .button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt {
  background: var(--ink); color: #fff; border-radius: var(--r-pill); font-family: var(--font-body); font-weight: 700;
  font-size: 14px; padding: 15px 34px; transition: all .2s;
}
.af-woo div.product form.cart .button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover { background: var(--accent); color: var(--accent-contrast); }
.af-woo div.product .product_meta { padding-top: 20px; border-top: 1.5px solid var(--line); font-size: 13px; color: var(--mute); }
.af-woo div.product .product_meta a { color: var(--ink); font-weight: 700; }
.af-woo div.product .woocommerce-tabs { grid-column: 1 / -1; }
.af-woo div.product .woocommerce-tabs ul.tabs { padding: 0 !important; margin: 0 0 20px !important; }
.af-woo div.product .woocommerce-tabs ul.tabs::before { border-bottom: 1.5px solid var(--line) !important; }
.af-woo div.product .woocommerce-tabs ul.tabs li { background: transparent !important; border: 0 !important; border-radius: 0 !important; margin: 0 22px 0 0 !important; padding: 0 !important; }
.af-woo div.product .woocommerce-tabs ul.tabs li::before, .af-woo div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.af-woo div.product .woocommerce-tabs ul.tabs li a { font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: .06em; color: var(--mute) !important; padding: 12px 0 !important; }
.af-woo div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ink) !important; box-shadow: inset 0 -3px 0 var(--accent); }
.af-woo div.product .related.products { grid-column: 1 / -1; border-top: 1.5px solid var(--line); padding-top: 36px; }
.af-woo div.product .related.products > h2 { font-family: var(--font-display); font-weight: 700; font-size: 24px; margin-bottom: 24px; }
.af-woo .woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--accent); font-size: 14px; border-radius: var(--r-md); }
.af-woo .woocommerce-message .button { background: var(--ink); color: #fff; border-radius: var(--r-pill); }



/* ============ katalog z filtrem po aucie ============ */
.af-catalog { display: grid; gap: 14px; align-items: start; }
@media (min-width: 900px) { .af-catalog { grid-template-columns: 274px 1fr; } }
.af-woo-in-catalog { margin: 0; }
.af-woo-tabs + .af-catalog { margin-top: 14px; }

/* przycisk otwierajacy filtry (tylko mobile) */
.af-filters-toggle {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--card); border-radius: var(--r-pill); box-shadow: var(--shadow-card);
  padding: 13px 22px; font-weight: 700; font-size: 14px; color: var(--ink);
}
.af-filters-toggle svg { color: var(--accent); }
.af-filters-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 21px; height: 21px; padding: 0 6px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-contrast); font-size: 11px; font-weight: 800; }
.af-filters-dim { display: none; }


/* przycisk filtra pokazujacy wybrane auto (telefon) */
.af-filters-toggle-wrap { display: flex; align-items: stretch; gap: 8px; }
.af-filters-toggle-wrap.is-active .af-filters-toggle {
  flex: 1; background: var(--ink); color: #fff; text-align: left; gap: 11px; padding: 10px 16px;
}
.af-filters-toggle-wrap.is-active .af-filters-toggle svg { color: #fff; }
.af-ft-logo { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.14); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.af-ft-logo .af-brand-logo svg, .af-ft-logo svg { width: 15px; height: 15px; }
.af-ft-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.af-ft-text b { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.af-ft-text small { font-size: 10px; font-weight: 600; color: rgba(255,255,255,.55); }
.af-ft-more { margin-left: auto; font-size: 11px; font-weight: 800; background: rgba(255,255,255,.16); border-radius: var(--r-pill); padding: 3px 9px; flex-shrink: 0; }
.af-ft-clear {
  display: flex; align-items: center; justify-content: center; width: 46px; flex-shrink: 0;
  background: var(--card); border-radius: var(--r-pill); box-shadow: var(--shadow-card); color: var(--ink); transition: all .2s;
}
.af-ft-clear:hover { background: var(--ink); color: #fff; }
@media (min-width: 900px) { .af-filters-toggle-wrap { display: none; } }

/* panel filtrow */
.af-filters { background: var(--card); border-radius: var(--r-xl); box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.af-filters-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 4px; }
.af-filters-head h4 { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.af-filters-close { display: none; width: 34px; height: 34px; border-radius: 50%; background: #f4f4f1; align-items: center; justify-content: center; }
.af-filters-scroll { padding: 8px 20px 20px; }
.af-filters-foot { display: none; padding: 14px 20px 20px; }
.af-filters-foot .af-btn { width: 100%; text-align: center; }

.af-fgroup { border-top: 1.5px solid var(--line); }
.af-fgroup:first-child { border-top: 0; }
.af-fgroup-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 0; font-weight: 700; font-size: 14px; text-align: left; }
.af-fgroup-name { display: inline-flex; align-items: center; gap: 10px; }
.af-fgroup-name .af-brand-logo { color: var(--ink); }
.af-fchev { opacity: .4; transition: transform .25s; }
.af-fgroup.is-open .af-fchev { transform: rotate(180deg); }
.af-fgroup-body { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.af-fgroup.is-open .af-fgroup-body { max-height: 320px; }

.af-fmodel { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 4px; margin: 0 -8px 2px -4px; border-radius: 12px; font-size: 13.5px; font-weight: 600; transition: background .15s; }
.af-fmodel:hover { background: #f7f7f5; }
.af-fbox { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--accent-contrast); flex-shrink: 0; transition: all .15s; }
.af-fbox svg { opacity: 0; transition: opacity .15s; }
.af-fmodel.is-on .af-fbox svg { opacity: 1; }
.af-fmodel.is-on .af-fbox { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.af-fcount { margin-left: auto; font-size: 11px; font-weight: 800; color: var(--mute); background: #f4f4f1; border-radius: var(--r-pill); padding: 2px 9px; }
.af-fmodel.is-on .af-fcount { background: var(--accent-soft); color: var(--accent); }

.af-filters-clear { display: inline-block; margin-top: 14px; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.af-filters-cta { margin-top: 18px; padding-top: 16px; border-top: 1.5px solid var(--line); font-size: 12px; color: var(--mute); line-height: 1.6; }
.af-filters-cta a { display: block; color: var(--accent); font-weight: 700; margin-top: 2px; }

/* ——— telefon: filtr jako szuflada od dolu ——— */
@media (max-width: 899px) {
  /* panel wysuwany z lewej na pełną wysokość — odporny na paski przeglądarki na iOS/Androidzie */
  .af-filters {
    position: fixed; left: 0; top: 0; bottom: 0; right: auto; z-index: 60;
    width: min(86%, 360px); max-height: none;
    border-radius: 0 var(--r-xl) var(--r-xl) 0; box-shadow: none;
    transform: translateX(-102%); visibility: hidden;
    transition: transform .32s cubic-bezier(.22,1,.36,1), box-shadow .32s, visibility 0s .32s;
  }
  body.af-filters-open .af-filters { transform: translateX(0); visibility: visible; box-shadow: 24px 0 60px rgba(0,0,0,.3); transition-delay: 0s; }
  .af-filters-scroll { flex: 1; overflow-y: auto; }
  .af-filters-close, .af-filters-foot { display: flex; }
  .af-filters-dim { display: block; position: fixed; inset: 0; z-index: 59; background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .25s; }
  body.af-filters-open .af-filters-dim { opacity: 1; pointer-events: auto; }
  body.af-filters-open { overflow: hidden; }
}
@media (min-width: 900px) {
  .af-filters-toggle { display: none; }
  .af-filters { position: sticky; top: 92px; }
}


/* pole VIN na karcie produktu */
.af-vin { width: 100%; margin: 4px 0 18px; }
.af-vin-label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.af-vin-label svg { color: var(--accent); }
.af-vin-req { color: var(--accent); }
.af-vin-input {
  width: 100%; font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; padding: 14px 18px; border: 1.5px solid var(--line); border-radius: var(--r-pill);
  background: #fff; transition: border-color .2s;
}
.af-vin-input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 500; color: #b9bbbd; }
.af-vin-input:focus { outline: none; border-color: var(--accent); }
.af-vin-input:invalid:not(:placeholder-shown) { border-color: var(--flash); }
.af-vin-hint { font-size: 12px; line-height: 1.55; color: var(--mute); margin-top: 8px; }
/* formularz zakupu układa się w kolumnę, gdy jest pole VIN */
.af-woo div.product form.cart:has(.af-vin) { flex-wrap: wrap; }
.af-woo div.product form.cart:has(.af-core) { flex-wrap: wrap; }

/* ===== personalizacja kierownicy: znacznik + nici ===== */
.af-woo div.product form.cart:has(.af-opt) { flex-wrap: wrap; }
.af-opt { width: 100%; margin: 0 0 18px; }
.af-opt-label { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 9px; }
.af-opt-req { color: var(--accent); }

.af-mark { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; background: #fff; }
.af-mark-row { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.af-mark-row input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px; accent-color: var(--accent); cursor: pointer; }
.af-mark-t { display: block; font-size: 14px; font-weight: 700; }
.af-mark-d { display: block; font-size: 12px; line-height: 1.5; color: var(--mute); }
/* pole kodu pojawia się dopiero po zaznaczeniu — bez JS-a, samym CSS-em */
.af-mark-body { display: none; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.af-mark:has(.af-mark-row input:checked) .af-mark-body { display: block; }
.af-mark:has(.af-mark-row input:checked) { border-color: var(--accent); }
.af-mark-code { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; font-family: var(--font-body); font-weight: 700; font-size: 14px; letter-spacing: .04em; }
.af-mark-code::placeholder { font-weight: 500; letter-spacing: 0; color: #c2c4c6; }
.af-mark-code:focus { outline: none; border-color: var(--accent); }
.af-mark-hint { font-size: 11.5px; line-height: 1.5; color: var(--mute); margin-top: 8px; }

.af-threads { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 8px; }
.af-thread { position: relative; border: 1.5px solid var(--line); border-radius: 15px; overflow: hidden; cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s; }
.af-thread input { position: absolute; opacity: 0; pointer-events: none; }
.af-thread:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.14); }
.af-thread:hover { border-color: var(--accent); }
/* podgląd szwu: ciemna skóra + ukośne ściegi w kolorze nici */
.af-thread-prev { display: block; height: 34px; background: #232427; position: relative; }
.af-thread-prev::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 30% 30%, rgba(255,255,255,.06), transparent 60%); }
.af-thread-prev::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 10px; transform: translateY(-50%);
  background-image: repeating-linear-gradient(112deg, var(--t) 0 2.5px, transparent 2.5px 9px); }
.af-thread-meta { display: flex; align-items: center; gap: 6px; padding: 6px 9px; }
.af-thread-meta i { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
.af-thread-meta b { font-size: 11.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.af-thread-meta em { display: none; }
@media (max-width: 480px) {
  .af-threads { grid-template-columns: repeat(3, 1fr); }
}


/* rabat za odesłanie oryginalnej kierownicy */
.af-core {
  width: 100%; display: flex; align-items: center; gap: 12px; cursor: pointer;
  margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: 16px; background: #fff; transition: border-color .18s, background .18s;
}
.af-core:hover { border-color: var(--accent); }
.af-core:has(input:checked) { border-color: var(--accent); background: rgba(37,99,235,.05); }
.af-core input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--accent); cursor: pointer; }
.af-core-body { display: flex; flex-direction: column; gap: 3px; }
.af-core-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.af-core-desc { font-size: 12px; line-height: 1.5; color: var(--mute); }
.af-core-value { margin-left: auto; font-weight: 800; font-size: 15px; color: var(--accent); white-space: nowrap; }
.af-core-value .woocommerce-Price-amount { color: inherit; }
@media (max-width: 480px) {
  .af-core { flex-wrap: wrap; }
  .af-core-value { margin-left: 32px; }
}

.af-woo div.product form.cart .af-vin { flex: 1 0 100%; }

/* chipy pod tytulem produktu */
.af-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.af-chip { font-size: 12.5px; font-weight: 700; padding: 7px 15px; border-radius: var(--r-pill); background: #f4f4f1; color: var(--ink); transition: all .2s; }
a.af-chip:hover { background: var(--accent-soft); }
.af-chip-accent { background: var(--accent); color: var(--accent-contrast); }

/* pasek zaufania pod przyciskiem zakupu */
.af-trust { display: grid; gap: 10px; margin: 22px 0 4px; }
@media (min-width: 560px) { .af-trust { grid-template-columns: repeat(3, 1fr); } }
.af-trust-item { display: flex; align-items: center; gap: 11px; background: #f8f8f6; border-radius: var(--r-md); padding: 13px 15px; }
.af-trust-item svg { color: var(--accent); flex-shrink: 0; }
.af-trust-item span { font-size: 11.5px; color: var(--mute); line-height: 1.35; }
.af-trust-item b { display: block; font-size: 13px; color: var(--ink); font-weight: 700; }

.woocommerce nav.woocommerce-pagination ul { border: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; margin: 0 4px; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { font-weight: 800; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: var(--r-pill); }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* kontakt */
.af-contact-grid { display: grid; gap: 14px; margin: 24px 0; }
.af-contact-card { background: #f8f8f6; border-radius: var(--r-lg); padding: 26px; }
.af-contact-card .label { font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .1em; }
.af-contact-card .display { font-size: 19px; margin-top: 8px; font-family: var(--font-display); font-weight: 700; }
.af-contact-card p { margin: 8px 0 0; font-size: 13px; color: var(--mute); }
.af-contact-banner { color: #fff; border-radius: var(--r-lg); padding: 36px 30px; margin-top: 14px; }
.af-contact-banner h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 3vw, 28px); }
.af-contact-banner p { margin: 12px 0 0; max-width: 560px; font-size: 14px; color: rgba(255,255,255,.65); }
@media (min-width: 768px) { .af-contact-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============ koszyk (klasyczny) ============ */
.af-btn-outline { border: 1.5px solid var(--line); color: var(--ink); }
.af-btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.woocommerce-cart .woocommerce { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
@media (min-width: 1024px) { .woocommerce-cart .woocommerce { grid-template-columns: 1.9fr 1fr; } }
.woocommerce-cart .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-cart .woocommerce-notices-wrapper:empty { display: none; }

.woocommerce-cart-form { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 10px 18px; }
.woocommerce-cart-form table.shop_table { width: 100%; border: 0; border-collapse: collapse; }
.woocommerce-cart-form thead th { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); text-align: left; padding: 14px 8px; border-bottom: 1.5px solid var(--line); }
.woocommerce-cart-form td { padding: 16px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.woocommerce-cart-form tr:last-child td { border-bottom: 0; }
.woocommerce-cart-form td.product-thumbnail { width: 84px; }
.woocommerce-cart-form td.product-thumbnail img { width: 72px; height: 72px; object-fit: contain; background: #f6f6f4; border-radius: 14px; display: block; }
.woocommerce-cart-form td.product-name { font-weight: 700; font-size: 14.5px; }
.woocommerce-cart-form td.product-name a { color: var(--ink); }
.woocommerce-cart-form td.product-name a:hover { color: var(--accent); }
.woocommerce-cart-form td.product-name dl.variation { margin: 6px 0 0; font-size: 12px; color: var(--mute); display: grid; grid-template-columns: auto 1fr; gap: 0 8px; }
.woocommerce-cart-form td.product-name dl.variation dt { font-weight: 700; }
.woocommerce-cart-form td.product-name dl.variation dd { margin: 0; }
.woocommerce-cart-form td.product-price, .woocommerce-cart-form td.product-subtotal { font-weight: 700; white-space: nowrap; }
.woocommerce-cart-form .qty { width: 64px; min-height: 44px; border: 1.5px solid var(--line); border-radius: var(--r-pill); text-align: center; font-weight: 700; }
.woocommerce-cart-form td.product-remove { width: 44px; }
.woocommerce-cart-form td.product-remove a.remove { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #f4f4f2; color: var(--mute) !important; font-size: 18px; font-weight: 600; transition: all .2s; }
.woocommerce-cart-form td.product-remove a.remove:hover { background: var(--flash); color: #fff !important; }

/* pasek pod tabelą: kupon + aktualizacja */
.woocommerce-cart-form td.actions { padding-top: 18px; }
.woocommerce-cart-form .coupon { display: flex; gap: 8px; float: none; margin-bottom: 10px; }
.woocommerce-cart-form .coupon .input-text { flex: 1; min-height: 46px; border: 1.5px solid var(--line); border-radius: var(--r-pill); padding: 0 16px; font-weight: 600; font-size: 13.5px; width: auto; }
.woocommerce-cart-form .coupon .input-text:focus { outline: none; border-color: var(--accent); }
.woocommerce-cart-form .coupon label { display: none; }
.woocommerce-cart-form td.actions .button { min-height: 46px; padding: 0 20px; border-radius: var(--r-pill); border: 0; background: var(--ink); color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; transition: all .2s; }
.woocommerce-cart-form td.actions .button:hover { background: var(--accent); color: var(--accent-contrast); }
.woocommerce-cart-form td.actions .button:disabled { background: #ececea; color: #a0a3a6; cursor: default; }

/* podsumowanie */
/* kolumna: najpierw podsumowanie, potem produkty polecane (cross-sell) */
.woocommerce-cart .cart-collaterals { display: flex; flex-direction: column; gap: 18px; }
.woocommerce-cart .cart-collaterals .cart_totals { order: 1; }
.woocommerce-cart .cart-collaterals .cross-sells { order: 2; width: 100% !important; float: none !important; }
.cart-collaterals .cross-sells > h2 { font-family: var(--font-display); font-size: 19px; margin-bottom: 14px; }
.cart-collaterals .cross-sells ul.products { grid-template-columns: repeat(2, 1fr) !important; }
.woocommerce-cart .cart-collaterals .cart_totals { width: 100% !important; float: none !important; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 22px; }
.cart-collaterals .cart_totals h2 { font-family: var(--font-display); font-size: 20px; margin-bottom: 12px; }
.cart-collaterals table.shop_table { width: 100%; border: 0; border-collapse: collapse; }
.cart-collaterals th, .cart-collaterals td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cart-collaterals th { font-weight: 600; color: var(--mute); width: 40%; }
.cart-collaterals .order-total td, .cart-collaterals .order-total th { border-bottom: 0; font-size: 17px; font-weight: 800; color: var(--ink); }
.wc-proceed-to-checkout { padding: 16px 0 0 !important; }
.wc-proceed-to-checkout a.checkout-button { display: block; text-align: center; background: var(--accent); color: var(--accent-contrast) !important; font-weight: 700; font-size: 15px; padding: 15px 20px; border-radius: var(--r-pill); transition: all .2s; }
.wc-proceed-to-checkout a.checkout-button:hover { background: var(--ink); color: #fff !important; }

/* mobile: wiersze tabeli jako karty */
@media (max-width: 767px) {
  .woocommerce-cart-form { padding: 8px 12px; }
  .woocommerce-cart-form thead { display: none; }
  .woocommerce-cart-form table, .woocommerce-cart-form tbody { display: block; }
  /* !important przebija responsywne style Woo (shop_table_responsive ustawia display:block) */
  .woocommerce-cart-form tr.woocommerce-cart-form__cart-item { display: grid !important; grid-template-columns: 76px 1fr auto; grid-template-areas: "thumb name remove" "qty qty subtotal"; gap: 6px 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); align-items: start; }
  .woocommerce-cart-form tr.woocommerce-cart-form__cart-item td::before { display: none !important; }
  .woocommerce-cart-form tr.woocommerce-cart-form__cart-item td { text-align: left !important; }
  .woocommerce-cart-form tr.woocommerce-cart-form__cart-item:last-of-type { border-bottom: 0; }
  .woocommerce-cart-form tr.woocommerce-cart-form__cart-item td { display: block !important; padding: 0 !important; border: 0 !important; }
  .woocommerce-cart-form td.product-thumbnail { grid-area: thumb; width: auto; display: block !important; }
  .woocommerce-cart-form td.product-thumbnail img { width: 76px; height: 76px; }
  .woocommerce-cart-form td.product-name { grid-area: name; padding-right: 6px; }
  .woocommerce-cart-form tr.woocommerce-cart-form__cart-item td.product-price { display: none !important; }
  .woocommerce-cart-form td.product-remove { grid-area: remove; justify-self: end; width: auto; }
  .woocommerce-cart-form td.product-quantity { grid-area: qty; align-self: center; }
  .woocommerce-cart-form td.product-subtotal { grid-area: subtotal; align-self: center; justify-self: end; font-size: 16px; }
  .woocommerce-cart-form tr:has(td.actions) { display: block; }
  .woocommerce-cart-form td.actions { display: block; }
  .woocommerce-cart-form td.actions .button { width: 100%; }
}

/* pusty koszyk */
.cart-empty.woocommerce-info { display: none; }
.woocommerce-cart .return-to-shop { display: none; }
.af-cart-empty { grid-column: 1 / -1; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 56px 24px; text-align: center; }
.af-cart-empty-icon { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.af-cart-empty h2 { font-size: clamp(22px, 4vw, 30px); margin-bottom: 8px; }
.af-cart-empty p { color: var(--mute); font-size: 14px; max-width: 440px; margin: 0 auto 22px; }
.af-cart-empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ============ strona 404 ============ */
.af-404 { border-radius: var(--r-xl); color: #fff; text-align: center; padding: clamp(56px, 10vw, 110px) 24px; margin: 8px 0 24px; }
.af-404-code { display: block; font-size: clamp(72px, 16vw, 150px); line-height: 1; color: var(--accent); margin-bottom: 6px; }
.af-404 h1 { font-size: clamp(24px, 4.5vw, 36px); margin-bottom: 10px; }
.af-404 p { color: rgba(255,255,255,.65); font-size: 14.5px; max-width: 460px; margin: 0 auto 26px; }
.af-404-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
/* dlugie nazwy (Superkoncentrat 1900:1) nie wychodza poza karte */
.woocommerce ul.products li.product .woocommerce-loop-product__title { overflow-wrap: anywhere; }
/* stopka: social + powrot na gore */
.af-footer-social { display: flex; gap: 10px; margin-top: 18px; }
.af-footer-social a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); color: rgba(255,255,255,.75); transition: all .2s; }
.af-footer-social a:hover { background: var(--accent); color: var(--accent-contrast); }
.af-footer ul a { transition: color .2s; }
.af-footer-top { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: rgba(255,255,255,.55); transition: color .2s; }
.af-footer-top:hover { color: var(--accent); }
@media (max-width: 767px) {
  .af-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; padding: 36px 24px; }
  .af-footer-brand { grid-column: 1 / -1; }
  .af-footer-bar > div { padding: 16px 24px; }
}
