/* =============================================================================
   AURAE SKIN — right-to-left (Arabic) overrides. Loaded only when is_rtl().
   ========================================================================== */

/* Typography: IBM Plex Sans Arabic; Latin brand names fall back to the same stack. */
:root {
	--font-sans: "IBM Plex Sans Arabic", "Inter", "Helvetica Neue", Arial, sans-serif;
	--font-serif: "IBM Plex Sans Arabic", "Inter", "Helvetica Neue", Arial, sans-serif;
}
body { font-family: var(--font-sans); }
/* Letter-spacing breaks Arabic letter joining. */
html[dir="rtl"] :where(h1, h2, h3, h4, h5, h6, p, a, span, strong, em, b, small, li, label, legend, button, summary, input, textarea, select, option, th, td, dt, dd, figcaption, del, ins, time, nav, blockquote, bdi) { letter-spacing: 0 !important; font-family: "IBM Plex Sans Arabic", "Inter", "Helvetica Neue", Arial, sans-serif !important; }
.aur-hero__title,
.aur-promo__title,
.aur-duo__title,
.aur-trust__item,
.aur-trust__item h3,
.aur-btn--hero,
.aur-btn-outline,
.aur-promo__btn,
.aur-duo__more,
.aur-duo-card__cart,
.aur-contact-form__submit { font-family: var(--font-sans); }
.aur-hero__title { line-height: 1.3; }

/* Directional arrows point the other way. */
.aur-icon--arrow { transform: scaleX(-1); }
.aur-text-link:hover .aur-icon--arrow { transform: scaleX(-1) translateX(4px); }

/* ---------------------------------------------------------------- header -- */
.aur-nav > li.menu-item-has-children > a { padding-right: 2px; padding-left: 16px; }
.aur-nav > li.menu-item-has-children > a::before { right: auto; left: 0; }
.aur-cart-count, .aur-wishlist-count { right: auto; left: 0; }

/* Drawers open from the opposite sides. */
.aur-mobile-nav { left: auto; right: 0; transform: translateX(100%); }
.aur-cart-drawer { right: auto; left: 0; transform: translateX(-100%); }
.aur-mobile-nav.is-open, .aur-cart-drawer.is-open { transform: translateX(0); }

/* Search panel: magnifier on the left of the field. */
.aur-search-bar input[type="search"] { padding: 0 22px 0 64px; }
.aur-search-bar button { right: auto; left: 14px; }

/* ----------------------------------------------------- photo sections ----
   The campaign photos have their subjects on the right, so these sections
   keep their text on the left (aligned right) instead of mirroring. */
.aur-hero__inner,
.aur-promo__inner,
.aur-world { direction: ltr; }
.aur-hero__copy,
.aur-promo__copy,
.aur-world__body { direction: rtl; text-align: right; }
.aur-hero__ctas { justify-content: flex-start; }
/* Arabic headline runs wider; nudge the copy left, away from the product photos. */
@media (min-width: 1081px) {
	.aur-hero--bg .aur-hero__copy { margin-left: calc(-1 * clamp(40px, 9vw, 180px)); }
}

/* Marquee + price slider keep their mechanics. */
.aur-marquee { direction: ltr; }
.aur-range { direction: ltr; }
.aur-range__values { direction: ltr; }

/* ------------------------------------------------------------ cards ------ */
.aur-wishlist-toggle { right: auto; left: 10px; }
.aur-card__badges { left: auto; right: 10px; align-items: flex-end; }
.aur-duo-card__top .aur-wishlist-toggle { left: auto; }

/* ------------------------------------------------------------ shop ------- */
.aur-view-switch { float: left; margin: 0 0 24px 14px; }
.woocommerce .woocommerce-ordering { float: left; }
.woocommerce .woocommerce-result-count { float: right; }
.aur-check .aur-count { margin-left: 0; margin-right: auto; }
.woocommerce ul.products.is-view-list li.product.aur-card { text-align: right; }
@media (max-width: 900px) {
	.aur-shop-filters { inset: 0 0 0 auto; transform: translateX(100%); }
	.aur-shop-filters.is-open { transform: translateX(0); }
}

/* --------------------------------------------------------- mini cart ----- */
.widget_shopping_cart .woocommerce-mini-cart-item { padding: 18px 0 18px 28px; }
.widget_shopping_cart .woocommerce-mini-cart-item a.remove,
.widget_shopping_cart .woocommerce-mini-cart-item .remove { right: auto; left: 0; }

/* --------------------------------------------------------- misc ---------- */
.aur-faq__item summary::after { margin-right: 0; margin-left: 4px; }
.aur-contact-card__icon { right: auto; left: 26px; }
.aur-whatsapp { right: auto; left: 24px; }
@media (max-width: 640px) {
	.aur-whatsapp { left: 16px; }
}
.aur-footer__social { padding: 0; }
.aur-card__title a::after { left: 0; right: 0; }

/* Keep Latin sizes, product names and prices in their own reading order. */
.aur-pdp-size,
.aur-card__title a,
.aur-duo-card__name,
.aur-mega__name { unicode-bidi: isolate; }
.aur-pdp-size { direction: ltr; }
.aur-contact-card__value,
.aur-footer__links a[href^="tel:"],
.aur-footer__links a[href^="mailto:"],
.aur-range__val,
input[type="tel"],
input[type="email"] { direction: ltr; unicode-bidi: isolate; }
input[type="tel"],
input[type="email"] { text-align: right; }

/* --------------------------------------------------------- checkout ------ */
.aur-co-summary table.shop_table th, .aur-co-summary table.shop_table td { text-align: right; }
.aur-co-summary table.shop_table td:last-child { text-align: left; }
.aur-co-summary #shipping_method li { justify-content: flex-start; }
.aur-co-item__qty { right: auto; left: -7px; }
.aur-co-summary #payment div.payment_box { padding: 6px 30px 0 0; }
.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info,
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info { margin: 0 0 14px 8px; }
#billing_phone, #billing_email, #shipping_phone { direction: ltr; text-align: right; }

/* Notice icon on the right. */
.woocommerce-message, .woocommerce-info, .woocommerce-error { padding-left: 18px; padding-right: 50px; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { left: auto; right: 18px; }

/* Trust carousel scrolls in physical LTR so scrollLeft math stays positive. */
@media (max-width: 640px) {
	.aur-trust__grid { direction: ltr; }
	.aur-trust__item { direction: rtl; }
}

@media (max-width: 640px) {
	.aur-view-switch { float: right; margin: 0 0 18px; }
	.woocommerce .woocommerce-ordering { float: left; }
}

@media (max-width: 640px) {
	.aur-worlds__grid { direction: ltr; }
}

/* Cart totals: labels on the right, amounts on the left. */
.woocommerce-cart .cart_totals table.shop_table th { text-align: right; }
.woocommerce-cart .cart_totals table.shop_table td { text-align: left; }
.woocommerce-cart table.shop_table.cart .product-subtotal { text-align: left; }
