/* =============================================
   G5 POS — RTL Stylesheet (Arabic)
   Applied when body has dir="rtl"
   ============================================= */

[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

/* ---------- Header ---------- */
[dir="rtl"] .nav-menu {
  flex-direction: row-reverse;
}

[dir="rtl"] .lang-toggle {
  margin-left: 0;
  margin-right: 10px;
}

/* ---------- Navigation Mobile ---------- */
@media (max-width: 768px) {
  [dir="rtl"] .nav-menu {
    right: auto;
    left: -100%;
    flex-direction: column;
  }

  [dir="rtl"] .nav-menu.open {
    left: 0;
    right: auto;
  }

  [dir="rtl"] .lang-toggle {
    margin-right: 0;
  }
}

/* ---------- Section Headers ---------- */
[dir="rtl"] .section-subtitle::after {
  margin-left: 0;
  margin-right: 0;
}

[dir="rtl"] .section-header .section-subtitle::after {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Hero ---------- */
[dir="rtl"] .hero-content {
  text-align: right;
}

[dir="rtl"] .hero-buttons {
  justify-content: flex-start;
}

@media (max-width: 768px) {
  [dir="rtl"] .hero-content {
    text-align: center;
  }

  [dir="rtl"] .hero-buttons {
    justify-content: center;
  }
}

/* ---------- Cards ---------- */
[dir="rtl"] .about-card,
[dir="rtl"] .product-card,
[dir="rtl"] .contact-card {
  text-align: center;
}

/* ---------- Callback & Forms ---------- */
[dir="rtl"] .callback-info .info-item {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .callback-info .info-item i {
  margin-left: 0;
}

/* ---------- Form Elements ---------- */
[dir="rtl"] .form-control {
  text-align: right;
}

[dir="rtl"] select.form-control {
  background-position: left 16px center;
  padding-right: 16px;
  padding-left: 40px;
}

/* ---------- Footer ---------- */
[dir="rtl"] .footer-col h4::after {
  left: auto;
  right: 0;
}

[dir="rtl"] .footer-links a {
  text-align: right;
}

[dir="rtl"] .footer-links a:hover {
  padding-left: 0;
  padding-right: 5px;
}

[dir="rtl"] .footer-links a i {
  margin-right: 0;
  margin-left: 8px;
}

[dir="rtl"] .footer-contact-item {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .footer-newsletter {
  flex-direction: row-reverse;
}

[dir="rtl"] .footer-newsletter input {
  border-radius: 0 var(--radius) var(--radius) 0;
  text-align: right;
}

[dir="rtl"] .footer-newsletter button {
  border-radius: var(--radius) 0 0 var(--radius);
}

/* ---------- Breadcrumb ---------- */
[dir="rtl"] .breadcrumb {
  flex-direction: row-reverse;
}

/* ---------- Back to Top ---------- */
[dir="rtl"] .back-to-top {
  right: auto;
  left: 30px;
}

@media (max-width: 576px) {
  [dir="rtl"] .back-to-top {
    left: 20px;
    right: auto;
  }
}

/* ---------- Contact Page ---------- */
[dir="rtl"] .contact-form-section {
  direction: rtl;
}

/* ---------- Stats ---------- */
[dir="rtl"] .stat-item {
  text-align: center;
}
