/* ============================================================
   Katalog Biznesplanów v2 — style
   child-theme/assets/biznesplany.css
   ============================================================ */

    .ast-container {
        max-width: 1440px!IMPORTANT;
    }

.fontIBM{font-family:"IBM Plex Mono", sans-serif;} 

.biz-catalog * { box-sizing: border-box; }

/* ── Zmienne ──────────────────────────────────────────────── */
.biz-catalog {
  --biz-navy:    #1a2744;
  --biz-navy2:   #0f1d3a;
  --biz-blue:    #1e3a6e;
  --biz-accent:  #1e40af;
  --biz-gold:    #f59e0b;
  --biz-green:   #10b981;
  --biz-text:    #1a1a2e;
  --biz-muted:   #64748b;
  --biz-border:  #e2e8f0;
  --biz-bg:      #f8fafc;
  --biz-card-bg: #ffffff;
  --biz-radius:  10px; 
  --biz-sidebar-w: 260px;
}

/* ── Hero ─────────────────────────────────────────────────── */
.biz-hero {
  padding: 2.5rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--biz-border);
  margin-bottom: 1.5rem;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
.biz-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--biz-accent);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.biz-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--biz-text);
  line-height: 1.15;
  margin: 0 0 0.5rem;
}
.biz-hero__desc {
  font-size: 0.95rem;
  color: var(--biz-muted);
  max-width: 600px;
  line-height: 1.6;
  margin: 0;
}

/* ── Mobile bar (Pokaż filtry) ────────────────────────────── */
.biz-mobile-bar {
  display: none;
  padding: 0.6rem 1.5rem;
  border-bottom: 1px solid var(--biz-border);
}
.biz-btn-filters {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--biz-navy);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.biz-btn-filters:hover { background: var(--biz-accent); }
.biz-filter-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  background: var(--biz-gold);
  color: #7c2d12;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
}

/* ── Overlay (mobile) ─────────────────────────────────────── */
.biz-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 998;
  opacity: 0;
  transition: opacity .25s;
}
.biz-overlay.is-visible {
  opacity: 1;
}

/* ── Layout ───────────────────────────────────────────────── */
.biz-layout {
  display: grid;
  grid-template-columns: var(--biz-sidebar-w) 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

/* ── Sidebar — desktop ────────────────────────────────────── */
.biz-sidebar {
  position: sticky;
  top: 90px;
  background: var(--biz-card-bg);
  border: 1px solid var(--biz-border);
  border-radius: var(--biz-radius);
  padding: 1.2rem;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}
.biz-sidebar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.biz-sidebar__title { font-weight: 700; font-size: 0.95rem; }
.biz-sidebar__actions { display: flex; align-items: center; gap: 0.8rem; }
.biz-sidebar__clear { font-size: 0.8rem; color: var(--biz-muted); text-decoration: none; }
.biz-sidebar__clear:hover { color: var(--biz-accent); }
.biz-sidebar__close {
  display: none;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--biz-muted);
  padding: 2px 4px;
  line-height: 1;
}

/* ── Szukaj ────────────────────────────────────────────────── */
.biz-search { margin-bottom: 1.2rem; }
.biz-search__input {
  width: 100%;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--biz-border);
  border-radius: 6px;
  font-size: 0.875rem;
  outline: none;
  transition: border-color .2s;
}
.biz-search__input:focus { border-color: var(--biz-accent); }

/* ── Grupy filtrów ────────────────────────────────────────── */
.biz-filter-group { margin-bottom: 0; border-bottom: 1px solid var(--biz-border); }
.biz-filter-group:last-child { border-bottom: none; }

/* Label — collapsible (button) */
.biz-filter-group__label {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--biz-text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
/* Label — plain (non-button) */
.biz-filter-group__label--plain {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--biz-text);
}

.biz-arrow { font-size: 0.7rem; transition: transform .2s; }
.biz-filter-group--collapsible .biz-filter-group__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.biz-filter-group--collapsible.is-open .biz-filter-group__body {
  max-height: 600px;
}
.biz-filter-group--collapsible.is-open .biz-arrow { transform: rotate(180deg); }

/* Wiersze checkbox */
.biz-filter-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.3rem;
  border-radius: 5px;
  text-decoration: none;
  color: var(--biz-text);
  font-size: 0.875rem;
  transition: background .15s;
}
.biz-filter-row:hover { background: var(--biz-bg); }
.biz-filter-row.is-active { color: var(--biz-accent); font-weight: 600; }
.biz-filter-row__check {
  width: 16px; height: 16px;
  border: 1.5px solid var(--biz-border);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
  flex-shrink: 0;
  color: transparent;
}
.biz-filter-row.is-active .biz-filter-row__check {
  background: var(--biz-accent);
  border-color: var(--biz-accent);
  color: white;
}
.biz-filter-row__name { flex: 1; }
.biz-filter-row__num  { color: var(--biz-muted); font-size: 0.78rem; }

