/* v65-fixes.css — wyniesione 2026-08-25 z legacy/v65-fixes.php (linie 1035-3621).
 * Bylo: 80 557 B inline <style> drukowane na kazdej stronie.
 * Linkowane na wp_head priorytet 1100 z data-no-optimize="1" — pozycja w
 * kaskadzie musi zostac zachowana: po CSS motywu i wtyczek, przed v66 (1300).
 * NIE przenosic do wp_enqueue_style, bo trafi na priorytet 8 i reguly
 * przestana wygrywac kolejnoscia. */
/* =========================================================================
 * SECTION 1 — CRITICAL FIXES (z v65-critical-fixes.php)
 *   • C3 — sticky bar bije FAB (z-index unification)
 *   • C1/C2 — RODO consent checkbox CSS
 *   • C4 — Brutto przed netto (wizualnie, bez DOM swap)
 *   • H8 — Outline:none globalny FIX (WCAG 2.4.7 Focus Visible)
 *   • SEO-05 — 404 page CSS fix
 * ========================================================================= */
:root{
  --z-sticky-bar:9999;
  --z-fab:9000;
  --z-popup:10000;
  --z-popup-bd:9999;
}

/* C3 — sticky bar bije FAB */
.hbt-sticky-bar{z-index:var(--z-sticky-bar) !important}
.hbt-floating-fab,.hbt-fab,.hbt-back-to-top{z-index:var(--z-fab) !important}
.hbt-popup,.hbt-popup-backdrop{z-index:var(--z-popup) !important}
@media (max-width:768px){
  .hbt-sticky-bar{position:fixed !important;bottom:0 !important;left:0 !important;right:0 !important}
}

