/* Nagłówek (pasek górny + wiersz logo/wyszukiwarka) – design/bionaturalnie-zmiany.css */

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

/* ---------- 1. Pasek górny ---------- */
.header__top {
  background: var(--bn-sage);
  border-bottom: 1px solid var(--bn-line);
}

.header__top .row {
  min-height: 34px;
}

.header__top__left ul li a,
.header__top p,
.header__top .middleNavLink {
  font-size: 13px !important;
  color: var(--bn-text) !important;
}

.header__top__left ul li a i,
.header__top .bn-top-ico {
  color: var(--bn-lime);
  margin-right: 4px;
}

.header__top .middleNavLink {
  font-weight: 700;
  color: var(--bn-green) !important;
}

.header__top .middleNavLink:hover {
  color: var(--bn-lime) !important;
}

.header__top__right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  height: 100%;
}

.header__top__right a {
  font-size: 13px;
  color: var(--bn-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header__top__right a i {
  color: var(--bn-lime);
}

.header__top__right a:hover {
  color: var(--bn-lime);
}

.header__top__right__auth a {
  font-size: 13px;
  color: var(--bn-text);
}

.header__top__right__auth a i {
  color: var(--bn-lime);
}

/* ---------- 2. Główny wiersz nagłówka ---------- */
.navbarStyle {
  background: #fff;
}

.bn-header {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  min-height: 92px;
  padding: 8px 0;
}

.bn-header .header-logo {
  width: 240px;
  max-height: 84px;
  height: auto;
  object-fit: contain;
}

.header.scrolled .bn-header {
  min-height: 76px;
  padding: 6px 0;
}

.header.scrolled .bn-header .header-logo {
  width: 190px;
  max-height: 66px;
}

.bn-header .classicViewWrapper {
  position: static !important;
  transform: none !important;
  max-width: none !important;
  width: 100% !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  margin: 0;
}

.header.scrolled .bn-header .classicViewWrapper {
  position: static !important;
  width: 100% !important;
  transform: none !important;
}

.bn-header .classicViewSearch {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.bn-header .input-groupClassic {
  width: 100% !important;
  display: flex;
  flex-wrap: nowrap;
}

.bn-header #searchProducts {
  height: 48px !important;
  border: 1px solid var(--bn-line);
  border-right: 0;
  background: var(--bn-sage);
  border-radius: 999px 0 0 999px !important;
  padding-left: 20px;
  font-size: 15px;
  flex: 1 1 auto;
}

.bn-header #searchProducts:focus {
  background: #fff;
  border-color: var(--bn-lime);
  box-shadow: none;
}

.bn-header .input-group-append {
  width: auto !important;
}

.bn-header #clear-search {
  width: 56px !important;
  height: 48px;
  background: var(--bn-lime) !important;
  border: 0;
  border-radius: 0 999px 999px 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.bn-header #clear-search:hover {
  background: var(--bn-lime-dark) !important;
}

.bn-header #clear-search i {
  color: #fff;
  font-size: 16px;
  margin: 0 !important;
  line-height: 1;
  vertical-align: middle;
}

.bn-header #searchResultsDropdown,
#searchResultsDropdown {
  left: 0 !important;
  transform: none !important;
  width: 100% !important;
  top: calc(100% + 6px) !important;
  border-radius: 14px;
  border-color: var(--bn-line);
}

#searchResultsDropdown.scrolled {
  position: absolute !important;
  right: auto !important;
  transform: none !important;
  width: 100% !important;
}

.bn-iconlinks {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bn-iconlinks li {
  margin: 0;
}

.bn-iconlinks a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--bn-green);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1;
  transition: 0.15s;
  white-space: nowrap;
  text-decoration: none;
}

.bn-iconlinks a i {
  font-size: 15px;
  color: var(--bn-lime);
}

.bn-iconlinks a:hover {
  background: var(--bn-sage);
  color: var(--bn-green) !important;
}

.bn-iconlinks li.bn-sep {
  width: 1px;
  height: 26px;
  background: var(--bn-line);
  margin: 0 6px;
}

.bn-iconlinks li.bn-icon-only a {
  padding: 9px 10px;
}

.bn-iconlinks li.bn-icon-only a i {
  font-size: 18px;
  color: var(--bn-green);
}

.bn-iconlinks li.bn-icon-only a:hover i {
  color: var(--bn-lime);
}

.bn-cart {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bn-green);
  color: #fff !important;
  padding: 11px 16px 11px 14px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  transition: 0.15s;
  white-space: nowrap;
  text-decoration: none;
}

.bn-cart:hover {
  background: #143d2b;
  color: #fff !important;
}

.bn-cart i {
  font-size: 18px;
  color: #fff;
}

