// Function to filter subcategories based on selected category
// Show only subcategories with matching data-category attribute
subCatSelect.value = ""; // Reset the subcategory dropdown
// Trigger filtering on category change
// Run filtering on page load to set the initial state