.categories_menu {
    max-height: 350px;
    box-sizing: border-box;
    grid-area: categories_menu;
    background: var(--color-bg-box);
    border: var(--color-box-border);
    box-shadow: var(--box-shadow-externa);
    padding: 5px;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}
.categories_menu a:hover, a.grand_category.platform_item:hover, a.grand_category.type_category_no_childrens:hover {
    background: #d7d7d7;
}
a.grand_category img {
    height: 14px;
    width: 14px;
}

.cat_menu_item.depth-0 {
    display: flex;
    width: 100%;
    gap: 5px;
    flex-wrap: wrap;
    background: var(--color-bg-box-secondary);
    box-shadow: var(--box-shadow-interna);
    padding: 5px;
    border-radius: 8px;
}
.cat_menu_item.depth-1 {
    box-sizing: border-box;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.cat_menu_item a {
    display: flex;
    padding: 4px;
    gap: 5px;
    width: 100%;
    color: var(--color-text-main);
    font-weight: 600;
    border-radius: 8px;
    box-sizing: border-box;
    align-items: flex-end;
    flex-wrap: wrap;
}
a.grand_category {
    width: 100%;
}


a.grand_category.platform_item, a.grand_category.type_category_no_childrens {
    width: auto;
    border-radius: 8px;
    border-color: black;
    background: rgb(237 237 237);
}
a.grand_category.no_childrens {
    border: solid 1px;
    border-color: black;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: smaller;
}


.current_category {
    background: #a9a9a961!important;
}




.icon_button_categories_menu {
    font-size: large;
}
.show_button_categories_menu {
    font-size: medium;
    font-weight: 700;
}

#overlay_button_categories_menu.active {
    display: block;
}
#overlay_button_categories_menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
  }


  .categories_menu_content {
    display: flex;
    border-radius: 8px;
    gap: 5px;
    flex-wrap: wrap;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: #00aaff transparent;
    max-height: 300px;
    overflow: hidden;
    overflow-y: scroll;
}


@media (max-width: 1000px) {
    .categories_menu {
        display: none;
        position: absolute;
        top: 53px;
        max-height: 300px;
    }
    button.show_button_categories_menu {
        display: flex;
        gap: 5px;
        width: 100%;
        height: 35px;
        background: var(--color-bg-box);
        border-radius: 8px;
        align-items: center;
        justify-content: center;
        border: 0px solid #f0f0f000;
        cursor: pointer;
        margin: 5px;
}
.categories_menu_content {
    max-height: 250px;
}
.button_categories_menu {
    grid-area: categories_menu;
    display: flex;
    background: var(--color-bg-box);
    box-shadow: var(--box-shadow-externa);
    border-radius: 8px;
    height: 44px;
    align-items: center;
    justify-content: center;
}
button.show_button_categories_menu:hover {
    text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
    position: relative;
    border-radius: 8px;
    box-shadow: var(--box-shadow-interna);
}
button.show_button_categories_menu:focus {
    box-shadow: var(--box-shadow-interna);
    background-color: var(--color-bg-box-secondary-1);
}
}

@media (min-width: 1000px) {
    .button_categories_menu {
    display: none;
    grid-area: categories_menu;
    }
}

.categories_menu_header {
    color: var(--color-text-main);
    font-weight: 600;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    padding-bottom: 4px;
}

.icon_category_menu {
    border-radius: 6px;
    height: 29px;
    justify-content: center;
    width: 29px;
    display: flex;
    align-items: center;
    margin-right: 8px;
    color: rgb(239, 248, 253);
    text-align: center;
    box-sizing: border-box;
    background-color: var(--color-bg-box-subsecondary);
    border: var(--color-box-border-subsecondary);
    border-top-color: var(--color-box-border-top-subsecondary);
    box-shadow: var(--box-shadow-externa-subsecondary);
    background-image: var(--bg-image-gradient);
}