/*
Theme Name: BioTarget
Theme URI: https://biotarget.pl
Author: BioTarget
Description: Premium organic food e-commerce theme for WooCommerce
Version: 1.4.7
License: GNU General Public License v2 or later
Text Domain: biotarget
Tags: e-commerce, woocommerce, organic, green, shop
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Colors — Nature/Organic palette */
  --color-primary:        oklch(0.40 0.14 148);   /* deep forest green */
  --color-primary-hover:  oklch(0.34 0.14 148);
  --color-primary-light:  oklch(0.92 0.05 148);
  --color-secondary:      oklch(0.55 0.12 95);    /* warm olive */
  --color-accent:         oklch(0.65 0.18 145);   /* fresh sage */
  --color-accent-hover:   oklch(0.58 0.18 145);
  --color-success:        oklch(0.52 0.15 142);
  --color-warning:        oklch(0.72 0.18 75);
  --color-danger:         oklch(0.55 0.22 25);
  --color-surface:        oklch(0.99 0.005 95);   /* off-white warm */
  --color-surface-raised: oklch(1.00 0 0);
  --color-surface-muted:  oklch(0.96 0.008 95);
  --color-border:         oklch(0.88 0.01 95);
  --color-border-strong:  oklch(0.78 0.02 95);
  --color-text:           oklch(0.20 0.02 50);
  --color-text-muted:     oklch(0.52 0.02 95);
  --color-text-light:     oklch(0.68 0.015 95);
  --color-badge-bio:      oklch(0.40 0.14 148);
  --color-badge-new:      oklch(0.55 0.22 240);
  --color-badge-sale:     oklch(0.55 0.22 25);
  --color-badge-best:     oklch(0.62 0.18 75);

  /* Spacing (4px base grid) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Type scale */
  --text-xs:   clamp(0.70rem, 0.68rem + 0.10vw, 0.75rem);
  --text-sm:   clamp(0.83rem, 0.80rem + 0.15vw, 0.875rem);
  --text-base: clamp(0.95rem, 0.90rem + 0.25vw, 1rem);
  --text-lg:   clamp(1.05rem, 1.00rem + 0.25vw, 1.125rem);
  --text-xl:   clamp(1.15rem, 1.05rem + 0.50vw, 1.25rem);
  --text-2xl:  clamp(1.30rem, 1.10rem + 1.00vw, 1.5rem);
  --text-3xl:  clamp(1.55rem, 1.20rem + 1.75vw, 1.875rem);
  --text-4xl:  clamp(1.45rem, 1.05rem + 2.20vw, 2.25rem);  /* niższy floor: ~24px@360 (było 30), desktop 36px bez zmian */
  --text-5xl:  clamp(1.75rem, 1.25rem + 2.60vw, 3rem);     /* ~29px@360 (było 35), desktop 48px bez zmian */
  --text-6xl:  clamp(2.50rem, 1.80rem + 3.50vw, 3.75rem);

  /* Radii */
  --radius-sm:   0.25rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.875rem;
  --radius-xl:   1.25rem;
  --radius-2xl:  2rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 32px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.06);
  --shadow-xl: 0 20px 48px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.06);
  --shadow-glow: 0 0 24px oklch(0.40 0.14 148 / 0.30);

  /* Z-index */
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-overlay:  300;
  --z-modal:    400;
  --z-toast:    500;

  /* Motion */
  --duration-fast:   150ms;
  --duration-base:   250ms;
  --duration-slow:   400ms;
  --ease-out:        cubic-bezier(0, 0, 0.2, 1);
  --ease-in:         cubic-bezier(0.4, 0, 1, 1);
  --ease-spring:     cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container-max:   1280px;
  --container-pad:   clamp(1rem, 4vw, 2rem);
  --header-height:   70px;
}

