/* Header logo and navigation normalization. */
.header-main-area,
.header-actions-area,
.header-layout,
.site-navigation {
  min-width: 0;
}

.header-layout {
  display: flex;
  width: 100%;
  align-items: center;
  gap: clamp(22px, 3vw, 52px);
}

.site-logo {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  margin: 0;
}

.site-logo__link {
  display: flex;
  width: auto;
  max-width: 160px;
  height: 54px;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.site-logo__image {
  display: block;
  width: auto !important;
  max-width: 160px !important;
  height: auto !important;
  max-height: 52px !important;
  object-fit: contain;
  object-position: left center;
}

.site-navigation {
  flex: 1 1 auto;
  width: auto;
}

.site-navigation .main-menu {
  display: flex !important;
  width: 100%;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

.site-navigation .main-menu > li {
  position: relative;
  min-width: 0;
  flex: 0 0 auto;
}

.site-navigation .main-menu > li > a {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  padding: 10px clamp(7px, .85vw, 14px);
  font-size: clamp(10px, .76vw, 12px);
  line-height: 28px;
  white-space: nowrap;
}

.site-navigation .main-menu > li > a i {
  flex: 0 0 auto;
  margin-left: 2px;
}

.site-navigation .sub-menu a {
  white-space: normal;
}

.header-actions {
  min-width: 0;
  white-space: nowrap;
}

.header-actions .cart-block-links,
.header-actions .cart-block-links > ul {
  flex: 0 0 auto;
}

@media screen and (min-width: 1200px) and (max-width: 1399px) {
  .header-layout {
    gap: 20px;
  }

  .site-navigation {
    display: none !important;
  }

  .header-actions .mobile-menu-toggle {
    display: block !important;
  }
}

@media screen and (max-width: 1199px) {
  .header-layout {
    gap: 0;
  }

  .site-logo__link,
  .site-logo__image {
    max-width: 145px !important;
  }
}

@media screen and (max-width: 575px) {
  .site-logo__link {
    height: 46px;
  }

  .site-logo__link,
  .site-logo__image {
    max-width: 128px !important;
  }

  .site-logo__image {
    max-height: 42px !important;
  }

  .header-actions .cart-block-links li a {
    width: 34px;
    height: 38px;
    line-height: 38px;
  }

  .header-actions .mobile-menu-toggle {
    margin-left: 2px;
  }
}