/* Tagi */
.biz-tag-cloud { display: flex; flex-wrap: wrap; gap: 0.35rem; padding-bottom: 0.6rem; }
.biz-tag {
  padding: 0.22rem 0.55rem;
  background: var(--biz-bg);
  border: 1px solid var(--biz-border);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--biz-muted);
  text-decoration: none;
  transition: all .15s;
}
.biz-tag:hover, .biz-tag.is-active {
  background: var(--biz-accent);
  border-color: var(--biz-accent);
  color: white;
}

/* Cena pills */
.biz-price-filter { display: flex; flex-wrap: wrap; gap: 0.35rem; padding-bottom: 0.8rem; }
.biz-price-pill {
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--biz-border);
  border-radius: 20px;
  font-size: 0.78rem;
  text-decoration: none;
  color: var(--biz-text);
  transition: all .15s;
}
.biz-price-pill:hover, .biz-price-pill.is-active {
  background: var(--biz-accent);
  border-color: var(--biz-accent);
  color: white;
}

/* ── Toolbar ────────────────────────────────────────────────── */
.biz-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.biz-toolbar__count { font-size: 0.9rem; color: var(--biz-muted); }
.biz-toolbar__count strong { color: var(--biz-text); font-weight: 700; }
.biz-toolbar__right { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.biz-toolbar__sort-label { font-size: 0.85rem; color: var(--biz-muted); }
.biz-sort-select {
  padding: 0.4rem 1.5rem 0.4rem 0.7rem;
  border: 1px solid var(--biz-border);
  border-radius: 6px;
  font-size: 0.85rem;
  background: white;
  cursor: pointer;
}
.biz-view-toggle { display: flex; gap: 4px; }
.biz-view-btn {
  width: 32px; height: 32px;
  border: 1px solid var(--biz-border);
  border-radius: 6px;
  background: white;
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.biz-view-btn.is-active { background: var(--biz-accent); border-color: var(--biz-accent); color: white; }

/* Aktywne filtry */
.biz-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
  font-size: 0.8rem;
}
.biz-active-filters__label { font-weight: 700; letter-spacing: .06em; color: var(--biz-muted); }
.biz-filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.6rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  color: var(--biz-accent);
  text-decoration: none;
  font-weight: 600;
  transition: background .15s;
}
.biz-filter-badge:hover { background: #dbeafe; }
.biz-filter-badge span { opacity: .7; }

/* ── Siatka 3 kolumny ─────────────────────────────────────── */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* Tryb listy */
.biz-grid--list { grid-template-columns: 1fr; }
.biz-grid--list .biz-card { flex-direction: row; }
.biz-grid--list .biz-card__thumb { width: 200px; min-height: unset; flex-shrink: 0; border-radius: var(--biz-radius) 0 0 var(--biz-radius); }
.biz-grid--list .biz-card__title-overlay { display: none; }

/* ── Karta ────────────────────────────────────────────────── */
.biz-card {
  background: var(--biz-card-bg);
  border-radius: var(--biz-radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 6px rgba(0,0,0,.04);
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.biz-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.12); transform: translateY(-2px); }

.biz-card__thumb {
  position: relative;
  display: block;
  background: var(--biz-navy);
  min-height: 150px;
  overflow: hidden;
  text-decoration: none;
  flex-shrink: 0;
}
.biz-card__img { width: 100%; height: 150px; object-fit: cover; display: block; opacity: .85; }
.biz-card__placeholder {
  width: 100%; height: 150px;
  background: linear-gradient(135deg, var(--biz-navy2) 0%, var(--biz-blue) 100%);
  display: flex; align-items: flex-end; padding: 1rem;
}
.biz-placeholder-chart { width: 80px; height: 46px; }

.biz-badge {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 8px; border-radius: 20px;
  font-size: 0.62rem; font-weight: 800; letter-spacing: .08em;
  display: inline-flex; align-items: center; gap: 4px;
}
.biz-badge--bestseller { background: var(--biz-gold); color: #7c2d12; }
.biz-badge--dotacje    { background: var(--biz-green); color: #064e3b; }

.biz-card__branza-label {
  position: absolute; top: 10px; right: 10px;
  font-size: 0.6rem; font-weight: 700; letter-spacing: .1em;
  color: rgba(255,255,255,.65);
}
.biz-card__title-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0.8rem 0.9rem; margin: 0;
  font-size: 0.95rem; font-weight: 700; color: white;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
  background: linear-gradient(to top, rgba(10,20,50,.82), transparent);
}

.biz-card__body {
  padding: 0.85rem 1rem 1rem;
  display: flex; flex-direction: column; flex: 1;
}
.biz-card__branza {
  font-size: 0.65rem; font-weight: 700; letter-spacing: .1em;
  color: var(--biz-accent); margin-bottom: 0.25rem;
}
.biz-card__name {
  font-size: 0.9rem; font-weight: 700; margin-bottom: 0.75rem; line-height: 1.35;
}
.biz-card__name a { color: var(--biz-text); text-decoration: none; }
.biz-card__name a:hover { color: var(--biz-accent); }

/* Metryki */
.biz-metrics {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--biz-border); border-radius: 6px;
  overflow: hidden; margin-bottom: 0.85rem;
}
.biz-metric {
  padding: 0.4rem 0.55rem;
  border-right: 1px solid var(--biz-border);
  border-bottom: 1px solid var(--biz-border);
  display: flex; flex-direction: column; gap: 1px;
}
.biz-metric:nth-child(2n)   { border-right: none; }
.biz-metric:nth-child(n+3)  { border-bottom: none; }
.biz-metric__label { font-size: 0.58rem; font-weight: 700; letter-spacing: .1em; color: var(--biz-muted); }
.biz-metric__value { font-size: 0.875rem; font-weight: 700; color: var(--biz-text); }

/* Footer karty */
.biz-card__footer {
  display: flex; align-items: center; justify-content: space-between; margin-top: auto;
}
.biz-card__price { display: flex; flex-direction: column; gap: 1px; }
.biz-price-current { font-size: 1.1rem; font-weight: 800; color: var(--biz-text); }
.biz-price-current .woocommerce-Price-amount { font-size: inherit; color: inherit; }
.biz-price-regular { font-size: 0.78rem; color: var(--biz-muted); text-decoration: line-through; }
.biz-price-regular .woocommerce-Price-amount { font-size: inherit; color: inherit; }

.biz-btn-cart {
  display: inline-block; padding: 0.5rem 1rem;
  background: var(--biz-navy); color: white !important;
  border-radius: 6px; font-size: 0.82rem; font-weight: 700;
  text-decoration: none; transition: background .2s; white-space: nowrap;
}
.biz-btn-cart:hover { background: var(--biz-accent); }

/* ── Paginacja ──────────────────────────────────────────────── */
.biz-pagination {
  margin-top: 2rem; display: flex; justify-content: center;
  gap: 0.35rem; flex-wrap: wrap;
}
.biz-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--biz-border); border-radius: 6px;
  font-size: 0.875rem; text-decoration: none; color: var(--biz-text);
  transition: all .15s;
}
.biz-pagination .page-numbers.current,
.biz-pagination .page-numbers:hover { background: var(--biz-accent); border-color: var(--biz-accent); color: white; }
.biz-pagination .prev,
.biz-pagination .next { width: auto; padding: 0 0.8rem; }

