/* Filter Pills Bar */
.th-active-filters{
    display:flex;
    flex-wrap:wrap;
    margin-bottom:15px;
}
.th-active-filter{
    background:#e8d8b5;
    color:#fff;
    padding:6px 12px;
    border-radius:20px;
    margin:4px;
    cursor:pointer;
    font-size:14px;
}

/* Price sort wrapper */
.th-price-sort-wrapper{
    display:inline-block;
    margin-left:10px;
}

/* LM - OFFCANVAS Filter element */

/* overlay */

#filtersOverlay{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    
    background:rgba(0,0,0,0.35);
    backdrop-filter:blur(3px);
    
    opacity:0;
    visibility:hidden;
    
    transition:.3s;
    
    z-index:9999998;
}

#filtersOverlay.open{
    opacity:1;
    visibility:visible;
}

/* offcanvas */

#filtersOffcanvas{
    position:fixed;
    top:0;
    left:0;
    
    width:380px;
    height:100%;
    
    background:#fff;
    
    transform:translateX(-100%);
    transition:transform .35s cubic-bezier(.4,0,.2,1);
    
    z-index:9999999;
    
    overflow-y:auto;

    box-shadow:8px 0 25px rgba(0,0,0,.15);
}

#filtersOffcanvas.open{
    transform:translateX(0);
}

/* header */
.filters-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    
    padding:22px;
    
    border-bottom:1px solid #eee;
    
    font-size:18px;
    font-weight:600;
    
    background:#fff;
}

/* content */
.filters-content{
    padding:22px;
}



/* filter groups */
.th-filter-group{
    margin-bottom:15px;
}



/* accordion toggle */
.th-filter-toggle{
    width:100%;
    
    display:flex;
    justify-content:space-between;
    align-items:center;
    
    background:none;
    border:none;
    
    padding:14px 0;
    
    font-size:16px;
    font-weight:600;
    
    cursor:pointer;
    
    border-bottom:1px solid #eee;
}



/* body */

.th-filter-body{
    display:none;
    
    padding:15px 0;
}



/* filter pills */
.th-pill{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    
    padding:8px 14px;
    margin:6px;
    
    border-radius:20px;
    
    border:1px solid #ddd;
    
    font-size:14px;
    
    cursor:pointer;
    
    transition:.2s;
    
    background:#fff;
}

.th-pill input{
    display:none;
}

.th-pill:hover{
    border-color:#000;
}

/* selected pill */
.th-pill input:checked + span{
    background:#e8d8b5;
    color:#fff;
    
    padding:8px 14px;
    
    border-radius:20px;
}



/* apply button */
.th-apply-btn{
    width:100%;

    padding:16px;
    
    border:none;
    
    border-radius:10px;
    
    background:#e8d8b5;
    color:#fff;
    
    font-weight:600;
    font-size:15px;
    
    cursor:pointer;
    
    margin-top:20px;
    
    position:sticky;
    bottom:0;
    
    box-shadow:0 -6px 20px rgba(0,0,0,.08);
}

.th-apply-btn:hover{
    background:#222;
}



/* open button */
.th-filters-button{
    padding:12px 22px;
    
    border-radius:10px;
    
    background:#e8d8b5;
    color:#000000;
    
    border:none;
    
    cursor:pointer;
    
    font-weight:600;
    
    transition:.2s;
}

.th-filters-button:hover{
    background:#222;
}



/* yith section */

#filtersTarget{
    margin-top:25px;
    padding-top:25px;
    border-top:1px solid #eee;
}

#filtersTarget *{
    color:#222 !important;
    background:transparent !important;
}


/* =========================================
   PRODUCT LISTING PRICE STYLE
========================================= */

.th-dimension-price-inline{
    font-weight:600;
    margin-left:6px;
    color:#333;
}

/* ========================================= */



/* =========================================
   FILTER BAR (top of product listing)
========================================= */

.th-filter-bar{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    
    gap:10px;
    
    margin-bottom:20px;
}



/* =========================================
   ACTIVE FILTER CHIPS
========================================= */

.th-active-filters{
    display:flex;
    flex-wrap:wrap;
    
    gap:8px;
}



/* individual chip */

.th-active-filter{
    display:inline-flex;
    align-items:center;
    
    padding:7px 14px;
    
    border-radius:18px;
    
    background:#f3f3f3;
    
    font-size:13px;
    font-weight:500;
    
    cursor:pointer;
    
    transition:.2s;
}

.th-active-filter:hover{
    background:#e8d8b5;
    color:#fff;
}



/* small X icon */

.th-active-filter::after{
    content:"✕";
    
    margin-left:8px;
    
    font-size:12px;
}



/* =========================================
   RESET FILTER BUTTON
========================================= */

.th-reset-button{
    padding:10px 18px;
    
    border-radius:10px;
    
    border:1px solid #ddd;
    
    background:#fff;
    
    font-weight:600;
    
    cursor:pointer;
    
    transition:.2s;
}

.th-reset-button:hover{
    border-color:#000;
}



/* =========================================
   FILTER BUTTON (minor improvement)
========================================= */

.th-filters-button{
    display:flex;
    align-items:center;
    
    gap:8px;
}



/* =========================================
   MOBILE IMPROVEMENT
========================================= */

@media (max-width:768px){

.th-filter-bar{
    gap:8px;
}

.th-active-filter{
    font-size:12px;
}

.th-reset-button{
    padding:8px 14px;
}

}


/* END OF OFFCANVAS ELEMENT */


/* OFFCANVAS HEADER OVERLAY PROBLEM SOLVING */

#header{
z-index:10;
position:relative;
}

#header{
z-index:10 !important;
}

.site-header,
.site-header-wrapper,
.sticky-top-area{
z-index:10 !important;
}

.th-offcanvas-wrapper{
position:static;
}


/* END OF OFFCANVAS HEADER OVERLAY PROBLEM SOLVING */
