body[dir=rtl] {
  direction: rtl;
  text-align: right;
}

.ps-form--widget-search button {
  right: auto;
  left: 10px;
}

.btn + .btn {
  margin-right: 10px;
  margin-left: 0;
}
.btn i {
  margin-right: 0;
  display: inline-block;
  margin-left: 5px;
}

.text-start {
  text-align: right !important;
}

.ps-download-app .ps-btn {
  border-radius: 4px 0 0 4px;
}

.ps-form--quick-search button {
  border-radius: 4px;
}
.ps-form--quick-search .form-group--icon {
  border-radius: 0 4px 4px 0;
}
.ps-form--quick-search .form-group--icon .product-cat-label {
  border-radius: 0 5px 5px 0;
  padding-left: 30px;
  padding-right: 18px;
  border-right: none;
  border-left: 1px solid #cccccc;
}
.ps-form--quick-search .form-group--icon .product-cat-label:after {
  display: none;
}
.ps-form--quick-search .form-group--icon .product-cat-label:before {
  content: "\e93a";
  display: inline-block;
  font: normal normal normal 14px/1 linearicons;
  font-size: 10px;
  color: #000000;
  position: absolute;
  top: 17px;
  left: 12px;
}

.ps-newsletter .ps-btn {
  border-radius: 4px 0 0 4px;
}

.menu--product-categories .menu__toggle i {
  margin-right: 0;
  margin-left: 10px;
}
.menu--product-categories .menu--dropdown > li.menu-item-has-children > a:after {
  display: none;
}
.menu--product-categories .menu--dropdown > li.menu-item-has-children > a:before {
  content: "\e93b";
  display: inline-block;
  font: normal normal normal 14px/1 linearicons;
  position: absolute;
  top: 50%;
  right: auto;
  left: -10px;
  transform: translateY(-50%);
  color: #999999;
  font-size: 11px;
  font-weight: 600;
}
.menu--product-categories .menu--dropdown > li > a i {
  margin-right: 0;
  float: right;
  margin-left: 10px;
}
.menu--product-categories .menu--dropdown > li.has-mega-menu .mega-menu {
  left: auto;
  right: 100%;
  border-right: none;
  border-left: 1px solid #cccccc;
}

#homepage-1 .ps-home-banner .ps-section__left {
  padding-right: 0;
  padding-left: 30px;
}

.ps-block--user-header .ps-block__right {
  padding-left: 0;
  padding-right: 10px;
}

.spinner-icon {
  right: auto;
  left: 110px;
}

.navigation__extra > li {
  margin-right: 0;
  padding-right: 0;
  margin-left: 20px;
  padding-left: 20px;
}
.navigation__extra > li:last-child {
  margin-left: 0;
  padding-left: 0;
}
.navigation__extra > li:last-child:before {
  display: none;
}
.navigation__extra > li:after {
  display: none;
}
.navigation__extra > li:before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  width: 2px;
  height: 15px;
  background-color: var(--header-text-color);
}
.navigation__extra > li > .ps-dropdown > a {
  padding: 15px 0 15px 20px;
}
.navigation__extra .ps-dropdown img {
  margin-right: 0;
  margin-left: 8px;
}

.navigation .navigation__right {
  padding-left: 0;
  padding-right: 35px;
}

.ps-dropdown ul {
  text-align: right;
}
.ps-dropdown > a:after {
  display: none;
}
.ps-dropdown > a:before {
  content: "\e93a";
  font: normal normal normal 12px/1 linearicons;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: auto;
  left: 0;
  width: auto;
  height: auto;
  background-color: transparent;
  z-index: auto;
  border-left: none;
  border-top: none;
  transform-origin: initial;
  visibility: visible;
  opacity: 1;
}

