/* Language-specific fonts CSS with comprehensive icon protection */

/* Pagination arrows - configurable classes */
body.lf-pagination-mode-unicode .ty-pagination__text-arrow,
body.lf-pagination-mode-unicode .ty-pagination__btn .ty-icon {
  font-family: inherit !important;
  font-style: normal !important;
  font-weight: 400 !important;
  text-decoration: none !important;
}

body.lf-pagination-mode-unicode .ty-pagination__prev .ty-pagination__text-arrow:before {
  content: "\2190" !important;
  font-family: inherit !important;
}

body.lf-pagination-mode-unicode .ty-pagination__next .ty-pagination__text-arrow:before,
body.lf-pagination-mode-unicode .ty-pagination__right-arrow .ty-pagination__text-arrow:before {
  content: "\2192" !important;
  font-family: inherit !important;
}

html[dir="rtl"] body.lf-pagination-mode-unicode .ty-pagination__prev .ty-pagination__text-arrow:before {
  content: "\2192" !important;
}

html[dir="rtl"] body.lf-pagination-mode-unicode .ty-pagination__next .ty-pagination__text-arrow:before,
html[dir="rtl"] body.lf-pagination-mode-unicode .ty-pagination__right-arrow .ty-pagination__text-arrow:before {
  content: "\2190" !important;
}

body.lf-pagination-mode-tygh_icons .ty-pagination__text-arrow,
body.lf-pagination-mode-tygh_icons .ty-pagination__btn .ty-icon {
  font-family: 'tygh-icons' !important;
  font-style: normal !important;
  font-weight: normal !important;
  text-decoration: none !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

body.lf-pagination-mode-tygh_icons .ty-pagination__text-arrow:before {
  font-family: 'tygh-icons' !important;
  content: "\e01a" !important;
}

html[dir="rtl"] body.lf-pagination-mode-tygh_icons .ty-pagination__prev .ty-pagination__text-arrow:before {
  content: "\e01b" !important;
}

html[dir="rtl"] body.lf-pagination-mode-tygh_icons .ty-pagination__next .ty-pagination__text-arrow:before,
html[dir="rtl"] body.lf-pagination-mode-tygh_icons .ty-pagination__right-arrow .ty-pagination__text-arrow:before {
  content: "\e01a" !important;
}

body.lf-pagination-mode-tygh_icons .ty-pagination__prev .ty-pagination__text-arrow:before {
  content: "\e01a" !important;
}

body.lf-pagination-mode-tygh_icons .ty-pagination__next .ty-pagination__text-arrow:before,
body.lf-pagination-mode-tygh_icons .ty-pagination__right-arrow .ty-pagination__text-arrow:before {
  content: "\e01b" !important;
}

/* Currency spacing controls */
body[class*="lf-currency-spacing-"] .ut2-cost-base bdi,
body[class*="lf-currency-spacing-"] .ut2-cost-multi bdi,
body[class*="lf-currency-spacing-"] .ty-price,
body[class*="lf-currency-spacing-"] .ty-price bdi,
body[class*="lf-currency-spacing-"] .ty-sub-price,
body[class*="lf-currency-spacing-"] .ty-sub-price bdi {
  white-space: nowrap;
}

.ty-price-symbol {
  display: inline-flex;
  align-items: baseline;
  font: inherit;
  white-space: nowrap;
}

.ty-price-symbol--before {
  margin-right: 0.45ch;
  margin-inline-end: 0.45ch;
}

.ty-price-symbol--after {
  margin-left: 0.45ch;
  margin-inline-start: 0.45ch;
}

body.lf-currency-spacing-compact .ty-price-symbol--before {
  margin-right: 0.3ch;
  margin-inline-end: 0.3ch;
}

body.lf-currency-spacing-compact .ty-price-symbol--after {
  margin-left: 0.3ch;
  margin-inline-start: 0.3ch;
}

body.lf-currency-spacing-tight .ty-price-symbol--before {
  margin-right: 0.15ch;
  margin-inline-end: 0.15ch;
}

body.lf-currency-spacing-tight .ty-price-symbol--after {
  margin-left: 0.15ch;
  margin-inline-start: 0.15ch;
}

/* Arabic font (Noto Sans Arabic) */
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/notosansarabic/v18/nwpxtLGrOAZMl5nJ_wfgRg3DrWFZWsnVBJ_sS6tlqHHFlhQ5l3sQWIHPqzCfyG2vu3CBFQLaig.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-08BD, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE80-FEFC, U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/notosansarabic/v18/nwpxtLGrOAZMl5nJ_wfgRg3DrWFZWsnVBJ_sS6tlqHHFlhQ5l3sQWIHPqzCfyG2vu3CBFQLaig.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-08BD, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE80-FEFC, U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/notosansarabic/v18/nwpxtLGrOAZMl5nJ_wfgRg3DrWFZWsnVBJ_sS6tlqHHFlhQ5l3sQWIHPqzCfyG2vu3CBFQLaig.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-08BD, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE80-FEFC, U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/notosansarabic/v18/nwpxtLGrOAZMl5nJ_wfgRg3DrWFZWsnVBJ_sS6tlqHHFlhQ5l3sQWIHPqzCfyG2vu3CBFQLaig.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-08BD, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE80-FEFC, U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* English font (Inter) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v13/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v13/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v13/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v13/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* CRITICAL: Icon preservation must come first with highest specificity */
.ut2-icon, i.ut2-icon, [class*="ut2-icon-"], 
.ty-icon, [class*="ty-icon-"], 
.fa, .fas, .far, .fab, .fal, .fad, .fat, [class*="fa-"], 
.icon, [class*="icon-"], 
.uni2-icons, [class*="uni2-icons"],
.glyph, [class*="glyph-"] { 
  font-family: 'uni2-icons', 'glyphs', 'FontAwesome' !important; 
}

/* Apply fonts based on language attribute but exclude icons */
html[lang^="ar"]:not(.no-font-override) *:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]), 
[dir="rtl"]:not(.no-font-override) *:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]) {
  font-family: 'Noto Sans Arabic', 'Tahoma', sans-serif !important;
}

