body {
    height: 100vh;

    background-color: #e3e3e3;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

ul {
    padding: 0;
    margin: 0;
}

.inputs {
    margin-top: 4px;
    height: 46px;
    position: relative;
    width: 74%;
}

.input-item {
    font-size: 1.3em;
}

.underlayer {
    z-index: 400;
    display: none;
    height: 100vh;
    width: 100vw;
    position: fixed;
    background-color: rgba(0, 0, 0, .4);
    transition: all .3s ease-in-out;
}

.underlayer.active {
    display: block;
}

.mobile__inputs {
    position: fixed;
    top: 220px;
    right: -775px;
    z-index: 500;

    height: 75px;
    background-color: #535353;
    width: 800px;
    display: none;

    transition: all .3s ease-in-out;
}

.mobile__inputs.active {
    right: calc(100vw - 845px);
}

.mobile__inputs_picture {
    position: absolute;
    top: 0;
    left: -40px;
    background-color: #535353;
    border-radius: 50%;
    height: 75px;
    width: 75px;
}

.mobile__inputs_img {
    margin-top: 16px;
    margin-left: 17px;
    height: 40px;
}

.mobile__inputs-search {
    position: absolute;
    top: 15px;
    left: 17px;
    width: calc(100vw - 4em);
}

.navbar {
    position: fixed;
    z-index: 100;
    width: 100vw;
    padding-right: 20px;
    background: rgba(0, 0, 0, 0.7);
}

.fix__height {
    height: 50px;
}

.nav__wrapper {
    width: 100%;
    height: 66px;
}

.navbar__inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.nav-link {
    cursor: pointer;
    font-size: 1.3rem;
    border-radius: 0;
    transition: 0.3s;
}

.nav-link.login {
    margin-top: 3px;
}

.nav-link:hover {
    background-color: #37ac37;
}

.logo img {
    height: 40px;
    margin-top: 10px;
}

.right__mobile-nav {
    display: flex;
}

.burger__menu,
.login__mobile {
    color: #fff;
    font-size: 34px;
    display: none;
    border-bottom: 4px solid rgba(0, 0, 0, 0);
    transition: 0.3s;
}

.geo__menu {
    position: fixed;
    top: 15px;
    right: 55px;
    color: #fff;
    font-size: 26px;
    display: none;

    border-bottom: 4px solid rgba(0, 0, 0, 0);
    transition: 0.3s;
}

.burger__menu:hover,
.login__mobile:hover,
.geo__menu:hover {
    color: #ddfcdd;
    border-bottom: 4px solid #50ec50;
}

.modal__active {
    min-width: 170px;
    margin: 0 1px;
    border-top: 6px solid #37ac37;
    background-color: #37ac37;
    transition: 0.3s;
}

.modal__in-active {
    min-width: 170px;
    margin: 0 1px;
    margin-top: 6px;
    background-color: #afafaf;
    transition: 0.3s;
}

.modal__in-active:hover {
    background-color: #3b833b;
}

.sidebar__modal__btn {
    background-color: #37ac37;
    padding: 10px 30px;
    margin: 5px 0;
    font-size: 1.4rem;
    color: #ffffff;
    text-align: center;

    cursor: pointer;
}


.geo__menu-modal {
    margin: 0;
    height: 45px;
}

/* MODAL CITIES */
#chosen__city {
    padding-top: 0.2rem;
    padding-left: 0.5rem;
    font-size: 1.3rem;
}

.modal__cities ul {
    list-style: none;

    padding: 0;
    margin: 0;
}

