html[lang="ar"] .page-homepage .hero-copy {
  width: 100%;
  max-width: none;
  text-align: center;
}

html[lang="ar"] .page-homepage .hero-title--ar {
  width: 100%;
  white-space: nowrap;
  text-align: center !important;
  font-size: clamp(1.8rem, 6.4vw, 5.25rem);
  letter-spacing: -0.025em;
}

html[lang="ar"] .page-homepage .digital-section-desc {
  width: 100%;
  max-width: none;
  white-space: nowrap;
  text-align: center !important;
}

html[lang="ar"] .page-homepage :is(.section-head, .factory-stat, .product-body, .media-card .overlay) {
  direction: rtl;
}

html[lang="ar"] .size-ltr,
html[lang="ar"] bdi {
  direction: ltr;
  unicode-bidi: isolate;
}

html[lang="ar"] :is(.page-product, .page-alltile, .page-search, .page-search-result, .page-aboutus, .page-contactus, .page-branch, .page-catalog, .page-cooperation, .page-gallery, .page-gallery-detail, .page-digital-services, .page-knowledge-archive, .page-knowledge-article) main {
  direction: rtl;
  text-align: right;
}

html[lang="ar"] :is(.page-product, .page-alltile, .page-search, .page-search-result, .page-aboutus, .page-contactus, .page-branch, .page-catalog, .page-cooperation, .page-gallery, .page-gallery-detail, .page-digital-services, .page-knowledge-archive, .page-knowledge-article) :where(h1, h2, h3, h4, h5, h6, p, label, li, th, td, input, select, textarea) {
  direction: rtl;
  text-align: right;
}

html[lang="ar"] :is(.page-product, .page-alltile, .page-search, .page-search-result, .page-catalog) :where(.size-ltr, bdi) {
  direction: ltr;
  text-align: left;
}

/* Product section headings stay optically centred in the Arabic RTL layout. */
html[lang="ar"] .page-product main :where(h1, h2, h3),
html[lang="ar"] .page-product main :where(.section-head, .section-kicker, .section-title, .section-desc, .packing-title) {
  text-align: center !important;
}

html[lang="ar"] .page-product .section-desc {
  margin-inline: auto;
}

html[lang="ar"] .page-product .spec-header {
  position: relative;
  justify-content: center;
}

html[lang="ar"] .page-product .spec-header > div {
  width: 100%;
  padding-inline: 46px;
  text-align: center;
}

html[lang="ar"] .page-product .spec-header .spec-toggle {
  position: absolute;
  inset-inline-end: 14px;
}

@media (max-width: 767.98px) {
  html[lang="ar"] .page-homepage .digital-section-desc {
    white-space: normal;
  }
}
