It is true that Iran is an Islamic country, but the Dress Code in Iran is quite different from many other Islamic nations.
This comes from Iran’s deep cultural heritage and the presence of many ethnic groups across the country, each with its own traditions and ways of dressing.