.menu {
  text-align: right;
}
.menu > li.menu-item-has-children > a:before {
  content: "\e93a";
  font: normal normal normal 12px/1 linearicons;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: auto;
  left: 0;
  width: auto;
  height: auto;
  background-color: transparent;
  z-index: auto;
  border-left: none;
  border-top: none;
  transform-origin: initial;
  visibility: visible;
  opacity: 1;
}
.menu > li.menu-item-has-children > a:after {
  content: "";
  width: 13px;
  height: 13px;
  background-color: #ffffff;
  position: absolute;
  top: 100%;
  left: auto;
  right: 50%;
  z-index: 10000;
  border-left: 1px solid #cccccc;
  border-top: 1px solid #cccccc;
  transform: rotate(45deg) translate(-50%, -50%);
  transform-origin: 0 0;
  visibility: hidden;
  opacity: 0;
}
.menu > li:hover.menu-item-has-children > a:after {
  visibility: visible;
  opacity: 1;
}

.ps-block--site-features .ps-block__right {
  padding-left: 0;
  padding-right: 25px;
}
.ps-block--site-features .ps-block__item:first-child {
  padding-left: 40px;
  border-right: none;
}
.ps-block--site-features .ps-block__item:last-child {
  padding-left: 0;
  padding-right: 40px;
  border-right: 1px solid #dadada;
}

.ps-block--countdown-deal .ps-block__left h3 {
  margin-right: 0;
  margin-left: 70px;
}
.ps-block--countdown-deal figure figcaption {
  margin-right: 0;
  margin-left: 20px;
}

.sub-menu {
  left: auto;
  right: 0;
}

.ps-product .ps-product__badge {
  right: auto;
  left: 0;
  direction: ltr;
}
.ps-product .ps-product__progress-bar .ps-progress__value > span {
  left: auto;
  right: 0;
}

.ps-carousel--nav .owl-nav .owl-prev i {
  padding-right: 0;
  padding-left: 2px;
}
.ps-carousel--nav .owl-nav .owl-prev {
  margin-left: 0;
  margin-right: -70px;
  float: right;
}
.ps-carousel--nav .owl-nav .owl-next {
  margin-left: -70px;
  float: left;
}

.icon-chevron-right:before {
  content: "\e93b";
}

.icon-chevron-left:before {
  content: "\e93c";
}

.header--mobile-product .header__back .icon-chevron-left:before {
  content: "\e93b";
}

.ps-product-list .ps-section__links li:first-child {
  margin-right: 0;
}
.ps-product-list .ps-section__links li:last-child {
  margin-right: 30px;
}

.form-group--nest input {
  border-radius: 0 4px 4px 0;
  border-left: none;
  border-right: 1px solid #cccccc;
}
.form-group--nest input:focus {
  border-right: 1px solid var(--color-1st);
}

.ps-footer__links p a:after {
  margin-left: 0;
  margin-right: 5px;
}

.ps-block--download-app .download-link a {
  margin-right: 0;
  margin-left: 18px;
}

.ps-cart--mobile .ps-cart__footer h5 strong {
  float: left;
}
.ps-cart--mobile .ps-cart__footer h3 strong {
  float: left;
}

.ps-product--detail .ps-product__info {
  text-align: right;
}
.ps-product--detail .ps-product__header .ps-product__info {
  padding-left: 0;
  padding-right: 30px;
}
.ps-product--detail .ps-product__desc ul li:before {
  display: none;
}
.ps-product--detail .ps-product__meta p:after {
  display: none;
}
.ps-product--detail .ps-product__meta p:before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: auto;
  left: 0;
  width: 1px;
  height: 14px;
  background-color: #cccccc;
}
.ps-product--detail .ps-product__meta p {
  padding-right: 0;
  margin-right: 0;
  padding-left: 10px;
  margin-left: 10px;
}
.ps-product--detail .ps-product__countdown figure figcaption {
  padding-right: 0;
  padding-left: 20px;
}
.ps-product--detail .ps-product__progress-bar .ps-progress__value > span {
  left: auto;
  right: 0;
}
.ps-product--detail .ps-product__shopping > * {
  margin-right: 0;
  margin-left: 30px;
}
.ps-product--detail .ps-product__specification p strong {
  float: right;
  margin-right: 0;
  margin-left: 5px;
}
.ps-product--detail .ps-tab-list {
  padding-right: 0;
}

