/* =====================================================
   Boutte header — портирован со старого сайта (type_6)
   ===================================================== */

/* ---------- Верхняя зелёная полоса ---------- */
.bh-top {
  background-color: #097b35;
  min-height: 35px;
}
.bh-top-right ul.top-link,
.bh-top-right .user-info {
  list-style: none;
  margin: 6px 0;
}
.bh-top-right a {
  display: block;
  font-size: 12px;
  color: #bcbdc7;
  text-decoration: none;
}
.bh-top-right a:hover {
  color: #fff;
  text-decoration: none;
}
.bh-top-right .material-icons {
  margin-right: 5px;
  font-size: 14px;
  vertical-align: middle;
}

/* ---------- Центр: лого / поиск / телефон / корзина ---------- */
.bh-center {
  padding: 25px 0 20px;
  border-bottom: 1px solid #097b35;
  background: #fff;
}
.bh-center .bh-logo img {
  max-width: 100%;
  height: auto;
}

/* Поиск */
.bh-search {
  margin-top: 4px;
  padding-right: 30px;
}
.bh-search .search-widgets,
.bh-search #search_widget {
  position: relative;
  width: 100%;
  overflow: visible !important;
}
.bh-search #search_widget form {
  position: relative;
}
.bh-search #search_widget input[type="text"] {
  width: 100%;
  height: 40px;
  min-height: 40px;
  border: 1px solid #e5e5e5;
  box-shadow: none;
  border-radius: 20px;
  padding: 5px 50px 5px 15px;
  font-size: 14px;
  outline: none;
}
.bh-search #search_widget i.search {
  position: absolute;
  right: 0;
  top: 0;
  width: 44px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  color: #fff;
  background: #f28332;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
}
.bh-search #search_widget i.search:hover {
  background: #555555;
}
.bh-search #search_widget i.clear {
  display: none !important;
}

/* Телефон */
.bh-phone {
  padding: 0;
}
.bh-phone .bh-phone-inner {
  padding-left: 45px;
  padding-top: 13px;
  position: relative;
  vertical-align: middle;
}
.bh-phone .bh-phone-inner a {
  color: #555555;
  font-size: 18px;
  white-space: nowrap;
}
.bh-phone .bh-phone-inner i {
  position: absolute;
  left: 0;
  top: 6px;
  color: #f28332;
  font-size: 35px;
}

/* Корзина */
.bh-cart {
  padding: 0 15px;
}
.bh-cart .blockcart .header {
  background: none;
}
.bh-cart .bh-cart-link {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 10px;
  text-decoration: none;
}
.bh-cart .bh-cart-link:hover {
  text-decoration: none;
}
.bh-cart .bh-cart-handle {
  grid-row: 1 / span 2;
}
.bh-cart .bh-cart-handle i {
  font-size: 32px;
  color: #f28332;
}
.bh-cart .bh-cart-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-transform: uppercase;
}
.bh-cart .bh-cart-summary {
  margin: 0;
  font-size: 12px;
  color: #777;
  white-space: nowrap;
}
.bh-cart .bh-cart-box {
  display: none;
  position: absolute;
  right: 0;
  z-index: 1000;
  min-width: 320px;
  max-width: 420px;
  padding: 15px;
  background: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}
.bh-cart #blockcart-wrapper {
  position: relative;
  float: right;
}
.bh-cart #blockcart-wrapper:hover .bh-cart-box,
.bh-cart .cart-preview:hover .bh-cart-box {
  display: block;
}
.bh-cart .bh-cart-items {
  margin-bottom: 10px;
  font-size: 13px;
}
.bh-cart .bh-cart-items img {
  max-width: 45px;
  height: auto;
}
.bh-cart .bh-cart-total td {
  border: none;
  padding: 4px 8px;
}
.bh-cart .bh-cart-actions .btn {
  font-size: 13px;
}
.bh-cart .bh-cart-actions .bh-btn-view {
  background: #f28332;
  border-color: #f28332;
  color: #fff;
}
.bh-cart .bh-cart-actions .bh-btn-view:hover {
  background: #555555;
  border-color: #555555;
  color: #fff;
}
.bh-cart .bh-cart-actions .bh-btn-checkout {
  background: #097b35;
  border-color: #097b35;
  color: #fff;
}
.bh-cart .bh-cart-actions .bh-btn-checkout:hover {
  background: #555555;
  border-color: #555555;
  color: #fff;
}
/* Сообщения ps_shoppingcart-js не показываем в хедере */
.bh-cart .blockcart .cart-products-count {
  display: none;
}

