.nav-desktop {
   display: flex;
   align-items: center;
   gap: 4px;
   font-family: "Poppins", Sans-serif;
   justify-content: center;
   position: relative;
}
.nav-item {
   position: static;
}
.nav-trigger {
   display: flex;
   align-items: center;
   gap: 6px;
   height: 84px;
   padding-inline: 14px;
   background: transparent;
   border: none;
   color: #0E1A2F;
   font-weight: 500;
   font-size: 15px;
   border-bottom: 2px solid transparent;
   border-radius: 0;
}
.nav-trigger svg {
   width: 14px;
   height: 14px;
   transition: transform 0.15s ease;
   color: #6B7385;
}
.nav-item:hover .nav-trigger,
.nav-trigger[aria-expanded="true"] {
   color: #008B41;
   border-bottom-color: #008B41;
   background: transparent;
}
.nav-item:hover .nav-trigger svg,
.nav-trigger[aria-expanded="true"] svg {
   transform: rotate(180deg);
   color: #008B41;
}
.nav-link {
   display: flex;
   align-items: center;
   height: 84px;
   padding-inline: 14px;
   font-weight: 500;
   font-size: 15px;
   color: #0E1A2F;
   border-bottom: 2px solid transparent;
}
.nav-link:hover,
.nav-link[aria-current="page"] {
   color: #008B41;
   border-bottom-color: #008B41;
}

.mega {
   /* Anchored to .header-inner's own edges (its nearest positioned ancestor),
     not centered on the trigger â€” a trigger near the left/right edge of the
     header would otherwise push a wide panel off-screen. */
   position: absolute;
   top: 100%;
   left: 50%;
   transform: translateX(-50%);
   width: min(920px, 86vw);
   background: #fff;
   border: 1px solid #d7d4cc;
   border-radius: 12px;
   box-shadow: 0 20px 48px rgba(16, 23, 31, 0.16);
   padding: 28px;
   display: none;
   z-index: 50;
}
.mega.mega-wide {
   width: min(1200px, 92vw);
    left: 50%;
    transform: translateX(-50%);
}
.mega.mega-narrow {
   width: min(620px, 86vw);
}
.mega.mega-align-right {
   left: auto;
   right: 0;
}
.nav-item.open .mega {
   display: block;
}
.mega-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 8px 28px;
}
.mega-grid.cols-4 {
   grid-template-columns: repeat(4, 1fr);
}
.mega-grid.cols-2 {
   grid-template-columns: repeat(2, 1fr);
}

.mega-grid.cols-5 {
   grid-template-columns: repeat(5, 1fr);
   gap: 8px 20px;
}
.mega-grid.cols-5 .mega-list a {
   font-size: 13.8px;
}
.mega-col-title {
   font-size: 11.5px;
   font-weight: 600;
   letter-spacing: 0.07em;
   text-transform: uppercase;
   color: #008B41;
   margin-bottom: 10px;
   display: block;
}
.mega-list {
   display: flex;
   flex-direction: column;
   gap: 2px;
   margin-bottom: 18px;
}
.mega-list a {
   display: block;
   padding: 8px 8px;
   margin-inline: -8px;
   border-radius: 6px;
   font-size: 14px;
   color: #0E1A2F;
}
.mega-list a:hover {
   background: #ddf1e2;
   color: #008B41;
}
.mega-foot {
   margin-top: 4px;
   padding-top: 18px;
   border-top: 1px solid #d7d4cc;
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 16px;
}
.mega-foot p {
   font-size: 13.5px;
   color: #6B7385;
   max-width: 46ch;
   margin:0px;
}

