/* ==========================================================================
   Abyss TCG — Arabic (RTL) overrides. Loaded only when the site is in Arabic.
   ========================================================================== */

/* Arabic letters must never be spaced apart (it breaks the joining). */
html[dir="rtl"] body,
html[dir="rtl"] body *:not(.abyss-wordmark):not(.abyss-wordmark *) { letter-spacing: 0 !important; }
html[dir="rtl"] body { line-height: 1.75; }
html[dir="rtl"] .abyss-hero-title { line-height: 1.25; }
html[dir="rtl"] .abyss-h2, html[dir="rtl"] .abyss-page-title,
html[dir="rtl"] .woocommerce div.product .product_title { line-height: 1.3; }
html[dir="rtl"] .abyss-eyebrow { text-transform: none; font-size: 13px; }
html[dir="rtl"] .abyss-wordmark { direction: ltr; }

/* Arrows point the other way */
html[dir="rtl"] .abyss-ico-arrow svg { transform: scaleX(-1); }
html[dir="rtl"] .abyss-link:hover .abyss-ico { transform: translateX(-4px); }
html[dir="rtl"] .abyss-game:hover .abyss-game-arrow { transform: rotate(45deg); }

/* Header */
html[dir="rtl"] .abyss-cart-count { right: auto; left: 2px; }
html[dir="rtl"] .abyss-nav-list .sub-menu { left: auto; right: 0; }

@media (max-width: 1180px) {
	html[dir="rtl"] .abyss-brand { margin-right: 0; margin-left: auto; }
	html[dir="rtl"] .abyss-nav { left: auto; right: 0; border-right: 0; border-left: 1px solid var(--line); transform: translateX(100%); }
	html[dir="rtl"] .abyss-nav.is-open { transform: none; }
	html[dir="rtl"] .abyss-nav-list .sub-menu { padding: 0 12px 0 0; }
}
html[dir="rtl"].abyss-nav-drawer .abyss-brand { margin-right: 0; margin-left: auto; }
html[dir="rtl"].abyss-nav-drawer .abyss-nav { left: auto; right: 0; border-right: 0; border-left: 1px solid var(--line); transform: translateX(100%); }
html[dir="rtl"].abyss-nav-drawer .abyss-nav.is-open { transform: none; }

/* Product cards */
html[dir="rtl"] .abyss-badges { right: auto; left: 20px; align-items: flex-start; }
html[dir="rtl"] .woocommerce span.onsale { left: auto !important; right: 20px !important; }
html[dir="rtl"] .abyss-game-arrow { right: auto; left: 18px; }
html[dir="rtl"] .abyss-price-usd del { margin-left: 0; margin-right: 6px; }
html[dir="rtl"] .abyss-dot { margin-right: 0; margin-left: 6px; }
@media (max-width: 640px) {
	html[dir="rtl"] .abyss-badges { left: 14px; }
	html[dir="rtl"] .abyss-game-arrow { left: 10px; }
}

/* Prices, numbers, phone and email always read left-to-right */
html[dir="rtl"] .woocommerce-Price-amount,
html[dir="rtl"] .abyss-price-usd,
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[type="email"],
html[dir="rtl"] .abyss-code-input,
html[dir="rtl"] .abyss-biz-line a { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[type="email"] { text-align: right; }

/* WooCommerce tables & notices */
html[dir="rtl"] .woocommerce table.shop_table th,
html[dir="rtl"] .woocommerce table.shop_table td { text-align: right; }
html[dir="rtl"] .woocommerce-message,
html[dir="rtl"] .woocommerce-info,
html[dir="rtl"] .woocommerce-error { padding: 16px 52px 16px 20px !important; border-left: 1px solid var(--line-2) !important; }
html[dir="rtl"] .woocommerce-message { border-right: 3px solid var(--green) !important; }
html[dir="rtl"] .woocommerce-info { border-right: 3px solid var(--cyan) !important; }
html[dir="rtl"] .woocommerce-error { border-right: 3px solid var(--danger) !important; }
html[dir="rtl"] .woocommerce-message::before,
html[dir="rtl"] .woocommerce-info::before,
html[dir="rtl"] .woocommerce-error::before { left: auto !important; right: 1.5em !important; }
html[dir="rtl"] .woocommerce-message .button,
html[dir="rtl"] .woocommerce-info .button { float: left; }
html[dir="rtl"] .woocommerce .woocommerce-ordering { float: left; }
html[dir="rtl"] .woocommerce .woocommerce-result-count { float: right; }
html[dir="rtl"] .woocommerce table.cart td.actions .coupon .input-text { margin-right: 0; margin-left: 8px; }
html[dir="rtl"] .woocommerce-checkout #payment ul.payment_methods li input { margin: 0 0 0 1em; }
html[dir="rtl"] .woocommerce form .form-row .required { margin-right: 2px; }
html[dir="rtl"] .woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0 !important; }

/* Footer */
html[dir="rtl"] .abyss-footer-steps { padding-left: 0; padding-right: 20px; }
