I've been having trouble finding pairs of connectors. I need a set up exactly like https://www.artekit.eu/products/prototyping/wires/jst-ph-4-pin-cable-with-male-female-connector/
However, I need to buy the male and female parts separately. So, I'm looking at male connectors like https://www.digikey.com/product-detail/en/jst-sales-america-inc/S4B-ZR-LF-SN/455-1671-ND/926578
But then how, having just the male connector, do I go about finding a female connector which I know will fit into the male connector?
I'm having a lot of trouble figuring out how to verify my connectors will fit correctly. I would think the male and females would be linked in some manner that I'm missing?