/**
 * GCS Product Filters - Frontend Styles
 */

.gcs-product-filters {
    /* Container styles */
}

/* Filter Cards */
.gcs-filter-card {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

.gcs-filter-card .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    cursor: pointer;
    user-select: none;
}

.gcs-filter-card.collapsed .card-header {
    border-bottom: none;
}

.gcs-filter-header:hover {
    background-color: #e9ecef;
}

.gcs-toggle-icon {
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
}

.gcs-filter-card .card-body {
    padding: 1rem;
}

/* Active Filters */
.gcs-active-filters .badge {
    font-size: 0.875rem;
    font-weight: normal;
    padding: 0.5rem 0.75rem;
    display: inline-flex;
    align-items: center;
}

.gcs-active-filters .btn-close {
    font-size: 0.65rem;
    padding: 0;
    width: 0.75rem;
    height: 0.75rem;
    opacity: 0.8;
}

.gcs-active-filters .btn-close:hover {
    opacity: 1;
}

/* Filter Options */
.gcs-filter-options {
    max-height: 180px;
    overflow-y: auto;
    overflow-x: hidden;
}

.gcs-filter-options::-webkit-scrollbar {
    width: 6px;
}

.gcs-filter-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.gcs-filter-options::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.gcs-filter-options::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Form Controls */
.gcs-filter-option {
    padding: 0.25rem 0;
}

.gcs-filter-option label {
    cursor: pointer;
    margin-bottom: 0;
    width: 100%;
}

.gcs-count {
    color: #6c757d;
    font-size: 0.875rem;
}

.gcs-term-search {
    margin-bottom: 0.5rem !important;
}

/* Sort Select */
.gcs-sort-select {
    width: 100%;
}

/* Search Input */
.gcs-search-input {
    width: 100%;
}

/* Loading State */
.gcs-filter-loading {
    pointer-events: none;
}

/* Responsive */
@media (max-width: 767px) {
    .gcs-filter-card .card-header {
        padding: 0.5rem 0.75rem;
    }
    
    .gcs-filter-card .card-body {
        padding: 0.75rem;
    }
    
    .gcs-filter-options {
        max-height: 150px;
    }
}

/* Bootstrap Collapse Animation */
.collapse {
    transition: height 0.2s ease;
}

.collapsing {
    transition: height 0.2s ease;
}
