/* Bartnik 1.0.11 — kompaktowe kafelki i wyrównane ceny. */
/* /sklep/ i katalogi /bartnik/ używają tej samej pętli WooCommerce. */
body.bsux-shop .nb-app main.nb-woo-catalog .woocommerce ul.products li.product .woocommerce-loop-product__title,
body.tax-product_cat .woocommerce ul.products li.product .woocommerce-loop-product__title,
body.tax-product_tag .woocommerce ul.products li.product .woocommerce-loop-product__title {
  margin:0 0 2px !important;
  padding:0 !important;
  line-height:1.32 !important;
}
/* Bez sztucznego miejsca na trzecią linijkę: opis jest tuż pod tytułem. */
body.bsux-shop .nb-app main.nb-woo-catalog .woocommerce ul.products li.product .ber-catalog-description,
body.tax-product_cat .woocommerce ul.products li.product .ber-catalog-description,
body.tax-product_tag .woocommerce ul.products li.product .ber-catalog-description {
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-clamp:2;
  min-height:0 !important;
  max-height:2.72em;
  margin:2px 0 1px !important;
  padding:0 !important;
  font-size:12px;
  line-height:1.36 !important;
  overflow:hidden;
}
/* Gwiazdki + wynik i liczba ocen bez nadmiarowych odstępów. */
body.bsux-shop .nb-app main.nb-woo-catalog .woocommerce ul.products li.product .ber-catalog-rating,
body.tax-product_cat .woocommerce ul.products li.product .ber-catalog-rating,
body.tax-product_tag .woocommerce ul.products li.product .ber-catalog-rating {
  min-height:0 !important;
  margin:3px 0 2px !important;
  padding:0 !important;
  gap:2px 6px !important;
  line-height:1.25 !important;
}
body.bsux-shop .nb-app main.nb-woo-catalog .woocommerce ul.products li.product .price,
body.tax-product_cat .woocommerce ul.products li.product .price,
body.tax-product_tag .woocommerce ul.products li.product .price {
  margin:4px 0 0 !important;
  padding:0 !important;
  line-height:1.3 !important;
}
/* Gdy brak opisu, gwiazdki również pozostają zaraz pod tytułem. */
body.bsux-shop .nb-app main.nb-woo-catalog .woocommerce ul.products li.product .woocommerce-loop-product__title + .ber-catalog-rating {
  margin-top:3px !important;
}

/* Strona główna: jeden zwarty blok tytuł -> gwiazdki -> cena -> CTA. */
.bhb-home .bhb-featured .bhb-product-card {
  display:flex;
  flex-direction:column;
  height:100%;
}
.bhb-home .bhb-featured .bhb-product-content {
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  gap:6px !important;
  padding:12px 15px 14px !important;
}
.bhb-home .bhb-featured .bhb-product-content > h3 {
  margin:0 !important;
  padding:0 !important;
  line-height:1.32 !important;
}
.bhb-home .bhb-featured .bhb-product-content > .ber-catalog-rating {
  margin:0 !important;
  padding:0 !important;
  min-height:0 !important;
  gap:3px 6px !important;
  line-height:1.25 !important;
}
/* Wolna przestrzeń jest PRZED ceną, nie pomiędzy ceną a przyciskiem.
   Ceny wszystkich produktów w jednym rzędzie są na tej samej wysokości. */
.bhb-home .bhb-featured .bhb-product-content > .bhb-product-price {
  margin:auto 0 0 !important;
  padding:0 !important;
  line-height:1.3 !important;
  flex:0 0 auto;
}
.bhb-home .bhb-featured .bhb-product-content > .bhb-product-cta {
  margin:0 !important;
  flex:0 0 auto;
  min-height:43px;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:center;
}
@media (max-width:600px) {
  body.bsux-shop .nb-app main.nb-woo-catalog .woocommerce ul.products li.product .ber-catalog-description,
  body.tax-product_cat .woocommerce ul.products li.product .ber-catalog-description,
  body.tax-product_tag .woocommerce ul.products li.product .ber-catalog-description {
    font-size:11px;
    line-height:1.38 !important;
    max-height:2.76em;
  }
  .bhb-home .bhb-featured .bhb-product-content {
    padding:11px 12px 13px !important;
    gap:5px !important;
  }
  .bhb-home .bhb-featured .bhb-product-content > .bhb-product-cta { min-height:41px; }
}

/* v1.0.12: spójna cena jak na /sklep/ i opis w 4 miodach strony głównej. */
.bhb-home .bhb-featured .bhb-product-content > .ber-home-description {
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-clamp:2;
  overflow:hidden;
  min-height:0;
  max-height:2.72em;
  margin:0 !important;
  padding:0 !important;
  color:#617169;
  font-family:inherit;
  font-weight:400;
  font-size:12px;
  line-height:1.36;
  letter-spacing:0;
  text-align:left;
}
/* Dokładny ciemnozielony kolor ceny z kafelków sklepowych, również dla <bdi>. */
.bhb-home .bhb-featured .bhb-product-content > .bhb-product-price,
.bhb-home .bhb-featured .bhb-product-content > .bhb-product-price .woocommerce-Price-amount,
.bhb-home .bhb-featured .bhb-product-content > .bhb-product-price .woocommerce-Price-amount bdi {
  color:#174737 !important;
}
@media (max-width:600px) {
  .bhb-home .bhb-featured .bhb-product-content > .ber-home-description {
    font-size:11px;
    line-height:1.38;
    max-height:2.76em;
  }
}
