/* Estilos do Header - Responsivo */

.header {
  background-color: rgb(254, 241, 244);
  border-bottom: 1px solid rgba(228, 135, 156, 0.24);
  position: relative;
  z-index: 998;
  width: 100%;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 8px;
}

/* Menu hamburger */
.hamburger-menu {
  display: none;
  background: transparent;
  border: none;
  padding: 12px;
  cursor: pointer;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
}

.hamburger-menu img {
  width: 30px;
  height: 30px;
}

/* Logo container */
.logo-container {
  display: flex;
  align-items: center;
  flex-grow: 1;
  justify-content: center;
  min-height: 56px;
  padding: 4px 8px;
}

.logo-link {
  display: block;
  text-decoration: none;
}

.logo {
  height: 44px;
  width: auto;
  max-width: 100%;
}

/* Navegação container */
.nav-container {
  display: flex;
  align-items: center;
}

/* Navegação desktop */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: rgb(124, 58, 0);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.05px;
  padding: 11px 12px;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  opacity: 0.8;
}

/* Seção pickup e carrinho */
.pickup-cart-section {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.pickup-info {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  text-align: right;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edit-btn {
  background: none;
  border: none;
  color: rgb(124, 58, 0);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.05px;
  cursor: pointer;
  padding: 11px 0;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

.edit-btn:hover {
  opacity: 0.8;
}

.divider {
  width: 1px;
  height: 30px;
  background-color: rgb(74, 74, 74);
  margin: 0 8px;
}

/* Carrinho */
.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.cart-link:hover {
  transform: scale(1.05);
}

.cart-icon {
  width: 31px;
  height: 26px;
}

.cart-count {
  position: absolute;
  top: -2px;
  right: -8px;
  background-color: rgb(228, 135, 156);
  color: rgb(105, 54, 22);
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  padding: 3px 6px;
  min-width: 24px;
  text-align: center;
  line-height: 16px;
  letter-spacing: 0.9px;
}

.header-divider {
  height: 1px;
  background-color: rgba(228, 135, 156, 0.24);
  width: 100%;
}

/* Navegação mobile */
.mobile-nav {
  display: none;
  background-color: rgba(246, 162, 182, 0.15);
  padding: 8px 18px;
  align-items: center;
  justify-content: space-between;
}

.mobile-pickup-info {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  flex: 1;
}

.mobile-cart-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  text-decoration: none;
}

.mobile-cart-icon {
  width: 26px;
  height: 22px;
}

.mobile-cart-count {
  position: absolute;
  top: -2px;
  right: -6px;
  background-color: rgb(228, 135, 156);
  color: rgb(105, 54, 22);
  font-size: 12px;
  font-weight: 600;
  border-radius: 10px;
  padding: 2px 5px;
  min-width: 20px;
  text-align: center;
  line-height: 14px;
  letter-spacing: 0.8px;
}

/* Media Queries para Responsividade */

/* Tablets */
@media (max-width: 768px) {
  .header-content {
    padding: 0 12px;
    height: 64px;
  }
  
  .logo {
    height: 40px;
  }
  
  .pickup-info {
    max-width: 150px;
    font-size: 12px;
  }
  
  .nav-link {
    font-size: 12px;
    padding: 8px 10px;
  }
  
  .desktop-nav {
    gap: 16px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .header-content {
    padding: 0 12px;
    height: 60px;
  }
  
  .hamburger-menu {
    display: flex;
    order: -1;
  }
  
  .desktop-nav {
    display: none;
  }
  
  .logo-container {
    justify-content: center;
    margin: 0 12px;
  }
  
  .logo {
    height: 36px;
  }
  
  .pickup-cart-section {
    display: none;
  }
  
  .mobile-nav {
    display: flex;
  }
}

/* Mobile pequeno */
@media (max-width: 480px) {
  .header-content {
    padding: 0 8px;
    height: 56px;
  }
  
  .logo {
    height: 32px;
  }
  
  .hamburger-menu {
    padding: 8px;
  }
  
  .hamburger-menu img {
    width: 24px;
    height: 24px;
  }
  
  .mobile-nav {
    padding: 6px 12px;
  }
  
  .mobile-pickup-info {
    font-size: 11px;
  }
}

/* Mobile muito pequeno */
@media (max-width: 360px) {
  .header-content {
    padding: 0 6px;
    height: 52px;
  }
  
  .logo {
    height: 28px;
  }
  
  .mobile-nav {
    padding: 4px 8px;
  }
  
  .mobile-pickup-info {
    font-size: 10px;
  }
  
  .mobile-cart-link {
    width: 32px;
    height: 32px;
  }
  
  .mobile-cart-icon {
    width: 22px;
    height: 18px;
  }
  
  .mobile-cart-count {
    font-size: 11px;
    padding: 1px 4px;
    min-width: 18px;
  }
}

/* Landscape em celulares */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .header-content {
    height: 48px;
    padding: 0 12px;
  }
  
  .logo {
    height: 28px;
  }
  
  .mobile-nav {
    padding: 4px 12px;
  }
}

