.filter-sidebar {
    width: 310px;
    background-color: rgb(250, 250, 250);
    padding: 24px;
    border-radius: 12px;
    height: fit-content;
    flex-shrink: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.filter-sidebar h3 {
    margin: 0;
    color: var(--contrary-calm);
    font-size: 2.0rem;
    font-weight: 700;
}

.clear-filters-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.clear-filters-btn:hover {
    color: var(--green-text);
}

.filter-group {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
}

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

.filter-group h4 {
    margin: 0 0 6px 0;
    font-size: 1.5rem;
    color: var(--contrary-calm);
    font-weight: 700;
}

.filter-desc {
    margin: 0 0 16px 0;
    font-size: 1.2rem;
    color: #999;
    line-height: 1.2;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 1.4rem;
    color: #999; /* Faint by default */
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Green text when selected */
.filter-group label:has(input:checked) {
    color: var(--green-text);
    font-weight: 600;
}

.filter-group label:hover {
    color: var(--green-text);
}

.filter-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    border-radius: 50%; /* Round shape */
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background-color: #fff;
}

.filter-group input[type="checkbox"]:checked {
    border-color: var(--green-text);
}

.filter-group input[type="checkbox"]:checked::after {
    content: "";
    width: 12px;
    height: 12px;
    background-color: var(--green-text);
    border-radius: 50%;
    display: block;
}

.filter-item-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.label-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.label-wrapper label {
    margin-bottom: 0; /* Override default label margin for wrapper */
}

.subclass-toggle {
    cursor: pointer;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.subclass-toggle:hover {
    background-color: #f0f0f0;
    color: var(--green-text);
}

.subclass-list {
    display: none; /* Toggled via JS */
    flex-direction: column;
    margin-top: 8px;
    padding-left: 28px;
    border-left: 1px solid #e0e0e0;
    margin-left: 10px;
}

.sub-label {
    font-size: 1.25rem !important;
    margin-bottom: 8px !important;
}

.store-search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.store-input {
    width: 100%;
    padding: 10px 35px 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1.4rem;
    outline: none;
    transition: all 0.2s ease;
    background-color: #fff;
}

.store-input.selected {
    color: var(--green-text);
    font-weight: 600;
}

.search-icon {
    position: absolute;
    right: 12px;
    color: #999;
    pointer-events: none;
}

#sidebar-store-dropdown {
    position: absolute;
    width: 310px;
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 100;
    margin-top: 5px;
    flex-direction: column;
}

.drop-down-element {
    padding: 10px 15px;
    font-size: 1.35rem;
    cursor: pointer;
    border-bottom: 1px solid #f9f9f9;
    color: #555;
    transition: all 0.2s ease;
}

.drop-down-element:hover {
    background-color: #f0faf4;
    color: var(--green-text);
}

.drop-down-element:last-child {
    border-bottom: none;
}

/* Price Range Slider Styles */
.range-container {
    position: relative;
    width: 100%;
    height: 30px;
    margin-top: 10px;
}

.range-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    background-color: var(--green-text);
    border-radius: 2px;
    z-index: 1;
}

.range-container::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
}

.range-container input[type="range"] {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    background: none;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    z-index: 2;
}

/* Style the range thumbs */
.range-container input[type="range"]::-webkit-slider-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--green-text);
    cursor: pointer;
    pointer-events: auto;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.range-container input[type="range"]::-moz-range-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--green-text);
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.price-values {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 1.8rem;
    color: var(--green-text);
    font-weight: 700;
}
