/**
 * ServerPowerHub desktop Products mega menu.
 *
 * The custom panel is emitted only for Blocksy's desktop `menu_1` location.
 * The existing mobile menu keeps its native nested markup and behavior.
 */

@media (min-width: 1000px) {
  #header [data-device="desktop"] [data-row="middle"] > .ct-container {
    position: relative;
  }

  #header-menu-1,
  #header-menu-1 > .menu,
  #header-menu-1 > .menu > .sph-products-mega-host {
    position: static;
  }

  #header-menu-1 > .menu > .sph-products-mega-host > .sub-menu {
    display: none !important;
  }

  .sph-products-mega-panel {
    position: absolute;
    z-index: 9999;
    top: 100%;
    right: 0;
    left: 0;
    overflow: hidden;
    color: #1a1d23;
    background: #fff;
    border: 1px solid #dfe4ea;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 24px 55px rgb(0 0 0 / 28%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 180ms ease;
  }

  .sph-products-mega-host:hover > .sph-products-mega-panel,
  .sph-products-mega-host:focus-within > .sph-products-mega-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .sph-products-mega-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 18px 28px;
    border-bottom: 1px solid #e5e7eb;
  }

  .sph-products-mega-eyebrow {
    display: block;
    color: #2aa84a;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .sph-products-mega-intro p,
  .sph-products-mega-group > p {
    margin: 0;
    color: #687386;
  }

  .sph-products-mega-intro p {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.5;
  }

  .sph-products-mega-intro > a {
    flex: 0 0 auto;
    color: #197235;
    font-size: 12px;
    font-weight: 700;
  }

  .sph-products-mega-intro > a:hover,
  .sph-products-mega-intro > a:focus-visible {
    color: #2aa84a;
  }

  .sph-products-mega-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr 0.8fr;
  }

  .sph-products-mega-group {
    min-width: 0;
    padding: 25px 28px 27px;
  }

  .sph-products-mega-group + .sph-products-mega-group {
    border-left: 1px solid #e5e7eb;
  }

  .sph-products-mega-group--power-cords {
    background: #f7f8fa;
  }

  .sph-products-mega-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .sph-products-mega-heading h2 {
    margin: 0;
    color: #151a22;
    font-size: 17px;
    font-weight: 750;
    line-height: 1.3;
  }

  .sph-products-mega-heading > span {
    flex: 0 0 auto;
    padding: 5px 10px;
    color: #187335;
    background: #eaf7ed;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .sph-products-mega-group > p {
    min-height: 42px;
    margin-top: 9px;
    font-size: 12px;
    line-height: 1.7;
  }

  .sph-products-mega-group ul {
    display: grid;
    gap: 2px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
  }

  .sph-products-mega-group li {
    margin: 0;
  }

  .sph-products-mega-group li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 11px;
    color: #333d4c;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
  }

  .sph-products-mega-group li > a:hover,
  .sph-products-mega-group li > a:focus-visible {
    color: #187335;
    background: #eef8f0;
  }

  .sph-products-mega-coming-soon {
    margin-top: 18px;
    padding: 14px;
    color: #758094;
    border: 1px dashed #cfd6df;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.65;
  }
}
