/*
Theme Name: Słowo po upadku
Theme URI: https://slowopoupadku.pl
Author: NextLevelAds
Author URI: https://nextlevelads.pl
Description: Motyw strony i sklepu „Słowo po upadku” (S. Wierzbicki). Strona główna, blog z felietonami, kontakt z formularzem oraz sklep oparty na WooCommerce. Teksty, linki i komunikaty edytowalne w Wygląd → Dostosuj.
Version: 1.6.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
WC requires at least: 8.0
WC tested up to: 9.8
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: slowo-po-upadku
*/

/* =========================================================
   SŁOWO PO UPADKU, wizualizacja B (nowoczesna)
   Promienie: przyciski = pigułka, karty/zdjęcia = 24px, pola formularza = 14px.
   Warstwy (z-index): 10 nagłówek, 20 menu mobilne, 30 toast, 35 okno mapy punktów, 40 ziarno.
   ========================================================= */
:root {
  --bg: #fafafa;
  --surface: #f0f0f1;
  --surface-2: #e7e7e9;
  --ink: #111113;
  --ink-2: #3a3a40;
  --muted: #6b6b73;
  --line: rgba(17, 17, 19, .1);
  --red: #c1121f;
  --red-deep: #9e0e19;
  --dark: #121214;
  --dark-2: #1c1c1f;
  --r-card: 24px;
  --r-input: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: "Geist", ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --read: "Literata", Georgia, "Times New Roman", serif;
  --gutter: clamp(16px, 4vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::after {
  /* delikatne ziarno, tylko na stałej warstwie */
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
main { flex: 1 0 auto; }
.red { color: var(--red); }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--red); }
.h2 {
  margin: 0;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: .98;
  font-weight: 700;
  letter-spacing: -.045em;
  color: var(--ink);
}
.h3 {
  margin: 0;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.025em;
  color: var(--ink);
}
.ph { line-height: 1; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .2s var(--ease), box-shadow .3s var(--ease);
}
.btn .ph, .btn .ph-fill { font-size: 18px; transition: transform .35s var(--ease); }
.btn:hover .ph-arrow-right, .btn:hover .ph-arrow-up-right { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 30px -12px rgba(193, 18, 31, .55); }
.btn-red:hover { background: var(--red-deep); }
.btn-line { background: transparent; color: var(--ink); border-color: rgba(17, 17, 19, .2); }
.btn-line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { background: #fafafa; color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size .45s var(--ease), color .3s;
}
.link:hover { background-size: 100% 1px; }
.link .ph { transition: transform .35s var(--ease); }
.link:hover .ph { transform: translateX(3px); }
.link.red { color: var(--red); }

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 250, 250, .78);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
}
.wordmark {
  justify-self: start;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark span { color: var(--red); }
.nav-links {
  display: flex;
  gap: 4px;
  padding: 5px;
  margin: 0;
  list-style: none;
  border-radius: 999px;
  background: rgba(17, 17, 19, .045);
}
.nav-links a {
  display: block;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background-color .3s var(--ease), color .3s;
}
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, .7); }
.nav-links a.active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(17, 17, 19, .08), 0 4px 12px -6px rgba(17, 17, 19, .15); }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 8px; }
.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .3s, transform .2s var(--ease);
}
.cart-btn:hover { border-color: rgba(17, 17, 19, .3); }
.cart-btn:active { transform: scale(.97); }
.cart-btn .ph { font-size: 18px; }
.cart-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 22px;
  text-align: center;
  transition: background-color .3s, color .3s;
}
.cart-count.has { background: var(--red); color: #fff; }
.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.mobile-menu {
  position: fixed;
  inset: 72px 0 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px var(--gutter) 32px;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
}
.menu-ready .mobile-menu { transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s; }
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -.04em;
  color: var(--ink);
}
.mobile-menu li a.active { color: var(--red); }
.mobile-menu li a .ph { font-size: 26px; color: var(--muted); }
.mobile-menu .socials-row { display: flex; gap: 12px; }
.menu-open { overflow: hidden; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }
main { animation: pageIn .7s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: clamp(560px, 76dvh, 760px);
  margin: 4px clamp(8px, 1.2vw, 16px) 0;
  padding: clamp(22px, 3vw, 44px);
  border-radius: 36px;
  overflow: hidden;
  background: #1a1a1d;
  color: #fafafa;
  animation: heroIn 1.3s var(--ease) both;
}
@keyframes heroIn { from { clip-path: inset(5% 3% 0 3% round 36px); } to { clip-path: inset(0 0 0 0 round 36px); } }
.hero-bg { position: absolute; inset: -18% -36% 0 0; z-index: -2; overflow: hidden; }
.hero-bg picture { display: block; width: 100%; height: 100%; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-x, 50%) var(--hero-y, 42%); animation: kenburns 3s var(--ease) both; }
@keyframes kenburns { from { transform: scale(1.2); filter: brightness(.55); } to { transform: scale(1.02); filter: brightness(1); } }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 12, 14, .42) 0%, rgba(12, 12, 14, 0) 26%, rgba(12, 12, 14, .12) 50%, rgba(12, 12, 14, .86) 100%),
    linear-gradient(90deg, rgba(12, 12, 14, .5) 0%, rgba(12, 12, 14, 0) 55%);
  opacity: var(--hero-overlay, 1);
}
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.hero .eyebrow { margin: 0; color: #fafafa; }
.hero-social { display: flex; gap: 8px; animation: wordIn 1s var(--ease) .3s both; }
.hero-social a {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: 19px;
  transition: background-color .3s var(--ease), color .3s, transform .3s var(--ease);
}
.hero-social a:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }
.hero-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; align-items: end; }
.display {
  margin: 0 0 28px;
  font-size: clamp(52px, 8.2vw, 124px);
  line-height: .86;
  font-weight: 800;
  letter-spacing: -.06em;
  color: var(--ink);
}
.hero .display { font-size: clamp(60px, 11vw, 190px); color: #fafafa; text-shadow: 0 12px 50px rgba(0, 0, 0, .25); }
.display .ln { display: block; white-space: nowrap; }
.display .w { display: inline-block; animation: wordIn 1.1s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms + 350ms); }
@keyframes wordIn { from { opacity: 0; transform: translateY(.35em); } to { opacity: 1; transform: none; } }
.hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 40px; }
.hero-sub {
  margin: 0;
  max-width: 32ch;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.3;
  letter-spacing: -.02em;
  color: rgba(255, 255, 255, .92);
  animation: wordIn 1.1s var(--ease) .75s both;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; animation: wordIn 1.1s var(--ease) .85s both; }
