/*
 * eCommerce Product Catalog Sidebar
 * http://impleCode.com
 *
 * Copyright 2015 impleCode
 * Free to use under the GPLv3 license.
 * http://www.gnu.org/licenses/gpl-3.0.html
 *
 * Contributing author: Norbert Dreszer
 */

#product_sidebar {
    overflow: hidden;
}

#product_sidebar, article#product_listing, div#product_archive_nav, div.after-product-details {
    box-sizing: border-box;
}

#product_sidebar .product-search-box {
    max-width: 100%;
}

#product_sidebar .product-search-submit {
    max-width: 31%;
}

.promo-item {
    overflow: auto;
}

.promo-item .product-name {
    font-size: 18px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
}

.promo-item .price-value {
    font-size: 18px;
    display: inline-block;
    vertical-align: middle;
    float: right;
    clear: right;
}

.promo-item .product-description {
    float: left;
    max-width: 64%;
    clear: none;
    height: 65px;
    overflow: hidden;
    padding: 0;
}

.promo-item .product-image {
    max-width: 35%;
    float: right;
    clear: none;
}

.promo-item .promo-product-button {
    float: left;
    padding-left: 6%;
    padding-top: 5px;
}

.promo-item .promo-product-button input.classic-button {
    padding: 2px 6px;
}
.product-sort-bar .product_widget_promo {
    max-width: 250px;
}

.filter-widget .product-archive-nav {
    padding: 0;
}
.product_widget_count {
    font-weight: bold;
}
body.ic_overlay_visible * {
    z-index: 0;
}

body.ic_overlay_visible {
    overflow: hidden;
    max-height: 100%;
}

#ic_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    filter:alpha(opacity=60);
    -moz-opacity:0.6;
    -khtml-opacity: 0.6;
    opacity: 0.6;
    z-index: 1;
}

article:not(.responsive) #product_sidebar .widget {
    display: block !important;
}

.product-sort-bar .price-ranges {
    display: none;
}

.product-sort-bar .responsive-filters .price-ranges {
    display: block;
    padding: 10px 10px 0 10px;
    margin-bottom: -10px;
}

.product-sort-bar .responsive-filters .price-filter-form {
    /* display: none; */
}

.price-ranges-row {
    padding: 10px;
    border-bottom: 1px solid #000;
}

.responsive-filters .price-ranges-row {
    margin-left: -20px;
    margin-right: -20px;
}

.price-ranges-row:first-child {
    border-top: 1px solid #000;
}

.price-ranges-row:last-child {
    border-bottom: 0;
}
.product-sidebar .price-ranges-row:first-child, .sidebar .price-ranges-row:first-child {
    margin-top: 10px;
}
.product-sidebar .price-ranges-row, .sidebar .price-ranges-row {
    border-color: #b3b3b3;
}

.current-range {
    font-weight: bold;
}

#product_filters_bar.grouped-filters .filter-widget {
    display: none;
}

#container.content-area.product-catalog #product_listing .product-sort-bar.grouped-filters .responsive-filters, #container.content-area.product-catalog #product_listing .product-sort-bar.grouped-filters .responsive-filters-button, .product-sort-bar.grouped-filters .responsive-filters, .product-sort-bar.grouped-filters .responsive-filters-button, body .product-sort-bar.grouped-filters .responsive-filters-button.ic-design.button {
    display: block;
}

.responsive-filters .children-cat-filters {
    padding-left: 5px;
}

.show-all-children .filter-url {
    padding: 8px 8px 7px 8px;
}

.show-all-children .has-children .filter-url {
    display: inline-block;
    white-space: normal;
}

.show-all-children .has-children .ic-collapsible-opener, .show-all-children .has-children .ic-collapsible-closer {
    vertical-align: middle;
}

.show-all-children .children-cat-filters .filter-url:not(.not-active-filter), .show-all-children .child-category-filters .filter-url:not(.not-active-filter){
    border-top: 0;
    border-bottom: 0;
}

.responsive-filters .show-all-children.only-bottom-clickable .filter-url {
    border-bottom: 0;
}

.responsive-filters .show-all-children div.filter-url, .show-all-children div.filter-url {
    text-decoration: none;
}

div.has-children .filter-url, .responsive-filters .show-all-children div.filter-url, .show-all-children div.filter-url {
    font-size: 1.2em;
    font-weight: bold;
}

.show-all-children .children-cat-filters div.has-children a.filter-url {
    font-size: 1.1em;
}

.responsive-filters .show-all-children div.filter-url {
    border-top: 0;
}

.responsive-filters .show-all-children.only-bottom-clickable .filter-url {
    margin: 0;
}

.responsive-filters .show-all-children > div.filter-url, .show-all-children > div.filter-url, div.has-children .filter-url, .responsive-filters .show-all-children div.has-children .filter-url {
    font-weight: bold;
    margin-top: 7px;
}

.show-all-children > .children-cat-filters {
    border: dotted 1px #b3b3b3;
    padding-left: 10px;
    padding-bottom: 5px;
}

.show-all-children.only-bottom-clickable > .children-cat-filters {
    padding-left: 5px;
}

.show-all-children .has-children {
    padding-left: 10px;
}

.show-all-children.only-bottom-clickable .has-children {
    padding-left: 5px;
    white-space: nowrap;
}

.show-all-children .children-cat-filters .has-children  {
    padding-left: 0;
}

.show-all-children > .children-cat-filters:last-child {
    margin-bottom: 10px;
}
/*
.children-cat-filters div.filter-url:after {
    font-family: dashicons;
    content: "\f346";
    vertical-align: bottom;
}
*/

div.filter-url .ic-catalog-category-count {
    display: none;
}