.modal__cities ul li {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.modal__cities ul li a {
    width: 100%;
    font-size: 1.2rem;
    padding-left: 30px;
    text-decoration: none;
    color: #37ac37;
    border-bottom: 4px solid rgba(0, 0, 0, 0);
    transition: 0.3s;
}

.modal__cities ul li a:hover,
.modal__cities ul li a:focus {
    background-color: #37ac37;
    color: #fff;
}

.catalog__items > * {
    display: none;
}

.catalog__item {
    font-size: 12px;
    padding-top: 1em;
    text-align: center;
}

.catalog__item i {
    font-size: 52px;
}

.catalog__item a {
    text-decoration: none;
    color: rgb(0, 0, 0);
    transition: 0.3s;
}

.full__catalog {
    width: 100%;
    height: 65px;
    margin: 25px 0 0;
    background-color: #37ac37;
    display: flex;
    justify-content: center;
    align-items: center;
}

.full__catalog a {
    color: #fff;
    font-size: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 0.4em;
}

.full__catalog a span {
    padding-right: 1rem;
}

.full__catalog-mobile a {
    font-size: 25px;
}

.full__catalog-mobile a i {
    font-size: 30px;
}

/* ===== MAIN ===== */

.main__content {
    padding-top: 78px;
    display: flex;
}

.main__content-left {
    width: 28%;
}

.main__content-right {
    width: 100%;
}

.search__results {
    background-color: #ffffff;
    margin-left: 12px;
    margin-bottom: 12px;
}

.sidebar {
    background-color: #ffffff;
    margin-bottom: 12px;
    padding: 10px 15px;
}

.filters {
    background-color: #ffffff;
    margin-bottom: 12px;
}

/* ===== SEARCH RESULTS ===== */

.search__categories {
    padding: 10px 15px;
    border-bottom: 2px solid #e3e3e3;
}

.search__categories ul {
    list-style: none;
    display: flex;

    flex-wrap: wrap;
}

.search__categories__link {
    color: #0085b9;
    text-decoration: rgba(0, 0, 0, 0) underline;

    transition: all .3s ease-in-out;
}

.search__categories__link:hover {
    color: #026992;
    text-decoration: underline;
}

.bi-chevron-right {
    margin-left: 7px;
    margin-right: 7px;
}

.search__current {
    padding: 10px 15px;
}

/* ===== SIDEBAR ===== */

.sidebar__title__current {
    color: #37ac37;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid #e3e3e3;
}

.sidebar__categories {
    padding: 3px 10px 0 20px;
}

.sidebar__categories ul li {
    padding-bottom: 6px;
}

.sidebar__categories ul li a {
    text-decoration: rgba(0, 0, 0, 0) underline;
    color: inherit;


    transition: all .3s ease-in-out;
}

.sidebar__categories ul li a:hover {
    color: #37ac37;
    text-decoration: underline;
}

/* ===== FILTERS ===== */

.filters {
    padding: 10px 15px 20px 15px;
}

.bi-gear-fill {
    color: #37ac37;
    margin-right: 10px;
}

.filters__settings {
    padding-bottom: 20px;
    border-bottom: 2px solid #e3e3e3;
}

.filters__settings_price {
    margin-top: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.filters__additional {
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e3e3e3;
}

.filters__additional a {
    text-decoration: rgba(0, 0, 0, 0) underline;
    color: #37ac37;

    transition: all .3s ease-in-out;
}

.filters__additional a:hover {
    color: #37ac37;
    text-decoration: underline;
}

.bi-x {
    margin-left: 5px;
}

/* ===== CATEGORIES ===== */

.categories {
    background-color: #e3e3e3;
    margin-left: 2px;
    margin-bottom: 12px;

    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: start;
}

.categories__card {
    /*height: 280px;*/
    width: 220px;
    /*max-width: 100%;*/
    background-color: #ffffff;
    margin-bottom: 10px;
    margin-left: 10px;
    flex-grow: 1;

    cursor: pointer;
    transition: all .2s ease-in-out;
}

.categories__card:hover {
    transform: translateY(-5px);
}


.categories__card-figure {
    position: relative;
    border-bottom: 2px solid #e3e3e3;
    height: 200px;
}

.categories__card-img {
    height: 200px;
    padding: 10px 15px;
    margin-left: auto;
    margin-right: auto;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
}

.categories__card_name {
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
}

/* ===== GOODS ===== */

.goods__card {
    height: 360px;
    width: 220px;
    max-width: 100%;
    background-color: #ffffff;
    margin-bottom: 10px;
    margin-left: 10px;
    flex-grow: 1;
}

.goods__card_title {
    padding: 5px 5px;
    border-bottom: 2px solid #e3e3e3;
    font-size: 12px;
    position: relative;
    display: flex;
    justify-content: center;
}

.goods__card_title-city {
    background-color: #ececec;
    border-radius: 2px;
    padding: 0 2px;
    margin-right: 5px;
    font-weight: 600;
    position: absolute;
    left: 5px;
}

.goods__card-figure {
    position: relative;
    border-bottom: 2px solid #e3e3e3;
    height: 200px;
}

.goods__card-img {
    height: 200px;
    padding: 10px 15px;
    margin-left: auto;
    margin-right: auto;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
}

.goods__card_name {
    padding: 10px;
}

.goods__card_name a {
    color: inherit;
    text-decoration: none;
}

.goods__card_order {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.goods__card_order-price {
    font-weight: 700;
}

.goods__card_order-toShop {
    color: #ffffff;
    text-decoration: none;
    background-color: #37ac37;
    padding: 5px 10px;
    font-size: 14px;
    border: 2px solid #37ac37;
    transition: all .3s ease-in-out;
}

.goods__card_order-toShop:hover {
    color: #37ac37;
    background-color: #ffffff;
}


/* ===== POPULAR ===== */

.popular {
    background-color: #e3e3e3;
    margin-top: -10px;
    margin-left: 2px;
    margin-bottom: 12px;

    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: start;
}

.popular__title {
    width: 100%;
    margin-left: 10px;
    margin-bottom: 12px;
    padding: 10px;
    font-size: 20px;
    font-weight: bold;
    background: #ffffff;
}

/* ===== ADDITIONAL ===== */

.additional__info {
    background: #ffffff;
    padding: 10px;
    margin-top: -10px;
    margin-left: 10px;
    margin-bottom: 10px;

    font-size: 18px;
    font-weight: bold;
}

.additional__info_body {
    width: 100%;
    height: 350px;
}

/* ===== FOOTER ===== */

.footer {
    padding: 0;
    margin: 0;
    width: 100%;
}

.footer,
.burger__footer {
    font-size: 1.2rem;
    background-color: rgb(165, 165, 165);
}

.burger__footer {
    padding: 1em 0;
}

.footer-links ul {
    display: flex;
    list-style: none;
    justify-content: center;
    align-items: center;

    padding: 0;
    margin: 0;
}

.burger__footer-links ul {
    list-style: none;

    padding: 0;
    margin: 0;
}

.footer-links ul li {
    padding: 7px 0;
    display: flex;
    align-items: center;
    text-align: center;
}

.burger__footer-links ul li a {
    margin: 0.5rem 2rem;
}

.footer-links ul li a {
    margin: 0 1rem;
}

.footer-links ul li a,
.burger__footer-links ul li a,
.footer a {
    text-decoration: none;
    color: #fefefe;
    border-bottom: 4px solid rgba(0, 0, 0, 0);
    transition: 0.3s;
}

.footer a {
    color: rgb(165, 165, 165);
}

.footer-links ul li a:hover,
.burger__footer-links ul li a:hover,
.footer a:hover {
    color: #ddfcdd;
    border-bottom: 4px solid #50ec50;
}

.copyright {
    color: rgb(165, 165, 165);
    padding: 8px 0 1px;
    background-color: rgba(0, 0, 0, 0.5);
}

@media (max-width: 1300px) {
    .inputs {
        width: 68%;
    }
}

@media (max-width: 1104px) {
    .inputs {
        width: 62%;
    }
}

@media (max-width: 991px) {
    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
    }

    .login__mobile {
        position: fixed;
        display: block;
        top: 8px;
        right: 12px;
    }

    .login {
        display: none;
    }

    .inputs {
        width: 70%;
    }

    .footer {
        font-size: 16px;
    }
}


@media screen and (max-width: 900px) {
    .inputs {
        width: 64%;
    }
}

@media screen and (max-width: 800px) {
    .inputs {
        width: 60%;
    }
}



@media (max-width: 778px) {
    .main__content-left {
        display: none;
    }

    .main__container {
        padding-left: 0;
    }

    .footer {
        position: relative;
    }

    .logo,
    .nav__wrapper,
    .city__input {
        display: none;
    }

    .burger__menu,
    .geo__menu,
    .catalog__items > * {
        display: flex;
    }

    body {
        background-position: top;
        background-size: 210% auto;

        padding-bottom: 0;
    }

    .footer-links ul {
        display: none;
    }

    .catalog {
        display: none;
    }

    .navbar__inner {
        flex-direction: row;
    }

    .modal__in-active,
    .modal__active {
        min-width: 90px;
    }
    .advantage {
        margin-top: 0;
    }

    .catalog__items {
        background-color: rgba(255, 255, 255, 0.9);
    }

    .fix__height {
        padding-top: 10px;
    }

    .burger__menu {
        margin-bottom: 8px;
    }

    .logo {
        display: flex;
        position: absolute;
        top: 2px;
        left: 70px;
    }

    .filters {
        padding-bottom: 0;
    }

    .sidebar {
        padding-top: 0;
    }

    .full__catalog {
        margin: 0;
    }

    .mobile__inputs {
        display: block;
    }
}


@media (max-width: 576px) {
    .fix__height {
        padding-top: 0px;
    }
}

@media (max-width: 520px) {
    .logo {
        display: none;
    }
}
