/* Arabic version - Tajawal */
body.translatepress-ar,
body.translatepress-ar :where(
  h1, h2, h3, h4, h5, h6,
  p, a, li, span, div, strong, em, small,
  button, input, select, textarea, label,
  th, td,
  header, footer, nav, main, section, article, aside,
  .elementor-widget,
  .elementor-widget *,
  .woocommerce,
  .woocommerce *,
  .add-to-cart-icon,
  .add-to-cart-icon *
):not(i):not(svg):not(path):not(.star-rating):not(.star-rating *):not([class*="icon"]):not([class^="icon-"]):not(.rbb-icon):not(.rbb-icon *) {
  font-family: "Tajawal", Arial, sans-serif !important;
}

/* English version - Inter */
body.translatepress-en_US,
body.translatepress-en_US :where(
  h1, h2, h3, h4, h5, h6,
  p, a, li, span, div, strong, em, small,
  button, input, select, textarea, label,
  th, td,
  header, footer, nav, main, section, article, aside,
  .elementor-widget,
  .elementor-widget *,
  .woocommerce,
  .woocommerce *,
  .add-to-cart-icon,
  .add-to-cart-icon *
):not(i):not(svg):not(path):not(.star-rating):not(.star-rating *):not([class*="icon"]):not([class^="icon-"]):not(.rbb-icon):not(.rbb-icon *) {
  font-family: "Inter", Arial, sans-serif !important;
}

/* Force add-to-cart text specifically */
body.translatepress-ar .add-to-cart-icon {
  font-family: "Tajawal", Arial, sans-serif !important;
}

body.translatepress-en_US .add-to-cart-icon {
  font-family: "Inter", Arial, sans-serif !important;
}

/* Keep theme icons working */
.add-to-cart-icon i,
.add-to-cart-icon .rbb-icon,
.rbb-icon,
.rbb-icon::before,
.rbb-icon::after,
[class*="rbb-icon"],
[class*="rbb-icon"]::before,
[class*="rbb-icon"]::after {
  font-family: "rbb-font" !important;
}

/*fix lang link*/
/* Fix TranslatePress language menu duplicate text/flag */
#menu-item-15352 > a {
  font-size: 0 !important;
  line-height: 0 !important;
}

/* Hide the first duplicated flag/text directly inside the link */
#menu-item-15352 > a > img.trp-flag-image,
#menu-item-15352 > a > .trp-ls-language-name,
#menu-item-15352 > a > .trp-menu-ls-label {
  display: none !important;
}

/* Hide any theme pseudo duplicate coming from data-title */
#menu-item-15352 > a::before,
#menu-item-15352 > a::after {
  content: none !important;
  display: none !important;
}

/* Show only the real menu title */
#menu-item-15352 > a .menu-item-title,
#menu-item-15352 > a .menu-item-title *,
#menu-item-15352 > a .menu-item-title .trp-ls-language-name {
  display: inline-flex !important;
  align-items: center;
  font-size: 13px !important;
  line-height: 1.2 !important;
  font-family: "Inter", Arial, sans-serif !important;
}

/* Keep flag clean */
#menu-item-15352 > a .menu-item-title img.trp-flag-image {
  display: inline-block !important;
  width: 18px !important;
  height: 14px !important;
  margin-inline-end: 5px !important;
  vertical-align: middle;
}

/* ================================
   Footer RTL Alignment Fix Only
   Elementor Footer ID: 6154
   ================================ */

/* Arabic footer direction */
body.translatepress-ar .elementor-6154 {
  direction: rtl;
}

/* Make each footer column align its title + content together */
body.translatepress-ar .elementor-6154 .elementor-widget-wrap {
  text-align: right !important;
  align-items: flex-start !important;
}

/* Footer headings */
body.translatepress-ar .elementor-6154 .elementor-heading-title {
  text-align: right !important;
  width: 100%;
}

/* Text widgets, links, lists */
/* =========================================================
   Footer RTL Fix - ArkanTech
   Elementor Footer ID: 6154
   Safe full version
   ========================================================= */

/* Main RTL scope */
body.translatepress-ar .elementor-6154 {
  direction: rtl !important;
  text-align: right !important;
}

