/* =============================================================
   Excavator Filter Bar — 主样式
   仿照参考图：横向布局，深色滑轨，灰色下拉框
   ============================================================= */

/* ----- 容器：横向排列，wrap 换行 ----- */
.exf-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 28px 32px;
    padding: 22px 28px;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 32px;
    box-sizing: border-box;
    width: 100%;
}

/* ----- 每个筛选组 ----- */
.exf-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

/* 滑块组宽度固定 */
.exf-slider-group {
    flex: 0 0 180px;
}

/* 下拉框组 */
.exf-select-group {
    flex: 0 0 160px;
}

/* ----- 标签 ----- */
.exf-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #2b2b2b;
    text-transform: uppercase;
    white-space: nowrap;
    user-select: none;
}

/* ----- noUiSlider 样式覆盖 ----- */
.exf-slider.noUi-target {
    height: 4px;
    border: none;
    background: #d4d4d4;
    box-shadow: none;
    border-radius: 2px;
    margin: 6px 0 4px;
}

.exf-slider .noUi-connect {
    background: #2b2b2b;
    border-radius: 2px;
}

.exf-slider .noUi-handle {
    width: 18px;
    height: 18px;
    top: -7px;
    right: -9px;
    border-radius: 50%;
    background: #2b2b2b;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.exf-slider .noUi-handle:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 10px rgba(0,0,0,0.45);
}

.exf-slider .noUi-handle::before,
.exf-slider .noUi-handle::after {
    display: none; /* 隐藏默认竖线 */
}

/* ----- 区间数值显示 ----- */
.exf-range-display {
    font-size: 12px;
    color: #b07d2e; /* 参考图的棕金色 */
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.exf-dash {
    color: #888;
}

/* ----- 下拉框 ----- */
.exf-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.exf-select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding: 8px 32px 8px 12px;
    font-size: 13px;
    color: #2b2b2b;
    background: #fff;
    border: 1px solid #c8c8c8;
    border-radius: 3px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.exf-select-wrap select:focus {
    border-color: #2b2b2b;
}

.exf-arrow {
    position: absolute;
    right: 10px;
    font-size: 10px;
    color: #555;
    pointer-events: none;
    line-height: 1;
}

/* ----- 加载提示 ----- */
#exf-loading {
    text-align: center;
    padding: 24px;
    color: #888;
    font-size: 14px;
}

/* ----- 无结果提示 ----- */
/* ----- 加载提示 ----- */
.exf-loading {
    font-size: 12px;
    color: #888;
    padding: 4px 0;
    margin-left: auto;
}

.exf-no-results {
    padding: 40px 0;
    text-align: center;
    color: #888;
    font-size: 15px;
}

/* ----- 产品网格（AJAX 返回时用） ----- */
.exf-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

/* ----- 响应式 ----- */
@media (max-width: 768px) {
    .exf-filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 18px 16px;
    }

    .exf-slider-group,
    .exf-select-group {
        flex: 1 1 100%;
        min-width: 100%;
    }
}
