You are asking for a CSS selector this way: “Is there a CSS parent selector?”.
Starting your selector at .product
, you cannot ascend the DOM tree to give styles to parents or siblings respectively. You can either change the structure of your markup to match your wishes, or you can use JavaScript to select the elements you want to modify.
The nearest thing to this is, for instance, div.container:hover > div.product{color:red;}
, which alters the children when the parent is hovered.
So no, there is no “parent’s previous sibling” selector in CSS. You can’t achieve it with child selectors (>
) or sibling selectors (+
).