/* Dark mode intentionally disabled — food/product photography requires light background.
   Implement as manual [data-theme="dark"] toggle if needed in future. */

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-surface);
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--duration-fast) var(--ease-out); }
a:hover { color: var(--color-primary-hover); }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 {
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

/* Skip link */
.skip-link {
  position: absolute; top: -100%; left: var(--space-4);
  background: var(--color-primary); color: white;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  z-index: calc(var(--z-modal) + 10);
  transition: top var(--duration-fast);
}
.skip-link:focus { top: var(--space-4); }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.flex   { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px)  { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ============================================================
   TOP BAR
   ============================================================ */
.site-topbar {
  background: var(--color-primary);
  color: rgba(255,255,255,0.90);
  font-size: var(--text-xs);
  padding-block: var(--space-2);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.topbar-info { display: flex; align-items: center; gap: var(--space-4); }
.topbar-info a { color: rgba(255,255,255,0.85); }
.topbar-info a:hover { color: white; }
.topbar-info svg { width:14px; height:14px; vertical-align: middle; margin-right: var(--space-1); }
.topbar-right { display: flex; align-items: center; gap: var(--space-4); }
.topbar-right a { color: rgba(255,255,255,0.85); }
.topbar-right a:hover { color: white; }
@media (max-width: 768px) { .topbar-info .hide-mobile { display:none; } }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--color-surface-raised);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-6);
  height: var(--header-height);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width:24px; height:24px; color:white; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong {
  font-family: 'Nunito', sans-serif;
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}
.logo-text span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Header search */
.header-search { flex: 1; max-width: 500px; margin-inline: auto; position: relative; }
.header-search form { display: flex; }
.header-search input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--color-border);
  border-right: none;
  border-radius: var(--radius-full) 0 0 var(--radius-full);
  font-size: var(--text-sm);
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color var(--duration-fast);
  outline: none;
}
.header-search input:focus { border-color: var(--color-accent); }
.header-search button {
  padding: var(--space-3) var(--space-5);
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  transition: background var(--duration-fast);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.header-search button:hover { background: var(--color-primary-hover); }
.header-search button svg { width:18px; height:18px; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; }
.header-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
  font-size: var(--text-xs);
  position: relative;
}
.header-action-btn:hover { background: var(--color-primary-light); color: var(--color-primary); }
.header-action-btn svg { width:22px; height:22px; }
.action-badge {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--color-danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav { background: var(--color-surface-raised); border-top: 1px solid var(--color-border); }
.nav-inner { display: flex; align-items: stretch; }
.nav-menu { display: flex; align-items: stretch; gap: 0; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all var(--duration-fast) var(--ease-out);
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.nav-menu > li > a svg { width:12px; height:12px; transition: transform var(--duration-fast); }
.nav-menu > li:hover > a svg { transform: rotate(180deg); }

/* Dropdown */
.nav-menu .sub-menu {
  position: absolute;
  top: 100%; left: 0;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--duration-base) var(--ease-out);
  z-index: var(--z-dropdown);
}
.nav-menu > li:hover .sub-menu,
.nav-menu > li:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-menu .sub-menu li a {
  display: block;
  padding: var(--space-3) var(--space-5);
  color: var(--color-text);
  font-size: var(--text-sm);
  border-left: 3px solid transparent;
  transition: all var(--duration-fast);
}
.nav-menu .sub-menu li a:hover { background: var(--color-primary-light); color: var(--color-primary); border-left-color: var(--color-primary); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: var(--space-2);
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-text);
  border-radius: var(--radius-full);
  transition: all var(--duration-base) var(--ease-out);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  .header-search { max-width: 320px; }
}
@media (max-width: 768px) {
  .header-inner {
    grid-template-columns: 1fr auto auto; /* logo elastyczne | akcje | hamburger */
    gap: var(--space-3);
    height: auto;
    min-height: var(--header-height);     /* pozwól rosnąć zamiast wypychać logo pod pasek */
  }
  .header-search { display: none; }
  .nav-toggle { display: flex; margin-left: 0; }
  /* Logo: pozwól kolumnie się zwęzić i łam długą nazwę zamiast rozpychać pasek (overflow na mobile) */
  .site-logo { min-width: 0; }
  .logo-text { min-width: 0; }
  .logo-text strong { font-size: var(--text-base); overflow-wrap: anywhere; }
  .logo-text span { display: none; }      /* podtytuł zbędny obok pełnej nazwy */
  /* Akcje: same ikony (+ plakietka koszyka), bez etykiet — oszczędza szerokość obok hamburgera */
  .header-action-btn { padding: var(--space-2); }
  .header-action-btn > span:not(.action-badge) { display: none; }
  .nav-inner { flex-direction: column; }
  .nav-menu {
    flex-direction: column;
    width: 100%;
    padding: var(--space-4) 0;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a { border-bottom: none; border-left: 3px solid transparent; }
  .nav-menu > li > a:hover { border-left-color: var(--color-primary); }
  .nav-menu .sub-menu { position: static; box-shadow: none; border: none; opacity: 1; visibility: visible; transform: none; display: none; background: var(--color-primary-light); }
  .nav-menu > li.open .sub-menu { display: block; }
}

/* ============================================================
   HERO / BANNER
   ============================================================ */
.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg,
    oklch(0.38 0.14 148) 0%,
    oklch(0.45 0.12 148) 50%,
    oklch(0.52 0.10 120) 100%
  );
  padding-block: var(--space-20) var(--space-24);
  color: white;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60'><circle cx='30' cy='30' r='1.5' fill='rgba(255,255,255,0.08)'/></svg>");
  background-size: 60px 60px;
}
.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.hero-text { max-width: 580px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.hero-title {
  font-size: var(--text-5xl);
  font-weight: 800;
  line-height: 1.1;
  color: white;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}
.hero-title .accent {
  background: linear-gradient(135deg, #a8ff78, #78ffd6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.hero-desc {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 50ch;
}
.hero-cta { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat strong { display: block; font-size: var(--text-3xl); font-weight: 800; color: white; line-height: 1; }
.hero-stat span { font-size: var(--text-xs); color: rgba(255,255,255,0.70); text-transform: uppercase; letter-spacing: 0.08em; }
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;            /* własny kontekst stosu dla warstw poniżej */
}
/* Ciepła poświata — odcina obraz od zielonego tła hero */
.hero-visual::before {
  content: '';
  position: absolute;
  inset: -12% -8%;
  z-index: -2;
  background: radial-gradient(56% 56% at 52% 46%,
              oklch(0.86 0.13 95 / 0.55), transparent 72%);
  filter: blur(28px);
  pointer-events: none;
}
/* Przesunięty panel akcentowy — głębia „oprawionego" zdjęcia */
.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  transform: translate(18px, 18px) rotate(1.5deg);
  box-shadow: 0 16px 36px rgba(0,0,0,0.28);
  pointer-events: none;
}
.hero-image-wrap {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  width: 100%;
  border: 5px solid rgba(255,255,255,0.94);   /* jasna passe-partout — kontrast z zielenią */
  box-shadow:
    0 28px 64px rgba(0,0,0,0.40),              /* mocna elewacja */
    0 10px 30px oklch(0.65 0.18 145 / 0.32),   /* zielony akcentowy „glow" */
    inset 0 0 0 1px rgba(0,0,0,0.05);
  animation: heroFloat 7s ease-in-out infinite;
}
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Subtelna winieta — głębia i lepszy kontrast krawędzi */
.hero-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(125% 100% at 50% 0%, transparent 58%, rgba(0,0,0,0.14));
  pointer-events: none;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-image-wrap { animation: none; }
}
.hero-floating-card {
  position: absolute;
  bottom: calc(-1 * var(--space-4));           /* poprawka: CSS nie pozwala na -var() */
  left: calc(-1 * var(--space-6));
  z-index: 2;                                  /* nad ramą i panelem akcentowym */
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-xl);
  color: var(--color-text);
  min-width: 200px;
  border-left: 4px solid var(--color-accent);  /* akcent spinający z paletą */
}
.hero-floating-card .card-label { font-size: var(--text-xs); color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--space-1); }
.hero-floating-card .card-value { font-size: var(--text-2xl); font-weight: 800; color: var(--color-primary); }

@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .hero-cta { justify-content: center; }
  /* zawijaj statystyki zamiast rozpychać hero-text (min-width 3 kolumn > viewport na mobile) */
  .hero-stats { justify-content: center; flex-wrap: wrap; gap: var(--space-6); }
}
@media (max-width: 480px) {
  .hero-stats { gap: var(--space-4) var(--space-6); }
  .hero-stat strong { font-size: var(--text-2xl); }
}

/* ============================================================
   STRONY TREŚCIOWE (kontakt) — responsywne układy
   UWAGA: inline grid-template-columns NIE reaguje na media queries,
   dlatego układy kolumnowe muszą być klasami (audyt responsywności #20).
   ============================================================ */
