/* ══════════════════════════════════════════════════════════════════
   Waffle Tone — rtl.css
   RTL overrides for Arabic mode ([dir="rtl"])
══════════════════════════════════════════════════════════════════ */

[dir="rtl"] body {
    font-family: var(--font-body-ar);
    text-align: right;
}

/* Header */
[dir="rtl"] .wt-header__inner {
    flex-direction: row-reverse;
}

[dir="rtl"] .wt-header__actions {
    flex-direction: row-reverse;
}

[dir="rtl"] .wt-header__logo {
    flex-direction: row-reverse;
}

[dir="rtl"] .wt-nav {
    flex-direction: row-reverse;
}

/* Typography */
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] .wt-display,
[dir="rtl"] .wt-headline-lg,
[dir="rtl"] .wt-headline-md,
[dir="rtl"] .wt-headline-sm,
[dir="rtl"] .wt-title,
[dir="rtl"] .wt-card__title,
[dir="rtl"] .wt-footer__col-title,
[dir="rtl"] .wt-review-author {
    font-family: var(--font-body-ar); /* Unify all Arabic fonts */
    letter-spacing: 0;
}

[dir="rtl"] .wt-label-lg,
[dir="rtl"] .wt-label-md,
[dir="rtl"] .wt-label-sm,
[dir="rtl"] .wt-section-label__text,
[dir="rtl"] .wt-chip,
[dir="rtl"] .wt-nav__link,
[dir="rtl"] .btn-primary,
[dir="rtl"] .btn-secondary {
    letter-spacing: 0;
    font-family: var(--font-body-ar);
}

/* Buttons */
[dir="rtl"] .btn-primary,
[dir="rtl"] .btn-secondary {
    flex-direction: row-reverse;
}

/* Section label */
[dir="rtl"] .wt-section-label {
    flex-direction: row-reverse;
}

[dir="rtl"] .wt-section-divider {
    margin-inline-end: 0;
    margin-inline-start: 0.75rem;
}

/* Hero */
[dir="rtl"] .wt-hero__kicker {
    flex-direction: row-reverse;
}

[dir="rtl"] .wt-hero__badges {
    flex-direction: row-reverse;
}

[dir="rtl"] .wt-hero__badge {
    flex-direction: row-reverse;
}

[dir="rtl"] .wt-hero__ctas {
    flex-direction: row-reverse;
}

[dir="rtl"] .wt-hero__prev {
    left: auto;
    right: 1.5rem;
}

[dir="rtl"] .wt-hero__next {
    right: auto;
    left: 1.5rem;
}

/* Categories */
[dir="rtl"] .wt-categories__scroller {
    flex-direction: row-reverse;
}

/* Cards */
[dir="rtl"] .wt-card__footer {
    flex-direction: row-reverse;
}

[dir="rtl"] .wt-card__price-currency {
    margin-inline-end: 2px;
    margin-inline-start: 0;
}

/* About */
[dir="rtl"] .wt-about__grid {
    direction: rtl;
}

/* USP */
[dir="rtl"] .wt-usp__icon {
    margin-inline-end: 0;
    margin-inline-start: auto;
}

/* Radio / Checkbox */
[dir="rtl"] .wt-radio-item,
[dir="rtl"] .wt-check-item {
    flex-direction: row-reverse;
}

/* Form fields */
[dir="rtl"] .wt-input-field {
    flex-direction: row-reverse;
}

[dir="rtl"] .wt-input-field input,
[dir="rtl"] .wt-input-field textarea {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .wt-textarea {
    text-align: right;
    direction: rtl;
}

/* Cart sidebar — slides in from left in RTL */
[dir="rtl"] .wt-cart-sidebar {
    left: -420px;
    right: auto;
    border-right: 1px solid var(--gold-border);
    border-left: none;
    box-shadow: 20px 0 60px rgba(15, 2, 6, 0.9);
}

[dir="rtl"] .wt-cart-sidebar.is-open {
    left: 0;
    right: auto;
}

[dir="rtl"] .wt-cart-sidebar__header {
    flex-direction: row-reverse;
}

[dir="rtl"] .wt-cart-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .wt-cart-item__qty {
    flex-direction: row-reverse;
}

/* Cart totals */
[dir="rtl"] .wt-cart-totals__row {
    flex-direction: row-reverse;
}

/* Order summary */
[dir="rtl"] .wt-order-summary__header,
[dir="rtl"] .wt-order-summary__footer {
    direction: rtl;
}

/* Checkout grid — reverse order in RTL */
[dir="rtl"] .wt-checkout-grid {
    direction: rtl;
}

/* Step indicator */
[dir="rtl"] .wt-step-indicator {
    flex-direction: row-reverse;
}

/* Mode toggle */
[dir="rtl"] .wt-mode-toggle {
    flex-direction: row-reverse;
}

[dir="rtl"] .wt-mode-btn {
    flex-direction: row-reverse;
}

/* Footer */
[dir="rtl"] .wt-footer {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .wt-footer__grid {
    direction: rtl;
}

[dir="rtl"] .wt-footer__brand {
    align-items: flex-end;
}

[dir="rtl"] .wt-footer__logo {
    flex-direction: row-reverse;
}

[dir="rtl"] .wt-footer__bottom {
    flex-direction: row-reverse;
}

[dir="rtl"] .wt-footer__contact-item {
    flex-direction: row-reverse;
}

/* Location */
[dir="rtl"] .wt-location__info-item {
    flex-direction: row-reverse;
}

/* Reviews */
[dir="rtl"] .wt-review-stars {
    flex-direction: row-reverse;
}

/* Star rating */
[dir="rtl"] .wt-star-rating {
    flex-direction: row-reverse;
}

/* Mobile nav */
[dir="rtl"] .wt-mobile-nav {
    direction: rtl;
}

/* Search bar */
[dir="rtl"] input[type="search"],
[dir="rtl"] input[type="text"] {
    direction: rtl;
    text-align: right;
}

/* Hero headline — no uppercase tracking on Arabic */
[dir="rtl"] .wt-hero__headline {
    text-transform: none;
    letter-spacing: 0;
}

/* Nav link — no uppercase tracking on Arabic */
[dir="rtl"] .wt-nav__link {
    text-transform: none;
}

/* Chip */
[dir="rtl"] .wt-chip {
    flex-direction: row-reverse;
    text-transform: none;
    letter-spacing: 0;
}

/* Section label */
[dir="rtl"] .wt-section-label__text {
    text-transform: none;
    letter-spacing: 0;
}

/* Cart count badge */
[dir="rtl"] .wt-cart-count {
    right: auto;
    left: -4px;
}

/* Page header */
[dir="rtl"] .wt-page-header {
    direction: rtl;
}
