/* Flatsome Product Filter Styles */

.fpf-filter-wrapper {
    max-width: 300px; /* Adjust as needed */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.fpf-filter-section {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.fpf-filter-section:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.fpf-filter-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #000;
}

.fpf-filter-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Radio & Checkbox Containers */
.fpf-radio-container, 
.fpf-checkbox-container {
    display: block;
    position: relative;
    padding-left: 32px;
    margin-bottom: 0px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    user-select: none;
    line-height: 24px;
}

/* Hide the browser's default radio/checkbox */
.fpf-radio-container input,
.fpf-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Custom Checkmark (Radios) */
.fpf-checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.fpf-radio-container:hover input ~ .fpf-checkmark {
    border-color: #3498db;
}

.fpf-radio-container input:checked ~ .fpf-checkmark {
    background-color: #3498db;
    border-color: #3498db;
}

.fpf-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.fpf-radio-container input:checked ~ .fpf-checkmark:after {
    display: block;
}

.fpf-radio-container .fpf-checkmark:after {
    top: 5px;
    left: 5px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
}

/* Custom Checkbox Checkmark */
.fpf-checkbox-checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.fpf-checkbox-container:hover input ~ .fpf-checkbox-checkmark {
    border-color: #3498db;
}

.fpf-checkbox-container input:checked ~ .fpf-checkbox-checkmark {
    background-color: #3498db;
    border-color: #3498db;
}

.fpf-checkbox-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.fpf-checkbox-container input:checked ~ .fpf-checkbox-checkmark:after {
    display: block;
}

.fpf-checkbox-container .fpf-checkbox-checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Price Range Styling */
.fpf-price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.fpf-input-price {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.fpf-input-price:focus {
    border-color: #3498db;
}

.fpf-separator {
    color: #999;
}

.fpf-apply-btn {
    background: #f4f6f8;
    color: #333;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

.fpf-apply-btn:hover {
    background: #e2e8f0;
}

/* Brands Scrollable List (if many brands) */
.fpf-brands-list {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 5px;
}

.fpf-brands-list::-webkit-scrollbar {
    width: 4px;
}

.fpf-brands-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.fpf-brands-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
