/* ============================================================
   HEADWHEEL — NAVBAR & MEGA MENU
   Dedicated stylesheet — overrides Bootstrap cleanly
   ============================================================ */

/* ── TOP BAR ─────────────────────────────────────────────── */
.hw-topbar {
  background: #0b5394;
  color: #fff;
  padding: 6px 0;
  font-size: .82rem;
  z-index: 1040;
  position: relative;
}
.hw-topbar a { color: #fff; }
.hw-topbar a:hover { color: #ffd54f; }

/* ── MAIN NAVBAR ─────────────────────────────────────────── */
.hw-navbar {
  background: #ffffff;
  box-shadow: 0 2px 16px rgba(11,83,148,.12);
  padding: 6px 0;
  z-index: 1030;
  overflow: visible;
}
/* Prevent nav items overflowing right edge */
.hw-navbar .container-fluid {
  flex-wrap: nowrap;
}
@media (min-width: 1200px) {
  .hw-navbar .navbar-nav {
    flex-wrap: nowrap;
    overflow: visible;
  }
}

/* Brand text */
.hw-brand-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: .92rem;
  color: #0b5394;
  line-height: 1.2;
}
.hw-brand-sub {
  font-size: .70rem;
  color: #607d8b;
  line-height: 1;
}

/* ── NAV LINKS ───────────────────────────────────────────── */
.hw-nav-link {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: .81rem;
  color: #1a2e4a !important;
  padding: .38rem .32rem !important;
  border-radius: 6px;
  text-decoration: none;
  display: block;
  white-space: nowrap;
  transition: color .18s, background .18s;
}
.hw-nav-link:hover,
.hw-nav-link.hw-active {
  color: #0b5394 !important;
  background: #e8f0fb;
}
.hw-nav-link.dropdown-toggle::after {
  margin-left: 4px;
  vertical-align: 2px;
  border-top-color: #0b5394;
}

/* ── STANDARD DROPDOWNS ──────────────────────────────────── */
.hw-dropdown {
  border: none !important;
  box-shadow: 0 8px 32px rgba(11,83,148,.14) !important;
  border-radius: 10px !important;
  padding: .5rem 0 !important;
  min-width: 240px;
  margin-top: 4px !important;
}
.hw-dropdown .dropdown-item {
  font-family: 'Poppins', sans-serif;
  font-size: .81rem;
  color: #2c3e50;
  padding: .45rem 1.1rem;
  border-radius: 6px;
  margin: 1px 6px;
  width: calc(100% - 12px);
  transition: background .15s, color .15s;
}
.hw-dropdown .dropdown-item:hover {
  background: #e8f0fb;
  color: #0b5394;
}
.hw-dropdown .dropdown-header {
  font-size: .72rem;
  letter-spacing: .05em;
  padding: .4rem 1.1rem .2rem;
}

/* ── MEGA MENU PARENT ────────────────────────────────────── */
.hw-mega-parent {
  position: static !important;
}

/* ── MEGA MENU DROPDOWN ──────────────────────────────────── */
.hw-mega-menu {
  /* Stretch full width of navbar */
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  border: none !important;
  border-top: 3px solid #0b5394 !important;
  border-radius: 0 0 12px 12px !important;
  box-shadow: 0 12px 40px rgba(11,83,148,.16) !important;
  padding: 0 !important;
  margin-top: 0 !important;
  top: auto !important; /* let Bootstrap calculate */
}

/* Inner wrapper: 3 equal columns */
.hw-mega-inner {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 20px;
  gap: 0;
}

.hw-mega-col {
  flex: 1;
  padding: 0 20px;
}

.hw-mega-divider {
  width: 1px;
  background: #e3ecf7;
  margin: 4px 0;
  flex-shrink: 0;
}

/* Column heading */
.hw-mega-heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #0b5394;
  border-bottom: 2px solid #e3ecf7;
  padding-bottom: 8px;
  margin-bottom: 10px;
}

/* Group label */
.hw-mega-group {
  font-size: .70rem;
  font-weight: 600;
  color: #78909c;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 8px 8px 2px;
  margin-top: 4px;
}

/* Mega link */
.hw-mega-link {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: .82rem;
  color: #2c3e50;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 6px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.hw-mega-link:hover {
  background: #e8f0fb;
  color: #0b5394;
}
.hw-mega-link i { color: #0b5394; }

/* All products link */
.hw-mega-all {
  margin-top: 8px;
  color: #0b5394 !important;
  font-weight: 600;
  border-top: 1px solid #e3ecf7;
  padding-top: 8px !important;
}
.hw-mega-all:hover { background: #0b5394 !important; color: #fff !important; }
.hw-mega-all:hover i { color: #fff !important; }

/* ── MOBILE: collapse mega as stacked list ───────────────── */
@media (max-width: 1199px) {
  .hw-mega-menu {
    position: static !important;
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    border-left: 3px solid #0b5394 !important;
    border-radius: 0 !important;
    margin-left: 12px;
  }
  .hw-mega-inner {
    flex-direction: column;
    padding: 10px 0;
    gap: 0;
  }
  .hw-mega-col { padding: 4px 8px; }
  .hw-mega-divider { width: 100%; height: 1px; margin: 8px 0; }
  .hw-mega-link { white-space: normal; }
  .hw-navbar { position: relative !important; }
}

/* ── FLOATING WHATSAPP ───────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  text-decoration: none;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  animation: waPulse 2.5s infinite;
}
@keyframes waPulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.5); }
  50%      { box-shadow: 0 4px 32px rgba(37,211,102,.8), 0 0 0 10px rgba(37,211,102,.12); }
}
