/* Cabeçalho global e busca disponível em todas as páginas. */
.hds-header {
  height: 104px;
  border-bottom: 2px solid var(--hds-blue-100);
  background: #fff;
  position: relative;
  z-index: 30;
}

.hds-header .hds-header__inner {
  position: relative;
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hds-header .hds-header__brands {
  position: static;
  display: flex;
  width: 185px;
  flex: 0 0 185px;
  align-items: center;
  gap: 28px;
  margin: 0;
  transform: none;
}

.hds-header .hds-header__brands img:first-child {
  width: 78px !important;
  height: 43px;
  object-fit: contain;
}

.hds-header .hds-header__brands img:last-child {
  width: 77px !important;
  height: 42px;
  object-fit: contain;
}

.hds-header .hds-nav {
  position: static;
  display: flex;
  min-width: 0;
  width: 100%;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.hds-header__navigation {
  display: block;
  min-width: 0;
  width: 100%;
  flex: 1 1 auto;
}

.hds-header .hds-nav__list {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0 210px;
}

.hds-header .hds-nav a {
  display: block;
  padding: 10px 8px;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

.hds-header .hds-nav__list > .hds-menu-cta {
  position: absolute;
  right: 0;
  top: 50%;
  margin: 0 !important;
  transform: translateY(-50%);
}

.hds-header .hds-nav__list > .hds-menu-cta > a {
  min-height: 44px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 20px;
}

.hds-header__actions {
  display: contents;
}

.hds-header .hds-header-search {
  position: absolute;
  top: calc(100% + 1px);
  right: 0;
  z-index: 5;
  display: none;
  width: min(480px, 100%);
  height: 56px;
  margin: 0;
  align-items: center;
  overflow: visible;
  border: 2px solid var(--hds-blue-300);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0,17,82,.16);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.hds-header .hds-header-search.is-open {
  display: flex;
}

.hds-header .hds-header-search:focus-within {
  border-color: var(--hds-blue-600);
  box-shadow: 0 0 0 3px rgba(42,79,218,.12);
}

.hds-header .hds-header-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 8px 0 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--hds-ink);
  font-size: 16px;
  line-height: 20px;
}

.hds-header .hds-header-search input::placeholder {
  color: var(--hds-subtle);
  opacity: 1;
}

.hds-header .hds-header-search__submit {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.hds-header .hds-header-search__submit:hover,
.hds-header .hds-header-search__submit:focus-visible {
  background: var(--hds-blue-100);
}

.hds-header .hds-header-search__submit img {
  width: 20px;
  height: 20px;
}

.hds-header .hds-live-search {
  right: 0;
  left: auto;
  width: 100%;
}

.hds-header .hds-menu-toggle {
  display: none;
}

.hds-header-search-toggle {
  display: grid;
  position: absolute;
  right: 151px;
  top: 50%;
  transform: translateY(-50%);
}

.hds-header-search-toggle,
.hds-header .hds-menu-toggle {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--hds-blue-100);
  border-radius: 10px;
  background: #fff;
  color: var(--hds-blue-600);
  cursor: pointer;
}

.hds-header-search-toggle:hover,
.hds-header-search-toggle:focus-visible,
.hds-header .hds-menu-toggle:hover,
.hds-header .hds-menu-toggle:focus-visible,
.hds-header-search-toggle[aria-expanded="true"],
.hds-header .hds-menu-toggle[aria-expanded="true"] {
  border-color: var(--hds-blue-300);
  background: var(--hds-blue-100);
}

.hds-header-search-toggle img {
  width: 22px;
  height: 22px;
}

.hds-menu-toggle__icon {
  display: flex;
  width: 24px;
  height: 18px;
  flex-direction: column;
  justify-content: space-between;
}

.hds-menu-toggle__icon span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: center;
  transition: transform .2s ease, opacity .2s ease;
}

.hds-menu-toggle[aria-expanded="true"] .hds-menu-toggle__icon span:first-child {
  transform: translateY(8px) rotate(45deg);
}

.hds-menu-toggle[aria-expanded="true"] .hds-menu-toggle__icon span:nth-child(2) {
  opacity: 0;
}

.hds-menu-toggle[aria-expanded="true"] .hds-menu-toggle__icon span:last-child {
  transform: translateY(-8px) rotate(-45deg);
}

@media (min-width: 1181px) {
  .hds-header .hds-header__brands {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }
}

@media (max-width: 1180px) {
  .hds-header {
    height: auto;
    min-height: 88px;
  }

  .hds-header .hds-header__inner {
    min-height: 88px;
    flex-wrap: wrap;
    gap: 0;
    padding-block: 10px;
  }

  .hds-header .hds-header__brands {
    width: 160px;
    flex-basis: 160px;
    gap: 16px;
  }

  .hds-header .hds-header__brands img:first-child {
    width: 72px !important;
    height: 40px;
  }

  .hds-header .hds-header__brands img:last-child {
    width: 71px !important;
    height: 39px;
  }

  .hds-header__actions {
    display: flex;
    position: static;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }

  .hds-header__navigation {
    display: contents;
  }

  .hds-header-search-toggle,
  .hds-header .hds-menu-toggle {
    display: grid;
    position: static;
    margin: 0;
    transform: none;
    font-size: inherit;
  }

  .hds-header .hds-header-search {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    z-index: 5;
    display: none;
    width: 100%;
    height: 56px;
    border-color: var(--hds-blue-300);
    box-shadow: 0 12px 30px rgba(0,17,82,.16);
  }

  .hds-header .hds-header-search.is-open {
    display: flex;
  }

  .hds-header .hds-header-search input {
    padding-left: 16px;
    font-size: 16px;
  }

  .hds-header .hds-header-search__submit {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .hds-header .hds-live-search {
    right: -1px;
    left: -1px;
    width: auto;
  }

  .hds-header .hds-nav {
    display: none;
    order: 3;
    width: 100%;
    flex: 0 0 100%;
    padding-top: 10px;
    overflow: visible;
  }

  .hds-header .hds-nav.is-open {
    display: block;
  }

  .hds-header .hds-nav__list {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 4px;
    border-top: 1px solid var(--hds-blue-100);
  }

  .hds-header .hds-nav a {
    min-height: 46px;
    padding: 13px 12px;
    font-size: 16px;
    line-height: 20px;
    text-align: left;
  }

  .hds-header .hds-nav__list > .hds-menu-cta {
    position: static;
    display: flex;
    width: 100%;
    justify-content: flex-start;
    margin: 8px 0 0 !important;
    transform: none;
  }

  .hds-header .hds-nav__list > .hds-menu-cta > a {
    width: auto;
    min-width: 190px;
    min-height: 48px;
    justify-content: center;
    padding: 12px 16px;
    font-size: 16px;
  }
}

@media (max-width: 479px) {
  .hds-header .hds-header__inner {
    min-height: 82px;
  }

  .hds-header .hds-header__brands {
    width: 150px;
    flex-basis: 150px;
    gap: 12px;
  }

  .hds-header .hds-header__brands img:first-child {
    width: 69px !important;
    height: 38px;
  }

  .hds-header .hds-header__brands img:last-child {
    width: 68px !important;
    height: 37px;
  }

  .hds-header__actions {
    gap: 6px;
  }

  .hds-header-search-toggle,
  .hds-header .hds-menu-toggle {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }
}
