/* =========================================================================
 * MINERALIA — Arabic / RTL layout
 * Loaded only when the visitor switches the site to Arabic (see
 * mineralia_assets() in functions.php). Mirrors the layout and applies
 * the Cairo Arabic typeface to every element that shows Arabic text.
 * ========================================================================= */

html[dir="rtl"] body{
  font-family:'Cairo',var(--sans);
}
html[dir="rtl"] .brand-name,
html[dir="rtl"] .hero h1,
html[dir="rtl"] .section h2,
html[dir="rtl"] .source-note strong,
html[dir="rtl"] .site-footer h3,
html[dir="rtl"] .mineral-title,
html[dir="rtl"] .product-template-info h3{
  font-family:'Cairo',var(--serif);
  font-weight:700;
}

/* Topbar */
html[dir="rtl"] .topbar-items,
html[dir="rtl"] .topbar-item,
html[dir="rtl"] .topbar-right,
html[dir="rtl"] .lang-switch{
  flex-direction:row-reverse;
}

/* Header */
html[dir="rtl"] .header-inner{flex-direction:row-reverse}
html[dir="rtl"] .brand{flex-direction:row-reverse;text-align:right}
html[dir="rtl"] .header-actions{flex-direction:row-reverse}
html[dir="rtl"] .primary-nav ul{flex-direction:row-reverse}
html[dir="rtl"] .mobile-nav{text-align:right}

/* Hero */
html[dir="rtl"] .hero-inner{justify-content:flex-end}
html[dir="rtl"] .hero-copy{text-align:right;max-width:600px}
html[dir="rtl"] .hero.has-image:before{
  background:linear-gradient(270deg,rgba(0,0,0,.92) 0%,rgba(0,0,0,.60) 45%,rgba(0,0,0,.12) 100%);
}
html[dir="rtl"] .route-box{flex-direction:row-reverse}
html[dir="rtl"] .route-arrow{transform:scaleX(-1)}
html[dir="rtl"] .btn:hover span{transform:translateX(-4px)}

/* Sections */
html[dir="rtl"] .section-head{flex-direction:row-reverse}
html[dir="rtl"] .section-head > div{text-align:right}
html[dir="rtl"] .view-all{flex-direction:row-reverse}
html[dir="rtl"] .view-all-arrow{transform:scaleX(-1)}
html[dir="rtl"] .view-all:hover .view-all-arrow{transform:scaleX(-1) translateX(4px)}

/* Product cards */
html[dir="rtl"] .mineral-info,
html[dir="rtl"] .mineral-title,
html[dir="rtl"] .mineral-meta{text-align:right}
html[dir="rtl"] .mineral-bottom{flex-direction:row-reverse}
html[dir="rtl"] .onsale{left:auto;right:11px}
html[dir="rtl"] .minerals-grid .onsale{left:auto;right:12px}

/* Language switcher */
html[dir="rtl"] .lang-switch-menu{right:auto;left:0}
html[dir="rtl"] .lang-switch-toggle{flex-direction:row-reverse}
html[dir="rtl"] .lang-switch-option{flex-direction:row-reverse}
html[dir="rtl"] .lang-switch-option.is-active:after{margin-inline-start:0;margin-inline-end:auto}

/* Features & footer */
html[dir="rtl"] .features-inner{direction:rtl}
html[dir="rtl"] .feature{border-right:0;border-left:1px solid var(--line)}
html[dir="rtl"] .feature:last-child{border-left:0}
html[dir="rtl"] .footer-inner{direction:rtl;text-align:right}
html[dir="rtl"] .search-form{flex-direction:row-reverse}

@media(max-width:760px){
  html[dir="rtl"] .footer-inner{direction:rtl}
}
