/* Category Filter Styles */

.category-item {
    border-bottom: 1px solid #f8f9fa;
    padding-bottom: 0.5rem;
}

.category-item:last-child {
    border-bottom: none;
}

.category-item .dropdown-item {
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.category-item .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #3498db;
    text-decoration: none;
}

.category-item .dropdown-item.font-weight-bold {
    color: #2c3e50;
    font-size: 0.9rem;
}

.category-item .dropdown-item.text-muted {
    color: #6c757d !important;
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
}

.category-item .dropdown-item.text-muted:hover {
    color: #3498db !important;
    background-color: #d6eaf8;
}

/* Subcategory styling */
.category-item ul {
    border-left: 2px solid #e9ecef;
    margin-left: 0.5rem !important;
    padding-left: 0.5rem;
}

.category-item ul li {
    margin-bottom: 0.25rem;
}

/* Product count badges */
.text-gray-25 {
    color: #6c757d;
}

.font-size-11 {
    font-size: 0.7rem;
}

.font-size-12 {
    font-size: 0.75rem;
}

/* Hover effects */
.category-item .dropdown-item:hover .text-gray-25 {
    color: #3498db;
}

/* Active state */
.category-item .dropdown-item.active {
    background-color: #3498db;
    color: white;
}

.category-item .dropdown-item.active .text-gray-25 {
    color: rgba(255, 255, 255, 0.8);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .category-item .dropdown-item {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .category-item .dropdown-item.text-muted {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Filter section styling */
.sidebar-navbar {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.dropdown-toggle-collapse {
    background: #f8f9fa;
    border: none;
    padding: 1rem;
    width: 100%;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
}

.dropdown-toggle-collapse:hover {
    background: #e9ecef;
    color: #3498db;
}

.dropdown-list {
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

/* Custom scrollbar for filter list */
.dropdown-list::-webkit-scrollbar {
    width: 4px;
}

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

.dropdown-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.dropdown-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}