.bn-cart .bn-cart-count {
  background: var(--bn-amber);
  color: #fff;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  padding: 0 6px;
  font-weight: 700;
}

.bn-mobile-search-row {
  display: none;
}

@media (max-width: 991.98px) {
  .header__top {
    display: none;
  }

  .header .indyvidualContactOnMobile {
    display: none;
  }

  .header .navbarStyle {
    height: auto !important;
    min-height: 0 !important;
  }

  .header.scrolled .navbarStyle {
    height: auto !important;
  }

  .header .navbarStyle > .container.navbarStyle {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 8px;
    padding-bottom: 10px;
  }

  .bn-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: auto;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-height: 0;
    padding: 0 0 8px;
  }

  .bn-header .bn-logo {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .bn-header .header-logo {
    width: auto !important;
    max-width: min(148px, 100%);
    max-height: 48px;
    height: auto;
    object-fit: contain;
    object-position: left center;
  }

  .header.scrolled .bn-header .header-logo {
    max-width: min(132px, 100%);
    max-height: 44px;
  }

  .bn-header .bn-search-col {
    display: none !important;
  }

  .header .bn-header .classicViewWrapper {
    display: none !important;
    position: static !important;
    top: auto !important;
  }

  .bn-header .bn-iconlinks {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    margin: 0;
  }

  .bn-header .bn-iconlinks > li:not(.bn-icon-only) {
    display: none;
  }

  .bn-header .bn-iconlinks > li.bn-sep {
    display: none;
  }

  .bn-header .bn-iconlinks li.bn-icon-only a {
    padding: 8px 9px;
  }

  .bn-header .bn-cart {
    flex-shrink: 0;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 13px;
    gap: 6px;
  }

  .bn-header .bn-cart span {
    display: inline;
  }

  .bn-mobile-search-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0 0 6px;
  }

  .header .navbarStyle .bn-mobile-nav-toggler {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bn-line);
    border-radius: 12px;
    background: #fff;
  }

  .header .navbarStyle .bn-mobile-nav-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(127, 173, 57, 0.25);
  }

  .header .navbarStyle .bn-mobile-nav-toggler .navbar-toggler-icon {
    width: 1.35em;
    height: 1.35em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231f5a3f' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
  }

  .header .navbarStyle .bn-mobile-search-wrap {
    flex: 1 1 auto;
    min-width: 0;
  }

  /* Wyszukiwarka mobilna – obok hamburgera, styl jak desktop */
  .header .navbarStyle .bn-mobile-search-wrap.mobile-search-fixed {
    position: static !important;
    top: auto !important;
    right: auto !important;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-right: 0 !important;
    width: auto;
    z-index: 2;
  }

  .header .navbarStyle .mobile-search-fixed .input-group {
    width: 100% !important;
    max-width: 100%;
    height: 44px;
    margin-right: 0 !important;
  }

  .header .navbarStyle .mobile-search-fixed #searchProductsMobile {
    height: 44px !important;
    border: 1px solid var(--bn-line) !important;
    border-right: 0 !important;
    background: var(--bn-sage) !important;
    border-radius: 999px 0 0 999px !important;
    padding-left: 16px;
    font-size: 15px;
  }

  .header .navbarStyle .mobile-search-fixed #searchProductsMobile:focus {
    background: #fff !important;
    border-color: var(--bn-lime) !important;
    box-shadow: none;
  }

  .header .navbarStyle .mobile-search-fixed #search-submit-mobile {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 44px !important;
    padding: 0 16px !important;
    margin: 0 !important;
    background: var(--bn-lime) !important;
    border: 0 !important;
    border-radius: 0 999px 999px 0 !important;
  }

  .header .navbarStyle .mobile-search-fixed #search-icon-mobile {
    color: #fff !important;
    font-size: 16px;
  }

  .header .navbarStyle #searchResultsDropdownMobile {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    margin-top: 6px;
    border-radius: 14px;
    border-color: var(--bn-line);
  }

  .header .navbarStyle #searchResultsDropdownMobile.scrolled {
    transform: none !important;
    margin-top: 6px !important;
  }
}

@media (max-width: 575.98px) {
  .bn-header .header-logo {
    max-width: min(118px, 100%);
    max-height: 40px;
  }

  .bn-header .bn-iconlinks li.bn-icon-only a {
    padding: 7px 8px;
  }

  .bn-header .bn-iconlinks li.bn-icon-only a i {
    font-size: 16px;
  }

  .bn-header .bn-cart {
    padding: 8px 10px;
    font-size: 12px;
  }

  .bn-header .bn-cart .bn-cart-count {
    min-width: 20px;
    height: 20px;
    font-size: 11px;
  }
}