.ps-list--dot li {
  padding-left: 0;
  padding-right: 20px;
}
.ps-list--dot li:after {
  content: "";
  position: absolute;
  left: auto;
  right: 0;
  border-radius: 50%;
  top: 6px;
  background-color: #999999;
  width: 6px;
  height: 6px;
}

.ps-page--product .ps-page__container .ps-page__left {
  padding-right: 0;
  padding-left: 30px;
}

.ps-product--header-sticky .ps-product__shopping .ps-product__price {
  padding-right: 0;
  padding-left: 30px;
}
.ps-product--header-sticky .ps-tab-list li {
  margin-right: 0;
  margin-left: 20px;
}
.ps-product--header-sticky .ps-tab-list li:last-child {
  margin-left: 0;
}

.product__color .color-swatch li {
  margin-right: 0;
  margin-left: 5px;
}

.ps-layout--shop .ps-layout__left {
  padding-left: 30px;
  padding-right: 0;
}

.ps-list--categories li {
  padding: 6px 0 6px 20px;
}
.ps-list--categories li .sub-toggle {
  left: 0;
  right: auto;
}

.widget_shop .ps-slider__meta {
  text-align: right;
  direction: ltr;
}
.widget_shop .ps-checkbox > label:after {
  left: auto;
  right: 7px;
}
.widget_shop .ps-checkbox > label {
  padding-left: 0;
  padding-right: 25px;
}

.ps-checkbox label:before {
  left: auto;
  right: 0;
}

.ps-shopping .ps-shopping__actions .ps-shopping__view {
  padding-left: 0;
  padding-right: 40px;
}

.widget--colors .color-swatch li {
  margin-right: 0;
  margin-left: 10px;
}

.widget--blog.widget--search .ps-form--widget-search input {
  text-align: left;
}

.ps-blog--sidebar .ps-blog__right {
  padding-left: 0;
  padding-right: 30px;
}
.ps-blog--sidebar .ps-blog__left {
  padding-right: 0;
  padding-left: 70px;
}

.ps-cart--mini .ps-cart__content {
  left: -30px;
  right: auto;
}
.ps-cart--mini .ps-cart__items:before {
  left: 30px;
  right: auto;
}

.ps-product--cart-mobile .ps-product__content .ps-product__remove {
  right: auto;
  left: 0;
}

.ps-shopping-cart .ps-section__footer figure figcaption:after {
  left: 0;
  right: auto;
}

.ps-block--shopping-total h3 span {
  float: left;
}
.ps-block--shopping-total .ps-block__header p span {
  float: left;
}

.menu--mobile > li.menu-item-has-children .sub-toggle {
  left: 0;
  right: auto;
}
.menu--mobile li a i {
  float: right;
  margin-left: 7px;
}

.header--mobile-categories .header__filter > button {
  border-right: none;
  border-left: 1px solid #ccc;
}

.ps-block--average-rating .ps-block__star .ps-progress span {
  left: auto;
  right: 0;
}

.rating_wrap .product_rate {
  left: auto;
  right: 0;
}
.rating_wrap .product_rate::before {
  left: auto;
  right: 0;
}

.ps-form--review .form-group__rating label {
  margin-left: 15px;
  margin-right: 0;
}

.block--review .block__header .block__info {
  padding-left: 0;
  padding-right: 15px;
}

.ps-checkbox label {
  padding-left: 0;
  padding-right: 30px;
}

.ps-form--account .form-forgot > a {
  left: 10px;
  right: auto;
}

.ps-form--account .form-forgot input {
  padding-right: 20px;
  padding-left: 100px;
}

.header--mobile-categories .header__filter button i {
  margin-right: 0;
  margin-left: 10px;
}

#alert-container {
  left: 5px;
  right: auto;
}
#alert-container .alert .message-icon {
  right: 5%;
  left: auto;
}
#alert-container .alert {
  padding: 15px 60px 15px 40px;
}
#alert-container .alert.alert-dismissible .close {
  left: 15px;
  right: auto;
}

.ps-widget--account-dashboard .ps-widget__header figure {
  padding-left: 0;
  padding-right: 10px;
}

