/* English text needs room for longer labels without changing the Chinese layout. */
html[lang="ar"] { overflow-wrap: break-word; }
.english-home-heading { font-size: clamp(2.5rem, 4vw, 5rem); line-height: 1.15; max-width: 1100px; margin: 0 auto 24px; }
.english-featured-products:not(:has(a)) { display: none; }
.english-single-page { margin: 24px auto; padding: 32px; width: min(1200px, calc(100% - 32px)); border: 1px solid #e5e7eb; border-radius: 16px; background: #fff; }
.english-single-page h1 { margin-bottom: 24px; color: #172033; font-size: clamp(26px, 4vw, 40px); line-height: 1.25; font-weight: 700; }
.english-empty-copy { color: #64748b; line-height: 1.8; }
.english-contact-links { display: flex; flex-wrap: wrap; gap: 16px 28px; margin-top: 24px; color: #2563eb; }
.english-contact-links a { overflow-wrap: anywhere; }
@media (max-width: 767px) {
  .english-single-page { padding: 22px 18px; }
  .page a, .page span { padding: 6px 9px; }
  .home-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-category-title { white-space: normal; line-height: 1.4; min-height: 40px; }
}

/* Long translated UI labels may wrap without widening the page. */
.home-category-title, .cn-mobile-original .catalog-quick-links a, .cn-mobile-original .quiet-page-link { white-space: normal; overflow-wrap: anywhere; }
.cpcan .left, .cpcan .right { min-width: 0; overflow-wrap: anywhere; }

/* Keep the English page layout; only Arabic text reads right to left. */
html[lang="ar"] :is(h1, h2, h3, h4, h5, h6, p, label, dt, dd),
html[lang="ar"] .nav-link,
html[lang="ar"] .cat-item > span,
html[lang="ar"] .product-card > span,
html[lang="ar"] .product-card > div,
html[lang="ar"] .catalog-category-copy,
html[lang="ar"] .catalog-sub-link > span,
html[lang="ar"] .drawer-header .min-w-0 > span,
html[lang="ar"] .quiet-page-link,
html[lang="ar"] .cpcan .left,
html[lang="ar"] .cp_con,
html[lang="ar"] input[name="country"],
html[lang="ar"] textarea { direction: rtl; unicode-bidi: isolate; }
html[lang="ar"] .cat-item > span { width: 100%; }
html[lang="ar"] .product-card > span,
html[lang="ar"] .product-card > div,
html[lang="ar"] .cn-mobile-original .catalog-category-copy { text-align: right; }
html[lang="ar"] .cn-mobile-original .catalog-category-copy { line-height: 1.65; }
html[lang="ar"] .header-phone,
html[lang="ar"] a[href^="tel:"], html[lang="ar"] a[href^="mailto:"],
html[lang="ar"] input[type="tel"], html[lang="ar"] input[name="checkcode"],
html[lang="ar"] .home-video-title,
html[lang="ar"] .home-video-category { direction: ltr; unicode-bidi: isolate; }
