/**
 * SafeCore E-Commerce - Arabic Right-to-Left (RTL) Stylesheet
 * Engineered for Jordan & Arabic locale
 */

html[dir="rtl"],
body.rtl-mode {
  font-family: var(--font-arabic);
  text-align: right;
  direction: rtl;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6 {
  font-family: var(--font-arabic);
  letter-spacing: normal;
}

/* Header & Search Mirror */
html[dir="rtl"] .search-input {
  padding: 0.65rem 2.6rem 0.65rem 1rem;
}

html[dir="rtl"] .search-icon {
  left: auto;
  right: 0.85rem;
}

/* Product Card Badges */
html[dir="rtl"] .product-card-badge {
  left: auto;
  right: 12px;
}

/* Cart Drawer */
html[dir="rtl"] .cart-drawer {
  right: auto;
  left: 0;
  transform: translateX(-100%);
}

html[dir="rtl"] .cart-drawer.open {
  transform: translateX(0);
}

/* WhatsApp Floating Button */
html[dir="rtl"] .whatsapp-float-btn {
  right: auto;
  left: 24px;
}

/* Toast Container */
html[dir="rtl"] .toast-container {
  right: auto;
  left: 20px;
}

html[dir="rtl"] .toast {
  border-left: none;
  border-right: 4px solid var(--color-primary);
  animation: slideInRTL 0.3s ease;
}

@keyframes slideInRTL {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Specifications Table */
html[dir="rtl"] .specs-table th {
  text-align: right;
}

html[dir="rtl"] .specs-table td {
  text-align: right;
}

/* Hero Section Gradient for RTL */
html[dir="rtl"] .hero-section {
  background-image: linear-gradient(to left, rgba(32, 37, 43, 0.92) 0%, rgba(32, 37, 43, 0.75) 60%, rgba(32, 37, 43, 0.45) 100%), url('../assets/images/hero_banner.jpg');
}

/* Bulk Order Banner */
html[dir="rtl"] .bulk-checklist li {
  text-align: right;
}
