/**
 * FacetWP Toolbar Styles
 * FacetWP 功能条样式 - 结果数、排序、已选筛选、清空按钮
 */

/* 功能条容器 */
.lgdc-facetwp-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 20px;
    margin-bottom: 25px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

/* 左侧：结果计数 */
.lgdc-facetwp-results {
    font-size: 14px;
    color: #666666;
}

.lgdc-facetwp-results .count {
    font-weight: 600;
    color: #000000;
}

/* 中间：已选筛选条件 */
.lgdc-facetwp-selections {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.lgdc-facetwp-selections-label {
    font-size: 13px;
    color: #999999;
    margin-right: 5px;
}

.lgdc-facetwp-selection-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #ffffff;
    border: 1px solid #d4af37;
    border-radius: 20px;
    font-size: 12px;
    color: #333333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lgdc-facetwp-selection-tag:hover {
    background: #d4af37;
    color: #ffffff;
}

.lgdc-facetwp-selection-tag .remove {
    font-size: 14px;
    line-height: 1;
    opacity: 0.7;
}

.lgdc-facetwp-selection-tag:hover .remove {
    opacity: 1;
}

/* 清空所有按钮 */
.lgdc-facetwp-clear {
    font-size: 12px;
    color: #999999;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
    margin-left: 10px;
}

.lgdc-facetwp-clear:hover {
    color: #d4af37;
}

/* 右侧：排序 */
.lgdc-facetwp-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lgdc-facetwp-sort-label {
    font-size: 13px;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lgdc-facetwp-sort select {
    padding: 8px 35px 8px 15px;
    font-size: 13px;
    color: #333333;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    min-width: 150px;
}

.lgdc-facetwp-sort select:focus {
    outline: none;
    border-color: #d4af37;
}

/* 分页 */
.lgdc-facetwp-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.lgdc-facetwp-pager a,
.lgdc-facetwp-pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
    color: #333333;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.lgdc-facetwp-pager a:hover {
    background: #f5f5f5;
    border-color: #d4af37;
}

.lgdc-facetwp-pager .current {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}

.lgdc-facetwp-pager .prev,
.lgdc-facetwp-pager .next {
    padding: 0 15px;
}

/* 每页显示数量 */
.lgdc-facetwp-per-page {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666666;
}

.lgdc-facetwp-per-page select {
    padding: 6px 30px 6px 10px;
    font-size: 13px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    cursor: pointer;
}

/* 响应式 */
@media (max-width: 768px) {
    .lgdc-facetwp-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .lgdc-facetwp-selections {
        justify-content: flex-start;
        order: 3;
    }
    
    .lgdc-facetwp-sort {
        justify-content: space-between;
    }
    
    .lgdc-facetwp-sort select {
        flex: 1;
    }
}

/* FacetWP 默认样式覆盖 */
.facetwp-facet {
    margin-bottom: 20px;
}

.facetwp-facet-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333333;
    margin-bottom: 12px;
}

.facetwp-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: #555555;
    cursor: pointer;
    transition: color 0.2s;
}

.facetwp-checkbox:hover {
    color: #d4af37;
}

.facetwp-checkbox.checked {
    color: #000000;
    font-weight: 500;
}

.facetwp-checkbox .facetwp-counter {
    font-size: 12px;
    color: #999999;
    margin-left: auto;
}

.facetwp-slider-wrap {
    padding: 10px 0;
}

.facetwp-slider-reset {
    font-size: 12px;
    color: #999999;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 10px;
    display: inline-block;
}

.facetwp-slider-reset:hover {
    color: #d4af37;
}
