/* ===================================================================
   CABEÇALHO — responsivo
=================================================================== */

@media (max-width: 900px) {
  .header__crest img {
    height: 58px;
    margin-block: -8px;
  }

  .header__toggle {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 88px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-navy);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: var(--gap-md);
    padding: var(--gap-lg) 1.5rem;
    margin-left: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .header__nav.is-open {
    transform: translateX(0);
  }

  .header__menu,
  .header__menu--right {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gap-sm);
    width: 100%;
  }

  .header__crest {
    order: -1;
    align-self: center;
  }

  .header__login,
  .header__conta {
    align-self: flex-start;
  }

  .header__conta-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0.3rem 0 0 0.4rem;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .header__conta.is-open .header__conta-menu {
    display: block;
  }

  .header__toggle.is-active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }
  .header__toggle.is-active span:nth-child(2) {
    opacity: 0;
  }
  .header__toggle.is-active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }
}

@media (max-width: 480px) {
  .header__bar {
    min-height: 72px;
  }

  .header__umbro {
    height: 26px;
  }

  .header__crest img {
    height: 48px;
  }

  .header__nav {
    top: 72px;
  }

  .header__carrinho {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
}