.hero .btn-line { color: #fff; border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .06); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero .btn-line:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* szklana karta książki w hero (webowe przybliżenie efektu matowego szkła) */
.hero-card {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  width: 460px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: linear-gradient(135deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .06));
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 30px 70px -30px rgba(0, 0, 0, .7);
  color: #fff;
  animation: cardIn 1.2s var(--ease) 1.1s both;
  transition: transform .5s var(--ease);
}
.hero-card:hover { transform: translateY(-4px); }
@keyframes cardIn { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }
.mini-book {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 2px 5px 5px 2px;
  overflow: hidden;
  transform: rotate(-5deg);
  box-shadow: -10px 14px 24px rgba(0, 0, 0, .5);
  transition: transform .6s var(--ease);
}
.hero-card:hover .mini-book { transform: rotate(0deg) scale(1.04); }
.mini-book img { width: 100%; height: 100%; object-fit: cover; }
.mini-book::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.4) 0, rgba(255,255,255,.25) 3%, rgba(0,0,0,.1) 7%, rgba(255,255,255,0) 11%); }
.hc-body { display: grid; gap: 4px; }
.hc-body .k { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .75); }
.hc-body strong { font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -.045em; }
.hc-body .lead { font-size: 16px; line-height: 1.35; color: rgba(255, 255, 255, .82); }
.hc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.hc-foot .p { font-size: 23px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hc-foot .go {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 20px;
  transition: transform .4s var(--ease);
}
.hero-card:hover .go { transform: translateX(4px); }
@media (prefers-reduced-transparency: reduce) {
  .hero-card, .hero-social a, .hero .btn-line { background: rgba(20, 20, 22, .92); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* paralaksa hero napędzana przewijaniem (CSS scroll-driven, bez nasłuchiwania scrolla) */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-bg { animation: heroPar linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .hero-bottom, .hero-top { animation: heroLift linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
  }
}
@keyframes heroPar { to { transform: translateY(15%); } }
@keyframes heroLift { to { transform: translateY(-70px); opacity: .15; } }

/* opis książki pod hero */
section.blurb { padding-top: clamp(72px, 9vw, 136px); padding-bottom: clamp(72px, 9vw, 136px); }
.blurb-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.blurb-lead {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 54px);
  line-height: 1.08;
  font-weight: 750;
  letter-spacing: -.045em;
  color: var(--ink);
  text-wrap: balance;
}
.blurb-body { padding-top: .35em; font-family: var(--read); font-size: clamp(18px, 1.35vw, 20px); line-height: 1.7; color: var(--ink-2); }
.blurb-body p { margin: 0 0 1.1em; }
.blurb-body p:last-child { margin-bottom: 0; }
.blurb-body p:first-child {
  font-family: var(--font);
  font-size: clamp(21px, 1.8vw, 26px);
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -.025em;
  color: var(--red);
  text-wrap: balance;
}
.blurb-lead strong, .blurb-body strong { font-weight: 700; color: var(--ink); }

/* =========================================================
   EDEN (jedyny ciemny blok strony)
   ========================================================= */
.eden {
  margin: 0 clamp(8px, 1.2vw, 16px);
  border-radius: 36px;
  background: radial-gradient(120% 80% at 20% 30%, #232327 0%, var(--dark) 60%);
  color: #c9c9cf;
  overflow: hidden;
}
.eden .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: center;
  padding-top: clamp(64px, 9vw, 128px);
  padding-bottom: clamp(64px, 9vw, 128px);
}
.eden .eyebrow { color: #fafafa; }
.eden-title {
  margin: 0 0 18px;
  font-size: clamp(72px, 10vw, 150px);
  line-height: .85;
  font-weight: 800;
  letter-spacing: -.065em;
  color: #fafafa;
}
.eden-lead { margin: 0 0 20px; font-size: clamp(20px, 1.8vw, 25px); line-height: 1.35; letter-spacing: -.02em; color: #fafafa; }
.eden-desc { margin: 0 0 40px; max-width: 56ch; color: #a8a8b0; }
.buy {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.buy .price { margin: 0; font-size: 34px; font-weight: 700; letter-spacing: -.035em; font-variant-numeric: tabular-nums; color: #fafafa; }
.perks { display: flex; flex-wrap: wrap; gap: 14px 32px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 15px; color: #a8a8b0; }
.perks li { display: flex; align-items: center; gap: 10px; }
.perks .ph { font-size: 20px; color: #fafafa; }
.alt-format { margin-top: 18px; font-size: 15px; color: #8c8c95; }
.alt-format a { color: #fafafa; }

/* Książka 3D */
.book-stage { display: grid; place-items: center; perspective: 1800px; padding: 20px 0; }
.book3d {
  --rx: 4deg;
  --ry: -24deg;
  position: relative;
  width: min(320px, 70vw);
  aspect-ratio: 2 / 3;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .9s var(--ease);
}
.book3d > * { position: absolute; }
.book3d .front {
  inset: 0;
  transform: translateZ(19px);
  border-radius: 2px 6px 6px 2px;
  overflow: hidden;
  background: #ddd;
}
.book3d .front img { width: 100%; height: 100%; object-fit: cover; }
.book3d .front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.35) 0, rgba(255,255,255,.2) 2.2%, rgba(0,0,0,.08) 4.5%, rgba(255,255,255,0) 7%), linear-gradient(120deg, rgba(255,255,255,.16), rgba(255,255,255,0) 45%);
}
.book3d .pages {
  top: 4px;
  bottom: 4px;
  right: 0;
  width: 36px;
  transform: translateX(18px) rotateY(90deg);
  background: repeating-linear-gradient(90deg, #f2f2f0 0 1px, #d9d9d6 1px 2px);
}
.book3d .spine {
  top: 0;
  bottom: 0;
  left: 0;
  width: 38px;
  transform: translateX(-19px) rotateY(-90deg);
  background: linear-gradient(90deg, #0b0b0c, #2a2a2c 50%, #0b0b0c);
}
.book3d .back { inset: 0; transform: translateZ(-19px) rotateY(180deg); background: #151517; border-radius: 6px 2px 2px 6px; }
.book-shadow {
  position: absolute;
  left: 8%;
  right: 2%;
  bottom: -34px;
  height: 40px;
  background: radial-gradient(closest-side, rgba(0,0,0,.55), rgba(0,0,0,0));
  transform: translateZ(-40px) rotateX(90deg);
  filter: blur(6px);
}
.on-light .book-shadow { background: radial-gradient(closest-side, rgba(17,17,19,.28), rgba(17,17,19,0)); }

/* =========================================================
   NAJNOWSZE WPISY (strona główna)
   ========================================================= */
.section { padding-top: clamp(80px, 11vw, 160px); }
.posts-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.posts-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); }
.post-feature .media, .post-mini .media, .blog-row .media, .article-cover {
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--surface-2);
}
.post-feature .media { aspect-ratio: 16 / 11; margin-bottom: 26px; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
a:hover .media img, .post-feature:hover .media img, .post-mini:hover .media img, .blog-row:hover .media img { transform: scale(1.045); }
.meta { display: block; margin-bottom: 10px; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.post-feature h3 { margin: 0 0 12px; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.05; font-weight: 650; letter-spacing: -.035em; color: var(--ink); }
.post-feature p { margin: 0 0 18px; max-width: 46ch; }
.post-side { display: grid; gap: clamp(28px, 3vw, 44px); align-content: start; }
.post-mini { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 22px; align-items: start; }
.post-mini .media { aspect-ratio: 1; }
.post-mini h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.15; font-weight: 600; letter-spacing: -.025em; color: var(--ink); }
.post-mini p { margin: 0 0 12px; font-size: 16px; }
.post-side .note {
  padding: 28px;
  border-radius: var(--r-card);
  background: var(--surface);
}

/* =========================================================
   O AUTORZE
   ========================================================= */
.about-statement {
  margin: 0 0 56px;
  font-size: clamp(56px, 9vw, 140px);
  line-height: .9;
  font-weight: 800;
  letter-spacing: -.06em;
  color: var(--ink);
}
.about-statement span { color: var(--red); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.about-person { display: flex; gap: 22px; align-items: flex-start; }
.about-person img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; filter: grayscale(1) contrast(1.05); }
.about-person p { margin: 0; max-width: 44ch; font-size: 18px; }
.about-person strong { display: block; margin-bottom: 6px; font-weight: 600; color: var(--ink); }
.quote {
  margin: 0;
  padding-left: clamp(20px, 3vw, 44px);
  border-left: 2px solid var(--red);
}
.quote p {
  margin: 0 0 18px;
  font-family: var(--read);
  font-style: italic;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--ink);
  padding-bottom: 4px;
}
.quote cite { font-style: normal; font-size: 15px; font-weight: 500; color: var(--muted); }

/* =========================================================
   BĄDŹ NA BIEŻĄCO (Facebook)
   ========================================================= */
.news {
  position: relative;
  display: grid;
  min-height: 460px;
  border-radius: var(--r-card);
  overflow: hidden;
  align-items: end;
  background: var(--surface-2);
}
.news > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-card {
  position: relative;
  max-width: 460px;
  margin: clamp(16px, 3vw, 40px);
  padding: clamp(24px, 3vw, 40px);
  border-radius: 20px;
  background: rgba(250, 250, 250, .88);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 24px 60px -30px rgba(17, 17, 19, .35);
}
.news-card h2 { margin: 0 0 10px; font-size: clamp(30px, 3vw, 42px); line-height: 1; font-weight: 700; letter-spacing: -.04em; color: var(--ink); }
.news-card p { margin: 0 0 24px; }

/* =========================================================
   STOPKA
   ========================================================= */
.site-footer { margin-top: clamp(80px, 11vw, 160px); background: var(--bg); border-top: 1px solid var(--line); overflow: hidden; }
.footer-mark { align-self: start; font-size: 20px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 48px;
}
.footer-top h4 { margin: 0 0 16px; font-size: 14px; font-weight: 600; color: var(--muted); }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-top a { color: var(--ink); transition: color .25s; }
.footer-top a:hover { color: var(--red); }
.socials { display: flex; gap: 10px; }
.socials a {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 20px;
  transition: background-color .3s var(--ease), color .3s, transform .3s var(--ease);
}
.socials a:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 20px;
  padding-bottom: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.footer-bottom a:hover { color: var(--ink); }
.footer-meta { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-credit a { transition: color .25s; }

/* obserwuj nas (strona główna) */
.follow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px 48px;
  align-items: center;
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.follow p { margin: 14px 0 0; max-width: 46ch; font-size: 18px; }
.follow-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* notka o autorze (blog, kontakt) */
.author-note .about-grid { padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }

/* =========================================================
   NAGŁÓWEK PODSTRONY
   ========================================================= */
.page-head { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(40px, 5vw, 72px); }
.page-head h1 {
  margin: 0 0 16px;
  font-size: clamp(64px, 11vw, 176px);
  line-height: .84;
  font-weight: 800;
  letter-spacing: -.065em;
  color: var(--ink);
}
.page-head p { margin: 0; max-width: 34ch; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.35; letter-spacing: -.02em; color: var(--ink-2); }
.page-head.compact h1, .contact.compact h1 { font-size: clamp(44px, 5.6vw, 84px); line-height: .92; letter-spacing: -.05em; }
.page-head.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.page-head.split .head-media { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-2); }
.page-head.split .head-media img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   SKLEP
   ========================================================= */
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); align-items: start; }
.product-tile { display: block; }
.product-tile .stage {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 4;
  margin-bottom: 26px;
  border-radius: var(--r-card);
  background: radial-gradient(90% 70% at 50% 40%, #fff 0%, var(--surface) 70%);
  overflow: hidden;
  perspective: 1600px;
}
.product-tile .book3d { width: min(230px, 46%); --ry: -26deg; }
.product-tile:hover .book3d { --ry: -14deg; }
.product-tile .info { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; align-items: end; }
.product-tile h2 { text-transform: uppercase;  margin: 0; font-size: 34px; line-height: 1; font-weight: 700; letter-spacing: -.04em; color: var(--ink); }
.product-tile .format { margin: 0; color: var(--muted); }
.product-tile .desc { grid-column: 1 / -1; margin: 10px 0 18px; max-width: 42ch; }
.product-tile .price { grid-row: 1; grid-column: 2; margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.product-tile .btn { grid-column: 1 / -1; justify-self: start; }

/* tablet */
.tablet {
  position: relative;
  width: min(230px, 50%);
  aspect-ratio: .7;
  padding: 5.5% 5.5% 9%;
  border-radius: 22px;
  background: linear-gradient(150deg, #2d2d31, #0e0e10 45%, #1d1d20);
  box-shadow: inset 0 0 0 1.5px #3a3a3f, 0 40px 60px -30px rgba(17, 17, 19, .5), 0 10px 20px -10px rgba(17, 17, 19, .3);
  transform: rotate(-4deg);
  transition: transform .9s var(--ease);
}
.product-tile:hover .tablet { transform: rotate(0deg) translateY(-6px); }
.tablet .screen { width: 100%; height: 100%; border-radius: 6px; overflow: hidden; background: #000; }
.tablet .screen img { width: 100%; height: 100%; object-fit: cover; }
.tablet::after { content: ""; position: absolute; left: 50%; bottom: 3.2%; width: 7%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; border: 1.5px solid #46464b; }

/* =========================================================
   KARTA PRODUKTU
   ========================================================= */
.crumbs { display: flex; align-items: center; gap: 8px; padding-top: 28px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--ink); }
.crumbs a:hover { color: var(--red); }
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
  padding-top: 24px;
}
.p-gallery { position: sticky; top: 96px; }
.p-gallery .stage {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: var(--r-card);
  background: radial-gradient(90% 70% at 50% 40%, #fff 0%, var(--surface) 70%);
  perspective: 1600px;
  overflow: hidden;
}
.p-gallery .book3d { width: min(290px, 52%); }
.p-gallery .tablet { width: min(300px, 56%); }
.thumbs { display: flex; gap: 10px; margin-top: 14px; }
.thumbs button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 18px 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .3s, color .3s, background-color .3s;
}
.thumbs button img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.thumbs button.active { border-color: var(--ink); color: var(--ink); }
.product-info .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 14px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: rgba(193, 18, 31, .08);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--red);
}
.product-info h1 { margin: 0; font-size: clamp(64px, 8vw, 120px); line-height: .85; font-weight: 800; letter-spacing: -.065em; color: var(--ink); }
.product-info .author { margin: 14px 0 26px; font-size: 18px; color: var(--muted); }
.product-info .lead { margin: 0 0 14px; font-size: 24px; line-height: 1.3; letter-spacing: -.02em; color: var(--ink); }
.product-info .desc { margin: 0 0 32px; max-width: 54ch; }
.product-info .price { margin: 0 0 20px; font-size: 40px; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--ink); }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; }
.buy-row .btn { flex: 1 1 220px; }
.facts { display: grid; gap: 2px; margin: 28px 0 0; padding: 0; list-style: none; }
.facts li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  font-size: 15.5px;
  color: var(--ink);
}
.facts li:first-child { border-radius: 18px 18px 4px 4px; }
.facts li:last-child { border-radius: 4px 4px 18px 18px; }
.facts li:only-child { border-radius: 18px; }
.facts .ph { font-size: 22px; color: var(--red); }

.tabs { margin-top: clamp(56px, 8vw, 110px); }
.tablist { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--surface); }
.tablist button {
  height: 44px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s;
}
.tablist button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(17, 17, 19, .08), 0 4px 12px -6px rgba(17, 17, 19, .15); }
.tabpanel { max-width: 68ch; padding-top: 28px; font-family: var(--read); font-size: 19px; line-height: 1.7; color: var(--ink); }
.tabpanel p { margin: 0; }

/* =========================================================
   BLOG
   ========================================================= */
.blog-list { display: grid; gap: clamp(40px, 6vw, 88px); }
.blog-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.blog-row .meta { margin: 6px 0 0; }
.blog-row h2 { margin: 0 0 14px; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.02; font-weight: 650; letter-spacing: -.04em; color: var(--ink); transition: color .3s; }
.blog-row:hover h2 { color: var(--red); }
.blog-row p { margin: 0 0 20px; max-width: 40ch; }
.blog-row .media { aspect-ratio: 16 / 10; }

/* Wpis */
.article { max-width: 760px; margin: 0 auto; padding-top: clamp(40px, 6vw, 88px); }
.article h1 { margin: 12px 0 0; font-size: clamp(40px, 5.6vw, 76px); line-height: .98; font-weight: 750; letter-spacing: -.05em; color: var(--ink); }
.article-cover { aspect-ratio: 16 / 9; margin: clamp(32px, 5vw, 56px) 0; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body p { margin: 0 0 24px; font-family: var(--read); font-size: clamp(19px, 1.5vw, 21px); line-height: 1.75; color: var(--ink); }
.article-body .lead-in { font-size: clamp(22px, 2vw, 26px); line-height: 1.5; }
.article-body .soon { color: var(--muted); font-style: italic; }
.article .back { margin-top: 24px; }

/* =========================================================
   KONTAKT
   ========================================================= */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
  padding-top: clamp(40px, 7vw, 96px);
}
.contact h1 { margin: 0 0 12px; font-size: clamp(64px, 9vw, 150px); line-height: .84; font-weight: 800; letter-spacing: -.065em; color: var(--ink); }
.contact .kicker { margin: 0 0 22px; font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.03em; color: var(--red); }
.contact .intro { margin: 0 0 36px; max-width: 40ch; font-size: 18px; }
.mail-big {
  display: inline-block;
  margin-bottom: 40px;
  font-size: clamp(20px, 2.1vw, 30px);
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--ink);
  word-break: break-word;
  background: linear-gradient(var(--red), var(--red)) 0 100% / 100% 2px no-repeat;
  padding-bottom: 4px;
  transition: color .3s;
}
.mail-big:hover { color: var(--red); }
.social-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.social-pills a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 500;
  color: var(--ink);
  transition: background-color .3s var(--ease), color .3s, border-color .3s;
}
.social-pills a .ph { font-size: 20px; }
.social-pills a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.form-panel { padding: clamp(24px, 3.5vw, 48px); border-radius: var(--r-card); background: var(--surface); }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.field label small { font-weight: 400; color: var(--muted); font-size: 14px; }
.field input, .field textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid rgba(17, 17, 19, .14);
  border-radius: var(--r-input);
  background: #fff;
  font-size: 16px;
  color: var(--ink);
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #75757d; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(17, 17, 19, .08); }
.field .err { display: none; font-size: 14px; color: var(--red); }
.field.invalid input, .field.invalid textarea { border-color: var(--red); }
.field.invalid .err { display: block; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 24px; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--red); flex: none; cursor: pointer; }
.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.consent-err { display: none; margin: -14px 0 20px; font-size: 14px; color: var(--red); }
.consent-err.show { display: block; }
.form-panel .btn { width: 100%; }
.sent { display: grid; justify-items: start; gap: 14px; padding: 12px 0; }
.sent .ph { font-size: 44px; color: var(--red); }
.sent h2 { margin: 0; font-size: 34px; line-height: 1.05; font-weight: 700; letter-spacing: -.04em; color: var(--ink); }
.sent p { margin: 0 0 8px; }

