.header-r__top {
    background-color: #535353;
    border-bottom: 2px solid #FDD300;
}

.header-r__bottom {
    background-color: #D9D9D9;
}

.checkout-r__counter {
    position: absolute;
    right: -10px;
    top: -4px;
    font-size: 10px;
    color: #fff;
    line-height: 13px;
    width: 22px;
    height: 12px;
    background-color: #E23F1F;
    border-radius: 3px;
    text-align: center;
}

.header-r-nav__icon {

}


.checkout-r {
    flex-direction: column;
}

.checkout-r__label {
    color: #FFFFFF;
    margin-left: 0;
}

.search-widget-r__button {
    background-color: #FDD300;
}

.header-r {
    z-index: 11;
}

.g-10 {
    gap: 10px;
}

.g-20 {
    gap: 20px;
}

.header-r__link .header-r-link {
    color: rgba(173, 173, 173, 1);
    text-decoration: none;
    transition: all .3s ease-in-out;
}

.header-r__link .header-r-link:hover {
    color: #FFFFFF;
}

.menu-button-r__open {

}

.menu-button-r__close {
    display: none;
}

.menu-button-r__wrapper {
    background-color: #FDD300;
    padding: 0 17px;
    border-radius: 4px;
}

.menu-button-r__wrapper.active {
    .menu-button-r__open {
        display: none;
    }

    .menu-button-r__close {
        display: block;
    }
}

.header-r__search .search-widget-r {
    width: 528px;
}

.header-r-phone {
    font-size: 16px;
    color: #FFFFFF;
}

.header-r-nav__items {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    margin-left: 40px;
}
.header-r-nav__item {
    color: rgba(173, 173, 173, 1);
    font-size: 16px;
    font-weight: 400;
    transition: all .3s ease-in-out;
}
.header-r-nav__item:hover {
    color: #FFFFFF;
}

.city-picker-r {
    border-bottom: 0;
}

.city-picker-r__icon {
    margin-left: 0;
    margin-right: 4px;

}

.city-picker-r__icon svg {
    color: rgba(173, 173, 173, 1);
    transition: all .3s ease-in-out;
}

.city-picker-r:hover {
    border-bottom: 0;
    .city-picker-r__label {
        color: #FFFFFF;
    }
    .city-picker-r__icon svg {
        color: #FFFFFF;
    }
}

.city-picker-r__label {
    color: rgba(173, 173, 173, 1);
    transition: all .3s ease-in-out;
}


.header-r-nav {
    justify-content: start;
}

.header-r-nav__link {
    flex: unset;
    padding: 0 10px;
    color: #000000;
}
.header-r-nav__link:hover {
    color: #FFFFFF;
    background-color: #7A7A7A;
}

.header-r__top {
    position: relative;
    padding: 0;
}

.header-r__top.active {
    .header-r-nav__items {
        opacity: 0;
        pointer-events: none;
    }
}

.header-r__top .container {
    padding: 20px 15px;
}

.header-menu {
    background-color: #525252;
    position: absolute;
    left: 0;
    height: 100vh;
    width: 100%;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: all .3s ease-in-out ;
}



.header-menu.active {
    transform: scaleY(100%);
    opacity: 1;
    pointer-events: auto;
}

.header-menu-item__header {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 15px;
    cursor: pointer;
}

.header-menu-item__title {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
}

.header-menu-item__link {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 400;
    transition: all .3s ease-in-out;
    line-height: 18px;
}
.header-menu-item__link:hover {
    color: #FDD300;
}

.header-r__checkout {
    display: inline-flex;
    align-items: end;
}

.header-menu-item__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.header-menu__items {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
}

.header-menu__row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.header-menu__col {
    display: flex;
    flex-direction: column;
    gap: 30px;
}



.header-menu__link {
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
}
.header-menu__link:hover {
    color: #FDD300;
}

.menu-close-button {
    background-color: transparent;
    color: #FFFFFF;
    border: 0;
    cursor: pointer;
}

