/**
 * Storefront typography identity
 *
 * IRANSansX is registered as "Source Sans Pro" via fa-fonts.css.
 * That stylesheet locks `wght` on body / headings / buttons, so CSS
 * `font-weight` no longer drives the variable axis and sections look
 * mismatched. This file restores one font stack + unlocks weight.
 */

:root {
  --bfrontshop-font-sans: "Source Sans Pro", "Source Sans Pro Fallback", Tahoma, sans-serif;
  --bs-font-sans-serif: var(--bfrontshop-font-sans);
  --bs-body-font-family: var(--bfrontshop-font-sans);
}

html,
body {
  font-family: var(--bfrontshop-font-sans);
  -moz-font-feature-settings: "ss02";
  -webkit-font-feature-settings: "ss02";
  font-feature-settings: "ss02";
}

@supports (font-variation-settings: normal) {
  /*
   * Keep Persian digit dots; do NOT lock wght so font-weight works.
   * Also reset fa-fonts rules that force headings/buttons to wght 700.
   */
  html,
  body,
  button,
  .btn,
  .button,
  .bold,
  .strong,
  b,
  strong,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  .light,
  .fw-light,
  .font-weight-light,
  .medium,
  .fw-medium,
  .font-weight-medium,
  .semibold,
  .fw-semibold,
  .font-weight-semibold,
  .fw-bold,
  .font-weight-bold,
  .black,
  .fw-black,
  .font-weight-black,
  input,
  select,
  textarea,
  .form-control,
  .form-select,
  .nav-link,
  .dropdown-menu,
  .select2-container,
  .select2-selection,
  .select2-results__option {
    font-variation-settings: "DOTS" 4;
  }
}

/* Bootstrap / form widgets that re-declare system fonts */
button,
.btn,
input,
select,
textarea,
.form-control,
.form-select,
.nav-link,
.dropdown-menu,
.list-group-item,
.card,
.modal,
.offcanvas,
.select2-container,
.select2-selection,
.select2-results__option,
.select2-search__field {
  font-family: inherit;
}

/*
 * Tenant HTML blocks (e.g. enamad/legal) sometimes hard-code Vazirmatn.
 * Keep one storefront identity unless the element is monospace/code.
 */
footer [style*="font-family"],
#footer [style*="font-family"],
.footer [style*="font-family"],
[data-bf-footer] [style*="font-family"] {
  font-family: var(--bfrontshop-font-sans) !important;
}