.show-all-children .children-cat-filters .children-cat-filters a.filter-url {
    padding-top: 0;
    padding-bottom: 0;
    padding-right: 3px;
}

.show-all-children div.filter-url {
    padding-bottom: 0;
}

.show-all-children .children-cat-filters div.filter-url {
    font-size: 1.1em;
}

.show-all-children .has-children .ic-catalog-category-count {
    display: none;
}

.ic-collapsible-closer, .ic-collapsible-opener {
    cursor: pointer;
}

.ic-collapsible-closed > .ic-collapsible-closer {
    display: none;
}

.ic-collapsible-open > .ic-collapsible-opener {
    display: none;
}

.ic-collapsible-closed .children {
    display: none;
}

.ic-listing-switcher {
    float: right;
    clear: both;
    margin-bottom: 10px;
}

.ic-listing-switcher .dashicons-grid-view, .ic-listing-switcher .dashicons-list-view {
    cursor: pointer;
    font-size: 25px;
    width: 34px;
    height: 34px;
    margin-right: 5px;
    border: 1px solid transparent;
    padding: 3px;
    text-decoration: none;
    color: #000;
}
.ic-listing-switcher .dashicons-grid-view:hover, .ic-listing-switcher .dashicons-list-view:hover, .ic-listing-switcher .dashicons-grid-view.active, .ic-listing-switcher .dashicons-list-view.active {
    border: 1px solid #000;
}

.ic-listing-switcher a, .ic-listing-switcher a:active, .ic-listing-switcher a:focus, .ic-listing-switcher a:hover {
    color: #000;
    text-decoration: none !important;
    outline: none;
}
.ic-listing-switcher-label {
    vertical-align: middle;
    line-height: 34px;
}

.ic_product_listing_selector.widget, .product-sort-bar .filter-widget.ic_product_listing_selector {
    padding: 0 10px;
    margin: 0;
}

@media (max-width: 800px) {
    #product_sidebar {
        display: none;
    }

    #product_sidebar.responsive-visible {
        display: block;
    }

    body article#product_listing, body div#product_archive_nav, body div.after-product-details, body article.al_product, .responsive div.product-entry, .responsive div.product-list, #product_sidebar.responsive-visible {
        width: 100%;
        float: none;
    }

    #product_sidebar.responsive-sliding .ic-sliding-arrow:before {
        width: 50px;
        height: 50px;
        background: #D2691E;
        content: "\f345";
        display: block;
        float: left;
        font-family: dashicons;
        color: #fff;
        font-size: 35px;
        text-align: center;
        border-radius: 50%;
        padding-left: 8px;
        cursor: pointer;
        padding-right: 0;
        position: relative;
        line-height: 1.4;
        left: -50px;
        box-shadow: 0px 0px 4px 1px #D2691E;
    }

    #product_sidebar.responsive-sliding.right .ic-sliding-arrow:before {
        content: "\f341";
        float: right;
        margin-right: -10px;
        padding-right: 8px;
        padding-left: 0;
        left: initial;
        right: -30px;
    }

    #product_sidebar.responsive-sliding.open .ic-sliding-arrow:before {
        width: 35px;
        height: 35px;
        float: none;
        margin:0;
        font-size: 25px;
    }

    #product_sidebar.responsive-sliding.open.left .ic-sliding-arrow:before {
        float: right;
    }

    #product_sidebar.responsive-sliding.right.open .ic-sliding-arrow {
        position: relative;
        width: 41px;
        height: 41px;
        overflow: hidden;
        display: inline-block;
        top: -10px;
        padding: 3px;
    }

    #product_sidebar.responsive-sliding.right.open .ic-sliding-arrow:before {
        content: "\f345";
        padding-left: 2px;
        padding-right: 0px;
        margin-left: -30px;
        margin-right: 0;
        position: relative;
    }

    #product_sidebar.responsive-sliding.left.open .ic-sliding-arrow:before {
        content: "\f341";
        padding-right: 2px;
        padding-left: 0;
        position: relative;
        top: -5px;
        right: -35px;
        left: initial;
    }


    #product_sidebar.responsive-sliding {
        display: block;
        position: fixed;
        left: 0;
        top: 30%;
        width: 0;
        max-width: 400px;
        background: transparent;
        overflow: hidden;
        z-index: 3;
        max-height: 100%;
        padding: 30px !important;
        margin: 0 !important;
    }

    #product_sidebar.responsive-sliding.right {
        right: 0;
        left: initial;

    }

    #product_sidebar.responsive-sliding.open, .content-area.product-catalog #product_sidebar.responsive-sliding.open {
        background: #fff;
        top: 0;
        overflow-y: auto;
        width: 90%;
        min-height: 90%;
    }

    #product_sidebar.responsive-sliding.right:not(open) {
        padding-right: 0;
    }

    #product_sidebar.responsive-sliding.left:not(open) {
        padding-left: 0;
    }

    #product_sidebar.responsive-sliding .widget {
        display: none;
    }

    .responsive-sliding aside.widget.closed * {
        display: none;
    }

    .responsive-sliding aside.widget.closed.product_attributes_filter .product-attribute-filter-container, .responsive-sliding aside.widget.closed.product_attributes_filter form, .responsive-sliding aside.widget.closed.product_attributes_filter form > div  {
        display: block;
    }

    #product_sidebar.responsive-sliding .widgettitle {
        display: initial;
        cursor: pointer;
    }

    #product_sidebar.responsive-sliding .widgettitle:after {
        font-family: dashicons;
        content: "\f142";
        color: #d2691e;
        vertical-align: middle;
        top: 0;
        font-size: inherit;
        right: initial;
    }

    #product_sidebar.responsive-sliding aside.widget.closed .widgettitle:after {
        content: "\f140";
    }
}