/* Specific text elements with icon exclusions */
html[lang^="ar"] body:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]), 
[dir="rtl"] body:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]),
html[lang^="ar"] input:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]), 
[dir="rtl"] input:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]),
html[lang^="ar"] button:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]),
[dir="rtl"] button:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]),
html[lang^="ar"] select:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]),
[dir="rtl"] select:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]),
html[lang^="ar"] textarea:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]),
[dir="rtl"] textarea:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]) {
  font-family: 'Noto Sans Arabic', 'Tahoma', sans-serif !important;
}

html[lang^="ar"] h1:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]), 
html[lang^="ar"] h2:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]), 
html[lang^="ar"] h3:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]), 
html[lang^="ar"] h4:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]), 
html[lang^="ar"] h5:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]), 
html[lang^="ar"] h6:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]),
[dir="rtl"] h1:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]), 
[dir="rtl"] h2:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]), 
[dir="rtl"] h3:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]), 
[dir="rtl"] h4:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]), 
[dir="rtl"] h5:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]), 
[dir="rtl"] h6:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]) {
  font-family: 'Noto Sans Arabic', 'Tahoma', sans-serif !important;
}

/* CSS Variables for Arabic */
:root[lang^="ar"], html[dir="rtl"]:root {
  --ut2-font-primary: 'Noto Sans Arabic', 'Tahoma', sans-serif !important;
  --ut2-font-secondary: 'Noto Sans Arabic', 'Tahoma', sans-serif !important;
  --font-family-base: 'Noto Sans Arabic', 'Tahoma', sans-serif !important;
  --font-family-headings: 'Noto Sans Arabic', 'Tahoma', sans-serif !important;
}

/* English/LTR styles with icon exclusions */
html:not([lang^="ar"]):not([dir="rtl"]):not(.no-font-override) *:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]),
html[lang^="en"]:not(.no-font-override) *:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]) {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif !important;
}

html:not([lang^="ar"]):not([dir="rtl"]) body:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]),
html[lang^="en"] body:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]),
html:not([lang^="ar"]):not([dir="rtl"]) input:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]),
html[lang^="en"] input:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]),
html:not([lang^="ar"]):not([dir="rtl"]) button:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]),
html[lang^="en"] button:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]),
html:not([lang^="ar"]):not([dir="rtl"]) select:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]),
html[lang^="en"] select:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]),
html:not([lang^="ar"]):not([dir="rtl"]) textarea:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]),
html[lang^="en"] textarea:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]) {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif !important;
}

html:not([lang^="ar"]):not([dir="rtl"]) h1:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]),
html:not([lang^="ar"]):not([dir="rtl"]) h2:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]),
html:not([lang^="ar"]):not([dir="rtl"]) h3:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]),
html:not([lang^="ar"]):not([dir="rtl"]) h4:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]),
html:not([lang^="ar"]):not([dir="rtl"]) h5:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]),
html:not([lang^="ar"]):not([dir="rtl"]) h6:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]),
html[lang^="en"] h1:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]), 
html[lang^="en"] h2:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]), 
html[lang^="en"] h3:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]),
html[lang^="en"] h4:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]), 
html[lang^="en"] h5:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]), 
html[lang^="en"] h6:not([class*="ut2-icon"]):not([class*="ty-icon"]):not([class*="fa"]):not([class*="icon"]):not([class*="uni2-icons"]):not([class*="glyph"]) {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif !important;
}

/* CSS Variables for English */
:root:not([lang^="ar"]):not([dir="rtl"]),
:root[lang^="en"] {
  --ut2-font-primary: 'Inter', 'Helvetica Neue', Arial, sans-serif !important;
  --ut2-font-secondary: 'Inter', 'Helvetica Neue', Arial, sans-serif !important;
  --font-family-base: 'Inter', 'Helvetica Neue', Arial, sans-serif !important;
  --font-family-headings: 'Inter', 'Helvetica Neue', Arial, sans-serif !important;
}

/* CS-Cart Standard Icons - Force glyphs font for specific icon classes */

/* Breadcrumb and navigation icons */
html body .ty-icon-location-arrow:before,
html[dir="rtl"] body .ty-icon-location-arrow:before,
html[lang="ar"] body .ty-icon-location-arrow:before,
html body .ty-icon-compare:before,
html[dir="rtl"] body .ty-icon-compare:before,
html[lang="ar"] body .ty-icon-compare:before,
html body .ty-icon-down-open:before,
html[dir="rtl"] body .ty-icon-down-open:before,
html[lang="ar"] body .ty-icon-down-open:before,
html body .ty-icon-up-open:before,
html[dir="rtl"] body .ty-icon-up-open:before,
html[lang="ar"] body .ty-icon-up-open:before,
html body .ty-icon-cancel-circle:before,
html[dir="rtl"] body .ty-icon-cancel-circle:before,
html[lang="ar"] body .ty-icon-cancel-circle:before,
html body .ty-icon-flight:before,
html[dir="rtl"] body .ty-icon-flight:before,
html[lang="ar"] body .ty-icon-flight:before,
html body .ty-icon-ok:before,
html[dir="rtl"] body .ty-icon-ok:before,
html[lang="ar"] body .ty-icon-ok:before {
    font-family: "glyphs" !important;
}

/* Additional protection for location icon specifically */
.ty-geo-maps__geolocation .ty-icon-location-arrow:before {
    font-family: "glyphs" !important;
    content: "\e901" !important;
}