/*
* 2025 Hugo Herreros
*
* NOTICE OF LICENSE
*
*  @author    Hugo Herreros <info@hugoherreros.com>
*  @copyright 2025 Hugo Herreros
*  @license   Property of Hugo Herreros Non redistributable.
*/

#facet_sidebar{
    position: fixed;
    width: 500px;
    height: 100%;
    background: #fff;
    top: 0;
    bottom: 0;
    right: 0;
    overflow-y: auto;
    z-index: 3500;
    border-left: 1px solid #E1DCD3;
    transform: translateX(100%);
    -webkit-transform: translateX(100%);
    transition: transform 0.350s ease;
}

@media (max-width: 1400px){
    #facet_sidebar{
        width: 450px;
    }
}

@media (max-width: 1200px){
    #facet_sidebar{
        width: 400px;
    }
}

@media (max-width: 450px){
    #facet_sidebar{
        width: 90%;
    }
}

body.open-facet-sidebar #facet_sidebar{
    transform: translateX(0);
    -webkit-transform: translateX(0);
}

#facet_sidebar .facet_sidebar_header{
    padding: 1.6rem 1.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #E1DCD3;
}

#facet_sidebar .facet_sidebar_header .facet_sidebar_header_title{
    font-family: 'Didot', serif;
    font-size: 2.188rem;
    font-weight: 600;
}

#facet_sidebar .facet_sidebar_header .facet_sidebar_header_close #facet_sidebar_close_btn .fa{
    font-size: 1.95rem;
    font-weight: 300;
}

#facet_sidebar #search_filters .facet{
    padding: 1.1rem 1.9rem;
    border-bottom: 1px solid #E1DCD3;
}

#facet_sidebar #search_filters .facet .facet-title{
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

#facet_sidebar #search_filters .facet .facet-title .fa{
    font-size: 1.25rem;
    font-weight: 300;
}

#facet_sidebar #search_filters .facet .facet-title .facet-opened-icon,
#facet_sidebar #search_filters .facet.opened-facet .facet-title .facet-closed-icon{
    display: none;
}

#facet_sidebar #search_filters .facet.opened-facet .facet-title .facet-opened-icon,
#facet_sidebar #search_filters .facet .facet-title .facet-closed-icon{
    display: block;
}

#facet_sidebar #search_filters .facet .facet-content{
    display: none;
    padding-top: 1.5rem;
}


/* Radio buttons */
.facet-label .custom-radio,
.facet-label .custom-checkbox{
    display: none;
}

.facet-label .search-link {
    display: inline-block;
    border: 1px solid #707070;
    border-radius: 4px;
    font-size: 1rem !important;
    text-align: center;
    color: #9D9D9C !important;
    padding: 0.3rem 0;
}

.facet-label.active .search-link,
.facet-label:hover .search-link{
    border: 2px solid #1D1D1B;
    font-weight: 600;
    color: #1d1d1b !important;
}

#facet_sidebar #search_filters .facet-content > ul.facet-type-checkbox,
#facet_sidebar #search_filters .facet-content > ul.facet-type-radio{
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
}

#search_filters .facet-content > ul > li {
    min-width: 5.3rem;
}

#search_filters .facet-content .facet-label,
#search_filters .facet-content .facet-label .search-link{
    width: 100%;
}

#search_filters .facet-content > ul.facet_color{
    gap: 0 !important;
}

#search_filters .facet-content > ul.facet_color > li {
    min-width: 0;
    width: 45%;
}

#facet_sidebar #search_filters .facet-content .facet_color .search-link{
    border: none;
    text-align: left;
    display: flex;
    padding-left: 2px;
}

#facet_sidebar #search_filters .facet-content .facet_color .search-link .color{
    border-radius: 3px;
    margin-right: 0.75rem;
    width: 1.35rem;
    height: 1.35rem;
}

.facet_color .facet-label.active .search-link,
.facet_color .facet-label:hover .search-link{
    font-weight: 600;
    color: #1D1D1B !important;
}

.facet_color .facet-label.active .search-link .color,
.facet_color .facet-label:hover .search-link .color{
    outline: 2px solid rgb(29 29 27);
}

.facet_sidebar_footer{
    padding: 1.1rem 1.9rem;
}

.facet_sidebar_footer .facet_sidebar_clear_btn{
    text-transform: uppercase;
    color: #C82A8C;
    font-size: 1.125rem;
    border: 1px solid #C82A8C;
    background-color: #ffffff;
    padding: 1rem 3.125rem;
}

@media (max-width: 767px){
    .facet_sidebar_footer .facet_sidebar_clear_btn {
        padding: 0.8rem 2rem;
    }
}


.facet_sidebar_footer .facet_sidebar_clear_btn:hover,
.facet_sidebar_footer .facet_sidebar_clear_btn:active{
    color: #fff;
    background-color: #9a9692;
    border-color: #1d1d1b;
}

