:root {
    --tablet-breakpoint: 1023px;
    --mobile-breakpoint: 767px;
}


.product-sidebar {
    min-width: 200px;
    border-right: 1px solid #cccccc;
    margin: 0 20px;
    padding-right: 20px;

    float: left;
}
.product-sidebar ul {
    list-style: none;
    padding-left: 0;
}

.product-sidebar li a {
    text-decoration: none;
    padding: 6px 5px;
    display: block;

    position: relative;
}

.product-sidebar li a.active {
    background-color: #FEF3F2;
    border-radius: 5px;
}

.category-count {

    position: absolute;

    right: 5px;
    top: 50%;

    transform: translateY(-50%);

    display: inline-block;
    font-size: 12px;

    background-color: lightgrey;

    padding: 0 8px;
    border-radius: 5px;

}

.product-grid {

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.product-item {
    padding: 8px;
    margin: 8px;
    cursor: pointer;
    flex: 0 0 200px;
}

.product-item__image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
}

    .product-item__image-wrapper .product-item__image {
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 10px;
        object-fit: cover;

    }

.product-item__name {
    text-align: center;
}

.product-query-badge {

    position: absolute;
    top: 0;
    right: 0;

    background: #fe4500;
    padding: 5px;
    border-radius: 30px;
    font-size: 10px;
}

.product-category-picker {
    display: none;
}



/**
 *  Mobile and Tablet CSS
 */
@media screen and (max-width: 1024px)  {



}


/**
 *  Mobile CSS
 */
@media screen and (max-width: 767px)  {

    .product-category-picker {
        display: block;
    }

    .product-sidebar {
        float: none;

        border-right: 0px;
        margin: 0 0px;
        padding-right: 0px;

    }

    .product-sidebar ul {
        display: none;
    }

    .product-grid {
        margin: 0 auto;
        /*justify-content: center;*/
    }

    .product-item {
        flex-basis: 150px;
    }


}

/*
 *  Product Popup
 */

.product-popup-overlay {
    position: fixed;
    opacity: 0;
    left: 0;
    bottom: 0;
    background: rgba(153, 153, 153, 0.4);
    width: 100%;
    height: 100%;
    z-index: -1;
    visibility: hidden;
    transition: all 1s ease;

}

.product-popup {
    position: fixed;
    left: 50%;
    background: #fff;
    width: 60vw;
    z-index: -1;
    visibility: hidden;
    transform: translate( -50%, -50% );

    top: -50%; /*Put it on the very top*/
    transition: all .5s ease-in-out; /*make it smooth*/
    display: flex;

    padding: 20px;

}


/*Now show it*/
.product-popup.show {
    visibility: visible;
    z-index: 200;
    opacity: 1;
    top: 50%; /*slide it down smoothly*/
}
.product-popup.show ~ .product-popup-overlay {
    opacity: 1;
    visibility: visible;
    z-index: 100;
}



/* Popup */

.product-card-left {
    /*min-width: 250px;*/
    padding-right: 30px;
    position: relative;
    flex: 0 0 40%;
}

.product-card-left:after {

    content: "";
    display: block;
    position: absolute;
    height: 40%;
    width: 1px;
    right: 0;
    top: 30%;
    border-right: 1px solid #cccccc;

}

.product-card-right {
    padding-left: 30px;
    padding-top: 20px;
    position: relative;

    margin: auto 0;
    height: 100%;
    flex: 0 1 60%;

    display: flex;
    flex-direction: column;
    justify-content: center;
}


.product-card__name {
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.product-card__image {
    border-radius: 5px;
}

.product-card__description {
    font-size: 14px;
    /* overflow: scroll; */
    max-height: calc( 100% - 70px);

}

.product-card__action {
    text-align: left;
    margin-top: 20px;
    height: 50px;
}

button.btn-close {
    width: 44px;
    height: 44px;
    font-size: 25px;
    text-align: center;
    position: absolute;
    right: 10px;
    top: 10px;
    padding: 0px;
    border: 0;

    cursor: pointer;
    z-index: 1;
}

button.btn-close:after {
    display: inline-block;
    content: "\00d7"; /* This will render the 'X' */
}

/**
 *  Mobile and Tablet CSS
 */
@media screen and (max-width: 1024px)  {



}


/**
 *  Mobile CSS
 */
@media screen and (max-width: 767px) {

    .product-popup {
        flex-direction: column;
        overflow: scroll;
    }

    .product-card-left {
        padding-right: 0;
    }

    .product-card-left:after {
        display: none;
    }

    .product-card__description {
        max-height: none;
    }

    .product-card-right {
        padding-left: 0;
        /*padding-top: 0;*/
    }

}
