/* Artizana Syria V2 — HOME-I18N-RTL-FIX-R4.
   Arabic preview ONLY; no global CSS and no modification to the original English design.
   The template's rtl.css is imported by style.css but uses a .rtl body class;
   do NOT activate the .rtl class, which reverses every .row and .d-flex globally. */

/* The 200%-wide template footer pseudo-element and off-screen mobile drawer
   can create horizontal scroll under dir=rtl. Keep the viewport anchored. */
html[lang="ar"][dir="rtl"] { max-width: 100%; overflow-x: clip; }
html[lang="ar"][dir="rtl"] body { width: 100%; max-width: 100%; overflow-x: clip; }
html[lang="ar"][dir="rtl"] .page-wrapper { width: 100%; max-width: 100%; min-width: 0; }
html[lang="ar"][dir="rtl"] .page-wrapper > section,
html[lang="ar"][dir="rtl"] .page-wrapper > footer { max-width: 100%; }

/* Keep connected Arabic glyphs intact. Arabic-only JS removes SplitText
   character-splitting before the template's script.js can initialize. */
html[lang="ar"][dir="rtl"] .sec-title_heading,
html[lang="ar"][dir="rtl"] .sec-title_title {
  font-family: 'Tajawal', sans-serif;
  letter-spacing: 0;
  text-transform: none;
  overflow-wrap: normal;
  word-break: normal;
}
html[lang="ar"][dir="rtl"] .artizana-title-row { min-width: 0; max-width: 100%; }
html[lang="ar"][dir="rtl"] .artizana-title-row > .sec-title_heading {
  min-width: 0;
  max-width: 100%;
  line-height: 1.32;
  unicode-bidi: plaintext;
}
html[lang="ar"][dir="rtl"] .sec-title.centered .artizana-title-row {
  justify-content: center;
  text-align: center;
}

/* Keep layout components RTL without reversing grid and slider geometry. */
html[lang="ar"][dir="rtl"] .main-header.artizana-floating-header .main-menu .navigation {
  direction: rtl;
}
html[lang="ar"][dir="rtl"] .main-header.artizana-floating-header .main-menu .navigation > li > a {
  letter-spacing: 0;
  text-transform: none;
}
html[lang="ar"][dir="rtl"] .main-header.artizana-floating-header .main-menu .navigation .mega-menu {
  direction: ltr; /* placeholder category labels are still English */
}
html[lang="ar"][dir="rtl"] .main-header.artizana-floating-header .main-menu .navigation .mega-menu a {
  direction: ltr;
  unicode-bidi: isolate;
}

/* Mobile drawer: avoid leaving a positioned box 400px beyond the viewport.
   Move it with a transform instead; transforms do not increase layout width. */
html[lang="ar"][dir="rtl"] .main-header .mobile-menu {
  right: 0;
  left: auto;
  width: min(330px, 88vw);
  max-width: 100vw;
  padding: 0;
}
html[lang="ar"][dir="rtl"] .main-header .mobile-menu .menu-box {
  right: 0;
  left: auto;
  width: 100%;
  transform: translateX(105%);
  direction: rtl;
  text-align: right;
}
html[lang="ar"][dir="rtl"] body.mobile-menu-visible .main-header .mobile-menu .menu-box {
  right: 0;
  transform: translateX(0);
}
html[lang="ar"][dir="rtl"] .main-header .mobile-menu .nav-logo { text-align: center; }
html[lang="ar"][dir="rtl"] .main-header .mobile-menu .close-btn { right: 14px; left: auto; }
html[lang="ar"][dir="rtl"] .main-header .mobile-menu .navigation li.dropdown > .dropdown-btn {
  left: 0;
  right: auto;
}
html[lang="ar"][dir="rtl"] .main-header .mobile-menu .navigation li.dropdown > .dropdown-btn::after {
  left: auto;
  right: 0;
}
html[lang="ar"][dir="rtl"] .main-header .mobile-menu .navigation li.dropdown > a {
  padding-right: 20px;
  padding-left: 52px;
}
html[lang="ar"][dir="rtl"] .main-header .mobile-menu .navigation li > ul > li > a {
  padding-right: 30px;
  padding-left: 52px;
}

/* Readability until dynamic records supply their real Arabic text: sample EN
   titles/descriptions retain LTR punctuation, while AR UI stays RTL. */
html[lang="ar"][dir="rtl"] .service-block_five-title,
html[lang="ar"][dir="rtl"] .service-block_five-text,
html[lang="ar"][dir="rtl"] .service-block_three-title,
html[lang="ar"][dir="rtl"] .service-block_three-text,
html[lang="ar"][dir="rtl"] .news-block_three-heading,
html[lang="ar"][dir="rtl"] .news-block_three-text,
html[lang="ar"][dir="rtl"] .about-one_text {
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}
html[lang="ar"][dir="rtl"] .news-block_three-more,
html[lang="ar"][dir="rtl"] .news-three_title-outer,
html[lang="ar"][dir="rtl"] .about-one_content { direction: rtl; text-align: right; }
html[lang="ar"][dir="rtl"] .news-block_three-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Do not reverse Swiper's track: its JS calculates translations in LTR. */
html[lang="ar"][dir="rtl"] .swiper-container,
html[lang="ar"][dir="rtl"] .swiper-wrapper { direction: ltr; }
html[lang="ar"][dir="rtl"] .swiper-slide { min-width: 0; direction: rtl; }