.kontakt-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-10);
  align-items: start;
}
.kontakt-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
@media (max-width: 768px) {
  .kontakt-layout { grid-template-columns: 1fr; gap: var(--space-8); }
}
@media (max-width: 480px) {
  .kontakt-form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  box-shadow: 0 4px 14px oklch(0.40 0.14 148 / 0.35);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px oklch(0.40 0.14 148 / 0.40);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: white; transform: translateY(-2px); }

.btn-white {
  background: white;
  color: var(--color-primary);
  border-color: white;
  box-shadow: var(--shadow-md);
}
.btn-white:hover { background: var(--color-primary-light); border-color: var(--color-primary-light); transform: translateY(-2px); }

.btn-ghost { background: rgba(255,255,255,0.12); color: white; border-color: rgba(255,255,255,0.25); }
.btn-ghost:hover { background: rgba(255,255,255,0.22); color: white; }

.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-lg); }
.btn-block { width: 100%; }
/* Mobile: przyciski lg były ~63px wysokie (za grube). ~46px = standard dotyku, kompaktowo. */
@media (max-width: 480px) {
  .btn-lg { padding: var(--space-3) var(--space-6); font-size: var(--text-base); }
}

/* Ripple */
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.20);
  border-radius: inherit;
  opacity: 0;
  transform: scale(0);
  transition: transform var(--duration-base), opacity var(--duration-base);
}
.btn:active::after { opacity: 1; transform: scale(1); transition: none; }

/* ============================================================
   SECTION LAYOUT
   ============================================================ */
.section { padding-block: var(--space-16); }
.section-sm { padding-block: var(--space-10); }
.section-lg { padding-block: var(--space-24); }
.section-header { text-align: center; margin-bottom: var(--space-10); }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}
.section-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}
.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 55ch;
  margin-inline: auto;
  line-height: 1.7;
}
.section-action { text-align: center; margin-top: var(--space-10); }

/* Mobile: skompresowane odstępy pionowe. Desktopowe 64–96px paddingu sekcji dawały
   ~128px pustych przerw między sekcjami → zbędny scroll i „dziury" na telefonie.
   Jeden zestaw override'ów obejmuje wszystkie strony (każda używa .section). */
@media (max-width: 768px) {
  .section    { padding-block: var(--space-10); }   /* 64 → 40 */
  .section-lg { padding-block: var(--space-12); }   /* 96 → 48 */
  .section-sm { padding-block: var(--space-6); }    /* 40 → 24 (np. pasek dostawy) */
  .section-header { margin-bottom: var(--space-6); }/* 40 → 24 */
  .section-action { margin-top: var(--space-6); }   /* 40 → 24 */
  .hero-section   { padding-block: var(--space-12) var(--space-12); } /* 80/96 → 48/48 */
  .blog-wrap      { padding-block: var(--space-8) var(--space-10); }  /* 48/64 → 32/40 */
  .single-post__nav { margin-bottom: var(--space-8); }                /* 48 → 32 */
}
@media (max-width: 480px) {
  .section    { padding-block: var(--space-8); }    /* 40 → 32 */
  .section-lg { padding-block: var(--space-10); }   /* 48 → 40 */
  .hero-section   { padding-block: var(--space-10) var(--space-10); } /* → 40/40 */
  .section-header { margin-bottom: var(--space-5); }
}

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.categories-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-4); }
@media (max-width: 1024px) { .categories-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px)  { .categories-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px)  { .categories-grid { grid-template-columns: repeat(2, 1fr); } }

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-4);
  background: var(--color-surface-raised);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: all var(--duration-base) var(--ease-out);
  text-align: center;
}
.category-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  color: var(--color-primary);
}
.category-icon {
  width: 56px; height: 56px;
  background: var(--color-primary-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  transition: transform var(--duration-base) var(--ease-spring);
}
.category-card:hover .category-icon { transform: scale(1.1) rotate(-5deg); }
.category-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}
.category-count {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
@media (max-width: 1024px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .products-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); } }
/* Telefon: ZOSTAJEMY przy 2 kolumnach (≈4 produkty widoczne naraz), karty kompaktowe.
   1 kolumna dawała zdjęcie na całą szerokość — produkt-gigant, nieprofesjonalnie. */
@media (max-width: 480px)  {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
  .product-info { padding: var(--space-3); gap: var(--space-1); }
  .product-actions { padding: 0 var(--space-3) var(--space-3); }
  .product-title { font-size: var(--text-sm); }
  .price-current { font-size: var(--text-base); }
  .product-pricing { padding-top: var(--space-1); }
  .product-badges { top: var(--space-2); left: var(--space-2); }
  .badge { font-size: 10px; padding: 2px 6px; }
  .btn-add-to-cart { padding: var(--space-2); font-size: var(--text-xs); gap: var(--space-1); }
  .btn-add-to-cart svg { width: 15px; height: 15px; }
}

.product-card {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
}
.product-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-surface-muted);
}
.product-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}
.product-card:hover .product-image-wrap img { transform: scale(1.06); }

.product-badges {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px var(--space-2);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.badge-bio     { background: var(--color-primary); color: white; }
.badge-new     { background: var(--color-badge-new); color: white; }
.badge-sale    { background: var(--color-badge-sale); color: white; }
.badge-best    { background: var(--color-badge-best); color: white; }
.badge-organic { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }

.product-wishlist {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 36px; height: 36px;
  background: white;
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--duration-base) var(--ease-spring);
  color: var(--color-text-muted);
}
.product-card:hover .product-wishlist { opacity: 1; transform: scale(1); }
.product-wishlist:hover { color: var(--color-danger); transform: scale(1.1) !important; }
.product-wishlist.active { color: var(--color-danger); opacity: 1; transform: scale(1); }
.product-wishlist svg { width:18px; height:18px; }