.ps-widget--account-dashboard .ps-widget__content ul li a i {
  float: right;
  margin-left: 10px;
  margin-right: 0;
}

.ps-section--account-setting .ps-section__content i {
  float: right;
  margin-left: 10px;
  margin-right: 0;
  margin-top: 3px;
}

.avatar-preview {
  margin-right: 0;
  margin-left: 15px;
}

.modal-header .close {
  float: left;
  margin: 0;
}

.ps-checkbox label:after {
  left: auto;
  right: 7px;
}

.product__attribute > label {
  margin-right: 0;
  margin-left: 10px;
}

#back2top {
  left: 30px;
  right: auto;
}

.ps-product--header-sticky .ps-product__wrapper {
  padding-left: 0;
  padding-right: 20px;
}

.ps-product--detail .ps-product__thumbnail figure {
  padding-left: 0;
  padding-right: 10px;
}

.ps-block--store-banner .ps-block__user p i {
  display: inline-block;
}

@media screen and (max-width: 1365px) {
  .ps-product--detail .ps-product__shopping figure, .ps-product--detail .ps-product__shopping .ps-btn {
    margin-right: 0;
    margin-left: 10px;
  }
}
@media (max-width: 1199px) {
  .ps-page--product .ps-page__container .ps-page__left {
    padding-left: 0;
  }
  #homepage-1 .ps-home-banner .ps-section__left {
    padding-left: 0;
  }
}
@media (max-width: 767px) {
  .ps-shopping-product .ps-product .ps-product__badge {
    left: 5px;
    right: auto;
  }
}
@media (max-width: 479px) {
  .header--mobile .header__actions > * {
    margin-right: 0;
    margin-left: 20px;
  }
  .ps-block--site-features .ps-block__item:last-child {
    padding-right: 0;
    border-right: none;
  }
  .ps-block--site-features .ps-block__item:first-child {
    padding-left: 0;
  }
}
@media (min-width: 768px) {
  .ps-block--store-banner .ps-block__user .ps-block__user-content {
    padding-left: 0;
    padding-right: 30px;
  }
}
#tab-faq .card .card-header h2 button::after {
  right: auto;
  left: 0;
}

@media (max-width: 1199px) {
  .ps-layout--shop .ps-layout__left .ps-filter__header .ps-btn--close {
    left: 10px;
    right: auto;
  }
}
.ml-2, .mx-2 {
  margin-left: 0 !important;
  margin-right: 0.3125rem !important;
}

.ps-shopping-cart .btn-cart-button-action:last-child {
  float: left;
}

.icon-arrow-right:before {
  content: "\e943";
}

.icon-arrow-left:before {
  content: "\e944";
}
/* استایل‌های هدر - RTL */
.header__top [style*="padding: 8px 0"] {
    padding: 8px 0;
}

/* استایل جستجو - RTL */
.ps-form--quick-search .form-control.input-search-product {
    border-radius: 6px 0 0 6px;
    padding: 10px;
}

.ps-form--quick-search .spinner-icon {
    left: 45px;
    right: auto;
}

.ps-form--quick-search button[type="submit"] {
    position: absolute;
    left: 2px;
    right: auto;
    top: 2px;
    padding: 7px;
    border-radius: 6px;
}

/* استایل یوزر dropdown - نسخه لاگین RTL */
.user-trigger {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
}

.user-trigger .position-relative img {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.user-trigger .online-dot {
    position: absolute;
    bottom: 0;
    left: 0;
    right: auto;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border: 2px solid white;
    border-radius: 50%;
}

.user-trigger .fw-semibold.text-light {
    font-size: 13px;
}

.user-trigger .text-white-50 {
    font-size: 11px;
}

/* استایل dropdown منو - RTL */
.user-dropdown-menu {
    min-width: 220px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: none;
    padding: 0.5rem;
    text-align: right;
}

.user-dropdown-menu .dropdown-header {
    padding-right: 1rem;
    padding-left: 0;
}

.user-dropdown-menu .dropdown-header .fw-semibold {
    font-weight: 600;
}

.user-dropdown-menu .dropdown-header small {
    color: #6c757d;
}

.user-dropdown-menu .divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 6px 0;
}