/* Nested Services mega menu: rail (level 1) -> branch (level 2) -> leaf (level 3) */
.mega.mega-tree {
   width: min(1180px, 94vw);
   left: 50%;
    transform: translateX(-50%);
}
.mega-tree-inner {
   display: flex;
   align-items: flex-start;
}
.mega-rail {
   flex: 0 0 206px;
   padding-right: 18px;
   border-right: 1px solid #d7d4cc;
   display: flex;
   flex-direction: column;
   gap: 2px;
   align-self: stretch;
}
.mega-rail-item {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 8px;
   width: 100%;
   padding: 11px 12px;
   border-radius: 8px;
   background: none;
   border: none;
   font-weight: 500;
   font-size: 14.5px;
   color: #0E1A2F;
   text-align: left;
}
.mega-rail-item svg {
   width: 14px;
   height: 14px;
   color: #6B7385;
   flex-shrink: 0;
}
.mega-rail-item:hover,
.mega-rail-item.is-active {
   background: #ddf1e2;
   color: #008B41;
}
.mega-rail-item:hover svg,
.mega-rail-item.is-active svg {
   color: #008B41;
}
.mega-rail-foot {
   margin-top: 10px;
   padding-top: 12px;
   border-top: 1px solid #d7d4cc;
}
.link-arrow {
   font-size: 14px;
    color: #008B41;
    font-weight: 500;
    display: flex;
    gap: 5px;
    align-items: center;
}
.mega-rail-foot .link-arrow {
   font-size: 14px;
    color: #008B41;
    font-weight: 500;
    display: flex;
    gap: 5px;
    align-items: center;
}

.mega-branch {
   display: none;
   flex: 0 0 264px;
   padding-inline: 22px;
   border-right: 1px solid #d7d4cc;
   align-self: stretch;
}
.mega-branch.is-active {
   display: block;
}
.mega-branch-list {
   display: flex;
   flex-direction: column;
   gap: 2px;
}
.mega-branch-item {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 8px;
   padding: 8px 10px;
   margin-inline: -10px;
   border-radius: 6px;
   font-size: 14px;
   color: #0E1A2F;
   background: none;
   border: none;
   width: calc(100% + 20px);
   text-align: left;
}
.mega-branch-item svg {
   width: 12px;
   height: 12px;
   color: #6B7385;
   flex-shrink: 0;
}
.mega-branch-item:hover,
.mega-branch-item.is-active {
   background: #ddf1e2;
   color: #008B41;
}
.mega-branch-item:hover svg,
.mega-branch-item.is-active svg {
   color: #008B41;
}

.mega-leaf {
   display: none;
   flex: 1 1 auto;
   min-width: 0;
   padding-left: 22px;
}
.mega-leaf.is-active {
   display: block;
}
.mega-leaf .mega-col-title {
   display: flex;
   align-items: center;
   justify-content: space-between;
}
.mega-leaf .count {
   font-size: 11px;
   font-weight: 700;
   color: #6B7385;
   text-transform: none;
   letter-spacing: 0;
}
.mega-leaf-grid {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 2px 20px;
   margin-top: 2px;
}
.mega-leaf-grid a {
   display: block;
   padding: 6px 8px;
   margin-inline: -8px;
   border-radius: 6px;
   font-size: 13.5px;
   color: #0E1A2F;
}
.mega-leaf-grid a:hover {
   background: #ddf1e2;
   color: #008B41;
}

/* Nested mobile accordion (Products > Electrical & Electronics) */
.macc-sub {
   border: none;
   margin: 2px 0;
}
.macc-sub summary {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 8px;
   padding: 7px 0;
   font-size: 14.5px;
   color: #0E1A2F;
   cursor: pointer;
   list-style: none;
}
.macc-sub summary::-webkit-details-marker {
   display: none;
}
.macc-sub summary svg {
   width: 13px;
   height: 13px;
   color: #6B7385;
   transition: transform 0.15s ease;
   flex-shrink: 0;
}
.macc-sub[open] summary svg {
   transform: rotate(180deg);
}
.macc-sub[open] summary {
   color: #008B41;
}
.macc-sub-list {
   display: grid;
   padding: 2px 0 8px 14px;
   border-left: 1px solid #d7d4cc;
   margin-left: 2px;
}
.macc-sub-list a {
   padding: 6px 0 6px 10px;
   font-size: 13.5px;
}