/* The legacy footer-bottom ::before uses width:200% with right:0.
   Draw exactly one viewport-wide dark band, centered behind both texts. */
html[lang="ar"][dir="rtl"] .main-footer .footer-bottom {
  position: relative;
  background: transparent;
}
html[lang="ar"][dir="rtl"] .main-footer .footer-bottom::before {
  left: 50%;
  right: auto;
  width: 100vw;
  transform: translateX(-50%);
  border-radius: 0;
}
html[lang="ar"][dir="rtl"] .main-footer .footer-bottom .artizana-bottom-row {
  position: relative;
  z-index: 1;
  direction: rtl;
  flex-direction: row;
  text-align: right;
}
html[lang="ar"][dir="rtl"] .main-footer .footer-contact_list li {
  direction: rtl;
  text-align: right;
}

@media (max-width: 991px) {
  html[lang="ar"][dir="rtl"] .artizana-about-wide > .auto-container > .row,
  html[lang="ar"][dir="rtl"] .artizana-news-wide > .auto-container > .row {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }
  html[lang="ar"][dir="rtl"] .artizana-about-wide .about-one_content,
  html[lang="ar"][dir="rtl"] .artizana-about-wide .about-one_image-outer,
  html[lang="ar"][dir="rtl"] .artizana-news-wide .news-three_content-outer {
    min-width: 0;
    max-width: 100%;
  }
  html[lang="ar"][dir="rtl"] .artizana-news-wide > .auto-container,
  html[lang="ar"][dir="rtl"] .artizana-products-wide > .auto-container,
  html[lang="ar"][dir="rtl"] .artizana-stories-wide > .auto-container {
    max-width: 100%;
    padding-inline: clamp(14px, 3vw, 24px);
  }
}

