/* ============================================================
   TAFIF STORE — RTL Overrides
   Applied via html[dir="rtl"]
   ============================================================ */

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

html[dir="ltr"] body.premium-theme {
    font-family: var(--font-en);
    direction: ltr;
    text-align: left;
}

/* ---------- Navbar RTL ---------- */
html[dir="rtl"] .pm-navbar-inner {
    flex-direction: row;
}

html[dir="rtl"] .pm-nav-links {
    flex-direction: row;
}

/* ---------- Dropdown ---------- */
html[dir="rtl"] .pm-dropdown-menu {
    right: 0;
    left: auto;
}

html[dir="ltr"] .pm-dropdown-menu {
    left: 0;
    right: auto;
}

/* ---------- Mobile ---------- */
html[dir="rtl"] .pm-mobile-menu .pm-mobile-nav-links a:hover {
    padding-right: var(--space-md);
    padding-left: 0;
}

html[dir="ltr"] .pm-mobile-menu .pm-mobile-nav-links a:hover {
    padding-left: var(--space-md);
    padding-right: 0;
}

/* ---------- Product Card ---------- */
html[dir="rtl"] .pm-wishlist-btn {
    left: var(--space-md);
    right: auto;
}

html[dir="ltr"] .pm-wishlist-btn {
    right: var(--space-md);
    left: auto;
}

/* ---------- Cart Table ---------- */
html[dir="rtl"] .pm-cart-table th,
html[dir="rtl"] .pm-cart-table td {
    text-align: right;
}

html[dir="ltr"] .pm-cart-table th,
html[dir="ltr"] .pm-cart-table td {
    text-align: left;
}

/* ---------- Cart Badge RTL ---------- */
html[dir="rtl"] .pm-cart-badge {
    right: auto;
    left: -4px;
}

html[dir="ltr"] .pm-cart-badge {
    left: auto;
    right: -4px;
}

/* ---------- Search Overlay RTL ---------- */
html[dir="rtl"] .pm-search-overlay-close {
    left: var(--space-xl);
    right: auto;
}

html[dir="ltr"] .pm-search-overlay-close {
    right: var(--space-xl);
    left: auto;
}

/* ---------- Footer ---------- */
html[dir="rtl"] .pm-footer-col ul {
    text-align: right;
}

html[dir="ltr"] .pm-footer-col ul {
    text-align: left;
}

/* ---------- Contact ---------- */
html[dir="rtl"] .pm-contact-item {
    flex-direction: row;
}

html[dir="ltr"] .pm-contact-item {
    flex-direction: row;
}

/* ---------- Product Info Meta ---------- */
html[dir="rtl"] .pm-product-info-meta i {
    margin-left: var(--space-sm);
    margin-right: 0;
}

html[dir="ltr"] .pm-product-info-meta i {
    margin-right: var(--space-sm);
    margin-left: 0;
}

/* ---------- Smooth Language Switch ---------- */
html {
    transition: direction 0s;
}

body.premium-theme,
body.premium-theme * {
    transition-property: margin, padding, transform, opacity, background, color, border, box-shadow;
}

/* ---------- Filter list RTL ---------- */
html[dir="rtl"] .pm-filter-list a {
    flex-direction: row;
}

html[dir="ltr"] .pm-filter-list a {
    flex-direction: row;
}

/* Footer bottom RTL */
html[dir="rtl"] .pm-footer-bottom {
    flex-direction: row;
}

html[dir="ltr"] .pm-footer-bottom {
    flex-direction: row;
}

@media (max-width: 768px) {

    html[dir="rtl"] .pm-footer-bottom,
    html[dir="ltr"] .pm-footer-bottom {
        flex-direction: column;
    }
}