/* EVO_MODERN_HEADER_PARITY_R8 — Header, quick navigation and Mega Menu only. */

body.eo-modern-page header .eo-header-legacy-menu2,
body.eo-modern-page header nav#menu2 {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.eo-modern-header .eo-header-meta span::before {
  display: inline-block;
  width: 15px;
  margin-right: 7px;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #ed3124;
}

.eo-modern-header .eo-header-meta span:first-child::before { content: '\f017'; }
.eo-modern-header .eo-header-meta span:last-child::before { content: '\f3c5'; }
.eo-modern-header .eo-header-sticky-phone { display: none; }

.eo-modern-header .eo-header-search .header-search__form {
  position: relative;
  display: block;
}

.eo-modern-header .eo-header-search .header-search__form::before {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 20px;
  content: '\f002';
  font-family: "Font Awesome 5 Free";
  font-size: 19px;
  font-weight: 900;
  color: #85858e;
  transform: translateY(-50%);
  pointer-events: none;
}

.eo-modern-header .eo-header-search .header-search__input {
  padding-right: 132px;
  padding-left: 54px;
}

.eo-modern-header .eo-header-search .header-search__btn {
  display: flex;
  width: 112px;
  align-items: center;
  justify-content: center;
}

.eo-modern-header .eo-header-search .header-search__btn > i { display: none; }
.eo-modern-header .eo-header-search .eo-header-search-label { display: inline; }
.eo-modern-header .eo-header-search .search-btn-clear { right: 122px; }

.eo-modern-header .eo-header-actions {
  display: grid !important;
  min-width: 0;
  grid-template-columns: repeat(3, 78px) 165px;
  align-items: center;
  justify-content: end;
  gap: 6px;
}

.eo-modern-header .eo-header-actions > [data-eo-action] {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  align-items: center;
  justify-content: center;
}

.eo-modern-header .eo-header-actions [data-eo-action="account"],
.eo-modern-header .eo-header-actions [data-eo-action="wishlist"],
.eo-modern-header .eo-header-actions [data-eo-action="compare"] {
  flex-direction: column;
}

.eo-modern-header .eo-header-actions .btn-group {
  display: block;
  margin: 0;
}

.eo-modern-header .eo-header-actions .eo-header-action-inline-label { display: none !important; }

.eo-modern-header .eo-header-actions .top-menu__btn,
.eo-modern-header .eo-header-actions .header-account {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
  overflow: visible;
  line-height: 1;
}

.eo-modern-header .eo-header-actions .header-block__item-caption {
  width: 100%;
  margin-top: 7px;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: #777780;
}

.eo-modern-header .eo-header-actions .top-menu__wishlist-total,
.eo-modern-header .eo-header-actions .top-menu__compare-total,
.eo-modern-header .eo-header-actions .header-cart__total-items {
  z-index: 3;
  top: -6px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  font-size: 11px;
}

.eo-modern-header .eo-header-actions .top-menu__wishlist-total.hidden,
.eo-modern-header .eo-header-actions .top-menu__compare-total.hidden,
.eo-modern-header .eo-header-actions .header-cart__total-items.hidden {
  display: none !important;
}

.eo-modern-header .eo-header-actions [data-eo-action="cart"] {
  position: relative;
  margin-left: 0;
}

.eo-modern-header .eo-header-actions [data-eo-action="cart"] > .header-block__item-caption {
  display: none !important;
}

.eo-modern-header .eo-header-actions .header-cart {
  display: flex;
  width: 165px;
  height: 58px;
  align-items: center;
  padding: 0 18px;
  border-radius: 14px;
  background: #242429;
}

.eo-modern-header .eo-header-actions .header-cart__btn {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  gap: 12px;
}

.eo-modern-header .eo-header-actions .header-cart__icon {
  flex: 0 0 auto;
  font-size: 23px;
}

.eo-modern-header .eo-header-cart-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.12;
}

.eo-modern-header .eo-header-cart-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.56);
}

