/* Global RTL Force */
html,
body {
    direction: rtl !important;
    unicode-bidi: embed !important;
    text-align: right !important;
}

/* Global Text Alignment */
p,
h1,
h2,
h3,
h4,
h5,
h6,
li,
span,
div,
section,
article {
    text-align: right !important;
}

/* Target Header & Menu specifically based on user provided selectors */
#modeltheme-main-head .navbar-header {
    float: right !important;
    display: inline-block !important;
    transform: none !important;
    /* Remove fragile transforms */
}

#navbar {
    float: left !important;
    direction: rtl !important;
    transform: none !important;
    /* Remove fragile transforms */
    text-align: right !important;
}

/* Force the UL container to the left (it has pull-right by default) */
#navbar ul.navbar-nav.pull-right {
    float: left !important;
    margin: 0 !important;
}

/* Ensure menu items float RIGHT to follow RTL order (Home on far right) */
#navbar ul.navbar-nav>li {
    float: right !important;
}

#navbar ul.navbar-nav>li>a {
    text-align: right !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* 992px and larger screen sizes */
@media (min-width: 992px) {
    #navbar {
        float: left !important;
    }
}

/* 4. Sidebar and Main Content Flip */
@media (min-width: 992px) {

    #primary.col-md-8,
    #primary.col-md-9 {
        float: right !important;
    }

    #secondary.col-md-4,
    #secondary.col-md-3 {
        float: left !important;
    }
}

/* 5. Icon and Button Adjustments */
.mt-search-icon i,
.social-links i {
    margin-right: 0 !important;
    margin-left: 10px !important;
}

/* Search form positioning */
.modeltheme-search input {
    padding-left: 40px !important;
    padding-right: 15px !important;
}

.modeltheme-search i {
    right: auto !important;
    left: 15px !important;
}

/* Breadcrumbs flip */
.breadcrumb {
    padding-right: 0 !important;
    text-align: right !important;
}

.breadcrumb>li+li::before {
    content: "/\00a0" !important;
    padding: 0 5px !important;
}

/* WooCommerce / Shop alignment */
.woocommerce-loop-product__title,
.woocommerce-product-details__short-description,
.price {
    text-align: right !important;
}

/* 6. Fix for hardcoded floats in theme */
.pull-right {
    float: left !important;
}

.pull-left {
    float: right !important;
}

.text-right {
    text-align: left !important;
}

.text-left {
    text-align: right !important;
}