.user-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    text-align: right;
}

.user-dropdown-menu .dropdown-item.logout-item {
    background: rgba(239, 68, 68, 0.08);
    color: #dc3545;
    transition: all 0.25s ease;
}

.user-dropdown-menu .dropdown-item.logout-item:hover {
    background: rgba(239, 68, 68, 0.15);
    transform: translateX(-3px);
}

/* استایل بخش لاگین/رجیستر - نسخه مهمان RTL */
.guest-user-section {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.guest-user-section .avatar-circle {
    width: 32px;
    height: 32px;
    background: linear-gradient(145deg, #ffffff 0%, #ffffff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guest-user-section .avatar-circle i {
    color: #212529;
    font-size: 16px;
}

.guest-user-section .user-links {
    padding-right: 5px;
    padding-left: 0;
}

.guest-user-section .user-links a {
    text-decoration: none;
}

.guest-user-section .user-links .separator {
    color: #f8f9fa;
}


/* RTL برای سایدبار */
.ps-panel--sidebar {
    right: auto;
    left: -100%;
    transition: right 0.3s ease, left 0.3s ease;
}

.ps-panel--sidebar.active {
    right: 0;
    left: auto;
}

/* RTL برای دکمه‌ها */
button[type="submit"] svg {
    transform: scaleX(-1);
}

/* RTL برای سوییچر زبان */
.language-switcher .dropdown-menu {
    text-align: right;
    right: auto;
    left: 0;
}

/* RTL برای آیکون منو */
.icon-menu:before,
.icon-list4:before,
.icon-magnifier:before,
.icon-home:before {
    display: inline-block;
    margin-left: 8px;
    margin-right: 0;
}

/* RTL برای سرچ موبایل */
.ps-form--search-mobile .form-group--nest button {
    right: auto;
    left: 5px;
}

.ps-form--search-mobile .spinner-icon {
    right: auto;
    left: 50px;
}

/* RTL برای فوتر و هدر */
.header__left,
.header__right,
.navigation__left,
.navigation__right {
    direction: rtl;
}

/* RTL برای استایل‌های dropdown منو */
.dropdown-menu {
    text-align: right;
}

.dropdown-menu-end {
    right: auto;
    left: 0;
}

/* RTL برای آیکون چورون */
[class*="chevron"] {
    transform: scaleX(-1);
}

/* RTL برای نوار ناوبری موبایل */
.navigation--list .navigation__item i {
    margin-left: 8px;
    margin-right: 0;
}

/* RTL برای کانتینر */
.ps-container {
    padding-right: 15px;
    padding-left: 15px;
}

/* RTL برای لیبل محصولات */
.product-cat-label {
    right: 0;
    left: auto;
}

/* RTL برای انتخاب دسته‌بندی */
.product-category-select {
    background-position: left 10px center;
    padding-right: 10px;
    padding-left: 30px;
}

/* برای حالت RTL (اگر از راست به چپ استفاده می‌کنی) */
.rtl .user-dropdown-menu .dropdown-item.active {
    border-left: 3px solid #1f2937;
    border-right: none;
    padding-left: calc(0.75rem - 3px);
    padding-right: 0.75rem;
}

.rtl .menu--mobile .active > a,
.rtl .menu--mobile .current-menu-item > a {
    border-left: 3px solid #1f2937;
    border-right: none;
}
/* حالت LTR (پیش‌فرض - چپ به راست) */
.user-dropdown-menu .dropdown-item.active {
    border-right: 3px solid #1f2937;
    padding-right: calc(0.75rem - 3px);
}

.dropdown-menu.user-dropdown-menu .dropdown-item.active {
    border-right: 3px solid #1f2937 !important;
    padding-right: calc(0.75rem - 3px) !important;
    border-left: none !important;
}
.menu--product-categories .menu__content {
  right: 0;
}
.qr-code-container {
    left:16px;
    right: auto;
    width: 75px;
}

.status-badge {
    right: auto;
    left: 16px;
}
.btn-quick-view {
    right: auto;
    left: 2px;

}
.text-white-50 {
    text-align: right;
}
