.header_top {
  background: var(--faixa-fundo, #000);
}

.header_top .container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 0;
}

.text_header_top {
  color: var(--faixa-texto, #FFF);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  text-align: center;
  /* 125% */
}

.faixa_topo_link {
  color: inherit;
  text-decoration: none;
}

.header_top .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Faixa do topo em loop (marquee) */
.header_top--marquee {
  position: relative;
  overflow: hidden;
  padding: 15px 0;
}

.faixa_topo_trilho {
  display: flex;
  width: max-content;
  animation: faixa_topo_loop var(--faixa-duracao, 40s) linear infinite;
}

.header_top--marquee:hover .faixa_topo_trilho {
  animation-play-state: paused;
}

.faixa_topo_grupo {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.faixa_topo_grupo .text_header_top {
  white-space: nowrap;
}

.faixa_topo_sep {
  color: var(--faixa-texto, #FFF);
  padding: 0 24px;
  line-height: 20px;
}

@keyframes faixa_topo_loop {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .faixa_topo_trilho {
    animation: none;
    width: auto;
    justify-content: center;
  }

  .faixa_topo_grupo + .faixa_topo_grupo,
  .faixa_topo_grupo .text_header_top ~ .text_header_top,
  .faixa_topo_grupo .faixa_topo_sep {
    display: none;
  }

  /* Parada: o texto quebra linha em vez de ser cortado no celular */
  .faixa_topo_grupo {
    flex-shrink: 1;
    padding: 0 16px;
  }

  .faixa_topo_grupo .text_header_top {
    white-space: normal;
  }
}

@media (max-width: 600px) {
  .header_top .container {
    padding: 12px 16px;
  }

  .header_top--marquee {
    padding: 12px 0;
  }

  .text_header_top {
    font-size: 14px;
    line-height: 18px;
  }
}

.header_main {
  background-color: #FFF;
}

.header_main .container {
  display: flex;
  padding: 32px 0;
  flex-direction: row;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.header_search form {
  border-radius: 10px;
  background: var(--GrayScale-Lighter, #F4F5F5);
  border: none;
  padding: 16px 32px;
  height: 56px;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 182px;
}

.header_search input[type="search"] {
  color: var(--gray-scale-light-active, #909DAD);
  text-align: center;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  background: none;
  border: none;
  width: 258px;
  text-align: left;
  outline: none;
}

.header_contact,
.header_login {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header_contact a,
.header_login a {
  color: #000;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

/* Logout */
.user-info {
  position: relative;
  cursor: pointer;
  display: inline-block;
}

.user-options {
  display: none;
  flex-direction: column;
  gap: 12px;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.user-info:hover .user-options {
  display: flex;
}

.user-options a {
  color: #333;
  text-decoration: none;
}

.user-options a:hover {
  color: #000;
}

.a_user_logado {
  width: 135px;
  display: flex;
  gap: 8px;

}

.a_user_logado p {
  color: #000;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
  /* 128.571% */
}

.a_user_logado p:hover {
  border-bottom: 1px solid #931058;
}

.a_user_logado img {
  width: 24px;
}

.header_cart {
  position: relative;
}

.header_cart .cart-count-header {
  position: absolute;
  color: #FFF;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 9.714px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  background: #36BF84;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  top: 0px;
  right: -5px;
}

/* Popup sacola */

@media (max-width: 1024px) {
  .header_main .container {
    padding: 32px 20px;
    justify-content: center;
  }

  .header_search form {
    gap: 8px;
    padding: 10px 16px;
  }
}

@media (max-width: 600px) {

  .header_login img,
  .header_contact img,
  .header_cart img {
    width: 24px;
  }

  .header_login a,
  .header_contact a,
  .header_cart a {
    font-size: 12px;
  }


  .header_search {
    width: 100%;
  }

  .header_main .container {
    justify-content: space-between;
  }
}
/* Cabeçalho mais baixo (antes ~250px até o conteúdo) */
.header_main .container {
  padding: 20px 0;
}

@media (max-width: 1024px) {
  .header_main .container {
    padding: 16px 20px;
  }
}
