@media only screen and (max-width: 1279px) {
  .wrap {
    width: 720px;
  }
  .main {
    margin-bottom: 70px;
  }
  .main .main-top .wrap .header {
    min-height: 70px;
  }
  .main .main-top .wrap .header .top {
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .main .main-top .wrap .header .top .logo {
    display: flex;
    justify-content: flex-start;
  }
  .main .main-top .wrap .header .top .logo span {
    margin-left: 5px;
  }
  .main .main-top .wrap .header .top .sep {
    display: block;
    flex: 1;
  }
  .main .main-top .wrap .header .top .header-search-form {
    width: 100%;
    flex: none;
    order: 2;
    margin-left: 0;
    margin-top: 20px;
    display: none;
  }
  .main .main-top .wrap .header .top .search-mobile {
    display: block;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    background: #000;
    border-radius: 5px;
    margin-left: 30px;
  }
  .main .main-top .wrap .header .top .search-mobile:hover {
    background: #ffd700;
    color: #fff;
  }
  .main .main-top .wrap .header .top .cabinet .cabinet-menu {
    top: calc(100% + 20px);
  }
  .content .cart-page .cart-page-content .cart-content {
    padding-top: 0;
  }
  .content .cart-page .cart-page-content .cart-content .cart-table .table-header {
    padding: 10px;
  }
  .content .cart-page .cart-page-content .cart-content .cart-table .table-rows .table-row {
    padding: 10px;
  }
  .content .categories {
    margin-top: 50px;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
  .content .categories .category {
    padding: 20px;
  }
  .content .categories .category .image {
    height: 140px;
    margin-bottom: 20px;
  }
  .content .categories .category .image img {
    max-width: 100%;
    max-height: 100%;
  }
  .content .categories .category .name {
    font-size: 16px;
  }
  .content .category-page .sidebar {
    display: none;
  }
  .content .category-page .category-page-mobile-bar {
    display: flex;
    justify-content: space-between;
    width: 100%;
    flex: none;
  }
  .content .category-page .category-page-mobile-bar h1 {
    text-align: center;
  }
  .content .category-page .category-page-mobile-bar a {
    font-size: 16px;
    line-height: 32px;
  }
  .content .category-page .category-page-mobile-bar a.mobile-bar-categories i {
    margin-right: 10px;
  }
  .content .category-page .category-page-mobile-bar a.mobile-bar-filters i {
    margin-left: 10px;
  }
  .content .category-page .category-page-mobile-bar a:hover {
    color: #ffd700;
  }
  .content .category-page .category-content h1 {
    display: none;
  }
  .content .category-page .category-content .products-actions {
    margin-top: 25px;
    justify-content: space-between;
  }
  .content .category-page .category-content .products-actions .mobile-bar-filters {
    display: block;
    line-height: 40px;
    padding: 0 15px;
    background: #000;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.2s;
  }
  .content .category-page .category-content .products-actions .mobile-bar-filters i {
    margin-right: 10px;
  }
  .content .category-page .category-content .products-actions .mobile-bar-filters:hover {
    background: #ffd700;
    color: #000;
  }
  footer {
    margin-top: 30px;
  }
  .modal .modal-wrap .modal-block {
    display: none;
    max-height: 90vh;
    overflow: scroll;
  }
  .modal .modal-wrap .modal-block.modal-cart {
    width: 720px;
  }
  .modal .modal-wrap .modal-block.modal-cart .modal-content .modal-form {
    height: auto;
  }
  .modal .modal-wrap .modal-block.modal-cart .modal-content .modal-form .product-image-gallery {
    display: none;
  }
  .modal .modal-wrap .modal-block.modal-cart .modal-content .modal-form .options {
    height: auto;
    width: 100%;
  }
  .modal .modal-wrap .modal-block.modal-cart .modal-content .modal-form .options .options-table {
    width: 630px;
  }
  .modal .modal-wrap .modal-block.modal-cart .modal-content .modal-form .options .options-table .table-rows {
    height: 100%;
  }
  .modal .modal-sidebar-filters {
    width: 268px;
    position: absolute;
    right: -268px;
    background: #fff;
    height: calc(100% + 31px);
    box-sizing: border-box;
    margin-right: 0;
    margin-top: -31px;
  }
  .modal .modal-sidebar-filters.visible {
    display: block;
  }
  .modal .modal-sidebar-filters .sidebar {
    margin-right: 0;
  }
  .modal .modal-sidebar-filters .sidebar-menu {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}
@media only screen and (max-width: 767px) {
  .wrap {
    width: 440px;
  }
  .main .main-top .wrap .header .top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
  }
  .main .main-top .wrap .header .top .logo {
    margin-bottom: 25px;
    justify-content: center;
    order: 1;
  }
  .main .main-top .wrap .header .top .search-mobile {
    order: 3;
    margin-left: 0;
  }
  .main .main-top .wrap .header .top .cabinet {
    order: 4;
  }
  .main .main-top .wrap .header .top .cabinet .cabinet-button {
    margin-left: 10px;
  }
  .main .main-top .wrap .header .top .cart {
    margin-left: 0;
    order: 6;
  }
  .main .main-top .wrap .header .top .sep {
    order: 2;
  }
  .main .main-top .wrap .header .top .sep-mobile {
    display: block;
    flex: 1;
    order: 5;
    min-width: 30%;
  }
  .main .main-top .wrap .header .top .header-search-form {
    order: 7;
  }
  .content.mainpage {
    margin-top: 50px;
  }
  .content .category-page .category-content .products-actions {
    flex-direction: column;
    overflow: wrap;
    align-items: flex-end;
  }
  .content .category-page .category-content .products-actions .mobile-bar-filters {
    margin-bottom: 20px;
  }
  .content .pagination li {
    display: none;
  }
  .content .pagination li.active,
  .content .pagination li.pagination-second,
  .content .pagination li.pagination-first,
  .content .pagination li:nth-child(1),
  .content .pagination li:nth-child(2),
  .content .pagination li:nth-last-child(1),
  .content .pagination li:nth-last-child(2) {
    display: block;
  }
}
@media only screen and (max-width: 479px) {
  .wrap {
    width: 340px;
  }
  .main .main-top .wrap .header .top .sep-mobile {
    min-width: 5%;
  }
  .content .category-page .category-content .products-actions .product-action {
    flex-direction: column;
    align-items: flex-end;
  }
  .content .pagination li.pagination-second {
    display: none;
  }
}
