.saltech-mega-menu { position: relative; z-index: 10; border-bottom: 5px solid #d9342b; background: #fff; color: #172554; }
.saltech-mega-menu__toggle { display: none; border: 0; background: #fff; color: #172554; font: inherit; padding: .8rem 1rem; }
.saltech-mega-menu__list { display: flex; justify-content: center; max-width: 1600px; min-height: 96px; margin: auto; padding: 0; list-style: none; }
.saltech-mega-menu__item { flex: 1 1 0; min-width: 78px; max-width: 135px; }
.saltech-mega-menu__item > a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; height: 100%; min-height: 96px; padding: .45rem; color: #172554; font-size: .82rem; font-weight: 700; letter-spacing: .04em; line-height: 1.1; text-align: center; text-decoration: none; text-transform: uppercase; }
.saltech-mega-menu__item > a img { width: 47px; height: 47px; object-fit: contain; mix-blend-mode: multiply; }
.saltech-mega-menu__expand { display: none; }
.saltech-mega-menu__item:hover > a, .saltech-mega-menu__item:focus-within > a { color: #d9342b; background: #fafafa; }
.saltech-mega-menu__panel { display: none; position: absolute; z-index: 1000; top: 100%; left: 0; right: 0; box-sizing: border-box; max-height: min(620px, calc(100vh - 145px)); padding: .45rem 0; overflow-x: hidden; overflow-y: auto; background: #fff; border-top: 1px solid #eef2f7; box-shadow: none; column-count: 5; column-gap: 0; column-rule: 1px solid #f1f5f9; }
.saltech-mega-menu__panel { scrollbar-width: thin; scrollbar-color: #d9342b #eef2f7; }
.saltech-mega-menu__panel::-webkit-scrollbar { width: 10px; }
.saltech-mega-menu__panel::-webkit-scrollbar-track { background: #eef2f7; }
.saltech-mega-menu__panel::-webkit-scrollbar-thumb { border: 2px solid #eef2f7; border-radius: 999px; background: #d9342b; }
.saltech-mega-menu__panel::-webkit-scrollbar-thumb:hover { background: #a91f18; }
.saltech-mega-menu__panel--box { padding: 1rem .35rem; border: 1px solid #e5eaf1; border-top: 3px solid #d9342b; background-color: #fbfcfe; background-image: linear-gradient(30deg, transparent 49%, rgba(217, 52, 43, .035) 50%, transparent 51%), linear-gradient(150deg, transparent 49%, rgba(23, 37, 84, .03) 50%, transparent 51%); background-size: 36px 36px; column-gap: 0; column-rule: 1px solid #e5eaf1; }
.saltech-mega-menu__panel--box .saltech-mega-menu__section { padding: .75rem 1.25rem; }
.saltech-mega-menu__panel--box .saltech-mega-menu__section:hover { background: rgba(255, 255, 255, .78); }
.saltech-mega-menu__panel--box .saltech-mega-menu__section-title { margin-bottom: .4rem; font-size: .95rem; }
.saltech-mega-menu__panel--box .saltech-mega-menu__link, .saltech-mega-menu__panel--box .saltech-mega-menu__leaf { margin: .28rem 0; font-size: .84rem; }
.saltech-mega-menu__panel--box .saltech-mega-menu__products { margin-top: .55rem; padding-top: .5rem; }
.has-dropdown:hover .saltech-mega-menu__panel, .has-dropdown:focus-within .saltech-mega-menu__panel { display: block; }
.has-dropdown.is-expanded .saltech-mega-menu__panel { display: block; }
.saltech-mega-menu__section { position: relative; display: inline-block; width: 100%; min-width: 0; padding: 1rem 1.35rem; break-inside: avoid-column; border: 0; vertical-align: top; transition: background-color .2s ease, transform .2s ease; }
.saltech-mega-menu .saltech-mega-menu__section { text-align: left !important; }
.saltech-mega-menu__section::after { display: none; }
.saltech-mega-menu__section:hover { background: #fafcff; }
.saltech-mega-menu__section-title { display: block; margin-bottom: .55rem; color: #172554 !important; font-size: 1rem; font-weight: 800; line-height: 1.2; text-decoration: none; transition: color .18s ease; }
.saltech-mega-menu__section-title:hover, .saltech-mega-menu__link:hover { color: #d9342b; }
.saltech-mega-menu__link { display: flex; align-items: center; justify-content: flex-start; gap: .6rem; margin: .45rem 0; color: #25324e !important; font-size: .88rem; font-weight: 600; line-height: 1.3; text-decoration: none; transition: color .18s ease, transform .18s ease; }
.saltech-mega-menu__link span, .saltech-mega-menu__leaf span { color: inherit !important; }
.saltech-mega-menu__link img { display: block; flex: 0 0 32px; width: 32px !important; height: 32px !important; max-width: 32px; object-fit: contain; mix-blend-mode: multiply; }
.saltech-mega-menu__link--depth-1 { margin-left: 1rem; font-size: .88rem; }
.saltech-mega-menu__link--depth-2 { margin-left: 2rem; font-size: .85rem; }
.saltech-mega-menu__link--depth-3, .saltech-mega-menu__link--depth-4 { margin-left: 2.6rem; font-size: .82rem; }
.saltech-mega-menu__leaf { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: .6rem; min-height: 58px; padding: .45rem 0; color: #172554 !important; font-size: .9rem; font-weight: 700; line-height: 1.3; text-align: left; text-decoration: none; }
.saltech-mega-menu__leaf:hover, .saltech-mega-menu__link:hover { color: #d9342b !important; }
.saltech-mega-menu__leaf img { display: block; flex: 0 0 36px; width: 36px !important; height: 36px !important; max-width: 36px; object-fit: contain; mix-blend-mode: multiply; }
.saltech-mega-menu__link img,
.saltech-mega-menu__leaf img { display: none !important; }
.saltech-mega-menu__products { margin-top: .8rem; padding-top: .7rem; border-top: 1px solid #eef2f7; }
.saltech-mega-menu__products > span { display: block; margin-bottom: .4rem; color: #64748b; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.saltech-mega-menu__products a { display: flex; align-items: center; gap: .45rem; margin-top: .4rem; color: #25324e !important; font-size: .78rem; line-height: 1.25; text-decoration: none; }
.saltech-mega-menu__products a:hover { color: #d9342b !important; }
.saltech-mega-menu__products img { flex: 0 0 28px; width: 28px !important; height: 28px !important; object-fit: contain; }
.saltech-mega-menu .saltech-mega-menu__section .saltech-mega-menu__leaf,
.saltech-mega-menu .saltech-mega-menu__section .saltech-mega-menu__link { justify-content: flex-start !important; text-align: left !important; }
.saltech-mega-menu .saltech-mega-menu__section .saltech-mega-menu__leaf img,
.saltech-mega-menu .saltech-mega-menu__section .saltech-mega-menu__link img { margin: 0 !important; }
.saltech-mega-menu .saltech-mega-menu__section .saltech-mega-menu__leaf span,
.saltech-mega-menu .saltech-mega-menu__section .saltech-mega-menu__link span { flex: 1 1 auto; text-align: left !important; }
.saltech-mega-menu__link:hover { transform: translateX(4px); }
.saltech-mega-menu__leaf { transition: color .18s ease, background-color .18s ease, transform .18s ease; }
.saltech-mega-menu__leaf:hover { background: #fff7f6; transform: translateY(-3px); }
.saltech-mega-menu__leaf img { transition: transform .2s ease; }
.saltech-mega-menu__leaf:hover img { transform: scale(1.08); }
.saltech-mega-menu__feature { display: flex; align-items: center; justify-content: center; min-height: 180px; padding: 1rem; border-bottom: 1px solid #e5e7eb; }
.saltech-mega-menu__feature img { display: block; width: 100%; max-width: 240px; height: auto; object-fit: contain; }
.saltech-product-index { display: none; position: absolute; z-index: 1000; top: 100%; left: 0; right: 0; min-height: 420px; max-height: min(650px, calc(100vh - 145px)); overflow: hidden; background: #fff; color: #334155; border-top: 1px solid #eef2f7; box-shadow: none; }
.has-dropdown:hover .saltech-product-index, .has-dropdown:focus-within .saltech-product-index { display: flex; }
.has-dropdown.is-expanded .saltech-product-index { display: flex; }
.saltech-product-index__tabs { flex: 0 0 220px; padding: .35rem 0; background: #f1f1f1; }
.saltech-product-index__tabs button { display: block; width: 100%; padding: 1rem 1.35rem; border: 0; border-left: 3px solid transparent; background: transparent; color: #64748b; font: inherit; font-size: .95rem; text-align: left; cursor: pointer; }
.saltech-product-index__tabs button:hover, .saltech-product-index__tabs button.is-active { border-left-color: #df342b; background: #e2e2e2; color: #172554; }
.saltech-product-index__content { flex: 1; min-height: 0; padding: 1.5rem 2rem; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #d9342b #eef2f7; }
.saltech-product-index__content::-webkit-scrollbar { width: 10px; }
.saltech-product-index__content::-webkit-scrollbar-track { background: #eef2f7; }
.saltech-product-index__content::-webkit-scrollbar-thumb { border: 2px solid #eef2f7; border-radius: 999px; background: #d9342b; }
.saltech-product-index__content::-webkit-scrollbar-thumb:hover { background: #a91f18; }
.saltech-product-index__panel { display: none; }
.saltech-product-index__panel.is-active { display: block; }
.saltech-product-index__panel h2 { margin: 0 0 .65rem; color: #172554; font-size: 1.05rem; font-weight: 700; }
.saltech-product-index__panel > p { margin: 0 0 1.5rem; color: #64748b; }
.saltech-product-index__diagram { display: block; width: 100%; max-width: 720px; height: auto; margin: 0 0 1.5rem; }
.saltech-product-index__overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .8rem; max-width: 900px; }
.saltech-product-index__overview a { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: .75rem .4rem; border: 1px solid #e2e8f0; color: #172554; font-size: .78rem; font-weight: 700; text-align: center; text-decoration: none; }
.saltech-product-index__overview a:hover { border-color: #df342b; color: #df342b; }
.saltech-product-index__overview img { width: 42px; height: 42px; object-fit: contain; }
.saltech-product-index__columns { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); }
.saltech-product-index__column { min-height: 250px; padding: 0 1.2rem 1rem; border-right: 1px solid #e5e7eb; }
.saltech-product-index__column:first-child { padding-left: 0; }
.saltech-product-index__column:last-child { border-right: 0; }
.saltech-product-index__column a { display: flex; gap: .45rem; align-items: flex-start; margin: 0 0 .8rem; color: #475569; font-size: .91rem; line-height: 1.35; text-decoration: none; }
.saltech-product-index__column a::before { flex: 0 0 auto; width: 0; height: 0; margin-top: .38rem; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 5px solid #d9342b; content: ''; }
.saltech-product-index__column a:hover { color: #df342b; text-decoration: underline; }
.saltech-product-index__empty { color: #94a3b8; font-size: .85rem; }

/* Desktop dropdowns are contained to the navigation area instead of spanning
   the entire viewport. The panel remains wide enough for multi-column menus. */
@media (min-width: 768px) {
  .saltech-mega-menu__panel,
  .saltech-product-index {
    right: auto;
    left: 50%;
    width: min(calc(100vw - 2rem), 1440px);
    border: 1px solid #e4e8ee;
    border-top: 3px solid #d9342b;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 18px 38px rgba(23, 37, 84, .16);
    transform: translateX(-50%);
  }

  .saltech-mega-menu__panel {
    padding: .7rem .45rem;
    background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
    column-rule-color: #e8edf3;
  }

  .saltech-mega-menu__panel--box {
    padding: .85rem .55rem;
    border-top-color: #d9342b;
    background-color: #fff;
    background-image: linear-gradient(135deg, rgba(217, 52, 43, .025), transparent 36%);
  }

  .saltech-mega-menu__section {
    min-height: 118px;
    padding: .9rem 1.15rem;
  }

  .saltech-mega-menu__section:hover {
    border-radius: 8px;
    background: rgba(255, 255, 255, .88);
    box-shadow: inset 0 0 0 1px rgba(217, 52, 43, .08);
  }

  .saltech-mega-menu__section-title {
    padding-bottom: .45rem;
    border-bottom: 1px solid #edf0f4;
  }

  .saltech-mega-menu__link,
  .saltech-mega-menu__leaf {
    border-radius: 5px;
  }

  .saltech-product-index {
    overflow: hidden;
  }
}
@media (max-width: 991px) { .saltech-mega-menu__item > a { font-size: .68rem; } .saltech-mega-menu__item > a img { width: 38px; height: 38px; } .saltech-mega-menu__panel { column-count: 3; } .saltech-mega-menu__section { padding: 1rem; } }
@media (max-width: 767px) { .saltech-mega-menu__toggle { display: block; } .saltech-mega-menu__list { display: none; min-height: 0; flex-direction: column; align-items: stretch; } .saltech-mega-menu.is-open .saltech-mega-menu__list { display: flex; } .saltech-mega-menu__item { max-width: none; } .saltech-mega-menu__item > a { flex-direction: row; justify-content: flex-start; min-height: 58px; text-align: left; } .saltech-mega-menu__item > a img { width: 34px; height: 34px; } .saltech-mega-menu__panel { position: static; min-height: 0; padding: 0; column-count: 1; column-rule: 0; box-shadow: none; } .saltech-mega-menu__section { min-width: 0; border-top: 1px solid #e5e7eb; } .saltech-product-index { position: static; min-height: 0; max-height: 70vh; flex-direction: column; box-shadow: none; } .saltech-product-index__tabs { display: flex; flex: auto; overflow-x: auto; padding: 0; white-space: nowrap; } .saltech-product-index__tabs button { width: auto; flex: 0 0 auto; padding: .85rem 1rem; border-left: 0; border-bottom: 3px solid transparent; } .saltech-product-index__tabs button:hover, .saltech-product-index__tabs button.is-active { border-left-color: transparent; border-bottom-color: #df342b; } .saltech-product-index__content { padding: 1.25rem 1rem; } .saltech-product-index__columns { grid-template-columns: repeat(2, minmax(0, 1fr)); } .saltech-product-index__column { min-height: 0; margin-bottom: 1rem; padding: 0 .8rem .5rem 0; } .saltech-product-index__overview { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .saltech-mega-menu__item { position: relative; } .saltech-mega-menu__item > a { padding-right: 3.5rem; } .saltech-mega-menu__expand { display: block; position: absolute; top: 0; right: 0; width: 3.5rem; height: 58px; border: 0; background: transparent; } .saltech-mega-menu__expand::after { content: '+'; color: #172554; font-size: 1.5rem; } .saltech-mega-menu__item.is-expanded > .saltech-mega-menu__expand::after { content: '−'; } .saltech-mega-menu__panel, .has-dropdown:hover .saltech-mega-menu__panel, .has-dropdown:focus-within .saltech-mega-menu__panel, .saltech-product-index, .has-dropdown:hover .saltech-product-index, .has-dropdown:focus-within .saltech-product-index { display: none; } .has-dropdown.is-expanded .saltech-mega-menu__panel { display: block; } .has-dropdown.is-expanded .saltech-product-index { display: flex; } }
