/* ============================================================
   Header — Concept A "Refined Megamenu"
   See docs/superpowers/specs/2026-05-16-header-navigation-redesign-design.md
   ============================================================ */
:root {
  --gx-header-utility-h: 36px;
  --gx-header-main-h: 72px;
  --gx-header-nav-h: 48px;
  --gx-header-total-h: 156px;
  --gx-header-mobile-h: 64px;
  --gx-header-dark: var(--black-color, #010101);
  --gx-header-dark-2: #1a2230;
  --gx-header-text: #1a2230;
  --gx-header-text-light: #f4f6f8;
  --gx-header-muted: #6b7480;
  --gx-header-muted-light: #a6adb6;
  --gx-header-border: #eaecef;
  --gx-header-surface: #f4f6f8;
  --gx-brand: #1e3c72;
  --gx-brand-2: #2a5298;
  --gx-accent: #ffbb34;
  --gx-accent-strong: #e9a51d;
  --gx-danger: #d33a3a;
}
/* Reserve space below the fixed header. Inserted as a sibling of
   <header> so every page (including Home, which doesn't use
   .page-container) gets the right offset.
   flex-shrink: 0 because Metronic's style.bundle.css sets body to
   display: flex; flex-direction: column — without it the empty
   spacer collapses to 0 and the fixed header overlaps content. */
.gx-header-spacer {
  flex-shrink: 0;
  height: var(--gx-header-total-h);
}
@media (max-width: 991.98px) {
  .gx-header-spacer {
    height: var(--gx-header-mobile-h);
  }
}
/* Override the legacy `.page-container { padding-top: 6rem !important }`
   and `.items-page-container { padding-top: 6rem }` rules from _Layout.less
   — the spacer now handles offset, so page wrappers shouldn't double up. */
.page-container,
.items-page-container {
  padding-top: 0 !important;
}
/* ============================================================
   Outer shell
   ============================================================ */
.gx-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: #fff;
  font-family: inherit;
  color: var(--gx-header-text);
}
.gx-header a {
  color: inherit;
  text-decoration: none;
}
.gx-header *,
.gx-header *::before,
.gx-header *::after {
  box-sizing: border-box;
}
.gx-row-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
/* ============================================================
   Row 1 — Utility bar (desktop)
   ============================================================ */