/* ---------- Toast ---------- */

/* =========================================================
   RESPONSYWNOŚĆ
   ========================================================= */
@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: 1fr; }
  .post-side { grid-template-columns: 1fr 1fr; }
  .blog-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .blog-row .meta { grid-column: 1 / -1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .cart-btn .label { display: none; }
  .cart-btn { padding: 0 10px 0 12px; }

  .hero { min-height: 560px; border-radius: 28px; }
  .hero-top { margin-bottom: 72px; }
  .hero-bottom { grid-template-columns: 1fr; }
  .hero-bg { inset: -18% -60% 0 0; }
  .hero-card { width: 100%; max-width: 480px; }
  .display { margin-bottom: 24px; }

  .eden .wrap { grid-template-columns: 1fr; }
  .book-stage { padding: 0 0 24px; }

  .about-grid { grid-template-columns: 1fr; }
  .blurb-grid { grid-template-columns: 1fr; }

  .page-head.split { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: 1fr; }

  .product-layout { grid-template-columns: 1fr; }
  .p-gallery { position: static; }
  .p-gallery .stage { aspect-ratio: 5 / 4; }

  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .display, .hero .display { font-size: 17vw; }
  .hero-social { display: none; }
  .hero-sub { max-width: none; }
  .hero-card { grid-template-columns: 84px minmax(0, 1fr); padding: 16px; gap: 18px; }
  .hc-body strong { font-size: 30px; }
  .hc-body .lead { font-size: 14.5px; }
  .hc-foot .p { font-size: 20px; }
  .page-head h1, .contact h1 { font-size: 22vw; }
  .page-head.compact h1, .contact.compact h1 { font-size: 13vw; }
  .follow { grid-template-columns: 1fr; }
  .follow-links .btn { flex: 1 1 100%; }
  .hero-cta .btn { flex: 1 1 140px; }
  .buy { gap: 18px; }
  .buy .btn { width: 100%; }
  .perks { flex-direction: column; gap: 12px; }
  .posts-head { flex-direction: column; align-items: flex-start; margin-bottom: 32px; }
  .post-side { grid-template-columns: 1fr; }
  .post-mini { grid-template-columns: 104px minmax(0, 1fr); gap: 16px; }
  .post-mini h3 { font-size: 19px; }
  .post-mini p { display: none; }
  .about-person { flex-direction: column; }
  .news { min-height: 520px; }
  .blog-row { grid-template-columns: 1fr; }
  .blog-row .media { grid-row: 2; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .product-tile .info { grid-template-columns: 1fr auto; }
  .product-tile .btn { width: 100%; justify-self: stretch; }
  .buy-row .btn { flex-basis: 100%; }
  .tablist { display: flex; }
  .tablist button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   WORDPRESS: elementy systemowe
   ========================================================= */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed !important;
  top: 12px;
  left: 12px;
  z-index: 100;
  width: auto;
  height: auto;
  padding: 12px 18px;
  clip: auto;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
}
body.admin-bar .site-header { top: 32px; }
body.admin-bar .mobile-menu { inset: 104px 0 0; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
  body.admin-bar .mobile-menu { inset: 118px 0 0; }
}
@media (max-width: 600px) {
  body.admin-bar .site-header { top: 0; }
}

/* aktywna pozycja menu (klasy nadawane przez WordPress) */
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a,
.nav-links .current-menu-parent > a,
.nav-links .current-page-ancestor > a {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(17, 17, 19, .08), 0 4px 12px -6px rgba(17, 17, 19, .15);
}
.mobile-menu .current-menu-item > a,
.mobile-menu .current_page_item > a,
.mobile-menu .current-menu-parent > a { color: var(--red); }
.nav-links .sub-menu, .mobile-menu .sub-menu { display: none; }

/* przycisk koszyka jako link */
a.cart-btn { text-decoration: none; }

/* =========================================================
   TREŚĆ Z EDYTORA (wpisy, strony, regulaminy)
   ========================================================= */
.entry-content > * { margin-top: 0; }
.entry-content p { margin: 0 0 24px; }
.entry-content h2, .entry-content h3, .entry-content h4 {
  margin: 48px 0 16px;
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--ink);
}
.entry-content h2 { font-size: clamp(28px, 2.6vw, 36px); }
.entry-content h3 { font-size: clamp(22px, 2vw, 26px); }
.entry-content h4 { font-size: 19px; }
.entry-content a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--red-deep); }
.entry-content ul, .entry-content ol { margin: 0 0 24px; padding-left: 1.3em; }
.entry-content li { margin-bottom: 8px; }
.entry-content blockquote, .entry-content .wp-block-quote {
  margin: 36px 0;
  padding: 0 0 0 clamp(20px, 3vw, 36px);
  border-left: 2px solid var(--red);
  font-family: var(--read);
  font-style: italic;
  font-size: 1.15em;
  color: var(--ink);
}
.entry-content img { height: auto; border-radius: var(--r-input); }
.entry-content figure { margin: 36px 0; }
.entry-content figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.entry-content hr { margin: 48px 0; border: 0; border-top: 1px solid var(--line); }
.entry-content table { width: 100%; margin: 0 0 24px; border-collapse: collapse; font-size: 15px; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* treść wpisu w kroju do czytania */
.article-body.entry-content { font-family: var(--read); font-size: clamp(19px, 1.5vw, 21px); line-height: 1.75; color: var(--ink); }
.article-body.entry-content h2, .article-body.entry-content h3 { font-family: var(--font); }

/* zwykła strona (regulamin, polityka, dostawa) */
.page-body { max-width: 780px; padding-bottom: 24px; font-size: 17.5px; line-height: 1.75; color: var(--ink-2); }
.page-wide { padding-bottom: 24px; }

/* blog: wpis bez zdjęcia */
.blog-row.no-media { grid-template-columns: 160px minmax(0, 1fr); }
.blog-row.no-media > div { max-width: 760px; }

/* stronicowanie */
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(40px, 6vw, 72px); }
.pager .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 500;
  color: var(--ink);
  transition: background-color .3s, color .3s, border-color .3s;
}
.pager .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager a.page-numbers:hover { border-color: var(--ink); }

