@media only screen and (min-width:520px) {
    @media not all and (min-resolution:.001dpcm) { @media {
        .col-md-4 {
            max-width: 33% !important;
            flex: 0 0 33% !important;
        }
        .col-md-3 {
            max-width: 24% !important;
            flex: 0 0 24% !important;
        }
        div.row:after, div.row:before {
            display: inline-block;
        }
    }}
    @media screen and (min-color-index:0) and(-webkit-min-device-pixel-ratio:0) { @media {
        .col-md-4 {
            max-width: 33% !important;
            flex: 0 0 33% !important;
        }
        .col-md-3 {
            max-width: 24% !important;
            flex: 0 0 24% !important;
        }
    }}
}
@media only screen and (max-width:520px) {
    @media not all and (min-resolution:.001dpcm) { @media {
        .col-4 {
            max-width: 33% !important;
            flex: 0 0 33% !important;
        }
        .col-3 {
            max-width: 24% !important;
            flex: 0 0 24% !important;
        }
        div.row:after, div.row:before {
            display: inline-block;
        }
        .col-6 {
            max-width: 49% !important;
            flex: 0 0 49% !important;
        }
        .col-7 {
            flex: 0 0 57.3333333333% !important;
            max-width: 57.3333333333% !important;
        }
        .col-5 {
            flex: 0 0 40.6666666667% !important;
            max-width: 40.6666666667% !important;
        }
        .catalog-category-view .filter .filter-title strong,
        .brands-view-index .filter .filter-title strong,
        .toolbar-top .sorter .sorter-options {
            padding-top: 11px;
            padding-bottom: 7px;
        }
        .catalog-category-view .page-main .toolbar-top .toolbar .toolbar-sorter .sorter-options, .brands-view-index .page-main .toolbar-top .toolbar .toolbar-sorter .sorter-options {
            padding-top: 10px;
            padding-bottom: 8px;
        }
        .catalog-category-view .category-view .category-description .tag, .brands-view-index .category-view .category-description .tag {
            padding-top: 11px;
            padding-bottom: 6px;
        }
        .catalog-category-view #layered-filter-block-mobile .block-title, 
        .brands-view-index #layered-filter-block-mobile .block-title,
        .catalog-category-view .filter#layered-filter-block-mobile .filter-actions, 
        .brands-view-index .filter#layered-filter-block-mobile .filter-actions {
            top: 7px;
        }
    }}
    @media screen and (min-color-index:0) and(-webkit-min-device-pixel-ratio:0) { @media {
        .col-4 {
            max-width: 33% !important;
            flex: 0 0 33% !important;
        }
        .col-3 {
            max-width: 24% !important;
            flex: 0 0 24% !important;
        }
        .col-6 {
            max-width: 49% !important;
            flex: 0 0 49% !important;
        }
        .col-7 {
            flex: 0 0 57.3333333333% !important;
            max-width: 57.3333333333% !important;
        }
        .col-5 {
            flex: 0 0 40.6666666667% !important;
            max-width: 40.6666666667% !important;
        }
    }}
}