.product-info { padding: var(--space-4); flex: 1; display: flex; flex-direction: column; gap: var(--space-2); }
.product-category {
  font-size: var(--text-xs);
  color: var(--color-primary); /* ciemniejszy zielony — kontrast AA na białej karcie (accent dawał 3.02) */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.product-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-title a { color: inherit; }
.product-title a:hover { color: var(--color-primary); }
.product-weight {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.product-rating { display: flex; align-items: center; gap: var(--space-1); }
.stars { display: flex; gap: 1px; }
.stars svg { width:12px; height:12px; fill: var(--color-warning); color: var(--color-warning); }
.rating-count { font-size: var(--text-xs); color: var(--color-text-muted); }

.product-pricing {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-2);
}
.price-current {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
}
.price-original {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  text-decoration: line-through;
}
.price-unit { font-size: var(--text-xs); color: var(--color-text-muted); margin-left: auto; }

.product-actions { padding: 0 var(--space-4) var(--space-4); }
.btn-add-to-cart {
  width: 100%;
  padding: var(--space-3);
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.btn-add-to-cart svg { width:18px; height:18px; }
.btn-add-to-cart:hover { background: var(--color-primary-hover); transform: translateY(-1px); }
.btn-add-to-cart:active { transform: scale(0.98); }
.btn-add-to-cart.added { background: var(--color-success); }

/* WooCommerce product loop override */
.woocommerce ul.products { margin: 0; padding: 0; }
.woocommerce ul.products li.product { float: none; width: auto; }

/* ============================================================
   FEATURES / TRUST SIGNALS
   ============================================================ */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
@media (max-width: 1024px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: box-shadow var(--duration-base) var(--ease-out);
}
.feature-card:hover { box-shadow: var(--shadow-md); }
.feature-icon {
  width: 48px; height: 48px;
  background: var(--color-primary-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg { width:24px; height:24px; color: var(--color-primary); }
.feature-text h3 { font-size: var(--text-base); font-weight: 700; margin-bottom: var(--space-1); }
.feature-text p  { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.5; }

/* ============================================================
   PROMO BANNER
   ============================================================ */
.promo-banner {
  background: linear-gradient(135deg, oklch(0.40 0.14 148), oklch(0.52 0.12 120));
  border-radius: var(--radius-2xl);
  padding: var(--space-12);
  color: white;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-8);
  position: relative;
  overflow: hidden;
}
.promo-banner::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 240px; height: 240px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.promo-banner::after {
  content: '';
  position: absolute;
  right: 80px; bottom: -80px;
  width: 180px; height: 180px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.promo-content { position: relative; z-index: 1; }
.promo-label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.80; margin-bottom: var(--space-2); }
/* color:inherit so the heading follows .promo-banner's white instead of the global dark heading color */
.promo-title { font-size: var(--text-4xl); font-weight: 800; line-height: 1.1; margin-bottom: var(--space-4); color: inherit; }
.promo-desc { font-size: var(--text-lg); opacity: 0.85; max-width: 45ch; }
.promo-action { position: relative; z-index: 1; }
@media (max-width: 768px) { .promo-banner { grid-template-columns: 1fr; } }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-section {
  background: var(--color-surface-muted);
  border-radius: var(--radius-2xl);
  padding: var(--space-12);
  text-align: center;
}
.newsletter-form {
  display: flex;
  gap: var(--space-3);
  max-width: 480px;
  margin: var(--space-6) auto 0;
}
.newsletter-form input {
  flex: 1;
  padding: var(--space-3) var(--space-5);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-family: inherit;
  outline: none;
  transition: border-color var(--duration-fast);
  background: var(--color-surface-raised);
  color: var(--color-text);
}
.newsletter-form input:focus { border-color: var(--color-primary); }
@media (max-width: 480px) { .newsletter-form { flex-direction: column; } }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
@media (max-width: 768px) { .testimonials-grid { grid-template-columns: 1fr; } }

.testimonial-card {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}
.testimonial-stars { margin-bottom: var(--space-3); }
.testimonial-text { font-size: var(--text-base); line-height: 1.7; color: var(--color-text); margin-bottom: var(--space-4); font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: var(--space-3); }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: var(--radius-full);
  background: var(--color-primary-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--color-primary); font-size: var(--text-base);
}
.testimonial-name { font-weight: 700; font-size: var(--text-sm); }
.testimonial-role { font-size: var(--text-xs); color: var(--color-text-muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: oklch(0.23 0.04 148);
  color: oklch(0.78 0.03 148);
  margin-top: var(--space-16);
}
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-block: var(--space-16);
}
@media (max-width: 1024px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px)  { .footer-main { grid-template-columns: 1fr; } }

.footer-brand .logo-text strong { color: white; }
.footer-brand .logo-text span   { color: oklch(0.74 0.05 148); } /* kontrast AA na ciemnym tle stopki */
.footer-brand p { font-size: var(--text-sm); line-height: 1.7; margin-top: var(--space-4); max-width: 35ch; }
.footer-socials { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.footer-socials a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: inherit; transition: all var(--duration-fast);
}
.footer-socials a:hover { background: var(--color-primary); color: white; }
.footer-socials svg { width:18px; height:18px; }

.footer-col h3 { font-size: var(--text-sm); font-weight: 700; color: white; margin-bottom: var(--space-5); text-transform: uppercase; letter-spacing: 0.08em; }
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col ul li a { font-size: var(--text-sm); color: oklch(0.70 0.02 148); transition: color var(--duration-fast); }
.footer-col ul li a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-block: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--text-xs);
  flex-wrap: wrap;
}
.footer-payments { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.payment-badge {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-2);
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.80);
}

/* ============================================================
   WOOCOMMERCE — SINGLE PRODUCT
   ============================================================ */
.single-product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}
@media (max-width: 768px) { .single-product-layout { grid-template-columns: 1fr; } }

.product-gallery { position: sticky; top: calc(var(--header-height) + var(--space-4)); }
.gallery-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--color-surface-muted);
  margin-bottom: var(--space-3);
}
.gallery-main img { width:100%; height:100%; object-fit:cover; }
.gallery-thumbs { display: flex; gap: var(--space-2); }
.gallery-thumb {
  width: 80px; height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--color-border);
  transition: border-color var(--duration-fast);
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--color-primary); }
.gallery-thumb img { width:100%; height:100%; object-fit:cover; }

.product-details { display: flex; flex-direction: column; gap: var(--space-5); }
.product-breadcrumb { font-size: var(--text-sm); color: var(--color-text-muted); }
.product-breadcrumb a { color: var(--color-text-muted); }
.product-breadcrumb a:hover { color: var(--color-primary); }
.product-breadcrumb span { margin-inline: var(--space-2); }
.single-product-title { font-size: var(--text-4xl); font-weight: 800; line-height: 1.15; }
.single-product-meta { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.single-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}
.single-price .price-current { font-size: var(--text-4xl); }

