/*
 * 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-subcategories {
        padding: 0;
        margin: 0;
    }

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

        & a {
            color: #FFF;
            text-transform: uppercase;
            font-weight: bold;
            font-size: 14px;
        }

        &.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 {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-width: 100vw;
        margin: 0 auto;
        max-height: calc(100vh - 350px);
        overflow-x: auto;
        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;
        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: 0;
        margin: 0;
        line-height: 1em;
    }

    & .aw-cat-name a {
        color: #885f83;
        line-height: 1em;
        padding: 0;
        margin: 0;
        display: inline-block;
    }

    .aw-subcat-small {
        padding-bottom: 15px;
    }

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

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

            & a {
                color: rgb(0, 0, 0) !important;
                font-weight: normal;
            }
        }
    }
}


@media (max-width: 1440px) {
	.awcf-mega-menu {
		& .aw-hoofdItem {
			padding: 15px 5px;
		}
	}
}