Highly recommend reading Domenico Losurdo - Class struggle for more on this.
It gets into how there's not just a single class struggle, i.e. working class versus bourgeoisie, but many different and related class struggles. Both Marx and Engels held this multivariate view of class struggle too, and it was only later that chauvinists, anti-feminists, and imperialists restricted its meaning to the workplace only.