html[lang="fa"] .brand-slogan [data-typewriter],
html[lang="fa"] .brand-slogan,
html[lang="fa"] [data-typewriter][data-phrases*="از ایده"] {
  font-family:"Vazirmatn",Tahoma,Arial,sans-serif!important;
  font-feature-settings:"ss01" 1;
  font-weight:650;
  letter-spacing:normal;
  direction:rtl;
  unicode-bidi:plaintext;
}
/* Preserve the existing technical/monospace slogan style in English. */
html[lang="en"] .brand-slogan [data-typewriter]{font-family:var(--brand-font)!important}
.commerce-category-hero .commerce-subcategories{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,175px),1fr))!important;
  align-items:stretch!important;
  gap:9px!important;
  width:100%!important;
  max-height:none!important;
  overflow:visible!important;
  padding:3px 1px 4px!important;
  margin-top:13px!important;
  scrollbar-width:none;
}
.commerce-category-hero .commerce-subcategories>a{
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  min-width:0!important;
  min-height:49px!important;
  max-width:none!important;
  margin:0!important;
  padding:10px 12px!important;
  border:1px solid var(--border,#e5e7eb)!important;
  border-radius:13px!important;
  background:var(--surface,#fff)!important;
  white-space:normal!important;
  text-align:start!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.commerce-category-hero .commerce-subcategories>a>i{flex:0 0 auto;font-size:.92rem!important;color:var(--primary,#75439c)}
.commerce-category-hero .commerce-subcategories>a>span{flex:1 1 auto;min-width:0;line-height:1.65;font-size:.79rem;font-weight:700;overflow-wrap:anywhere}
.commerce-category-hero .commerce-subcategories>a>small{display:none!important}
.commerce-category-hero .commerce-subcategories>a:hover{border-color:var(--primary,#75439c)!important;background:var(--surface-tint,#f7f2fa)!important}
/* Compact multi-column mega categories, avoiding a second scrollbar. */
@media(min-width:981px){
  .nav-dropdown--commerce.open .commerce-mega-menu{
    height:auto!important;min-height:0!important;max-height:calc(100dvh - 115px)!important;
    overflow-y:auto!important;overflow-x:hidden!important;
  }
  .nav-dropdown--commerce.open .commerce-mega-roots,
  .nav-dropdown--commerce.open .commerce-mega-panels{
    height:auto!important;max-height:none!important;min-height:0!important;
    overflow:visible!important;scrollbar-width:none!important;scrollbar-gutter:auto!important;
  }
  .nav-dropdown--commerce .commerce-mega-panel__grid{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    align-content:start!important;
    gap:10px!important;
  }
  .nav-dropdown--commerce .commerce-mega-group{min-width:0!important;padding:9px 12px!important}
  .nav-dropdown--commerce .commerce-mega-group__links{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;gap:3px!important;max-height:none!important;overflow:visible!important}
  .nav-dropdown--commerce .commerce-mega-group__links>a{white-space:normal!important;overflow-wrap:anywhere!important}
}
@media(min-width:981px) and (max-width:1150px){.nav-dropdown--commerce .commerce-mega-panel__grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:680px){.commerce-category-hero .commerce-subcategories{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}.commerce-category-hero .commerce-subcategories>a{padding:9px!important;min-height:46px!important}}
@media(max-width:365px){.commerce-category-hero .commerce-subcategories{grid-template-columns:1fr!important}}
