/* css/style.css */

/* 产品分类和筛选区域美化 */
.card-category {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: none;
    margin-bottom: 20px;
}

.card-category .card-header {
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 16px 20px;
    border-radius: 12px 12px 0 0 !important;
}

.card-category .card-body {
    padding: 0;
}

.card-category .list-group-item {
    border: none;
    padding: 15px 20px;
    transition: all 0.2s ease;
    border-radius: 0;
    font-weight: 500;
}

.card-category .list-group-item.active {
    background-color: #e3f2fd !important;
    color: #1976d2;
    font-weight: 600;
}

.card-category .list-group-item.active a {
    color: #1976d2 !important;
}

.card-category .list-group-item:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

.card-category .list-group-item a {
    color: #495057;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.card-category .list-group-item a i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.card-category .badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    background-color: #e9ecef;
}

.card-filters {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: none;
    margin-bottom: 20px;
}

.card-filters .card-header {
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 16px 20px;
    border-radius: 12px 12px 0 0 !important;
}

.card-filters .card-body {
    padding: 0;
}

.card-filters .mb-4 {
    margin-bottom: 0 !important;
}

.card-filters .border-bottom {
    border-bottom: 1px solid #e9ecef !important;
}

.card-filters .text-muted {
    color: #6c757d !important;
    font-weight: 500;
    font-size: 0.875rem;
}

.card-filters .btn {
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 0.85rem;
    margin: 2px 4px 2px 0;
    transition: all 0.2s ease;
    height: 36px;
    min-width: 80px;
    text-align: center;
}

.card-filters .btn-outline-primary {
    border-color: #0d6efd;
    color: #0d6efd;
}

.card-filters .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.card-filters .btn-outline-primary:hover,
.card-filters .btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
}

/* 产品卡片样式 */
.product-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.product-card .product-image {
    height: 180px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.product-card .card-body {
    padding: 15px;
}

.product-card .card-title {
    font-weight: 600;
    height: 44px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card .price-tag {
    font-size: 1.25rem;
    font-weight: 700;
    color: #dc3545;
}

.product-card .price-tag del {
    color: #6c757d;
    margin-left: 5px;
    font-size: 0.9rem;
}

.product-card .feature-badge {
    color: #6c757d;
    display: inline-block;
    background-color: #e9ecef;
    border-radius: 20px;
    padding: 3px 8px;
    margin: 2px;
    font-size: 0.85rem;
}

/* 筛选按钮组间距 */
.filter-group {
    gap: 8px;
}

/* 为选中的分类标题添加一些样式 */
.selected-category-title h6 {
    font-weight: bold;
    color: #495057; /* Bootstrap's secondary text color */
    border-bottom: 0px solid #dee2e6;
    padding-bottom: 0.25rem;
}

.applied-filters .badge {
    font-size: 0.85em;
    display: inline-flex;
    align-items: center;
}    

/* 产品系列链接的悬停效果 */
.nav-pills .series-link:not(.bg-primary):hover {
  background-color: #e9ecef;
  color: #0d6efd !important;
}
.nav-pills .series-link.bg-primary:hover {
  background-color: #0b5ed7; /* 稍暗一点的主色 */
}
#clear-all-filters {
    font-size: 0.8em;
    padding: 2px 6px;
}