/* Bộ lọc sản phẩm NTF */

.ntf-filter {
    font-size: 14px;
}

.ntf-group {
    border: 0;
    padding: 0;
    margin: 0 0 18px;
}

.ntf-group-title {
    font-weight: 600;
    padding: 0 0 6px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.02em;
}

.ntf-group-body {
    max-height: 210px;
    overflow-y: auto;
    padding-right: 4px;
}

.ntf-option {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 3px 0;
    cursor: pointer;
    line-height: 1.35;
}

.ntf-option input[type="checkbox"] {
    margin: 0;
    flex: 0 0 auto;
}

.ntf-option-name {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ntf-count {
    color: #8a8f98;
    font-size: 12px;
}

.ntf-option-disabled {
    opacity: 0.45;
    pointer-events: none;
}

/* Mục chọn loại sản phẩm (chế độ tự động) */
.ntf-group-type {
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7ea;
}

.ntf-group-type .ntf-option-name {
    font-weight: 600;
}

/* Ô màu */
.ntf-swatch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.2);
    flex: 0 0 auto;
}

/* Thanh trượt hai đầu */
.ntf-slider {
    position: relative;
    height: 22px;
    margin: 4px 2px 0;
}

.ntf-slider input[type="range"] {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    margin: 0;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    height: 22px;
}

.ntf-slider input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    background: #e0e2e6;
    border-radius: 2px;
    margin-top: 9px;
}

.ntf-slider input[type="range"]::-moz-range-track {
    height: 4px;
    background: #e0e2e6;
    border-radius: 2px;
}

.ntf-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    pointer-events: auto;
    width: 16px;
    height: 16px;
    margin-top: -6px;
    border-radius: 50%;
    background: #012b38;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.ntf-slider input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #012b38;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.ntf-slider-labels {
    margin-top: 4px;
    color: #555;
    font-size: 13px;
}

/* Nút */
.ntf-filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ntf-btn {
    display: inline-block;
    padding: 8px 22px;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    line-height: 1.4;
}

.ntf-btn-submit {
    background: #012b38;
    color: #fff;
}

.ntf-btn-reset {
    background: #eef0f2;
    color: #333;
}

/* Không có JS thì nút Lọc là bắt buộc; có JS sẽ tự ẩn (lọc ngay khi đổi) */
.ntf-filter.ntf-js .ntf-btn-submit {
    display: none;
}

/* Trạng thái đang tải khi thay kết quả bằng fetch */
.ntf-loading-results {
    opacity: 0.4;
    transition: opacity 0.15s;
    pointer-events: none;
}
