/* 产品页面特有样式 */

/* 页面标题区域 */
.page-header {
    background-color: #f8f9fa;
    padding: 40px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid #e9ecef;
}

.page-header h1 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 10px;
}

.breadcrumbs {
    color: #6c757d;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: #0275d8;
}

/* 产品布局 */
.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* 侧边栏筛选区域 */
.products-sidebar {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    align-self: start;
    position: sticky;
    top: 100px;
}

.filter-section {
    margin-bottom: 25px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 20px;
}

.filter-section:last-of-type {
    border-bottom: none;
}

.filter-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #333;
}

.filter-list {
    margin-left: 5px;
}

.filter-list li {
    margin-bottom: 10px;
}

.filter-list label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.filter-list input[type="checkbox"] {
    margin-right: 10px;
}

/* 价格滑块区域 */
.price-range {
    margin-top: 15px;
}

.price-range input[type="range"] {
    width: 100%;
    margin-bottom: 15px;
}

.price-inputs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.price-inputs div {
    width: 48%;
}

.price-inputs label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #6c757d;
}

.price-inputs input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.9rem;
}

.price-apply {
    width: 100%;
}

.filter-reset {
    width: 100%;
    margin-top: 15px;
}

/* 产品内容区域 */
.products-content {
    width: 100%;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.products-count {
    color: #6c757d;
}

.products-sort {
    display: flex;
    align-items: center;
}

.products-sort label {
    margin-right: 10px;
    font-size: 0.95rem;
    color: #333;
}

.products-sort select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

/* 产品卡片增强样式 */
.product-card__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-card__actions .btn-sm {
    margin-top: 5px;
}

/* 分页导航 - Material Design风格 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 2.5rem 0;
    font-family: 'Roboto', Arial, sans-serif;
}

.pagination .page-item {
    margin: 0 3px;
}

.pagination .page-link {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    border-radius: 50%;
    font-size: 0.875rem;
    border: none;
    color: rgba(0, 0, 0, 0.87);
    background-color: transparent;
    transition: background-color 0.3s, color 0.3s;
    text-decoration: none;
}

.pagination .page-link:hover {
    background-color: rgba(0, 0, 0, 0.04);
    text-decoration: none;
}

.pagination .page-item.active .page-link {
    background-color: #1976d2;
    color: white;
    border: none;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(25, 118, 210, 0.2);
}

.pagination .page-item.disabled .page-link {
    color: rgba(0, 0, 0, 0.38);
    pointer-events: none;
}

/* 分页导航中的省略号样式 */
.pagination .page-item.disabled .page-link[href="#"] {
    background-color: transparent;
    border: none;
}

/* 特殊处理首页末页和前后页按钮 */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    border-radius: 50%;
}

/* 品牌区域 */
.brands {
    padding: 60px 0;
    background-color: white;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    align-items: center;
}

.brand-item {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.brand-item:hover {
    opacity: 1;
}

.brand-item img {
    max-height: 60px;
    max-width: 120px;
}

/* 响应式样式 */
@media (max-width: 992px) {
    .products-layout {
        grid-template-columns: 1fr;
    }

    .products-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }

    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .products-sort {
        margin-top: 15px;
    }

    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .brands-grid {
        grid-template-columns: 1fr;
    }
} 