/* ================================================================
   Freyma's — RTL overrides (Arabic layout)
   Applied when lang=ar (dir="rtl")
   ================================================================ */

/* Flip text alignment defaults */
body[dir="rtl"] {
  text-align: right;
}

/* Navigation — reverse flex order */
body[dir="rtl"] .header-inner   { flex-direction: row-reverse; }
body[dir="rtl"] .site-nav       { margin-inline-start: 0; margin-inline-end: auto; }
body[dir="rtl"] .lang-switcher  { margin-inline-start: 0; margin-inline-end: .5rem; }

/* Mobile menu */
body[dir="rtl"] .mobile-lang { flex-direction: row-reverse; }

/* Hero actions */
body[dir="rtl"] .hero-actions { flex-direction: row-reverse; }

/* Breadcrumb */
body[dir="rtl"] .breadcrumb { flex-direction: row-reverse; }

/* Back-to-top position */
body[dir="rtl"] .back-to-top { right: auto; left: 1.5rem; }

/* Form labels */
body[dir="rtl"] .form-label { text-align: right; }

/* Product card link arrow flip */
body[dir="rtl"] .product-card:hover .product-card-link svg {
  transform: translateX(-4px);
}

/* Gallery overlay: handled with logical properties in main.css */

/* Padding overrides for RTL nav links */
body[dir="rtl"] .nav-list { flex-direction: row-reverse; }

/* Footer grid */
body[dir="rtl"] .footer-grid { direction: rtl; }
body[dir="rtl"] .footer-social { flex-direction: row-reverse; }
body[dir="rtl"] .footer-bottom { flex-direction: row-reverse; }
body[dir="rtl"] .footer-legal  { flex-direction: row-reverse; }

/* Contact layout */
body[dir="rtl"] .contact-layout { direction: rtl; }
body[dir="rtl"] .contact-split { direction: rtl; }
body[dir="rtl"] .cii:hover { transform: translateX(-4px); }
body[dir="rtl"] .contact-panel-sub { direction: rtl; }
body[dir="rtl"] .contact-form-header h2::after { margin-right: 0; margin-left: auto; }

/* Contact V2 — RTL */
body[dir="rtl"] .contact-page-v2 { direction: rtl; }
body[dir="rtl"] .cx-card-eyebrow { letter-spacing: .1em; }
body[dir="rtl"] .cx-list-link svg,
body[dir="rtl"] .cx-map-pin-body a svg { transform: scaleX(-1); }
body[dir="rtl"] .cx-form-glow { right: auto; left: -100px; }
body[dir="rtl"] .cx-legal-deco { right: auto; left: -120px; }
body[dir="rtl"] .cx-map-pin { left: auto; right: 1.25rem; }
body[dir="rtl"] .cx-blob-1 { left: auto; right: -80px; }
body[dir="rtl"] .cx-blob-2 { right: auto; left: -60px; }
@media (max-width: 767px) {
  body[dir="rtl"] .cx-map-pin { right: .75rem; left: auto; }
}

/* Cert card actions */
body[dir="rtl"] .cert-actions { flex-direction: row-reverse; }

/* Why grid */
body[dir="rtl"] .why-card p { direction: rtl; }

/* Cookie banner */
body[dir="rtl"] .cookie-inner { flex-direction: row-reverse; }

/* Admin overrides (if ar ever used for admin) */
body[dir="rtl"] .admin-login-box { text-align: right; }
