/* ═══════════════════════════════════════════════
   MAIN HEADER  —  all classes prefixed with mh-
   No global selectors. No class collisions.
   ═══════════════════════════════════════════════ */

/* ── Main header — always white ── */
.mh-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 1px 12px rgba(0, 0, 0, .07);
}

.mh-inner {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Logo ── */
.mh-logo {
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.mh-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* ── Nav links ── */
.mh-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mh-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: background .2s, color .2s;
  white-space: nowrap;
}

.mh-nav-link:hover {
  background: rgba(27, 43, 101, .07);
  color: #1B2B65;
}

.mh-nav-link.mh-nav-active {
  background: rgba(232, 77, 20, .1);
  color: var(--primary, #e84d14);
}

.mh-nav-icon {
  font-size: 12px;
  opacity: .8;
}

/* ── Right side ── */
.mh-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mh-desktop-items {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Wallet chip ── */
.mh-wallet {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(232, 77, 20, .08);
  border: 1px solid rgba(232, 77, 20, .25);
  color: var(--primary, #e84d14);
  padding: 7px 14px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, border-color .2s;
}

.mh-wallet:hover {
  background: rgba(232, 77, 20, .15);
  border-color: rgba(232, 77, 20, .4);
}

/* ── Icon pills ── */
.mh-icon-pill {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 43, 101, .06);
  border: 1px solid rgba(27, 43, 101, .12);
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
  color: var(--navy, #1B2B65);
  flex-shrink: 0;
  transition: background .2s, border-color .2s;
}

.mh-icon-pill:hover {
  background: rgba(27, 43, 101, .1);
}

/* Wishlist badge */
.mh-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  background: var(--primary, #e84d14);
  color: #fff;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #fff;
  padding: 0 3px;
}

/* Notification dot */
.mh-notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary, #e84d14);
  border: 1.5px solid #fff;
}

/* ── Profile pill ── */
.mh-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 8px 4px 10px;
  background: rgba(27, 43, 101, .06);
  border: 1px solid rgba(27, 43, 101, .12);
  border-radius: 50px;
  transition: background .2s, border-color .2s;
}

.mh-profile:hover {
  background: rgba(27, 43, 101, .1);
}

.mh-profile-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mh-profile-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy, #1B2B65);
  margin: 0;
  line-height: 1.2;
}

.mh-profile-role {
  font-size: 12px;
  color: var(--slate-500, #6B7280);
  margin: 0;
}

.mh-avatar-initials {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e84d14, #f97316);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: .5px;
}

/* ── Burger button ── */
.mh-burger {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: rgba(27, 43, 101, .06);
  border: 1px solid rgba(27, 43, 101, .12);
  border-radius: 50px;
  cursor: pointer;
  font-size: 16px;
  color: var(--navy, #1B2B65);
  flex-shrink: 0;
  transition: background .2s, border-color .2s;
}

/* ── Mobile nav panel ── */
.mh-mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
  z-index: 999;
}

.mh-mobile-nav.mh-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mh-mn-inner {
  padding: 16px;
}

.mh-mn-profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--navy-50, #eef1f8);
  border-radius: 12px;
  cursor: pointer;
  margin-bottom: 12px;
  width: 100%;
  border: none;
  text-align: left;
}

.mh-mn-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.mh-mn-info {
  flex: 1;
}

.mh-mn-name {
  font-weight: 700;
  color: var(--navy, #1B2B65);
  font-size: 14px;
  margin: 0;
  line-height: 1.2;
}

.mh-mn-role-tag {
  font-size: 12px;
  color: var(--primary, #e84d14);
  margin: 0;
  font-weight: 600;
}

.mh-mn-chevron {
  color: var(--slate-400, #9CA3AF);
  font-size: 14px;
}

/* Mobile nav links */
.mh-mn-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.mh-mn-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #1B2B65;
  text-decoration: none;
  transition: background .15s;
}

.mh-mn-nav-link:hover { background: #f1f5f9; }
.mh-mn-nav-link.mh-mn-nav-active {
  background: rgba(232,77,20,.08);
  color: #e84d14;
}

.mh-mn-avatar-initials {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e84d14, #f97316);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mh-mn-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mh-mn-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s;
}

.mh-mn-item:hover {
  background: var(--slate-100, #F1F5F9);
}

.mh-mn-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.mh-mn-text p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy, #1B2B65);
}

.mh-mn-text span {
  font-size: 12px;
  color: var(--slate-500, #6B7280);
}

/* ── Overlay ── */
.mh-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(0, 0, 0, .42);
}

/* ══════════════════════
   RESPONSIVE
   ══════════════════════ */
@media (max-width: 768px) {
  .mh-nav,
  .mh-desktop-items {
    display: none;
  }

  .mh-burger {
    display: flex;
  }
}

@media (max-width: 640px) {
  .mh-header {
    padding: 8px 0;
  }
}

@media (max-width: 480px) {
  .mh-logo-img {
    height: 30px;
  }

  .mh-inner {
    width: 94%;
  }
}