@media (max-width: 575px) {
  html[lang="ar"][dir="rtl"] .artizana-title-row { gap: 9px; }
  html[lang="ar"][dir="rtl"] .sec-title_heading {
    font-size: clamp(25px, 7vw, 36px);
    line-height: 1.35;
  }
  html[lang="ar"][dir="rtl"] .artizana-about-wide > .auto-container {
    width: 100%;
    max-width: 100%;
    padding-inline: 15px;
  }
  html[lang="ar"][dir="rtl"] .main-header.header-style-one.artizana-floating-header .header-lower .inner-container > .d-flex {
    min-width: 0;
  }
  html[lang="ar"][dir="rtl"] .main-footer .footer-bottom .artizana-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@supports not (overflow: clip) {
  html[lang="ar"][dir="rtl"],
  html[lang="ar"][dir="rtl"] body { overflow-x: hidden; }
}

/* R4-GIFTS-DROPDOWN-FIX1 — Arabic desktop Gifts dropdown ONLY.
   Anchor the dropdown's right edge to the Gifts menu item so the panel extends
   leftward. No changes to the product mega menu, mobile drawer, or English. */
@media (min-width: 992px) {
  html[lang="ar"][dir="rtl"] .main-header.artizana-floating-header
  .main-menu .navigation > li.dropdown:not(.has-mega-menu) > ul {
    left: auto;
    right: 0;
  }
}

/* GIFTS-FIX2: Arabic desktop Gift dropdown labels, aligned right only.
   Preserve FIX1 placement (right:0), hover style and mobile/English. */
@media (min-width: 992px) {
  html[lang="ar"][dir="rtl"] .main-header.artizana-floating-header
  .main-menu .navigation > li.dropdown:not(.has-mega-menu) > ul > li,
  html[lang="ar"][dir="rtl"] .main-header.artizana-floating-header
  .main-menu .navigation > li.dropdown:not(.has-mega-menu) > ul > li > a {
    direction: rtl;
    text-align: right;
  }
}

/* HOME RTL CATEGORIES ALIGN FIX1 — Best Products cards ONLY.
   Arabic preview: right-align card titles and descriptions without moving
   centered artwork, altering Swiper layout, or changing EN/mobile menu.
   unicode-bidi: plaintext keeps temporary English sample text readable;
   real Arabic record data will be laid out RTL when integrated later. */
html[lang="ar"][dir="rtl"] .services-two.artizana-products-wide
.service-block_five-inner .service-block_five-title,
html[lang="ar"][dir="rtl"] .services-two.artizana-products-wide
.service-block_five-inner .service-block_five-text {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

/* HOME RTL LATEST PRODUCTS ARROWS FIX1 - Arabic homepage ONLY.
   Keep the card/link/hover animation unchanged. Position its arrow button
   at the bottom-left, and mirror the icon glyph to point left.
   Do not flip the whole button: the theme scales it on hover. */
html[lang="ar"][dir="rtl"] .projects-one .project-block_one-arrow {
  right: auto;
  left: 30px;
}
html[lang="ar"][dir="rtl"] .projects-one .project-block_one-arrow::before {
  display: inline-block;
  transform: scaleX(-1);
}


/* HOME RTL STORIES CARDS FIX1 — "Our Stories" cards only on Arabic homepage.
   1) Right-align the card title and description.
   2) Move the Artizana mark box to the left edge of the image area.
   3) Move the arrow button to the right edge of the image area and mirror
      its glyph horizontally so it reads correctly in RTL.
   Keep card dimensions, imagery, hover transitions, and English unchanged. */
html[lang="ar"][dir="rtl"] .services-three.artizana-stories-wide .service-block_three-title,
html[lang="ar"][dir="rtl"] .services-three.artizana-stories-wide .service-block_three-title a,
html[lang="ar"][dir="rtl"] .services-three.artizana-stories-wide .service-block_three-text {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}
html[lang="ar"][dir="rtl"] .services-three.artizana-stories-wide .service-block_three-icon {
  right: auto;
  left: 30px;
}
html[lang="ar"][dir="rtl"] .services-three.artizana-stories-wide .service-block_three-arrow {
  left: auto;
  right: 25px;
}
html[lang="ar"][dir="rtl"] .services-three.artizana-stories-wide .service-block_three-arrow::before {
  display: inline-block;
  transform: scaleX(-1);
}

/* HOME RTL NEWS CARDS FIX1 — Arabic Latest News & Articles section ONLY.
   Keep Swiper in LTR for unchanged JS geometry; mirror visual icon directions
   for RTL semantics: previous -> right, next -> left, read more -> left.
   Maintain the read-more icon on the left side of the button, text on right.
   The HTML source, English preview, card sizing and other sections are unchanged. */
html[lang="ar"][dir="rtl"] .news-three.artizana-news-wide .news-block_three-heading,
html[lang="ar"][dir="rtl"] .news-three.artizana-news-wide .news-block_three-heading a,
html[lang="ar"][dir="rtl"] .news-three.artizana-news-wide .news-block_three-text {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}
html[lang="ar"][dir="rtl"] .news-three.artizana-news-wide .news-block_three-more > i.fa-arrow-right {
  display: inline-block;
  transform: scaleX(-1);
}
html[lang="ar"][dir="rtl"] .news-three.artizana-news-wide .three-item-carousel-prev::before,
html[lang="ar"][dir="rtl"] .news-three.artizana-news-wide .three-item-carousel-next::before {
  display: inline-block;
  transform: scaleX(-1);
}

/* HOME RTL FOOTER FIX1 — Arabic homepage footer and back-to-top only.
   Mirror the approved English hover affordance, align the contact icons to
   their RTL content, mirror the shaped copyright band, and place back-to-top
   on the opposite viewport edge. No structural / JavaScript changes. */
html[lang="ar"][dir="rtl"] .main-footer .artizana-footer-column .footer-list li a::before {
  left: auto;
  right: 0;
}
html[lang="ar"][dir="rtl"] .main-footer .artizana-footer-column .footer-list li a:hover {
  padding-left: 0;
  padding-right: 20px;
}
html[lang="ar"][dir="rtl"] .main-footer .footer-contact_list li {
  padding-left: 0;
  padding-right: 30px;
  direction: rtl;
  text-align: right;
}
html[lang="ar"][dir="rtl"] .main-footer .footer-contact_list li .icon {
  left: auto;
  right: 0;
}
/* Telephone numbers / email addresses keep their character order intact. */
html[lang="ar"][dir="rtl"] .main-footer .footer-contact_list li a {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}
/* The original LTR dark panel projects to the left of the footer column.
   In RTL it should project rightwards, preserving its rounded start edge. */
html[lang="ar"][dir="rtl"] .main-footer .footer-bottom::before {
  left: 0;
  right: auto;
  width: 200%;
  transform: none;
  border-radius: 15px 0 0 0;
}
/* Fixed back-to-top button: mirror its position, not the upward arrow. */
html[lang="ar"][dir="rtl"] .progress-wrap {
  right: auto;
  left: 30px;
}
@media (max-width: 575px) {
  html[lang="ar"][dir="rtl"] .progress-wrap {
    left: 18px;
  }
}

/* ARTIZANA MOBILE ARROWS R2 — The category carousel's logical RTL glyphs are
   defined once by artizana-products-full-width.css.  The old mobile-only
   scaleX(-1) was reversing them a second time; do not reintroduce it here. */