.gx-utility {
  background: var(--black-color, #010101);
  color: #cfd3d8;
  font-size: 13px;
  height: var(--gx-header-utility-h);
  overflow: hidden;
  transition: height 0.25s ease;
}
.gx-utility .gx-row-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.gx-utility .gx-util-left,
.gx-utility .gx-util-right {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}
.gx-utility a {
  color: #cfd3d8;
  transition: color 0.15s ease;
}
.gx-utility a:hover,
.gx-utility a:focus-visible {
  color: #fff;
}
.gx-utility .gx-util-item i {
  margin-right: 6px;
  opacity: 0.7;
}
.gx-utility .gx-b2b {
  color: var(--gx-accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.gx-utility .gx-b2b:hover,
.gx-utility .gx-b2b:focus-visible {
  color: var(--gx-accent-strong);
}
.gx-header.is-scrolled .gx-utility {
  height: 0;
}
/* ============================================================
   Row 2 — Main bar (logo, search, actions)
   ============================================================ */
.gx-main {
  background: var(--gx-header-dark);
  color: var(--gx-header-text-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.gx-main .gx-row-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  height: var(--gx-header-main-h);
}
.gx-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}
.gx-logo img {
  height: 44px;
  width: auto;
  display: block;
  /* Override the global .navbar-brand img { height: 60px } */
}
.gx-logo .gx-logo-tag {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--gx-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
}
/* Search */
.gx-search-wrap {
  position: relative;
  max-width: 620px;
  width: 100%;
  justify-self: center;
}
.gx-search-wrap--msearch,
.gx-search-wrap--drawer {
  max-width: none;
}
.gx-search {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 4px 4px 4px 14px;
  width: 100%;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.gx-search:focus-within {
  box-shadow: 0 0 0 3px rgba(255, 187, 52, 0.35);
  border-color: var(--gx-accent);
}
.gx-search > i {
  color: var(--gx-header-muted);
  font-size: 14px;
}
.gx-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  font: inherit;
  color: var(--gx-header-text);
  outline: none;
  min-width: 0;
}
.gx-search input::placeholder {
  color: #98a0aa;
}
.gx-search button.gx-search-submit {
  padding: 8px 18px;
  background: var(--gx-brand);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
.gx-search button.gx-search-submit:hover,
.gx-search button.gx-search-submit:focus-visible {
  background: var(--gx-brand-2);
}
/* Search suggestions dropdown
   Anchored on its own color stack so it isn't pulled into the dark
   .gx-main color scheme via .gx-header a { color: inherit }. */
.gx-header .gx-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  color: #1a2230;
  font-family: Poppins, Helvetica, "sans-serif";
  border-radius: 12px;
  box-shadow: 0 18px 40px -12px rgba(15, 23, 42, 0.25), 0 4px 12px rgba(15, 23, 42, 0.08);
  border: 1px solid #eaecef;
  max-height: 70vh;
  overflow-y: auto;
  z-index: 1100;
  padding: 6px 0;
}
.gx-header .gx-suggest[hidden] {
  display: none;
}
.gx-header .gx-suggest-group + .gx-suggest-group {
  border-top: 1px solid #eaecef;
  margin-top: 4px;
  padding-top: 4px;
}
.gx-header .gx-suggest-group-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7480;
  padding: 8px 16px 4px;
}
.gx-header .gx-suggest-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.gx-header .gx-suggest a.gx-suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  color: #1a2230;
  text-decoration: none;
  transition: background 0.12s ease;
}
.gx-header .gx-suggest a.gx-suggest-item:hover,
.gx-header .gx-suggest a.gx-suggest-item:focus-visible {
  background: rgba(15, 23, 42, 0.06);
  color: #1a2230;
  outline: none;
}
.gx-header .gx-suggest-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b7480;
  flex: none;
  font-size: 13px;
  overflow: hidden;
}
.gx-header .gx-suggest-icon--image {
  background: #fff;
  border: 1px solid #eaecef;
}
.gx-header .gx-suggest-icon--image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.gx-header .gx-suggest-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.gx-header .gx-suggest-label {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  color: #1a2230;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gx-header .gx-suggest-sub {
  font-size: 12px;
  color: #6b7480;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gx-header .gx-suggest-empty {
  padding: 14px 16px;
  color: #6b7480;
  font-size: 13px;
}
.gx-header .gx-suggest a.gx-suggest-viewall {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  margin-top: 4px;
  border-top: 1px solid #eaecef;
  background: rgba(15, 23, 42, 0.02);
  color: #1e3c72;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.gx-header .gx-suggest a.gx-suggest-viewall:hover,
.gx-header .gx-suggest a.gx-suggest-viewall:focus-visible {
  background: rgba(15, 23, 42, 0.07);
  color: #1e3c72;
  outline: none;
}
.gx-header .gx-suggest a.gx-suggest-viewall strong {
  font-weight: 700;
  color: #1a2230;
}
/* Actions (on the dark main bar) */
.gx-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.gx-main .gx-icon-btn {
  color: #fff;
}
.gx-main .gx-icon-btn:hover,
.gx-main .gx-icon-btn:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gx-accent);
}
.gx-icon-btn {
  position: relative;
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--gx-header-text);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  text-decoration: none;
}
.gx-icon-btn:hover,
.gx-icon-btn:focus-visible {
  background: var(--gx-header-surface);
  color: var(--gx-brand);
}
.gx-icon-btn i {
  font-size: 18px;
  line-height: 1;
}
.gx-icon-btn .gx-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--gx-danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}
/* ============================================================
   Row 3 — Nav bar + mega-menu
   ============================================================ */
