/* Corrections pour les filtres */
.filter-menu-radio {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 15px !important;
    margin: 30px 0 !important;
    padding: 20px !important;
    background: #f8f8f8 !important;
    border-radius: 8px !important;
    border: 1px solid #eee !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.filter-category-column {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    min-width: 0 !important;
}

.filter-category-header {
    background: #fff !important;
    padding: 12px !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
    border: 2px solid #ed1d24 !important;
}

.category-header-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    color: #333 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.filter-subcategory-vertical-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    max-height: 300px !important;
    overflow-y: auto !important;
}

.filter-radio-card {
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    min-height: 50px !important;
}

.filter-radio-input:checked + .filter-radio-label .filter-radio-card {
    border-color: #ed1d24 !important;
    background: linear-gradient(135deg, #ed1d24 0%, #ff4757 100%) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(237, 29, 36, 0.2) !important;
}

.filter-card-content {
    padding: 8px 10px !important;
}

.filter-card-content.horizontal {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.filter-category-info {
    flex: 1 !important;
    min-width: 0 !important;
}

.filter-category-info h4 {
    margin: 0 0 2px 0 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #333 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.filter-radio-input:checked + .filter-radio-label .filter-category-info h4 {
    color: white !important;
}

.filter-category-desc {
    font-size: 10px !important;
    color: #666 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.filter-radio-input:checked + .filter-radio-label .filter-category-desc {
    color: rgba(255, 255, 255, 0.8) !important;
}

.category-icon {
    width: 18px !important;
    height: 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.category-icon svg {
    width: 100% !important;
    height: 100% !important;
    fill: #ed1d24 !important;
}

.filter-radio-input:checked + .filter-radio-label .category-icon svg {
    fill: white !important;
}

/* Responsive */
@media (max-width: 1400px) {
    .filter-menu-radio {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
        gap: 12px !important;
        padding: 18px !important;
    }
}

@media (max-width: 1200px) {
    .filter-menu-radio {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
        gap: 12px !important;
        padding: 15px !important;
    }
    
    .category-header-title {
        font-size: 13px !important;
    }
}

@media (max-width: 1024px) {
    .filter-menu-radio {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
        gap: 10px !important;
        padding: 15px !important;
    }
}

@media (max-width: 768px) {
    .filter-menu-radio {
        display: block !important;
        padding: 15px !important;
    }

    .filter-category-column {
        margin-bottom: 20px !important;
    }

    .filter-category-header {
        position: relative !important;
        cursor: pointer !important;
    }

    .filter-category-header::after {
        content: '' !important;
        position: absolute !important;
        right: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 0 !important;
        height: 0 !important;
        border-left: 5px solid transparent !important;
        border-right: 5px solid transparent !important;
        border-top: 5px solid #333 !important;
        transition: transform 0.3s ease !important;
    }

    .filter-category-column.active .filter-category-header::after {
        transform: translateY(-50%) rotate(180deg) !important;
    }

    .filter-subcategory-vertical-list {
        display: none !important;
        padding: 10px 0 !important;
        max-height: none !important;
    }

    .filter-category-column.active .filter-subcategory-vertical-list {
        display: block !important;
    }
}

@media (max-width: 480px) {
    .filter-menu-radio {
        padding: 10px !important;
        margin: 20px 0 !important;
    }
    
    .filter-category-header {
        padding: 10px !important;
    }
    
    .category-header-title {
        font-size: 12px !important;
    }
}

/* Styles pour les catégories vides */
.empty-category {
    opacity: 0.6 !important;
}

.empty-category .filter-radio-card {
    background: #f5f5f5 !important;
    border-color: #ddd !important;
    cursor: not-allowed !important;
}

.empty-category .disabled-label {
    cursor: not-allowed !important;
}

.empty-category .filter-category-info h4 {
    color: #999 !important;
}

.empty-category .filter-category-desc {
    color: #bbb !important;
}

.empty-category .category-icon svg {
    fill: #ccc !important;
}

.empty-indicator {
    font-size: 9px !important;
    color: #999 !important;
    font-style: italic !important;
    margin-left: 5px !important;
}

/* Disabled input styling */
.filter-radio-input:disabled + .filter-radio-label {
    cursor: not-allowed !important;
}

.filter-radio-input:disabled + .filter-radio-label:hover .filter-radio-card {
    border-color: #ddd !important;
    background: #f5f5f5 !important;
}

/* Tooltip pour expliquer pourquoi une catégorie est désactivée */
.empty-category .filter-radio-label {
    position: relative !important;
}

.empty-category .filter-radio-label:hover::after {
    content: "Aucun produit disponible dans cette catégorie" !important;
    position: absolute !important;
    bottom: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #333 !important;
    color: white !important;
    padding: 6px 10px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
    z-index: 1000 !important;
    margin-bottom: 5px !important;
}

.empty-category .filter-radio-label:hover::before {
    content: "" !important;
    position: absolute !important;
    bottom: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border-left: 5px solid transparent !important;
    border-right: 5px solid transparent !important;
    border-top: 5px solid #333 !important;
    margin-bottom: 0px !important;
} 