/* Xemry v3.9.38: English/Arabic product descriptions may be stored together.
   Show only the selected language, including XLP and native WooCommerce pages.
   CSS loads in the head: no post-paint JS swap and no extra API request. */
html[lang^="ar"] :is(.xm-copy-en,[lang="en"].xm-copy-en),
html[lang^="en"] :is(.xm-copy-ar,[lang="ar"].xm-copy-ar) { display: none !important; }

/* Older Aseel Weave descriptions use lang=ar on Arabic siblings rather
   than xm-copy-ar wrapper sections. Isolate their languages too. */
html[lang^="en"] .woocommerce-product-details__description > [lang^="ar"],
html[lang^="en"] .xm-full-description-content > [lang^="ar"],
html[lang^="ar"] .woocommerce-product-details__description:has(> [lang^="ar"]) > :not([lang^="ar"]),
html[lang^="ar"] .xm-full-description-content:has(> [lang^="ar"]) > :not([lang^="ar"]) {
  display:none !important;
}
