Scotland can be independent _and_ be in the same economic market (ignoring UK and Spain willing to veto Scotland reentering EU out of spite / own political motives).
Spain parliament is against unilateral declarations of independence.
For background, it's because the Spanish government is afraid that recognizing independence movements legitimizes the Catalonian independence movement in their own country.
Very convenient of them isn’t it?