/* Sekcja „Polecane” na stronie głównej – style z design/bionaturalnie-zmiany.css (zakres: #bn-products) */

:root {
  --bn-lime: #7fad39;
  --bn-lime-dark: #6b9630;
  --bn-green: #1f5a3f;
  --bn-sage: #f3f8f1;
  --bn-line: #e3ebe1;
  --bn-text: #22302a;
  --bn-muted: #5b6a61;
  --bn-amber: #e8821e;
}

#bn-products.bn-panel {
  border: 1px solid var(--bn-line);
  border-radius: 20px;
  background: #fff;
  padding: 16px 18px 18px;
  margin-top: 30px;
  box-shadow: 0 8px 24px rgba(20, 61, 43, 0.06);
}

#bn-products .bn-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}

#bn-products .bn-tabs {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--bn-sage);
  border: 1px solid var(--bn-line);
  border-radius: 999px;
}

#bn-products .bn-tabs li {
  margin: 0;
}

#bn-products .bn-tabs button {
  appearance: none;
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 9px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--bn-green);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.15s;
}

#bn-products .bn-tabs button:hover {
  background: #fff;
}

#bn-products .bn-tabs button[data-tab='promocje'] i {
  color: #c24b3a;
}

#bn-products .bn-tabs button.is-active[data-tab='promocje'] {
  background: #c24b3a;
}

#bn-products .bn-tab-pane {
  display: none;
}

#bn-products .bn-tab-pane.is-active {
  display: block;
}

#bn-products .bn-tabs button.is-active {
  background: var(--bn-green);
  color: #fff;
}

#bn-products .bn-tabs button.is-active i {
  color: #fff;
}

#bn-products .bn-tabs button i {
  font-size: 13px;
  color: var(--bn-lime);
}

#bn-products .bn-panel-head .bn-more {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--bn-lime);
  white-space: nowrap;
  text-decoration: none;
}

#bn-products .bn-panel-head .bn-more:hover {
  color: var(--bn-lime-dark);
}

#bn-products .bn-recommended-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: stretch;
}

#bn-products .bn-rec-slide-item {
  min-width: 0;
}

#bn-products .bn-recommended-carousel {
  position: relative;
}

#bn-products .bn-rec-viewport {
  display: none;
}

#bn-products .bn-rec-nav {
  display: none;
}

@media (min-width: 992px) {
  #bn-products .bn-recommended-carousel.is-rec-desktop .bn-rec-mobile-grid {
    display: none;
  }

  #bn-products .bn-recommended-carousel.is-rec-desktop .bn-rec-viewport {
    display: block;
    overflow-x: hidden;
    overflow-y: hidden;
    padding: 6px 8px 18px 0;
    box-sizing: border-box;
  }

  #bn-products .bn-recommended-grid:not(.bn-rec-mobile-grid) {
    padding: 6px 8px 18px 0;
    box-sizing: border-box;
  }

  #bn-products .bn-rec-row + .bn-rec-row {
    margin-top: 12px;
  }

  #bn-products .bn-rec-row-track {
    display: flex;
    gap: 12px;
    will-change: transform;
  }

  #bn-products .bn-rec-cell {
    flex: 0 0 auto;
    min-width: 0;
  }

  #bn-products .bn-recommended-carousel.has-nav {
    padding: 0 44px;
  }

  #bn-products .bn-recommended-carousel.has-nav .bn-rec-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--bn-line);
    border-radius: 50%;
    background: #fff;
    color: var(--bn-green);
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(20, 61, 43, 0.12);
    transition: background 0.15s, border-color 0.15s;
  }

  #bn-products .bn-rec-nav:hover {
    background: var(--bn-sage);
    border-color: var(--bn-lime);
    color: var(--bn-lime-dark);
  }

  #bn-products .bn-rec-nav--prev {
    left: 0;
  }

  #bn-products .bn-rec-nav--next {
    right: 0;
  }
}

@media (max-width: 991px) {
  #bn-products .bn-rec-mobile-grid .bn-rec-slide-item:nth-child(n + 9) {
    display: none;
  }
}

@media (max-width: 991px) {
  #bn-products .bn-recommended-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  #bn-products .bn-recommended-grid {
    grid-template-columns: 1fr;
  }
}

#bn-products .recommended-product-card,
#bn-products .baner_element.recommended-product-card {
  padding: 12px !important;
  background: #fff;
  border: 1px solid var(--bn-line);
  border-radius: 16px;
  height: 100%;
  transition: box-shadow 0.15s, transform 0.15s;
}

#bn-products .recommended-product-card:hover {
  box-shadow: 0 14px 30px rgba(20, 61, 43, 0.1);
  transform: translateY(-2px);
}

#bn-products .recommended-product-image-wrapper {
  height: 260px;
  background: #fff;
  border-radius: 12px;
  border: 0;
  margin-bottom: 0 !important;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

#bn-products .recommended-product-image {
  mix-blend-mode: normal;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

#bn-products .adjust-height-recommended {
  min-height: 0 !important;
  height: auto !important;
}

#bn-products .text-section {
  padding-top: 10px;
  transform: none !important;
}

#bn-products .text-section h5 {
  font-size: 14.5px;
  line-height: 1.4;
  min-height: 2.8em;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 8px !important;
}

#bn-products .text-section h5 a {
  display: block;
  color: var(--bn-text) !important;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
}

#bn-products .text-section h5 a:hover {
  color: var(--bn-lime) !important;
}

#bn-products .text-section .bn-brand {
  display: none;
}

#bn-products .text-section > div {
  min-height: 86px;
  justify-content: flex-end;
  margin-bottom: 0 !important;
}

#bn-products .text-section strong {
  font-size: 1.25rem !important;
  color: var(--bn-green);
  font-weight: 800 !important;
}

#bn-products .site-btn.product-purchase-box__cart-btn {
  background: var(--bn-lime);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
  transition: background 0.15s;
}

#bn-products .site-btn.product-purchase-box__cart-btn:hover {
  background: var(--bn-lime-dark);
  color: #fff;
}

#bn-products .discount-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  right: auto;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: max-content;
  white-space: nowrap;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: #c24b3a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  #bn-products .recommended-product-image-wrapper {
    height: 200px;
  }
}

@media (max-width: 640px) {
  #bn-products .bn-tabs {
    width: auto;
    max-width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  #bn-products .bn-tabs button {
    padding: 8px 10px;
    font-size: 13px;
  }

  #bn-products .bn-panel-head {
    align-items: flex-start;
  }
}
