/**
 * 产品分类页面额外样式
 * 补充taxonomy-products.php中的样式
 * 现代化设计风格
 */

 
.filter-section-header {
    position: relative;
    overflow: hidden;
}

 

.filter-section-header:hover::before {
    left: 100%;
}

/* 产品属性在卡片中的显示优化 */
.product-card .product-attributes {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.product-card .product-attributes .geniatech-product-attributes {
    margin: 0;
    font-size: 0.8rem;
}

.product-card .product-attributes .attributes-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-card .product-attributes .attributes-list li {
    margin-bottom: 3px;
    color: #777;
}

.product-card .product-attributes .attributes-list li strong {
    color: #555;
    font-weight: 500;
}

/* 筛选器滚动条样式 */
.filter-content::-webkit-scrollbar {
    width: 6px;
}

.filter-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.filter-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.filter-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 加载动画 - 限制在产品分类页面 */
.product-category-page .loading {
    position: relative;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-category-page .loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: product-loading-spin 1s linear infinite;
}

@keyframes product-loading-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 筛选器状态指示 */
.filter-item input:checked + .filter-label {
    color: #007cba;
    font-weight: 500;
}

.filter-item input:checked ~ .filter-count {
    background: #007cba;
    color: white;
}

/* 产品卡片悬停效果增强 */
.product-card:hover .product-title a {
    color: #E40011;
}

/* 产品标签样式增强 */
.product-tags {
    justify-content: center !important;
}

.product-tag.no-tags {
    opacity: 0.3;
    font-style: italic;
}

/* 筛选器响应式优化 */
@media (max-width: 768px) {
    .filter-content {
        max-height: 150px;
    }
    
    .filters-wrapper {
        padding: 15px;
    }
    
    .filter-actions {
        display: flex;
        gap: 10px;
    }
    
    .filter-actions .btn {
        flex: 1;
        margin-right: 0;
        text-align: center;
    }
    
    .ajax-pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .page-link {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
}

/* 无产品状态的美化 */
.no-products {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin: 20px 0;
}

.no-products::before {
    content: '🔍';
    display: block;
    font-size: 3rem;
    margin-bottom: 10px;
}

/* 结果计数的样式 */
.results-count {
    font-size: 1rem;
    color: #555;
}

.results-count::before {
    content: '📋 ';
}

/* 排序选择器样式 */
.sort-options select {
    cursor: pointer;
    transition: border-color 0.2s;
}

.sort-options select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}
