To be exact it is a little bit of everything... In addition to the fees and taxes you described, we have one factor that here is called "Lucro Brasil" ("Brazilian Profit" in English).
It works more or less like this: If I want to buy a $100 SSD overseas, I will need to pay $300 (ludicrous import taxes, customs, shipping, etc etc). Then one day a manufacturer decides to make the $100 SSD inside my country. Knowing that the overseas price of $100 is the final consumer price for sale with profits, costs etc already included, then the national SSD would cost me more or less the same $100, right?
Wrong. Why the manufacturer would sell me the national SSD for $100, if he can charge the $300 it would cost me to buy abroad? And that's what everyone does here. And I can not do anything because I can only buy within the country or abroad for the same $300, to purchase for $100 only if I make smuggling.