
/* 容器 */
.collection-container {
    width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 面包屑导航 */
.collection-breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: #676767;
}

.collection-breadcrumb a {
    color: #676767;
    text-decoration: none;
}

.collection-breadcrumb a:hover {
    color: #c7141e;
}

.collection-breadcrumb-sep {
    margin: 0 8px;
}

.collection-breadcrumb-current {
    color: #c7141e;
}

/* ========== 集合横幅 - 图片作为底图，文字覆盖 ========== */
.collection-hero {
    position: relative;
    width: 100%;
    height: auto;
    margin-bottom: 40px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.collection-hero-bg {
    width: 100%;
    height: auto;
    object-fit: cover;
    z-index: 1;
}

.collection-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.collection-hero-content {
    position: relative;
    z-index: 3;
    padding: 50px 40px;
    max-width: 800px;
    color: white;
}

.collection-hero-description {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.95;
}

/* ========== 主内容区 - 侧边栏筛选 + 产品网格 ========== */
.collection-main {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

/* 侧边栏筛选 */
.collection-sidebar {
    flex: 0 0 280px;
    background-color: #f8f8f8;
    padding: 24px;
    border-radius: 0;
    align-self: flex-start;
}

.filter-section {
    margin-bottom: 28px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    font-size: 16px;
    font-weight: 700;
    color: #232323;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.filter-title .filter-icon {
    font-size: 18px;
    font-weight: 600;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.filter-title.active .filter-icon {
    transform: rotate(0deg);
}

.filter-options {
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.filter-options.collapsed {
    max-height: 0;
}

.filter-option {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-option label {
    font-size: 14px;
    color: #555;
    cursor: pointer;
    flex: 1;
}

.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #c7141e;
}

.filter-count {
    font-size: 12px;
    color: #999;
}

/* 价格范围输入框 */
.price-range {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.price-input {
    flex: 1;
}

.price-input label {
    font-size: 12px;
    color: #999;
    display: block;
    margin-bottom: 4px;
}

.price-input input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.price-input input:focus {
    outline: none;
    border-color: #c7141e;
}

.price-currency {
    font-size: 12px;
    color: #676767;
    margin-top: 8px;
    text-align: right;
}

/* 产品网格区域 */
.collection-products {
    flex: 1;
    min-width: 0;
}

/* 排序栏 */
.collection-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eaeaea;
}

.collection-count {
    font-size: 14px;
    color: #676767;
    font-weight: 500;
}

.collection-sort {
    display: flex;
    align-items: center;
    gap: 12px;
}

.collection-sort label {
    font-size: 14px;
    color: #676767;
}

.collection-sort select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    background-color: #fff;
    cursor: pointer;
}

.collection-sort select:focus {
    outline: none;
    border-color: #c7141e;
}

/* 产品网格 */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* 产品卡片 */
.product-card {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.product-card-media {
    position: relative;
    overflow: hidden;
    background-color: #f8f8f8;
    aspect-ratio: 1 / 1;
}

.product-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-media img {
    transform: scale(1.05);
}

.product-card-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-vendor {
    font-size: 12px;
    color: #c7141e;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.product-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #232323;
    line-height: 1.4;
    margin-bottom: 8px;
}

.product-card-sku {
    font-size: 11px;
    color: #999;
    margin-bottom: 12px;
}

.product-card-price {
    font-size: 1.8rem;
    font-weight: 600;
    color: #c7141e;
    margin-top: auto;
}
.product-card-price span {
    font-weight: 400;
    color: #676767;
    text-decoration: line-through;
    margin-left:10px;
}

/* 响应式 */
@media (max-width: 1100px) {
    .collection-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .collection-main {
        flex-direction: column;
    }

    .collection-sidebar {
        flex: auto;
        width: 100%;
    }

    .collection-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .collection-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .collection-hero-content {
        padding: 35px 20px;
    }

    .collection-hero-description {
        font-size: 14px;
    }

    .product-card-title {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .collection-grid {
        grid-template-columns: 1fr;
    }

    .collection-breadcrumb {
        font-size: 12px;
    }

    .collection-hero {
        min-height: 280px;
    }
}