/* Products Page - Search and Filter Styles */

/* Search input clear button */
#clear-search-btn {
    padding: 0.25rem 0.5rem;
    color: #6c757d;
    text-decoration: none;
}

#clear-search-btn:hover {
    color: #dc3545;
}

/* Active filter tags */
#active-filters h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

#filter-tags .badge {
    cursor: default;
    user-select: none;
}

#filter-tags .badge i {
    transition: transform 0.2s ease;
}

#filter-tags .badge i:hover {
    transform: scale(1.2);
}

/* Category filter active state */
.category-filter {
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.category-filter:hover {
    color: var(--bs-primary, #0d6efd);
    text-decoration: none;
}

.category-filter.active {
    font-weight: bold !important;
    color: var(--bs-primary, #0d6efd) !important;
}

.brand {
    color: #2a159b;
    font-weight: 500;
}

/* Category list styling */
#category-list li {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Search input focus state */
#search-input:focus {
    border-color: var(--bs-primary, #0d6efd);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Loading spinner */
#loading-spinner {
    color: var(--bs-primary, #0d6efd);
    font-size: 1.1rem;
}

/* Load more button */
#load-more-btn {
    min-width: 200px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

#load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #active-filters {
        margin-bottom: 1rem;
    }

    #filter-tags {
        gap: 0.5rem !important;
    }

    #filter-tags .badge {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.6rem !important;
    }
}