.gx-nav {
  background: #fff;
  border-bottom: 1px solid var(--gx-header-border);
  position: relative;
}
.gx-nav .gx-row-inner {
  display: flex;
  align-items: center;
  height: var(--gx-header-nav-h);
  gap: 4px;
}
.gx-nav-link,
.gx-nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0 14px;
  font-weight: 600;
  font-size: 14px;
  color: var(--gx-header-text);
  border: 0;
  background: transparent;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.gx-nav-link:hover,
.gx-nav-link:focus-visible,
.gx-nav-trigger:hover,
.gx-nav-trigger:focus-visible,
.gx-nav-trigger[aria-expanded="true"] {
  color: var(--gx-brand);
  border-bottom-color: var(--gx-brand);
}
.gx-nav-trigger i.gx-caret {
  font-size: 10px;
  margin-left: 2px;
  transition: transform 0.15s ease;
}
.gx-nav-trigger[aria-expanded="true"] i.gx-caret {
  transform: rotate(180deg);
}
.gx-vehicle-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--gx-accent);
  color: #1a2230 !important;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.15s ease, transform 0.1s ease;
  border-bottom: 0;
}
.gx-vehicle-cta:hover,
.gx-vehicle-cta:focus-visible {
  background: var(--gx-accent-strong);
  color: #1a2230 !important;
  border-bottom-color: transparent;
}
.gx-vehicle-cta:active {
  transform: translateY(1px);
}
.gx-vehicle-cta i {
  font-size: 16px;
}
/* Mega menu */
.gx-mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--gx-header-border);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  padding: 24px 0;
  display: none;
  z-index: 5;
}
.gx-mega.is-open {
  display: block;
}
.gx-mega-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.2fr;
  gap: 32px;
}
.gx-mega h4 {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gx-header-muted);
  font-weight: 700;
}
.gx-mega ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gx-mega ul a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-weight: 500;
  font-size: 14px;
  color: var(--gx-header-text);
  border-radius: 6px;
  transition: color 0.15s ease;
}
.gx-mega ul a:hover {
  color: var(--gx-brand);
}
.gx-mega ul a .gx-swatch {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--gx-header-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.gx-mega .gx-mega-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 10px 16px;
  background: var(--gx-brand);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s ease;
}
.gx-mega .gx-mega-all:hover,
.gx-mega .gx-mega-all:focus-visible {
  background: var(--gx-brand-2);
  color: #fff;
}
.gx-mega .gx-mega-all::after {
  content: "→";
  font-weight: 700;
}
.gx-mega-promo {
  background: linear-gradient(135deg, var(--gx-brand), var(--gx-brand-2));
  color: #fff;
  padding: 18px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
}
.gx-mega-promo small {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  opacity: 0.85;
  font-weight: 700;
}
.gx-mega-promo strong {
  font-size: 16px;
  display: block;
  margin-top: 6px;
  line-height: 1.3;
  font-weight: 700;
}
.gx-mega-promo .gx-promo-cta {
  align-self: flex-start;
  margin-top: 14px;
  padding: 8px 14px;
  background: var(--gx-accent);
  color: #1a2230;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.gx-mega-promo .gx-promo-cta:hover {
  background: var(--gx-accent-strong);
}
/* ============================================================
   Mobile (< 992 px)
   ============================================================ */
