/* v3.2.8.263 — Language-aware category direction without altering responsive card sizing */
/* Home category grid preserves 4 / 2 columns and centered incomplete final row. */
html[lang^="fa"] body.home #products.sn-catalog-section .sn-family-grid,
html[lang^="ar"] body.home #products.sn-catalog-section .sn-family-grid {
  direction:rtl!important;
}
html[lang^="en"] body.home #products.sn-catalog-section .sn-family-grid,
html[lang^="ru"] body.home #products.sn-catalog-section .sn-family-grid {
  direction:ltr!important;
}
html[lang^="fa"] body.home #products.sn-catalog-section .sn-family-grid .sn-family-label,
html[lang^="ar"] body.home #products.sn-catalog-section .sn-family-grid .sn-family-label {
  direction:rtl!important;text-align:right!important;unicode-bidi:plaintext;
}
html[lang^="en"] body.home #products.sn-catalog-section .sn-family-grid .sn-family-label,
html[lang^="ru"] body.home #products.sn-catalog-section .sn-family-grid .sn-family-label {
  direction:ltr!important;text-align:left!important;unicode-bidi:plaintext;
}
html[lang^="fa"] body.home #products.sn-catalog-section .sn-family-grid .sn-family-label > span:first-child,
html[lang^="ar"] body.home #products.sn-catalog-section .sn-family-grid .sn-family-label > span:first-child {
  direction:rtl!important;text-align:right!important;unicode-bidi:plaintext;min-width:0;flex:1;
}
html[lang^="en"] body.home #products.sn-catalog-section .sn-family-grid .sn-family-label > span:first-child,
html[lang^="ru"] body.home #products.sn-catalog-section .sn-family-grid .sn-family-label > span:first-child {
  direction:ltr!important;text-align:left!important;unicode-bidi:plaintext;min-width:0;flex:1;
}
html[lang^="en"] body.home #products.sn-catalog-section .sn-family-grid .sn-family-arrow,
html[lang^="ru"] body.home #products.sn-catalog-section .sn-family-grid .sn-family-arrow {
  transform:scaleX(-1);flex-shrink:0;
}
/* Fix long Russian descriptions without clipping; keep the native card dimensions. */
html[lang^="ru"] body.home #products.sn-catalog-section .sn-family-grid .sn-family-label > span:first-child {
  overflow-wrap:anywhere;hyphens:auto;
}
