/* ============================================================
   assets/css/renifer.css
   Sklep Renifer • Globalny styl frontendu

   Wersja: 1.5.4 | 2026-07-25 23:30
   Zmiana: 1.5.4 — podgląd czcionki jeszcze większy (+20%), kafelek
                    odpowiednio wyższy
           1.5.3 — podgląd czcionki w dwóch liniach, większy tekst,
                    bez etykiety nazwy pod spodem (prosty wybór czcionki)
           1.5.2 — kafelki wyboru czcionki: większe, tekst podglądu
                    mniejszy (mieści "Przykładowy tekst" zamiast "Aa")
           1.5.1 — .opcja-czcionka-preview-img: podgląd obrazkowy dla
                    czcionek dodanych bez pliku fontu
           1.5.0 — style sekcji budowanego opisu produktu: tekst, obraz,
                    obraz+tekst (dwie kolumny), galeria (zob. produkt.php)
           1.4.1 — dostawa-info: pigułki dostępnych metod dostawy
                    na karcie produktu (produkt.php)
           1.4.0 — koszyk, checkout, dziekujemy: koszyk-layout,
                    koszyk-pozycja, podsumowanie-sticky, segmented-toggle,
                    metoda-radio, dziekujemy-hero
           1.3.0 — komponenty karty produktu
           1.2.0 — komponenty listy produktów
           1.1.1 — fix: usunięto globalną regułę czerwonych linków
           1.1.0 — komponenty strony głównej
           1.0.0 — paleta, header, footer, base
           1.0.0 — paleta z 404, typografia, header, footer, przyciski
   Paleta: jak w 404 (biało-czerwono-brązowa, w stylu biedronka.market)
   ============================================================ */

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── ZMIENNE ───────────────────────────────────────────────── */
:root {
  --primary:       #DC143C;
  --primary-dark:  #A00E2E;
  --primary-light: #FDE7EC;
  --brown:         #5C2E1E;
  --brown-light:   #7B3F2A;
  --cream:         #FDFAF7;
  --white:         #FFFFFF;
  --bg:            #FAF7F3;
  --text:          #2c1a0e;
  --text-light:    #8a6f5c;
  --text-muted:    #b8a99c;
  --border:        #E8E0D6;
  --border-light:  #F1EAE0;
  --success:       #1a7d2e;
  --shadow-sm:     0 1px 2px rgba(92,46,30,0.05);
  --shadow:        0 4px 12px rgba(92,46,30,0.08);
  --shadow-lg:     0 12px 32px rgba(92,46,30,0.12);
  --radius:        8px;
  --radius-lg:     12px;
  --header-h:      68px;
}

/* ── BASE ──────────────────────────────────────────────────── */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1rem; }

/* Linki: dziedziczą kolor domyślnie, każda sekcja nadaje własny.
   Do inline'owych linków w treści używaj klasy .link */
a { transition: color 0.15s; }
.link {
  color: var(--primary);
}
.link:hover { color: var(--primary-dark); }

/* ── LAYOUT ────────────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.site-main {
  flex: 1;
  min-height: calc(100vh - var(--header-h));
}

/* ── PRZYCISKI ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.15s;
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220,20,60,0.25);
}
.btn-outline {
  background: transparent;
  color: var(--brown);
  border-color: rgba(92,46,30,0.25);
}
.btn-outline:hover {
  border-color: var(--brown);
  background: rgba(92,46,30,0.05);
  color: var(--brown);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: transparent;
}
.btn-ghost:hover {
  background: rgba(92,46,30,0.05);
  color: var(--text);
}
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* ── HEADER ────────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

/* Top bar (informacyjny pasek nad główną nawigacją) */
.top-bar {
  background: var(--brown);
  color: var(--cream);
  font-size: 0.8rem;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.top-bar-left {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.top-bar a {
  color: var(--cream);
  opacity: 0.85;
  transition: opacity 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.top-bar a:hover { opacity: 1; color: var(--cream); }
.top-bar a svg { width: 14px; height: 14px; opacity: 0.7; }

/* Main bar (główna nawigacja z logo i akcjami) */
.main-bar {
  height: var(--header-h);
}
.main-bar .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--brown);
  flex-shrink: 0;
}
.logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brown);
}
.logo-icon svg { width: 100%; height: 100%; }
.logo-text {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--brown);
}