/* 404 i puste stany */
.empty-state { padding: clamp(32px, 5vw, 64px) 0; }
.empty-state p { margin: 0 0 24px; max-width: 46ch; font-size: 18px; }

/* komunikaty formularza kontaktowego */
.form-notice {
  margin: 0 0 20px;
  padding: 14px 18px;
  border-radius: var(--r-input);
  background: #fff;
  border-left: 3px solid var(--red);
  font-size: 15px;
  color: var(--ink);
}
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.sent a.btn { text-decoration: none; }

/* =========================================================
   WOOCOMMERCE
   ========================================================= */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin: 0 0 24px;
  padding: 16px 20px;
  list-style: none;
  border-radius: var(--r-input);
  background: var(--surface);
  border-left: 3px solid var(--red);
  font-size: 15.5px;
  color: var(--ink);
}
.woocommerce-error li { margin: 0; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; }
.single-notices { padding-top: 24px; }

/* przyciski WooCommerce w stylu motywu */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt,
.wc-block-components-button:not(.is-link), .wp-block-button__link, .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: var(--font);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s var(--ease), transform .2s var(--ease);
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.wc-block-components-button:not(.is-link):hover, .wp-block-button__link:hover { background: var(--red-deep); color: #fff; }
.woocommerce a.button:active, .woocommerce button.button:active { transform: scale(.98); }
.woocommerce button.button:disabled, .woocommerce button.button.disabled { opacity: .5; cursor: not-allowed; }

/* ceny */
.price del, .hc-foot .p del { opacity: .45; font-weight: 400; margin-right: 8px; }
.price ins, .hc-foot .p ins { text-decoration: none; }

/* karta produktu: formularz dodania do koszyka */
.product-info form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin: 0; }
.product-info form.cart .single_add_to_cart_button { flex: 1 1 220px; min-height: 54px; }
.product-info form.cart .single_add_to_cart_button::after {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='16' d='M184 184H69.8L41.9 30.6A8 8 0 0 0 34.1 24H16'/%3E%3Ccircle cx='80' cy='204' r='20' fill='none' stroke='%23000' stroke-width='16'/%3E%3Ccircle cx='184' cy='204' r='20' fill='none' stroke='%23000' stroke-width='16'/%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='16' d='M62.5 144h125.6a16 16 0 0 0 15.7-13.1L216 64H48'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='16' d='M184 184H69.8L41.9 30.6A8 8 0 0 0 34.1 24H16'/%3E%3Ccircle cx='80' cy='204' r='20' fill='none' stroke='%23000' stroke-width='16'/%3E%3Ccircle cx='184' cy='204' r='20' fill='none' stroke='%23000' stroke-width='16'/%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='16' d='M62.5 144h125.6a16 16 0 0 0 15.7-13.1L216 64H48'/%3E%3C/svg%3E") center / contain no-repeat;
}
.product-info .stock { margin: 0 0 14px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.product-info .stock.out-of-stock { color: var(--red); }
.product-info .tag.preorder { margin-left: 6px; background: var(--ink); color: #fff; }
.preorder-note {
  margin: 0 0 20px;
  padding: 14px 18px;
  border-radius: var(--r-input);
  background: rgba(193, 18, 31, .07);
  font-size: 15px;
  color: var(--ink);
}
.product-info .desc p { margin: 0 0 12px; }
.tabpanel.entry-content p { margin: 0 0 20px; }
.p-gallery .stage img { display: block; }

/* pole ilości (WooCommerce .quantity + przyciski dodawane skryptem) */
.quantity {
  display: inline-flex;
  align-items: center;
  height: 54px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}
.quantity .qty-step {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: background-color .25s;
}
.quantity .qty-step:hover { background: var(--surface); }
.quantity input.qty {
  width: 44px;
  height: 100%;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  -moz-appearance: textfield;
}
.quantity input.qty:focus-visible { outline: none; }
.quantity input.qty::-webkit-outer-spin-button, .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quantity input[type="hidden"] + .qty-step, .quantity.hidden { display: none; }

/* strony WooCommerce (koszyk, kasa, moje konto) w wersji klasycznej */
.woocommerce table.shop_table { width: 100%; margin: 0 0 32px; border-collapse: collapse; font-size: 16px; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 16px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.woocommerce table.shop_table th { font-size: 14px; font-weight: 600; color: var(--muted); }
.woocommerce table.shop_table img { width: 64px; height: auto; border-radius: 6px; }
.woocommerce a.remove { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; color: var(--red) !important; font-size: 20px; text-decoration: none; }
.woocommerce a.remove:hover { background: rgba(193, 18, 31, .08); }
.woocommerce form .form-row { margin: 0 0 18px; }
.woocommerce form .form-row label { display: block; margin-bottom: 6px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select,
.woocommerce-cart .coupon input.input-text {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(17, 17, 19, .14);
  border-radius: var(--r-input);
  background: #fff;
  font-size: 16px;
  color: var(--ink);
}
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(17, 17, 19, .08); }
.woocommerce .cart-collaterals, .woocommerce-checkout-review-order { margin-top: 24px; }
.woocommerce ul.woocommerce-shipping-methods, .woocommerce ul.wc_payment_methods { list-style: none; margin: 0; padding: 0; }

/* kasa: płatność (karty metod, jak karty dostawy) */
.entry-content h3.spu-pay-heading { margin-top: 40px; }
.woocommerce ul.wc_payment_methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  align-items: start;
  gap: 12px;
  margin: 0 0 28px;
}
.woocommerce ul.wc_payment_methods li.wc_payment_method {
  position: relative;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(17, 17, 19, .14);
  border-radius: var(--r-input);
  background: #fff;
  transition: border-color .25s, box-shadow .25s;
}
.woocommerce ul.wc_payment_methods li.wc_payment_method:hover { border-color: rgba(17, 17, 19, .32); }
.woocommerce ul.wc_payment_methods li.wc_payment_method:has(> input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.woocommerce ul.wc_payment_methods li.wc_payment_method:has(> input:focus-visible) { box-shadow: inset 0 0 0 1px var(--ink), 0 0 0 4px rgba(17, 17, 19, .12); }
.woocommerce ul.wc_payment_methods li.wc_payment_method > input.input-radio { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.woocommerce ul.wc_payment_methods li.wc_payment_method > label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  margin: 0;
  padding: 12px 18px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  cursor: pointer;
}
.woocommerce ul.wc_payment_methods li.wc_payment_method > label::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid rgba(17, 17, 19, .3);
  border-radius: 999px;
  background: radial-gradient(circle, var(--ink) 0 4.5px, transparent 5px) center / 0 0 no-repeat;
  transition: border-color .25s, background-size .3s var(--ease);
}
.woocommerce ul.wc_payment_methods li.wc_payment_method > input:checked + label::before { border-color: var(--ink); background-size: 100% 100%; }
.woocommerce ul.wc_payment_methods li.wc_payment_method > label img { flex: none; width: auto; max-width: 104px; height: auto; max-height: 28px; margin: 0 0 0 auto; border-radius: 0; }
.woocommerce ul.wc_payment_methods li.wc_payment_method > input[style*="display: none"] + label::before,
.woocommerce ul.wc_payment_methods li.wc_payment_method > input[style*="display:none"] + label::before { display: none; }
.woocommerce .payment_box {
  margin: 0 18px;
  padding: 14px 0 18px;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: none;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
}
.woocommerce .payment_box p { margin: 0 0 8px; }
.woocommerce .payment_box p:last-child { margin-bottom: 0; }
/* BLIK: kod wpisywany w sklepie */
.woocommerce .payment_box #blik_code_label { display: block; margin: 12px 0 0; }
.woocommerce .payment_box input.autopay-blik-code {
  width: 100%;
  max-width: 260px;
  height: 58px;
  padding: 0 16px;
  border: 1px solid rgba(17, 17, 19, .2);
  border-radius: var(--r-input);
  background: #fff;
  font: inherit;
  font-size: 26px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: .32em;
  text-align: center;
  color: var(--ink);
  -moz-appearance: textfield;
}
.woocommerce .payment_box input.autopay-blik-code::placeholder { color: rgba(17, 17, 19, .25); }
.woocommerce .payment_box input.autopay-blik-code:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(17, 17, 19, .08); }
.woocommerce .payment_box input.autopay-blik-code::-webkit-outer-spin-button,
.woocommerce .payment_box input.autopay-blik-code::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.woocommerce .payment_box .blik_msg_container { margin: 8px 0 0; font-size: 14px; color: var(--red); }
.woocommerce .payment_box .blik_msg_container:empty { display: none; }

/* kasa: zgody i przycisk zamówienia */
.woocommerce-checkout .woocommerce-privacy-policy-text p { margin: 0 0 16px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.woocommerce-checkout .place-order .form-row { margin: 0 0 12px; }
.woocommerce form .form-row label.checkbox { position: relative; display: block; margin: 0; padding-left: 30px; font-size: 14.5px; font-weight: 500; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.woocommerce form .form-row label.checkbox input[type="checkbox"] { position: absolute; top: 2px; left: 0; width: 18px; height: 18px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.woocommerce form .form-row label.checkbox abbr.required, .woocommerce form .form-row label.checkbox .required { color: var(--red); text-decoration: none; }
.woocommerce-checkout #place_order { margin-top: 12px; }
.woocommerce form .form-row .description { display: block !important; margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }

/* e-book: informacja o dostawie e-mailem (kasa, podziękowanie) */
.spu-ebook-note {
  display: flex;
  gap: 14px;
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px solid rgba(17, 17, 19, .14);
  border-radius: var(--r-input);
  background: #fff;
}
.spu-ebook-note > .ph { flex: none; margin-top: 2px; font-size: 24px; color: var(--red); }
.spu-ebook-note strong { display: block; font-size: 16px; color: var(--ink); }
.entry-content .spu-ebook-note p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.entry-content .spu-ebook-note p.spu-ebook-note__limits { font-size: 13.5px; color: var(--muted); }
.spu-ebook-note--thanks { background: var(--surface); border-color: transparent; }
.entry-content .spu-ebook-note--thanks p { margin: 0; font-size: 15.5px; color: var(--ink); }
.woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.woocommerce-MyAccount-navigation a { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--ink); color: #fff; border-color: var(--ink); }

/* kasa: pole wyboru kraju (Select2) w stylu pozostałych pól */
.woocommerce form .form-row .select2-container { width: 100% !important; }
.select2-container--default .select2-selection--single {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 44px 0 16px;
  border: 1px solid rgba(17, 17, 19, .14);
  border-radius: var(--r-input);
  background: #fff;
  transition: border-color .25s, box-shadow .25s;
}
.select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0; font-size: 16px; line-height: 1.6; color: var(--ink); }
.select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--muted); }
.select2-container--default .select2-selection--single .select2-selection__arrow { top: 0; right: 16px; width: 12px; height: 100%; display: grid; place-items: center; }
.select2-container--default .select2-selection--single .select2-selection__arrow b { display: none; }
.select2-container--default .select2-selection--single .select2-selection__arrow::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg);
  transition: transform .3s var(--ease), margin .3s var(--ease);
}
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow::after { margin-top: 4px; transform: rotate(225deg); }
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,
.select2-container--default.select2-container--open.select2-container--above .select2-selection--single {
  border-color: var(--ink);
  border-radius: var(--r-input);
  box-shadow: 0 0 0 4px rgba(17, 17, 19, .08);
  outline: none;
}
.select2-container--default .select2-dropdown {
  overflow: hidden;
  border: 1px solid rgba(17, 17, 19, .14);
  border-radius: var(--r-input);
  background: #fff;
  box-shadow: 0 18px 40px -12px rgba(17, 17, 19, .25);
  font-family: var(--font);
}
.select2-container--open .select2-dropdown--below { margin-top: 6px; }
.select2-container--open .select2-dropdown--above { margin-top: -6px; }
.select2-container--default .select2-search--dropdown { padding: 10px; }
.select2-container--default .select2-search--dropdown .select2-search__field {
  padding: 10px 12px;
  border: 1px solid rgba(17, 17, 19, .14);
  border-radius: 10px;
  font-size: 16px;
  color: var(--ink);
  outline: none;
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus { border-color: var(--ink); }
.select2-container--default .select2-results > .select2-results__options { max-height: 280px; padding: 0 6px 6px; }
.select2-container--default .select2-results__option { padding: 9px 12px; border-radius: 8px; font-size: 15px; color: var(--ink); }
.select2-container--default .select2-results__option[aria-selected="true"],
.select2-container--default .select2-results__option[data-selected="true"] { background: transparent; font-weight: 600; }
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--surface); color: var(--ink); }

