/* Products Page Styles */

/* Breadcrumb */
.breadcrumb {
    background: var(--off-white);
    padding: 15px 0;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

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

.breadcrumb i {
    margin: 0 10px;
    font-size: 12px;
    color: var(--gray);
}

.breadcrumb span {
    color: var(--text);
    font-weight: 500;
}

/* Products Section */
.products-section {
    padding: 40px 0 80px;
    background: var(--off-white);
}

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

/* Filters Sidebar */
.filters-sidebar {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light-gray);
}

.filter-section h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--primary);
}

.clear-filters {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.clear-filters:hover {
    text-decoration: underline;
}

.filter-group {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--light-gray);
}

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

.filter-group h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary);
}

/* Price Range */
.price-range {
    margin-bottom: 15px;
}

.price-range input[type="range"] {
    width: 100%;
    margin-bottom: 15px;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 3px;
    background: var(--light-gray);
    outline: none;
}

.price-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-inputs input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.price-inputs span {
    color: var(--gray);
    font-size: 13px;
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-light);
    transition: var(--transition);
}

.checkbox-label:hover,
.radio-label:hover {
    color: var(--primary);
}

.checkbox-label input,
.radio-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.checkbox-label small {
    color: var(--gray);
    margin-left: auto;
}

.radio-label .stars {
    color: var(--gold);
    font-size: 12px;
}

/* Products Main */
.products-main {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.products-header h1 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--primary);
}

.products-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

#resultsCount {
    font-size: 14px;
    color: var(--gray);
}

.sort-dropdown select {
    padding: 10px 35px 10px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-size: 14px;
    background: var(--white);
    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='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

/* Products Grid in Products Page */
.products-main .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--light-gray);
}

.page-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--light-gray);
    background: var(--white);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text);
}

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

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

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

.page-dots {
    color: var(--gray);
    padding: 0 5px;
}

/* Responsive */
@media (max-width: 1200px) {
    .products-main .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .products-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: static;
        display: none; /* Could add a toggle button for mobile */
    }
    
    .products-main .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .products-main .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .products-main .products-grid {
        grid-template-columns: 1fr;
    }
}