/* ========================================
   HEADER STYLES - MACAPÁ SHOPPING
   Estilos específicos do cabeçalho
   ======================================== */

/* ========================================
   HEADER PRINCIPAL
   ======================================== */
.header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header .wrap {
  gap: var(--spacing-sm);
  align-items: center;
  padding: var(--spacing-md) 0;
}

/* ========================================
   BRAND/LOGO
   ======================================== */
.brand img {
  display: block;
  height: auto;
  max-height: 50px;
}

/* ========================================
   BARRA DE PESQUISA
   ======================================== */
.search-pill {
  width: 100%;
  flex: 1 1 420px;
}

.search-pill input {
  width: 100%;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--font-size-sm);
  color: var(--ink);
  box-shadow: var(--shadow-sm) inset;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-pill input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(47, 63, 177, 0.1);
}

/* ========================================
   INFORMAÇÕES SUPERIORES
   ======================================== */
.top-info {
  gap: var(--spacing-lg);
  color: var(--brand-light);
  white-space: nowrap;
}

.top-info .item {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.top-info .item:hover {
  color: var(--brand);
}

/* ========================================
   ÍCONES
   ======================================== */
.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  flex: 0 0 18px;
}

/* ========================================
   NAVEGAÇÃO PRINCIPAL
   ======================================== */
.nav-boxes {
  display: flex;
  align-items: stretch;
}

.nav-boxes a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--spacing-md);
  height: 52px;
  text-decoration: none;
  color: var(--ink-light);
  border-left: 1px solid var(--line);
  white-space: nowrap;
  transition: all var(--transition-fast);
  font-weight: 500;
}

.nav-boxes a:hover {
  color: var(--ink);
  background: var(--bg-light);
}

.nav-boxes .last {
  border-right: 1px solid var(--line);
}

/* ========================================
   MENU HAMBURGUER
   ======================================== */
.hamburger {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: var(--spacing-sm);
  transition: all var(--transition-fast);
}

.hamburger:hover {
  border-color: var(--brand);
  background: var(--bg-light);
}

.hamburger .bars {
  position: relative;
  width: 22px;
  height: 14px;
}

.hamburger .bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transition: var(--transition-slow) cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger .bar:nth-child(1) {
  top: 0;
}

.hamburger .bar:nth-child(2) {
  top: 6px;
}

.hamburger .bar:nth-child(3) {
  bottom: 0;
}

.hamburger.is-active .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.is-active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ========================================
   CONTROLES DE VISIBILIDADE
   ======================================== */
.mobile {
  display: none;
}

.desktop {
  display: block;
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */
@media (max-width: 1700px) {
  .mobile {
    display: block;
  }

  .desktop {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .nav-boxes {
    display: none;
  }
  
  .top-info {
    display: none;
  }
  
  .search-pill {
    order: 3;
    flex-basis: 100%;
  }
  
  .header .wrap {
    flex-wrap: wrap;
  }
  
  .search-pill input {
    font-size: var(--font-size-base);
    padding: var(--spacing-md) var(--spacing-lg);
  }
}

@media (max-width: 576px) {
  .header .wrap {
    padding: var(--spacing-sm) 0;
  }
  
  .brand img {
    max-height: 40px;
  }
  
  .hamburger {
    width: 34px;
    height: 34px;
  }
}