/* ---------- Нижняя зелёная полоса: каталог + меню ---------- */
.bh-bottom {
  background-color: #097b35;
  margin-bottom: 0;
}
.bh-bottom .row {
  display: flex;
  align-items: stretch;
}

/* Горизонтальное меню */
.bh-bottom-menu ul.bh-top-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bh-bottom-menu ul.bh-top-links > li {
  display: inline-block;
}
.bh-bottom .bh-bottom-menu {
  flex: 1;
  padding-left: 0;
}
#header .bh-bottom-menu ul.bh-top-links > li > a {
  display: block;
  color: #fff;
  font-size: 14px;
  padding: 5px 8px;
  line-height: 36px;
  white-space: nowrap;
  text-decoration: none;
}
#header .bh-bottom-menu ul.bh-top-links > li:hover > a,
#header .bh-bottom-menu ul.bh-top-links > li.active > a {
  color: #fff;
}

/* Мобильная панель */
.bh-mobile {
  background: #fff;
  padding: 10px 15px;
}

/* ---------- Адаптив ---------- */
@media (max-width: 991px) {
  .bh-center {
    padding: 15px 0 10px;
  }
  .bh-search {
    padding-right: 15px;
  }
  .bh-cart {
    padding: 0 15px;
  }
  .bh-bottom .row {
    display: block;
  }
  #header .bh-bottom-menu ul.bh-top-links > li > a {
    line-height: 28px;
  }
}

/* Кнопка «Каталог»: как на старом сайте — прозрачная, белый текст.
   Селектор с .bh-bottom для приоритета над front.css модуля. */
.bh-bottom .boutte-catalog-toggle {
  background: transparent !important;
  border: none;
  box-shadow: none;
  color: #fff !important;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 0;
}
.bh-bottom .boutte-catalog-toggle .boutte-burger span {
  background: #fff;
}

/* ---------- Кнопка «Меню» (только мобильные) ---------- */
.bh-bottom .bh-menu-toggle {
  display: none;
  align-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  margin: 10px 0;
  cursor: pointer;
}
.bh-bottom .bh-menu-toggle .bh-burger {
  display: inline-block;
  margin-right: 10px;
}
.bh-bottom .bh-menu-toggle .bh-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  margin: 3px 0;
}
.bh-bottom .bh-menu-toggle .bh-menu-close {
  display: none;
  margin-left: 10px;
  font-size: 14px;
}

@media (max-width: 991px) {
  /* кнопка видна, список скрыт до открытия */
  .bh-bottom .bh-menu-toggle {
    display: inline-flex;
  }
  #header .bh-bottom-menu ul.bh-top-links {
    display: none;
  }
  .bh-bottom-menu.open ul.bh-top-links {
    display: block !important;
    padding-bottom: 10px;
  }
  .bh-bottom-menu.open .bh-menu-toggle .bh-burger {
    display: none;
  }
  .bh-bottom-menu.open .bh-menu-toggle .bh-menu-close {
    display: inline;
  }
}

/* ---------- Баннер на главной: на всю ширину, вплотную к зелёной полосе ---------- */
body.page-index .breadcrumb {
  display: none;
}
body.page-index #notifications {
  display: none;
}
body.page-index #content.page-home .carousel {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
body.page-index {
  overflow-x: hidden;
}
/* убрать отступы над баннером */
body.page-index #wrapper {
  margin-top: 0;
}
body.page-index #content.page-home .carousel,
body.page-index #content.page-home .carousel .carousel-inner {
  margin-top: 0;
}
body.page-index #wrapper {
  padding-top: 0 !important;
}
