/* ========== 通用基础样式（补充） ========== */
.section-padding {
    padding: 60px 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 8px 20px;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn--primary {
    background-color: #f58220;
    color: #fff;
}

.btn--primary:hover {
    background-color: #e07518;
}

.btn--outline {
    background-color: transparent;
    border: 2px solid #f58220;
    color: #f58220;
}

.btn--outline:hover {
    background-color: #f58220;
    color: #fff;
}

/* ========== 页面标题区 ========== */
.page-header {
    background-color: #000;
    color: #fff;
    padding: 50px 0;
    background-image: url('../images/banner.jpg');
    background-size: cover;
    background-position: center;
    /* background-blend-mode: overlay; */
}

.page-header__container {
    text-align: left;
}

.page-header__title {
    font-size: 48px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.page-header__desc {
    font-size: 18px;
    max-width: 600px;
    line-height: 1.6;
}

/* ========== 面包屑导航 ========== */
.breadcrumb {
    background-color: #f8f8f8;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb__container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.breadcrumb__link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.breadcrumb__link:hover {
    color: #f58220;
}

.breadcrumb__separator {
    color: #999;
    font-size: 14px;
}

.breadcrumb__current {
    color: #f58220;
    font-size: 14px;
    font-weight: 500;
}

/* ========== 产品列表页专属样式 ========== */
.products {
    background-color: #fff;
}

.products__container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

/* 左侧筛选栏 */
.products__sidebar {
    background-color: #f8f8f8;
    padding: 25px;
    height: fit-content;
}

.products__filter-group {
    margin-bottom: 30px;
}

.products__filter-title {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.products__category-list {
    list-style: none;
}

.products__category-item {
    margin-bottom: 10px;
}

.products__category-item.active .products__category-link {
    color: #f58220;
    font-weight: 700;
}

.products__category-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.products__category-link:hover {
    color: #f58220;
}

.products__category-link i {
    font-size: 10px;
}

.products__filter-list {
    list-style: none;
}

.products__filter-item {
    margin-bottom: 10px;
}

.products__filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
}

.products__filter-checkbox {
    accent-color: #f58220;
    width: 14px;
    height: 14px;
}

.products__clear-btn {
    width: 100%;
    padding: 10px;
}

/* 右侧产品列表 */
.products__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.products__results {
    font-size: 14px;
    color: #666;
}

.products__sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.products__sort-label {
    font-size: 14px;
    color: #666;
}

.products__sort-select {
    padding: 8px 15px;
    border: 1px solid #eee;
    background-color: #fff;
    font-size: 14px;
    color: #666;
    outline: none;
    cursor: pointer;
}

/* 产品网格 */
.products__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    border: 1px solid #eee;
    transition: box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-card__img-container {
    position: relative;
    overflow: hidden;
}

.product-card__img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card__img {
    transform: scale(1.05);
}

.product-card__wishlist {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.product-card__wishlist:hover {
    color: #f58220;
    background-color: #fff8f0;
}

.product-card__title {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin: 15px;
    line-height: 1.4;
}

.product-card__specs {
    font-size: 13px;
    color: #666;
    margin: 0 15px 15px;
    line-height: 1.6;
}


.product-card__title a {
text-decoration: none;
color: #333;
}

.product-card__specs a {
text-decoration: none;
color: #666;
}

.product-card__btn {
    width: calc(100% - 30px);
    margin: 0 15px 15px;
    padding: 10px;
}

/* 分页 */
.products__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.products__page-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #eee;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.products__page-btn.active {
    background-color: #f58220;
    color: #fff;
    border-color: #f58220;
}

.products__page-btn:hover:not(.active) {
    border-color: #f58220;
    color: #f58220;
}

.products__page-next,
.products__page-last {
    width: 40px;
    height: 40px;
}

/* ========== 响应式适配（产品列表页） ========== */
@media (max-width: 1200px) {
    .products__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .page-header__title {
        font-size: 40px;
    }
}

@media (max-width: 992px) {
    .products__container {
        grid-template-columns: 220px 1fr;
        gap: 30px;
    }
    
    .products__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products__container {
        grid-template-columns: 1fr;
    }
    
    .products__sidebar {
        margin-bottom: 30px;
    }
    
    .products__header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .page-header__title {
        font-size: 32px;
    }
    
    .page-header__desc {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .products__grid {
        grid-template-columns: 1fr;
    }
    
    .product-card__img {
        height: 200px;
    }
    
    .page-header {
        padding: 30px 0;
    }
    
    .page-header__title {
        font-size: 28px;
    }
    
    .products__pagination {
        flex-wrap: wrap;
    }
}