/* Menu */
.main-nav {
  flex: 1;
}
.main-nav ul {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.main-nav a {
  padding: 0.6rem 1rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: all 0.15s;
  display: block;
}
.main-nav a:hover {
  color: var(--primary);
  background: var(--primary-light);
}
.main-nav a.active {
  color: var(--primary);
  font-weight: 600;
}

/* Akcje w headerze (szukaj, koszyk, mobilne menu) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text);
  transition: all 0.15s;
  position: relative;
}
.icon-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.icon-btn svg { width: 20px; height: 20px; }

.cart-btn { position: relative; }
.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--primary);
  color: var(--white);
  border-radius: 9px;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Mobile toggle - domyślnie ukryty */
.mobile-menu-toggle { display: none; }

/* ── MENU MOBILE ───────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: var(--white);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.3s;
  box-shadow: -12px 0 32px rgba(92,46,30,0.15);
  display: flex;
  flex-direction: column;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(92,46,30,0.4);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-menu-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-menu-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-menu ul {
  flex: 1;
  padding: 1rem 0;
  overflow-y: auto;
}
.mobile-menu li a {
  display: block;
  padding: 0.85rem 1.25rem;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid var(--border-light);
}
.mobile-menu li a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* ── FOOTER ────────────────────────────────────────────────── */
.site-footer {
  background: var(--brown);
  color: var(--cream);
  padding: 3rem 0 0;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(253,250,247,0.15);
}
.footer-col p,
.footer-col a,
.footer-col li {
  color: var(--cream);
  opacity: 0.85;
  font-size: 0.9rem;
  line-height: 1.7;
}
.footer-col a {
  transition: opacity 0.15s;
  display: inline-block;
  padding: 0.15rem 0;
}
.footer-col a:hover { opacity: 1; color: var(--white); }
.footer-col li { padding: 0.15rem 0; }

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-brand .logo-icon,
.footer-brand .logo-text { color: var(--white); }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
}
.footer-contact-item svg { width: 16px; height: 16px; opacity: 0.7; flex-shrink: 0; }

.footer-newsletter form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.footer-newsletter input {
  flex: 1;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  border: 1px solid rgba(253,250,247,0.2);
  background: rgba(0,0,0,0.15);
  color: var(--white);
  font-size: 0.9rem;
}
.footer-newsletter input::placeholder { color: rgba(253,250,247,0.5); }
.footer-newsletter input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0,0,0,0.25);
}
.footer-newsletter button {
  padding: 0.65rem 1rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.15s;
}
.footer-newsletter button:hover { background: var(--primary-dark); }
.footer-newsletter small {
  display: block;
  color: rgba(253,250,247,0.6);
  font-size: 0.72rem;
  margin-top: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(253,250,247,0.15);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(253,250,247,0.6);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-social {
  display: flex;
  gap: 0.5rem;
}
.footer-social a {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid rgba(253,250,247,0.2);
  color: rgba(253,250,247,0.8);
  transition: all 0.15s;
}
.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.footer-social svg { width: 16px; height: 16px; }

/* ── FLASH ─────────────────────────────────────────────────── */
.flash {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.flash-success { background: #d4ecd9; color: var(--success); border-left: 4px solid var(--success); }
.flash-error   { background: #fce7e7; color: #c44; border-left: 4px solid #c44; }
.flash-info    { background: var(--primary-light); color: var(--primary); border-left: 4px solid var(--primary); }

/* ============================================================
   KOMPONENTY STRONY GŁÓWNEJ
   ============================================================ */

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  padding: 3rem 0 4rem;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(220,20,60,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content {
  max-width: 560px;
}
.hero-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--brown);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--primary); }
.hero-lead {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.hero-visual {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #F5EDE1 0%, #EBDBC5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-visual-placeholder {
  color: var(--brown);
  opacity: 0.6;
  padding: 3rem;
}
.hero-visual-placeholder svg { width: 100%; height: 100%; max-height: 200px; }

/* ── USPs ──────────────────────────────────────────────────── */
.usps {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-light);
}
.usps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.usp {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.usp-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: var(--primary-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.usp-icon svg { width: 22px; height: 22px; }
.usp-title {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 2px;
  line-height: 1.3;
}
.usp-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ── SECTIONS ──────────────────────────────────────────────── */
.section {
  padding: 4rem 0;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.section-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--brown);
  line-height: 1.2;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}
.section-subtitle {
  color: var(--text-light);
  font-size: 0.95rem;
}
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: gap 0.15s;
}
.section-link:hover { gap: 0.6rem; color: var(--primary-dark); }
.section-link svg { width: 16px; height: 16px; }

/* ── CARD GRIDS ────────────────────────────────────────────── */
.card-grid {
  display: grid;
  gap: 1.25rem;
}
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-6 { grid-template-columns: repeat(6, 1fr); }

/* ── KATEGORIA — duża karta ────────────────────────────────── */
.category-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--brown);
  display: block;
  transition: all 0.25s;
  box-shadow: var(--shadow-sm);
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.category-card:hover img { transform: scale(1.06); }
.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,26,14,0.85) 0%, rgba(44,26,14,0.15) 50%, transparent 100%);
}
.category-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  z-index: 1;
  color: var(--white);
}
.category-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.15rem;
}
.category-card-count {
  font-size: 0.75rem;
  opacity: 0.85;
}
.category-card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.25);
}
.category-card-placeholder svg { width: 60px; height: 60px; }