/* kasa: sposób dostawy (karty metod z logo przewoźnika) */
.spu-delivery { margin-bottom: 8px; transition: opacity .3s; }
.spu-delivery.is-updating { opacity: .6; }
.spu-delivery__package { margin: 0 0 10px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.spu-delivery__empty { padding: 16px 18px; border-radius: var(--r-input); background: var(--surface); font-size: 15px; }
.spu-ship-list { display: grid; gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; }
.spu-ship {
  position: relative;
  border: 1px solid rgba(17, 17, 19, .14);
  border-radius: var(--r-input);
  background: #fff;
  transition: border-color .25s, box-shadow .25s;
}
.spu-ship:hover { border-color: rgba(17, 17, 19, .32); }
.spu-ship.is-selected, .spu-ship:has(> input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.spu-ship > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.spu-ship > input:focus-visible + .spu-ship__label { border-radius: var(--r-input); box-shadow: 0 0 0 4px rgba(17, 17, 19, .12); }
.spu-ship__label {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 14px 18px;
  cursor: pointer;
}
.woocommerce form .spu-ship .spu-ship__label { margin: 0; font-weight: 400; }
.spu-ship__radio {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid rgba(17, 17, 19, .3);
  border-radius: 999px;
  transition: border-color .25s;
}
.spu-ship__radio::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--ink);
  transform: scale(0);
  transition: transform .3s var(--ease);
}
.spu-ship > input:checked + .spu-ship__label .spu-ship__radio { border-color: var(--ink); }
.spu-ship > input:checked + .spu-ship__label .spu-ship__radio::after { transform: scale(1); }
/* oficjalne logotypy bez ramek i cieni (wytyczne przewoźników); logo DPD ma min. 60 px szerokości */
.spu-ship__logo { display: grid; place-items: center; width: 80px; min-height: 48px; }
.spu-ship__logo img { display: block; max-width: 100%; height: auto; }
.spu-ship__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 22px;
}
.spu-ship__name { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.spu-ship__desc { display: block; margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.spu-ship__price { font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* wybór punktu odbioru pod zaznaczoną metodą */
.spu-pickup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 0 18px;
  padding: 14px 0 16px;
  border-top: 1px solid var(--line);
}
.spu-pickup__point { display: flex; flex: 1 1 220px; gap: 10px; margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.spu-pickup__point .ph { flex: none; margin-top: 2px; font-size: 20px; color: var(--red); }
.spu-pickup__point strong { display: block; color: var(--ink); }
.spu-pickup .btn { height: 44px; padding: 0 20px; font-size: 15px; }
.spu-pickup__manual { display: block; flex: 1 1 100%; margin: 0; }
.woocommerce form .spu-pickup__manual span { display: block; margin-bottom: 6px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.spu-pickup__manual input.input-text {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(17, 17, 19, .14);
  border-radius: var(--r-input);
  background: #fff;
  font-size: 16px;
  color: var(--ink);
  text-transform: uppercase;
}
.spu-pickup__manual input.input-text:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(17, 17, 19, .08); }
.spu-pickup__manual input.input-text::placeholder { text-transform: none; }
.entry-content .spu-pickup__link { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; }
.spu-order-point { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.spu-ship-logo-inline { display: inline-block; width: auto; height: 28px; margin-right: 10px; vertical-align: middle; }

/* okno z mapą punktów odbioru */
html.spu-map-open { overflow: hidden; }
.spu-map { position: fixed; inset: 0; z-index: 35; display: grid; place-items: center; padding: 24px; }
.spu-map[hidden] { display: none; }
.spu-map__backdrop { position: absolute; inset: 0; background: rgba(17, 17, 19, .55); }
.spu-map__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1120px, 100%);
  height: min(780px, calc(100dvh - 48px));
  overflow: hidden;
  border-radius: var(--r-card);
  background: #fff;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .45);
  animation: spu-map-in .45s var(--ease);
}
.spu-map__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 12px 12px 24px; border-bottom: 1px solid var(--line); }
.spu-map__head h2 { margin: 0; font-size: 19px; }
.spu-map__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
  transition: background-color .25s;
}
.spu-map__close:hover { background: var(--surface); }
.spu-map__body { position: relative; flex: 1; min-height: 0; background: var(--surface); }
.spu-map__pane { position: absolute; inset: 0; }
.spu-map__pane[hidden] { display: none; }
.spu-map__error { margin: 0; padding: 32px 24px; text-align: center; }

