/* Products Page Styles */

.breadcrumb {
    background: var(--bg-light);
    padding: 15px 0;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary-color);
}

.breadcrumb span {
    margin: 0 10px;
    color: var(--text-light);
}

.products-page {
    padding: 40px 0 80px;
}

.page-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* Sidebar Filters */
.filters-sidebar {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-section {
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.filter-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 600;
}

.filter-list {
    list-style: none;
}

.filter-list li {
    margin-bottom: 10px;
}

.filter-list a {
    color: var(--text-light);
    font-size: 14px;
    display: block;
    padding: 8px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.filter-list a:hover,
.filter-list a.active {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 15px;
}

/* Price Filter */
.price-filter {
    padding: 10px 0;
}

#priceRange {
    width: 100%;
    margin-bottom: 15px;
}

.price-values {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 600;
}

/* Sort Select */
.sort-select {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Products Content */
.products-content {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.products-header h1 {
    font-size: 32px;
    color: var(--text-dark);
    font-weight: 700;
}

.view-options {
    display: flex;
    gap: 10px;
}

.view-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 16px;
}

.view-btn.active,
.view-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
}

/* List View */
.products-grid.list-view {
    grid-template-columns: 1fr;
}

.products-grid.list-view .product-card {
    display: flex;
    flex-direction: row;
}

.products-grid.list-view .product-image {
    width: 250px;
    height: 200px;
}

.products-grid.list-view .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.products-grid.list-view .product-info h3 {
    font-size: 20px;
    min-height: auto;
}

.products-grid.list-view .btn-add-cart {
    width: auto;
    align-self: flex-start;
    padding: 12px 30px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    background: var(--white);
    border: 2px solid var(--border-color);
    padding: 10px 15px;
    border-radius: 5px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 992px) {
    .page-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: static;
    }
    
    .products-header h1 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .products-content {
        padding: 20px;
    }
    
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .products-grid.list-view .product-card {
        flex-direction: column;
    }
    
    .products-grid.list-view .product-image {
        width: 100%;
        height: 280px;
    }
}

