/* Language switcher */
.language .language-select.active,
.language .language-select.active .language-title-dropdown {
	font-weight: 700;
}

/* Language buttons at the top of the mobile menu */
.mobile-menu-languages {
	display: flex;
	gap: 8px;
	padding: 12px 15px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-menu-languages button {
	flex: 1;
	padding: 8px 4px;
	font-size: 14px;
	line-height: 1.6;
	color: rgba(44, 54, 64, 1);
	background: #fff;
	border: 1px solid rgba(44, 54, 64, 0.25);
	border-radius: 4px;
}

.mobile-menu-languages button.active {
	font-weight: 700;
	color: #fff;
	background: rgba(44, 54, 64, 1);
	border-color: rgba(44, 54, 64, 1);
}

/* Hindi: the theme fonts have no Devanagari glyphs */
html[lang="hi"] body,
html[lang="hi"] input,
html[lang="hi"] select,
html[lang="hi"] textarea,
html[lang="hi"] button {
	font-family: "Noto Sans Devanagari", Arial, sans-serif;
}

/* Urdu: Nastaliq needs far more vertical room than Latin text or it clips */
html[lang="ur"] body,
html[lang="ur"] h1,
html[lang="ur"] h2,
html[lang="ur"] h3,
html[lang="ur"] h4,
html[lang="ur"] h5,
html[lang="ur"] p,
html[lang="ur"] li,
html[lang="ur"] td,
html[lang="ur"] th,
html[lang="ur"] label,
html[lang="ur"] input,
html[lang="ur"] select,
html[lang="ur"] textarea,
html[lang="ur"] button,
html[lang="ur"] a:not(.fa),
html[lang="ur"] span:not(.fa) {
	font-family: "Noto Nastaliq Urdu", "Noto Naskh Arabic", Tahoma, sans-serif;
}

html[lang="ur"] body {
	line-height: 2.1;
}

html[lang="ur"] h1,
html[lang="ur"] h2,
html[lang="ur"] h3,
html[lang="ur"] .title {
	line-height: 1.9;
}

html[lang="ur"] .dropdown-menu a,
html[lang="ur"] .j-menu a,
html[lang="ur"] .btn {
	line-height: 1.9;
}

html[lang="ur"] input,
html[lang="ur"] select {
	height: auto;
	min-height: 40px;
}

/* The homepage runs slightly wider than the window. Harmless in LTR, but RTL starts from the
   other edge and shows it as a shifted page. clip, not hidden, so sticky headers keep working. */
html[dir="rtl"],
html[dir="rtl"] body {
	overflow-x: clip;
}

/* Product text that is still English keeps reading left to right inside the RTL page */
html[dir="rtl"] [dir="ltr"] {
	text-align: left;
}

/* Homepage category grid */
#custom-category-products .product-layout {
	float: inline-start;
}

/* Translated long content */
.i18n-content[dir="rtl"] {
	text-align: right;
}

.i18n-content ul {
	margin: 0 0 12px;
	padding-inline-start: 24px;
}

.i18n-content p,
.i18n-content li {
	margin-bottom: 8px;
}