/* ── Empty state ────────────────────────────────────────────── */
.biz-empty { text-align: center; padding: 4rem 1rem; color: var(--biz-muted); }
.biz-btn-reset {
  display: inline-block; margin-top: 1rem; padding: 0.5rem 1.2rem;
  background: var(--biz-accent); color: white; border-radius: 6px;
  text-decoration: none; font-size: 0.875rem; font-weight: 600;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* Tablet — 2 kolumny siatki, sidebar slide-in */
@media (max-width: 1100px) {
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  /* Layout bez sidebara */
  .biz-layout { grid-template-columns: 1fr; padding: 0 1rem 3rem; }

  /* Pokaż przycisk mobile */
  .biz-mobile-bar { display: block; }

  /* Sidebar jako drawer z lewej */
  .biz-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 85vw);
    z-index: 999;
    border-radius: 0;
    border: none;
    border-right: 1px solid var(--biz-border);
    max-height: 100vh;
    overflow-y: auto;
    transform: translateX(-110%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    box-shadow: none;
    padding-top: 1rem;
  }
  .biz-sidebar.is-open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,.15);
  }
  .biz-overlay { display: block; }
  .biz-sidebar__close { display: block; }
}

/* Mobile — 1 kolumna siatki */
@media (max-width: 580px) {
  .biz-grid { grid-template-columns: 1fr; }
  .biz-toolbar { flex-direction: column; align-items: flex-start; }
  .biz-hero { padding: 1.5rem 1rem 1rem; }
}

/* Duże ekrany — zawsze 3 kolumny w siatce */
@media (min-width: 1101px) {
  .biz-grid { grid-template-columns: repeat(3, 1fr); }
}
