.filter-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    gap: 24px;
    background: linear-gradient(0deg, rgba(215, 180, 106, 0.7) 0%, #D7B46A 72.6%);
    border-radius: 32px;
    padding: clamp(16px, 2vw, 32px);
    width: 100%;
    position: relative;
    &:before {
        content: "";
        background-image: url(../../img/pattern.png);
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
        border-radius: 32px;
    }
    .title-box {
        width: -webkit-fill-available;
        gap: 16px;
        margin: 0;
    }
    .s-title {
        line-height: 28px;
        color: var(--black);
    }
    .s-desc {
        font-size: clamp(14px, 1vw, 16px);
        color: var(--black);
        line-height: 20px;
    }
    .filter-items {
        gap: 16px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        .select-w {
            position: relative;
        }
        & .select-trigger {
            border: 0;
            border-radius: 32px;
            min-height: 48px;
            width: 100%;
            padding: 12px 14px;
            font-family: var(--Medium);
            font-size: clamp(14px, 1vw, 16px);
            background: var(--nature);
            transition: 0.4s;
            cursor: pointer;
            &:before {
                content: "\e919";
                font-family: 'icomoon';
                position: absolute;
                left: 14px;
                top: 50%;
                transform: translateY(-50%);
                width: 24px;
                height: 24px;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 13px;
                transition: 0.4s;
            }
        }
        .btn-filters {
            border: 0;
            border-radius: 32px;
            min-height: 48px;
            min-width: 140px;
            width: 100%;
            padding: 12px 14px;
            font-family: var(--Medium);
            font-size: clamp(14px, 1vw, 16px);
            background: var(--color1);
            color: white;
            transition: 0.4s;
            width: 100%;
            &:hover {
                background: var(--black);
            }
        }
    }
}
@media only screen and (min-width: 992px) {
    .filter-wrap {
        flex-direction: row;
        .title-box {
            align-items: flex-start;
            text-align: right;
        }
        .filter-items {
            gap: 8px;
            grid-template-columns: repeat(5, 1fr);
            select {
                min-width: 140px;
            }
            .btn-filters {
                min-width: 140px;
            }
        }
    }
}
.custom-select.active {
    .select-trigger {
        border-radius: 12px 12px 0 0;
        &:before {
            transform: translateY(-50%) rotateX(180deg);
        }
    }
    .select-options {
        border-radius: 0 0 12px 12px;
    }
}
.custom-select-w {
    position: relative;
    display: inline-block;
}
.custom-select {
    position: relative;
    width: 100%;
}
.select-trigger:hover {
    border-color: #888;
}
.select-trigger .arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}
.custom-select.active .select-trigger .arrow {
    transform: rotate(180deg);
}
.select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border-top: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    /* تغییرات opacity و visibility */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    background: var(--nature);
}
.custom-select.active .select-options {
    /* تغییرات برای حالت فعال */
    opacity: 1;
    visibility: visible;
    transform: translateY(0px);
}
.select-options .option {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}
.select-options .option:last-child {
    border-bottom: none;
}
.select-options .option:hover {
    background: #f5f5f5;
}
.select-options .option.selected {
    background: #f0f0f0;
    font-weight: bold;
}
.filter-input {
    display: none;
}
@media only screen and (max-width: 992px) {
    .btn-filters {
        grid-column: span 2;
    }
    .filter-items {
        width: 100%;
    }
}
@media only screen and (min-width: 768px) {
    .filter-wrap {
        background: linear-gradient(90deg, rgba(215, 180, 106, 0.7) 0%, #D7B46A 72.6%);
    }
}