Hi @KMcReynolds
I see 2 options, based on the complexity of your product portfolio:
1) small to medium product portfolio - you can create a custom deal property “Product family” (dropdown), the value of this property can be assigned with a workflow - each workflow branch will assign one value from your dropdown list based on Line item name is equal/contains
2) for a big portfolio/one that’s evolving all the time you can copy Line item name value to a deal using Zapier integration with HubSpot and work from there.
Hope one of these can help!