/* AMAJED — dynamic catalog mega menu. Scoped to desktop; preserve mobile navigation. */
#mega {
    max-height: calc(100vh - 116px);
    max-height: calc(100dvh - 116px);
    overflow-y: auto;
    overscroll-behavior: contain;
}
#mega .mega-grid {
    grid-template-columns: minmax(180px, .88fr) minmax(0, 4fr) !important;
    align-items: start;
    gap: clamp(18px, 2vw, 36px) !important;
    padding-block: 28px 32px;
}
#mega .mega-grid > .mega-intro { display: block; min-width: 0; }
#mega .mega-catalog-groups {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px clamp(16px, 1.8vw, 32px);
    align-items: start;
}
#mega .mega-category-group { min-width: 0; }
#mega .mega-category-group h4 { margin: 0 0 8px; }
#mega .mega-category-title {
    color: #e5f0f6;
    font-size: 1em;
    font-weight: 700;
    padding-block: 0 8px;
    border-bottom: 1px solid rgba(135, 186, 211, .22);
    overflow-wrap: anywhere;
}
#mega .mega-section-link { padding-block: 4px; line-height: 1.55; overflow-wrap: anywhere; }
#mega .mega-category-title:hover, #mega .mega-category-title:focus-visible,
#mega .mega-section-link:hover, #mega .mega-section-link:focus-visible { color: #62d8ff; }
#mega a:focus-visible { outline: 2px solid #62d8ff; outline-offset: 2px; }
@media (min-width: 1650px) {
    #mega .mega-catalog-groups { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1280px) {
    #mega .mega-grid { grid-template-columns: minmax(160px, .9fr) minmax(0, 3fr) !important; }
    #mega .mega-catalog-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
