/*
 * Gebruik nested CSS in je wrapper div: .awcf-mega-menu
 * Meer informatie: https://www.w3schools.com/cssref/sel_nesting.php
 */

.awcf-mega-menu {
    & .aw-mainMenuNavigation {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        list-style: none;
        padding: 0;
        margin: 0;
        position: relative;
    }

    & .aw-hoofdItem {
        padding: 10px 15px;
        cursor: pointer;

        & a {
            color: #464646 !important;
        }

        &.merken {
            position: relative;

            &::after {
                content: '';
                position: absolute;
                top: 12px;
                right: 0;
                height: 20px;
                width: 1px;
                background-color: #000;
            }
        }

        &:hover .aw-subItems {
            opacity: 1;
            visibility: visible;
            transform: scale(1);
        }
    }

    & .aw-subItems {
        margin: auto;
        position: absolute;
        top: 100%;
        left: 0;
        width: 1250px;
        background-color: #f9f9f9;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(0, 0, 0, 0.1);
        padding: 15px;
        padding-top: 0;
        z-index: 15;
        list-style: none;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
        columns: 4;
        column-gap: 5px;
        transform: scale(0);

        & div {
            break-inside: avoid;
        }
    }

    & .aw-cat-name {
        font-size: 20px;
        font-weight: bold;
        padding-top: 15px;
        margin-bottom: 5px;
    }

    & .aw-cats {
        padding-left: 0;

        & .aw-cat {
            font-size: 1rem;
            list-style: none;

            & a {
                color: rgb(0, 0, 0) !important;
            }
        }
    }
}