/*
 * 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;
}

@media (max-width: 800px) {
    #product_sidebar {
        display: none;
    }
    body article#product_listing, body div#product_archive_nav, body div.after-product-details, body article.al_product, .responsive div.product-entry {
        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;
    }

    #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:before {
        content: "\f345";
        padding-left: 2px;
        padding-right: 0px;
        margin-left: -20px;
    }

    #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;

    }

    #product_sidebar.responsive-sliding.open {
        background: #fff;
        top: 0;
        overflow-y: scroll;
        width: 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;
    }

    #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;
    }

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