.search-widget-r__button {
    color: #000000;
}


.hidden-links {
    display: none;
    flex-direction: column;
    gap: 10px;
}


.show-all-btn {
    cursor: pointer;
    color: #FFFFFF;
    display: inline-flex;
    transition: color 0.3s ease;
    position: relative;
    font-weight: 700;
    font-size: 14px;
}

.show-all-btn:before {
    position: absolute;
    top: 50%;
    left: 100px;
    transform: translateY(-50%);
    content: '';
    background-image: url("img/menu-icon-dropdown.svg");
    width: 11px;
    height: 7px;
    background-repeat: no-repeat;
    background-size: cover;
}

.header-menu-item__box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-widget-r__input {
    padding: 12px 105px 12px 12px;
    height: 45px;
}

.header-r__logo img{
    height: 45px;
}

.menu-button-r__label {
    font-family: Arial;
    font-size: 14px;
    font-weight: 900;
}

.header-r__phone {
    height: 21px;
}

.header-menu-item__icon {
    img {
        height: 31px;
    }
}




@media (max-width: 1319.98px) {
    .header-r__search .search-widget-r {
        width: 312px;
    }
    .header-r__logo img {
        width: 230px;
        height: 45px;
    }
    .header-r-nav__items {
        margin-left: 80px;
    }
}

@media (max-width: 991px) {
    .header-menu-item__dropdown {
        margin-top: 10px;
        margin-left: 35px;
    }
    .header-menu-item__icon {
        width: 27px;
        text-align: center;
        img {
            height: 22px;
        }
    }
    .header-r-nav__items {
        margin-left: 0;
    }
    .header-menu__col {
        gap: 20px;
    }
    .menu-button-r__label {
        display: none;
    }
    .menu-button-r__icon {
        margin-right: 0;
    }
    .menu-button-r__wrapper {
        padding: 0 12px;
    }

    .header-menu-item__dropdown {
        display: none;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease-in-out;
    }

    .header-menu-item__dropdown.active {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

    .header-menu-item__header {
       position: relative;
        margin-bottom: 0;
    }

    .header-menu-item__header:before {
        position: absolute;
        top: 50%;
        right: -20px;
        transform: translateY(-50%);
        content: '';
        background-image: url("img/menu-icon-dropdown.svg");
        width: 11px;
        height: 7px;
        background-repeat: no-repeat;
        background-size: cover;
    }
    .header-menu-item__header.active:before {
        transform: translateY(-50%) rotate(180deg) ;
    }
    .header-menu__items {
        flex-direction: column;
        max-height: calc(100vh - 220px);
        gap: 15px;
    }
    .header-menu__row {
        grid-template-columns: repeat(1, 1fr);
        gap: 17px;
    }
}

@media (max-width: 767px) {
    .header-menu__items {
        max-height: calc(100vh - 180px);
    }
    .header-r__logo img {
        width: 126px;
        height: 25px;
    }
    .search-widget-r__input {
        height: 24px;
        border-radius: 4px;
        padding: 12px 105px 12px 10px;
    }
    .menu-button-r__icon img {
        width: 14px;
        height: 14px;
    }
    .menu-button-r__wrapper {
        padding: 0 7px;
    }
    .header-r__search .search-widget-r {
        width: auto;
    }
    .checkout-r__icon svg {
        width: 27px;
        height: 24px;
    }

    .checkout-r__label {
        display: none;
    }
    .search-widget-r__button {
        border-radius: 0 4px 4px 0;
        width: 30px;
    }
    .search-widget-r__icon {
        left: 0;
        width: 30px;
    }
    .search-widget-r__icon img {
        width: 15px;
        height: 15px;
    }
    .g-20 {
        gap: 10px;
    }
}

@media (max-width: 574.98px) {
    .header-r__top {
        display: block;
    }
    .header-r__search .search-widget-r {
        width: 108px;
    }
    .search-widget-r__input {
        padding: 12px 30px 12px 10px;
    }
}
