@media screen and (max-width: 1620px) {

}

@media screen and (max-width: 1200px) {
    .product {
        margin: 0 0 20px 0;
    }

    .main-product-box{
        justify-content: space-evenly;
        margin: auto;
    }

    .cart__items {
        width:58%;
    }
}

/*lg*/
@media screen and (min-width: 1199px) {

}

/* < md*/
@media screen and (max-width: 1199px) {
    .header_bottom ul {
        justify-content: center;
    }

    .products {
        justify-content: center;
    }

    #catName,
    #empty-cart {
        text-align: center;
        padding: 0;
    }

    .cart-container .cart {
        width: 100%;
    }

    .cart-container .cart-form {
        width: 100%;
    }

    .product-box {
        justify-content: space-evenly;
    }

    .cart__form {
        width:45%;
    }
}

/* > sm*/
@media screen and (min-width: 992px) {

}

/*< sm*/
@media screen and (max-width: 991px) {
    .header_info h1 {
        font-size: 18px;
    }

    .header_menu a {
        margin: 0 15px;
    }

    #contacts {
        justify-content: center;
    }

    #contacts #image {
        margin-right: 0;
    }

    .carousel__controls__prev {
        z-index: 200;
        right: auto;
        left: 5px;
    }

    .carousel__controls__prev img {
        width: 35px;
    }

    .carousel__controls__next {
        z-index: 200;
        left: auto;
        right: 5px;
    }

    .carousel__controls__next img {
        width: 35px;
    }

    .cart {
        flex-wrap: wrap;
    }

    .cart__items {
        width:100%;
        margin-right: 0;
    }

    .cart__form {
        width:100%;
        margin-bottom: 30px;
    }

    .order {
        width:auto;
    }
}

/*sm*/
@media screen and (min-width: 768px) and (max-width: 991px) {

}


/*desktop*/
@media screen and (min-width: 768px) {
    .header_info.desc,
    .header_menu {
        display: block;
    }

    #mobile-navigation-btn,
    #mobile-navigation {
        display: none;
    }
}