.product-short-desc { font-size: var(--text-base); line-height: 1.7; color: var(--color-text-muted); }

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: fit-content;
}
.qty-btn {
  width: 44px; height: 44px;
  border: none;
  background: var(--color-surface-muted);
  font-size: var(--text-lg);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast);
  color: var(--color-text);
}
.qty-btn:hover { background: var(--color-primary-light); color: var(--color-primary); }
.qty-input {
  width: 60px;
  text-align: center;
  border: none;
  border-inline: 2px solid var(--color-border);
  font-size: var(--text-base);
  font-weight: 600;
  padding: var(--space-2);
  font-family: inherit;
  background: var(--color-surface-raised);
  color: var(--color-text);
  outline: none;
}

.add-to-cart-group { display: flex; gap: var(--space-3); align-items: center; }
.btn-add-single {
  flex: 1;
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}
.btn-wishlist-single {
  width: 52px; height: 52px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: all var(--duration-fast);
  flex-shrink: 0;
}
.btn-wishlist-single:hover { border-color: var(--color-danger); color: var(--color-danger); }
.btn-wishlist-single svg { width:22px; height:22px; }

.product-attrs { display: flex; flex-direction: column; gap: var(--space-2); }
.product-attr { display: flex; gap: var(--space-3); font-size: var(--text-sm); }
.attr-label { color: var(--color-text-muted); min-width: 100px; font-weight: 500; }
.attr-value { color: var(--color-text); font-weight: 600; }

.product-tabs { border: 1px solid var(--color-border); border-radius: var(--radius-xl); overflow: hidden; }
.tab-nav { display: flex; border-bottom: 1px solid var(--color-border); }
.tab-btn {
  flex: 1;
  padding: var(--space-4);
  background: var(--color-surface-muted);
  border: none;
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  color: var(--color-text-muted);
  border-bottom: 3px solid transparent;
  transition: all var(--duration-fast);
}
.tab-btn.active { background: var(--color-surface-raised); color: var(--color-primary); border-bottom-color: var(--color-primary); }
.tab-panel { padding: var(--space-6); display: none; }
.tab-panel.active { display: block; }
.tab-panel p { font-size: var(--text-base); line-height: 1.8; color: var(--color-text); margin-bottom: var(--space-4); }
.tab-panel ul { list-style: disc; padding-left: var(--space-6); }
.tab-panel ul li { font-size: var(--text-sm); line-height: 1.7; color: var(--color-text-muted); }

/* ============================================================
   CART
   ============================================================ */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: var(--space-8); align-items: start; }
.cart-layout > div { min-width: 0; } /* pozwól kolumnom zwęzić się poniżej min-content tabeli */
@media (max-width: 1024px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}
.cart-table td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}
.cart-product { display: flex; align-items: center; gap: var(--space-4); }
.cart-product-img { width: 72px; height: 72px; border-radius: var(--radius-md); object-fit: cover; border: 1px solid var(--color-border); }
.cart-product-name { font-weight: 600; font-size: var(--text-sm); }
.cart-product-meta { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 2px; }
.cart-remove { width: 28px; height: 28px; background: none; border: 1px solid var(--color-border); border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--color-text-muted); transition: all var(--duration-fast); }
.cart-remove:hover { background: var(--color-danger); border-color: var(--color-danger); color: white; }
.cart-remove svg { width:14px; height:14px; }

.cart-summary {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: sticky;
  top: calc(var(--header-height) + var(--space-4));
}
.cart-summary h3 { font-size: var(--text-xl); font-weight: 700; margin-bottom: var(--space-5); padding-bottom: var(--space-4); border-bottom: 1px solid var(--color-border); }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding-block: var(--space-3); font-size: var(--text-sm); }
.summary-row.total { font-size: var(--text-lg); font-weight: 800; color: var(--color-primary); border-top: 2px solid var(--color-border); margin-top: var(--space-2); padding-top: var(--space-4); }
.coupon-form { display: flex; gap: var(--space-2); margin-block: var(--space-4); }
.coupon-form input { flex:1; padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); font-size: var(--text-sm); font-family: inherit; outline: none; }
.coupon-form input:focus { border-color: var(--color-primary); }

/* Koszyk na telefonie: 5-kolumnowa tabela się nie mieści — stackuj wiersze w karty.
   Etykiety kolumn biorą się z atrybutów data-label na <td> (audyt responsywności #20). */
@media (max-width: 600px) {
  .cart-table thead { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: auto; }
  .cart-table tr {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-4);
  }
  .cart-table td {
    border: none;
    padding: var(--space-2) 0;
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  }
  .cart-table td::before {
    content: attr(data-label);
    font-weight: 700; font-size: var(--text-xs); text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--color-text-muted);
  }
  .cart-table td.cart-col-product { display: block; padding-top: 0; }
  .cart-table td.cart-col-product::before { display: none; }
  .cart-table td.cart-col-remove { justify-content: flex-end; }
  .cart-table td.cart-col-remove::before { display: none; }
  .cart-table .quantity-selector { justify-content: flex-end !important; }
  .btn { white-space: normal; } /* długie etykiety przycisków zawijają zamiast wystawać poza ekran */
}

/* ============================================================
   CHECKOUT
   ============================================================ */
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: var(--space-8); align-items: start; }
.checkout-layout > div { min-width: 0; } /* inputy mają intrinsic min-width — bez tego rozpychają grid na mobile */
@media (max-width: 1024px) { .checkout-layout { grid-template-columns: 1fr; } }