/* ── OKAZJA — mniejsza karta z ikonką prezentu ─────────────── */
.okazja-card {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--brown-light), var(--brown));
  display: block;
  transition: all 0.2s;
}
.okazja-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.okazja-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: opacity 0.2s;
}
.okazja-card:hover img { opacity: 0.7; }
.okazja-card-body {
  position: absolute;
  inset: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  z-index: 1;
  background: linear-gradient(to top, rgba(44,26,14,0.75) 0%, transparent 60%);
}
.okazja-card-title {
  font-size: 0.95rem;
  font-weight: 600;
}
.okazja-card-icon {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  opacity: 0.75;
  z-index: 1;
  color: var(--white);
}
.okazja-card-icon svg { width: 20px; height: 20px; }

/* ── PRODUCT CARD ──────────────────────────────────────────── */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-card-image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg);
  overflow: hidden;
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.product-card:hover .product-card-image img { transform: scale(1.05); }
.product-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--primary);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  z-index: 1;
  letter-spacing: 0.02em;
}
.product-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card-category {
  font-size: 0.7rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}
.product-card-title {
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.product-card-price {
  margin-top: auto;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}
.product-card-price-from {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-light);
  margin-right: 0.15rem;
}

/* ── CTA BLOCK ─────────────────────────────────────────────── */
.cta-block {
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown-light) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(220,20,60,0.25) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-block > * { position: relative; z-index: 1; }
.cta-block h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
}
.cta-block p {
  color: rgba(253,250,247,0.85);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 1.75rem;
}
.cta-block .btn {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  padding: 1rem 2rem;
  font-size: 1rem;
}
.cta-block .btn:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

/* ============================================================
   LISTA PRODUKTÓW (sklep, kategoria, okazja, tag, szukaj)
   ============================================================ */

/* ── BREADCRUMB ────────────────────────────────────────────── */
.breadcrumb {
  padding: 1.25rem 0 0;
  font-size: 0.85rem;
  color: var(--text-light);
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}
.breadcrumb a {
  color: var(--text-light);
  transition: color 0.15s;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--text); font-weight: 500; }

/* ── PAGE HEADER (listy) ───────────────────────────────────── */
.page-title-block {
  padding: 1.5rem 0 2rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 2rem;
}
.page-title-block h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--brown);
  margin-bottom: 0.35rem;
}
.page-title-block .subtitle {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ── SHOP LAYOUT ───────────────────────────────────────────── */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  padding-bottom: 4rem;
}
.shop-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 2rem);
  overflow-y: auto;
  padding-right: 0.5rem;
}
.shop-sidebar::-webkit-scrollbar { width: 6px; }
.shop-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.shop-main { min-width: 0; }