.gx-mobile-bar {
  display: none;
  align-items: center;
  gap: 4px;
  height: var(--gx-header-mobile-h);
  padding: 0 12px;
  background: var(--gx-header-dark);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.gx-mobile-bar .gx-logo img {
  height: 36px;
}
.gx-mobile-bar .gx-logo-tag {
  display: none;
}
.gx-mobile-bar .gx-logo {
  flex: 1;
  justify-content: center;
}
.gx-mobile-bar .gx-icon-btn {
  color: #fff;
}
.gx-mobile-bar .gx-icon-btn:hover,
.gx-mobile-bar .gx-icon-btn:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gx-accent);
}
.gx-mobile-vehicle {
  display: none;
  margin: 12px 16px 4px;
  padding: 14px;
  background: linear-gradient(135deg, var(--gx-brand), var(--gx-brand-2));
  color: #fff !important;
  border-radius: 14px;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.gx-mobile-vehicle.is-visible {
  display: flex;
}
.gx-mobile-vehicle .gx-mv-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.gx-mobile-vehicle .gx-mv-icon i {
  font-size: 18px;
}
.gx-mobile-vehicle .gx-mv-body {
  flex: 1;
  line-height: 1.3;
}
.gx-mobile-vehicle .gx-mv-body strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
}
.gx-mobile-vehicle .gx-mv-body small {
  display: block;
  opacity: 0.85;
  font-size: 12px;
  margin-top: 2px;
}
.gx-mobile-vehicle .gx-mv-arrow {
  flex: none;
  opacity: 0.9;
}
/* Mobile search overlay */
.gx-msearch {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  z-index: 1040;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gx-header-border);
  transform: translateY(-100%);
  transition: transform 0.2s ease;
  display: none;
  align-items: center;
  gap: 8px;
}
.gx-msearch.is-open {
  transform: translateY(0);
  display: flex;
}
.gx-msearch form {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gx-header-surface);
  border-radius: 10px;
  padding: 8px 12px;
}
.gx-msearch form i {
  color: var(--gx-header-muted);
  font-size: 14px;
}
.gx-msearch form input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 6px 0;
  font: inherit;
  outline: none;
  min-width: 0;
}
/* ============================================================
   Drawer
   ============================================================ */
.gx-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1045;
}
.gx-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 86%;
  max-width: 360px;
  background: #fff;
  color: var(--gx-header-text);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  display: flex;
  flex-direction: column;
  z-index: 1050;
}
body.gx-drawer-open .gx-drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}
body.gx-drawer-open .gx-drawer {
  transform: translateX(0);
}
body.gx-drawer-open {
  overflow: hidden;
}
.gx-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--gx-header-border);
}
.gx-drawer-search {
  margin: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gx-header-surface);
  border-radius: 10px;
  padding: 8px 12px;
}
.gx-drawer-search i {
  color: var(--gx-header-muted);
}
.gx-drawer-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 6px 0;
  font: inherit;
  outline: none;
  min-width: 0;
}
.gx-drawer-list {
  list-style: none;
  margin: 4px 0;
  padding: 0;
  flex: 1;
  overflow-y: auto;
}
.gx-drawer-list li.gx-drawer-section {
  padding: 14px 18px 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gx-header-muted);
  font-weight: 700;
}
.gx-drawer-list li a {
  display: block;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gx-header-text);
  border-bottom: 1px solid #f1f3f5;
}
.gx-drawer-list li a:hover,
.gx-drawer-list li a:focus-visible {
  background: var(--gx-header-surface);
}
.gx-drawer-foot {
  padding: 14px 18px;
  border-top: 1px solid var(--gx-header-border);
  display: flex;
  gap: 8px;
}
.gx-drawer-foot a {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  background: var(--gx-brand);
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
}
.gx-drawer-foot a:hover {
  background: var(--gx-brand-2);
}
.gx-drawer-foot a.gx-outline {
  background: transparent;
  color: var(--gx-header-text) !important;
  border: 1px solid var(--gx-header-border);
}
.gx-drawer-foot a.gx-outline:hover {
  background: var(--gx-header-surface);
}
/* ============================================================
   Breakpoint switch
   ============================================================ */
@media (max-width: 991.98px) {
  .gx-utility,
  .gx-main,
  .gx-nav {
    display: none;
  }
  .gx-mobile-bar {
    display: flex;
  }
  .gx-vehicle-cta-mobile-show .gx-mobile-vehicle {
    display: flex;
  }
}
@media (min-width: 992px) {
  .gx-mobile-bar,
  .gx-mobile-vehicle,
  .gx-msearch,
  .gx-drawer,
  .gx-drawer-backdrop {
    display: none !important;
  }
}
/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .gx-utility,
  .gx-drawer,
  .gx-drawer-backdrop,
  .gx-msearch,
  .gx-nav-trigger i.gx-caret {
    transition: none !important;
  }
}
