/* ============================================
   RTL.CSS — Arabic Right-to-Left Overrides
   Geson Supply | gesonco.com
============================================ */

/* ── Base Direction ── */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  direction: rtl;
  text-align: right;
}

/* ── Navbar ── */
.nav-container {
  flex-direction: row-reverse;
}

.nav-links {
  flex-direction: row-reverse;
}

.nav-links li {
  margin-left: 0;
  margin-right: 0;
}

.nav-links a {
  padding: 0 8px 0 8px;
}

.lang-switcher {
  margin-left: 0;
  margin-right: auto;
}

.lang-dropdown {
  right: auto;
  left: 0;
}

.hamburger {
  margin-left: 0;
  margin-right: 0;
}

/* ── Mobile Nav ── */
.mobile-nav {
  text-align: right;
}

.mobile-nav a {
  text-align: right;
  padding-right: 24px;
  padding-left: 0;
}

/* ── Hero ── */
.hero {
  direction: rtl;
  text-align: center;
}

.hero-btns {
  flex-direction: row-reverse;
  justify-content: center;
}

/* ── Section Titles ── */
.section-title,
.section-sub {
  text-align: center;
}

/* ── Features Grid ── */
.features-grid {
  direction: rtl;
}

.feature-card {
  text-align: right;
}

.feature-icon {
  text-align: right;
}

/* ── Filter Bar ── */
.filter-bar {
  flex-direction: row-reverse;
  flex-wrap: wrap;
}

.search-box {
  flex-direction: row-reverse;
  margin-left: 0;
  margin-right: auto;
}

.search-icon {
  right: auto;
  left: 12px;
}

#searchInput {
  padding-right: 16px;
  padding-left: 36px;
  text-align: right;
}

/* ── Products Grid ── */
.products-grid {
  direction: rtl;
}

.product-card {
  text-align: right;
}

.product-card .card-tags {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.product-card .card-footer {
  flex-direction: row-reverse;
}

/* ── About ── */
.about-wrap {
  text-align: right;
}

/* ── Contact ── */
.contact-wrap {
  direction: rtl;
}

.contact-info {
  text-align: right;
}

.contact-item {
  flex-direction: row-reverse;
  text-align: right;
}

.contact-item .contact-icon {
  margin-right: 0;
  margin-left: 16px;
}

.contact-item div {
  text-align: right;
}

.wa-cta {
  text-align: center;
}

/* ── Contact Form ── */
.contact-form input,
.contact-form textarea,
.contact-form select {
  text-align: right;
  direction: rtl;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  text-align: right;
}

/* ── Footer ── */
footer {
  direction: rtl;
  text-align: center;
}

footer p {
  direction: ltr; /* keep email/phone LTR inside footer */
  text-align: center;
}

/* ── Lightbox ── */
.lb-prev {
  left: auto;
  right: 16px;
}

.lb-next {
  right: auto;
  left: 16px;
}

.lb-close {
  right: auto;
  left: 16px;
}

/* ── Product Modal ── */
.modal-content {
  direction: rtl;
  text-align: right;
}

.modal-close {
  right: auto;
  left: 16px;
}

.modal-body {
  flex-direction: row-reverse;
}

.modal-specs table {
  direction: rtl;
}

.modal-specs th,
.modal-specs td {
  text-align: right;
}

.modal-tags {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.modal-actions {
  flex-direction: row-reverse;
}

/* ── Breadcrumb (if any) ── */
.breadcrumb {
  flex-direction: row-reverse;
}

/* ── Scroll to Top Button ── */
.scroll-top {
  left: 24px;
  right: auto;
}

/* ── Toast Notification ── */
.toast {
  left: 24px;
  right: auto;
}

/* ── Responsive RTL fixes ── */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: row-reverse;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .filter-bar {
    flex-direction: row-reverse;
  }

  .contact-wrap {
    flex-direction: column;
  }

  .modal-body {
    flex-direction: column;
  }

  .contact-item {
    flex-direction: row-reverse;
  }

  .search-box {
    width: 100%;
    margin-right: 0;
  }

  #searchInput {
    padding-left: 36px;
    padding-right: 12px;
  }
}

@media (max-width: 480px) {
  .hero-btns {
    flex-direction: column;
    gap: 12px;
  }

  .filter-bar {
    justify-content: flex-end;
  }

  .lang-dropdown {
    left: 0;
    right: auto;
  }
}
[dir="rtl"] .card-actions { flex-direction: row-reverse; gap: 6px; }