/* =========================================================
   StarwebAIQ Products Mega Menu — Full Width Enterprise V2
   File: /starwebaiq/assets/css/mega-menu.css
   ========================================================= */

:root{
  --mega-bg:#020914;
  --mega-panel:#061522;
  --mega-panel-2:#081c2e;
  --mega-line:rgba(34,142,210,.55);
  --mega-line-soft:rgba(42,105,145,.42);
  --mega-text:#eef8ff;
  --mega-muted:#8fa8ba;
  --mega-cyan:#20caff;
  --mega-blue:#118bff;
}

.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  overflow:visible;
}

.header-inner,
.primary-nav,
.mega-nav-item{
  overflow:visible;
}

.mega-nav-item{
  position:static;
  display:flex;
  align-items:center;
}

.mega-nav-trigger{
  appearance:none;
  border:0;
  padding:16px 0;
  display:inline-flex;
  align-items:center;
  gap:7px;
  background:transparent;
  color:inherit;
  font:inherit;
  font-weight:inherit;
  cursor:pointer;
}

.mega-chevron{
  width:7px;
  height:7px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:translateY(-2px) rotate(45deg);
  transition:transform .22s ease;
}

.mega-nav-item.is-open .mega-chevron{
  transform:translateY(2px) rotate(225deg);
}

/* Full viewport-width menu panel */
.products-mega-menu{
  position:fixed;
  top:var(--mega-header-height, 96px);
  left:0;
  right:0;
  width:100vw;
  z-index:1002;
  padding:0;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(-14px);
  transition:
    opacity .22s ease,
    visibility .22s ease,
    transform .26s cubic-bezier(.2,.75,.25,1);
}

.mega-nav-item.is-open .products-mega-menu{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0);
}

.mega-menu-shell{
  width:100%;
  max-width:none;
  max-height:calc(100vh - var(--mega-header-height, 96px));
  margin:0;
  overflow:auto;
  border-top:1px solid var(--mega-line);
  border-bottom:1px solid var(--mega-line);
  border-left:0;
  border-right:0;
  border-radius:0;
  background:
    radial-gradient(circle at 87% 12%,rgba(0,143,255,.20),transparent 31%),
    radial-gradient(circle at 14% 92%,rgba(0,211,255,.08),transparent 28%),
    linear-gradient(145deg,rgba(3,14,28,.995),rgba(1,7,16,.998));
  box-shadow:
    0 34px 90px rgba(0,0,0,.68),
    0 0 52px rgba(0,112,255,.13),
    inset 0 1px 0 rgba(255,255,255,.04);
  scrollbar-width:thin;
  scrollbar-color:#126a9d transparent;
}

/* Constrain only the internal content, not the menu background */
.mega-menu-header,
.mega-menu-layout,
.mega-menu-footer{
  width:min(1860px, calc(100% - 72px));
  margin-left:auto;
  margin-right:auto;
}

.mega-menu-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:30px;
  padding:27px 0 22px;
  border-bottom:1px solid var(--mega-line-soft);
}

.mega-kicker{
  display:block;
  margin-bottom:5px;
  color:var(--mega-cyan);
  font-size:11px;
  font-weight:900;
  letter-spacing:.17em;
}

.mega-menu-header h2{
  margin:0;
  color:#f5fbff;
  font-size:clamp(23px,2vw,34px);
  line-height:1.12;
}

.mega-menu-header p{
  max-width:850px;
  margin:8px 0 0;
  color:#98adbd;
  font-size:13px;
}

.mega-view-all{
  flex:0 0 auto;
  padding:11px 16px;
  border:1px solid rgba(42,166,229,.58);
  border-radius:8px;
  background:rgba(5,28,46,.76);
  color:#dff7ff;
  font-size:12px;
  font-weight:800;
  transition:.2s ease;
}

.mega-view-all:hover{
  border-color:#22c8ff;
  background:rgba(10,76,113,.52);
  transform:translateY(-1px);
}

.mega-menu-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(365px,430px);
  gap:24px;
  padding:24px 0 26px;
}

.mega-products-column{
  min-width:0;
}

.mega-section-label{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:15px;
  margin-bottom:13px;
}

.mega-section-label span{
  color:#e9f7ff;
  font-size:13px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.mega-section-label small{
  color:#6f8b9e;
  font-size:10px;
}

/* Six product cards across three columns */
.mega-product-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.mega-product-card{
  --card-accent:#1dbfff;
  position:relative;
  min-height:152px;
  padding:15px 42px 15px 15px;
  display:grid;
  grid-template-columns:132px minmax(0,1fr);
  align-items:center;
  gap:14px;
  overflow:hidden;
  border:1px solid rgba(28,98,139,.72);
  border-radius:11px;
  background:
    radial-gradient(circle at 18% 50%,color-mix(in srgb,var(--card-accent) 13%,transparent),transparent 49%),
    linear-gradient(145deg,rgba(7,28,43,.95),rgba(3,13,23,.97));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
  transition:
    transform .22s ease,
    border-color .22s ease,
    background .22s ease,
    box-shadow .22s ease;
}

.mega-product-card::before{
  content:"";
  position:absolute;
  inset:-1px auto -1px -55%;
  width:38%;
  transform:skewX(-18deg);
  background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--card-accent) 15%,transparent),transparent);
  opacity:0;
}

