/**
 * Header Actions Bar - [ Meus pedidos (pill) ] [ coração ] [ carrinho ]
 * Layout clean/premium, alinhado e consistente
 */

/* Container principal */
.header-actions,
.areaTopo .itemCesta.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: transparent !important;
  border: none !important;
  width: auto !important;
}

.header-actions li {
  margin: 0;
}

/* Pill "Meus pedidos" */
.header-actions__orders {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #f5f6f8;
  font-weight: 600;
  font-size: 0.9rem;
  color: #1a1a1a;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.header-actions__orders:hover {
  background: #e8eaef;
}

.header-actions__orders svg {
  flex-shrink: 0;
  color: #FF7E46;
}

/* Botões ícone (wishlist/carrinho) */
.header-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  color: #4b5563;
}

.header-icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.header-icon-btn svg {
  flex-shrink: 0;
}

/* Wishlist ativo - ícone verde */
.header-icon-btn.wishlist-icon.is-active {
  color: #28a745;
}

.header-icon-btn.wishlist-icon.is-active svg,
.header-icon-btn.wishlist-icon.is-active svg path {
  stroke: #28a745;
  fill: #28a745;
}

/* Badge menor */
.header-icon-badge,
.header-icon-badge.wishlist-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  background: #FF7E46;
  color: #fff;
}

/* Badge wishlist ativo - verde */
.header-icon-btn.wishlist-icon.is-active .header-icon-badge,
.header-icon-btn.wishlist-icon.is-active .wishlist-count {
  background: #28a745;
}

/* Responsivo: telas menores */
@media (max-width: 767px) {
  .header-actions,
  .areaTopo .itemCesta.header-actions {
    gap: 10px;
  }

  .header-actions__orders {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .header-actions__orders svg {
    width: 18px;
    height: 18px;
  }

  .header-icon-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 10px;
  }

  .header-icon-btn svg {
    width: 20px;
    height: 20px;
  }

  .header-icon-badge {
    min-width: 16px;
    height: 16px;
    font-size: 10px;
    line-height: 16px;
    padding: 0 4px;
    top: -4px;
    right: -4px;
  }
}
