/*
 * RTL Stylesheet — GeneratePress Child V2
 * Yongyu Packaging Premium Minimal (Direction B)
 * Arabic / Right-to-left
 */

html[dir="rtl"] body { direction: rtl; text-align: right; unicode-bidi: embed; }

/* Lists */
html[dir="rtl"] ul,
html[dir="rtl"] ol { padding-right: 1.25rem; padding-left: 0; }

/* Language switcher */
html[dir="rtl"] .ds-lang__dropdown { left: 0; right: auto; }

/* Hero stats */
html[dir="rtl"] .ds-hero__stats { border-top: 1px solid var(--ds-line-100); }

/* Product specs */
html[dir="rtl"] .ds-spec-row { flex-direction: row-reverse; }

/* Timeline */
html[dir="rtl"] .ds-timeline { padding-left: 0; padding-right: var(--ds-space-7); }
html[dir="rtl"] .ds-timeline::before { left: auto; right: 6px; }
html[dir="rtl"] .ds-timeline__item::before { left: auto; right: calc(-1 * var(--ds-space-7) + 2px); }

/* FAQ icon alignment */
html[dir="rtl"] .ds-faq__item summary { flex-direction: row-reverse; }

/* CEO quote */
html[dir="rtl"] .ds-ceo-block__quote {
  border-left: none;
  border-right: 2px solid var(--ds-accent);
  padding-left: 0;
  padding-right: var(--ds-space-5);
}

/* Floating actions */
html[dir="rtl"] .ds-float { right: auto; left: 24px; }
html[dir="rtl"] .ds-float__tooltip { right: auto; left: calc(100% + 10px); }

/* Tabs */
html[dir="rtl"] .ds-tablist { direction: ltr; }
html[dir="rtl"] .ds-tab { direction: rtl; }

/* Product card footer */
html[dir="rtl"] .ds-product-card__footer { flex-direction: row-reverse; }

/* Form label */
html[dir="rtl"] .ds-form__label .is-required { margin-left: 0; margin-right: 2px; }

/* Breadcrumb separator */
html[dir="rtl"] .ds-breadcrumbs__sep { display: inline-block; transform: scaleX(-1); }

/* Eyebrow letter spacing — remove for Arabic */
html[dir="rtl"] .ds-eyebrow { letter-spacing: 0; }

/* Social icons alignment */
html[dir="rtl"] .ds-footer__social { justify-content: flex-start; }

/* Cookie banner text alignment */
html[dir="rtl"] .ds-cookie { text-align: right; }

/* Buttons icon flip */
html[dir="rtl"] .ds-btn [aria-hidden="true"]:last-child { transform: scaleX(-1); display: inline-block; }
