/* ==============================================
   RTL Overrides — Arabic / Moroccan Darija support
   ============================================== */

body.rtl {
    font-family: 'Cairo', 'Tajawal', 'Segoe UI', sans-serif;
    direction: rtl;
    unicode-bidi: embed;
}

/* ---- Header ---- */
body.rtl .cart-count-badge {
    right: auto;
    left: -10px;
}

/* ---- Mega Menu ---- */
body.rtl .mega-menu-dropdown {
    left: auto;
    right: 0;
}
body.rtl .gm-all-categories > .gm-mega-menu {
    left: calc(50% - 50vw + (100vw - 100%) / 2);
    right: auto;
    transform: none;
}

/* ---- Product Labels ---- */
body.rtl .product-labels {
    left: auto;
    right: .5rem;
}

/* ---- Product Card Actions (hover) ---- */
body.rtl .product-card-actions {
    right: auto;
    left: .5rem;
    transform: translateX(-10px);
}
body.rtl .product-card:hover .product-card-actions {
    transform: translateX(0);
}

/* ---- Footer ---- */
body.rtl .footer-accordion-btn {
    text-align: right;
}
body.rtl .footer-accordion-btn .fa-chevron-down {
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* ---- Font Awesome directional icon swaps ---- */
body.rtl .fa-arrow-right:before { content: "\f060"; }
body.rtl .fa-arrow-left:before  { content: "\f061"; }
body.rtl .fa-chevron-right:before { content: "\f053"; }
body.rtl .fa-chevron-left:before  { content: "\f054"; }
body.rtl .fa-angle-right:before { content: "\f104"; }
body.rtl .fa-angle-left:before  { content: "\f105"; }
body.rtl .fa-caret-right:before { content: "\f0d9"; }
body.rtl .fa-caret-left:before  { content: "\f0da"; }
body.rtl .fa-hand-point-right:before { content: "\f0a5"; }
body.rtl .fa-hand-point-left:before  { content: "\f0a4"; }
body.rtl .fa-long-arrow-alt-right:before { content: "\f30a"; }
body.rtl .fa-long-arrow-alt-left:before  { content: "\f30b"; }

/* ---- Product card image hover: no change needed ---- */

/* ---- Sticky ATC: left:0;right:0 already compatible ---- */

/* ---- Mobile Bottom Bar: left:0;right:0 already compatible ---- */

/* ---- Language Switcher ---- */
body.rtl .header-lang-switcher .dropdown-toggle {
    /* Bootstrap RTL handles text alignment */
}
body.rtl .header-lang-switcher.me-3 {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}
body.rtl .header-lang-switcher .trp-flag,
body.rtl .mobile-lang-switcher .trp-flag,
body.rtl .header-lang-switcher .dropdown-toggle .trp-flag {
    margin-right: 0;
    margin-left: .4rem;
}

/* ---- TranslatePress language-specific overrides ---- */
.translatepress-ar .hero-slide h1 {
    font-size: 2.8rem;
}
.translatepress-ar .product-card-title {
    line-height: 1.7;
}
@media (max-width: 768px) {
    .translatepress-ar .hero-slide h1 {
        font-size: 1.8rem;
    }
}
