@media (max-width: 1400px) {
    #banner-fixed-right {
        display: none;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    #nav-content li.account-registration {
        display: none;
    }
    #nav-content {
        width: 52% !important;
        margin-right: 20% !important;
    }
    #nav-content li.account-login {
        position: absolute;
        right: 0.5%;
        top: auto;
    }
}

@media (max-width: 641px) {
    body {
        font: 12px/1.45 sans-serif;
        border: 0;
    }
    *:after, *:before {
        border: 0 solid !important;
    }
    #nav-top ul, #nav-top li {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
    }
    .wrapper {
        margin: 0;
        height: auto;
        padding: 0;
        width: auto;
    }
    table td, table, tbody {
        width: auto !important;
        max-width: 100% !important;
        display: inline-block;
    }
    table * {
        width: auto !important;
    }
    .col, .tabs .tab, .listing-products .item, #breadcrumbs {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .listing-products .inner .procent-sale, h1#title, .sorter, .menu-categories li .image, #nav-choose .icon, .listing-products .inner .add-to-cart .hide-buy .status, .listing-products .product-info p.no-edges, #nav-skiplink em, #banners-top, #col-left, #top-menu, #form-search, #special-offer .text-info {
        display: none;
    }
    #survey, #col-left .banners, #visited-products, #visited-category, #banner-text, .product-set .quantity .col-3, #listing-images, #nav-content #ajax-basket .cart:hover .hide, .quantity-change, #search-matress, #menu-top ul ul {
        display: none !important
    }
    #logo {
        width: 45% !important;
    }
    .product-set .left-col label {
        text-align: left !important;
    }
    .product-set .quantity, .content-basket_aio .quantity-change {
        display: inline-block !important
    }
    .content-basket_aio .quantity-change {
        float: right !important;
    }
    .content-basket_aio .listing-table .inner > .col-12 > .col-5 .text-availability {
        padding: 0.8em;
        display: inline-block;
    }
    .content-basket_aio .listing-table .inner > .col-12 > .col-5, .content-basket_aio .listing-table .inner > .col-12 > .col-4 {
        width: 50% !important;
    }
    .quantity-change .col-3 {
        width: 0;
        height: 0;
    }
    .quantity-change .col-9 {
        width: 60% !important;
        max-width: 13em;
        margin-left: 20% !important;
        margin-right: 20% !important;
    }
    .quantity-change .btn, .quantity-change .btn.plus:hover, .quantity-change .btn.minus:hover {
        width: 20%;
        height: 2.5em;
        line-height: 2.5em;
        padding: 0.35em 0;
        margin: 0;
        position: absolute;
        left: 0;
        top: 0;
    }
    .quantity-change .btn.plus, .quantity-change .btn.plus:hover {
        left: auto;
        right: 0;
    }
    #nav-skiplink {
        display: inline-block !important;
        position: absolute;
        top: 0.25em;
        right: 0;
    }
    .menu-categories li {
        width: 49% !important;
        float: left;
        display: inline-block;
        border: 0;
    }
    .menu-categories li a {
        border: 1px solid #e1e1e1;
        overflow: hidden;
        height: 1.45em;
    }
    #nav-skiplink li {
        float: left;
        display: inline-block;
        margin-left: 0.25em;
    }
    #nav-skiplink a {
        width: 34px;
        height: 29px;
        padding: 0;
    }
    .image img, #logo img, #logo a, iframe {
        max-width: 100%;
    }
    #header {
        height: auto;
    }
    #nav-extended li {
        width: auto;
        display: block;
        float: none;
    }
    .container {
        padding: 0;
    }
    .listing-products .inner .image {
        float: left;
        clear:none;
        width: 25%;
        height: auto;
        margin-right: 5%;
    }
    #article-tabs .item {
        padding-top: 0.5em;
    }
    #footer #nav-footer .level-0 {
        width: 100%;
        margin-bottom: 0.25em;
        border: 0;
    }
    #footer #quick-contacts {
        display: inline-block;
        width: 90% !important;
        margin: 1em 0 !important;
        padding: 0 5% !important;
    }
    #article-tabs .image {
        display: none;
    }
    .listing-products .product-info {
        float: right;
        position: relative;
        clear: none;
    }
    .add-to-cart .hide-buy{
        position: absolute;
        bottom: 0;
        right: 0;
    }
    .listing-products .border-listing-bottom {
        display: inline-block;
        width: 100%;
        margin: 0;
        padding: 0;
        float: left;
        clear: both;
    }
    .listing-products .item, .listing-products .item:hover {
        border: 1px solid #e1e1e1;
        -webkit-box-shadow: 0 0 0 0;
        box-shadow: 0 0 0 0;
        width: 100%;
        margin: 0 !important;
        margin-top: 0.5em !important;
        height: auto !important;
        display: inline-block;
    }
    .listing-products .inner {
        float: none;
        display: block;
        width: auto;
    }
    .listing-products .inner h2.main {
        width: 70%;
        display: inline-block;
        float: right;
    }
    .listing-products .inner .add-to-cart .states-news, .listing-products .inner .add-to-cart .hide-buy {
        display: inline-block !important;
    }
    .listing-products .inner .add-to-cart {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
    }
    #modal-login, #top-menu, #form-search, .modal, #modal-buy, #col-left {
        position: absolute;
        top: 10px;
        left: 0;
        width: 90% !important;
        z-index: 1010;
        margin: 0 5% !important;
        background-color: #ffffff;
    }
    #modal-fixed, #modal-confirm {
        width: 80% !important;
    }
    #modal-login {
        z-index: 1100;
    }
    #header {
        height: 3.5em;
        margin-bottom: 0.75em !important;
    }
    #breadcrumbs .last {
        clear: both;
        display: inline-block;
        width: 100%;
        font-size: 1.75em;
        line-height: 1.25em;
        margin: 0.5em 0;
    }
    #nav-content {
        display: inline-block;
        margin-left: 5% !important;
        margin-right: 0 !important;
        margin-top: 1em;
        width: 95% !important;
    }
    #nav-content li {
        clear: both;
        width: 90%;
        float: left;
        display: inline-block;
        margin: 0.5em 5%;
        border: 0;
    }
    #product-description .add-to-cart .step-to-buy {
        padding: 0;
        border: 0;
    }
    .group-type-2 .col-special {
        width: 50% !important;
    }
    #nav-content #ajax-basket {
        position: relative;
        right: auto;
        top: auto;
        bottom: auto;
    }
    .listing-products .item:hover .hide-buy {
        display: inline-block !important;
        height: auto;
    }
    #product-tabs .nav {
        font-size: 0.75em;
    }
    #nav-choose .icon, #nav-choose .col-6, #product-description .product-info .pricing .col {
        width: 50% !important;
    }
    #product-description .product-info .pricing .border-left {
        border: 0;
    }
    #configuration .item-config label > .col-2 {
        width: 20% !important;
    }
    #configuration .item-config label > .col-2 input {
        margin: 0;
    }
    #configuration .item-config label > .col-9 {
        width: 75% !important;
        float: right !important;
    }
    #configuration .item-config {
        margin-bottom: 0.5em !important;
    }
    #configuration .tab {
        margin-top: 0.5em !important;
    }
    #nav-choose {
        font-size: 0.85em;
    }
    .description *, .text * {
        max-width: 100%;
        max-height: auto;
    }
    .listing-products .item, .listing-products .item:hover {
        padding-bottom: 0;
        width: 100%;
        margin-bottom: 0;
    }
    #page-homepage .listing-products .slider .item {
        width: 100% !important;
    }
    #absolute {
        height: 0px;
    }
    #absolute .row-fluid {
        width: 100%;
        margin: 0;
    }
    #input-search, #btn-search {
        font-size: 1.5em !important;
    }
    #compare-fixed {
    }
    .fixed-position {
        position: relative;
        width: auto;
        max-width: unset;
        min-width: unset;
    }
    .close {
        border-radius: 2em;
        -webkit-border-radius: 2em;
        background: #ffffff;
        position: absolute;
        right: -0.5em;
        top: -0.5em;
        height: 1em;
        width: 1em;
        line-height: 1em;
        border: 1px solid #dddddd;
        z-index: 1050;
        text-align: center;
    }
    .close-fixed {
        position: fixed;
        right: auto;
        left: 83%;
        top: 10px;
        bottom: auto;
        margin-right: 0;
        margin-left: 0;
        z-index: 1010;
    }
    #modal-fixed .close, #modal-confirm .close {
        position: fixed;
        right: 6%;
        top: 0;
    }
}
@media (max-width: 1024px) {
    .wrapper {
        min-width: 96%;
        max-width: 96%;
        width: 96%;
        padding: 5px 1% 5px;
        margin: 0 1%;
    }
    .container {
        margin: 0px 0.5%;
        padding: 0px 0.5%;
    }
    #logo a {
        max-width: 100%;
    }
    #banners-top {
        display: none;
    }
    #nav-eshop .no-selected:hover .sub, .menu-categories .image, .listing-products .item .hide-buy .status {
        display: none !important
    }
    #header #logo img {
        max-height: 40px
    }
    #nav-content #ajax-basket {
        right: 0.5%;
    }
    #nav-content {
        width: 71.5%;
        margin-right: 0.5%;
    }
    #input-search, #btn-search {
        font-size: 0.85em;
    }
    #col-left {
        width: 25%;
    }
    .col-right {
        width: 73%;
    }
    .listing-products .item, .listing-products .slider .item{
        width: 50%;
    }
    .listing-products .item:nth-child(2n+1){
        clear: both;
    }
    .price .col{
        width: 100%;
    }
    #product-description .pricing .border-left {
        border:  0;
    }
    #product-description .pricing .center {
        text-align: right;
    }
    #page-homepage .listing-products .item {
        width: 49% !important;
    }
    .product-info .pricing .col-6, .product-info .pricing .col-3, .product-info .pricing .col-4 {
        width: 50% !important;
    }
    .product-info .pricing .col-5 {
        float: right;
        width: 100% !important;
    }
    .sorter, .page-count {
        width: 100% !important;
    }
    #params .col-2 {
        width: 33% !important;
    }
    .listing-products .border-listing-bottom {
        border: 0;
    }
    .listing-products .border-listing-bottom .item {
        border-bottom: 1px solid #ededed;
    }
}
@media (max-width: 550px) {
    #page-homepage .listing-products .item {
        width: 99% !important;
    }
}