/**
 * RTL Stylesheet for Leuven Child Theme
 * Automatically loaded by WordPress for RTL locales (Arabic, Hebrew)
 *
 * @package Leuven Child Theme
 * @since 1.0.0
 */

body {
    direction: rtl;
    text-align: right;
}

.custom-header {
    direction: rtl;
}

.header-top-inner {
    flex-direction: row-reverse;
}

.header-account {
    order: 4;
}

.header-search {
    order: 2;
}

.header-logo {
    order: 3;
}

.header-cart {
    order: 1;
}

.search-form {
    direction: rtl;
}

.search-input {
    text-align: right;
    padding: 0 1.25rem 0 3rem;
}

.search-submit {
    right: auto;
    left: 1rem;
}

.primary-menu {
    flex-direction: row-reverse;
}

.menu-item a::after {
    right: 0;
    left: auto;
}

.language-switcher {
    direction: rtl;
}

.lang-switcher-list {
    flex-direction: row-reverse;
}

.account-icon svg,
.cart-icon svg,
.search-submit svg {
    transform: scaleX(-1);
}

.cart-count {
    right: auto;
    left: 0;
}

@media (max-width: 768px) {
    .header-top-inner {
        flex-direction: row-reverse;
    }
    
    .mobile-menu-toggle {
        order: 1;
    }
    
    .header-account {
        order: 4;
    }
}

.woocommerce .products li,
.woocommerce-page .products li {
    text-align: right;
}

.woocommerce div.product div.summary,
.woocommerce #content div.product div.summary,
.woocommerce-page div.product div.summary,
.woocommerce-page #content div.product div.summary {
    text-align: right;
}

.woocommerce .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cart_totals {
    float: left;
    text-align: right;
}

.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button {
    margin-right: 0;
    margin-left: auto;
}

.entry-content {
    margin-left: 0;
    margin-right: 0;
}

.site-content {
    float: right;
}

.sidebar {
    float: left;
}