.checkout-section {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
}
.checkout-section h3 { font-size: var(--text-xl); font-weight: 700; margin-bottom: var(--space-5); display: flex; align-items: center; gap: var(--space-3); }
.checkout-step-num { width: 28px; height: 28px; background: var(--color-primary); color: white; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; font-size: var(--text-sm); font-weight: 700; flex-shrink: 0; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 480px) { .form-grid { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: var(--space-1); }
.form-label { font-size: var(--text-sm); font-weight: 600; color: var(--color-text); }
.form-required { color: var(--color-danger); }
.form-input, .form-select {
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-family: inherit;
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color var(--duration-fast);
  outline: none;
  width: 100%;
}
.form-input:focus, .form-select:focus { border-color: var(--color-primary); }
.form-input.error { border-color: var(--color-danger); }
.form-hint { font-size: var(--text-xs); color: var(--color-text-muted); }
.form-error { font-size: var(--text-xs); color: var(--color-danger); display: none; }
.form-group.has-error .form-error { display: block; }
.form-group.has-error .form-input { border-color: var(--color-danger); }

/* Payment section */
.payment-methods { display: flex; flex-direction: column; gap: var(--space-3); }
.payment-option {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  cursor: pointer;
  transition: all var(--duration-fast);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.payment-option:hover, .payment-option.selected { border-color: var(--color-primary); background: var(--color-primary-light); }
.payment-option input[type=radio] { accent-color: var(--color-primary); }
.payment-option-label { flex: 1; }
.payment-option-name { font-weight: 600; font-size: var(--text-sm); }
.payment-option-desc { font-size: var(--text-xs); color: var(--color-text-muted); }
.payment-icons { display: flex; gap: var(--space-1); margin-left: auto; }
.payment-icon-badge {
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 2px var(--space-2);
  font-size: 10px;
  font-weight: 700;
  color: var(--color-text-muted);
}
.payment-placeholder-notice {
  background: oklch(0.96 0.04 75);
  border: 1px solid oklch(0.85 0.10 75);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-size: var(--text-sm);
  color: oklch(0.45 0.12 75);
  margin-top: var(--space-3);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}
.payment-placeholder-notice svg { width:18px; height:18px; flex-shrink:0; margin-top:1px; }

/* ============================================================
   MY ACCOUNT
   ============================================================ */
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: var(--space-8); align-items: start; }
@media (max-width: 768px) { .account-layout { grid-template-columns: 1fr; } }

.account-sidebar {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-height) + var(--space-4));
}
.account-user {
  padding: var(--space-6);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: white;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.account-avatar {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.20);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xl); font-weight: 800;
}
.account-nav { padding: var(--space-4) 0; }
.account-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all var(--duration-fast);
}
.account-nav a:hover, .account-nav a.active {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-left-color: var(--color-primary);
}
.account-nav svg { width:18px; height:18px; }

.account-content {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}
.account-content h2 { font-size: var(--text-2xl); font-weight: 800; margin-bottom: var(--space-6); }

/* ============================================================
   AUTH PAGES (Login / Register)
   ============================================================ */
.auth-section {
  min-height: calc(100vh - var(--header-height) - 120px);
  display: flex;
  align-items: center;
  padding-block: var(--space-12);
}
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: start; }
.auth-section > .container, .auth-grid > * { min-width: 0; } /* nie rozpychaj kontenera na wąskim ekranie */
@media (max-width: 768px) { .auth-grid { grid-template-columns: 1fr; } }
.auth-options { flex-wrap: wrap; gap: var(--space-2); }

.auth-card {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
}
.auth-header { margin-bottom: var(--space-6); }
.auth-header h2 { font-size: var(--text-3xl); font-weight: 800; }
.auth-header p { color: var(--color-text-muted); margin-top: var(--space-2); }
.auth-divider { display: flex; align-items: center; gap: var(--space-4); margin-block: var(--space-5); color: var(--color-text-muted); font-size: var(--text-sm); }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--color-border); }
.auth-form { display: flex; flex-direction: column; gap: var(--space-4); }
.auth-options { display: flex; justify-content: space-between; align-items: center; font-size: var(--text-sm); }
.auth-social { display: flex; gap: var(--space-3); }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs-wrap {
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.breadcrumbs-wrap a { color: var(--color-text-muted); }
.breadcrumbs-wrap a:hover { color: var(--color-primary); }
.breadcrumbs-wrap span { margin-inline: var(--space-2); }

/* ============================================================
   SHOP ARCHIVE
   ============================================================ */
.shop-layout { display: grid; grid-template-columns: 280px 1fr; gap: var(--space-8); align-items: start; }
.shop-layout > * { min-width: 0; } /* kolumny mogą zwęzić się poniżej min-content (overflow <360px) */
.shop-filter-toggle { display: none; }
@media (max-width: 1024px) {
  .shop-layout { grid-template-columns: 1fr; }
  /* Filtry zwinięte za przyciskiem — produkty od razu widoczne, nie zepchnięte panelem filtrów */
  .shop-sidebar { position: static; display: none; }
  .shop-sidebar.open { display: block; }
  .shop-filter-toggle {
    display: flex; align-items: center; gap: var(--space-3);
    width: 100%; padding: var(--space-4); margin-bottom: var(--space-2);
    background: var(--color-surface-raised); border: 1px solid var(--color-border);
    border-radius: var(--radius-lg); font-family: inherit; font-size: var(--text-base);
    font-weight: 700; color: var(--color-text); cursor: pointer;
  }
  .shop-filter-toggle .chev { margin-left: auto; transition: transform var(--duration-base) var(--ease-out); }
  .shop-filter-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
}

.shop-sidebar { position: sticky; top: calc(var(--header-height) + var(--space-4)); }
.filter-card {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}
.filter-title { font-size: var(--text-base); font-weight: 700; margin-bottom: var(--space-4); display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.filter-title svg { width:16px; height:16px; color: var(--color-text-muted); transition: transform var(--duration-fast); }
.filter-list { display: flex; flex-direction: column; gap: var(--space-2); }
.filter-check { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-sm); cursor: pointer; }
.filter-check input { accent-color: var(--color-primary); width:16px; height:16px; }
.filter-count { margin-left: auto; font-size: var(--text-xs); background: var(--color-surface-muted); padding: 1px var(--space-2); border-radius: var(--radius-full); color: var(--color-text-muted); }

.price-range-slider { margin-top: var(--space-4); }
.price-range-slider input[type=range] { width:100%; accent-color: var(--color-primary); }
.price-range-values { display: flex; justify-content: space-between; font-size: var(--text-sm); font-weight: 600; color: var(--color-primary); margin-top: var(--space-2); }

.shop-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); flex-wrap: wrap; }
.shop-results { font-size: var(--text-sm); color: var(--color-text-muted); }
.shop-sort select { padding: var(--space-2) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); font-size: var(--text-sm); font-family: inherit; background: var(--color-surface-raised); color: var(--color-text); outline: none; cursor: pointer; }

/* ============================================================
   ORDER SUCCESS
   ============================================================ */
.order-success {
  text-align: center;
  padding: var(--space-16);
  max-width: 600px;
  margin-inline: auto;
}
.success-icon {
  width: 80px; height: 80px;
  background: oklch(0.90 0.08 148);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}
.success-icon svg { width:40px; height:40px; color: var(--color-primary); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1; transform:none; } }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 44px; height: 44px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--duration-base) var(--ease-out);
  z-index: var(--z-toast);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--color-primary-hover); transform: translateY(-3px); }
.back-to-top svg { width:20px; height:20px; }

/* ============================================================
   PROGRESS BAR
   ============================================================ */