.mega-product-card:hover,
.mega-product-card[aria-current="page"]{
  transform:translateY(-3px);
  border-color:color-mix(in srgb,var(--card-accent) 78%,#fff 5%);
  box-shadow:
    0 14px 28px rgba(0,0,0,.31),
    0 0 28px color-mix(in srgb,var(--card-accent) 14%,transparent);
}

.mega-product-card:hover::before{
  opacity:1;
  animation:megaSweep .8s ease forwards;
}

.blade-card{--card-accent:#ffbe00}
.pump-card{--card-accent:#1ba9ff}
.seal-card{--card-accent:#00d8ff}
.bearing-card{--card-accent:#dca20e}
.fastener-card{--card-accent:#168fff}
.excavator-card{--card-accent:#ff7b27}

.mega-product-art{
  height:84px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:8px;
  background:
    radial-gradient(circle at center,color-mix(in srgb,var(--card-accent) 15%,transparent),transparent 66%),
    rgba(0,7,14,.72);
}

.mega-product-art img{
  display:block;
  width:100%;
  height:100%;
  padding:4px;
  object-fit:contain;
  filter:drop-shadow(0 0 9px color-mix(in srgb,var(--card-accent) 30%,transparent));
  transition:transform .35s ease,filter .35s ease;
}

.mega-product-card:hover .mega-product-art img{
  transform:scale(1.05);
  filter:drop-shadow(0 0 15px color-mix(in srgb,var(--card-accent) 52%,transparent));
}

.mega-product-icon svg{
  width:110px;
  height:70px;
  fill:none;
  stroke:#ff9b4c;
  stroke-width:3;
  stroke-linecap:round;
  stroke-linejoin:round;
  filter:drop-shadow(0 0 9px rgba(255,119,31,.48));
}

.mega-product-copy{
  min-width:0;
}

.mega-product-copy strong,
.mega-product-copy small,
.mega-product-copy em{
  display:block;
}

.mega-product-copy strong{
  color:#fff;
  font-size:20px;
  line-height:1.08;
}

.mega-product-copy small{
  margin-top:5px;
  color:var(--card-accent);
  font-size:12px;
  font-weight:800;
}

.mega-product-copy em{
  margin-top:8px;
  color:#8ea7b7;
  font-size:10px;
  font-style:normal;
  line-height:1.4;
}

.mega-card-arrow{
  position:absolute;
  right:16px;
  top:50%;
  color:var(--card-accent);
  font-size:22px;
  transform:translateY(-50%);
  transition:transform .2s ease;
}

.mega-product-card:hover .mega-card-arrow{
  transform:translate(4px,-50%);
}

/* Larger platform panel */
.mega-platform-column{
  display:grid;
  align-content:start;
  gap:12px;
}

.mega-platform-card{
  position:relative;
  min-height:485px;
  padding:24px;
  overflow:hidden;
  border:1px solid rgba(32,139,207,.65);
  border-radius:12px;
  background:
    radial-gradient(circle at 79% 18%,rgba(0,139,255,.27),transparent 35%),
    linear-gradient(155deg,rgba(8,34,55,.99),rgba(3,14,25,.995));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}

.platform-orbit{
  position:absolute;
  right:22px;
  top:21px;
  width:104px;
  height:104px;
  display:grid;
  place-items:center;
  border:1px solid rgba(34,190,255,.52);
  border-radius:50%;
  box-shadow:0 0 24px rgba(0,157,255,.22);
}

.platform-orbit::before,
.platform-orbit::after,
.platform-orbit i{
  content:"";
  position:absolute;
  inset:13px;
  border:1px solid rgba(34,190,255,.34);
  border-radius:50%;
}

.platform-orbit::after{
  inset:28px;
}

.platform-orbit i{
  inset:-5px 49px;
  border-radius:0;
  animation:megaOrbit 5s linear infinite;
}

.platform-orbit b{
  color:#47d6ff;
  font-size:16px;
  letter-spacing:.1em;
}

.mega-platform-card h3{
  max-width:255px;
  margin:0 0 19px;
  color:#f6fbff;
  font-size:25px;
  line-height:1.16;
}

.mega-platform-list{
  display:grid;
  gap:9px;
  margin:0;
  padding:0;
  list-style:none;
}

.mega-platform-list li{
  display:grid;
  grid-template-columns:42px 1fr;
  gap:11px;
  align-items:center;
  padding:10px;
  border:1px solid rgba(35,94,128,.48);
  border-radius:8px;
  background:rgba(2,13,23,.58);
}

.mega-platform-list li>span{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border:1px solid #187eb3;
  border-radius:8px;
  color:#21ccff;
  font-size:10px;
  font-weight:900;
}

.mega-platform-list b,
.mega-platform-list small{
  display:block;
}

.mega-platform-list b{
  color:#edf9ff;
  font-size:13px;
}

.mega-platform-list small{
  color:#7793a5;
  font-size:9px;
}

.mega-platform-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  margin-top:15px;
  border:1px solid rgba(37,99,137,.48);
  border-radius:8px;
  overflow:hidden;
}

.mega-platform-stats span{
  padding:11px 5px;
  text-align:center;
  background:rgba(1,11,20,.58);
}

.mega-platform-stats span+span{
  border-left:1px solid rgba(37,99,137,.48);
}

.mega-platform-stats b,
.mega-platform-stats small{
  display:block;
}

.mega-platform-stats b{
  color:#2dcdff;
  font-size:16px;
}

.mega-platform-stats small{
  color:#718b9d;
  font-size:8px;
}

.mega-platform-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
  margin-top:14px;
}

.mega-platform-actions a{
  padding:10px;
  border:1px solid #227ba9;
  border-radius:6px;
  color:#dff7ff;
  font-size:10px;
  font-weight:800;
  text-align:center;
}

.mega-platform-actions a:last-child{
  border-color:#167de7;
  background:linear-gradient(180deg,#118bff,#0759c7);
}

.mega-coming-card{
  padding:13px 15px;
  border:1px solid rgba(92,75,137,.6);
  border-radius:9px;
  background:linear-gradient(135deg,rgba(25,17,49,.92),rgba(5,13,25,.97));
}

.mega-coming-card>span{
  color:#b687ff;
  font-size:9px;
  font-weight:900;
  letter-spacing:.15em;
}

.mega-coming-card div{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:8px;
}

.mega-coming-card b{
  padding:5px 8px;
  border:1px solid rgba(154,104,232,.38);
  border-radius:5px;
  color:#c5b6d9;
  font-size:9px;
}

.mega-menu-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:16px 0;
  border-top:1px solid var(--mega-line-soft);
  background:rgba(1,9,17,.16);
}

.mega-menu-footer>div:first-child{
  display:grid;
  grid-template-columns:auto auto;
  column-gap:8px;
  align-items:center;
}

.mega-menu-footer b{
  color:#e9f9ff;
  font-size:11px;
}

.mega-menu-footer small{
  grid-column:2;
  color:#718b9c;
  font-size:9px;
}

.mega-live-dot{
  grid-row:1/3;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#2de978;
  box-shadow:0 0 12px #2de978;
  animation:megaLive 1.7s ease-in-out infinite;
}

.mega-footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
}

.mega-footer-links a{
  color:#87b8d2;
  font-size:10px;
  font-weight:800;
}

.mega-footer-links a:hover{
  color:#24cdff;
}

.mega-menu-backdrop{
  position:fixed;
  inset:0;
  z-index:999;
  visibility:hidden;
  opacity:0;
  pointer-events:none;
  background:rgba(0,5,12,.68);
  backdrop-filter:blur(3px);
  transition:opacity .22s ease,visibility .22s ease;
}

body.mega-menu-open .mega-menu-backdrop{
  visibility:visible;
  opacity:1;
  pointer-events:auto;
}

body.mega-menu-open{
  overflow:hidden;
}

@keyframes megaSweep{
  from{left:-55%}
  to{left:125%}
}

@keyframes megaOrbit{
  to{transform:rotate(360deg)}
}

@keyframes megaLive{
  50%{opacity:.45;transform:scale(.78)}
}

@media (hover:hover) and (min-width:1101px){
  .mega-nav-item:hover .products-mega-menu,
  .mega-nav-item:focus-within .products-mega-menu{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translateY(0);
  }

  .mega-nav-item:hover .mega-chevron,
  .mega-nav-item:focus-within .mega-chevron{
    transform:translateY(2px) rotate(225deg);
  }
}

@media (max-width:1500px){
  .mega-menu-header,
  .mega-menu-layout,
  .mega-menu-footer{
    width:calc(100% - 44px);
  }

  .mega-menu-layout{
    grid-template-columns:minmax(0,1fr) 360px;
  }

  .mega-product-card{
    grid-template-columns:112px minmax(0,1fr);
    min-height:142px;
  }

  .mega-product-copy strong{
    font-size:18px;
  }
}

@media (max-width:1260px){
  .mega-product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .mega-menu-layout{
    grid-template-columns:minmax(0,1fr) 335px;
  }

  .mega-platform-card{
    min-height:100%;
  }
}

@media (max-width:1100px){
  body.mega-menu-open{
    overflow:hidden;
  }

  .primary-nav{
    overflow:auto;
  }

  .mega-nav-item{
    display:block;
  }

  .mega-nav-trigger{
    width:100%;
    justify-content:space-between;
    padding:13px 0;
  }

  .products-mega-menu{
    position:fixed;
    top:0!important;
    inset:0;
    z-index:1100;
    width:100vw;
    padding:68px 8px 8px;
    transform:translateY(-18px);
    background:rgba(0,5,12,.78);
  }

  .mega-menu-shell{
    max-height:calc(100vh - 76px);
    border:1px solid var(--mega-line);
    border-radius:11px;
  }

  .mega-menu-header,
  .mega-menu-layout,
  .mega-menu-footer{
    width:calc(100% - 32px);
  }

  .mega-menu-layout{
    grid-template-columns:1fr;
  }

  .mega-platform-column{
    grid-template-columns:1fr 1fr;
  }

  .mega-menu-header{
    align-items:flex-start;
  }
}

@media (max-width:760px){
  .mega-menu-header{
    display:block;
    padding:20px 0;
  }

  .mega-view-all{
    display:inline-flex;
    margin-top:13px;
  }

  .mega-menu-layout{
    padding:16px 0;
  }

  .mega-product-grid{
    grid-template-columns:1fr;
  }

  .mega-product-card{
    grid-template-columns:112px minmax(0,1fr);
    min-height:118px;
  }

  .mega-platform-column{
    grid-template-columns:1fr;
  }

  .mega-menu-footer{
    display:block;
    padding:14px 0;
  }

  .mega-footer-links{
    margin-top:10px;
  }
}

@media (max-width:470px){
  .products-mega-menu{
    padding-left:4px;
    padding-right:4px;
  }

  .mega-menu-header,
  .mega-menu-layout,
  .mega-menu-footer{
    width:calc(100% - 20px);
  }

  .mega-product-card{
    grid-template-columns:88px minmax(0,1fr);
    min-height:108px;
    padding-right:30px;
  }

  .mega-product-art{
    height:60px;
  }

  .mega-product-copy strong{
    font-size:15px;
  }

  .mega-product-copy em{
    font-size:9px;
  }

  .mega-menu-header p,
  .mega-section-label small{
    display:none;
  }
}

@media (prefers-reduced-motion:reduce){
  .products-mega-menu,
  .mega-product-card,
  .mega-product-art img,
  .mega-card-arrow,
  .mega-menu-backdrop{
    transition:none!important;
  }

  .mega-product-card::before,
  .platform-orbit i,
  .mega-live-dot{
    animation:none!important;
  }
}

/* =========================================================
   StarwebAIQ Products Mega Menu — Compact No-Scroll V3
   Keeps the complete menu visible on standard desktop screens.
   ========================================================= */

@media (min-width:1101px){
  .mega-menu-shell{
    max-height:calc(100vh - var(--mega-header-height, 86px));
    overflow:hidden;
  }

  .mega-menu-header,
  .mega-menu-layout,
  .mega-menu-footer{
    width:min(1860px, calc(100% - 56px));
  }

  .mega-menu-header{
    padding:14px 0 12px;
    align-items:center;
  }

  .mega-kicker{
    margin-bottom:2px;
    font-size:9px;
    letter-spacing:.15em;
  }

  .mega-menu-header h2{
    font-size:clamp(20px,1.55vw,27px);
    line-height:1.08;
  }

  .mega-menu-header p{
    margin-top:4px;
    font-size:11px;
    line-height:1.3;
  }

  .mega-view-all{
    padding:8px 12px;
    font-size:10px;
  }

  .mega-menu-layout{
    grid-template-columns:minmax(0,1fr) minmax(320px,380px);
    gap:16px;
    padding:14px 0 15px;
  }

  .mega-section-label{
    margin-bottom:8px;
  }

  .mega-section-label span{
    font-size:11px;
  }

  .mega-section-label small{
    font-size:8px;
  }

  .mega-product-grid{
    gap:9px;
  }

  .mega-product-card{
    min-height:105px;
    padding:9px 34px 9px 10px;
    grid-template-columns:108px minmax(0,1fr);
    gap:10px;
    border-radius:8px;
  }

  .mega-product-art{
    height:58px;
    border-radius:6px;
  }

  .mega-product-art img{
    padding:2px;
  }

  .mega-product-icon svg{
    width:88px;
    height:54px;
  }

  .mega-product-copy strong{
    font-size:15px;
  }

  .mega-product-copy small{
    margin-top:2px;
    font-size:9px;
  }

  .mega-product-copy em{
    margin-top:4px;
    font-size:8px;
    line-height:1.25;
  }

  .mega-card-arrow{
    right:11px;
    font-size:17px;
  }

  .mega-platform-card{
    min-height:0;
    padding:14px;
    border-radius:9px;
  }

  .platform-orbit{
    right:12px;
    top:11px;
    width:70px;
    height:70px;
  }

  .platform-orbit::before{
    inset:9px;
  }

  .platform-orbit::after{
    inset:20px;
  }

  .platform-orbit i{
    inset:-4px 33px;
  }

  .platform-orbit b{
    font-size:12px;
  }

  .mega-platform-card h3{
    max-width:210px;
    margin-bottom:10px;
    font-size:18px;
    line-height:1.08;
  }

  .mega-platform-list{
    gap:5px;
  }

  .mega-platform-list li{
    grid-template-columns:32px 1fr;
    gap:7px;
    padding:5px 7px;
    border-radius:6px;
  }

  .mega-platform-list li>span{
    width:32px;
    height:32px;
    border-radius:6px;
    font-size:8px;
  }

  .mega-platform-list b{
    font-size:10px;
  }

  .mega-platform-list small{
    font-size:7px;
    line-height:1.2;
  }

  .mega-platform-stats{
    margin-top:8px;
  }

  .mega-platform-stats span{
    padding:6px 3px;
  }

  .mega-platform-stats b{
    font-size:12px;
  }

  .mega-platform-stats small{
    font-size:7px;
  }

  .mega-platform-actions{
    gap:6px;
    margin-top:8px;
  }

  .mega-platform-actions a{
    padding:7px 5px;
    font-size:8px;
  }

  .mega-coming-card{
    padding:8px 10px;
    border-radius:7px;
  }

  .mega-coming-card>span{
    font-size:7px;
  }

  .mega-coming-card div{
    gap:5px;
    margin-top:5px;
  }

  .mega-coming-card b{
    padding:3px 5px;
    font-size:7px;
  }

  .mega-menu-footer{
    padding:8px 0;
  }

  .mega-menu-footer b{
    font-size:9px;
  }

  .mega-menu-footer small,
  .mega-footer-links a{
    font-size:7px;
  }

  .mega-footer-links{
    gap:11px;
  }
}

@media (min-width:1101px) and (max-height:820px){
  .mega-menu-header{
    padding:10px 0 8px;
  }

  .mega-menu-layout{
    padding:10px 0 11px;
  }

  .mega-product-card{
    min-height:92px;
    grid-template-columns:96px minmax(0,1fr);
  }

  .mega-product-art{
    height:50px;
  }

  .mega-product-copy strong{
    font-size:14px;
  }

  .mega-product-copy em{
    font-size:7px;
  }

  .mega-platform-list li{
    padding:4px 6px;
  }

  .mega-menu-footer{
    padding:6px 0;
  }
}

/* =========================================================
   StarwebAIQ Mega Menu — Visual Separation / Blur V4
   Makes the dropdown unmistakably separate from the page.
   ========================================================= */

/* Stronger dimmed and blurred page backdrop */
.mega-menu-backdrop{
  background:
    linear-gradient(rgba(0,5,13,.84),rgba(0,5,13,.88));
  -webkit-backdrop-filter:blur(10px) saturate(.72);
  backdrop-filter:blur(10px) saturate(.72);
}

/* Add a subtle blur/scale to page content as a fallback and depth effect */
body.mega-menu-open main,
body.mega-menu-open footer{
  filter:blur(3px) brightness(.42) saturate(.72);
  transform:scale(.997);
  transform-origin:top center;
  transition:filter .22s ease,transform .22s ease;
}

/* Keep header and menu crisp */
body.mega-menu-open .site-header,
body.mega-menu-open .products-mega-menu{
  filter:none;
  transform:none;
}

/* Give the dropdown its own unmistakable surface */
.mega-menu-shell{
  position:relative;
  background:
    radial-gradient(circle at 88% 10%,rgba(0,139,255,.26),transparent 29%),
    radial-gradient(circle at 13% 90%,rgba(0,211,255,.10),transparent 25%),
    linear-gradient(145deg,#07192a 0%,#04111e 42%,#020914 100%);
  border-top:2px solid rgba(42,190,255,.9);
  border-bottom:2px solid rgba(19,108,173,.84);
  box-shadow:
    0 28px 80px rgba(0,0,0,.88),
    0 10px 35px rgba(0,0,0,.76),
    0 0 0 1px rgba(41,169,234,.16),
    0 0 55px rgba(0,133,255,.21),
    inset 0 1px 0 rgba(255,255,255,.055),
    inset 0 -28px 50px rgba(0,0,0,.18);
}

/* Bright top-edge accent */
.mega-menu-shell::before{
  content:"";
  position:sticky;
  z-index:5;
  top:0;
  display:block;
  height:2px;
  width:100%;
  margin-bottom:-2px;
  background:linear-gradient(
    90deg,
    transparent 0%,
    rgba(0,190,255,.45) 12%,
    #31d6ff 50%,
    rgba(0,128,255,.48) 88%,
    transparent 100%
  );
  box-shadow:0 0 18px rgba(0,190,255,.72);
  pointer-events:none;
}

/* Add depth around content sections inside menu */
.mega-menu-header{
  background:linear-gradient(90deg,rgba(6,25,42,.56),rgba(4,17,30,.18));
}

.mega-menu-layout{
  position:relative;
}

.mega-menu-layout::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(90deg,rgba(0,184,255,.025),transparent 34%,transparent 68%,rgba(0,128,255,.035));
}

/* Product cards stand out more clearly */
.mega-product-card{
  border-color:rgba(44,126,175,.82);
  background:
    radial-gradient(circle at 18% 50%,color-mix(in srgb,var(--card-accent) 15%,transparent),transparent 49%),
    linear-gradient(145deg,rgba(9,35,52,.98),rgba(3,14,25,.99));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    0 5px 14px rgba(0,0,0,.25);
}

/* Platform panel gets extra separation */
.mega-platform-card{
  border-color:rgba(40,167,236,.8);
  box-shadow:
    0 12px 32px rgba(0,0,0,.38),
    0 0 24px rgba(0,125,255,.10),
    inset 0 1px 0 rgba(255,255,255,.04);
}

/* Footer becomes a distinct bottom rail */
.mega-menu-footer{
  background:linear-gradient(90deg,rgba(1,12,22,.92),rgba(4,23,38,.82),rgba(1,12,22,.92));
  border-top:1px solid rgba(36,139,195,.56);
}

/* Prevent the page transition from affecting reduced-motion users */
@media (prefers-reduced-motion:reduce){
  body.mega-menu-open main,
  body.mega-menu-open footer{
    transition:none!important;
    transform:none!important;
  }
}


/* =========================================================
   StarwebAIQ Mega Menu — Strong Background Blur Fix V5
   This directly blurs and dims the page content while the
   mega menu stays sharp and fully interactive.
   ========================================================= */

/* Backdrop sits above the page and below the mega menu */
.mega-menu-backdrop{
  position:fixed !important;
  inset:0 !important;
  z-index:1001 !important;
  display:block !important;
  background:rgba(0,4,10,.72) !important;
  -webkit-backdrop-filter:blur(14px) saturate(.55) !important;
  backdrop-filter:blur(14px) saturate(.55) !important;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .22s ease,visibility .22s ease;
}

body.mega-menu-open .mega-menu-backdrop{
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
}

/* Blur the actual page content so the effect works even when
   browser backdrop-filter behavior is limited */
body.mega-menu-open #main-content,
body.mega-menu-open main,
body.mega-menu-open footer{
  -webkit-filter:blur(8px) brightness(.30) saturate(.58) !important;
  filter:blur(8px) brightness(.30) saturate(.58) !important;
  transform:scale(.994);
  transform-origin:top center;
  transition:
    filter .22s ease,
    -webkit-filter .22s ease,
    transform .22s ease;
  pointer-events:none;
  user-select:none;
}

/* Keep navigation and mega menu crisp */
body.mega-menu-open .site-header,
body.mega-menu-open .header-inner,
body.mega-menu-open .primary-nav,
body.mega-menu-open .mega-nav-item,
body.mega-menu-open .products-mega-menu,
body.mega-menu-open .mega-menu-shell{
  -webkit-filter:none !important;
  filter:none !important;
  transform:none;
  pointer-events:auto;
}

/* Ensure menu remains above the backdrop */
.products-mega-menu{
  z-index:1003 !important;
}

.mega-menu-shell{
  position:relative;
  z-index:1004;
}

/* Strong modal-style separation */
body.mega-menu-open .mega-menu-shell{
  box-shadow:
    0 38px 100px rgba(0,0,0,.94),
    0 16px 45px rgba(0,0,0,.82),
    0 0 0 1px rgba(56,194,255,.24),
    0 0 68px rgba(0,137,255,.28),
    inset 0 1px 0 rgba(255,255,255,.07),
    inset 0 -35px 60px rgba(0,0,0,.25) !important;
}

/* Optional fallback for browsers without backdrop-filter */
@supports not ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){
  .mega-menu-backdrop{
    background:rgba(0,4,10,.86) !important;
  }

  body.mega-menu-open #main-content,
  body.mega-menu-open main,
  body.mega-menu-open footer{
    -webkit-filter:blur(9px) brightness(.25) saturate(.5) !important;
    filter:blur(9px) brightness(.25) saturate(.5) !important;
  }
}

/* Do not animate blur for reduced-motion users */
@media (prefers-reduced-motion:reduce){
  body.mega-menu-open #main-content,
  body.mega-menu-open main,
  body.mega-menu-open footer{
    transition:none !important;
    transform:none !important;
  }
}


/* =========================================================
   StarwebAIQ Mega Menu — Soft Visible Background V6
   IMPORTANT:
   Removes the direct blur/darkening from the actual page.
   Only a light translucent backdrop remains.
   Place these rules at the VERY END of mega-menu.css.
   ========================================================= */

/* Do not blur, darken, scale, or hide the actual page */
body.mega-menu-open #main-content,
body.mega-menu-open main,
body.mega-menu-open footer,
body:has(.mega-nav-item:hover) #main-content,
body:has(.mega-nav-item:hover) main,
body:has(.mega-nav-item:hover) footer,
body:has(.mega-nav-item:focus-within) #main-content,
body:has(.mega-nav-item:focus-within) main,
body:has(.mega-nav-item:focus-within) footer{
  -webkit-filter:none !important;
  filter:none !important;
  transform:none !important;
  opacity:1 !important;
}

/* Light overlay only — background page remains clearly visible */
.mega-menu-backdrop{
  position:fixed !important;
  inset:0 !important;
  z-index:999 !important;
  display:block !important;
  background:rgba(0,5,12,.30) !important;
  -webkit-backdrop-filter:blur(2px) saturate(.88) brightness(.88) !important;
  backdrop-filter:blur(2px) saturate(.88) brightness(.88) !important;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .2s ease,visibility .2s ease;
}

body.mega-menu-open .mega-menu-backdrop,
body:has(.mega-nav-item:hover) .mega-menu-backdrop,
body:has(.mega-nav-item:focus-within) .mega-menu-backdrop{
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
}

/* Keep the menu crisp and visually separated */
.site-header{
  z-index:1000 !important;
}

.products-mega-menu{
  z-index:1002 !important;
}

.mega-menu-shell{
  position:relative;
  z-index:1003;
  border-top:2px solid rgba(49,214,255,.88) !important;
  border-bottom:2px solid rgba(20,112,178,.84) !important;
  box-shadow:
    0 30px 74px rgba(0,0,0,.78),
    0 12px 32px rgba(0,0,0,.55),
    0 0 0 1px rgba(56,194,255,.18),
    0 0 42px rgba(0,137,255,.18),
    inset 0 1px 0 rgba(255,255,255,.055) !important;
}

/* Prevent accidental hiding from older rules */
body.mega-menu-open main,
body.mega-menu-open footer{
  visibility:visible !important;
}

/* Keep page inactive while menu is open, but still visible */
body.mega-menu-open #main-content,
body.mega-menu-open main,
body.mega-menu-open footer{
  pointer-events:none;
  user-select:none;
}

/* Mobile can use slightly stronger separation */
@media (max-width:1100px){
  .mega-menu-backdrop{
    background:rgba(0,5,12,.46) !important;
    -webkit-backdrop-filter:blur(4px) saturate(.8) brightness(.78) !important;
    backdrop-filter:blur(4px) saturate(.8) brightness(.78) !important;
  }
}


/* =========================================================
   StarwebAIQ Mega Menu — Header Alignment & Logo Stability V7
   - Stops the header/logo from shifting when the menu opens
   - Pulls the logo slightly toward the center
   - Pulls the navigation/actions slightly toward the center
   - Gives the navigation a cleaner, wider center zone
   ========================================================= */

/* Reserve scrollbar space permanently so opening the menu
   does not change the viewport width or move the logo/header. */
html{
  scrollbar-gutter:stable;
}

/* Keep the scrollbar track present while the mega menu is open.
   The page remains inactive because pointer-events are disabled
   on the page content by the V6 rules. */
body.mega-menu-open{
  overflow-x:hidden !important;
  overflow-y:scroll !important;
}

/* Center the complete header group more tightly */
.site-header .header-inner{
  width:min(1480px, calc(100% - 72px)) !important;
  max-width:none !important;
  margin-left:auto !important;
  margin-right:auto !important;
  padding-left:18px !important;
  padding-right:18px !important;
  gap:20px !important;
}

/* Move the logo slightly farther to the right */
.site-header .brand{
  margin-left:18px;
  flex:0 0 auto;
}

/* Give the center navigation more usable width */
.site-header .primary-nav{
  flex:1 1 auto;
  margin-left:28px !important;
  margin-right:20px !important;
  justify-content:center;
  gap:23px !important;
}

/* Pull the action buttons slightly left */
.site-header .header-actions{
  margin-right:18px;
  flex:0 0 auto;
  gap:10px !important;
}

/* Prevent logo image dimensions from recalculating on menu open */
.site-header .brand-copy{
  flex:0 0 auto;
}

.site-header .brand-copy img{
  display:block;
  width:340px !important;
  max-width:340px !important;
  height:auto !important;
  flex:none !important;
  transform:none !important;
  transition:none !important;
}

/* Keep the Products trigger width stable between open/closed states */
.mega-nav-trigger{
  min-width:78px;
  justify-content:center;
}

/* No header transforms during menu-open state */
body.mega-menu-open .site-header,
body.mega-menu-open .header-inner,
body.mega-menu-open .brand,
body.mega-menu-open .brand-copy,
body.mega-menu-open .brand-copy img,
body.mega-menu-open .primary-nav,
body.mega-menu-open .header-actions{
  transform:none !important;
}

/* Large desktop refinement */
@media (min-width:1500px){
  .site-header .header-inner{
    width:min(1540px, calc(100% - 90px)) !important;
  }

  .site-header .brand{
    margin-left:24px;
  }

  .site-header .header-actions{
    margin-right:24px;
  }
}

/* Mid-size desktop: protect the navigation from crowding */
@media (min-width:1101px) and (max-width:1320px){
  .site-header .header-inner{
    width:calc(100% - 34px) !important;
    padding-left:8px !important;
    padding-right:8px !important;
    gap:14px !important;
  }

  .site-header .brand{
    margin-left:0;
  }

  .site-header .brand-copy img{
    width:290px !important;
    max-width:290px !important;
  }

  .site-header .primary-nav{
    margin-left:12px !important;
    margin-right:10px !important;
    gap:15px !important;
  }

  .site-header .header-actions{
    margin-right:0;
  }

  .site-header .header-actions .btn{
    padding-left:15px;
    padding-right:15px;
  }
}

/* Preserve the existing mobile header behavior */
@media (max-width:1100px){
  .site-header .header-inner{
    width:100% !important;
    padding-left:18px !important;
    padding-right:18px !important;
  }

  .site-header .brand{
    margin-left:0;
  }

  .site-header .brand-copy img{
    width:min(290px, 68vw) !important;
    max-width:min(290px, 68vw) !important;
  }

  .site-header .primary-nav{
    margin-left:0 !important;
    margin-right:0 !important;
    justify-content:flex-start;
  }

  .site-header .header-actions{
    margin-right:0;
  }
}


/* =========================================================
   StarwebAIQ Mega Menu — Full Header Width + Smooth Slide V8
   ========================================================= */

/* Match the same wide content footprint used by the page below */
.site-header .header-inner{
  width:min(1780px, calc(100% - 48px)) !important;
  max-width:1780px !important;
  margin:0 auto !important;
  padding-left:12px !important;
  padding-right:12px !important;
  gap:22px !important;
}

/* Let the logo occupy a stronger, wider area */
.site-header .brand{
  flex:0 0 360px !important;
  width:360px !important;
  margin-left:0 !important;
}

.site-header .brand-copy,
.site-header .brand-copy img{
  width:100% !important;
  max-width:360px !important;
}

/* Spread navigation cleanly across the wider header */
.site-header .primary-nav{
  flex:1 1 auto !important;
  margin-left:34px !important;
  margin-right:34px !important;
  justify-content:center !important;
  gap:28px !important;
}

/* Give action buttons more width and align them with page edge */
.site-header .header-actions{
  flex:0 0 auto !important;
  margin-right:0 !important;
  gap:12px !important;
}

.site-header .header-actions .btn{
  min-width:138px;
  padding-left:24px !important;
  padding-right:24px !important;
}

/* Smooth, deliberate slide-down and slide-up motion */
.products-mega-menu{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(-28px);
  transition:
    opacity .34s ease,
    transform .46s cubic-bezier(.22,.8,.2,1),
    visibility 0s linear .46s !important;
  will-change:transform,opacity;
}

.mega-nav-item.is-open .products-mega-menu,
.mega-nav-item:hover .products-mega-menu,
.mega-nav-item:focus-within .products-mega-menu{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0);
  transition:
    opacity .30s ease,
    transform .46s cubic-bezier(.22,.8,.2,1),
    visibility 0s linear 0s !important;
}

/* Animate the actual menu shell slightly for a softer opening */
.mega-menu-shell{
  transform:translateY(-12px);
  opacity:.985;
  transition:
    transform .46s cubic-bezier(.22,.8,.2,1),
    opacity .30s ease,
    box-shadow .30s ease !important;
}

.mega-nav-item.is-open .mega-menu-shell,
.mega-nav-item:hover .mega-menu-shell,
.mega-nav-item:focus-within .mega-menu-shell{
  transform:translateY(0);
  opacity:1;
}

/* Backdrop now fades in and out at the same speed */
.mega-menu-backdrop{
  transition:
    opacity .34s ease,
    visibility 0s linear .42s !important;
}

body.mega-menu-open .mega-menu-backdrop,
body:has(.mega-nav-item:hover) .mega-menu-backdrop,
body:has(.mega-nav-item:focus-within) .mega-menu-backdrop{
  transition:
    opacity .34s ease,
    visibility 0s linear 0s !important;
}

/* Smooth chevron movement */
.mega-chevron{
  transition:transform .36s cubic-bezier(.22,.8,.2,1) !important;
}

/* Large desktop */
@media (min-width:1600px){
  .site-header .brand{
    flex-basis:380px !important;
    width:380px !important;
  }

  .site-header .brand-copy img{
    max-width:380px !important;
  }

  .site-header .primary-nav{
    gap:32px !important;
  }

  .site-header .header-actions .btn{
    min-width:146px;
  }
}

/* Mid desktop */
@media (min-width:1101px) and (max-width:1390px){
  .site-header .header-inner{
    width:calc(100% - 28px) !important;
  }

  .site-header .brand{
    flex-basis:300px !important;
    width:300px !important;
  }

  .site-header .brand-copy img{
    max-width:300px !important;
  }

  .site-header .primary-nav{
    margin-left:18px !important;
    margin-right:18px !important;
    gap:17px !important;
  }

  .site-header .header-actions .btn{
    min-width:116px;
    padding-left:16px !important;
    padding-right:16px !important;
  }
}

/* Preserve mobile layout */
@media (max-width:1100px){
  .site-header .header-inner{
    width:100% !important;
    padding-left:18px !important;
    padding-right:18px !important;
  }

  .site-header .brand{
    flex:0 1 auto !important;
    width:auto !important;
  }

  .site-header .brand-copy,
  .site-header .brand-copy img{
    width:min(290px,68vw) !important;
    max-width:min(290px,68vw) !important;
  }

  .site-header .primary-nav{
    margin-left:0 !important;
    margin-right:0 !important;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion:reduce){
  .products-mega-menu,
  .mega-menu-shell,
  .mega-menu-backdrop,
  .mega-chevron{
    transition:none !important;
  }
}

/* =========================================================
   StarwebAIQ Mega Menu — HoseAIQ + GearAIQ Expansion V9
   - Adds HoseAIQ and GearAIQ accent classes
   - Displays eight live products in a 4 x 2 desktop grid
   - Preserves the existing wide V8 header/navigation layout
   - Keeps the complete dropdown visible without desktop scroll
   ========================================================= */

/* New AIQ product accent themes */
.hose-card{
  --card-accent:#65e52d;
}

.gear-card{
  --card-accent:#168fff;
}

/* Optional extra image treatment for the two new logos */
.hose-card .mega-product-art img{
  filter:
    drop-shadow(0 0 9px rgba(101,229,45,.34))
    drop-shadow(0 0 18px rgba(40,180,30,.13));
}

.gear-card .mega-product-art img{
  filter:
    drop-shadow(0 0 9px rgba(22,143,255,.36))
    drop-shadow(0 0 18px rgba(0,105,255,.14));
}

.hose-card:hover .mega-product-art img{
  filter:
    drop-shadow(0 0 14px rgba(101,229,45,.58))
    drop-shadow(0 0 26px rgba(40,180,30,.22));
}

.gear-card:hover .mega-product-art img{
  filter:
    drop-shadow(0 0 14px rgba(22,143,255,.62))
    drop-shadow(0 0 26px rgba(0,105,255,.22));
}

/* Eight live systems: four cards across, two rows */
@media (min-width:1501px){
  .mega-menu-layout{
    grid-template-columns:minmax(0,1fr) minmax(320px,380px);
  }

  .mega-product-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:9px;
  }

  .mega-product-card{
    min-height:105px;
    grid-template-columns:96px minmax(0,1fr);
    gap:9px;
    padding:9px 31px 9px 9px;
  }

  .mega-product-art{
    height:58px;
  }

  .mega-product-copy strong{
    font-size:14px;
  }

  .mega-product-copy small{
    font-size:8px;
  }

  .mega-product-copy em{
    font-size:7px;
    line-height:1.25;
  }
}

/* Standard desktop still gets four columns while protecting text */
@media (min-width:1261px) and (max-width:1500px){
  .mega-menu-layout{
    grid-template-columns:minmax(0,1fr) 340px;
  }

  .mega-product-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:8px;
  }

  .mega-product-card{
    min-height:100px;
    grid-template-columns:84px minmax(0,1fr);
    gap:8px;
    padding:8px 28px 8px 8px;
  }

  .mega-product-art{
    height:53px;
  }

  .mega-product-copy strong{
    font-size:13px;
  }

  .mega-product-copy small{
    font-size:8px;
  }

  .mega-product-copy em{
    font-size:7px;
    line-height:1.2;
  }

  .mega-card-arrow{
    right:9px;
    font-size:15px;
  }
}

/* Medium desktop/tablet: balanced two-column cards */
@media (min-width:761px) and (max-width:1260px){
  .mega-product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

/* Make eight cards fit shorter desktop viewports */
@media (min-width:1101px) and (max-height:820px){
  .mega-product-card{
    min-height:88px;
  }

  .mega-product-art{
    height:47px;
  }

  .mega-product-copy strong{
    font-size:12px;
  }

  .mega-product-copy small{
    font-size:7px;
  }

  .mega-product-copy em{
    margin-top:3px;
    font-size:6.5px;
  }
}

/* Keep the V8 wide header exactly intact.
   These declarations intentionally repeat the final V8 values
   so later theme rules cannot narrow the top navigation. */
@media (min-width:1101px){
  .site-header .header-inner{
    width:min(1780px, calc(100% - 48px)) !important;
    max-width:1780px !important;
    margin:0 auto !important;
    padding-left:12px !important;
    padding-right:12px !important;
    gap:22px !important;
  }

  .site-header .brand{
    flex:0 0 360px !important;
    width:360px !important;
    margin-left:0 !important;
  }

  .site-header .brand-copy,
  .site-header .brand-copy img{
    width:100% !important;
    max-width:360px !important;
  }

  .site-header .primary-nav{
    flex:1 1 auto !important;
    margin-left:34px !important;
    margin-right:34px !important;
    justify-content:center !important;
    gap:28px !important;
  }

  .site-header .header-actions{
    flex:0 0 auto !important;
    margin-right:0 !important;
    gap:12px !important;
  }
}

@media (min-width:1600px){
  .site-header .brand{
    flex-basis:380px !important;
    width:380px !important;
  }

  .site-header .brand-copy img{
    max-width:380px !important;
  }

  .site-header .primary-nav{
    gap:32px !important;
  }
}

@media (min-width:1101px) and (max-width:1390px){
  .site-header .header-inner{
    width:calc(100% - 28px) !important;
  }

  .site-header .brand{
    flex-basis:300px !important;
    width:300px !important;
  }

  .site-header .brand-copy img{
    max-width:300px !important;
  }

  .site-header .primary-nav{
    margin-left:18px !important;
    margin-right:18px !important;
    gap:17px !important;
  }
}

