/*
 * Tianhou Glass 2026 — RTL stylesheet.
 * Loaded automatically by WordPress for right-to-left locales (Arabic).
 * Flips every directional rule and swaps in an Arabic-friendly font stack.
 */

/* Fonts: Cairo provides Arabic glyphs (falls back to Sora/Inter for Latin) */
[dir="rtl"] {
	--tg-font-head: "Cairo", "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
	--tg-font-body: "Cairo", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* Hero glows */
[dir="rtl"] .tg-hero__glow--a {
	right: auto;
	left: -120px;
}

[dir="rtl"] .tg-hero__glow--b {
	left: auto;
	right: -100px;
}

/* Page-head glows */
[dir="rtl"] .tg-page-head__glow--a {
	right: auto;
	left: -140px;
}

[dir="rtl"] .tg-page-head__glow--b {
	left: auto;
	right: -140px;
}

/* Shop sidebar active indicator */
[dir="rtl"] .tg-shop-sidebar__link {
	border-left: 0;
	border-right: 2px solid transparent;
}

[dir="rtl"] .tg-shop-sidebar__link:hover {
	border-left-color: transparent;
	border-right-color: var(--tg-accent, #38bdf8);
}

[dir="rtl"] .tg-shop-sidebar__link.is-active {
	border-left-color: transparent;
	border-right-color: var(--tg-accent, #38bdf8);
}

/* Timeline */
[dir="rtl"] .tg-timeline::before {
	left: auto;
	right: 9px;
}

[dir="rtl"] .tg-timeline__item {
	padding-left: 0;
	padding-right: 44px;
}

[dir="rtl"] .tg-timeline__dot {
	left: auto;
	right: 0;
}

/* Story */
[dir="rtl"] .tg-story__frame {
	inset: 26px 26px -26px -26px;
}

[dir="rtl"] .tg-story__badge {
	right: auto;
	left: -10px;
}

[dir="rtl"] .tg-story__list li {
	padding-left: 0;
	padding-right: 34px;
}

[dir="rtl"] .tg-story__list li::before {
	left: auto;
	right: 0;
}

/* Values number watermark */
[dir="rtl"] .tg-value__num {
	right: auto;
	left: 18px;
}

/* Nav underline grows from the right */
[dir="rtl"] .tg-nav a::after {
	transform-origin: right;
}

/* Search form — outer/inner radii swap */
[dir="rtl"] .tg-search input[type="search"] {
	border-radius: 0 999px 999px 0;
	border-right: 1px solid var(--tg-line);
	border-left: 0;
}

[dir="rtl"] .tg-search button {
	border-radius: 999px 0 0 999px;
}

[dir="rtl"] .tg-search--overlay input[type="search"] {
	border-radius: 0 16px 16px 0;
	border-right: 1px solid var(--tg-line);
	border-left: 0;
	padding: 20px 58px 20px 20px;
}

[dir="rtl"] .tg-search--overlay button {
	border-radius: 16px 0 0 16px;
}

[dir="rtl"] .tg-search--overlay button:hover {
	transform: translateX(-2px);
}

/* Entry / blockquote */
[dir="rtl"] .tg-entry blockquote {
	border-left: 0;
	border-right: 3px solid var(--tg-accent);
	padding: 6px 22px 6px 0;
}

/* Card "read more" arrow points left in RTL */
[dir="rtl"] .tg-card__more::after {
	content: "←";
}

/* Focus outline position */
[dir="rtl"] .screen-reader-text:focus {
	left: auto;
	right: 8px;
}

/* Small screens */
@media (max-width: 560px) {
	[dir="rtl"] .tg-story__badge {
		left: -6px;
	}
}

/* ---------- WooCommerce RTL ---------- */
[dir="rtl"] .tg-woo .woocommerce-result-count {
	float: right;
}

[dir="rtl"] .tg-woo .woocommerce-ordering {
	float: left;
}

[dir="rtl"] .tg-product__badge {
	left: auto;
	right: 14px;
}

[dir="rtl"] .woocommerce-product-gallery__trigger {
	right: auto;
	left: 14px;
}

[dir="rtl"] .tg-cart__count {
	right: auto;
	left: -7px;
}

[dir="rtl"] .woocommerce table.shop_table th {
	text-align: right;
}

[dir="rtl"] .woocommerce-checkout #payment .place-order {
	text-align: left;
}

[dir="rtl"] .woocommerce form .form-row-first {
	float: right;
}

[dir="rtl"] .woocommerce form .form-row-last {
	float: left;
}

[dir="rtl"] .cart .remove {
	margin-inline-start: 0;
	margin-inline-end: 12px;
}

[dir="rtl"] .woocommerce .cart .actions .button {
	margin-inline-end: 0;
	margin-inline-start: 10px;
}

[dir="rtl"] .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions a {
	margin: 0 0 6px 6px;
}

[dir="rtl"] .woocommerce-customer-details address {
	direction: rtl;
}

[dir="rtl"] .tg-faq-detail__badge {
	width: 62px;
}