#page-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--color-accent);
  transition: width 0.2s;
  z-index: 9999;
  box-shadow: 0 0 8px oklch(0.65 0.18 145 / 0.60);
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
}
.toast {
  background: var(--color-text);
  color: white;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  box-shadow: var(--shadow-xl);
  animation: toast-in 0.35s var(--ease-spring) both;
  pointer-events: all;
}
.toast.success { background: var(--color-success); }
.toast.error   { background: var(--color-danger); }
.toast svg { width:16px; height:16px; }
@keyframes toast-in { from { opacity:0; transform: scale(0.85) translateY(20px); } to { opacity:1; transform: scale(1) translateY(0); } }

/* ============================================================
   AUTH FORM EXTRAS
   ============================================================ */
.auth-title { font-size: var(--text-2xl); font-weight: 800; display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-6); }
.auth-title svg { width: 22px; height: 22px; color: var(--color-primary); }
.auth-card-register { border-top: 3px solid var(--color-accent); }
.form-remember { display: flex; justify-content: space-between; align-items: center; font-size: var(--text-sm); }
.form-check { display: flex; align-items: center; gap: var(--space-2); cursor: pointer; }
.form-check input[type=checkbox] { accent-color: var(--color-primary); }
.lost-password-link { color: var(--color-text-muted); font-size: var(--text-sm); }
.lost-password-link:hover { color: var(--color-primary); }
.form-info { display: flex; align-items: flex-start; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); padding: var(--space-3); background: var(--color-surface-muted); border-radius: var(--radius-md); }
.form-info svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--color-success); margin-top: 2px; }
.btn-block { width: 100%; justify-content: center; }
.btn-outline { background: transparent; border: 2px solid var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: white; }

/* ============================================================
   CART EMPTY STATE
   ============================================================ */
.cart-empty-state { text-align: center; padding: var(--space-16) var(--space-8); }
.cart-empty-state h2 { font-size: var(--text-2xl); font-weight: 800; margin-bottom: var(--space-3); }
.wc-empty-cart-message { display: none; } /* hide WC default, use our cart-empty.php */

/* ============================================================
   SVG INLINE SIZING
   Keep heading icons proportional; btn/explicit selectors still win via specificity
   ============================================================ */
h1 svg, h2 svg, h3 svg, h4 svg { width: 0.75em; height: 0.75em; vertical-align: -0.1em; flex-shrink: 0; }
/* Prevent auth-title from inheriting the above (it has its own explicit rule) */
.auth-title svg { width: 22px !important; height: 22px !important; }

/* ============================================================
   FEATURE ICON — correct scale
   ============================================================ */
.feature-icon { width: 56px; height: 56px; }
.feature-icon svg { width: 26px !important; height: 26px !important; }

/* ============================================================
   CART LOADING STATE
   ============================================================ */
@keyframes spin { to { transform: rotate(360deg); } }

/* Pending: debounce window after a qty change — block only the actions that
   would act on a stale cart (checkout CTA + manual update), keep +/- usable. */
.cart-layout.cart-pending .cart-summary .btn-lg,
.cart-layout.cart-pending [name="update_cart"] {
    opacity: 0.6;
    pointer-events: none;
}

/* In-flight: AJAX request running — lock the whole layout and show a spinner. */
.cart-layout.is-updating { pointer-events: none; }
.cart-layout.is-updating .cart-table,
.cart-layout.is-updating .cart-summary { opacity: 0.55; transition: opacity 0.15s; }
.cart-layout.is-updating [name="update_cart"] { position: relative; }
.cart-layout.is-updating [name="update_cart"]::after {
    content: '';
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: var(--space-2);
}

/* ============================================================
   CHECKOUT — has-error state
   ============================================================ */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: var(--color-danger) !important;
    box-shadow: 0 0 0 3px oklch(0.55 0.22 25 / 0.15) !important;
}
.form-group.has-error::after {
    content: 'To pole jest wymagane';
    display: block;
    font-size: var(--text-xs);
    color: var(--color-danger);
    margin-top: var(--space-1);
}
.form-group.has-error[data-error]::after { content: attr(data-error); }

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  nav, footer, aside, .no-print, .back-to-top, #page-progress, .toast-container { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  a[href]::after { content: ' (' attr(href) ')'; }
}

/* ============================================================
   BLOG / NEWSFEED
   ============================================================ */
.container--narrow { max-width: 760px; }
.blog-wrap { padding-block: var(--space-12) var(--space-16); }
.blog-header { text-align: center; max-width: 720px; margin: 0 auto var(--space-12); }
.blog-title { font-size: var(--text-5xl); font-weight: 800; line-height: 1.1; text-wrap: balance; margin-top: var(--space-3); }
.blog-title span { color: var(--color-primary); }
.blog-subtitle { color: var(--color-text-muted); font-size: var(--text-lg); margin-top: var(--space-4); text-wrap: pretty; }

.newsfeed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); /* min() chroni przed overflow <320px */
  gap: var(--space-8);
}

.post-card {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.post-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.post-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-slow) var(--ease-out); }
.post-card:hover .post-card__img { transform: scale(1.05); }
.post-card__img--ph { display: grid; place-items: center; background: linear-gradient(135deg, var(--color-primary-light), var(--color-surface-muted)); }
.post-card__img--ph svg { width: 48px; height: 48px; color: var(--color-primary); opacity: 0.5; }
.post-card__cat {
  position: absolute; top: var(--space-3); left: var(--space-3);
  background: rgba(255,255,255,0.92); color: var(--color-primary);
  font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: var(--space-1) var(--space-3); border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

.post-card__body { padding: var(--space-5) var(--space-6) var(--space-6); display: flex; flex-direction: column; flex: 1; }
.post-card__meta { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); }
.post-card__title { font-size: var(--text-xl); line-height: 1.25; margin: var(--space-2) 0 var(--space-3); }
.post-card__title a { color: var(--color-text); transition: color var(--duration-fast); }
.post-card__title a:hover { color: var(--color-primary); }
.post-card__excerpt { color: var(--color-text-muted); font-size: var(--text-base); line-height: 1.6; margin-bottom: var(--space-4); }
.post-card__more {
  margin-top: auto; display: inline-flex; align-items: center; gap: var(--space-2);
  color: var(--color-primary); font-weight: 600; font-size: var(--text-sm);
}
.post-card__more svg { transition: transform var(--duration-fast) var(--ease-out); }
.post-card:hover .post-card__more svg { transform: translateX(4px); }

