While working on my website, I encountered a problem with making a filter work for multiple criteria simultaneously. Specifically, I am trying to filter by both color and size of a stone at the same time. Currently, I am using CSS to hide products that do not meet the specified criteria when a checkbox is checked:
input[id="example"]:checked
I have attempted to display the matching product and hide others by default, but that approach has not been successful. Are there any alternative solutions to achieve this? (I understand that using JavaScript would be easier, but it is not allowed for this particular project)