/*mobile*/
@media screen and (max-width: 767px) {

    #content{
        margin-top: 130px;
    }

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 24px;
    }

    /*h3 {
        font-size: 18px;
    }*/

    .button {
        font-size: 15px;
    }

    header {
        height: auto;
    }

    header .header-top {
        padding: 5px 0;
        justify-content: space-between;
    }

    .header_info {
        margin: 10px 0;
    }

    .header_info h1 {
        font-family: inherit !important;
        font-weight: bold;
    }

    .header_info span {
        font-weight: bold;
        color: var(--c-red);
    }

    #header_cart span {
        font-size: 12px;
    }

    #header_logo {
        width: 70px;
    }

    #h_logo{
        margin: 0;
    }

    #no_photo{
        width: 100px
    }

    .header_info.desc,
    .header_menu {
        display: none;
    }

    #header_cart {
        width: auto;
    }

    #header_cart img {
        width: 25px;
    }

    .header_bottom {
        padding-top: 5px;
        padding-bottom: 5px;
        top: 80px;
    }

    .header_bottom ul {
        display: flex;
        overflow: auto;
        scroll-snap-type: x mandatory;
        flex-wrap: nowrap;
        justify-content: space-between;
        margin-bottom: 0;
    }

    .header_bottom ul li {
        margin: 4px 10px;
        height: 32px;
        font-weight: 500;
        display: flex;
        align-items: center;
        text-align: center;
        flex: 0 0 auto;
        width: auto;
    }

    .mini_cart a img{
        width: 30px;
    }

    #mobile-navigation-btn {
        display: block;
    }

    .container.catalog .title {
        margin-top: 47px;
    }

    .product-box {
        flex-direction: row;
        justify-content: space-around !important;
    }

    .product {
        box-sizing: border-box;
        position: relative;
        height: 370px;
    }

    .product .info .name h3{
        font-size: 20px;
        height: 66px;
    }

    .product .info .bottom{
        flex-wrap: wrap;
    }

    .product .info .bottom .cart,
    .product .info .bottom .price
    {
        width: 100%;
    }

    .product,
    .last-product {
        width: 150px;
        margin: 0;
    }

    .product .info .price {
        margin-bottom: 10px;
    }

    .product .cart {
        float: left;
        padding-right: 0;
    }

    .product .image {
        height: auto;
        width: 100%;
        max-height: 106px;
        min-height: 86px;
    }

    .product .image.no-image {
        border-top: 2px var(--c-beige) solid;
        border-left: 2px var(--c-beige) solid;
        border-right: 2px var(--c-beige) solid;
    }

    .product .image.no-image img {
        width: 70%;
    }

    .product .image img {
        width: 100%;
        text-align: center;
    }

    .product .info {
        margin-bottom: 12px;
        height: 140px;
    }

    #footer {
        padding: 15px 0;
    }

    .footer-inner {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-inner .footer_logo {
        margin-right: 0;
        width: 100px;
        justify-content: center;
    }

    .footer_contacts .block {
        justify-content: center;
    }

    .footer_contacts {
        margin-right: 0;
        display: flex;
        flex-wrap: wrap;
    }

    .footer_contacts .block {
        font-size: 12px;
        width: 100%;
    }

    .catalog-dishes {
        flex-wrap: wrap;
    }

    .catalog-dishes .categories,
    .catalog-dishes .dishes {
        width: 100%;
    }

    .title {
        font-size: 30px;
    }

    .product__meta__cart__input {
        margin: 0 5px;
    }

    .product__meta__cart__quant
    {
        font-size: 25px;
    }

    #up.product__meta__cart__quant,
    #down.product__meta__cart__quant
    {
        margin: 0;
    }

    .product.mobile-catalog-product #up.product__meta__cart__quant{
        margin-left: 2px;
    }

    .product.mobile-catalog-product #down.product__meta__cart__quant{
        margin-right: 2px;
    }

    .md-modal-msg {
        position: fixed;
        top: 50%;
        left: 50%;
        width: 85%;
        height: auto;
        z-index: 2000;
        visibility: hidden;

        -webkit-transform: translateX(-50%) translateY(-50%);
        -moz-transform: translateX(-50%) translateY(-50%);
        -ms-transform: translateX(-50%) translateY(-50%);
        transform: translateX(-50%) translateY(-50%);
    }

    .md-modal {
        position: fixed;
        top: 50%;
        left: 50%;
        width: 95%;
        height: auto;
        z-index: 2000;
        visibility: hidden;
        -webkit-transform: translateX(-50%) translateY(-50%);
        -moz-transform: translateX(-50%) translateY(-50%);
        -ms-transform: translateX(-50%) translateY(-50%);
        transform: translateX(-50%) translateY(-50%);
    }

    .md-overlay.md-dish{
        background: none;
    }

    .md-modal.md-dish .md-content{
        height: 100%;
    }

    .md-modal.md-dish .md-content .md-close{
        left: 10px;
        top: 10px;
        background: none;
        border-radius: 0;
    }

    .md-modal.cart-modal {
        width: 45%;
        min-width: 660px;
        position: absolute;
        top: 60%;
    }

    .md-show .info {
        background: white;
        font-size: 18px;
        padding: 20px;
    }
    /* Content styles */
    .md-content {
        color: #000;
        background: #fff;
        position: relative;
        border-radius: 3px;
        margin: 0 auto;
    }

    /* Конnтнт модального окна */
    #about-pizza #thumbs {
        position: absolute;
        top: 34px;
        right: 21px;
    }
    #about-pizza #thumbs img {
        width: 98px;
        height: 77px;
        margin-bottom: 18px;
        border: 4px solid #fff;
    }

    #about-pizza #thumbs a:hover img,
    #about-pizza #thumbs a:focus img,
    #about-pizza #thumbs a.active img {
        border-color: #faca2f;
    }
    #about-pizza .product-img {
        text-align: center;
        margin-bottom: 20px;
    }
    #about-pizza .product-img img,
    #about-pizza .title-img img {
        max-width: 60%;
        position: relative;
        top:10px;
        margin-left: -1px;
        border-radius: 4px 4px 0 0;
    }

    .cart__items__item{
        right: 1rem;
        position: relative;
    }

    .cart__items__item a.del{
        display: none;
    }

    .cart__items__item__count {
        width: auto;
    }

    .cart__items__item__count input{
        width: 30px;
    }

    .cart__items__item__desc {
        float: left;
        width: 60%;
        padding: 0;
    }

    .cart__items__item__photo {
        width: 70px;
        min-height: 50px;
        margin-right: 8px;
        float: left;
    }

    .cart__items__item__price {
        width: auto;
        padding-left: 20px;
    }

    .cart__items__item__price p{
        font-size: 15px;
    }

    .cart__form__inner{
        padding: 20px 10px;
    }

    .main-product-box {
        justify-content: center;
    }

    .main-product-box  .product{
        margin: 0 5px;
    }

    .carousel__controls{
        width: 80px;
        left: 0;
        bottom: -30px;
        top: unset;
        height: 28px;
    }

    .carousel__controls__prev img,
    .carousel__controls__next img
    {
        width: 25px;
    }

    .order {
        padding: 20px 0;
    }

    .order h1 {
        font-size: 24px;
    }

    .order__items__item__photo{
        width: 110px;
    }

    .order__items__item__desc{
        width: 35%;
    }

    .order__items__item__desc h3 {
        font-size: 14px;
    }

    .order__items__item{
        flex-wrap: wrap;
    }

    .bottom-privacy .privacy-inner{
        flex-wrap: wrap;
    }

    .bottom-privacy .privacy-inner p{
        font-size: 12px;
    }

    /*поиск*/
    #li-search{
        display: none;
    }

    /*поиск*/
    #mobile-navigation #li-search-mob{
        position: relative;
        margin: 20px 0;
    }

    #mobile-navigation #li-search-mob i{
        font-size: 18px;
        color: black;
        position: absolute;
        top: 10px;
        left: 10px;
    }

    #mobile-navigation #li-search-mob input{
        background-color: #fff;
        height: 35px;
        width: 100%;
        padding: 0 50px 0 40px;
        font-size: 16px;
        color: #2e2e33;
        box-sizing: border-box;
        border: 1px black solid;
    }

    #mobile-navigation #li-search-mob input::placeholder{
        font-size: 16px;
        color: black;
    }
}
