/* Arabic (RTL) layer — loaded after style.rtl.css on /ar pages. */

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/IBMPlexSansArabic-300.woff2") format("woff2");
  font-weight: 200 300;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/IBMPlexSansArabic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/IBMPlexSansArabic-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/IBMPlexSansArabic-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/IBMPlexSansArabic-700.woff2") format("woff2");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF;
}

:root {
  --font-display: "Zalando Sans Expanded", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-body: "Inter", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-ui: "Montserrat", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

html[lang="ar"] body,
html[lang="ar"] button,
html[lang="ar"] input,
html[lang="ar"] select,
html[lang="ar"] textarea {
  font-family: "IBM Plex Sans Arabic", "Inter", "Segoe UI", Tahoma, sans-serif;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] .hero__title,
html[lang="ar"] .display-title,
html[lang="ar"] .section-title {
  font-family: "IBM Plex Sans Arabic", "Zalando Sans Expanded", "Segoe UI", Tahoma, sans-serif;
}

/* Tracking breaks Arabic letter joining. */
html[lang="ar"] *,
html[lang="ar"] *::before,
html[lang="ar"] *::after {
  letter-spacing: 0 !important;
}

html[lang="ar"] body {
  line-height: 1.85;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6 {
  line-height: 1.35;
}

html[lang="ar"] p,
html[lang="ar"] li,
html[lang="ar"] dd {
  line-height: 1.9;
}

/* Directional icons flip in RTL. */
html[lang="ar"] .bi-arrow-up-right::before { content: "\F13F"; }
html[lang="ar"] .bi-arrow-down-right::before { content: "\F11E"; }
html[lang="ar"] .bi-arrow-right::before { content: "\F12F"; }
html[lang="ar"] .bi-arrow-left::before { content: "\F138"; }
html[lang="ar"] .bi-chevron-right::before { content: "\F284"; }
html[lang="ar"] .bi-chevron-left::before { content: "\F285"; }

/* Phone numbers, emails and Latin runs keep their own direction. */
a[href^="tel:"],
a[href^="mailto:"],
[dir="ltr"] {
  unicode-bidi: isolate;
}

html[lang="ar"] .category-card--product .category-card__title {
  max-width: min(58%, 14rem);
  line-height: 1.45;
  word-break: normal;
  overflow-wrap: anywhere;
}

.admin-locale-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .admin-locale-pair {
    grid-template-columns: 1fr;
  }
}

.admin-locale-pair__label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a7350;
  margin-bottom: 0.25rem;
}

.admin-locale-pair__label--ar {
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.8rem;
}