/* Featured first post — large editorial card */
.newsfeed > .post-card:first-child { grid-column: 1 / -1; }
@media (min-width: 880px) {
  .newsfeed > .post-card:first-child { display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch; }
  .newsfeed > .post-card:first-child .post-card__media { aspect-ratio: auto; min-height: 340px; }
  .newsfeed > .post-card:first-child .post-card__body { justify-content: center; padding: var(--space-8); }
  .newsfeed > .post-card:first-child .post-card__title { font-size: var(--text-3xl); }
  .newsfeed > .post-card:first-child .post-card__excerpt { font-size: var(--text-lg); }
}

/* Pagination (the_posts_pagination) */
.blog-wrap .pagination { margin-top: var(--space-12); }
.blog-wrap .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--space-2); }
.blog-wrap .page-numbers {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 var(--space-3);
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  color: var(--color-text); font-weight: 600; transition: all var(--duration-fast);
}
.blog-wrap .page-numbers:hover { border-color: var(--color-primary); color: var(--color-primary); }
.blog-wrap .page-numbers.current { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.blog-wrap .page-numbers svg { width: 16px; height: 16px; }
.blog-wrap .page-numbers.prev svg { transform: rotate(180deg); }

.blog-empty { text-align: center; padding: var(--space-16) var(--space-8); max-width: 480px; margin-inline: auto; }
.blog-empty__icon { width: 72px; height: 72px; margin: 0 auto var(--space-6); display: grid; place-items: center; border-radius: 50%; background: var(--color-primary-light); }
.blog-empty__icon svg { width: 32px; height: 32px; color: var(--color-primary); }
.blog-empty h2 { font-size: var(--text-2xl); margin-bottom: var(--space-3); }
.blog-empty p { color: var(--color-text-muted); margin-bottom: var(--space-6); }

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post__header { padding-block: var(--space-12) var(--space-2); text-align: center; }
.single-post__crumbs { display: flex; justify-content: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-5); }
.single-post__crumbs a { color: var(--color-text-muted); }
.single-post__crumbs a:hover { color: var(--color-primary); }
.single-post__meta { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: var(--space-3); color: var(--color-text-muted); font-size: var(--text-sm); margin-bottom: var(--space-4); }
.single-post__cat { background: var(--color-primary-light); color: var(--color-primary); font-weight: 700; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.04em; padding: var(--space-1) var(--space-3); border-radius: var(--radius-full); }
.single-post__title { font-size: var(--text-5xl); font-weight: 800; line-height: 1.1; text-wrap: balance; }
.single-post__hero { margin-block: var(--space-8); }
.single-post__hero img { width: 100%; max-height: 480px; object-fit: cover; border-radius: var(--radius-xl); }

.single-post__content { font-size: var(--text-lg); line-height: 1.8; color: var(--color-text); }

/* Rich text typography (single post + info pages) */
.entry-content > * + * { margin-top: var(--space-4); }
.entry-content h2 { font-size: var(--text-2xl); margin-top: var(--space-8); }
.entry-content h3 { font-size: var(--text-xl); margin-top: var(--space-6); }
.entry-content ul, .entry-content ol { padding-left: var(--space-6); list-style: revert; }
.entry-content li { margin-bottom: var(--space-2); }
.entry-content a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.entry-content img { border-radius: var(--radius-lg); }
.entry-content blockquote { border-left: 4px solid var(--color-primary); padding: var(--space-2) 0 var(--space-2) var(--space-5); font-style: italic; color: var(--color-text-muted); }
.entry-content figure { margin-block: var(--space-6); }
.entry-content figcaption { font-size: var(--text-sm); color: var(--color-text-muted); text-align: center; margin-top: var(--space-2); }

.single-post__footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-4); margin-block: var(--space-10) var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--color-border); }
.single-post__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.single-post__tags a { font-size: var(--text-sm); color: var(--color-text-muted); background: var(--color-surface-muted); padding: var(--space-1) var(--space-3); border-radius: var(--radius-full); }
.single-post__tags a:hover { color: var(--color-primary); }

.single-post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-bottom: var(--space-12); }
.single-post__nav-link { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-4) var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius-lg); transition: border-color var(--duration-fast), transform var(--duration-fast); }
.single-post__nav-link:hover { border-color: var(--color-primary); transform: translateY(-2px); }
.single-post__nav-link span { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); }
.single-post__nav-link strong { color: var(--color-text); font-size: var(--text-base); }
.single-post__nav-link--next { text-align: right; grid-column: 2; }
.single-post__nav-link--prev:only-child { grid-column: 1; }
@media (max-width: 600px) { .single-post__nav { grid-template-columns: 1fr; } .single-post__nav-link--next, .single-post__nav-link--prev { grid-column: 1; text-align: left; } }

/* Comments (single post) */
.single-post__comments { margin-block: var(--space-12); }
.single-post__comments .comment-reply-title { font-size: var(--text-2xl); font-weight: 800; margin-bottom: var(--space-4); }
.single-post__comments .comment-notes, .single-post__comments .logged-in-as { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-5); }
.single-post__comments .comment-form > p { margin-bottom: var(--space-4); }
.single-post__comments .comment-form label { display: block; font-weight: 600; font-size: var(--text-sm); margin-bottom: var(--space-1); }
.single-post__comments input[type=text],
.single-post__comments input[type=email],
.single-post__comments input[type=url],
.single-post__comments textarea {
  width: 100%; padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  font-family: inherit; font-size: var(--text-base); background: var(--color-surface-raised);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.single-post__comments textarea { min-height: 140px; resize: vertical; }
.single-post__comments input:focus, .single-post__comments textarea:focus {
  outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px oklch(0.40 0.14 148 / 0.12);
}
.single-post__comments .comment-form-cookies-consent { display: flex; align-items: center; gap: var(--space-2); }
.single-post__comments .comment-form-cookies-consent input { width: auto; }
.single-post__comments .form-submit .submit {
  background: var(--color-primary); color: #fff; border: none;
  padding: var(--space-3) var(--space-6); border-radius: var(--radius-md);
  font-weight: 700; font-family: inherit; cursor: pointer; transition: background var(--duration-fast);
}
.single-post__comments .form-submit .submit:hover { background: var(--color-primary-hover); }
.single-post__comments .comment-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-5); margin-bottom: var(--space-8); }
.single-post__comments .comment-list .comment-body { padding: var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface-raised); }
