).toLowerCase();
            const productName = card.getAttribute('data-product') || '';
            
            if (deviceID.includes(searchTerm) || productName.includes(searchTerm)) {
                card.style.display = 'block';
            } else {
                card.style.display = 'none';
            }
        });
        
        // Update device count
        const visibleCount = document.querySelectorAll('.device-card:not([style*="display: none"])').length;
        const deviceCount = document.