/* ── FILTER GROUPS ─────────────────────────────────────────── */
.filter-group {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-light);
}
.filter-group:first-child { padding-top: 0; }
.filter-group:last-child { border-bottom: none; }
.filter-title {
  font-weight: 600;
  color: var(--brown);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Cena — dwa inputy */
.price-range {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.price-range input {
  width: 100%;
  min-width: 0;
  padding: 0.5rem 0.65rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.85rem;
  transition: border 0.15s;
}
.price-range input:focus {
  outline: none;
  border-color: var(--primary);
}
.price-range .dash {
  color: var(--text-light);
  flex-shrink: 0;
}
.price-range-actions {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.4rem;
}
.price-range-actions button,
.price-range-actions a {
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1.5px solid var(--border);
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
}
.price-range-actions button:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.price-range-actions a { flex-shrink: 0; }

/* Lista filtrów (kategorie, tagi, personalizacja) — linki */
.filter-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.filter-list a {
  padding: 0.4rem 0.65rem;
  color: var(--text);
  font-size: 0.88rem;
  border-radius: 5px;
  transition: all 0.15s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
}
.filter-list a:hover {
  background: var(--bg);
  color: var(--primary);
}
.filter-list a.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 500;
}
.filter-list a.active .filter-x {
  opacity: 1;
}
.filter-list .filter-count {
  color: var(--text-light);
  font-size: 0.75rem;
}
.filter-list a.active .filter-count { color: var(--primary); opacity: 0.7; }
.filter-x {
  opacity: 0;
  display: inline-flex;
  align-items: center;
  color: var(--primary);
}
.filter-x svg { width: 12px; height: 12px; }

/* Chip filtrów (tagi/okazje jako piluły) */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.filter-chip {
  padding: 0.35rem 0.75rem;
  border-radius: 14px;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: 0.78rem;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.filter-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.filter-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.filter-chip.active:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}
.filter-chip .chip-x {
  opacity: 0;
  transition: opacity 0.15s;
}
.filter-chip.active .chip-x { opacity: 1; }

/* Wyczyść filtry */
.filter-clear-all {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4rem 0.65rem;
  border-radius: 5px;
  transition: background 0.15s;
}
.filter-clear-all:hover { background: var(--primary-light); }
.filter-clear-all svg { width: 14px; height: 14px; }

/* ── ACTIVE FILTERS BAR (nad gridem) ───────────────────────── */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.active-filters-label {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-right: 0.25rem;
}
.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.78rem;
  color: var(--text);
  transition: all 0.15s;
}
.active-filter-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.active-filter-tag svg { width: 11px; height: 11px; }

/* ── SORT BAR ──────────────────────────────────────────────── */
.sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.sort-bar-count {
  color: var(--text-light);
  font-size: 0.9rem;
}
.sort-bar-count strong { color: var(--text); font-weight: 600; }
.sort-select {
  padding: 0.55rem 2.25rem 0.55rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c1a0e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 14px;
}
.sort-select:focus { outline: none; border-color: var(--primary); }

/* Mobile filter toggle (nie pokazuje się w desktop) */
.mobile-filter-toggle { display: none; }

/* ── PAGINATION ────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  padding: 2.5rem 0 1rem;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.15s;
  background: var(--white);
}
.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.pagination .current {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.pagination .disabled {
  opacity: 0.35;
  cursor: not-allowed;
  color: var(--text-light);
}
.pagination .ellipsis {
  border: none;
  background: transparent;
  color: var(--text-light);
}
.pagination svg { width: 16px; height: 16px; }

/* ── EMPTY STATE ───────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}
.empty-state-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.empty-state-icon svg { width: 36px; height: 36px; }
.empty-state h3 {
  color: var(--text);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.empty-state p { margin-bottom: 1.5rem; }

/* ============================================================
   KARTA PRODUKTU (produkt.php)
   ============================================================ */

/* ── LAYOUT — dwie kolumny (galeria + panel) ───────────────── */
.produkt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 3rem;
  padding-bottom: 3rem;
  align-items: start;
}

