﻿
/* Browse Products Page Styles */
.browse-products-container {
    min-height: 80vh;
}



.filters-sidebar {
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    padding: 20px;
    min-height: 80vh;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

    .filters-header h4 {
        margin: 0;
        color: #333;
    }

.filter-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

    .filter-section:last-child {
        border-bottom: none;
    }

    .filter-section h5 {
        color: #495057;
        font-weight: 600;
        margin-bottom: 15px;
        font-size: 1rem;
    }

.price-range-container {
    margin-top: 10px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

    .price-inputs input {
        flex: 1;
    }

.price-separator {
    color: #6c757d;
    font-weight: bold;
}

.price-slider {
    margin: 10px;
}

.category-list, .brand-list, .rating-filter {
    max-height: 200px;
    overflow-y: auto;
}

.form-check {
    margin-bottom: 8px;
    padding-left: 1.5rem;
}

.form-check-label {
    font-size: 0.9rem;
    color: #495057;
    cursor: pointer;
}

.brand-search {
    margin-bottom: 10px;
}

.filter-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #dee2e6;
}

.products-main {
    padding: 20px;
}

.products-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

    .products-header h3 {
        margin: 0;
        color: #333;
    }

.results-info {
    flex-grow: 1;
}

.sort-options {
    min-width: 200px;
}

.products-grid {
    min-height: 400px;
}

.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

    .empty-state i {
        opacity: 0.3;
    }

/* Responsive adjustments */
@media (max-width: 767px) {
    .filters-sidebar {
        margin-bottom: 20px;
        min-height: 200px;
    }

    .products-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .sort-options {
        margin-top: 10px;
        min-width: 100%;
    }

    .results-info {
        margin-bottom: 10px;
    }
}

/* jQuery UI Slider customization */
.ui-slider {
    background: #e9ecef;
    border: 1px solid #ced4da;
    height: 8px;
}

.ui-slider .ui-slider-handle {
    background: #C10134;
    border: 2px solid #C10134;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    top: -6px;
    cursor: pointer;
}

.ui-slider .ui-slider-handle:hover,
.ui-slider .ui-slider-handle:focus {
    background: #C10134;
    border-color: #C10134;
}

.ui-slider .ui-slider-range {
    background: #C10134;
}

/* Enhanced Filter Styles */
.filter-active {
    border-left: 3px solid #C10134;
    padding-left: 15px;
    background-color: #f8f9ff;
}

.filter-header {
    margin-bottom: 10px;
}

.filter-content {
    padding-left: 8px;
}

.clear-single-filter {
    border: none;
    background: transparent;
    color: #6c757d;
    padding: 2px 6px;
    font-size: 12px;
}

    .clear-single-filter:hover {
        color: #dc3545;
        background-color: #f8f9fa;
    }

.filters-sidebar-container {
    height: 100%;
    padding: 0.5rem;
    background-color: #F4ECE8;
}
    .filters-sidebar-container h5 {
        margin-top:1rem;
        margin-bottom:0.5rem;
    }


    .filters-list {
        flex-grow: 1;
    }

.filter-actions-header {
    display: flex;
    gap: 5px;
}

.filter-search input {
    border-radius: 4px;
}

.no-filters-message {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Collapsible filters for mobile */
@media (max-width: 767px) {
    .filter-section {
        border-bottom: 1px solid #dee2e6;
        padding-bottom: 15px;
        margin-bottom: 15px;
    }

        .filter-section:last-child {
            border-bottom: none;
        }
}

/* Filter animation */
.filter-section {
    transition: all 0.2s ease-in-out;
}

    .filter-section:hover {
        background-color: #f8f9fa;
        border-radius: 4px;
    }

.filters-main-title {
    margin: 0;
    color: #333;
    font-family: Roboto;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 150%;
    padding: 0;
}

.filter-title {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-family: Roboto;
    color: #2D3236;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 150%;
    padding: 0;
}