/* ================================================
   Site-wide typography — Vazirmatn (Persian/Latin)
   Loaded from all layouts before other stylesheets
   ================================================ */

:root {
  --font-persian: 'Vazirmatn', Tahoma, sans-serif;
}

*,
*:not(.glyphicon)::before,
*:not(.glyphicon)::after {
  font-family: var(--font-persian);
}

html {
  direction: rtl;
}

body {
  font-family: var(--font-persian);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Input, textarea, select, button inherit font */
input,
textarea,
select,
button {
  font-family: inherit;
  font-size: inherit;
}

/* Bootstrap overrides — keep Glyphicons on icon spans inside these elements */
.navbar,
.navbar-brand,
.nav > li > a,
.dropdown-menu > li > a,
.form-control,
.panel-heading,
.alert,
label,
h1, h2, h3, h4, h5, h6,
p, td, th, li, a {
  font-family: var(--font-persian) !important;
}

.btn:not(.glyphicon) {
  font-family: var(--font-persian) !important;
}

.btn .glyphicon,
button .glyphicon,
.basket-wizard .glyphicon,
.genetics-body .glyphicon {
  font-family: 'Glyphicons Halflings' !important;
}

/* span excluded above — Glyphicons use span + icon font */
span:not(.glyphicon):not([class*="glyphicon-"]) {
  font-family: var(--font-persian);
}

/* Glyphicons Halflings — icon font (must NOT use Vazirmatn) */
@font-face {
  font-family: 'Glyphicons Halflings';
  src: url('/fonts/glyphicons-halflings-regular.eot');
  src: url('/fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'),
       url('/fonts/glyphicons-halflings-regular.woff2') format('woff2'),
       url('/fonts/glyphicons-halflings-regular.woff') format('woff'),
       url('/fonts/glyphicons-halflings-regular.ttf') format('truetype'),
       url('/fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.glyphicon {
  font-family: 'Glyphicons Halflings' !important;
  font-style: normal !important;
  font-weight: normal !important;
  line-height: 1;
  display: inline-block;
  position: relative;
  top: 1px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.glyphicon::before {
  font-family: 'Glyphicons Halflings' !important;
  font-style: normal !important;
  font-weight: normal !important;
}
