/* =========================================================
   Savoy Theme RTL – Production Grade
   Only directional overrides
   Safe for WooCommerce & AJAX
========================================================= */

html[dir="rtl"],
body.rtl {
    direction: rtl;
    unicode-bidi: embed;
}

/* =========================================================
   FLOAT FIXES
========================================================= */

.fl-right { float: left; }
.fl-left { float: right; }

.push-right { float: left; }
.push-left { float: right; }

.nm-header.default .nm-header-left {
    float: right;
}

.nm-header.default .nm-header-logo {
    float: right;
    margin-right: 0;
    margin-left: 36px;
}

.nm-main-menu {
    float: right;
}

.nm-right-menu {
    float: left;
    margin-right: 0;
    margin-left: -16px;
}

.nm-menu li {
    float: right;
}

/* Sidebar */
.nm-page-sidebar .col-content {
    float: left;
}

/* =========================================================
   TEXT ALIGNMENT
========================================================= */

th,
td,
caption {
    text-align: right;
}

/* Top bar */
.nm-top-bar-right {
    justify-content: flex-start;
}

.nm-top-bar-left {
    justify-content: flex-end;
}

/* =========================================================
   POSITION FIXES
========================================================= */

.nm-menu .sub-menu {
    left: auto;
    right: -12px;
}

.nm-menu .sub-menu .sub-menu {
    left: auto;
    right: 100%;
}

.nm-menu .megamenu > .sub-menu {
    left: auto;
    right: -14px;
}

.nm-menu .megamenu.full > .sub-menu {
    left: 0;
    right: 0;
}

.nm-menu .sub-menu li.menu-item-has-children > a {
    padding-right: 27px;
    padding-left: 41px;
}

.nm-menu .sub-menu li.menu-item-has-children > a:after {
    right: auto;
    left: 28px;
    transform: rotate(180deg);
}

/* =========================================================
   HEADER SEARCH
========================================================= */

#nm-header-search-form > i {
    left: auto;
    right: 0;
}

#nm-header-search-input {
    padding-left: 0;
    padding-right: 26px;
}

#nm-header-search-close {
    right: auto;
    left: 12px;
}

#nm-header-search-clear-button {
    left: auto;
    right: 1px;
}

/* =========================================================
   MOBILE MENU
========================================================= */

#nm-mobile-menu {
    left: auto;
    right: 0;
}

.nm-mobile-menu-holder {
    left: auto;
    right: 0;
}

/* =========================================================
   OVERLAYS
========================================================= */

.nm-page-overlay,
.nm-image-overlay {
    left: 0;
    right: 0;
}

/* =========================================================
   BUTTONS / FORMS
========================================================= */

select {
    background-position: calc(0% + 10px) 50%;
}

/* =========================================================
   WOOCOMMERCE SAFE FIXES
========================================================= */

/* Cart count */
.nm-menu-cart .count {
    margin-right: 0;
    margin-left: -2px;
}

/* AJAX loader */
.nm-loader:after {
    right: 50%;
    left: auto;
    margin-right: -8px;
    margin-left: 0;
}

/* Product grids */
.woocommerce ul.products li.product {
    text-align: right;
}

/* Checkout */
.woocommerce form .form-row {
    text-align: right;
}

/* =========================================================
   FLEXBOX SAFE FIXES
========================================================= */

.nm-header-left {
    flex-direction: row-reverse;
}

.nm-right-menu > ul {
    flex-direction: row-reverse;
}

/* =========================================================
   MEGAMENU FIX
========================================================= */

.nm-menu .megamenu > .sub-menu > ul > li {
    float: right;
}

/* =========================================================
   SEARCH SUGGESTIONS
========================================================= */

#nm-search-suggestions-product-list a {
    flex-direction: row-reverse;
}

/* =========================================================
   ADMIN BAR SAFE
========================================================= */

.admin-bar.header-fixed .nm-header {
    right: 0;
    left: 0;
}

/* =========================================================
   FINAL SAFETY FIXES
========================================================= */

.nm-header,
.nm-page-wrap,
.nm-page-overlay {
    direction: rtl;
}
.slideInLeft, .nm-single-product-menu{
direction: ltr !important;
}
.nm-main-menu-wrap{
float: right !important;
}
.nm-qty-plus, .nm-qty-minus{
transform: scale(-1, 1)!important;
}
#nm-shop-filter-menu-wrap{
float: left !important;
}
.nm-shop-menu ul li:first-child, .nm-shop-menu ul li:first-child a {
margin-left: 9px !important;
}

.nm-shop-menu ul li:last-of-type a, .nm-shop-menu ul li:last-child a{
margin-right: 9px !important;
}
#nm-breadcrumb{
text-align: left;
}
.theme-savoy .wp-block-woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link{
right: auto !important;
left:0 !important;
}
.theme-savoy .wc-block-components-totals-coupon .wc-block-components-panel__button > .wc-block-components-panel__button-icon{
right: auto !important;
}
.theme-savoy .wc-block-components-totals-coupon .wc-block-components-panel__button:before{
margin-right: 0px !important;
margin-left: 8px !important;
}
.wc-block-components-quantity-selector{
direction: ltr;
}
.theme-savoy .wc-blocks-components-select .wc-blocks-components-select__expand , .wc-blocks-components-select .wc-blocks-components-select__expand{
right: auto !important;
left: 8px !important;
}
.login .lost_password{float:left !important;}
.woocommerce form .show-password-input, .woocommerce-page form .show-password-input{
right: auto !important;
left: 0 !important;
}
.nm-shop-categories img{
margin-left: 10px;
margin-right: 0px !important;
}
.mobile-menu-layout-side #nm-mobile-menu .menu .menu-item .nm-menu-toggle{
right: auto !important;
left: 3px !important;
}
.mobile-menu-layout-side.mobile-menu-panels #nm-mobile-menu-main-ul > .menu-item > .nm-menu-toggle:before{
    transform: rotate(90deg) !important;
    }
.woocommerce-loop-product__title{
	padding-right: 0 !important;
	padding-left: 32px !important;
}
.products .nm-wishlist-button {
    position: absolute;
    top: 0;
    right: auto !important;
    text-align: left;
	left: 0 !important;
}
#nm-breadcrumb{
	text-align: right !important;
}
.single-product .nm-single-product-top .nm-row{
	display: flex;
}
.nm-single-product-menu{
	text-align: left !important;
}

@media (max-width: 991px) {
    #nm-shop-sidebar .widget .nm-widget-title:after {
        right: auto !important;
        left: 0 !important;
    }
	.nm-shop-filter-menu li{
		float: right !important;
	}
	.nm-shop-header.centered.has-sidebar #nm-shop-categories-wrap{
		text-align: right !important;
}
@media (min-width: 550px) {
    .products.grid-list .nm-shop-loop-thumbnail {
        margin-right: 0!important;
		margin-left: 30px !important;
    }

}
