/**
 * SavvySouq RTL (Right-to-Left) Styles
 * Arabic layout support
 */

/* Base RTL */
body.rtl {
  direction: rtl;
  text-align: right;
}

body.rtl * {
  font-family: var(--font-arabic);
}

/* Navigation RTL */
body.rtl .nav-inner {
  flex-direction: row-reverse;
}

body.rtl .nav-logo {
  flex-direction: row-reverse;
}

body.rtl .nav-links {
  flex-direction: row-reverse;
}

body.rtl .nav-actions {
  flex-direction: row-reverse;
}

body.rtl .nav-search {
  flex-direction: row-reverse;
}

body.rtl .nav-links li.active::after {
  left: auto;
  right: 0;
}

body.rtl .cart-count {
  right: auto;
  left: -7px;
}

/* Hero RTL */
body.rtl .hero-grid {
  grid-template-columns: 1fr 1.1fr;
}

body.rtl .hero-text {
  border-right: none;
  border-left: 1px solid var(--charcoal-line);
}

body.rtl .hero-ar {
  direction: rtl;
}

body.rtl .hero-cta-row {
  flex-direction: row-reverse;
}

body.rtl .hero-meta {
  flex-direction: row-reverse;
}

body.rtl .hero-product-spec.top-left {
  left: auto;
  right: 24px;
  text-align: left;
}

body.rtl .hero-product-spec.top-right {
  right: auto;
  left: 24px;
  text-align: right;
}

body.rtl .hero-product-spec.bottom-left {
  left: auto;
  right: 24px;
}

body.rtl .hero-product-spec.bottom-right {
  right: auto;
  left: 24px;
}

/* Buttons RTL */
body.rtl .btn {
  flex-direction: row-reverse;
}

/* Product Grid RTL */
body.rtl .product-meta {
  flex-direction: row-reverse;
}

body.rtl .product-price-row {
  flex-direction: row-reverse;
}

body.rtl .product-price .curr {
  margin-right: 0;
  margin-left: 3px;
}

body.rtl .product-price .old {
  margin-left: 0;
  margin-right: 8px;
}

body.rtl .product .ph .badges {
  left: auto;
  right: 12px;
}

body.rtl .product .ph .qv {
  left: auto;
  right: 12px;
}

/* Section RTL */
body.rtl .section-head {
  flex-direction: row-reverse;
}

body.rtl .section-ar {
  direction: rtl;
}

body.rtl .section-link {
  flex-direction: row-reverse;
}

/* Categories RTL */
body.rtl .cat-ar {
  direction: rtl;
}

body.rtl .cat-arrow {
  right: auto;
  left: 24px;
}

/* Ticker RTL */
body.rtl .ticker-track {
  flex-direction: row-reverse;
}

body.rtl .ticker-track span {
  flex-direction: row-reverse;
}

@keyframes ticker-rtl {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(50%);
  }
}

body.rtl .ticker-track {
  animation: ticker-rtl 40s linear infinite;
}

/* Language Toggle */
.language-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--off-white);
  cursor: pointer;
  transition: all 0.15s;
}

.language-toggle:hover {
  border-color: var(--charcoal);
}

.language-toggle .lang-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.language-toggle .lang-icon {
  width: 16px;
  height: 16px;
}

body.rtl .language-toggle {
  flex-direction: row-reverse;
}
