/* ═══════════════════════════════════════════
   HOSTINGOL — Header / Nav Styles
   ═══════════════════════════════════════════ */

.h-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 70px;
  background: #fff;
  border-bottom: 1px solid #e6e7ea;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* ── LOGO ── */
.h-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.h-logo:hover { opacity: 0.9; }

.h-logo-img {
  height: 65px;
  width: auto;
  display: block;
}

/* ── RIGHT SECTION ── */
.h-nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── REFER BUTTON ── */
.h-refer-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  background: #f0ebff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #673de6;
  white-space: nowrap;
  transition: all 0.25s ease-out;
  text-decoration: none;
}
.h-refer-btn:hover { background: #e4deff; }

.h-refer-badge {
  width: 20px;
  height: 20px;
  background: #6c4fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.h-refer-badge svg {
  width: 11px;
  height: 11px;
  fill: #fff;
}

/* ── ASK AI BUTTON ── */
.h-ask-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  background: #fff;
  border: 1.5px solid #e6e7ea;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #1d1e20;
  white-space: nowrap;
  transition: all 0.25s ease-out;
  text-decoration: none;
}
.h-ask-btn:hover { background: #f0ebff; }

.h-ask-btn svg {
  width: 15px;
  height: 15px;
  stroke: #6c4fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ── CART BUTTON ── */
.h-cart-btn {
  position: relative;
}
.h-cart-count {
  position: absolute;
  top: -2px;
  right: -4px;
  background: #6c4fff;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── ICON BUTTONS ── */
.h-icon-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  color: #555;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
  text-decoration: none;
}
.h-icon-btn:hover { background: #f5f5f5; color: #18181A; }

.h-icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
}

/* ── HAMBURGER (mobile) ── */
.h-hamburger {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  color: #555;
  transition: background 0.15s;
  flex-shrink: 0;
}
.h-hamburger:hover { background: #f5f5f5; }

.h-hamburger svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
}

/* ── MOBILE MENU ── */
.h-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px 16px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}
.h-mobile-menu.open { display: flex; }

.h-mobile-menu .h-refer-btn,
.h-mobile-menu .h-ask-btn {
  justify-content: center;
  width: 100%;
  padding: 11px 16px;
  font-size: 14px;
}

.h-mobile-bottom-row {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.h-mobile-bottom-row .h-icon-btn {
  border: 1px solid #ebebeb;
  border-radius: 10px;
  width: 48px;
  height: 48px;
}

/* ── PROFILE BUTTON (logged-in) ── */
.h-profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  background: #f5f5f9;
  border: 1px solid #e6e7ea;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease-out;
  flex-shrink: 0;
  position: relative;
}
.h-profile-btn:hover {
  background: #e6e7ea;
}

.h-profile-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6c4fff, #2563eb);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.h-profile-name {
  font-size: 13px;
  font-weight: 600;
  color: #18181A;
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: none;
}

.h-profile-alert {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Show name on wider screens */
@media (min-width: 1024px) {
  .h-profile-name { display: inline; }
}

/* ── PROFILE DROPDOWN ── */
.h-profile-wrap { position: relative; }
.h-profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid #e6e7ea;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(29,30,32,0.10);
  min-width: 280px;
  z-index: 1200;
  display: none;
  padding: 8px 0;
}
.h-profile-dropdown.open { display: block; }
.h-pd-header { padding: 12px 16px; }
.h-pd-name { display: block; font-size: 14px; font-weight: 600; color: #1d1e20; }
.h-pd-email { display: block; font-size: 13px; color: #6d7081; margin-top: 2px; }
.h-pd-divider { height: 1px; background: #e6e7ea; margin: 4px 0; }
.h-pd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #1d1e20;
  text-decoration: none;
  transition: all 0.25s ease-out;
}
.h-pd-item:hover { background: #f5f5f9; color: #673de6; }
.h-pd-item i { font-size: 18px; color: #9b9dab; width: 20px; text-align: center; }
.h-pd-item:hover i { color: #673de6; }

/* ── ACCOUNT SUB-NAV ── */
.sub-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid #e6e7ea;
  border-radius: 8px;
  padding: 4px;
  width: 100%;
  overflow-x: auto;
  margin-bottom: 20px;
}
.sub-nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #6d7081;
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
  transition: all 0.25s ease-out;
}
.sub-nav-item:hover { background: #f5f5f9; color: #1d1e20; }
.sub-nav-item.active { background: #f0ebff; color: #673de6; font-weight: 600; }
.sub-nav-item i { font-size: 16px; }
.sub-nav-item.active i { color: #673de6; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .h-nav {
    padding: 0 16px;
    height: 56px;
  }
  .h-refer-btn,
  .h-ask-btn,
  .h-icon-btn:not(.h-hamburger) {
    display: none;
  }
  .h-hamburger {
    display: flex;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .h-nav { padding: 0 20px; }
  .h-refer-btn { padding: 6px 11px; font-size: 12px; }
  .h-ask-btn { padding: 6px 12px; font-size: 12px; }
}
  .h-refer-btn,
  .h-ask-btn,
  .h-icon-btn:not(.h-hamburger) {
    display: none;
  }
  .h-hamburger { display: flex; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .h-nav { padding: 0 20px; gap: 6px; }
  .h-refer-btn { padding: 6px 11px; font-size: 12px; }
  .h-ask-btn { padding: 6px 12px; font-size: 12px; }
}
