/* All rules require a verified category and successful DOM initialisation. */
html.bfcd-ready .cat-hero { padding-block: 18px 16px !important; }
html.bfcd-ready .cat-hero .cat-hero__grid { display:block; }
html.bfcd-ready .cat-hero .cat-hero__copy { max-width:none;gap:5px !important; }
html.bfcd-ready .cat-hero .cat-hero__copy > .kicker,
html.bfcd-ready .cat-hero .cat-hero__usps { display:none; }
html.bfcd-ready .cat-hero .cat-hero__title { font-size:clamp(1.55rem,3vw,2.2rem) !important; line-height:1.14 !important; margin:0 0 6px !important; max-width:none; }
html.bfcd-ready .cat-hero .bfcd-short-lead { max-width:60ch;font-size:.95rem;line-height:1.38;margin:0; }
html.bfcd-ready .cat-hero .cat-hero__meta { margin:7px 0 0 !important;font-size:.78rem; }
html.bfcd-ready #lista.cat-catalog { padding-top:12px !important; }
html.bfcd-ready #lista .cat-toolbar { margin-bottom:12px; }
/* Jedna regularna siatka, także na najwęższych telefonach. */
html.bfcd-ready #lista .cat-grid.product-grid {
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap:14px;
}
html.bfcd-ready #lista .cat-grid > .product-card {
  min-width:0; border-radius:14px; overflow:hidden;
}
html.bfcd-ready #lista .cat-grid .product-card__media {
  aspect-ratio:1/1; background:#faf9f7;
}
html.bfcd-ready #lista .cat-grid .product-card__media > a {
  display:block; width:100%; height:100%;
}
html.bfcd-ready #lista .cat-grid .product-card__media img {
  display:block; width:100%; height:100%; object-fit:contain;
}
html.bfcd-ready #lista .cat-grid .product-card__body {
  min-width:0; padding:10px; gap:8px; flex:1;
}
html.bfcd-ready #lista .cat-grid .product-card__name {
  font-size:.92rem; line-height:1.28; font-weight:750; margin:0; overflow-wrap:anywhere;
}
html.bfcd-ready #lista .cat-grid .product-card__spec { display:none; }
html.bfcd-ready #lista .cat-grid .product-card__row {
  margin-top:auto; padding-top:0; flex-wrap:wrap; gap:4px 8px; min-width:0;
}
html.bfcd-ready #lista .cat-grid .price {
  font-size:1.05rem; font-weight:800; line-height:1.25; white-space:normal;
}
html.bfcd-ready #lista .cat-grid .lead-time { font-size:.72rem; white-space:normal; }
html.bfcd-ready #lista .cat-grid .product-card__cta {
  background:var(--cta,#ff5700) !important; color:#fff !important;
  border-color:transparent; border-radius:9px; min-height:36px; width:100%;
  padding:8px 7px; font-size:.82rem; line-height:1.3; text-align:center;
  font-weight:750; margin-top:0;
}
html.bfcd-ready #lista .cat-grid .product-card__cta:hover {
  filter:brightness(.93);
}
html.bfcd-ready #lista .cat-grid .product-card__cta:focus-visible {
  outline:3px solid #1673b8; outline-offset:-3px;
}
@media(max-width:1024px) {
  html.bfcd-ready #lista .cat-grid.product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
html.bfcd-ready .bfcd-category-details { margin:22px auto;padding-block:16px;border-top:1px solid var(--border,#e6e2dc); }
html.bfcd-ready .bfcd-detail-heading { font-size:1.15rem; margin:0 0 8px; }
html.bfcd-ready .bfcd-category-details .lead { max-width:75ch;line-height:1.6;font-size:1rem; }
html.bfcd-ready .bfcd-preview-marker { display:inline-block;align-self:flex-start;color:#9a3400;background:#fff1e5;font-size:.67rem;font-weight:750;padding:3px 7px;border-radius:8px;margin-bottom:6px; }
@media(max-width:768px) {
  html.bfcd-ready .cat-hero { padding-block:12px 11px !important; }
  html.bfcd-ready .cat-hero .cat-hero__title { font-size:clamp(1.4rem,5.5vw,1.7rem) !important;line-height:1.15 !important; }
  html.bfcd-ready .cat-hero .bfcd-short-lead { font-size:.86rem;line-height:1.38; }
  html.bfcd-ready .cat-hero .cat-hero__meta { display:none; }
  html.bfcd-ready #lista.cat-catalog { padding-top:8px !important; }
  html.bfcd-ready #lista .cat-grid.product-grid { gap:9px; }
  html.bfcd-ready #lista .cat-grid > .product-card { border-radius:12px; }
  html.bfcd-ready #lista .cat-grid .product-card__body { padding:9px;gap:6px; }
  html.bfcd-ready #lista .cat-grid .product-card__name { font-size:.82rem; line-height:1.32; }
  html.bfcd-ready #lista .cat-grid .price { font-size:.95rem; }
  html.bfcd-ready #lista .cat-grid .product-card__cta { font-size:.77rem; padding:8px 5px; }
  html.bfcd-ready #lista .cat-grid .product-card__fav { width:32px;height:32px;top:6px;right:6px; }
  html.bfcd-ready #lista .cat-grid .product-card__fav .icon { width:16px;height:16px; }
}
