/* ==========================================
   Filter Cards
========================================== */


.cf-filter-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cf-filter-card {
    background: #161616;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    overflow: hidden;
    transition: .3s ease;
}

.cf-filter-card:hover {
    border-color: rgba(201, 164, 92, .35);
}

.cf-filter-card__header {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 20px;

    border: 0;
    background: transparent;

    color: #fff;

    cursor: pointer;
}

.cf-filter-card__title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.cf-filter-close {
    width: 42px;
    height: 42px;
    border: 1px solid var(--color-border-secondary, rgba(255,255,255,.18));
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: .3s ease;
}
.cf-filter-close:hover {
    color: var(--color-accent, #fa4e20);
    border-color: var(--color-accent, #fa4e20);
    transform: rotate(90deg);
}

.cf-filter-card__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cf-filter-card__count {
    min-width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;

    background: #fa4e20;
    color: #111;

    font-size: 11px;
    font-weight: 700;
}

.cf-filter-card__arrow {
    width: 18px;
    height: 18px;

    transition: transform .3s ease;
}

.cf-filter-card.is-open .cf-filter-card__arrow {
    transform: rotate(180deg);
}

.cf-filter-card__body {
    display: grid;
    grid-template-rows: 0fr;
    transition:
        grid-template-rows .35s ease,
        padding .35s ease;
    padding: 0 20px;
}

.cf-filter-card__body>* {
    overflow: hidden;
}

.cf-filter-card.is-open .cf-filter-card__body {
    grid-template-rows: 1fr;
    padding: 0 20px 20px;
}

.cf-filter-card {
    transition:
        border-color .3s ease,
        background-color .3s ease,
        box-shadow .3s ease;
}

.cf-filter-card.is-open {
    border-color: rgba(201, 164, 92, .45);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

/* ==========================================
   Active Filters
========================================== */

.cf-active-filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cf-active-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 14px;

    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
}

.cf-active-filter__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cf-active-filter__text strong {
    font-size: 11px;
    color: #fa4e20;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.cf-active-filter__text span {
    font-size: 14px;
    color: #fff;
}

.cf-active-filter__remove {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, .06);

    cursor: pointer;

    transition: .25s;
}

.cf-active-filter__remove:hover {
    background: #fa4e20;
}

/* ===================================
   Filter Options
=================================== */

.cf-filter-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cf-filter-option {

    display: flex;
    align-items: center;

    cursor: pointer;

    padding: 12px 4px;

    transition: .25s;
}

.cf-filter-option:hover {

    color: #fa4e20;
}

.cf-filter-option input {

    display: none;
}

.cf-filter-checkbox {

    width: 18px;
    height: 18px;

    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 5px;

    margin-right: 14px;

    transition: .25s;

    flex-shrink: 0;
}

.cf-filter-option input:checked+.cf-filter-checkbox {

    background: #fa4e20;
    border-color: #fa4e20;
}

.cf-filter-option__label {

    flex: 1;

    color: #fff;
    font-size: 14px;
}

.cf-filter-option__count {

    font-size: 12px;
    color: #888;
}

.cf-price-filter {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cf-price-filter label span {
    display: block;
    margin-bottom: 8px;
    color: #fa4e20;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cf-price-filter input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    background: #111;
    color: #fff;
}

/*action button*/
.cf-filter-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.cf-filter-clear,
.cf-filter-apply {
    flex: 1;
    height: 46px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}

.cf-filter-clear {
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    background: transparent;
}

.cf-filter-apply {
    border: 1px solid #fa4e20;
    background: #fa4e20;
    color: #111;
}

/*price range*/
.cf-price-values {
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
    color: #fff;
    font-size: 14px;
}

.cf-price-values span {
    color: #fa4e20;
}

.cf-range-wrap {
    position: relative;
    height: 36px;
}

.cf-range-wrap input[type="range"] {
    position: absolute;
    left: 0;
    top: 8px;
    width: 100%;
    pointer-events: none;
    appearance: none;
    background: transparent;
}

.cf-range-wrap input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fa4e20;
    cursor: pointer;
}

.cf-range-wrap::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 16px;
    height: 3px;
    background: rgba(255, 255, 255, .18);
    border-radius: 999px;
}