/* C1/C2 — RODO consent checkbox */
.hbt-popup-consent{
  display:flex;
  gap:8px;
  align-items:flex-start;
  font-size:12px;
  line-height:1.45;
  color:var(--text-l,#616161);
  margin:8px 0 0;
  cursor:pointer;
  text-align:left;
}
.hbt-popup-consent input[type=checkbox]{
  margin:3px 0 0;
  flex:0 0 auto;
  accent-color:var(--primary,#7CB342);
  width:16px;
  height:16px;
}
.hbt-popup-consent span{flex:1 1 auto}
.hbt-popup-consent a{color:var(--primary-d,#7CB342);text-decoration:underline}

/* C4 — Brutto przed netto (wizualne, bez DOM swap) */
.product .sp-price-net-label{
  order:2 !important;
  font-size:.9em !important;
  opacity:.85;
  margin-top:4px !important;
}
.product .sp-price-main,.product .price-main{
  order:1 !important;
  font-size:1.5em !important;
  font-weight:700 !important;
}
.product .sp-prices,.product .price-wrap{
  display:flex !important;
  flex-direction:column !important;
}

/* H8 — Outline:none globalny FIX (WCAG 2.4.7 Focus Visible) */
*:focus-visible{
  outline:2px solid var(--primary,#7CB342) !important;
  outline-offset:2px !important;
  box-shadow:0 0 0 3px rgba(124,179,66,.25) !important;
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{
  outline:2px solid var(--primary,#7CB342) !important;
  outline-offset:2px !important;
}

/* SEO-05 — 404 page CSS fix (DOM był OK, teraz wymuś display)
 * v6.6.66 (2026-05-08): user feedback "ogromne przerwy w 404".
 * Usunięte: min-height: 60vh (~648px) → auto + zredukowany padding 60→32. */
.error404 .hbt-404,.hbt-404{display:block !important;visibility:visible !important;opacity:1 !important}
.hbt-404-inner{display:flex !important;flex-direction:column;align-items:center;text-align:center;padding:32px 20px;max-width:780px;margin:0 auto;gap:20px !important}
.hbt-404-figure{margin:0 !important;padding:0 !important}
.hbt-404-figure img,.hbt-404-figure svg{max-width:600px;width:100%;height:auto;margin:0 !important;display:block}
@media (max-width:768px){.hbt-404-figure img,.hbt-404-figure svg{max-width:380px}}
.hbt-404-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin:24px 0}
.hbt-404-search{width:100%;max-width:520px;margin:24px auto}

/* =========================================================================
 * SECTION 2 — RESPONSIVE FIXES (z v65-responsive-fixes.php)
 *   25+ punktów audytu responsywności (TYPO/PROD/KOSZYK/CHECKOUT/HOME/SKLEP/FILTRY/MARKA/ONAS/DESIGN)
 * ========================================================================= */

/* DESIGN-02 — Unified CSS variables (button radius, shadows) */
:root{
  --btn-radius:8px;
  --shadow-card:0 2px 8px rgba(0,0,0,.08);
  --shadow-hover:0 8px 24px rgba(0,0,0,.12);
  --tap-target:44px;
}
.hbt-btn-primary,.hbt-btn-secondary,.button,
.single_add_to_cart_button,
button.button,
input.button,
.hbt-sticky-bar__btn,
.sp-cart-btn,
.sp-inquiry-btn,
.checkout-button{
  border-radius:var(--btn-radius) !important;
}

/* TYPO-01 / SKLEP-04 — Tytuły kart produktów min 14px na mobile */
@media (max-width:480px){
  ul.products li.product .product-title,
  ul.products li.product h2,
  ul.products li.product h3,
  ul.products li.product .woocommerce-loop-product__title,
  .hbt-loop-card__title{
    font-size:14px !important;
    line-height:1.35 !important;
    display:-webkit-box !important;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    min-height:38px;
  }
}
@media (max-width:360px){
  ul.products li.product .product-title,
  ul.products li.product h2,
  ul.products li.product h3,
  ul.products li.product .woocommerce-loop-product__title,
  .hbt-loop-card__title{
    font-size:14px !important; /* nadpisz hardcoded 12px z theme */
  }
}

/* TYPO-05 — H2 artykułu mobile */
@media (max-width:480px){
  .entry-content h2,
  .hbt-post-content h2,
  .single-post .post-content h2{
    font-size:20px !important;
    line-height:1.3;
  }
  .entry-content,.hbt-post-content,.single-post .post-content{
    line-height:1.55;
  }
}

/* TYPO-06 — Top bar font min 12px (gdy widoczny) */
.hbt-top-bar,.hbt-topbar,.hbt-promo-bar,.top-promo-bar{
  font-size:12px;
}

/* PROD-01 — Breadcrumb truncation na mobile */
@media (max-width:768px){
  .woocommerce-breadcrumb,
  .hbt-breadcrumb{
    font-size:12px;
    line-height:1.4;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    padding:8px 12px;
  }
  /* Pokaż tylko ostatnie 2 poziomy: rodzica + bieżący */
  .woocommerce-breadcrumb a:not(:nth-last-of-type(-n+2)),
  .hbt-breadcrumb a:not(:nth-last-of-type(-n+2)),
  .woocommerce-breadcrumb .breadcrumb-separator:not(:nth-last-of-type(-n+3)),
  .hbt-breadcrumb .breadcrumb-separator:not(:nth-last-of-type(-n+3)){
    display:none !important;
  }
  /* Dodaj wskaźnik "..." na początku */
  .woocommerce-breadcrumb::before,
  .hbt-breadcrumb::before{
    content:"…/ ";
    color:var(--text-l,#888);
    margin-right:4px;
  }
}

/* PROD-02 — H1 produktu mobile clamp */
@media (max-width:768px){
  .product .product_title,
  .product h1.product_title,
  .single-product h1{
    font-size:clamp(18px,5vw,24px) !important;
    line-height:1.3 !important;
    margin-bottom:12px !important;
  }
}

/* PROD-08 — Sticky bar uproszczony na <480px */
@media (max-width:480px){
  .hbt-sticky-bar,#hbt-sticky-bar{
    max-height:64px !important;
    padding:8px 12px !important;
  }
  .hbt-sticky-bar .hbt-sticky-bar__thumb,
  .hbt-sticky-bar img.thumb,
  .hbt-sticky-bar__title{
    display:none !important;
  }
  .hbt-sticky-bar .hbt-sticky-bar__price,
  .hbt-sticky-bar__price{
    font-size:16px !important;
    font-weight:700 !important;
  }
  .hbt-sticky-bar .hbt-sticky-bar__btn,
  .hbt-sticky-bar__btn{
    padding:10px 18px !important;
    font-size:13px !important;
  }
}

/* DUP-02 — Sticky bar konsolidacja
 *  - Na MOBILE (<769px): pokazujemy tylko .hbt-sticky-bar (uproszczony, audyt PROD-08)
 *  - Na DESKTOP (≥769px): pokazujemy tylko #spSticky (bogaty z nawigacją sekcji)
 *  Audyt znalazł że oba bary mogą się nakładać na siebie. */
@media (max-width:768px){
  #spSticky,
  .sp-sticky{
    display:none !important;
  }
}
@media (min-width:769px){
  .hbt-sticky-bar,#hbt-sticky-bar{
    display:none !important;
  }
}

/* KOSZYK-02 — Remove button min 44×44px (touch target) */
.cart_item .remove,
.woocommerce-cart-form__cart-item .remove,
a.remove{
  min-width:var(--tap-target) !important;
  min-height:var(--tap-target) !important;
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  font-size:20px !important;
  line-height:1 !important;
}

/* KOSZYK-03 — Kupon + buttons stack na <480px */
@media (max-width:480px){
  .coupon,.cart-coupon-row,
  .woocommerce-cart-form .actions{
    display:flex !important;
    flex-direction:column !important;
    gap:10px !important;
    align-items:stretch !important;
  }
  .coupon input,.coupon button,
  .cart-coupon-row input,.cart-coupon-row button,
  .woocommerce-cart-form .actions button{
    width:100% !important;
    margin:0 !important;
  }
}

/* KOSZYK-04 — Order summary sticky bottom na mobile (tylko gdy JS wykryje że summary jest zwinięty) */
@media (max-width:768px){
  .cart_totals,
  .cart-collaterals,
  .woocommerce-cart-collaterals{
    position:relative;
    margin-top:24px;
  }
  /* Mini sticky bar z totalem na mobile */
  .hbt-cart-mobile-total{
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    background:#fff;
    border-top:1px solid var(--border,#E0E0E0);
    box-shadow:0 -4px 12px rgba(0,0,0,.08);
    padding:10px 16px;
    z-index:9990;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
  }
  .hbt-cart-mobile-total__label{
    font-size:13px;
    color:var(--text-l,#616161);
  }
  .hbt-cart-mobile-total__amount{
    font-size:18px;
    font-weight:700;
    color:var(--primary-d,#7CB342);
  }
  .hbt-cart-mobile-total__btn{
    padding:10px 18px !important;
    font-size:13px !important;
    font-weight:700 !important;
  }
  /* Dodaj padding-bottom do body żeby sticky bar nie zasłaniał */
  body.woocommerce-cart{padding-bottom:72px}
}

/* CHECKOUT-01 — Stepper na <420px tylko numery */
@media (max-width:420px){
  .hbt-checkout-stepper .step-label,
  .checkout-stepper .step-text{
    display:none !important;
  }
  .hbt-checkout-stepper .step-num,
  .checkout-stepper .step-number{
    font-size:14px;
    width:32px;
    height:32px;
  }
}

/* CHECKOUT-02 — Imię + nazwisko stack na <480px */
@media (max-width:480px){
  .woocommerce-billing-fields .form-row-first,
  .woocommerce-billing-fields .form-row-last,
  .woocommerce-shipping-fields .form-row-first,
  .woocommerce-shipping-fields .form-row-last,
  #billing_first_name_field,
  #billing_last_name_field,
  #shipping_first_name_field,
  #shipping_last_name_field{
    width:100% !important;
    float:none !important;
    margin-right:0 !important;
  }
}

/* CHECKOUT-04 — Usuń pusty CAPTCHA placeholder (jeśli dotyczy) */
.woocommerce-form-login .empty-captcha-placeholder,
form.woocommerce-checkout .empty-captcha-placeholder,
.login-form .captcha-placeholder:empty,
.woocommerce-form-login__rememberme + .empty:not(:has(*)){
  display:none !important;
}

/* KONTAKT-01 — 4 kafelki → 2x2 na mobile, 1 kolumna na <380px */
@media (max-width:600px){
  .contact-tile-grid,
  .hbt-contact-tiles,
  .contact-info-grid,
  .page-contact .contact-grid{
    grid-template-columns:1fr 1fr !important;
    gap:12px !important;
  }
}
@media (max-width:380px){
  .contact-tile-grid,
  .hbt-contact-tiles,
  .contact-info-grid,
  .page-contact .contact-grid{
    grid-template-columns:1fr !important;
  }
}

/* HOME-01 — Hero slider arrows hide na ≤480px */
@media (max-width:480px){
  .hbt-hero-slider .slick-prev,
  .hbt-hero-slider .slick-next,
  .hbt-hero .slick-prev,
  .hbt-hero .slick-next,
  .hbt-hero-slider .has-nav button[aria-label*="prev" i],
  .hbt-hero-slider .has-nav button[aria-label*="next" i]{
    display:none !important;
  }
}

/* HOME-02 / MARKA-02 — Fade edge na karuzelach + scroll-snap */
@media (max-width:768px){
  .home-banners,
  .home-products-carousel,
  .hbt-brand-chips,
  .hbt-brands-carousel,
  .home-categories-row{
    position:relative;
    scroll-snap-type:x mandatory;
    scroll-behavior:smooth;
  }
  .home-banners > *,
  .home-products-carousel .product,
  .hbt-brand-chips .chip,
  .home-categories-row > *{
    scroll-snap-align:start;
  }
  /* v6.6.62 (2026-05-08) — fade gradient po prawej USUNIĘTY.
   * User feedback: "w prawym rogu sliderow pojawia sie jakis dziwny cien
   * i przyslania czesc slidera produktow". Gradient miał width 32px +
   * 95% opacity bg-color #F8F7F2 — przesłaniał cenę i button DODAJ DO KOSZYKA
   * na ostatniej widocznej karcie. Na fioletowym tle (user testowy) wyglądał
   * jak biały overlay. Mobile carousel ma swipe gesture + arrows nawigacji
   * — fade hint zbędny. */
  .home-banners::after,
  .home-products-carousel::after,
  .hbt-brand-chips::after,
  .home-categories-row::after{
    content: none !important;
    display: none !important;
  }
}

/* HOME-03 — Trust bar 2 kolumny na mobile, font min 12px */
@media (max-width:480px){
  .home-info-bar,
  .home-info-bar--full{
    grid-template-columns:1fr 1fr !important;
    gap:10px !important;
  }
  .home-info-bar .info-item,
  .home-info-bar--full .info-item{
    font-size:12px !important;
  }
  .home-info-bar .info-item strong{
    font-size:13px !important;
  }
  .home-info-bar .info-item i,
  .home-info-bar--full .info-item i{
    font-size:24px !important;
  }
}

/* SKLEP-02 — JS scroll-into-view (klasa-pomocnicza) */
.cat-chip.active,.hbt-cat-chip.active{
  scroll-margin:60px;
}

/* SKLEP-05 — flex-wrap kontrolek sortowania */
@media (max-width:480px){
  .hbt-shop-controls,
  .woocommerce-ordering,
  .shop-toolbar{
    flex-wrap:wrap !important;
    gap:8px !important;
  }
  .hbt-shop-controls > *,
  .shop-toolbar > *{
    flex:1 1 auto;
  }
}

/* SKLEP-07 — Force grid view na ≤768px (ukryj list view toggle) */
@media (max-width:768px){
  ul.products.products-list-view{
    display:grid !important;
    grid-template-columns:repeat(auto-fill, minmax(160px, 1fr)) !important;
  }
  .hbt-view-toggle,
  .shop-view-toggle{
    display:none !important;
  }
}

/* FILTRY-01 — Hero kategorii bez side image na mobile */
@media (max-width:768px){
  .hbt-hero-uni__image,
  .hbt-category-hero__image,
  .hero-category-image{
    display:none !important;
  }
  .hbt-hero-uni,
  .hbt-category-hero{
    grid-template-columns:1fr !important;
    text-align:center;
  }
}

/* FILTRY-02 — Line-clamp dla nazw podkategorii */
.subcategory-tile,
.hbt-subcategory-tile,
.product-category-tile{
  min-height:120px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.subcategory-tile .name,
.hbt-subcategory-tile h3,
.product-category-tile h3{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  font-size:13px;
  line-height:1.3;
  min-height:34px;
}

/* ONAS-02 — About images stacked na <600px */
@media (max-width:600px){
  .about-images,
  .page-about .images-row,
  .hbt-about-images{
    display:flex !important;
    flex-direction:column !important;
    gap:16px !important;
  }
  .about-images img,
  .page-about .images-row img,
  .hbt-about-images img{
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
  }
}

/* DESIGN-01 — Header 3 telefony — consolidate na <1100px */
@media (max-width:1100px) and (min-width:768px){
  .header-phones .phone-line:not(:first-child),
  .hbt-header-phones .phone:not(:first-child),
  .top-bar-phones a:not(:first-of-type){
    display:none !important;
  }
  .header-phones::after,
  .hbt-header-phones::after{
    content:" + 2 więcej";
    font-size:11px;
    color:var(--text-l,#616161);
    margin-left:6px;
  }
}

/* BLOG-04 — Metadata wrap na 2 linie na mobile */
@media (max-width:480px){
  .post-meta,.entry-meta,.hbt-post-meta{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:8px 12px !important;
    font-size:12px;
  }
  .post-meta > span,.entry-meta > span,.hbt-post-meta > *{
    flex:0 0 auto;
  }
}

/* BLOG-05 — Sticky "Wróć do bloga" na mobile */
@media (max-width:768px){
  .single-post .blog-back-mobile{
    position:fixed;
    bottom:16px;
    left:16px;
    z-index:9000;
    background:#fff;
    border:1px solid var(--border,#E0E0E0);
    border-radius:24px;
    padding:8px 16px;
    font-size:13px;
    box-shadow:var(--shadow-card,0 2px 8px rgba(0,0,0,.08));
    text-decoration:none;
    color:var(--dark,#1A1714);
  }
}

/* KOSZYK-05 — Free shipping progress bar (komponent renderowany przez add_action) */
.hbt-free-shipping-progress{
  background:#FBFBF9;
  border:1px solid var(--border-l,#F0F0F0);
  border-radius:8px;
  padding:14px 18px;
  margin:0 0 24px;
}
.hbt-free-shipping-progress__text{
  font-size:14px;
  margin:0 0 8px;
  color:var(--dark,#1A1714);
}
.hbt-free-shipping-progress__text strong{
  color:var(--primary-d,#7CB342);
}
.hbt-free-shipping-progress__bar{
  height:8px;
  background:#E0E0E0;
  border-radius:4px;
  overflow:hidden;
}
.hbt-free-shipping-progress__fill{
  height:100%;
  background:linear-gradient(90deg, var(--primary-l,#AED581), var(--primary-d,#7CB342));
  border-radius:4px;
  transition:width .4s ease;
}
.hbt-free-shipping-progress--complete .hbt-free-shipping-progress__text{
  color:var(--primary-d,#7CB342);
  font-weight:600;
}

/* GENERAL — Body font min 14px na mobile (czytelność) */
@media (max-width:480px){
  body{font-size:max(14px, 1rem)}
  p{font-size:max(14px, 1rem)}
}

/* FAB-ALIGN — Cookie + Back-to-top na tej samej linii poziomej
 *  Audyt user 2026-05-04 (screenshot): cookie FAB jest niżej
 *  niż back-to-top. Wymuszamy ten sam `bottom` dla obu
 *  z najwyższym priorytetem (wzmocnione selektory + transform). */
:root{
  /* Wysokość mobile-bottom-bar (Zadzwoń/Kontakt/Schowek/Moje konto) */
  --hbt-bottom-bar-h:60px;
  /* Gap między FAB a bottom-bar */
  --hbt-fab-gap:20px;
  /* Wynikowy bottom dla FAB-ów */
  --hbt-fab-bottom:24px;
}
@media (max-width:900px){
  :root{
    --hbt-fab-bottom:calc(var(--hbt-bottom-bar-h) + var(--hbt-fab-gap)); /* 80px */
  }
}

/* Back-to-top */
.btt,
button.btt,
#btt{
  bottom:var(--hbt-fab-bottom) !important;
  right:16px !important;
  top:auto !important;
}

/* Complianz Cookie button — wszystkie potencjalne wrappery + sam button */
.cmplz-manage-consent,
button.cmplz-manage-consent,
.cmplz-cookiebanner-icon,
#cmplz-manage-consent-container,
.cmplz-floating-button,
[id^="cmplz-"][class*="manage"]{
  bottom:var(--hbt-fab-bottom) !important;
  left:16px !important;
  right:auto !important;
  top:auto !important;
  position:fixed !important;
  margin:0 !important;
  transform:none !important;
}

/* Identyczny rozmiar dla wizualnej spójności */
.btt,
.cmplz-manage-consent,
button.cmplz-manage-consent{
  width:44px !important;
  height:44px !important;
  min-width:44px !important;
  min-height:44px !important;
  border-radius:50% !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

/* Małe ekrany — proporcjonalnie mniejsze */
@media (max-width:380px){
  .btt,
  .cmplz-manage-consent,
  button.cmplz-manage-consent{
    width:42px !important;
    height:42px !important;
    min-width:42px !important;
    min-height:42px !important;
  }
}

/* =========================================================================
 * SECTION 3 — VISUAL AUDIT FIXES (z v65-visual-fixes.php)
 *   22 fixy CSS: vh-padding, blog spacing, mobile sortowanie, "W skrócie" reorder,
 *   karty produktów hierarchy, single-product layout, brand hero, design system tokens,
 *   typografia, banery quick-links grid, newsletter brand bg, header backdrop blur.
 * ========================================================================= */

/* VIS-01 CRITICAL — Max margins/padding na sekcjach home
 *  Audyt: białe pustki 500-800px między sekcjami
 *  Fix: wymuszamy max-padding na wszystkich sekcjach home + page */
.home-products,
.home-categories,
.home-banners,
.home-info-bar,
.home-info-bar--full,
.home-products-carousel,
.hbt-offer,
.hbt-industries,
.hbt-about,
.hbt-testimonials,
.hbt-brands-section,
.hbt-blog,
.hbt-newsletter,
.hbt-seo-expandable,
section.home-products-carousel,
main.hbt-homepage > section,
.hbt-page-content > section{
  padding-top:48px !important;
  padding-bottom:48px !important;
  margin-top:0 !important;
  margin-bottom:0 !important;
}
@media (max-width:768px){
  .home-products,
  .home-categories,
  .home-banners,
  .home-info-bar,
  .home-info-bar--full,
  .home-products-carousel,
  .hbt-offer,
  .hbt-industries,
  .hbt-about,
  .hbt-testimonials,
  .hbt-brands-section,
  .hbt-blog,
  .hbt-newsletter,
  .hbt-seo-expandable,
  main.hbt-homepage > section,
  .hbt-page-content > section{
    padding-top:32px !important;
    padding-bottom:32px !important;
  }
}

/* Plus: kontener stron page.php (regulamin, polityka, etc.) */
.hbt-page-content,
.hbt-about-content,
.hbt-about-body,
.hbt-custom-content{
  padding-top:24px !important;
  padding-bottom:24px !important;
}

/* USER-REPORT 2026-05-04 #1 — Lupka wyszukiwarki rozsypuje się przy scrollu
 *  Theme ma 2 stany: body:not(.header-scrolled) vs body.header-scrolled
 *  Przejście między nimi powoduje skok lupki. Wymuszamy stabilną pozycję. */
.site-search .search-submit,
body.header-scrolled .site-search .search-submit,
body:not(.header-scrolled) .site-search .search-submit{
  position:relative !important;
  flex:0 0 auto !important;
  width:auto !important;
  min-width:48px !important;
  height:100% !important;
  min-height:42px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 16px !important;
  border-radius:0 var(--btn-radius, 8px) var(--btn-radius, 8px) 0 !important;
  background:var(--primary, #7CB342) !important;
  color:#fff !important;
  border:0 !important;
  transition:background .2s !important;
}
.site-search .search-submit i,
body.header-scrolled .site-search .search-submit i{
  font-size:16px !important;
  line-height:1 !important;
  color:#fff !important;
  margin:0 !important;
}
/* Przy sticky — header zmniejsza height, lupka idzie za */
body.header-scrolled .site-header{
  transition:none !important; /* bez tranzycji, aby lupka się nie animowała */
}

/* USER-REPORT 2026-05-04 #2/#6 — Czarny baner info + asymetria prawej
 *  HISTORIA:
 *   v1: margin-left: calc(50% - 50vw) → przesunął w LEWO
 *   v3: position:relative+left:50%+margin-left:-50vw+width:100vw
 *       → wystawał ~17px po prawej (scrollbar issue)
 *   v4 (2026-05-05): NIE robimy full-width.
 *       Sekcja jest w container, ma radius 16px + padding.
 *       Eliminuje asymetria + zgadza się z user-report #8 (radius wszędzie). */
.home-info-bar:not(.home-info-bar--full),
.home-info-bar{
  position:relative !important;
  left:auto !important;
  right:auto !important;
  margin-left:0 !important;
  margin-right:0 !important;
  width:100% !important;
  max-width:100% !important;
  border-radius:16px !important;
  padding:28px clamp(20px, 4vw, 40px) !important;
  background:#1A1714 !important;
  color:#fff !important;
  display:grid !important;
  grid-template-columns:repeat(4, 1fr) !important;
  gap:24px !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
}
@media (max-width:768px){
  .home-info-bar{
    grid-template-columns:repeat(2, 1fr) !important;
    gap:14px !important;
    padding:18px 14px !important;
  }
  /* USER-REPORT 2026-05-13: 2-kol info-bar mobile potrzebuje mniejszych
   * tekstów/ikon żeby się ładnie zmieścił. */
  .home-info-bar .info-item{
    gap:10px !important;
  }
  .home-info-bar .info-item i{
    font-size:22px !important;
  }
  .home-info-bar .info-item strong{
    font-size:12.5px !important;
    line-height:1.25 !important;
  }
  .home-info-bar .info-item span{
    font-size:11px !important;
    line-height:1.3 !important;
  }
}
/* Tylko bardzo małe telefony (≤320px) → 1 kolumna info-bar */
@media (max-width:320px){
  .home-info-bar{
    grid-template-columns:1fr !important;
    gap:12px !important;
  }
}
.home-info-bar .info-item{
  display:flex !important;
  align-items:center !important;
  gap:14px !important;
  color:#fff !important;
}
.home-info-bar .info-item i{
  font-size:28px !important;
  color:var(--primary, #7CB342) !important;
  flex-shrink:0 !important;
}
.home-info-bar .info-item strong{
  display:block !important;
  font-weight:600 !important;
  color:#fff !important;
  font-size:14px !important;
  line-height:1.3 !important;
}
.home-info-bar .info-item span{
  display:block !important;
  font-weight:400 !important;
  color:rgba(255,255,255,.7) !important;
  font-size:12px !important;
  line-height:1.4 !important;
}

/* VIS-19 HIGH — Blog: ~800px przerwy między akapitami */
.entry-content,
.hbt-post-content,
.single-post .post-content,
article.post .entry-content{
  line-height:1.65;
}
.entry-content > *,
.hbt-post-content > *,
.single-post .post-content > *{
  margin-top:0;
  margin-bottom:18px !important;
}
.entry-content h2,
.entry-content h3,
.hbt-post-content h2,
.hbt-post-content h3{
  margin-top:32px !important;
  margin-bottom:14px !important;
}
.entry-content p,
.hbt-post-content p{
  margin-bottom:16px !important;
}
.entry-content figure,
.entry-content img,
.hbt-post-content figure,
.hbt-post-content img{
  margin:24px auto !important;
}

/* VIS-22 MEDIUM — Kontakt: 800px przerwy po hero */
.page-contact .contact-grid,
.page-contact .hbt-contact-tiles,
.page-contact .contact-info-grid,
.contact-tile-grid{
  margin-top:24px !important;
  margin-bottom:24px !important;
}
.page-contact .hbt-contact-hero,
.page-contact .contact-hero{
  margin-bottom:0 !important;
  padding-bottom:32px !important;
}

/* VIS-15 HIGH — Mobile sklep: 3 paski sortowania → hide redundant
 *  Mobile pokazuje toolbar 3 razy; zostawiamy tylko hbt-shop-toolbar */
@media (max-width:768px){
  /* Ukryj woocommerce native ordering (top + bottom) — używamy hbt-shop-toolbar */
  body.woocommerce-shop .woocommerce-ordering:not(.in-toolbar),
  body.archive .woocommerce-ordering:not(.in-toolbar),
  body.tax-product_brand .woocommerce-ordering:not(.in-toolbar){
    display:none !important;
  }
  /* Ukryj duplicate „FILTRUJ" nag (jeśli widoczny przed głównym toolbarem) */
  .hbt-mobile-filter-trigger:not(.in-toolbar):not(:first-of-type),
  .filter-trigger-bar + .filter-trigger-bar{
    display:none !important;
  }
  /* hbt-shop-toolbar: kompaktowy 1-row */
  .hbt-shop-toolbar{
    flex-wrap:wrap;
    gap:8px;
    padding:10px 12px !important;
  }
  /* Wszystkie elementy: równa szerokość */
  .hbt-shop-toolbar > *{
    flex:1 1 calc(50% - 4px);
    min-width:0;
  }
  .hbt-shop-toolbar select{
    width:100% !important;
    min-width:0 !important;
  }
}

/* VIS-17 HIGH — Mobile produkt: kompresja sekcji ceny
 *  Audyt: ~500px gap po cenach przed kolejną sekcją */
@media (max-width:768px){
  .single-product .sp-price-wrap,
  .single-product .sp-prices,
  .single-product .product .price,
  .single-product .sp-price-block{
    margin:0 0 12px !important;
    padding:0 !important;
  }
  .single-product .sp-price-omnibus,
  .single-product .price-omnibus{
    margin:4px 0 0 !important;
    font-size:11px !important;
    color:var(--text-l, #616161);
  }
  .single-product .sp-rating-row,
  .single-product .sp-stock-row{
    margin:8px 0 !important;
  }
  .single-product .sp-cart-form-wrap,
  .single-product form.cart{
    margin:12px 0 !important;
  }
}

/* VIS-18 HIGH — "W skrócie" mobile reorder przez CSS order
 *  Audyt: na mobile "W skrócie" jest na samym dole
 *  Theme: .sp-summary-short (sekcja "W skrócie") */
@media (max-width:768px){
  .single-product .sp-summary,
  .single-product .summary,
  .single-product .product-summary{
    display:flex !important;
    flex-direction:column !important;
  }
  .single-product .sp-summary-short,
  .single-product .product-summary-short,
  .single-product .sp-short-features{
    order:5 !important; /* po cenie + CTA, przed meta */
    margin:16px 0 !important;
    background:linear-gradient(135deg, rgba(124,179,66,.08), rgba(124,179,66,.03)) !important;
    border-left:3px solid var(--primary, #7CB342) !important;
    border-radius:8px !important;
    padding:14px 16px !important;
  }
  .single-product .product_meta,
  .single-product .sp-meta{
    order:10 !important; /* meta na samym końcu */
  }
}

/* VIS-29 MEDIUM — "W skrócie" desktop styling (tinted box) */
.single-product .sp-summary-short,
.single-product .product-summary-short,
.single-product .sp-short-features{
  background:linear-gradient(135deg, rgba(124,179,66,.06), transparent) !important;
  border-left:3px solid var(--primary, #7CB342);
  border-radius:8px;
  padding:16px 20px;
  font-size:14px;
  line-height:1.55;
}
.single-product .sp-summary-short ul,
.single-product .sp-summary-short li{
  margin:4px 0;
}

/* VIS-21 MEDIUM — Sticky checkout: padding-bottom body */
@media (max-width:768px){
  body.woocommerce-checkout{
    padding-bottom:96px !important;
  }
  body.woocommerce-checkout form.checkout{
    padding-bottom:24px;
  }
}

/* VIS-24 MEDIUM — Word-break PL hyphenation (dzielenie wyrazów)
 *  „prze-mysłowy" → polski hyphenation */
ul.products li.product .product-title,
ul.products li.product .woocommerce-loop-product__title,
.hbt-loop-card__title,
.product-name a,
.wishlist_table .product-name a{
  hyphens:auto;
  -webkit-hyphens:auto;
  -ms-hyphens:auto;
  word-break:keep-all;
  overflow-wrap:break-word;
}

/* VIS-27 MEDIUM — Karty kategorii asymetryczne (różna wysokość) */
.home-categories .category-card,
.home-categories-row > a,
.home-categories-row .home-cat-card,
.hbt-popular-categories .cat-card,
.product-category{
  min-height:140px !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  align-items:center !important;
  text-align:center;
}
.home-categories .category-card .name,
.home-categories-row .home-cat-card h3,
.hbt-popular-categories .cat-card h3,
.product-category h2,
.product-category .woocommerce-loop-category__title{
  display:-webkit-box !important;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:40px;
  font-size:14px;
  line-height:1.3;
}

/* VIS-28 MEDIUM — Karty produktów różna wysokość (różne ceny)
 *  Wymuszamy grid layout + min-height na sekcji ceny.
 *  NB: dedup z UX AUDIT — niżej w tej sekcji jest mocniejsza wersja
 *  (border + shadow + hover) — ostatnia wygrywa. */
ul.products li.product{
  display:flex !important;
  flex-direction:column !important;
}
ul.products li.product .product-inner{
  display:flex !important;
  flex-direction:column !important;
  height:100% !important;
}
ul.products li.product .product-content,
ul.products li.product .product-details{
  flex:1 1 auto !important;
  display:flex !important;
  flex-direction:column !important;
}
ul.products li.product .price,
ul.products li.product .hbt-loop-card__price,
ul.products li.product .price-wrap{
  min-height:80px !important; /* miejsce na max 4 linie cen + Omnibus */
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  margin-top:auto;
}
ul.products li.product .add_to_cart_button,
ul.products li.product .button.add_to_cart_button,
ul.products li.product .product-actions{
  margin-top:auto !important;
}

/* VIS-30 LOW — Testimonial cudzysłów za jasny */
.hbt-testimonials .testimonial-card::before,
.testimonial-quote::before,
.hbt-quote::before{
  color:var(--primary, #7CB342) !important;
  opacity:.6 !important;
}

/* VIS-05 HIGH — Placeholder produktu (gdy brak zdjęcia)
 *  Zamiast zielonego HBT logo → neutralny szary z ikoną */
ul.products li.product .woocommerce-placeholder,
.product-thumbnail .woocommerce-placeholder,
.hbt-product-thumb-wrap .woocommerce-placeholder{
  background:var(--bg2, #FBFBF9) !important;
  border:1px dashed var(--border, #E0E0E0) !important;
  object-fit:contain !important;
  padding:20px !important;
  opacity:.5 !important;
}

/* VIS-11 HIGH — Galeria produktu desktop: tło zamiast pustego białego */
.single-product .woocommerce-product-gallery,
.single-product .sp-gallery,
.single-product .sp-gallery-wrap{
  background:var(--bg2, #FBFBF9);
  border-radius:12px;
  padding:24px;
}
.single-product .woocommerce-product-gallery img{
  object-fit:contain !important;
  max-height:500px !important;
}

/* VIS-06 HIGH — Logo marki na single-product (zbyt małe, dryfuje) */
.single-product .sp-brand-logo,
.single-product .product-brand-logo,
.single-product .sp-price-block .brand-logo{
  min-width:100px !important;
  min-height:50px !important;
  background:var(--bg2, #FBFBF9) !important;
  border-radius:8px !important;
  padding:8px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  vertical-align:middle !important;
}
.single-product .sp-brand-logo img{
  max-height:36px !important;
  width:auto !important;
  object-fit:contain !important;
}

/* VIS-09 HIGH — Karty branż: ikona za duża, niezbalansowane */
.hbt-industries .industry-card,
.hbt-industries .industry-tile,
section.hbt-industries > * > a{
  display:flex !important;
  flex-direction:column !important;
  min-height:200px !important;
}
.hbt-industries .industry-card .icon,
.hbt-industries .industry-card i,
.hbt-industries .industry-card .industry-icon{
  flex:0 0 auto !important;
  height:auto !important;
  font-size:32px !important;
  margin:0 0 12px !important;
  padding:14px !important;
}
.hbt-industries .industry-card .industry-content,
.hbt-industries .industry-card h3{
  flex:1 1 auto;
  margin:0;
}

/* USER-REPORT 2026-05-04 #2 — Single produkt zle skaluje
 *  Pomiar 2026-05-04 wieczór @ viewport 2160px:
 *   - .hbt-sp-wrap: x=80, right=1480, max-width:1400px, brak margin:auto
 *   - 680px pustki po prawej (31% viewportu)
 *   - header.site-header wykorzystuje pełną szerokość OK
 *  Fix: max-width większe + margin auto (centrowanie w viewport) */
.hbt-sp-wrap,
.single-product .hbt-sp-wrap,
.single-product .product.hbt-sp-wrap,
body.single-product .hbt-sp-wrap{
  max-width:min(1600px, calc(100vw - 80px)) !important;
  margin-left:auto !important;
  margin-right:auto !important;
  width:auto !important;
}
/* Trust ribbons (Darmowa dostawa / Gwarancja / 14 dni) — taki sam container */
.hbt-sp-trust,
.product-trust-bar,
.sp-trust-bar,
.hbt-sp-features,
.single-product .product-trust,
.hbt-single-product .trust-features{
  max-width:min(1600px, calc(100vw - 80px)) !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
/* Related products + tabs — też dopasuj */
.single-product .related.products,
.single-product .upsells.products,
.single-product .woocommerce-tabs,
.hbt-related-products,
.hbt-product-tabs{
  max-width:min(1600px, calc(100vw - 80px)) !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
/* Galeria — niech wykorzystuje większą część kolumny lewej */
@media (min-width:1600px){
  .hbt-sp-wrap .sp-gallery,
  .hbt-sp-wrap .woocommerce-product-gallery{
    max-width:none !important;
  }
  .hbt-sp-wrap .woocommerce-product-gallery img{
    max-height:600px !important;
  }
}

/* USER-REPORT 2026-05-04 #3 — Kategoria: opis CENTER zamiast LEFT
 *  Audyt: w zielonym hero-block opis kategorii jest po srodku
 *  i wąsko wycentrowany; ma być wyrównany do lewej i wypełniać
 *  pełną szerokość bloku (bez max-width center constraint). */
.hbt-hero-uni,
.hbt-hero-uni--green,
.hbt-cat-hero,
.hbt-category-hero,
.term-description-wrap,
.woocommerce-products-header{
  text-align:left !important;
}
.hbt-hero-uni .hbt-hero-uni-desc,
.hbt-hero-uni-desc,
.hbt-hero-uni__desc,
.hbt-cat-hero__desc,
.term-description,
.archive-description,
.woocommerce-products-header__title + .term-description,
.product-category-description,
.hbt-page-title-wrap .term-description{
  text-align:left !important;
  max-width:none !important;
  width:100% !important;
  margin-left:0 !important;
  margin-right:0 !important;
}
.hbt-hero-uni-desc p,
.hbt-hero-uni__desc p,
.term-description p,
.archive-description p{
  text-align:left !important;
  margin-left:0 !important;
  margin-right:0 !important;
}
.hbt-hero-uni__title,
.hbt-hero-uni-title,
.hbt-cat-hero__title{
  text-align:left !important;
}

/* USER-REPORT 2026-05-04 #4 — Kategoria producenta (brand)
 *   Logo PNG renderuje się na CZARNYM tle (transparent PNG +
 *   ciemne hero) → zmień tło bloku na białe; dodatkowo wyrównaj
 *   szerokość bloku do reszty banerów na podstronach (cat-hero).
 *
 *   Architektura: brand archiwum używa template archive-product_brand
 *   z banerem .hbt-brand-hero (dziedziczy po .hbt-hero-uni).
 *   Logo jest w .hbt-brand-hero__logo lub .hbt-hero-uni-image. */
.hbt-brand-hero,
.tax-product_brand .hbt-hero-uni,
body.tax-product_brand .hbt-cat-hero,
body.tax-product_brand .hbt-hero-uni--green,
body.tax-product_brand .hbt-hero-uni{
  background:#ffffff !important;
  background-image:none !important;
  color:var(--dark, #1A1714) !important;
  border:1px solid var(--border-l, #F0F0F0) !important;
  border-radius:12px !important;
  padding:32px clamp(16px, 4vw, 48px) !important;
  margin-left:auto !important;
  margin-right:auto !important;
  max-width:var(--container, 1280px) !important;
  width:100% !important;
  box-sizing:border-box !important;
}
body.tax-product_brand .hbt-hero-uni__title,
body.tax-product_brand .hbt-hero-uni-title,
.hbt-brand-hero h1,
.hbt-brand-hero__title{
  color:var(--dark, #1A1714) !important;
}
body.tax-product_brand .hbt-hero-uni-desc,
body.tax-product_brand .hbt-hero-uni__desc,
body.tax-product_brand .term-description,
.hbt-brand-hero .term-description,
.hbt-brand-hero p{
  color:var(--text-l, #424242) !important;
}
/* Logo brand — biały kontener (dla transparent PNG) + równa szerokość */
.hbt-brand-hero__logo,
.hbt-brand-hero .hbt-hero-uni-image,
body.tax-product_brand .hbt-hero-uni-image,
body.tax-product_brand .hbt-hero-uni__image,
body.tax-product_brand .brand-logo-hero{
  background:#ffffff !important;
  border:1px solid var(--border-l, #F0F0F0) !important;
  border-radius:12px !important;
  padding:24px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:auto !important;
  max-width:280px !important;
  min-height:140px !important;
  margin:0 auto 16px !important;
}
.hbt-brand-hero__logo img,
.hbt-brand-hero .hbt-hero-uni-image img,
body.tax-product_brand .hbt-hero-uni-image img,
body.tax-product_brand .hbt-hero-uni__image img,
body.tax-product_brand .brand-logo-hero img{
  max-height:80px !important;
  width:auto !important;
  max-width:100% !important;
  object-fit:contain !important;
  background:transparent !important;
  filter:none !important; /* na wypadek invert dziedziczonego z dark hero */
  mix-blend-mode:normal !important;
}
@media (max-width:768px){
  .hbt-brand-hero,
  body.tax-product_brand .hbt-hero-uni{
    padding:24px 16px !important;
  }
  .hbt-brand-hero__logo,
  body.tax-product_brand .hbt-hero-uni-image{
    padding:16px !important;
    max-width:200px !important;
    min-height:100px !important;
  }
  .hbt-brand-hero__logo img,
  body.tax-product_brand .hbt-hero-uni-image img{
    max-height:60px !important;
  }
}

/* USER-REPORT 2026-05-05 #6 — ASYMETRIA PRAWEJ STRONY (globalny fix)
 *  Audyt z czerwonym tłem: wszystkie pełnoekranowe sekcje (hero, quick links,
 *  trust bar, bestsellery linia separator) wyciekały ~17-30px po prawej.
 *  Przyczyna: 100vw nie uwzględnia scrollbar (na desktop ~17px).
 *  Fix: globalny overflow-x:clip + symetryczny container padding +
 *  zamiana 100vw na 100% w pełnoekranowych sekcjach. */
html, body{
  overflow-x:clip !important; /* nowsze niż hidden, lepsze dla position:sticky */
  max-width:100vw !important;
  box-sizing:border-box !important;
}
*, *::before, *::after{
  box-sizing:border-box;
}
/* Container symetryczne padding — wymuś gdyby motyw miał asymetric */
.container,
.container-fluid,
.hbt-container,
.row,
.site-container,
.site-content > .container,
main.hbt-homepage > .container{
  padding-left:max(16px, env(safe-area-inset-left)) !important;
  padding-right:max(16px, env(safe-area-inset-right)) !important;
  margin-left:auto !important;
  margin-right:auto !important;
  max-width:min(1280px, 100% - 32px) !important;
  box-sizing:border-box !important;
}
/* Wszystkie sekcje home — bez 100vw */
main.hbt-homepage > section,
.home-products,
.home-categories,
.home-banners,
.home-info-bar,
.home-trust-bar,
.hbt-trust-bar,
.home-products-carousel,
.hbt-offer,
.hbt-industries,
.hbt-about,
.hbt-testimonials,
.hbt-brands-section,
.hbt-blog,
.hbt-newsletter,
.hbt-popular-categories,
.home-popular-categories,
.hbt-seo-expandable,
.hbt-page-content > section{
  width:100% !important;
  max-width:100% !important;
  margin-left:0 !important;
  margin-right:0 !important;
  position:relative !important;
  left:auto !important;
  right:auto !important;
  box-sizing:border-box !important;
}

/* USER-REPORT 2026-05-05 #7 — Quick links banery (5+ items grid)
 *  User: "C — rozciągnij ostatni full-width gdy 5, ale dodam 6 to ma działać 2x3"
 *  Logic: 2-col mobile, 3-col desktop. Gdy ostatni element jest sam w wierszu
 *   (5/3 = 1 zostaje, 5/2 = 1 zostaje) — rozciąga się na full-row.
 *  Gdy 6 → 2x3 (mobile) lub 3x2 (desktop) symetryczne, gdy 7+ kolejne wiersze. */
.home-banners,
.home-quick-links,
.hbt-banner-grid,
.hbt-promo-banners{
  display:grid !important;
  grid-template-columns:repeat(2, 1fr) !important;
  gap:16px !important;
  margin:24px 0 !important;
}
@media (min-width:992px){
  .home-banners,
  .home-quick-links,
  .hbt-banner-grid,
  .hbt-promo-banners{
    grid-template-columns:repeat(3, 1fr) !important;
    gap:20px !important;
  }
}
/* Każdy baner: spojny radius + overflow hidden + min-height */
.home-banners > *,
.home-quick-links > *,
.hbt-banner-grid > *,
.hbt-promo-banners > *{
  border-radius:16px !important;
  overflow:hidden !important;
  min-height:110px !important;
  display:flex !important;
  align-items:center !important;
}
/* Magic: ostatni element gdy nieparzysty w wierszu — full-width
   (2-col): 5 elementów → 5. (last-child:nth-child(5)) full-width
   (3-col): 4 elementów → 4. full-width; 7 elementów → 7. full-width;
            5 elementów → 4. + 5. każdy 1.5col (specjalne)
   Najprostsza reguła: jeśli last-child jest "sam w wierszu" (5/2=remainder 1) → full */
.home-banners > *:nth-child(5):last-child,
.home-quick-links > *:nth-child(5):last-child,
.hbt-banner-grid > *:nth-child(5):last-child,
.hbt-promo-banners > *:nth-child(5):last-child{
  grid-column:1 / -1 !important;
}
/* 7 sztuk → 7. (sam w 3-col mode) full-width */
@media (min-width:992px){
  .home-banners > *:nth-child(7):last-child,
  .hbt-banner-grid > *:nth-child(7):last-child{
    grid-column:1 / -1 !important;
  }
  /* 4 sztuk w 3-col → 4. (sam w wierszu) full-width */
  .home-banners > *:nth-child(4):last-child,
  .hbt-banner-grid > *:nth-child(4):last-child{
    grid-column:1 / -1 !important;
  }
}

/* USER-REPORT 2026-05-05 #8 — Border-radius wszędzie (spojność)
 *  Wszystkie sekcje, banery, hero, trust bar, kategorie cards
 *  — radius 16px (główne) lub 12px (małe karty/chipy). */
.hbt-hero,
.hbt-hero-slider,
.home-hero,
.home-slider,
.hbt-main-slider,
.hbt-hero-uni,
.hbt-cat-hero,
.hbt-page-hero,
.entry-hero,
.hbt-promo-banner,
.hbt-cta-banner,
.hbt-section-bg,
.home-section-bg,
section[class*="hbt-bg-"],
section[class*="home-bg-"]{
  border-radius:16px !important;
  overflow:hidden !important;
}
/* Małe karty/chipy/ikony — mniejszy radius */
.hbt-chip,
.hbt-tag,
.hbt-pill,
.product-category,
.cat-card,
.hbt-cat-card,
.hbt-product-card,
.testimonial-card,
.industry-card,
.industry-tile,
.brand-card,
.hbt-card{
  border-radius:12px !important;
  overflow:hidden !important;
}
/* Karty produktów loop — radius też (dedup z UX AUDIT poniżej, najnowsza wygrywa) */
ul.products li.product,
ul.products li.product .product-inner,
.hbt-loop-card,
.hbt-loop-card__inner{
  border-radius:12px !important;
  overflow:hidden !important;
}

/* USER-REPORT 2026-05-05 #9 — Popularne kategorie: tło sekcji
 *  User: "unikalny styl ale niech ma tło sekcji"
 *  Dodaj light tint background do całej sekcji + radius. */
.hbt-popular-categories,
.home-popular-categories,
section.popular-categories,
.hbt-popular-cats-section{
  background:linear-gradient(180deg, var(--bg2, #FBFBF9) 0%, #ffffff 100%) !important;
  border-radius:16px !important;
  padding:40px clamp(20px, 4vw, 32px) !important;
  margin:32px 0 !important;
  border:1px solid var(--border-l, #F0F0F0) !important;
}
/* Tytuł sekcji — zostaje unikalny (border-bottom underline, nie pasek po lewej) */
.hbt-popular-categories .section-title,
.hbt-popular-categories h2,
.home-popular-categories h2,
.home-popular-categories .section-title{
  position:relative !important;
  padding-bottom:16px !important;
  margin-bottom:24px !important;
  font-weight:700 !important;
  border-bottom:2px solid var(--primary, #7CB342) !important;
  display:block !important;
}
/* Karty wewnątrz: spojny radius i białe tło na lekkim szarym sekcji */
.hbt-popular-categories .cat-card,
.hbt-popular-categories > * > a,
.home-popular-categories .cat-card{
  background:#ffffff !important;
  border:1px solid var(--border-l, #F0F0F0) !important;
  border-radius:12px !important;
  padding:20px !important;
  transition:all .2s !important;
}
.hbt-popular-categories .cat-card:hover{
  border-color:var(--primary, #7CB342) !important;
  transform:translateY(-2px) !important;
  box-shadow:0 8px 16px rgba(124,179,66,.08) !important;
}

/* USER-REPORT 2026-05-05 #10 — Newsletter: czarne na czarnym
 *  Audyt: tło newslettera jest czarne, napisy też czarne → niewidoczne.
 *  Fix: brand zielony gradient bg + biały tekst + ciemny czarny CTA button. */
.hbt-newsletter,
.home-newsletter,
.newsletter-section,
section.hbt-newsletter,
section.newsletter,
.hbt-newsletter-block,
.hbt-newsletter-section{
  background:linear-gradient(135deg, var(--primary, #7CB342) 0%, var(--primary-d, #689F38) 100%) !important;
  color:#ffffff !important;
  border-radius:16px !important;
  padding:40px clamp(20px, 4vw, 48px) !important;
  margin:32px 0 !important;
  border:0 !important;
  position:relative !important;
  overflow:hidden !important;
}
/* Subtle background pattern — opcjonalny zielony gradient overlay */
.hbt-newsletter::before,
.home-newsletter::before{
  content:'' !important;
  position:absolute !important;
  inset:0 !important;
  background:radial-gradient(circle at 80% 20%, rgba(255,255,255,.12) 0%, transparent 50%) !important;
  pointer-events:none !important;
  z-index:0 !important;
}
.hbt-newsletter > *,
.home-newsletter > *{
  position:relative !important;
  z-index:1 !important;
}
/* Wszystkie napisy w newsletter — białe */
.hbt-newsletter h1,
.hbt-newsletter h2,
.hbt-newsletter h3,
.hbt-newsletter h4,
.hbt-newsletter p,
.hbt-newsletter label,
.hbt-newsletter span,
.hbt-newsletter strong,
.home-newsletter h1,
.home-newsletter h2,
.home-newsletter h3,
.home-newsletter h4,
.home-newsletter p,
.home-newsletter label,
.home-newsletter span{
  color:#ffffff !important;
}
.hbt-newsletter a,
.home-newsletter a{
  color:#ffffff !important;
  text-decoration:underline !important;
}
/* Input email — białe tło, ciemny tekst, pill shape */
.hbt-newsletter input[type="email"],
.hbt-newsletter input[type="text"],
.home-newsletter input[type="email"],
.home-newsletter input[type="text"]{
  background:#ffffff !important;
  color:var(--dark, #1A1714) !important;
  border:0 !important;
  padding:14px 20px !important;
  border-radius:999px !important;
  font-size:15px !important;
  width:100% !important;
  max-width:380px !important;
}
.hbt-newsletter input::placeholder,
.home-newsletter input::placeholder{
  color:rgba(26,23,20,.5) !important;
}
/* Submit button — ciemny czarny pill (kontrast do zielonego tła) */
.hbt-newsletter button[type="submit"],
.hbt-newsletter input[type="submit"],
.hbt-newsletter .submit-btn,
.hbt-newsletter .btn-primary,
.home-newsletter button[type="submit"],
.home-newsletter input[type="submit"]{
  background:var(--dark, #1A1714) !important;
  color:#ffffff !important;
  border:0 !important;
  padding:14px 28px !important;
  border-radius:999px !important;
  font-size:14px !important;
  font-weight:600 !important;
  cursor:pointer !important;
  transition:all .2s !important;
}
.hbt-newsletter button[type="submit"]:hover,
.hbt-newsletter input[type="submit"]:hover,
.home-newsletter button[type="submit"]:hover,
.home-newsletter input[type="submit"]:hover{
  background:#000 !important;
  transform:translateY(-1px) !important;
  box-shadow:0 4px 12px rgba(0,0,0,.2) !important;
}
/* Checkboxes RODO w newsletter — białe ramki */
.hbt-newsletter input[type="checkbox"],
.home-newsletter input[type="checkbox"]{
  accent-color:#ffffff !important;
}
/* Mobile newsletter: stack vertical */
@media (max-width:768px){
  .hbt-newsletter,
  .home-newsletter{
    padding:32px 20px !important;
    text-align:center !important;
  }
  .hbt-newsletter input[type="email"],
  .home-newsletter input[type="email"]{
    max-width:100% !important;
    margin-bottom:12px !important;
  }
  .hbt-newsletter button[type="submit"],
  .home-newsletter button[type="submit"]{
    width:100% !important;
  }
}

/* USER-REPORT 2026-05-05 #11 — MOBILE: 3 duplikaty filter/sort na sklepie
 *  Audyt z czerwonego tła:
 *   Box 1 "FILTRUJ → Filtry" = #hbtSidebarToggle (mobile drawer trigger)
 *   Box 2 pills "Wszystkie/Części..." = .hbt-shop-cat-tabs (kategorie)
 *   Box 3 "SORTUJ + FILTRUJ" = #hbtMToolbar (główny mobile toolbar)
 *   Box 4 "SORTUJ + grid/list" = .hbt-shop-toolbar (desktop toolbar)
 *  Decyzja: zostaje TYLKO #hbtMToolbar. #hbtSidebarToggle + .hbt-shop-toolbar HIDDEN na mobile. */
@media (max-width:768px){
  /* Box 1 hide — toggle drawer (już mamy w mobile toolbar przycisk Filtruj) */
  #hbtSidebarToggle,
  .hbt-sidebar-toggle{
    display:none !important;
  }
  /* Box 4 hide — desktop toolbar (sortuj/view) zostaje tylko #hbtMToolbar */
  body.archive .hbt-shop-toolbar,
  body.woocommerce-shop .hbt-shop-toolbar,
  body.tax-product_brand .hbt-shop-toolbar,
  body.tax-product_cat .hbt-shop-toolbar{
    display:none !important;
  }
  /* Mobile toolbar (#hbtMToolbar) — zostaw widoczny, dopracuj styling.
   * v6.6.38 FIX: BYŁ display:flex → panel SORTUJ rozwijał się OBOK przycisków
   * zamiast POD nimi, bo panel + tabs były flex-itemami w jednym row.
   * HTML ma wrapper .hbt-mtoolbar-tabs (grid 1fr 1fr) — block layout
   * wystarczy żeby tabs były na górze i panel pod spodem. */
  #hbtMToolbar,
  .hbt-mtoolbar{
    display:block !important;
    margin:16px 0 !important;
    padding:0 !important;
    background:transparent !important;
    border-radius:0 !important;
    overflow:visible !important;
  }
  /* v6.6.38: poprawiony selektor — przyciski są w .hbt-mtoolbar-tabs, nie
   * direct children. Stary `#hbtMToolbar > button` nie matchował niczego. */
  #hbtMToolbar .hbt-mtoolbar-tab,
  .hbt-mtoolbar .hbt-mtoolbar-tab{
    background:#ffffff !important;
    border:1px solid var(--border, #E0E0E0) !important;
    border-radius:12px !important;
    padding:14px 16px !important;
    font-size:14px !important;
    font-weight:600 !important;
    color:var(--dark, #1A1714) !important;
    box-shadow:0 1px 3px rgba(0,0,0,.04) !important;
  }
  /* Gap między 2 kafelkami SORTUJ + FILTRUJ */
  #hbtMToolbar .hbt-mtoolbar-tabs,
  .hbt-mtoolbar .hbt-mtoolbar-tabs{
    gap:12px !important;
  }
  /* Mobile toolbar panels (sortuj options dropdown) */
  .hbt-mtoolbar-panel{
    background:#ffffff !important;
    border-radius:12px !important;
    margin-top:8px !important;
    padding:16px !important;
    box-shadow:0 4px 12px rgba(0,0,0,.08) !important;
  }
}
/* Mobile pills (kategorie tabs) — wrap zamiast scroll, lub jeśli scroll to z fade */
@media (max-width:768px){
  .hbt-cat-pills,
  .hbt-shop-cat-tabs,
  .hbt-category-tabs,
  .woocommerce-shop .hbt-shop-cat-pills,
  .archive .hbt-shop-cat-pills{
    display:flex !important;
    flex-wrap:nowrap !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    -webkit-overflow-scrolling:touch !important;
    scrollbar-width:none !important;
    gap:8px !important;
    padding:8px 16px 8px 16px !important;
    margin:0 -16px 16px -16px !important; /* full-bleed scroll */
    /* Visual cue: gradient fade po prawej */
    -webkit-mask-image:linear-gradient(to right, black 90%, transparent 100%) !important;
    mask-image:linear-gradient(to right, black 90%, transparent 100%) !important;
  }
  .hbt-cat-pills::-webkit-scrollbar,
  .hbt-shop-cat-tabs::-webkit-scrollbar{
    display:none !important;
  }
  .hbt-cat-pills > *,
  .hbt-shop-cat-tabs > *{
    flex-shrink:0 !important;
    white-space:nowrap !important;
  }
}

/* USER-REPORT 2026-05-05 #12 — Tytuł "Sklep" przylega do krawędzi
 *  Audyt: tytuł H1 "Sklep" / "Promocje" / "Nowości" na archive
 *   nie ma container padding na mobile. */
@media (max-width:768px){
  body.archive .page-title,
  body.woocommerce-shop .page-title,
  body.archive h1.entry-title,
  body.woocommerce-shop h1.entry-title,
  .woocommerce-products-header,
  .hbt-shop-header,
  .hbt-archive-header,
  body.archive .hbt-page-title-wrap,
  body.woocommerce-shop .hbt-page-title-wrap{
    padding-left:16px !important;
    padding-right:16px !important;
    box-sizing:border-box !important;
  }
}

/* USER-REPORT 2026-05-05 #13 — Trust bar mobile niespójność marginesu
 *  Audyt: pasek "Wysyłka 24h / Raty / Doradca" na archive ma czerwone
 *   pasy po bokach na mobile. Wymusza container padding. */
@media (max-width:768px){
  .hbt-trust-bar,
  .home-trust-bar,
  .home-info-bar,
  .archive-trust-bar,
  .hbt-archive-info-bar{
    margin-left:16px !important;
    margin-right:16px !important;
    padding:20px 16px !important;
    border-radius:12px !important;
  }
  /* Info bar 3-col mobile → kompakt */
  .home-info-bar,
  .hbt-archive-info-bar{
    grid-template-columns:repeat(3, 1fr) !important;
    gap:8px !important;
    padding:16px 12px !important;
  }
  .home-info-bar .info-item,
  .hbt-archive-info-bar .info-item{
    flex-direction:column !important;
    text-align:center !important;
    gap:4px !important;
  }
  .home-info-bar .info-item i,
  .hbt-archive-info-bar .info-item i{
    font-size:20px !important;
  }
  .home-info-bar .info-item strong,
  .hbt-archive-info-bar .info-item strong{
    font-size:11px !important;
  }
  .home-info-bar .info-item span,
  .hbt-archive-info-bar .info-item span{
    font-size:9px !important;
  }
}

/* USER-REPORT 2026-05-05 #14 — Header search wystaje za prawą krawędź mobile */
@media (max-width:768px){
  .site-header,
  .hbt-mobile-search-row,
  .header-search-mobile,
  body.archive .site-header form[role="search"],
  body.woocommerce-shop .site-header form[role="search"]{
    box-sizing:border-box !important;
  }
  .hbt-mobile-search-row,
  .header-search-mobile{
    padding-left:16px !important;
    padding-right:16px !important;
    width:100% !important;
    max-width:100% !important;
  }
  .hbt-mobile-search-row > *,
  .header-search-mobile > *{
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
  }
}

/* USER-REPORT 2026-05-05 BONUS — Opisy sekcji (subtitle) za jasne
 *  Audyt: opis pod tytułem sekcji ("Dostarczamy sprzęt...", "Kompleksowe...")
 *   był jasno-szary, mało czytelny. */
.hbt-section-subtitle,
.section-subtitle,
.hbt-section-desc,
.home-section-desc,
section .section-description,
section > p:first-of-type:not(:has(strong)){
  color:var(--text, #424242) !important;
  font-weight:400 !important;
  opacity:1 !important;
}

/* AUDIT 2026-05-05 v2 — KOREKTA: właściwy selektor quick-links to `.banner-track` (NIE .promo-bar!)
 *
 *  HISTORIA:
 *   v1 (rano): myślałem że `.promo-bar` to quick-links → DODAŁEM grid 5-col
 *      → BUG: .promo-bar to TOP BAR (zielony pasek z telefonem!) → popsuł go
 *   v2 (live audit): rzeczywista struktura quick-links:
 *      .home-banners > .banner-track (flex) > 5 × .banner-card
 *      Theme stosuje display:flex na .banner-track — moje CSS musi force grid.
 *
 * v3 (2026-05-05 evening): theme JS lub CSS ustawia width:347px na .banner-track
 * → mój fix przegrywał specifity. Dodaję html body boost + auto-fit grid +
 * resetuje wszystkie potencjalnie nadpisujące właściwości. */
html body .home-banners > .banner-track,
html body .banner-track,
html body div.banner-track,
html body .hbt-banner-track,
html body .hbt-promo-tiles,
html body .promo-tiles,
html body .home-promos{
  display:grid !important;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap:16px !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  overflow:visible !important;
  margin:0 !important;
  padding:0 !important;
  transform:none !important; /* anuluj translateX z carousel JS */
  flex:initial !important;
}
@media (max-width: 768px){
  html body .home-banners > .banner-track,
  html body .banner-track,
  html body div.banner-track{
    grid-template-columns:repeat(2, 1fr) !important;
    gap:8px !important;
  }
  /* USER-REPORT 2026-05-13: kafle 2-kol mobile potrzebują mniejszego tekstu/ikon
   * (przy 2 kolumnach na 393px iPhone karta = ~190px wide, oryginalne 16/28px za duże). */
  html body .banner-track > .banner-card,
  html body .banner-track > a.banner-card,
  html body .banner-track > a{
    min-height: 92px !important;
    padding: 10px 12px !important;
  }
  html body .banner-track .bc-text strong{
    font-size: 13px !important;
    line-height: 1.25 !important;
  }
  html body .banner-track .bc-text span{
    font-size: 9px !important;
    line-height: 1.2 !important;
  }
  html body .banner-track .bc-icon .fas,
  html body .banner-track .bc-icon i{
    font-size: 22px !important;
  }
}
/* Tylko bardzo małe telefony (≤320px = stary iPhone SE) → 1 kolumna */
@media (max-width: 320px){
  html body .home-banners > .banner-track,
  html body .banner-track,
  html body div.banner-track{
    grid-template-columns:1fr !important;
  }
}
html body .banner-track > .banner-card,
html body .banner-track > a.banner-card,
html body .banner-track > a,
html body .hbt-banner-track > .banner-card,
html body .hbt-promo-tiles > *,
html body .promo-tiles > *{
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
  flex:initial !important;
  border-radius:16px !important;
  overflow:hidden !important;
  min-height:110px !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:flex-end !important;
  box-sizing:border-box !important;
  word-break:normal !important;
  white-space:normal !important;
  writing-mode:horizontal-tb !important;
}
/* Ostatni element gdy nieparzysty (5 cards w 2-col → full row) */
@media (max-width: 768px){
  html body .banner-track > .banner-card:nth-child(5):last-child,
  html body .banner-track > a.banner-card:nth-child(5):last-child{
    grid-column:1 / -1 !important;
  }
}

/* USER-REPORT 2026-05-13 — quick-links pokazują 5 kart w siatce 3-col → 1 puste pole.
 * Fix: na desktop (≥769px) jeśli mamy DOKŁADNIE 5 kart, rozkładamy 3+2:
 *  - 6-kolumnowa siatka (zamiast auto-fit minmax(180px, 1fr))
 *  - karty 1-3 spanują po 2 cols (równo w wierszu 1)
 *  - karty 4-5 spanują po 3 cols (po pół wiersza 2 — bez pustych pól)
 * Selectory `:nth-child(N):nth-last-child(M)` aktywują się TYLKO przy total=5.
 * Gdy dodasz 6. baner — wraca do auto-fit 3-col bez problemu.
 *
 * v6.6.81 (2026-05-13 #2): plus wymuszamy RÓWNE WYSOKOŚCI rzędów.
 * Bez tego rząd 2 (karty span 3) mógł być wyższy niż rząd 1 (karty span 2)
 * bo grid-auto-rows = auto = max-content per row. Fix: 1fr na auto-rows +
 * height 100% na kartach + align-items stretch. */
@media (min-width: 769px){
  html body .home-banners > .banner-track,
  html body .banner-track,
  html body div.banner-track{
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    grid-auto-rows: 1fr !important;
    align-items: stretch !important;
  }
  html body .banner-track > .banner-card,
  html body .banner-track > a.banner-card,
  html body .banner-track > a{
    grid-column: span 2 !important;
    height: 100% !important;
    min-height: 130px !important;
    align-self: stretch !important;
  }
  /* Gdy DOKŁADNIE 5 kart (4. od końca = 2., 5. od końca = 1.) — span 3 */
  html body .banner-track > .banner-card:nth-child(4):nth-last-child(2),
  html body .banner-track > a.banner-card:nth-child(4):nth-last-child(2),
  html body .banner-track > .banner-card:nth-child(5):nth-last-child(1),
  html body .banner-track > a.banner-card:nth-child(5):nth-last-child(1){
    grid-column: span 3 !important;
  }
}

/* CRITICAL FIX v2 (2026-05-05) — przywróć TOP BAR (.promo-bar) do działania
 *  Top bar theme: .promo-bar > .container-full (.flex) > .promo-left/.promo-center/.promo-right
 *  Mój wcześniejszy fix `.promo-bar { grid 5-col }` to popsuł.
 *  Reset: nie ruszaj .promo-bar, niech działa default theme'a. */
.promo-bar{
  display:block !important; /* RESET: zdejmuje błędny grid z mojej v1 */
}
.promo-bar > .container-full,
.promo-bar .container-full{
  display:flex !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:16px !important;
  padding-left:max(16px, env(safe-area-inset-left)) !important;
  padding-right:max(16px, env(safe-area-inset-right)) !important;
  width:100% !important;
  max-width:100% !important;
}
.promo-bar .promo-left,
.promo-bar .promo-center,
.promo-bar .promo-right{
  flex:0 1 auto !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
.promo-bar .promo-center{
  flex:1 1 auto !important;
  text-align:center !important;
  min-width:0 !important;
}
@media (max-width:768px){
  .promo-bar .promo-center,
  .promo-bar .promo-left{
    display:none !important; /* na mobile zostaw tylko telefon w promo-right */
  }
  .promo-bar .promo-right{
    flex:1 1 auto !important;
    text-align:center !important;
  }
}

/* AUDIT 2026-05-05 — UX-06 — Sticky bottom bar zakrywa treść
 *  v2 (2026-05-05): selektor `body` był nadpisywany przez WP/WC base CSS.
 *  Wymuszamy mocniejszy `html body.foo` z layered approach. */
@media (max-width:768px){
  html body,
  html body.archive,
  html body.home,
  html body.single,
  html body.page,
  html body.woocommerce-page,
  html body.woocommerce-shop,
  html body.archive.woocommerce-shop{
    padding-bottom:72px !important; /* miejsce na mobile-bottom-bar */
  }
  /* Wyjątek: na checkout już mamy w VIS-21 96px, zostaw */
  html body.woocommerce-checkout{
    padding-bottom:96px !important;
  }
  /* Wyjątek: na koszyk + checkout sticky bar JEST ukryty (mamy fix w v6) — nie potrzeba paddingu */
  html body.woocommerce-cart{
    padding-bottom:24px !important; /* normalne padding, nie ma sticky-bar */
  }
  /* Mobile bottom bar — fixed na dole + safe-area dla iPhone X+ */
  .mobile-bottom-bar,
  .hbt-mobile-bottom-bar{
    position:fixed !important;
    bottom:0 !important;
    left:0 !important;
    right:0 !important;
    z-index:9000 !important;
    padding-bottom:env(safe-area-inset-bottom) !important;
    background:#ffffff !important;
    box-shadow:0 -2px 12px rgba(0,0,0,.08) !important;
  }
}

/* AUDIT 2026-05-05 — UX-04 — Pusty koszyk: podwójna ikona
 *  WC empty cart renderuje 2x ikonę (raz z theme, raz z WC default). */
.cart-empty + .cart-empty .cart-icon,
.woocommerce-cart .cart-empty .cart-icon ~ .cart-icon,
.cart-empty .cart-icon:not(:first-of-type),
.cart-empty .empty-cart-icon:not(:first-of-type),
.hbt-cart-empty-icon:not(:first-of-type){
  display:none !important;
}
/* Plus: jeśli WC empty notice ma <i class="cart"> obok <svg cart> — hide jeden */
.woocommerce-cart .cart-empty.woocommerce-info::before{
  display:none !important;
}

/* AUDIT 2026-05-05 — QA-05 — Tablet 768-991px: sidebar przesłania hero
 *  Lewy sidebar kategorii shop nakłada się na slider/content.
 *  Fix: ukryj sidebar między 768-991, mobile drawer toggle przejmuje. */
@media (min-width:768px) and (max-width:991px){
  body.woocommerce-shop .hbt-shop-sidebar,
  body.archive .hbt-shop-sidebar,
  body.tax-product_cat .hbt-shop-sidebar,
  body.tax-product_brand .hbt-shop-sidebar,
  .hbt-shop-grid > .hbt-shop-sidebar:first-child{
    display:none !important;
  }
  body.woocommerce-shop .hbt-shop-grid,
  body.archive .hbt-shop-grid{
    grid-template-columns:1fr !important; /* bez sidebar = pełna szerokość */
  }
}

/* AUDIT 2026-05-05 — QA-09 — "Do darmowej dostawy brakuje" obcięty na tablecie */
.free-shipping-bar,
.hbt-free-shipping-bar,
.hbt-shipping-progress,
.header-shipping-info{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width:100%;
}
@media (max-width:991px){
  .free-shipping-bar,
  .hbt-free-shipping-bar,
  .header-shipping-info{
    font-size:12px !important;
  }
}
@media (max-width:768px){
  .free-shipping-bar .full-text,
  .hbt-free-shipping-bar .full-text{
    display:none !important;
  }
  .free-shipping-bar .short-text,
  .hbt-free-shipping-bar .short-text{
    display:inline !important;
  }
}

/* AUDIT 2026-05-05 — QA-04 — Opis produktu ALL CAPS w środku
 *  Wymuszamy normal case na nagłówkach inside .product description. */
.woocommerce-product-details__short-description,
.woocommerce-Tabs-panel--description,
.product .entry-summary,
.product-description,
.hbt-sp-description{
  text-transform:none !important;
}
.woocommerce-product-details__short-description *,
.woocommerce-Tabs-panel--description *,
.product .entry-summary p,
.product-description *{
  text-transform:none !important;
}
/* Wyjątek: zostaw ALL CAPS dla badges/chipów */
.woocommerce-Tabs-panel--description .badge,
.woocommerce-Tabs-panel--description .chip,
.product-description .label-badge{
  text-transform:uppercase !important;
}

/* UX AUDIT 2026-05-05 — DESIGN SYSTEM TOKENS
 *  Spacing 8px grid + Type scale Modular 1.25 (Major Third) */
:root{
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  40px;
  --space-xl:  64px;
  --space-2xl: 80px;
  --text-xs:   12px;
  --text-sm:   14px;
  --text-base: 16px;
  --text-lg:   18px;
  --text-xl:   20px;
  --text-2xl:  24px;
  --text-3xl:  30px;
  --text-4xl:  38px;
  --text-5xl:  48px;
  /* Brand color tokens */
  --color-brand-light: #8BC34A;
  --color-brand:       #5a9216;
  --color-brand-dark:  #3f6e1a;
  --color-accent:      #FDD835;
  --color-accent-warm: #e8a400;
  --color-accent-red:  #d32f2f;
}

/* UX AUDIT — Typography hierarchy fix
 *  Audyt: H1=H2=32px (brak hierarchii), H3=14px (zbyt drastyczny skok). */
h1, .entry-title, h1.product_title, .hbt-page-title{
  font-size: clamp(26px, 3vw, 38px) !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
}
/* H2 sekcji na home — wyróżnione zielonym akcentem */
section h2,
.hbt-section-title,
.section-header-lg,
.home-section h2,
.section-title,
h2.section-heading{
  font-size: clamp(22px, 2.5vw, 30px) !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}
/* H3 — nie za małe */
h3, .hbt-card-title,
ul.products li.product .woocommerce-loop-product__title,
.hbt-loop-card__title,
.product-title{
  font-size: clamp(15px, 1.2vw, 18px) !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
}
h4{ font-size: var(--text-lg) !important; line-height: 1.3 !important; font-weight: 600 !important; }

/* Button text — większe dla CTA */
.button, .hbt-btn, .wp-block-button__link,
.single_add_to_cart_button,
.add_to_cart_button{
  font-size: 14px !important;
  letter-spacing: 0.3px !important;
}

/* UX AUDIT — KARTY PRODUKTÓW: padding + shadow + hover
 *  Audyt: padding 0px, shadow none, hover bez efektu (transition jest, ale shadow brak)
 *  dedup z USER-REPORT #8 (border-radius 12px), najnowsza wygra: dodaje border + shadow + bg */
ul.products li.product,
.hbt-loop-card,
.hbt-product-card{
  border-radius: 12px !important;
  border: 1px solid #ebebeb !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
  transition: box-shadow 0.25s ease, transform 0.25s ease !important;
  overflow: hidden !important;
  background: #ffffff !important;
}
ul.products li.product:hover,
.hbt-loop-card:hover,
.hbt-product-card:hover{
  box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
  transform: translateY(-2px) !important;
  border-color: #d8e6c4 !important;
}
/* Padding wewnątrz karty (ale nie na obraz)
 * v2: html body + .woocommerce boost (theme ma 20+ rules dla loop-product__title) */
html body .woocommerce ul.products li.product .woocommerce-loop-product__title,
html body .woocommerce ul.products li.product .price,
html body .woocommerce ul.products li.product .star-rating,
html body .woocommerce ul.products li.product .product-content,
html body .woocommerce ul.products li.product .product-details,
html body ul.products li.product .woocommerce-loop-product__title,
html body ul.products li.product .price,
html body .hbt-loop-card__body,
html body .hbt-loop-card__title,
html body .hbt-loop-card__price,
html body .hbt-loop-card__meta{
  padding-left: 14px !important;
  padding-right: 14px !important;
}
html body .woocommerce ul.products li.product .woocommerce-loop-product__title,
html body ul.products li.product .woocommerce-loop-product__title,
html body .hbt-loop-card__title{
  padding-top: 12px !important;
  font-size: clamp(14px, 1.1vw, 16px) !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 44px !important;
  margin-bottom: 4px !important;
}
ul.products li.product .price,
.hbt-loop-card__price{
  margin-top: 6px !important;
  margin-bottom: 8px !important;
}
/* ATC button na karcie — pełna szerokość minus padding */
ul.products li.product .button.add_to_cart_button,
ul.products li.product a.button.add_to_cart_button,
.hbt-loop-card__atc{
  width: calc(100% - 28px) !important;
  margin: 10px 14px 14px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  height: 46px !important;
  letter-spacing: 0.3px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

/* UX AUDIT — STRONA PRODUKTU: hierarchy + ATC button + active tab */
.summary > * + *,
.entry-summary > * + *,
.sp-info > * + *{
  margin-top: 16px !important;
}
.summary .price,
.entry-summary .price,
.sp-price{
  font-size: clamp(28px, 3vw, 38px) !important;
  line-height: 1 !important;
  margin-top: 8px !important;
  font-weight: 700 !important;
  color: var(--color-brand-dark, #3f6e1a) !important;
}
/* ATC button — 52px height (Apple HIG / Google Material standard) */
.single_add_to_cart_button,
.sp-add-to-cart-btn,
form.cart .single_add_to_cart_button,
.hbt-sp-atc{
  height: 52px !important;
  min-height: 52px !important;
  font-size: 16px !important;
  letter-spacing: 0.5px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-weight: 600 !important;
  text-transform: none !important;
}
/* Active tab indicator — zielona linia pod aktywnym
 * v3 (2026-05-05 evening): używamy `--primary` (theme native token zamiast
 *  --color-brand-light), plus border-color shorthand zamiast border-bottom-color
 *  (gdy theme ma `border-color: currentColor` to wygrywa nad bottom-color).
 *  Plus [id] selektor specifity boost. */
html body .woocommerce ul.tabs.wc-tabs li.active,
html body .woocommerce-tabs ul.tabs.wc-tabs li.active,
html body .woocommerce div.product .woocommerce-tabs ul.tabs li.active,
html body ul.tabs.wc-tabs > li.active,
html body .wc-tabs > li.active,
html body .hbt-tabs-nav li.active,
html body .hbt-product-tabs__nav li.active,
html body .sp-tabs-section ul.tabs li.active,
html body .sp-tabs-section .wc-tabs li.active{
  border-bottom: 3px solid var(--primary, #8BC34A) !important;
  border-bottom-color: var(--primary, #8BC34A) !important;
  border-bottom-width: 3px !important;
  border-bottom-style: solid !important;
  border-color: transparent transparent var(--primary, #8BC34A) transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  position: relative !important;
  margin-bottom: -1px !important;
  box-shadow: none !important;
}
/* Pseudo-elementy ::before/::after WC ma "rounded corner" dla aktywnego tab —
   ukryj żeby zielona linia była clean */
html body .woocommerce div.product .woocommerce-tabs ul.tabs li.active::before,
html body .woocommerce div.product .woocommerce-tabs ul.tabs li.active::after{
  display: none !important;
  box-shadow: none !important;
}
.woocommerce ul.tabs.wc-tabs li.active a,
.woocommerce-tabs ul.tabs.wc-tabs li.active a,
ul.tabs.wc-tabs > li.active a,
.wc-tabs > li.active a,
.hbt-tabs-nav li.active a{
  color: var(--color-brand-dark, #3f6e1a) !important;
  font-weight: 600 !important;
  text-shadow: none !important;
}
.woocommerce ul.tabs.wc-tabs li,
.wc-tabs > li{
  transition: border-color 0.2s, color 0.2s, background-color 0.2s !important;
}
.woocommerce ul.tabs.wc-tabs li:not(.active):hover,
.wc-tabs > li:not(.active):hover{
  border-bottom: 3px solid rgba(139, 195, 74, .35) !important;
  background: transparent !important;
}

/* Trust icons pod ATC (CSS only fallback - PHP filter też je doda) */
.summary .hbt-sp-trust-row,
.entry-summary .hbt-sp-trust-row{
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  margin-top: 16px !important;
  padding: 14px 0 !important;
  border-top: 1px solid #eee !important;
}
.hbt-sp-trust-item{
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 13px !important;
  color: var(--text, #424242) !important;
}
.hbt-sp-trust-item i{
  color: var(--color-brand-light, #8BC34A) !important;
  font-size: 16px !important;
}

/* UX AUDIT — BADGES (SUPER OFERTA / WYPRZEDAŻ / RABAT) */
.hbt-badge-super-oferta,
.badge-super-oferta,
.hbt-loop-card__badge--super,
.product-badge.super-oferta{
  background: var(--color-accent-warm, #e8a400) !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
}
.hbt-badge-discount,
.badge-discount,
.onsale,
.hbt-loop-card__badge--sale,
span.onsale{
  background: var(--color-accent-red, #d32f2f) !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  border: 0 !important;
}

/* UX AUDIT — LISTING GRID — desktop 4/5 col, mobile 2/1
 *  v2 (2026-05-05): theme ma `.hbt-shop-main ul.products` z wyższym
 *  specifity (59 rules!) — mój `ul.products` przegrywał cascade.
 *  Fix: użyć tych samych selektorów co theme + html body boost. */
@media (min-width: 1200px){
  html body .woocommerce ul.products,
  html body .hbt-shop-main ul.products,
  html body .hbt-main-wrap .hbt-shop-main ul.products,
  html body ul.products,
  html body .hbt-products-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }
}
@media (min-width: 1600px){
  html body .woocommerce ul.products,
  html body .hbt-shop-main ul.products,
  html body .hbt-main-wrap .hbt-shop-main ul.products,
  html body ul.products,
  html body .hbt-products-grid{
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

/* AUDIT 2026-05-05 H-08 — Max-width container dla 4K/2K viewport
 *  v2 (2026-05-05): poprzednia wersja miała NESTED @media (CSS L4)
 *  → niektóre browsery nie wspierały, fix nie aplikował.
 *  Teraz: flat @media + html.body specifity boost żeby pokonać
 *  default `.container-full { max-width: 1400px }`. */
@media (min-width: 1801px){
  html body .container-full,
  html body main .container-full,
  html body .site-content .container-full,
  html body .hbt-page-content > .container-full,
  html body .hbt-homepage > .container-full,
  html body .hbt-main-wrap > .container-full{
    max-width: 1800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
@media (min-width: 2200px){
  html body .container-full,
  html body main .container-full{
    max-width: 1900px !important;
  }
}
/* Wyjątki: hero/dark/footer ZOSTAJĄ pełnej szerokości */
html body .hbt-hero-slider,
html body .home-info-bar,
html body .home-trust-bar,
html body .hbt-trust-bar,
html body .hbt-newsletter,
html body .hbt-footer,
html body .site-footer,
html body .hbt-homepage > .home-info-bar{
  max-width: none !important;
  width: 100% !important;
}
/* WEWNĄTRZ tych pełnoekranowych sekcji — container ma cap 1800px (treść czytelna) */
@media (min-width: 1801px){
  html body .hbt-hero-slider > .container-full,
  html body .hbt-hero-slider .hbt-hero-inner,
  html body .hbt-newsletter > .container-full,
  html body .hbt-newsletter .newsletter-inner,
  html body .site-footer > .container-full,
  html body .hbt-footer > .container-full{
    max-width: 1800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* UX AUDIT — Header backdrop blur (gdy nie scrolled) */
.site-header:not(.header-scrolled){
  background: rgba(255,255,255,0.92) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  backdrop-filter: blur(10px) !important;
  transition: background-color 0.3s ease !important;
}
.site-header.header-scrolled{
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

/* UX AUDIT — Spacing rhythm sekcji home (eliminuje białe dziury)
 *  Audyt: gap hero→info-bar 998px (przed nim jest content ale nieczytelny)
 *  Wymuszamy konsekwentny padding 64px between sections.
 *  dedup z VIS-01 (padding 48px) — najnowsza wygra: 64px desktop / 40px mobile */
main.hbt-homepage > section,
main.hbt-homepage > div > section,
.hbt-homepage > section,
.home-products,
.home-categories,
.home-banners,
.home-info-bar,
.home-trust-bar,
.hbt-trust-bar,
.home-products-carousel,
.hbt-offer,
.hbt-industries,
.hbt-about,
.hbt-testimonials,
.hbt-brands-section,
.hbt-blog,
.hbt-newsletter,
.hbt-popular-categories,
.home-popular-categories,
.hbt-seo-expandable{
  padding-block: var(--space-xl, 64px) !important;
  margin-block: 0 !important;
}
@media (max-width: 768px){
  main.hbt-homepage > section,
  .home-products,
  .home-categories,
  .home-banners,
  .home-info-bar,
  .home-trust-bar,
  .hbt-trust-bar,
  .home-products-carousel,
  .hbt-offer,
  .hbt-industries,
  .hbt-about,
  .hbt-testimonials,
  .hbt-brands-section,
  .hbt-blog,
  .hbt-newsletter,
  .hbt-popular-categories{
    padding-block: var(--space-lg, 40px) !important;
  }
}
/* Pierwsza sekcja po hero — bez padding-top żeby przylegała */
main.hbt-homepage > section:first-of-type,
.hbt-hero-slider + section,
.home-slider + section{
  padding-top: var(--space-md, 24px) !important;
}

/* UX AUDIT — Najniższa cena z 30 dni (Omnibus) — wyróżnienie */
.sp-price-omnibus,
.price-omnibus,
.wc_price_container .omnibus,
.hbt-omnibus-price{
  font-size: 12px !important;
  color: #666 !important;
  text-decoration: none !important;
  display: block !important;
  margin-top: 4px !important;
  font-weight: 400 !important;
}

/* UX AUDIT — Search placeholder restyling */
.site-search input[type="search"],
.site-search input[type="text"],
.header-search input{
  font-size: 14px !important;
}
.site-search input::placeholder,
.header-search input::placeholder{
  color: #999 !important;
  font-style: normal !important;
}

/* Single product gallery: rendering hint dla pierwszego obrazka galerii
 * (CSS nie naprawi atrybutu HTML, ale dodaje rendering hint) */
.single-product .woocommerce-product-gallery .flex-active-slide img,
.single-product .woocommerce-product-gallery img:first-of-type,
.single-product .sp-gallery img:first-of-type{
  content-visibility:auto !important;
  contain-intrinsic-size:auto 500px !important;
}

/* SECTION 4 — Hide-on-scroll header (CSS wyciągnięty z hbt_v65_hide_on_scroll_header callback,
 *  JS zostaje w PHP) — z v65-visual-fixes.php */
@media (max-width:991px){
  .site-header.hbt-hdr-hide{
    transform: translateY(-100%) !important;
    transition: transform 0.3s ease !important;
  }
  .site-header{
    transition: transform 0.3s ease !important;
  }
}
