/* RTL Stylesheet for Arabic */

body.rtl {
    direction: rtl;
    text-align: right;
}

/* Navbar — always LTR regardless of language */
body.rtl .navbar,
body.rtl .navbar__container,
body.rtl .navbar__left,
body.rtl .navbar__menu,
body.rtl .navbar__icons {
    direction: ltr;
    flex-direction: row;
}

body.rtl .navbar__dropdown {
    left: auto;
    right: 50%;
    transform: translateX(50%) translateY(8px);
}

body.rtl .has-dropdown:hover .navbar__dropdown {
    transform: translateX(50%) translateY(0);
}

body.rtl .lang-switcher__dropdown {
    right: auto;
    left: 0;
}

/* Hero */
body.rtl .hero__content {
    margin: 0 8% 0 auto;
}

/* Mobile menu RTL — slides from right */
body.rtl .mobile-menu {
    left: auto;
    right: 0;
    transform: translateX(100%);
}

body.rtl .mobile-menu.open {
    transform: translateX(0);
}

body.rtl .mobile-menu__sub li a {
    padding: 10px 36px 10px 24px;
}

/* Footer */
body.rtl .footer__top {
    direction: rtl;
}

body.rtl .footer__contact-item {
    flex-direction: row-reverse;
}

body.rtl .perk {
    flex-direction: row-reverse;
}

body.rtl .perk:last-child {
    border-right: 1px solid var(--border);
    border-left: none;
}

body.rtl .perk:first-child {
    border-left: none;
    border-right: 1px solid var(--border);
}

/* Product card wishlist button */
body.rtl .product-card__wishlist {
    right: auto;
    left: 10px;
}

body.rtl .product-card__badges {
    left: auto;
    right: 12px;
}

/* Breadcrumb */
body.rtl .breadcrumb {
    flex-direction: row-reverse;
}

/* Form grid RTL */
body.rtl .form-grid {
    direction: rtl;
}

/* Filter bar */
body.rtl .filter-bar {
    flex-direction: row-reverse;
}

body.rtl .filter-tabs {
    flex-direction: row-reverse;
}

/* Top banner close button */
body.rtl .top-banner__close {
    right: auto;
    left: 16px;
}

/* Mobile bottom bar */
body.rtl .mobile-bottom-bar {
    flex-direction: row-reverse;
}

/* Section header */
body.rtl .section-header {
    flex-direction: row-reverse;
}

body.rtl .flash-sale__header {
    flex-direction: row-reverse;
}

/* Product page */
body.rtl .product-layout {
    direction: rtl;
}

body.rtl .product-info__actions {
    direction: rtl;
}

body.rtl .product-tab-nav {
    flex-direction: row-reverse;
}

body.rtl .product-info__prices {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

body.rtl .size-btns {
    flex-direction: row-reverse;
}

/* Font adjustments for Arabic */
body.rtl {
    font-size: 1.02em;
    letter-spacing: 0;
}

body.rtl .navbar__link {
    letter-spacing: 0;
}

body.rtl .btn {
    letter-spacing: 0;
}

body.rtl .badge {
    letter-spacing: 0;
}