/* wbudowana mapa paczkomatów (OpenStreetMap + dane InPost) */
.spu-osm { display: flex; flex-direction: column; background: #fff; }
.spu-osm[hidden] { display: none; }
.spu-osm__search { display: flex; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.spu-osm__input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(17, 17, 19, .14);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}
.spu-osm__input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(17, 17, 19, .08); }
.spu-osm__go, .spu-osm__locate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .25s, color .25s;
}
.spu-osm__go { padding: 0 20px; background: var(--ink); color: #fff; }
.spu-osm__go:hover { background: #000; }
.spu-osm__locate { width: 46px; background: #fff; color: var(--ink); font-size: 20px; }
.spu-osm__locate:hover { background: var(--surface); }
.spu-osm__main { display: grid; grid-template-columns: 340px minmax(0, 1fr); flex: 1; min-height: 0; }
.spu-osm__side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.spu-osm__status { margin: 0; padding: 12px 16px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.spu-osm__list { flex: 1; min-height: 0; margin: 0; padding: 0 8px 8px; overflow-y: auto; list-style: none; overscroll-behavior: contain; }
.spu-osm__item { display: flex; align-items: center; gap: 8px; padding: 4px; border-radius: 12px; transition: background-color .2s; }
.spu-osm__item:hover, .spu-osm__item.is-active { background: var(--surface); }
.spu-osm__info {
  flex: 1;
  min-width: 0;
  padding: 8px;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  color: var(--ink-2);
  cursor: pointer;
}
.spu-osm__info strong { display: block; font-size: 15px; color: var(--ink); }
.spu-osm__info span { display: block; font-size: 14px; line-height: 1.4; }
.spu-osm__info small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.spu-osm__pick {
  flex: none;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .25s, color .25s;
}
.spu-osm__pick:hover, .spu-osm__item.is-active .spu-osm__pick { background: var(--ink); color: #fff; }
.spu-osm__map { min-height: 0; background: var(--surface); }
.spu-osm .leaflet-container { font-family: var(--font); }
.spu-osm__popup { display: grid; gap: 4px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.spu-osm__popup strong { font-size: 15px; color: var(--ink); }
.spu-osm__popup small { color: var(--muted); }
.spu-osm__popup .btn { height: 40px; margin-top: 8px; padding: 0 18px; font-size: 14px; }
.spu-osm .leaflet-popup-content-wrapper { border-radius: 14px; }
/* pinezka: żółta (Paczkomat), biała z żółtą obwódką (PaczkoPunkt) */
.spu-pin span {
  display: block;
  width: 30px;
  height: 30px;
  border: 2px solid #1a1a1a;
  border-radius: 50% 50% 50% 0;
  background: #ffcd00;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
  transform: rotate(-45deg);
}
.spu-pin span::after { content: ""; position: absolute; top: 9px; left: 9px; width: 8px; height: 8px; border-radius: 50%; background: #1a1a1a; }
.spu-pin.is-pop span { border-color: #ffcd00; background: #1a1a1a; }
.spu-pin.is-pop span::after { background: #ffcd00; }
@media (max-width: 760px) {
  .spu-osm__main { grid-template-columns: 1fr; grid-template-rows: minmax(0, 55%) minmax(0, 45%); }
  .spu-osm__map { order: -1; }
  .spu-osm__side { border-top: 1px solid var(--line); border-right: 0; }
  .spu-osm__search { padding: 10px 12px; }
  .spu-osm__go span { display: none; }
  .spu-osm__go { width: 46px; padding: 0; font-size: 20px; }
}
@keyframes spu-map-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .spu-map__dialog { animation: none; } }
@media (max-width: 640px) {
  .spu-map { padding: 0; }
  .spu-map__dialog { width: 100%; height: 100dvh; border-radius: 0; }
  .spu-ship__label { grid-template-columns: auto auto minmax(0, 1fr); gap: 12px; padding: 14px; }
  .spu-ship__logo { width: 64px; }
  .spu-ship[data-carrier="inpost"] .spu-ship__logo img, .spu-ship[data-carrier="dpd_pickup"] .spu-ship__logo img { width: auto; height: 42px; }
  .spu-ship__price { grid-column: 3; }
  .spu-pickup { margin: 0 14px; }
  .spu-pickup .btn { width: 100%; }
}

/* bloki WooCommerce (koszyk i kasa jako bloki) */
.wc-block-cart, .wc-block-checkout { font-family: var(--font); }
.wc-block-components-text-input input, .wc-block-components-textarea, .wc-blocks-components-select__select {
  border-radius: var(--r-input) !important;
}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-weight: 700; }

@media (max-width: 640px) {
  .quantity { flex: 1; justify-content: space-between; }
  .product-info form.cart .single_add_to_cart_button { flex-basis: 100%; }
  .blog-row.no-media { grid-template-columns: 1fr; }
  .woocommerce table.shop_table_responsive thead { display: none; }
  .woocommerce table.shop_table_responsive tr td { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; }
  .woocommerce table.shop_table_responsive tr td::before { content: attr(data-title); font-weight: 600; color: var(--muted); }
}

/* nagłówek WordPress: menu w elemencie <nav> */
@media (max-width: 860px) {
  .site-header .nav > nav { display: none; }
}
.mobile-menu nav ul { list-style: none; margin: 0; padding: 0; }
/* miniatury zdjęć produktu (podpis opcjonalny z biblioteki mediów) */
.p-gallery .thumbs button { padding: 6px 14px 6px 6px; }
.p-gallery .thumbs button img { width: 34px; height: 34px; }

/* =========================================================
   WERSJA MOBILNA: wyśrodkowanie nagłówków i treści
   ========================================================= */
@media (max-width: 860px) {
  /* hero: hasło na środku */
  .hero-row { flex-direction: column; align-items: stretch; }
  .hero-sub { max-width: none; text-align: center; }

  /* wprowadzenie: nagłówek, tekst i przycisk na środku */
  .blurb-grid { text-align: center; }
  .blurb-body { padding-top: 0; }

  /* obserwuj nas */
  .follow { justify-items: center; text-align: center; }
  .follow p { margin-left: auto; margin-right: auto; }
  .follow-links { justify-content: center; }

  /* nagłówki podstron: sklep, blog, archiwa, strony */
  .page-head, .page-head.split > div:first-child { text-align: center; }
  .page-head p { margin-left: auto; margin-right: auto; }

  /* kontakt: nagłówek, podtytuł, tekst, e-mail, profile */
  .contact > div:first-child { text-align: center; }
  .contact .intro { margin-left: auto; margin-right: auto; }
  .contact .social-pills { justify-content: center; }
}

@media (max-width: 640px) {
  /* hero: przyciski obok siebie, równej szerokości */
  .hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
  .hero-cta .btn { width: 100%; min-width: 0; padding: 0 14px; }
  .hero-cta .btn:only-child { grid-column: 1 / -1; }
}

/* =========================================================
   BANER COOKIES (Google Consent Mode v2)
   ========================================================= */
.consent {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 200;
  width: min(440px, calc(100vw - 32px));
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.consent[hidden] { display: none; }
.consent.is-open { opacity: 1; transform: none; }
.consent-card {
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 24px;
  border-radius: var(--r-card);
  background: radial-gradient(120% 90% at 100% 0%, rgba(193, 18, 31, .22) 0%, rgba(193, 18, 31, 0) 55%), var(--dark);
  color: rgba(255, 255, 255, .74);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06);
  font-size: 15px;
  line-height: 1.55;
}
.consent-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.consent-ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(193, 18, 31, .18);
  color: #ff5a64;
  font-size: 22px;
}
.consent h2 { margin: 0; font-size: 20px; line-height: 1.2; font-weight: 650; letter-spacing: -.025em; color: #fff; outline: none; }
.consent-text { margin: 0 0 18px; }
.consent-text a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .4); }
.consent-text a:hover { text-decoration-color: #fff; }

.consent-prefs { display: none; margin: 0 0 18px; border-top: 1px solid rgba(255, 255, 255, .1); }
.consent.is-settings .consent-prefs { display: block; }
.consent-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  cursor: pointer;
}
.consent-cat strong { display: block; color: #fff; font-size: 15px; font-weight: 600; }
.consent-cat small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .6); }
.consent-always { flex: none; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .55); white-space: nowrap; }
.consent-switch { position: relative; flex: none; width: 46px; height: 28px; }
.consent-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.consent-switch i {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  transition: background-color .25s var(--ease);
  pointer-events: none;
}
.consent-switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
  transition: transform .3s var(--ease);
}
.consent-switch input:checked + i { background: var(--red); }
.consent-switch input:checked + i::after { transform: translateX(18px); }
.consent-switch input:focus-visible + i { outline: 2px solid #fff; outline-offset: 2px; }

.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent-btn { width: 100%; min-width: 0; height: 48px; padding: 0 16px; font-size: 15px; }
.consent-save { display: none; grid-column: 1 / -1; background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.consent-save:hover { background: #fff; color: var(--ink); }
.consent.is-settings .consent-save { display: inline-flex; }
.consent-more {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  margin: 14px auto 0;
  padding: 4px 2px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, .75);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, .3);
}
.consent-more:hover { color: #fff; }
.consent-more .ph { transition: transform .3s var(--ease); }
.consent.is-settings .consent-more .ph { transform: rotate(180deg); }
.consent :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (max-width: 640px) {
  .consent { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .consent-card { padding: 20px; }
  .consent-btn { font-size: 14px; padding: 0 10px; }
  .consent-text { text-align: left; }
}
@media (max-width: 380px) {
  .consent-actions { grid-template-columns: 1fr; }
}
