
.filter-sidebar {
    background: white;
    border-radius: 12px;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc2626;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.875rem;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.wishlist-btn:hover {
    background: #fee2e2;
    color: #dc2626;
}

.rating-stars {
    color: #fbbf24;
}

.category-badge {
    background: #e5e7eb;
    color: #4b5563;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
}

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

.color-option {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
}

.color-option.selected::after {
    content: '';
    position: absolute;
    inset: -3px;
    border: 2px solid #2563eb;
    border-radius: 50%;
}

.sort-btn {
    background: white;
    border: 1px solid #e5e7eb;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.sort-btn:hover {
    background: #f3f4f6;
}

.cart-btn {
    background: #2563eb;
    color: white;
    border: none;
    transition: all 0.2s;
}

.cart-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.category-group {
    position: relative;
    margin-bottom: 10px;
}

.toggle-subcategories {
    cursor: pointer;
    font-size: 14px;
    color: #666;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.subcategory-list {
    padding-left: 20px;
    border-left: 1px dashed #ccc;
    margin-top: 5px;
}

.color-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.color-checkbox {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.color-checkbox:hover {
    border-color: #555;
    transform: scale(1.1);
}

.color-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.color-label input[type="radio"]:checked + .color-checkbox {
    border-color: #000; /* تغيير لون الحدود عند الاختيار */
    transform: scale(1.2); /* تكبير عند التحديد */
}

.filter-group .d-flex {
    display: flex;
    flex-wrap: wrap; /* يجعل العناصر تظهر بجانب بعضها وتنتقل لسطر جديد عند الحاجة */
    gap: 10px; /* مسافة بين الألوان */
}