.eo-modern-header .eo-header-cart-amount {
  margin-top: 3px;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.eo-modern-header .eo-header-links { gap: 32px; }
.eo-modern-header .eo-header-secondary .header-phones { padding-right: 0; }
.eo-modern-header .eo-header-secondary .header-phones__show-phone { display: none !important; }

.eo-modern-home > .eo-main-navigation {
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
  padding-bottom: 16px;
  overflow-x: auto;
}

.eo-modern-home > .eo-main-navigation a {
  height: 40px;
  min-height: 40px;
  flex: 1 0 auto;
  padding: 0 16px;
  white-space: nowrap;
  line-height: 1;
}

@media (min-width: 992px) {
  .eo-modern-header .eo-header-main {
    min-height: 116px;
    grid-template-columns: 220px 184px minmax(260px, 1fr) auto;
    gap: 18px;
  }

  .eo-modern-header .eo-header-logo-slot,
  .eo-modern-header .eo-header-catalog,
  .eo-modern-header .eo-header-search,
  .eo-modern-header .eo-header-actions {
    min-width: 0;
  }

  body.eo-modern-page .eo-catalog-megamenu-r3 .menu1.new {
    max-height: calc(100vh - 214px) !important;
    padding: 34px 44px 32px;
  }

  body.eo-modern-page .eo-catalog-megamenu-r3 .menu1.new > .menu__collapse {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px 48px;
  }

  body.eo-modern-page .eo-catalog-megamenu-r3 .eo-mega-panel__heading,
  body.eo-modern-page .eo-catalog-megamenu-r3 .eo-mega-products,
  body.eo-modern-page .eo-catalog-megamenu-r3 .eo-mega-leaf,
  body.eo-modern-page .eo-catalog-megamenu-r3 .eo-menu-root-icon,
  body.eo-modern-page .eo-catalog-megamenu-r3 .eo-mega-card__icon,
  body.eo-modern-page .eo-catalog-megamenu-r3 .eo-mega-card__arrow {
    display: none !important;
  }

  body.eo-modern-page .eo-catalog-megamenu-r3 .menu1.new .menu__level-1-a {
    margin-bottom: 11px;
  }

  body.eo-modern-page .eo-catalog-megamenu-r3 .eo-mega-grid,
  body.eo-modern-page .eo-catalog-megamenu-r3 .eo-mega-grid--many,
  body.eo-modern-page .eo-catalog-megamenu-r3 .eo-mega-grid--few {
    gap: 6px;
  }

  body.eo-modern-page > header.eo-modern-header.fixed .eo-header-main {
    min-height: 78px;
    grid-template-columns: 160px minmax(280px, 1fr) 190px auto;
    gap: 14px;
  }

  body.eo-modern-page > header.eo-modern-header.fixed .eo-header-logo-slot { display: none; }

  body.eo-modern-page > header.eo-modern-header.fixed .eo-header-catalog .header-menu__btn {
    width: 160px;
    height: 54px;
  }

  body.eo-modern-page > header.eo-modern-header.fixed .eo-header-search .header-search__input { height: 54px; }
  body.eo-modern-page > header.eo-modern-header.fixed .eo-header-search .header-search__btn { height: 44px; }

  body.eo-modern-page > header.eo-modern-header.fixed .eo-header-sticky-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 800;
    color: #202025;
  }

  body.eo-modern-page > header.eo-modern-header.fixed .eo-header-sticky-phone i { color: #ed3124; }

  body.eo-modern-page > header.eo-modern-header.fixed .eo-header-actions {
    grid-template-columns: 70px 150px;
    gap: 8px;
  }

  body.eo-modern-page > header.eo-modern-header.fixed .eo-header-actions [data-eo-action="wishlist"],
  body.eo-modern-page > header.eo-modern-header.fixed .eo-header-actions [data-eo-action="compare"] {
    display: none !important;
  }

  body.eo-modern-page > header.eo-modern-header.fixed .eo-header-actions .header-cart { width: 150px; }
}

@media (min-width: 992px) and (max-width: 1279px) {
  .eo-modern-header .eo-header-main {
    grid-template-columns: 190px 150px minmax(200px, 1fr) auto;
    gap: 10px;
  }

  .eo-modern-header .eo-brand-logo strong { font-size: 30px; }
  .eo-modern-header .eo-brand-logo small { font-size: 9px; }
  .eo-modern-header .eo-header-catalog .header-menu__btn { width: 150px; }

  .eo-modern-header .eo-header-actions {
    grid-template-columns: repeat(3, 64px) 118px;
    gap: 6px;
  }

  .eo-modern-header .eo-header-actions .header-block__item-caption { font-size: 11px; }

  .eo-modern-header .eo-header-actions .header-cart {
    width: 118px;
    padding: 0 11px;
  }

  .eo-modern-header .eo-header-actions .header-cart__btn { gap: 8px; }
  .eo-modern-header .eo-header-cart-label { font-size: 9px; }
  .eo-modern-header .eo-header-cart-amount { font-size: 14px; }
  .eo-modern-header .eo-header-search .header-search__btn { width: 94px; }
  .eo-modern-header .eo-header-search .header-search__input { padding-right: 112px; }
  .eo-modern-header .eo-header-search .search-btn-clear { right: 103px; }

  body.eo-modern-page .eo-catalog-megamenu-r3 .menu1.new {
    padding-right: 32px;
    padding-left: 32px;
  }

  body.eo-modern-page .eo-catalog-megamenu-r3 .menu1.new > .menu__collapse {
    column-gap: 36px;
  }
}

@media (max-width: 991px) {
  .eo-modern-header .eo-header-main {
    min-height: 0;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 12px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .eo-modern-header .eo-header-logo-slot { grid-column: 1; grid-row: 1; }
  .eo-modern-header .eo-header-actions { grid-column: 2; grid-row: 1; }
  .eo-modern-header .eo-header-catalog { grid-column: 1; grid-row: 2; }
  .eo-modern-header .eo-header-search { grid-column: 2; grid-row: 2; }
  .eo-modern-header .eo-header-sticky-phone { display: none; }

  .eo-modern-header .eo-header-actions {
    grid-template-columns: repeat(3, 44px) 54px;
    gap: 5px;
  }

  .eo-modern-header .eo-header-actions .header-block__item-caption { display: none; }

  .eo-modern-header .eo-header-actions .header-cart {
    width: 54px;
    height: 44px;
    justify-content: center;
    padding: 0;
  }

  .eo-modern-header .eo-header-cart-copy { display: none; }

  .eo-modern-header .eo-header-catalog .header-menu__btn {
    width: 150px;
    height: 50px;
  }

  .eo-modern-header .eo-header-search .header-search__input { height: 50px; }
  .eo-modern-header .eo-header-search .header-search__btn { height: 40px; }
  .eo-modern-header .eo-header-links { display: none; }
  .eo-modern-header .eo-header-secondary .header-block__item-telephone { margin-left: auto; }
}

@media (max-width: 767px) {
  .eo-modern-header .eo-header-actions {
    grid-template-columns: 40px 44px;
    gap: 5px;
  }

  .eo-modern-header .eo-header-actions [data-eo-action="wishlist"],
  .eo-modern-header .eo-header-actions [data-eo-action="compare"] {
    display: none !important;
  }

  .eo-modern-header .eo-header-actions .top-menu__btn,
  .eo-modern-header .eo-header-actions .header-account {
    width: 38px;
    height: 38px;
  }

  .eo-modern-header .eo-header-actions .header-cart {
    width: 44px;
    height: 40px;
  }

  .eo-modern-header .eo-header-secondary .header-phones__main { font-size: 16px; }

  .eo-modern-home > .eo-main-navigation {
    gap: 7px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .eo-modern-home > .eo-main-navigation a {
    height: 38px;
    min-height: 38px;
    flex: 0 0 auto;
    padding: 0 14px;
    font-size: 12px;
  }
}

@media (max-width: 600px) {
  .eo-modern-header .eo-header-main {
    grid-template-columns: minmax(135px, 1fr) auto;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .eo-modern-header .eo-header-catalog { grid-column: 1; grid-row: 2; }
  .eo-modern-header .eo-header-search { grid-column: 1 / -1; grid-row: 3; }
  .eo-modern-header .eo-brand-logo strong { font-size: 25px; }
  .eo-modern-header .eo-brand-logo small { display: none; }
  .eo-modern-header .eo-header-catalog .header-menu__btn { width: 132px; }
  .eo-modern-header .eo-header-search .header-search__form::before { left: 16px; }
  .eo-modern-header .eo-header-search .header-search__input { padding-left: 46px; }
}
