/* ================= HEADER ICONS ================= */

/* General header icon style */
.header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #F9FAFB; /* light gray background */
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.header-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.header-icon:hover {
  background-color: #FFFBEB; /* light yellow hover */
  transform: scale(1.1);
}

/* Badge counters */
.cart-count,
.wish-count {
  font-size: 10px;
  font-weight: 600;
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 50%;
  color: #fff;
  background-color: #F59E0B; /* Canada brand primary */
  padding: 0 4px;
  box-shadow: 0 0 0 2px #fff;
}

/* ================= ACCOUNT BUTTON & DROPDOWN ================= */

.account-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid #E5E7EB; /* light gray border */
  background-color: #FFFFFF; /* white background */
  color: #1F2937; /* dark text */
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.account-btn:hover {
  background-color: #FFFBEB; /* light yellow hover */
  border-color: #F59E0B; /* brand color border */
}

.account-btn svg {
  transition: transform 0.3s ease;
}

.group:hover .account-btn svg {
  transform: rotate(180deg);
}

/* Dropdown container */
.account-dropdown {
  position: absolute;
  right: 0;
  margin-top: 0.5rem;
  width: 18rem;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 50;
  overflow: hidden;
}

.group:hover .account-dropdown {
  opacity: 1;
  visibility: visible;
}

/* Dropdown content */
.account-dropdown .p-4 {
  padding: 1rem;
}

.account-dropdown a {
  display: block;
  text-align: center;
  padding: 0.5rem 0;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.account-dropdown a.login-btn {
  background-color: #1F2937; /* dark background */
  color: #fff;
}

.account-dropdown a.login-btn:hover {
  background-color: #111827;
}

.account-dropdown a.signup-btn {
  border: 1px solid #F59E0B;
  color: #F59E0B;
}

.account-dropdown a.signup-btn:hover {
  background-color: #FFFBEB;
}

/* Optional small text */
.account-dropdown .small-text {
  font-size: 0.75rem;
  color: #6B7280;
  text-align: center;
  margin-top: 0.5rem;
}
