.ax-megamenu {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  z-index: 30;
}

.ax-megamenu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ax-megamenu__toggle,
.ax-megamenu__backdrop,
.ax-megamenu__mobile-head {
  display: none;
}

.ax-megamenu__root {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}

.ax-megamenu__item {
  position: static;
}

.ax-megamenu__link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  color: #232323;
  font-weight: 600;
  text-decoration: none;
}

.ax-megamenu__link:hover,
.ax-megamenu__item:focus-within > .ax-megamenu__link {
  color: #0b7285;
  background: #f8fafc;
}

.ax-megamenu__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: none;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #d1d5db;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
}

.ax-megamenu__item:hover > .ax-megamenu__panel,
.ax-megamenu__item:focus-within > .ax-megamenu__panel,
.ax-megamenu__item.is-open > .ax-megamenu__panel {
  display: block;
}

.ax-megamenu__columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 28px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 16px;
  align-items: flex-start;
  overflow-x: visible;
}

.ax-megamenu__column {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.ax-megamenu__category {
  break-inside: avoid;
  min-width: 0;
}

.ax-megamenu__category-title {
  display: inline-flex;
  margin-bottom: 8px;
  color: #111827;
  font-weight: 700;
  text-decoration: none;
}

.ax-megamenu__category-title:hover {
  color: #0b7285;
}

.ax-megamenu__links {
  display: grid;
  gap: 5px;
}

.ax-megamenu__links a {
  display: inline-flex;
  color: #4b5563;
  line-height: 1.35;
  text-decoration: none;
}

.ax-megamenu__links a:hover {
  color: #0b7285;
}

@media (max-width: 767px) {
  body.ax-megamenu-lock {
    overflow: hidden;
  }

  /* Keep the theme hamburger: integration must be checked to avoid two toggles. */

  .ax-megamenu {
    display: block;
    min-height: 48px;
  }

  .ax-megamenu__toggle {
    display: inline-flex;
    width: 48px;
    height: 48px;
    margin-left: 8px;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .ax-megamenu__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #232323;
  }

  .ax-megamenu__backdrop {
    position: fixed;
    inset: 0;
    display: block;
    visibility: hidden;
    background: rgba(15, 23, 42, .45);
    opacity: 0;
    transition: opacity .2s ease, visibility .2s ease;
    z-index: 998;
  }

  .ax-megamenu__root {
    position: fixed;
    top: 0;
    left: 0;
    display: block;
    width: min(86vw, 340px);
    height: 100vh;
    max-width: none;
    margin: 0;
    padding-bottom: 24px;
    overflow-y: auto;
    background: #fff;
    box-shadow: 16px 0 32px rgba(15, 23, 42, .18);
    transform: translateX(-105%);
    transition: transform .24s ease;
    z-index: 999;
  }

  .ax-megamenu.is-mobile-open .ax-megamenu__root {
    transform: translateX(0);
  }

  .ax-megamenu.is-mobile-open .ax-megamenu__backdrop {
    visibility: visible;
    opacity: 1;
  }

  .ax-megamenu__mobile-head {
    display: flex;
    min-height: 54px;
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    color: #111827;
    font-weight: 700;
  }

  .ax-megamenu__close {
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 0;
    color: #111827;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
  }

  .ax-megamenu__item {
    border-bottom: 1px solid #e5e7eb;
  }

  .ax-megamenu__link {
    min-height: 50px;
    justify-content: space-between;
  }

  .ax-megamenu__item.has-children > .ax-megamenu__link::after {
    content: "+";
    color: #6b7280;
    font-size: 18px;
    font-weight: 700;
  }

  .ax-megamenu__item.has-children.is-open > .ax-megamenu__link::after {
    content: "-";
  }

  .ax-megamenu__panel {
    position: static;
    display: none;
    box-shadow: none;
    border-top: 0;
    border-bottom: 0;
  }

  .ax-megamenu__item:hover > .ax-megamenu__panel,
  .ax-megamenu__item:focus-within > .ax-megamenu__panel {
    display: none;
  }

  .ax-megamenu__item.is-open > .ax-megamenu__panel {
    display: block;
  }

  .ax-megamenu__columns {
    display: block;
    max-width: none;
    padding: 12px 16px 18px;
  }

  .ax-megamenu__column {
    display: block;
  }

  .ax-megamenu__column + .ax-megamenu__column {
    margin-top: 16px;
  }

  .ax-megamenu__category + .ax-megamenu__category {
    margin-top: 16px;
  }
}

/* v1.1: optional clickable images, inside the existing category links */
.ax-megamenu__root-image { width: 28px; height: 28px; object-fit: contain; margin-right: 8px; }
.ax-megamenu__category-title { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ax-megamenu__category-image { display: block; width: 100%; max-width: 180px; height: 115px; object-fit: contain; border-radius: 6px; }
@media (max-width: 767px) { .ax-megamenu__category-image { max-width: 110px; height: 75px; } }

/* v1.3 Kingdom Fuel: balanced editorial columns + optional right-hand category visual */
.ax-megamenu { background:#252525; border:0; }
.ax-megamenu__root { max-width:1240px; }
.ax-megamenu__link { color:#f4f4f4; font-size:13px; letter-spacing:.02em; }
.ax-megamenu__link:hover,.ax-megamenu__item:focus-within>.ax-megamenu__link { color:#f5b942; background:#343434; }
.ax-megamenu__panel { background:#fff; border:1px solid #e8e8e8; border-top:0; border-radius:0 0 12px 12px; overflow:hidden; }
.ax-megamenu__panel-inner { display:grid; grid-template-columns:minmax(0,1fr) 245px; gap:24px; max-width:1240px; margin:0 auto; padding:22px 24px; align-items:start; }
.ax-megamenu__columns { max-width:none; width:100%; padding:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 26px; }
.ax-megamenu__panel-inner:not(:has(.ax-megamenu__feature)) { grid-template-columns:1fr; }
.ax-megamenu__panel-inner:not(:has(.ax-megamenu__feature)) .ax-megamenu__columns { grid-template-columns:repeat(3,minmax(0,1fr)); }
.ax-megamenu__category { padding-bottom:12px; border-bottom:1px solid #ececec; }
.ax-megamenu__category-title { margin-bottom:8px; color:#222; font-size:14px; }
.ax-megamenu__links a { font-size:13px; }
.ax-megamenu__category-title:hover,.ax-megamenu__links a:hover { color:#b17b16; }
.ax-megamenu__feature { display:flex; flex-direction:column; gap:10px; color:#222; text-align:center; text-decoration:none; font-weight:600; font-size:13px; }
.ax-megamenu__feature img { display:block; width:100%; height:auto; aspect-ratio:1/1; object-fit:cover; border-radius:10px; }
.ax-megamenu__feature:hover { color:#b17b16; text-decoration:none; }
@media (max-width:767px) {
 .ax-megamenu__root { background:#fff; }
 .ax-megamenu__link { color:#222; }
 .ax-megamenu__panel-inner { display:block; padding:14px; }
 .ax-megamenu__columns,.ax-megamenu__panel-inner:not(:has(.ax-megamenu__feature)) .ax-megamenu__columns { display:block; }
 .ax-megamenu__category { margin-bottom:12px; }
 .ax-megamenu__feature { max-width:220px; margin:16px auto 0; }
}
@media (min-width:768px) and (max-width:1000px) {
 .ax-megamenu__panel-inner { grid-template-columns:minmax(0,1fr) 180px; gap:16px; }
 .ax-megamenu__link { padding:0 10px; }
}

/* Kingdom Fuel v1.4 responsive: desktop, tablet, touch accordion */
.ax-megamenu__expand,.ax-megamenu__subexpand{display:none}
.ax-megamenu__columns{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.ax-megamenu__panel-inner{box-sizing:border-box;width:100%;max-width:1240px}
.ax-megamenu__feature img{max-height:245px;object-fit:cover}
@media (min-width:768px) and (max-width:1100px){
 .ax-megamenu__root{max-width:100%;}
 .ax-megamenu__link{font-size:12px;padding:0 9px}
 .ax-megamenu__panel-inner{grid-template-columns:minmax(0,1fr) 175px;gap:14px;padding:16px}
 .ax-megamenu__columns{gap:12px!important}
 .ax-megamenu__feature img{max-height:175px}
}
@media (max-width:767px){
 .ax-megamenu__root{overflow-y:auto;overscroll-behavior:contain}
 .ax-megamenu__item{position:relative}
 .ax-megamenu__item.has-children>.ax-megamenu__link{padding-right:60px}
 .ax-megamenu__item.has-children>.ax-megamenu__link::after{display:none}
 .ax-megamenu__expand{display:flex;align-items:center;justify-content:center;position:absolute;right:8px;top:4px;width:44px;height:44px;border:0;background:transparent;color:#222;font-size:22px;cursor:pointer;z-index:2}
 .ax-megamenu__panel-inner{padding:8px 12px 18px!important}
 .ax-megamenu__columns{display:block!important}
 .ax-megamenu__category{position:relative;margin:0!important;padding:0!important;border-bottom:1px solid #ececec}
 .ax-megamenu__category-title{display:flex;align-items:center;min-height:48px;padding:8px 48px 8px 6px;margin:0;font-size:14px}
 .ax-megamenu__category-image{display:none}
 .ax-megamenu__subexpand{display:flex;align-items:center;justify-content:center;position:absolute;right:2px;top:2px;width:44px;height:44px;border:0;background:transparent;color:#222;font-size:20px;cursor:pointer}
 .ax-megamenu__category .ax-megamenu__links{display:none;padding:4px 8px 12px 16px}
 .ax-megamenu__category.is-open>.ax-megamenu__links{display:grid}
 .ax-megamenu__links a{display:flex;min-height:38px;align-items:center;font-size:14px}
 .ax-megamenu__feature{max-width:100%;margin:14px 0 0}
 .ax-megamenu__feature img{width:100%;height:140px;max-height:140px;object-fit:cover}
}
@media (prefers-reduced-motion:reduce){.ax-megamenu *{scroll-behavior:auto!important;transition:none!important}}

/* v1.5 - theme-adaptive layer. No hardcoded Kingdom Fuel palette. */
.ax-megamenu {
 --ax-surface: var(--menu-background, var(--header-background, var(--background, #fff)));
 --ax-text: var(--menu-text-color, var(--text-color, var(--body-color, #232323)));
 --ax-accent: var(--primary-color, var(--theme-primary-color, var(--color-primary, currentColor)));
 --ax-border: var(--border-color, #e5e7eb);
 font-family: inherit;
 font-size: inherit;
 background: var(--ax-surface);
 color: var(--ax-text);
 border-color: var(--ax-border);
}
.ax-megamenu a, .ax-megamenu button {font-family:inherit}
.ax-megamenu__link, .ax-megamenu__category-title, .ax-megamenu__links a,
.ax-megamenu__feature, .ax-megamenu__mobile-head, .ax-megamenu__close,
.ax-megamenu__expand, .ax-megamenu__subexpand {color:var(--ax-text)}
.ax-megamenu__panel, .ax-megamenu__root {background:var(--ax-surface)}
.ax-megamenu__panel {border-color:var(--ax-border)}
.ax-megamenu__link:hover, .ax-megamenu__category-title:hover,
.ax-megamenu__links a:hover, .ax-megamenu__feature:hover,
.ax-megamenu__item:focus-within > .ax-megamenu__link {color:var(--ax-accent);background:transparent}
.ax-megamenu__item, .ax-megamenu__category, .ax-megamenu__mobile-head {border-color:var(--ax-border)}
.ax-megamenu__link {font-size:inherit;letter-spacing:inherit}
.ax-megamenu__category-title {font-size:inherit}
.ax-megamenu__links a {font-size:.92em}
.ax-megamenu__feature img {width:100%;height:auto;aspect-ratio:1/1;object-fit:cover}
@media (min-width:768px) and (max-width:1100px) {
 .ax-megamenu__panel-inner {grid-template-columns:minmax(0,1fr) 175px}
 .ax-megamenu__columns {grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media (max-width:767px) {
 .ax-megamenu__root {background:var(--ax-surface)}
 .ax-megamenu__mobile-head {background:var(--ax-surface)}
 .ax-megamenu__toggle span {background:var(--ax-text)}
 .ax-megamenu__feature img {height:140px;aspect-ratio:auto}
}

/* v1.6: deeper category levels remain accessible at all screen sizes. */
.ax-megamenu__nested-node {position:relative;min-width:0}
.ax-megamenu__nested-node > a {display:inline-flex;align-items:center;min-height:34px;max-width:calc(100% - 42px)}
.ax-megamenu__nested-expand {display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:0;background:transparent;color:var(--ax-text,currentColor);cursor:pointer}
.ax-megamenu__nested-list {display:none;padding:2px 0 6px 14px!important;margin:0!important;border-left:1px solid var(--ax-border,#ddd)}
.ax-megamenu__nested-node.is-open > .ax-megamenu__nested-list {display:block}
.ax-megamenu__nested-list a {font-size:.95em;line-height:1.4}
@media (max-width:991px) {
  .ax-megamenu__nested-expand {min-width:44px;min-height:44px}
  .ax-megamenu__nested-node > a {min-height:44px}
  .ax-megamenu__nested-list {padding-left:12px!important}
}

/* v1.7 - balanced layout for 500x500 illustrations; no thumbnails in link columns. */
.ax-megamenu__category-image {display:none!important}
.ax-megamenu__panel-inner {grid-template-columns:minmax(0,1fr) clamp(220px,25vw,300px);align-items:start;gap:clamp(16px,3vw,36px);padding:clamp(16px,2.4vw,28px)}
.ax-megamenu__panel-inner:not(:has(.ax-megamenu__feature)) {grid-template-columns:minmax(0,1fr)}
.ax-megamenu__columns {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px 24px;align-content:start;min-width:0;max-height:min(68vh,560px);overflow-y:auto;overscroll-behavior:contain}
.ax-megamenu__column {min-width:0}
.ax-megamenu__category {padding:0 0 10px;border-bottom:1px solid var(--ax-border,#e5e7eb)}
.ax-megamenu__category-title {display:block;margin:0 0 8px;font-weight:700}
.ax-megamenu__links {gap:4px}
.ax-megamenu__feature {width:100%;max-width:300px;justify-self:end;align-self:start}
.ax-megamenu__feature img {width:100%;height:auto;max-height:none;aspect-ratio:1/1;object-fit:contain;border-radius:10px}
.ax-megamenu__panel {max-height:min(78vh,680px);overflow-y:auto}
.ax-megamenu__link:focus-visible,.ax-megamenu a:focus-visible,.ax-megamenu button:focus-visible {outline:2px solid var(--ax-accent,currentColor);outline-offset:2px}
@media (min-width:768px) and (max-width:1100px) {
 .ax-megamenu__panel-inner {grid-template-columns:minmax(0,1fr) clamp(160px,21vw,210px);gap:14px;padding:16px}
 .ax-megamenu__columns {gap:12px 16px}
 .ax-megamenu__feature {max-width:210px}
}
@media (max-width:767px) {
 .ax-megamenu__panel {max-height:none;overflow:visible}
 .ax-megamenu__panel-inner {display:flex!important;flex-direction:column;padding:10px 14px 18px!important;gap:10px}
 .ax-megamenu__columns {display:block!important;max-height:none;overflow:visible;width:100%}
 .ax-megamenu__feature {align-self:center;max-width:180px;margin:12px auto 0}
 .ax-megamenu__feature img {width:100%;height:auto;max-height:none;aspect-ratio:1/1;object-fit:contain}
}

/* v1.8: content-driven panel; compact categories do not force a tall feature. */
@media (min-width: 768px) {
 .ax-megamenu .ax-megamenu__panel-inner {box-sizing:border-box;align-items:start;}
 .ax-megamenu .ax-megamenu__panel-inner--compact {grid-template-columns:minmax(0,1fr) 170px;gap:22px;padding:14px 22px;}
 .ax-megamenu .ax-megamenu__panel-inner--compact .ax-megamenu__feature {max-width:170px;}
 .ax-megamenu .ax-megamenu__panel-inner--compact .ax-megamenu__feature img {width:170px;height:170px;max-height:170px;object-fit:contain;}
 .ax-megamenu .ax-megamenu__panel-inner--compact .ax-megamenu__columns {max-height:none;overflow:visible;}
 .ax-megamenu .ax-megamenu__panel-inner--compact .ax-megamenu__category {padding-bottom:6px;}
 .ax-megamenu .ax-megamenu__panel-inner--compact .ax-megamenu__feature {gap:5px;}
}
@media (max-width:767px) {
 .ax-megamenu .ax-megamenu__panel-inner--compact .ax-megamenu__feature {max-width:140px;}
 .ax-megamenu .ax-megamenu__panel-inner--compact .ax-megamenu__feature img {max-height:140px;}
}

/* v1.9: understated, shorter dividers for desktop category links. */
@media (min-width: 768px) {
  .ax-megamenu .ax-megamenu__category {
    border-bottom: 0 !important;
    padding-bottom: 10px;
  }
  .ax-megamenu .ax-megamenu__category::after {
    content: ""; display: block; width: 65%; max-width: 180px;
    height: 1px; margin-top: 9px;
    background: var(--ax-border, #e5e7eb); opacity: .65;
  }
  .ax-megamenu .ax-megamenu__category-title { margin-bottom: 0; }
}
@media (max-width: 767px) {
  .ax-megamenu .ax-megamenu__category::after { content: none; }
}

/* v1.9.1 - consistent divider independent of column width.
   Explicitly override the old full-width border and draw a short pseudo-element. */
@media (min-width: 768px) {
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__category {
    border-bottom: none !important;
    width: auto !important;
    max-width: none !important;
  }
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__category::after {
    content: "" !important;
    display: block !important;
    width: min(65%, 180px) !important;
    max-width: 180px !important;
    height: 1px !important;
    margin: 9px 0 0 !important;
    background-color: var(--ax-border, #e5e7eb) !important;
    opacity: .65;
    border: 0 !important;
  }
}
@media (max-width: 767px) {
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__category::after { content: none !important; }
}

/* v1.10 - content-proportional category columns.
   Auto-fill is intentionally avoided: it would create empty tracks and spread
   two links across the whole panel. Auto-fit collapses unused tracks. */
@media (min-width: 992px) {
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__columns {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 220px)) !important;
    justify-content: start !important;
    align-content: start;
    column-gap: clamp(14px, 2vw, 26px);
    row-gap: 16px;
    width: 100%;
    min-width: 0;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__columns {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 135px), 180px)) !important;
    justify-content: start !important;
    gap: 12px 16px;
    min-width: 0;
  }
}

/* v1.12 - category-count-based square feature sizing, desktop only.
   The image grows within a capped 170/220/300px range, without distortion.
   Keep the text grid fluid; do not stretch a single link across the panel. */
@media (min-width: 992px) {
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__panel-inner--size-small {grid-template-columns:minmax(0,1fr) 220px !important;}
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__panel-inner--size-medium {grid-template-columns:minmax(0,1fr) 260px !important;}
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__panel-inner--size-large {grid-template-columns:minmax(0,1fr) 300px !important;}
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__panel-inner--size-small .ax-megamenu__feature {width:220px;max-width:100%;}
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__panel-inner--size-medium .ax-megamenu__feature {width:260px;max-width:100%;}
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__panel-inner--size-large .ax-megamenu__feature {width:300px;max-width:100%;}
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__panel-inner--size-small .ax-megamenu__feature img,
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__panel-inner--size-medium .ax-megamenu__feature img,
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__panel-inner--size-large .ax-megamenu__feature img {display:block;width:100%;height:auto;max-height:none;aspect-ratio:1 / 1;object-fit:contain;}
}
@media (min-width: 768px) and (max-width: 991px) {
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__panel-inner--size-small {grid-template-columns:minmax(0,1fr) 150px !important;}
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__panel-inner--size-medium {grid-template-columns:minmax(0,1fr) 175px !important;}
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__panel-inner--size-large {grid-template-columns:minmax(0,1fr) 200px !important;}
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__panel-inner--size-small .ax-megamenu__feature,
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__panel-inner--size-medium .ax-megamenu__feature,
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__panel-inner--size-large .ax-megamenu__feature {width:100%;max-width:100%;}
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__panel-inner--size-small .ax-megamenu__feature img,
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__panel-inner--size-medium .ax-megamenu__feature img,
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__panel-inner--size-large .ax-megamenu__feature img {width:100%;height:auto;max-height:none;aspect-ratio:1 / 1;object-fit:contain;}
}

/* v1.13 - dividers follow the rendered category label, not the grid track. */
@media (min-width: 768px) {
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__category::after { content: none !important; display: none !important; }
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__category-title { display: block; width: fit-content; max-width: 100%; }
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__category-title > span {
    display: inline-block; max-width: 100%; overflow-wrap: anywhere;
    padding-bottom: 9px; border-bottom: 1px solid var(--ax-border, #e5e7eb);
  }
}
/* v1.13 - larger square feature images on desktop; keep tablet/mobile rules. */
@media (min-width: 992px) {
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__panel-inner--size-small {grid-template-columns:minmax(0,1fr) 250px !important;}
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__panel-inner--size-medium {grid-template-columns:minmax(0,1fr) 280px !important;}
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__panel-inner--size-large {grid-template-columns:minmax(0,1fr) 320px !important;}
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__panel-inner--size-small .ax-megamenu__feature {width:250px;max-width:100%;}
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__panel-inner--size-medium .ax-megamenu__feature {width:280px;max-width:100%;}
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__panel-inner--size-large .ax-megamenu__feature {width:320px;max-width:100%;}
}

/* v1.15: desktop only. Preserve the theme's original tablet/mobile header,
   search, navigation and footer. No AX element participates in mobile layout. */
@media (max-width: 991px) {
  nav.ax-megamenu, .ax-megamenu { display: none !important; }
  .ax-megamenu__toggle, .ax-megamenu__backdrop { display: none !important; }
}

/* v1.17 - Desktop-only: dark top bar, white readable dropdown. */
@media (min-width: 992px) {
 .ax-megamenu, .ax-megamenu > .ax-megamenu__root {background:var(--ax-bar-bg,var(--ax-surface,#fff))}
 .ax-megamenu > .ax-megamenu__root > .ax-megamenu__item > .ax-megamenu__link {color:var(--ax-bar-text,var(--ax-text,#232323))}
 .ax-megamenu > .ax-megamenu__root > .ax-megamenu__item > .ax-megamenu__link:hover,
 .ax-megamenu > .ax-megamenu__root > .ax-megamenu__item:focus-within > .ax-megamenu__link {color:var(--ax-accent,#ff6b00);background:transparent}
 .ax-megamenu .ax-megamenu__panel {background:#fff;color:#242424;--ax-text:#242424;--ax-surface:#fff;--ax-border:#e5e7eb;border-color:#e5e7eb}
 .ax-megamenu .ax-megamenu__panel .ax-megamenu__category-title,
 .ax-megamenu .ax-megamenu__panel .ax-megamenu__links a,
 .ax-megamenu .ax-megamenu__panel .ax-megamenu__nested-node > a,
 .ax-megamenu .ax-megamenu__panel .ax-megamenu__feature,
 .ax-megamenu .ax-megamenu__panel .ax-megamenu__nested-expand {color:#242424}
 .ax-megamenu .ax-megamenu__panel a:hover,
 .ax-megamenu .ax-megamenu__panel a:focus-visible {color:var(--ax-accent,#ff6b00)}
}

/* v1.18: Kingdom Fuel — exact solid fill sampled from the product
   Add to cart button screenshot: RGB(54,54,54) / #363636.
   Scope to the desktop top bar, never the dropdown. */
@media (min-width: 992px) {
  .ax-megamenu,
  .ax-megamenu > .ax-megamenu__root {
    background-color: #363636 !important;
  }
  .ax-megamenu > .ax-megamenu__root > .ax-megamenu__item > .ax-megamenu__link {
    color: #ffffff !important;
  }
  .ax-megamenu > .ax-megamenu__root > .ax-megamenu__item > .ax-megamenu__link:hover,
  .ax-megamenu > .ax-megamenu__root > .ax-megamenu__item:focus-within > .ax-megamenu__link {
    color: #ff6b00 !important;
  }
  .ax-megamenu .ax-megamenu__panel {
    background: #ffffff !important;
    color: #242424 !important;
  }
}

/* v1.19: noir profond #000000 et barre légèrement plus haute sur PC.
   Le panneau déroulant reste blanc pour garantir le contraste. */
@media (min-width: 992px) {
  .ax-megamenu,
  .ax-megamenu > .ax-megamenu__root {
    background: #000000 !important;
    background-color: #000000 !important;
  }
  .ax-megamenu {
    border-top-color: #000000 !important;
    border-bottom-color: #000000 !important;
  }
  .ax-megamenu > .ax-megamenu__root > .ax-megamenu__item > .ax-megamenu__link {
    min-height: 56px !important;
    color: #ffffff !important;
  }
  .ax-megamenu > .ax-megamenu__root > .ax-megamenu__item > .ax-megamenu__link:hover,
  .ax-megamenu > .ax-megamenu__root > .ax-megamenu__item:focus-within > .ax-megamenu__link {
    color: #ff6b00 !important;
    background: transparent !important;
  }
  .ax-megamenu .ax-megamenu__panel {
    background: #ffffff !important;
    color: #242424 !important;
  }
}

/* v1.21: reliable PC navbar (v1.19 baseline), grouped e-liquids.
   No nested scrollbar: brands flow into balanced columns. */
@media (min-width: 992px) {
  .ax-megamenu, .ax-megamenu > .ax-megamenu__root {
    background-color: #000 !important;
    background: #000 !important;
  }
  .ax-megamenu > .ax-megamenu__root > .ax-megamenu__item > .ax-megamenu__link {
    min-height: 56px !important;
    color: #fff !important;
  }
  .ax-megamenu > .ax-megamenu__root > .ax-megamenu__item:hover > .ax-megamenu__link,
  .ax-megamenu > .ax-megamenu__root > .ax-megamenu__item:focus-within > .ax-megamenu__link {
    color: #ff6b00 !important;
  }
  .ax-megamenu .ax-megamenu__panel {
    background: #fff !important;
    color: #242424 !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .ax-megamenu .ax-megamenu__columns {
    max-height: none !important;
    overflow: visible !important;
  }
  .ax-megamenu .ax-megamenu__category .ax-megamenu__links {
    columns: 3 130px;
    column-gap: 22px;
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .ax-megamenu .ax-megamenu__category .ax-megamenu__links > li {
    break-inside: avoid;
    margin-bottom: 5px;
  }
  .ax-megamenu .ax-megamenu__panel-inner:has(> .ax-megamenu__columns > .ax-megamenu__category:nth-child(2):last-child) .ax-megamenu__columns {
    display: block !important;
  }
  .ax-megamenu .ax-megamenu__panel-inner:has(> .ax-megamenu__columns > .ax-megamenu__category:nth-child(2):last-child) .ax-megamenu__category {
    margin-bottom: 20px;
  }
}
/* v1.22: nested brand groups remain collapsed until their own + is clicked. */
@media (min-width: 992px) {
  .ax-megamenu .ax-megamenu__nested-node > .ax-megamenu__nested-list { display: none !important; }
  .ax-megamenu .ax-megamenu__nested-node.is-open > .ax-megamenu__nested-list { display: block !important; }
  .ax-megamenu .ax-megamenu__nested-expand { cursor: pointer; position: relative; z-index: 2; }
}

/* v1.23 — exact original Kingdom Fuel bar from screenshot: RGB 39,39,39.
   Override the former black desktop-only styling without changing panels. */
@media (min-width: 992px) {
  .ax-megamenu,
  .ax-megamenu > .ax-megamenu__root {
    background: #272727 !important;
    background-color: #272727 !important;
    border-color: #272727 !important;
  }
  .ax-megamenu > .ax-megamenu__root > .ax-megamenu__item > .ax-megamenu__link {
    color: #fff !important;
    min-height: 56px !important;
  }
  .ax-megamenu .ax-megamenu__panel {
    background: #fff !important;
    color: #242424 !important;
  }
}

/* v1.24: restore original orange block hover; maintain white dropdown. */
@media (min-width: 992px) {
  .ax-megamenu > .ax-megamenu__root > .ax-megamenu__item:hover > .ax-megamenu__link,
  .ax-megamenu > .ax-megamenu__root > .ax-megamenu__item:focus-within > .ax-megamenu__link,
  .ax-megamenu > .ax-megamenu__root > .ax-megamenu__item.is-open > .ax-megamenu__link {
    background: #ff6b00 !important;
    color: #fff !important;
  }
  .ax-megamenu .ax-megamenu__nested-node.is-open > .ax-megamenu__nested-list,
  .ax-megamenu .ax-megamenu__category.is-open > .ax-megamenu__links {
    display: block !important;
    visibility: visible !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .ax-megamenu .ax-megamenu__nested-expand,
  .ax-megamenu .ax-megamenu__subexpand { cursor: pointer; position: relative; z-index: 2; }
}

/* v1.25: native HTML details/summary for category + controls.
   Works even if the module JavaScript is cached, blocked or not executed. */
@media (min-width: 992px) {
  .ax-megamenu .ax-megamenu__nested-row { display:flex; flex-wrap:wrap; align-items:center; min-width:0; }
  .ax-megamenu .ax-megamenu__nested-row > a { flex:0 1 auto; min-height:30px; display:inline-flex; align-items:center; }
  .ax-megamenu .ax-megamenu__native-disclosure { display:contents; }
  .ax-megamenu .ax-megamenu__native-disclosure > summary {
    display:inline-flex !important; align-items:center; justify-content:center;
    width:32px; min-height:32px; margin-left:4px; cursor:pointer;
    color:#444; list-style:none; user-select:none; position:relative; z-index:4;
  }
  .ax-megamenu .ax-megamenu__native-disclosure > summary::-webkit-details-marker { display:none; }
  .ax-megamenu .ax-megamenu__native-disclosure > summary::marker { content:''; }
  .ax-megamenu .ax-megamenu__native-disclosure > summary:hover { color:#ff6b00; }
  .ax-megamenu .ax-megamenu__native-disclosure > summary .ax-megamenu__plus-open { display:none; }
  .ax-megamenu .ax-megamenu__native-disclosure[open] > summary .ax-megamenu__plus-closed { display:none; }
  .ax-megamenu .ax-megamenu__native-disclosure[open] > summary .ax-megamenu__plus-open { display:inline; }
  .ax-megamenu .ax-megamenu__native-list { display:none !important; flex-basis:100%; width:100%; padding:4px 0 8px 12px !important; margin:0 !important; border-left:1px solid #ddd; list-style:none; }
  .ax-megamenu .ax-megamenu__native-disclosure[open] > .ax-megamenu__native-list { display:block !important; }
  .ax-megamenu .ax-megamenu__native-list .ax-megamenu__nested-node { break-inside:avoid; }
}

/* v1.26: align all category disclosure controls at the same right edge. */
@media (min-width: 992px) {
  .ax-megamenu .ax-megamenu__nested-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 32px;
    align-items: center;
    column-gap: 4px;
    width: 100%;
    min-width: 0;
  }
  .ax-megamenu .ax-megamenu__nested-row > a {
    grid-column: 1;
    min-width: 0;
    max-width: 100%;
  }
  .ax-megamenu .ax-megamenu__nested-row > .ax-megamenu__native-disclosure {
    display: contents;
  }
  .ax-megamenu .ax-megamenu__nested-row > .ax-megamenu__native-disclosure > summary {
    grid-column: 2;
    justify-self: end;
    margin-left: 0 !important;
    width: 32px !important;
  }
  .ax-megamenu .ax-megamenu__nested-row > .ax-megamenu__native-disclosure > .ax-megamenu__native-list {
    grid-column: 1 / -1;
    min-width: 0;
  }
}

/* v1.27: clean, readable desktop disclosure grid. The native <details>
   structure is preserved: no change to click behaviour or catalog links. */
@media (min-width: 992px) {
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__panel-inner {
    grid-template-columns: minmax(0,1fr) 220px !important;
    gap: 24px !important;
    align-items: start !important;
  }
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__columns {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__category {
    width: 100% !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
  }
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__category > .ax-megamenu__links {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px 22px !important;
    columns: auto !important;
    column-count: auto !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 8px 0 0 !important;
    max-height: none !important;
    overflow: visible !important;
    align-items: start !important;
  }
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__category > .ax-megamenu__links > li {
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    break-inside: avoid !important;
    list-style: none !important;
  }
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__nested-row {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) 32px !important;
    gap: 4px !important;
    align-items: center !important;
    width: 100% !important;
  }
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__nested-row > a {
    grid-column: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    white-space: normal !important;
  }
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__native-disclosure {
    display: contents !important;
  }
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__native-disclosure > summary {
    grid-column: 2 !important;
    width: 32px !important;
    min-height: 30px !important;
    margin: 0 !important;
    justify-self: end !important;
  }
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__native-disclosure > .ax-megamenu__native-list {
    grid-column: 1 / -1 !important;
    padding: 8px 0 8px 12px !important;
    width: auto !important;
    min-width: 0 !important;
  }
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__native-list a {
    overflow-wrap: normal !important;
    word-break: normal !important;
    line-height: 1.55 !important;
  }
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__feature {
    align-self: start !important;
  }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .ax-megamenu .ax-megamenu__panel .ax-megamenu__category > .ax-megamenu__links {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }
}