/* ── GALERIA ───────────────────────────────────────────────── */
.galeria {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.galeria-glowna {
  aspect-ratio: 1;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.galeria-glowna img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}
.galeria-glowna svg { width: 80px; height: 80px; }
.galeria-miniatury {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}
.galeria-miniatura {
  aspect-ratio: 1;
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.15s;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.galeria-miniatura img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.galeria-miniatura:hover { border-color: var(--primary-light); }
.galeria-miniatura.aktywna {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* ── PANEL PRAWY ───────────────────────────────────────────── */
.produkt-panel {
  min-width: 0;
}
.produkt-kategoria {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.produkt-kategoria a {
  color: var(--text-light);
  transition: color 0.15s;
}
.produkt-kategoria a:hover { color: var(--primary); }
.produkt-nazwa {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--brown);
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.produkt-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.produkt-opis-krotki {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

/* ── OPCJE PRODUKTU ────────────────────────────────────────── */
.opcje-lista {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.opcja-grupa { min-width: 0; }
.opcja-etykieta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
}
.opcja-nazwa {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}
.opcja-nazwa .wymagana { color: var(--primary); margin-left: 0.15rem; }
.opcja-wybor {
  font-size: 0.82rem;
  color: var(--text-light);
}
.opcja-wybor .aktywna-etykieta { color: var(--text); font-weight: 500; }

/* Select */
.opcja-select {
  width: 100%;
  padding: 0.65rem 2.25rem 0.65rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c1a0e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 14px;
  transition: border 0.15s;
}
.opcja-select:focus { outline: none; border-color: var(--primary); }

/* Piluły (radio) */
.opcja-pigulki {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.opcja-pigulka {
  padding: 0.55rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 22px;
  background: var(--white);
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.opcja-pigulka:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.opcja-pigulka.aktywna {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.opcja-pigulka .kolor-swatch {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  display: inline-block;
}
.opcja-pigulka .mod-znak {
  font-size: 0.72rem;
  opacity: 0.75;
  margin-left: 0.25rem;
}
.opcja-pigulka.aktywna .mod-znak { opacity: 0.9; }
.opcja-pigulka.niedostepna {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Dostępne opcje dostawy (karta produktu) */
.dostawa-info {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
}
.dostawa-info-etykieta {
  color: var(--text-light);
  margin-right: 0.15rem;
}
.dostawa-info-pigulka {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
}
.dostawa-info-pigulka svg {
  width: 13px;
  height: 13px;
  color: var(--success);
  flex-shrink: 0;
}
.dostawa-info-brak {
  color: var(--primary-dark);
  background: var(--primary-light);
  border-color: var(--primary-light);
}

/* Wzory (grid miniatur) */
.opcja-wzory {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 0.5rem;
}
.opcja-wzor {
  aspect-ratio: 1;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}
.opcja-wzor img {
  width: 100%; height: 100%; object-fit: cover;
}
.opcja-wzor:hover { border-color: var(--primary-light); }
.opcja-wzor.aktywna {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.opcja-wzor-nazwa {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 3px 6px;
  background: rgba(44,26,14,0.85);
  color: var(--white);
  font-size: 0.65rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.15s;
}
.opcja-wzor:hover .opcja-wzor-nazwa,
.opcja-wzor.aktywna .opcja-wzor-nazwa { opacity: 1; }

/* Czcionki (podgląd tekstu) */
.opcja-czcionki {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.6rem;
}
.opcja-czcionka {
  padding: 1.1rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}
.opcja-czcionka:hover {
  border-color: var(--primary);
}
.opcja-czcionka.aktywna {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(220,20,60,0.1);
}
.opcja-czcionka-preview {
  font-size: 1.4rem;
  line-height: 1.3;
  color: var(--brown);
  text-align: center;
}
.opcja-czcionka-preview-img {
  max-width: 100%;
  max-height: 32px;
  object-fit: contain;
}
.opcja-czcionka-nazwa {
  font-size: 0.65rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── PERSONALIZACJA ────────────────────────────────────────── */
.personalizacja-box {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.25rem;
  border-left: 3px solid var(--primary);
}
.personalizacja-etykieta {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.personalizacja-etykieta .wymagana { color: var(--primary); }
.tekst-wlasny-textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  font-size: 1.05rem;
  font-family: 'Inter', sans-serif;
  min-height: 60px;
  resize: vertical;
  transition: border 0.15s, font-family 0.15s;
}
.tekst-wlasny-textarea:focus { outline: none; border-color: var(--primary); }
.tekst-licznik {
  font-size: 0.72rem;
  color: var(--text-light);
  text-align: right;
  margin-top: 0.35rem;
}
.tekst-licznik.przekroczony { color: var(--primary); font-weight: 600; }

/* Upload pliku */
.plik-upload-input {
  display: none;
}
.plik-upload-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border: 2px dashed var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.15s;
  font-size: 0.88rem;
}
.plik-upload-label:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}
.plik-upload-label svg { width: 18px; height: 18px; }
.plik-upload-label.aktywny {
  border-color: var(--success);
  border-style: solid;
  background: rgba(26,125,46,0.05);
  color: var(--success);
}
.plik-upload-nazwa {
  font-family: monospace;
  font-size: 0.82rem;
  margin-left: 0.35rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* ── CENA I DODAJ DO KOSZYKA ───────────────────────────────── */
.cena-panel {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-top: 1rem;
  box-shadow: var(--shadow-sm);
}
.cena-glowna {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}
.cena-etykieta {
  color: var(--text-light);
  font-size: 0.85rem;
}
.cena-liczba {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.cena-suma {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-light);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
  margin-top: 0.75rem;
}
.cena-suma strong {
  color: var(--brown);
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}

.ilosc-i-cta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: stretch;
  margin-top: 1rem;
}
.ilosc-picker {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  overflow: hidden;
}
.ilosc-btn {
  width: 40px;
  height: 100%;
  min-height: 48px;
  background: transparent;
  color: var(--text);
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ilosc-btn:hover:not(:disabled) { background: var(--bg); color: var(--primary); }
.ilosc-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.ilosc-btn svg { width: 16px; height: 16px; }
.ilosc-input {
  width: 44px;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  text-align: center;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.ilosc-input::-webkit-outer-spin-button,
.ilosc-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.ilosc-input:focus { outline: none; }

.cta-do-koszyka {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.cta-do-koszyka:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220,20,60,0.25);
}
.cta-do-koszyka:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.cta-do-koszyka svg { width: 18px; height: 18px; }

/* ── SEKCJA "OPIS PEŁNY" ───────────────────────────────────── */
.produkt-opis-pelny {
  padding: 3rem 0;
  border-top: 1px solid var(--border-light);
}
.produkt-opis-pelny h2 {
  color: var(--brown);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}
.produkt-opis-tresc {
  color: var(--text);
  line-height: 1.75;
  font-size: 1rem;
  max-width: 780px;
}
.produkt-opis-tresc h1,
.produkt-opis-tresc h2,
.produkt-opis-tresc h3 {
  color: var(--brown);
  margin: 1.5rem 0 0.75rem;
}
.produkt-opis-tresc h3 { font-size: 1.15rem; }
.produkt-opis-tresc p { margin-bottom: 1rem; }
.produkt-opis-tresc ul,
.produkt-opis-tresc ol { margin: 0 0 1rem 1.5rem; }
.produkt-opis-tresc li { margin-bottom: 0.35rem; list-style: initial; }
.produkt-opis-tresc a { color: var(--primary); text-decoration: underline; }
.produkt-opis-tresc a:hover { color: var(--primary-dark); }
.produkt-opis-tresc img { border-radius: 6px; margin: 1rem 0; }
.produkt-opis-tresc strong { color: var(--brown); }

/* Sekcje pełnego opisu (budowane w admin/pages/produkt.php) */
.produkt-opis-tresc .opis-sekcja { margin-bottom: 2rem; }
.produkt-opis-tresc .opis-sekcja:last-child { margin-bottom: 0; }
.produkt-opis-tresc .opis-sekcja--tekst h2 { margin-top: 0; }
.produkt-opis-tresc .opis-sekcja--obraz img {
  width: 100%;
  height: auto;
  margin: 0;
}
.produkt-opis-tresc .opis-sekcja--obraz-tekst {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}
.produkt-opis-tresc .opis-sekcja--obraz-tekst .opis-sekcja-obraz img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 0;
}
.produkt-opis-tresc .opis-sekcja--obraz-tekst .opis-sekcja-tresc p:last-child { margin-bottom: 0; }
.produkt-opis-tresc .opis-sekcja--galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}
.produkt-opis-tresc .opis-sekcja--galeria img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  margin: 0;
}
@media (max-width: 640px) {
  .produkt-opis-tresc .opis-sekcja--obraz-tekst { grid-template-columns: 1fr; }
}

/* ============================================================
   KOSZYK / CHECKOUT / DZIĘKUJEMY
   ============================================================ */

/* ── LAYOUT: 2 kolumny (lista + podsumowanie sticky) ───────── */
.koszyk-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 2rem;
  padding-bottom: 4rem;
  align-items: start;
}

/* ── LISTA POZYCJI KOSZYKA ─────────────────────────────────── */
.koszyk-pozycje {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.koszyk-pozycja {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) auto;
  gap: 1.25rem;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-light);
  align-items: start;
}
.koszyk-pozycja:last-child { border-bottom: none; }
.koszyk-pozycja-obraz {
  aspect-ratio: 1;
  background: var(--bg);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.koszyk-pozycja-obraz img { width: 100%; height: 100%; object-fit: cover; }
.koszyk-pozycja-obraz svg { width: 32px; height: 32px; }
.koszyk-pozycja-info { min-width: 0; }
.koszyk-pozycja-nazwa {
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.25rem;
  display: block;
  transition: color 0.15s;
}
.koszyk-pozycja-nazwa:hover { color: var(--primary); }
.koszyk-pozycja-opcje {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.5rem 0;
}
.koszyk-pozycja-opcja {
  background: var(--bg);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  color: var(--text);
}
.koszyk-pozycja-opcja .klucz { color: var(--text-light); }
.koszyk-pozycja-opcja .mod {
  color: var(--primary);
  font-family: monospace;
  font-size: 0.72rem;
  margin-left: 0.2rem;
}
.koszyk-pozycja-tekst {
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--text);
}
.koszyk-pozycja-tekst .label {
  font-size: 0.65rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 2px;
}
.koszyk-pozycja-tekst .tresc { font-style: italic; }
.koszyk-pozycja-plik {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 3px 10px;
  background: var(--bg);
  border-radius: 12px;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 0.4rem;
}
.koszyk-pozycja-plik svg { width: 12px; height: 12px; }
.koszyk-pozycja-akcje {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  min-width: 130px;
}
.koszyk-pozycja-cena {
  font-weight: 700;
  color: var(--brown);
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}
.koszyk-pozycja-cena-jedn {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 400;
  margin-top: 2px;
}
.koszyk-pozycja-usun {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.7rem;
  color: var(--text-light);
  font-size: 0.78rem;
  border-radius: 4px;
  transition: all 0.15s;
  cursor: pointer;
}
.koszyk-pozycja-usun:hover {
  color: var(--primary);
  background: var(--primary-light);
}
.koszyk-pozycja-usun svg { width: 13px; height: 13px; }

/* ── PANEL PODSUMOWANIA (sticky prawa kolumna) ─────────────── */
.podsumowanie {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}
.podsumowanie-tytul {
  font-weight: 600;
  color: var(--brown);
  font-size: 1.05rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}
.podsumowanie-wiersz {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  color: var(--text-light);
  font-size: 0.9rem;
}
.podsumowanie-wiersz strong { color: var(--text); font-weight: 500; }
.podsumowanie-suma {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0 0.75rem;
  border-top: 2px solid var(--border);
  margin-top: 0.75rem;
}
.podsumowanie-suma-label {
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
}
.podsumowanie-suma-wartosc {
  font-weight: 700;
  color: var(--brown);
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.podsumowanie-info {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border);
}

/* ── EMPTY STATE koszyka ───────────────────────────────────── */
.koszyk-pusty {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.koszyk-pusty svg {
  width: 72px;
  height: 72px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.koszyk-pusty h2 {
  color: var(--brown);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.koszyk-pusty p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* ── CHECKOUT — formularz ──────────────────────────────────── */
.checkout-forma {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.checkout-sekcja {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.checkout-sekcja-tytul {
  font-weight: 600;
  color: var(--brown);
  font-size: 1.05rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.checkout-sekcja-tytul .krok {
  width: 26px;
  height: 26px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.checkout-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.checkout-row.cols-3 { grid-template-columns: 1fr 2fr; }
.checkout-row:last-child { margin-bottom: 0; }
.field label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
  font-weight: 500;
}
.field label .req { color: var(--primary); }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border 0.15s;
}
.field input:focus,
.field textarea:focus,
.field select:focus { outline: none; border-color: var(--primary); }
.field textarea { resize: vertical; min-height: 80px; }

/* Segmented toggle (osoba/firma) */
.segmented-toggle {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.segmented-toggle label {
  flex: 1;
  cursor: pointer;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  text-align: center;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.15s;
}
.segmented-toggle input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.segmented-toggle label:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.segmented-toggle input[type="radio"]:checked + label,
.segmented-toggle label.checked {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

/* Metody dostawy / płatności — radio karty */
.metody-lista {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.metoda-radio {
  display: block;
  cursor: pointer;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  background: var(--white);
  transition: all 0.15s;
  position: relative;
}
.metoda-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.metoda-radio:hover { border-color: var(--primary); }
.metoda-radio.checked {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(220,20,60,0.08);
}
.metoda-radio-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.metoda-nazwa { font-weight: 600; color: var(--text); font-size: 0.95rem; }
.metoda-opis { font-size: 0.78rem; color: var(--text-light); margin-top: 2px; }
.metoda-cena {
  font-weight: 700;
  color: var(--brown);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.metoda-cena.free { color: var(--success); }

/* Checkbox z tekstem */
.checkbox-inline {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
}
.checkbox-inline input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.checkbox-inline a { color: var(--primary); text-decoration: underline; }

/* Panel podsumowania checkoutu — mini lista pozycji */
.podsumowanie-mini {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 4px;
}
.podsumowanie-mini-pozycja {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--border);
  font-size: 0.85rem;
}
.podsumowanie-mini-pozycja:last-child { border-bottom: none; }
.podsumowanie-mini-nazwa {
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.podsumowanie-mini-nazwa .ilosc {
  color: var(--text-light);
  font-size: 0.75rem;
  margin-left: 0.15rem;
}
.podsumowanie-mini-cena {
  color: var(--brown);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ── DZIĘKUJEMY ────────────────────────────────────────────── */
.dziekujemy-hero {
  text-align: center;
  padding: 4rem 1rem 2rem;
  max-width: 640px;
  margin: 0 auto;
}
.dziekujemy-check {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #1a7d2e, #22c55e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 8px 24px rgba(26,125,46,0.2);
}
.dziekujemy-check svg { width: 46px; height: 46px; }
.dziekujemy-hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--brown);
  margin-bottom: 0.75rem;
}
.dziekujemy-hero p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.6;
}
.dziekujemy-numer {
  background: var(--white);
  border: 2px dashed var(--primary);
  border-radius: 12px;
  padding: 1rem 2rem;
  display: inline-block;
  margin: 1.5rem 0;
}
.dziekujemy-numer-label {
  font-size: 0.72rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}
.dziekujemy-numer-wartosc {
  font-family: monospace;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
}
.dziekujemy-kroki {
  max-width: 720px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.dziekujemy-kroki h3 {
  color: var(--brown);
  margin-bottom: 1.25rem;
}
.dziekujemy-krok {
  display: flex;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-light);
}
.dziekujemy-krok:last-child { border-bottom: none; }
.dziekujemy-krok-numer {
  width: 32px;
  height: 32px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.dziekujemy-krok-tresc { flex: 1; color: var(--text); font-size: 0.95rem; line-height: 1.5; }
.dziekujemy-krok-tresc strong { color: var(--brown); display: block; }
.dziekujemy-akcje {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 2rem 0 4rem;
  flex-wrap: wrap;
}

/* ── RESPONSIVE — dodatki ──────────────────────────────────── */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { max-width: 500px; margin: 0 auto; }
  .usps-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-6 { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 3rem 0; }

  .shop-layout { grid-template-columns: 1fr; gap: 1rem; }
  .shop-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    max-height: none;
    background: var(--white);
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.3s;
    padding: 1.25rem;
    box-shadow: 12px 0 32px rgba(92,46,30,0.15);
  }
  .shop-sidebar.open { transform: translateX(0); }
  .shop-sidebar-close {
    display: flex !important;
    justify-content: flex-end;
    margin-bottom: 0.75rem;
  }
  .mobile-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    background: var(--white);
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 500;
  }
  .mobile-filter-toggle svg { width: 16px; height: 16px; }
  .shop-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(92,46,30,0.4);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .shop-sidebar-overlay.open { opacity: 1; pointer-events: auto; }

  .produkt-layout { grid-template-columns: 1fr; gap: 2rem; }
  .galeria { position: static; }

  .koszyk-layout,
  .checkout-layout { grid-template-columns: 1fr; }
  .podsumowanie { position: static; }
}
.shop-sidebar-close { display: none; }

@media (max-width: 560px) {
  .hero { padding: 2rem 0 2.5rem; }
  .usps-grid { grid-template-columns: 1fr; }
  .card-grid.cols-4,
  .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .card-grid.cols-6 { grid-template-columns: repeat(2, 1fr); }
  .cta-block { padding: 2.5rem 1.5rem; }
  .section { padding: 2rem 0; }

  .galeria-miniatury { grid-template-columns: repeat(4, 1fr); }
  .opcja-czcionki { grid-template-columns: repeat(2, 1fr); }

  .koszyk-pozycja { grid-template-columns: 70px 1fr; }
  .koszyk-pozycja-akcje {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-width: 0;
  }
  .checkout-row,
  .checkout-row.cols-3 { grid-template-columns: 1fr; }
}


/* ── UTILITY ───────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--text-light); }
.mt-1 { margin-top: 0.5rem; }  .mt-2 { margin-top: 1rem; }  .mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }    .mt-5 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: var(--text);
  }
  .mobile-menu-toggle:hover {
    background: var(--primary-light);
    color: var(--primary);
  }
  .mobile-menu-toggle svg { width: 22px; height: 22px; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-newsletter { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .top-bar-right { display: none; }
  .top-bar-left { gap: 0.75rem; font-size: 0.72rem; }
  .logo-text { display: none; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
