.categories {
    display: flex;
}

.categories__aria {
    position: fixed;
    z-index: 100;
    width: 100%;
    height: 100%;
    left: -100%;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: #000;
    opacity: 0;
    transition: opacity .5s ease;
}

.categories__container._active+.categories__aria {
    left: 0;
    opacity: 0.7;
}

.categories span {
    margin-left: 15px;
}

.categories__container {
    position: fixed;
    display: block;
    z-index: 9999;
    left: 0;
    top: 0;
    transform: translateX(-110%);
    padding: 90px 0 15px;
    height: 100%;
    width: 100%;
    max-width: 500px;
    background-color: #fff;
    overflow: auto;
    transition: all 0.7s ease;
}

.categories__container._active {
    transform: translateX(0);
}

.categories__close {
    position: absolute;
    z-index: 5;
    top: 0;
    right: 0;
    padding: 30px;
}

.categories__close svg {
    width: 25px;
    height: 25px;
    fill: var(--main-color);
    cursor: pointer;
}

.categories__button {
    position: absolute;
    bottom: 73px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 700;
    padding: 0 20px;
    text-transform: uppercase;
    border-radius: 5px 0 0 5px;
    font-size: 14px;
    transition: all .5s ease;
}

.categories__button span {
    display: none;
}

.categories__button .fa {
    transition: all .5s ease;
}

.categories__button:hover .fa {
    transform: rotate(180deg);
}

.categories__list {
    font-size: 14px;
}

.categories__item {
    position: relative;
    padding: 15px 45px 15px 30px;
    border-top: 1px solid #e8e8e8;
}

.categories__item:hover {
    background-color: #e8e8e8;
}

.categories__item:last-child {
    border-bottom: 1px solid #e8e8e8;
}

.categories__title {
    display: flex;
    align-items: center;
}

.categories__icon {
    margin-right: 15px;
    width: 35px;
    height: 35px;
}

.categories__icon img {
    object-fit: contain;
    object-position: center;
    max-width: 100%;
    width: 100%;
    height: 100%;
}

.categories__child-item {
    padding: 10px;
}

.categories__link:hover {
    color: var(--main-color);
}

.categories__subcategory {
    padding-top: 15px;
}

.categories__arrow {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    height: 35px;
    width: 65px;
    right: 0;
    top: 15px;
    box-sizing: content-box;
    padding-left: 150px;
    cursor: pointer;
}

.categories__arrow_top {
    top: 2px;
}

.categories__arrow svg {
    width: 17px;
    height: 12px;
}

.categories__arrow:hover svg {
    fill: var(--main-color);
}

.categories__arrow._active {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
    padding-left: 0;
    padding-right: 150px;
}

.categories__dropdown {
    display: none;
}

@media (min-width: 768px) {
    .categories__list {
        font-size: 14px;
    }
}

@media (min-width: 1200px) {
    .categories__child-item {
        padding: 15px 30px;
    }
    .categories__arrow_top {
        top: 7px;
    }
}

@media (min-width: 1080px) {
    .categories__button {
        bottom: 50%;
        transform: translateY(50%);
    }
    .categories__item {
        padding: 15px 60px 15px 30px;
    }
}

@media (min-width: 1200px) {
    .categories__button {
        position: relative;
        top: 0;
        transform: none;
        left: 0;
        background-color: var(--main-color);
        color: #fff;
        padding: 0 30px;
    }
    .categories__button:hover {
        background-color: #000;
    }
    .categories__button span {
        display: block;
    }
}