/* General footer headings */
body.translatepress-ar .elementor-6154 .elementor-heading-title {
  text-align: right !important;
  width: 100%;
}

/* General footer text */
body.translatepress-ar .elementor-6154 p,
body.translatepress-ar .elementor-6154 a,
body.translatepress-ar .elementor-6154 span,
body.translatepress-ar .elementor-6154 li {
  text-align: right !important;
}

/* Keep each widget aligned right without breaking column layout */
body.translatepress-ar .elementor-6154 .elementor-widget-wrap {
  text-align: right !important;
  align-items: flex-start !important;
}

/* ================================
   Top footer: social icons
   ================================ */

body.translatepress-ar .elementor-6154 .elementor-social-icons-wrapper {
  direction: rtl !important;
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 8px !important;
  text-align: right !important;
}

/* ================================
   Top footer: payment icons row
   ================================ */

body.translatepress-ar .elementor-6154 .elementor-element-d7e7e4b .elementor-widget-wrap {
  direction: rtl !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 8px !important;
  text-align: right !important;
}

body.translatepress-ar .elementor-6154 .elementor-widget-icon,
body.translatepress-ar .elementor-6154 .elementor-icon-wrapper {
  text-align: right !important;
}

/* ================================
   Bottom footer row
   Contact + Location image boxes
   Icon should be on RIGHT in RTL
   ================================ */

body.translatepress-ar .elementor-6154 .elementor-element-69419c0f {
  direction: rtl !important;
  text-align: right !important;
}

/* Target contact and location widgets only */
body.translatepress-ar .elementor-6154 .elementor-element-a4d24b8,
body.translatepress-ar .elementor-6154 .elementor-element-329163d {
  direction: rtl !important;
  text-align: right !important;
}

/* Main image-box fix: icon right, text beside it */
body.translatepress-ar .elementor-6154 .elementor-element-a4d24b8 .elementor-image-box-wrapper,
body.translatepress-ar .elementor-6154 .elementor-element-329163d .elementor-image-box-wrapper {
  direction: rtl !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  text-align: right !important;
}

/* Icon/image */
body.translatepress-ar .elementor-6154 .elementor-element-a4d24b8 .elementor-image-box-img,
body.translatepress-ar .elementor-6154 .elementor-element-329163d .elementor-image-box-img {
  order: 0 !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
  text-align: right !important;
}

/* Text area */
body.translatepress-ar .elementor-6154 .elementor-element-a4d24b8 .elementor-image-box-content,
body.translatepress-ar .elementor-6154 .elementor-element-329163d .elementor-image-box-content {
  order: 1 !important;
  text-align: right !important;
}

/* Title + description */
body.translatepress-ar .elementor-6154 .elementor-element-a4d24b8 .elementor-image-box-title,
body.translatepress-ar .elementor-6154 .elementor-element-a4d24b8 .elementor-image-box-description,
body.translatepress-ar .elementor-6154 .elementor-element-329163d .elementor-image-box-title,
body.translatepress-ar .elementor-6154 .elementor-element-329163d .elementor-image-box-description {
  text-align: right !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

/* Copyright */
body.translatepress-ar .elementor-6154 .elementor-element-dc6d1f5,
body.translatepress-ar .elementor-6154 .elementor-element-dc6d1f5 p {
  direction: rtl !important;
  text-align: right !important;
}

/* ================================
   Mobile footer
   ================================ */

@media (max-width: 767px) {
  body.translatepress-ar .elementor-6154,
  body.translatepress-ar .elementor-6154 .elementor-widget-wrap,
  body.translatepress-ar .elementor-6154 .elementor-heading-title,
  body.translatepress-ar .elementor-6154 p,
  body.translatepress-ar .elementor-6154 a,
  body.translatepress-ar .elementor-6154 span,
  body.translatepress-ar .elementor-6154 li {
    text-align: center !important;
  }

  body.translatepress-ar .elementor-6154 .elementor-social-icons-wrapper,
  body.translatepress-ar .elementor-6154 .elementor-element-d7e7e4b .elementor-widget-wrap {
    justify-content: center !important;
  }

  body.translatepress-ar .elementor-6154 .elementor-element-a4d24b8 .elementor-image-box-wrapper,
  body.translatepress-ar .elementor-6154 .elementor-element-329163d .elementor-image-box-wrapper {
    justify-content: center !important;
    text-align: center !important;
  }

  body.translatepress-ar .elementor-6154 .elementor-element-a4d24b8 .elementor-image-box-content,
  body.translatepress-ar .elementor-6154 .elementor-element-329163d .elementor-image-box-content,
  body.translatepress-ar .elementor-6154 .elementor-element-dc6d1f5,
  body.translatepress-ar .elementor-6154 .elementor-element-dc6d1f5 p {
    text-align: center !important;
  }
}

/* ================================
   Header Nav Font Size Only
   Safe scoped version
   Does NOT affect footer
   ================================ */

/* Desktop main nav only */
@media (min-width: 1280px) {
  #rbb-default-header .rbb-main-navigation .menu-container > li:not(#menu-item-15352) > a.a-level {
    font-size: 16px !important;
    line-height: 1.35 !important;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  #rbb-default-header .rbb-main-navigation .menu-container > li:not(#menu-item-15352) > a.a-level {
    font-size: 15px !important;
    line-height: 1.35 !important;
  }
}

