/* 分類頁面樣式 */
.category-banner {
    position: relative;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 40px;
}

.category-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-banner-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 50px;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
    color: white;
}

.category-banner-content h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.category-banner-content p {
    font-size: 16px;
    max-width: 500px;
}

/* 分類內容區域 */
.category-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

/* 篩選側邊欄 */
.filter-sidebar {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.filter-section {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.filter-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.filter-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.price-range {
    margin-bottom: 10px;
}

.price-inputs {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.price-inputs input {
    width: 80px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.price-inputs span {
    margin: 0 10px;
    color: var(--light-text);
}

.price-filter-btn {
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.price-filter-btn:hover {
    background-color: var(--primary-dark);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-option {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 14px;
    color: var(--light-text);
    user-select: none;
}

.filter-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #f1f1f1;
    border: 1px solid var(--border-color);
    border-radius: 3px;
}

.filter-option:hover .checkmark {
    background-color: #e9e9e9;
}

.filter-option input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.filter-option input:checked ~ .checkmark:after {
    display: block;
}

.filter-option .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.clear-filter-btn {
    width: 100%;
    padding: 10px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--light-text);
    cursor: pointer;
    transition: all 0.3s;
}

.clear-filter-btn:hover {
    background-color: #f9f9f9;
}

/* 產品容器 */
.products-container {
    display: flex;
    flex-direction: column;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.products-count {
    color: var(--light-text);
    font-size: 14px;
}

.products-count span {
    font-weight: 600;
    color: var(--text-color);
}

.products-sort {
    display: flex;
    align-items: center;
}

.products-sort label {
    margin-right: 10px;
    color: var(--light-text);
    font-size: 14px;
}

.products-sort select {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: white;
    color: var(--text-color);
    cursor: pointer;
}

/* 產品網格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* 分頁 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.pagination-btn {
    padding: 8px 15px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn i {
    font-size: 12px;
}

.prev-btn i {
    margin-right: 5px;
}

.next-btn i {
    margin-left: 5px;
}

.pagination-numbers {
    display: flex;
    margin: 0 15px;
}

.pagination-number {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    border-radius: 50%;
    border: none;
    background: none;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-number:hover {
    background-color: #f1f1f1;
}

.pagination-number.active {
    background-color: var(--primary-color);
    color: white;
}

/* 響應式設計 */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .category-content {
        grid-template-columns: 1fr;
    }
    
    .filter-sidebar {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .category-banner {
        height: 200px;
    }
    
    .category-banner-content {
        padding: 0 30px;
    }
    
    .category-banner-content h1 {
        font-size: 28px;
    }
    
    .products-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .products-count {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .category-banner-content h1 {
        font-size: 24px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .pagination-numbers {
        order: -1;
        width: 100%;
        justify-content: center;
        margin-bottom: 15px;
    }
} 