/* ==========================================================================
   RTL 覆写（阿拉伯语）
   只在 is_rtl() 时由 functions.php 追加加载，排在 style.css 之后。
   只处理「镜像会错位」的地方：横向 flex、绝对定位的下拉、内外边距、
   列表符号、以及必须保持左到右的型号/规格数字。
   ========================================================================== */

body {
	direction: rtl;
	text-align: right;
}

/* —— 页头 —— */
.site-top .container,
.site-header .container,
.site-actions {
	flex-direction: row-reverse;
}

.site-top__contacts {
	direction: rtl;
}

.main-nav ul {
	flex-direction: row-reverse;
}

.main-nav .sub-menu {
	left: auto;
	right: 0;
	text-align: right;
}

.main-nav a {
	text-align: right;
}

.lang-switch__menu {
	right: auto;
	left: 0;
	text-align: right;
}

.lang-switch__menu a {
	flex-direction: row-reverse;
}

.nav-toggle,
.nav-close {
	margin-left: 0;
	margin-right: auto;
}

/* —— 面包屑与标题 —— */
.breadcrumb,
.product-crumb,
.cat-banner__crumb {
	direction: rtl;
}

.breadcrumb a::after,
.product-crumb a::after {
	content: "‹";
	margin: 0 0.4em 0 0;
}

.breadcrumb a::before,
.product-crumb a::before {
	content: none;
}

/* —— 首页区块 —— */
.hero__content {
	text-align: right;
}

.hero__nav {
	flex-direction: row-reverse;
}

.hero__arrow svg {
	transform: scaleX(-1);
}

.features,
.about-grid,
.about-stats,
.news-grid,
.product-grid,
.brand-grid,
.footer-cols,
.form-grid,
.proj-card__meta {
	direction: rtl;
}

.feature,
.about-copy,
.news-card__body,
.product-tile__body,
.proj-card__body {
	text-align: right;
}

/* —— 产品页 —— */
.product-specs__row {
	flex-direction: row-reverse;
}

.product-specs__row dt {
	text-align: right;
}

.product-specs__row dd {
	text-align: left;
}

.product-actions,
.product-assurance,
.product-compliance__list li,
.product-summary__wa {
	flex-direction: row-reverse;
	text-align: right;
}

.product-gallery__thumbs {
	direction: rtl;
}

/* 型号、尺寸、公差这类内容必须保持左到右，否则 2100 × 900 会读反 */
.product-tile__model,
.product-specs__row dd,
.product-specs__row dt[data-ltr],
.product-summary__kicker,
.osm-ltr {
	direction: ltr;
	unicode-bidi: embed;
	text-align: right;
}

/* —— 表单 —— */
.field input,
.field textarea,
.field select {
	direction: rtl;
	text-align: right;
}

.field input[type="email"],
.field input[type="tel"],
.field input[type="url"] {
	direction: ltr;
	text-align: right;
}

.form-note,
.form-message {
	text-align: right;
}

/* —— 页脚 —— */
.footer-col,
.footer-col--contact,
.footer-bottom,
.footer-legal,
.footer-menu__label {
	text-align: right;
}

.footer-bottom {
	flex-direction: row-reverse;
}

.footer-legal a::after {
	content: none;
}

/* —— 回到顶部按钮 —— */
.to-top,
#toTop {
	right: auto;
	left: 24px;
}

/* —— 列表 —— */
.landing-copy ul,
.landing-copy ol,
.entry-content ul,
.entry-content ol {
	padding-right: 1.4em;
	padding-left: 0;
}

.landing-copy li::marker {
	text-align: right;
}
