/**
 * Spectrum/Collection Page Styles
 * 横向滚动卡片布局 - 与4列网格完全不同
 */

.spectrum-page {
    padding-top: 80px;
}

/* Page Header */
.page-header {
    padding: 6rem 0 3rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, #34495e 100%);
    color: white;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 0.75rem;
    color: white;
}

.page-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
}

/* Filters - 改为浮动胶囊样式 */
.filters {
    padding: 2rem 0;
    background-color: transparent;
    position: relative;
    z-index: 100;
    margin-top: -2rem;
}

.filters-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.filter-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.filter-select {
    padding: 0.25rem 1.5rem 0.25rem 0.5rem;
    border: none;
    background: transparent;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232c3e50' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
}

.results-count {
    font-size: 0.875rem;
    color: var(--text-muted);
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Products Section - 横向滚动布局 */
.products-section {
    padding: 4rem 0 6rem;
    background-color: var(--background);
    min-height: 50vh;
}

/* 横向滚动容器 */
.products-scroll-container {
    position: relative;
    padding: 0 2rem;
}

.products-scroll {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 2rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.products-scroll::-webkit-scrollbar {
    display: none;
}

/* 产品卡片 - 横向布局 */
.product-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-image {
    aspect-ratio: 4/5;
    overflow: hidden;
    background-color: var(--background);
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: var(--accent);
    color: white;
    border-radius: 50px;
}

.product-badge.sale {
    background-color: var(--error);
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
    line-height: 1.3;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

.price-current {
    color: var(--accent);
}

.price-sale {
    color: var(--error);
}

.price-original {
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 0.5rem;
    font-weight: 400;
    font-size: 1rem;
}

/* 滚动指示器 */
.scroll-indicator {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-muted);
    opacity: 0.3;
}

.scroll-dot.active {
    opacity: 1;
    background-color: var(--accent);
}

/* 滚动按钮 */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary);
    z-index: 10;
    transition: all 0.3s ease;
}

.scroll-btn:hover {
    background: var(--accent);
    color: white;
}

.scroll-btn.prev {
    left: 0;
}

.scroll-btn.next {
    right: 0;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .product-card {
        flex: 0 0 280px;
    }
    
    .filters-inner {
        flex-direction: column;
        gap: 1rem;
    }
    
    .scroll-btn {
        display: none;
    }
}
