.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: 100px;
    padding: 0 5%; 
    box-sizing: border-box;
}

.header-container a {
    color: rgba(220, 235, 255, 0.75);
    text-decoration: none;
    font-family: 'rye', cursive;
    font-size: 19px;
    font-weight: 600;
    transition: 0.4s;
}

.header-spacer {
    flex: 1; /* Ocupa exatamente 1/3 do espaço */
    display: flex;
    justify-content: flex-start; /* Joga a logo para a esquerda */
    align-items: center;
    margin-left: -50px;
    margin-top: 10px;
}

.home-logo {
    width: 120px;
}

.header-sections a {
  white-space: nowrap;
}

.header-container a:hover {
    color: rgb(255, 255, 255);
}

.header-container a:visited {
    color: rgba(220, 235, 255, 0.75);
}

.header-sections {
    flex: 1; /* Ocupa exatamente 1/3 do espaço */
    display: flex;
    justify-content: center; /* Centraliza os links no meio da tela */
    align-items: center;
    gap: 50px;
}

.actions-container {
    flex: 1; /* Ocupa exatamente 1/3 do espaço */
    display: flex;
    justify-content: flex-end; /* Joga o carrinho/login para a direita */
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px; /* Espaçamento limpo entre os itens */
}

.user-greeting {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: rgba(220, 235, 255, 0.6);
}

.btn-cart {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(220, 235, 255, 0.85);
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 8px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.2s, color 0.2s;
}

.btn-cart:hover {
  border-color: #ffffff;
  color: #ffffff;
}

/* ícone do carrinho via CSS */
.cart-icon {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 0 0 2px 2px;
  margin-top: 3px;
}

.cart-icon::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 2px;
  width: 8px;
  height: 5px;
  border: 1.5px solid currentColor;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
}

/* rodas */
.cart-icon::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 1px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 7px 0 0 currentColor;
}

/* badge de quantidade */
.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ffffff;
  color: #000;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 700;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-logout {
  font-family: 'Cinzel', serif !important;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(220, 235, 255, 0.5) !important;
  text-decoration: none;
  transition: color 0.2s;
}

.btn-logout:hover {
  color: #fff !important;
}

.btn-login {
  font-family: 'Cinzel', serif !important;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: rgba(220, 235, 255, 0.75) !important;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 8px 18px;
  transition: border-color 0.2s, color 0.2s;
}

.btn-login:hover {
  border-color: #ffffff;
  color: #ffffff !important;
}

@media (max-width: 768px) {
    .header-container {
        margin-top: 20px; /* Reduz o espaço no topo */
    }

    .header-sections {
        margin-right: 40px; /* Tira aquela margem gigante de 80px */
        gap: 15px; /* Aproxima os links */
    }

    a {
        font-size: 14px; /* Diminui a fonte dos links para caberem */
    }
}