/*************** SCROLLBAR BASE CSS ***************/
.scroll-wrapper {
    overflow: hidden !important;
    padding: 0 !important;
    position: relative;
}
.scroll-wrapper > .scroll-content {
    border: none !important;
    box-sizing: content-box !important;
    height: auto;
    left: 0;
    margin: 0;
    max-height: none;
    max-width: none !important;
    overflow-x: scroll !important;
    overflow-y: hidden !important;
    padding: 0;
    position: relative !important;
    top: 0;
    width: auto !important;
}
.scroll-wrapper > .scroll-content::-webkit-scrollbar {
    height: 0;
    width: 0;
}
.scroll-element {
    display: none;
}
.scroll-element, .scroll-element div {
    box-sizing: content-box;
}
.scroll-element.scroll-x.scroll-scrollx_visible,
.scroll-element.scroll-y.scroll-scrolly_visible {
    display: block;
}
.scroll-element .scroll-bar,
.scroll-element .scroll-arrow {
    cursor: default;
}
.scroll-textarea {
    border: 1px solid #cccccc;
    border-top-color: #999999;
}
.scroll-textarea > .scroll-content {
    overflow: hidden !important;
}
.scroll-textarea > .scroll-content > textarea {
    border: none !important;
    box-sizing: border-box;
    height: 100% !important;
    margin: 0;
    max-height: none !important;
    max-width: none !important;
    overflow: scroll !important;
    outline: none;
    padding: 2px;
    position: relative !important;
    top: 0;
    width: 100% !important;
}
.scroll-textarea > .scroll-content > textarea::-webkit-scrollbar {
    height: 0;
    width: 0;
}
/*************** SCROLLBAR LIGHT ***************/
.scroll-wrapper > .scroll-element,
.scroll-wrapper > .scroll-element div {
    border: none;
    margin: 0;
    overflow: hidden;
    padding: 0;
    position: absolute;
    z-index: 10;
}
.scroll-wrapper > .scroll-element {
    background-color: #ffffff;
}
.scroll-wrapper > .scroll-element div {
    display: block;
    height: 100%;
    left: 0;
    top: 0;
    width: 100%;
}
.scroll-wrapper > .scroll-element .scroll-element_outer {
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
}
.scroll-wrapper > .scroll-element .scroll-element_size {
    background: #fff;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    box-shadow: inset 2px 0px 5px grey; 
    border-radius: 10px;
}
.scroll-wrapper > .scroll-element.scroll-x {
    bottom: 0px;
    height: 17px;
    left: 0;
    min-width: 100%;
    width: 100%;
}
.scroll-wrapper > .scroll-element.scroll-y {
    height: 100%;
    min-height: 100%;
    right: 0;
    top: 0;
    width: 17px;
}
.scroll-wrapper > .scroll-element .scroll-bar {
    background: #ff6317;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    width: 50px;
}
.scroll-wrapper > .scroll-element .scroll-bar:hover {
    background: #bebebe;
}
/* scrollbar height/width & offset from container borders */
.scroll-wrapper > .scroll-content.scroll-scrolly_visible { left: -17px; margin-left: 17px; }
.scroll-wrapper > .scroll-content.scroll-scrollx_visible { top:  -17px; margin-top:  17px; }

.scroll-wrapper > .scroll-element.scroll-x .scroll-bar { height: 15px; min-width: 50px; top: 0px; }
.scroll-wrapper > .scroll-element.scroll-y .scroll-bar { left: 0px; min-height: 50px; width: 15px; }

.scroll-wrapper > .scroll-element.scroll-x .scroll-element_outer { height: 15px; left: 2px; top: 2px; }
.scroll-wrapper > .scroll-element.scroll-x .scroll-element_size { left: -4px; }

.scroll-wrapper > .scroll-element.scroll-y .scroll-element_outer { left: 2px; top: 2px; width: 15px; }
.scroll-wrapper > .scroll-element.scroll-y .scroll-element_size { top: -4px; }

/* update scrollbar offset if both scrolls are visible */
.scroll-wrapper > .scroll-element.scroll-x.scroll-scrolly_visible .scroll-element_size { left: -19px; }
.scroll-wrapper > .scroll-element.scroll-y.scroll-scrollx_visible .scroll-element_size { top: -19px; }

.scroll-wrapper > .scroll-element.scroll-x.scroll-scrolly_visible .scroll-element_track { left: -19px; }
.scroll-wrapper > .scroll-element.scroll-y.scroll-scrollx_visible .scroll-element_track { top: -19px; }

ol.iOS,
div.products-related {
    z-index: 99;
    -webkit-overflow-scrolling: auto;
}
ol.iOS::-webkit-scrollbar-thumb,
ol.iOS::-webkit-scrollbar,
ol.iOS::-webkit-scrollbar-track,
.iOS-device div.products-related::-webkit-scrollbar-thumb,
.iOS-device div.products-related::-webkit-scrollbar,
.iOS-device div.products-related::-webkit-scrollbar-track {
    visibility: hidden;
}