/* ==========================================================================
   Header, Top Bar, Sticky Nav & 4-Column Enterprise Mega Menu
   ========================================================================== */

/* Top Bar */
body.mct-enterprise-ui #top-bar {
  background-color: var(--mct-navy-deep);
  min-height: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
body.mct-enterprise-ui #top-bar .nav > li > a,
body.mct-enterprise-ui #top-bar .html {
  color: var(--mct-text-on-dark);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
body.mct-enterprise-ui #top-bar .nav > li > a:hover {
  color: #fff;
}
body.mct-enterprise-ui #top-bar .mct-topbar-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e2e8f0;
  font-size: 12.5px;
}
body.mct-enterprise-ui #top-bar .mct-topbar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mct-cyan);
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.25);
}

/* Main Header */
body.mct-enterprise-ui #masthead.header-main {
  background: var(--mct-surface);
  border-bottom: 1px solid var(--mct-border);
}
body.mct-enterprise-ui .header-wrapper.stuck {
  box-shadow: 0 6px 24px rgba(11, 31, 58, 0.12);
}

/* Logo */
body.mct-enterprise-ui #logo a img {
  max-height: 54px;
  width: auto;
  object-fit: contain;
}

/* Search Form */
body.mct-enterprise-ui .header-search-form-wrapper .searchform {
  max-width: 560px;
}
body.mct-enterprise-ui .header-search-form-wrapper .flex-row {
  background: var(--mct-bg);
  border: 1.5px solid var(--mct-border-strong);
  border-radius: var(--mct-radius-md);
  overflow: hidden;
  transition: border-color var(--mct-transition), box-shadow var(--mct-transition);
}
body.mct-enterprise-ui .header-search-form-wrapper .flex-row:focus-within {
  border-color: var(--mct-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
  background: #fff;
}
body.mct-enterprise-ui .header-search-form-wrapper input.search-field,
body.mct-enterprise-ui .header-search-form-wrapper select.search_categories {
  height: 42px;
  border: none;
  background: transparent;
  box-shadow: none;
  font-size: 13.5px;
  color: var(--mct-text);
  margin: 0;
}
body.mct-enterprise-ui .header-search-form-wrapper select.search_categories {
  border-right: 1px solid var(--mct-border);
  max-width: 155px;
  font-weight: 600;
  color: var(--mct-navy);
}
body.mct-enterprise-ui .header-search-form-wrapper .ux-search-submit {
  height: 42px;
  min-width: 48px;
  background: var(--mct-blue);
  color: #fff;
  border: none;
  border-radius: 0;
  margin: 0;
}
body.mct-enterprise-ui .header-search-form-wrapper .ux-search-submit:hover {
  background: var(--mct-blue-hover);
}

/* Header Right Support Block */
.mct-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.mct-header-hotline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--mct-radius-md);
  background: var(--mct-bg);
  border: 1px solid var(--mct-border);
  transition: all var(--mct-transition);
}
.mct-header-hotline:hover {
  border-color: var(--mct-blue-border);
  background: var(--mct-blue-light);
}
.mct-header-hotline__icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--mct-navy);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.mct-header-hotline__info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.mct-header-hotline__info small {
  font-size: 11px;
  font-weight: 600;
  color: var(--mct-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.mct-header-hotline__info strong {
  font-family: var(--mct-font-heading);
  font-size: 14.5px;
  font-weight: 800;
  color: var(--mct-navy);
}
.mct-header-quote-btn {
  padding: 10px 16px;
  font-size: 13px;
  white-space: nowrap;
}

/* Header Bottom Navigation Bar */
body.mct-enterprise-ui #wide-nav.header-bottom {
  background: var(--mct-navy);
  min-height: 48px;
  border-bottom: 2px solid var(--mct-blue);
}
body.mct-enterprise-ui #wide-nav .header-bottom-nav > li > a {
  color: #f1f5f9;
  font-family: var(--mct-font-heading);
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0 12px;
  line-height: 48px;
}
body.mct-enterprise-ui #wide-nav .header-bottom-nav > li > a:hover,
body.mct-enterprise-ui #wide-nav .header-bottom-nav > li.current-menu-item > a {
  color: #60A5FA;
}
body.mct-enterprise-ui #wide-nav .cart-item .header-cart-link,
body.mct-enterprise-ui #wide-nav .account-item .nav-top-link {
  color: #f1f5f9;
}

/* Enterprise 4-Column Mega Menu */
body.mct-enterprise-ui .nav-dropdown.nav-dropdown-default {
  padding: 0;
  border: 1px solid var(--mct-border);
  border-top: 3px solid var(--mct-blue);
  border-radius: 0 0 var(--mct-radius-md) var(--mct-radius-md);
  box-shadow: var(--mct-shadow-lg);
  background: var(--mct-surface);
}

.mct-mega-menu {
  padding: 24px 20px;
  background: var(--mct-surface);
  color: var(--mct-text);
  text-transform: none;
  letter-spacing: 0;
}
.mct-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.mct-mega-col__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mct-font-heading);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mct-navy);
  padding-bottom: 10px;
  margin: 0 0 12px;
  border-bottom: 2px solid var(--mct-blue);
}
.mct-mega-col__title a {
  color: inherit;
  text-decoration: none;
}
.mct-mega-col__title a:hover {
  color: var(--mct-blue);
}
.mct-mega-group {
  margin-bottom: 14px;
}
.mct-mega-group__head {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--mct-navy);
  text-decoration: none;
  margin-bottom: 6px;
}
.mct-mega-group__head:hover {
  color: var(--mct-blue);
}
.mct-mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mct-mega-list li {
  margin: 0 0 4px;
  padding: 0;
}
.mct-mega-list li a {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--mct-text-secondary);
  text-decoration: none;
  padding: 3px 0;
  transition: all var(--mct-transition);
}
.mct-mega-list li a:hover {
  color: var(--mct-blue);
  padding-left: 5px;
}

/* Mega Menu Right Promo Card */
.mct-mega-promo {
  background: linear-gradient(145deg, var(--mct-navy) 0%, #163766 100%);
  border-radius: var(--mct-radius-md);
  padding: 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  height: 100%;
}
.mct-mega-promo__tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(6, 182, 212, 0.2);
  border: 1px solid rgba(6, 182, 212, 0.45);
  color: #67E8F9;
  padding: 3px 9px;
  border-radius: var(--mct-radius-pill);
}
.mct-mega-promo h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}
.mct-mega-promo p {
  color: #CBD5E1;
  font-size: 12.8px;
  line-height: 1.55;
  margin: 0;
}
.mct-mega-promo__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