/* Dropdown menu links inside header only */
#rbb-default-header .rbb-main-navigation .menu-container li .sub-menu a,
#rbb-default-header .rbb-main-navigation .menu-container li .dropdown-menu a {
  font-size: 14px !important;
  line-height: 1.4 !important;
}

/* Mobile header menu only */
@media (max-width: 1023px) {
  #rbb-default-header .header-mobile .menu-item > a,
  #rbb-default-header .header-mobile .menu-container > li > a,
  #rbb-default-header .rbb-mobile-navigation .menu-item > a {
    font-size: 15px !important;
    line-height: 1.45 !important;
  }
}

/* Fix TranslatePress language switcher corrupted leftover text in header */
#rbb-default-header #menu-item-15352 > a {
  font-size: 0 !important;
  line-height: 0 !important;
}

/* Hide broken direct text/flag output */
#rbb-default-header #menu-item-15352 > a > img.trp-flag-image,
#rbb-default-header #menu-item-15352 > a > .trp-ls-language-name,
#rbb-default-header #menu-item-15352 > a > .trp-menu-ls-label {
  display: none !important;
}

/* Hide theme pseudo text generated from data-title */
#rbb-default-header #menu-item-15352 > a::before,
#rbb-default-header #menu-item-15352 > a::after {
  content: none !important;
  display: none !important;
}

/* Show only the clean TranslatePress menu title */
#rbb-default-header #menu-item-15352 > a .menu-item-title,
#rbb-default-header #menu-item-15352 > a .menu-item-title .trp-menu-ls-label,
#rbb-default-header #menu-item-15352 > a .menu-item-title .trp-ls-language-name {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  font-family: "Inter", Arial, sans-serif !important;
}

/* Flag spacing */
#rbb-default-header #menu-item-15352 > a .menu-item-title img.trp-flag-image {
  display: inline-block !important;
  width: 18px !important;
  height: 14px !important;
  margin-inline-end: 5px !important;
  vertical-align: middle !important;
}

/* =================================================
   WooCommerce RTL sale price fix
   Keeps price order clean without affecting layout
   ================================================= */

/* Product price row only */
body.translatepress-ar .product_price.product_onsale {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  white-space: nowrap !important;
}

/* Old price */
body.translatepress-ar .product_price.product_onsale del {
  direction: rtl !important;
  unicode-bidi: isolate !important;
  display: inline-block !important;
  color: #cfcfcf !important;
  text-decoration: line-through !important;
  text-decoration-thickness: 1px !important;
  text-decoration-color: #d95b5b !important;
}

/* New/current price */
body.translatepress-ar .product_price.product_onsale > .woocommerce-Price-amount {
  direction: rtl !important;
  unicode-bidi: isolate !important;
  display: inline-block !important;
}

/* Sale badge */
body.translatepress-ar .product_price.product_onsale .badge-sale {
  margin-left: 0 !important;
  margin-right: 8px !important;
  order: -1 !important;
}
