nav.mega-menu {
    width: 10vw;
    height: 2.1vw;
    position: relative;
}

nav.mega-menu > svg {
    width: 1.25vw;
    position: absolute;
    left: 0.7vw;
    transition: all 0.25s ease-in-out;
}

nav.mega-menu:hover > svg {
    transform: rotate(180deg);
}

nav.mega-menu .mega-menu-button {
    padding: 0 1vw;
    width: 100%;
    height: 2.1vw;
    justify-content: start !important;
    gap: 0.75vw;
    background-color: transparent;
    font-size: 0.9vw;
    font-weight: bold;
}

nav.mega-menu .mega-menu-button svg {
    width: 1.5vw;
}

nav.mega-menu .mega-menu-window {
    padding: 1.5vw 1vw;
    width: 88vw;
    min-height: 25vw;
    background-color: var(--light-bg);
    box-shadow: 0 0.35vw 0.5vw rgba(0, 0, 0, 0.2);
    border-radius: 1vw;
    position: absolute;
    top: 150%;
    right: -13vw;
    opacity: 1;
    visibility: visible;
    display: none !important;
    z-index: 2;
    transition: all 0.1s ease-in-out !important;
    justify-content: start !important;
}

nav.mega-menu:hover .mega-menu-window {
    display: flex !important;
    animation: megaMenu-animation 0.2s ease-in-out forwards;
}

@keyframes megaMenu-animation {
    0% {
        opacity: 0;
        visibility: hidden;
    }
    100% {
        opacity: 1;
        visibility: visible;
    }
}

nav.mega-menu .mega-menu-window::before {
    content: "";
    height: 1.5vw;
    width: 100%;
    position: absolute;
    left: 0;
    top: -1.5vw;
}

nav.mega-menu .mega-menu-window > ul.main-category-tabs {
    padding: 0 1vw;
    width: 100%;
    position: relative;
    border-bottom: 0.15vw solid #eeeff2;
    justify-content: start !important;
    gap: 0.75vw;
}

nav.mega-menu .mega-menu-window ul.main-category-tabs > li {
    padding: 1vw;
    font-size: 0.95vw;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    transform: translateY(0.15vw);
    border-radius: 0.2vw;
    border-bottom: 0.22vw solid transparent;
    position: static !important;
}

nav.mega-menu .mega-menu-window ul.main-category-tabs li.active {
    border-color: var(--red);
    color: var(--red);
}

div#mega-menu-sub-category-cont {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: auto;
}

nav.mega-menu ul.mega-menu-sub-category {
    padding: 1vw;
    width: 100%;
    position: relative;
    top: 100%;
    min-height: 10vw;
    border: none !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: start !important;
    align-items: start !important;
    gap: 0.25vw;
}

nav.mega-menu ul.mega-menu-sub-category li {
    width: 24%;
    height: 5vw;
    position: relative;
}

nav.mega-menu ul.mega-menu-sub-category li a {
    width: 100%;
    height: 100%;
    gap: 0.4vw;
    padding: 1vw 0;
    justify-content: start !important;
}

nav.mega-menu ul.mega-menu-sub-category li a > * {
    pointer-events: none !important;
}

nav.mega-menu ul.mega-menu-sub-category li a figure {
    padding: 0.55vw;
    width: 3.5vw;
    height: 3.5vw;
    border-radius: 1.2vw;
    border: 0.1vw solid #eeeff2;
    position: relative;
    transition: all 0.25s ease-in-out;
}

nav.mega-menu ul.mega-menu-sub-category li a:hover figure {
    border-color: var(--red);
}

nav.mega-menu ul.mega-menu-sub-category li a figure img {
    width: 100%;
    height: 100%;
}

nav.mega-menu ul.mega-menu-sub-category li a h3 {
    align-items: start !important;
    gap: 0.25vw;
    font-size: 1vw;
    font-weight: 600;
    transition: all 0.25s ease-in-out;
}

nav.mega-menu ul.mega-menu-sub-category li a h3 span {
    color: #afb6c5;
    font-weight: normal;
    font-size: 0.95vw;
    transition: all 0.25s ease-in-out;
}

nav.mega-menu ul.mega-menu-sub-category li a:hover h3 {
    color: var(--red);
}

@media (max-width: 450px) {
    .mega-menu-button {
        display: none;
    }

    nav.mega-menu .mega-menu-button {
        color: var(--light-bg);
        font-size: 2.7vw;
        width: 100%;
        font-weight: 400;
        white-space: nowrap;
    }

    nav.mega-menu svg {
        display: none;
    }

    nav.mega-menu .active-categories {
        display: flex !important;
        flex-direction: row;
        top: 0;
        border-radius: 0;
        right: 0;
        padding-top: 1vw;
        z-index: 2 !important;
        align-items: center;
        position: fixed;
        width: 100vw;
        min-height: 96.3vh;
        animation: megaMenu-animation 0.2s ease-in-out forwards;
    }

    nav.mega-menu .mega-menu-window > ul.main-category-tabs {
        padding-top: 44vw;
        width: 30%;
        min-height: 87vh;
        overflow-y: auto;
        flex-direction: column;
        position: relative;
        border-bottom: none;
        border-left: 0.25vw solid #d4d5d9;
        justify-content: start !important;
        gap: 19.75vw;
    }

    nav.mega-menu .mega-menu-window > ul.main-category-tabs {
        -ms-overflow-style: none; /* for Internet Explorer, Edge */
        scrollbar-width: none; /* for Firefox */
        overflow-y: scroll;
    }

    nav.mega-menu .mega-menu-window ul.main-category-tabs > li {
        padding: 1vw;
        font-size: 3.2vw;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.25s ease-in-out;
        transform: translateY(0.15vw);
        border-radius: 0.2vw;
        border-bottom: 0.72vw solid transparent;
        position: static !important;
    }

    nav.mega-menu ul.mega-menu-sub-category li a figure {
        padding: 2.45vw;
        width: 15.5vw;
        height: 15.5vw;
        border-radius: 50%;
        border: 0.1vw solid #e9eaec;
        position: relative;
        transition: all 0.25s ease-in-out;
    }

    nav.mega-menu ul.mega-menu-sub-category li {
        width: 45%;
        height: 29vw;
        position: relative;
    }

    div#mega-menu-sub-category-cont {
        width: 70%;
        height: 150vw!important;
        position: absolute;
        top: 40vw;
        left: 0;
        overflow: auto;
    }

    nav.mega-menu ul.mega-menu-sub-category {
        padding: 1vw;
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        min-height: 95vw;
        overflow-y: auto;
        margin-top: 8vw;
        border: none !important;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between !important;
        align-items: center !important;
        column-gap: 0.25vw;
        row-gap: 1vw;
    }

    nav.mega-menu ul.mega-menu-sub-category {
        -ms-overflow-style: none;
        scrollbar-width: none;
        overflow-y: scroll;
    }

    nav.mega-menu ul.mega-menu-sub-category li a h3 {
        align-items: center !important;
        gap: 1.25vw;
        font-size: 3.3vw;
        font-weight: 600;
        transition: all 0.25s ease-in-out;
    }

    nav.mega-menu ul.mega-menu-sub-category li a h3 span {
        color: #afb6c5;
        font-weight: normal;
        font-size: 2.8vw;
        transition: all 0.25s ease-in-out;
    }

    nav.mega-menu ul.mega-menu-sub-category li a {
        gap: 1.4vw;
        padding: 1vw 0;
        flex-direction: column;
        align-items: center;
        justify-content: center !important;
    }
}
