/* Category Page Specific Styles */

.breadcrumb-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 0;
    margin-top: 0;
}

.breadcrumb {
    background: none;
    margin-bottom: 15px;
    padding: 0;
}

.breadcrumb-item {
    font-size: 14px;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

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

.breadcrumb-item.active {
    color: var(--white);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

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

.btn-filter-toggle {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
}

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

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

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

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-check {
    padding-left: 1.75em;
}

.form-check-input {
    border-color: var(--border-color);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
    transition: color 0.3s;
}

.form-check-label:hover {
    color: var(--primary-color);
}

/* Price Range Inputs */
.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-range-inputs input {
    flex: 1;
    padding: 8px;
    font-size: 14px;
}

.price-range-inputs span {
    color: var(--text-light);
}

/* Products Toolbar */
.products-toolbar {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.results-count {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.toolbar-right .form-select {
    min-width: 200px;
    border-color: var(--border-color);
}

.toolbar-right .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 173, 239, 0.15);
}

/* Pagination */
.pagination {
    gap: 8px;
}

.page-link {
    border: none;
    background: var(--white);
    color: var(--text-dark);
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.page-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.page-item.active .page-link {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 64px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.empty-state-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 12px;
}

.empty-state-text {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 25px;
}

/* Responsive Design */
@media (max-width: 991px) {
    .filters-sidebar {
        position: static;
        margin-bottom: 30px;
    }

    .page-title {
        font-size: 32px;
    }

    .products-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-right .form-select {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .breadcrumb-section {
        padding: 25px 0;
    }

    .page-title {
        font-size: 28px;
    }

    .filters-sidebar {
        padding: 20px;
    }

    .filter-title {
        font-size: 16px;
    }
}

/* Loading State */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Filter Active Indicator */
.filter-active {
    position: relative;
}

.filter-active::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--secondary-color);
    border-radius: 50%;
}

/* Brand Filter Grid */
#brandFilters .form-check {
    margin-bottom: 8px;
}

/* Price Filter Button */
#applyPriceFilter {
    background: var(--primary-color);
    border: none;
    padding: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#applyPriceFilter:hover {
    background: var(--dark-color);
}

/* Clear Filters Button */
#clearFilters {
    border-color: var(--border-color);
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s;
}

#clearFilters:hover {
    background: var(--dark-color);
    border-color: var(--dark-color);
    color: var(--white);
}
