/*
Theme Name: Goyto Child
Template: goyto
Version: 1.0.0
*/
/* ===== HARD OVERRIDE: Force VazirmatnFD everywhere ===== */
:root{
  --site-font: "VazirmatnFD", Tahoma, Arial, sans-serif;
}

/* 1) پایه */
html, body{
  font-family: var(--site-font) !important;
}

/* 2) اورراید سنگین برای کل سایت (به‌جز آیکن‌ها و svg) */
html body,
html body *:not(i):not(.fa):not([class^="fa-"]):not([class*=" fa-"]):not(svg):not(svg *){
  font-family: var(--site-font) !important;
}

/* 3) المنتور/ویجت‌ها */
html body .elementor,
html body .elementor *:not(i):not(.fa):not([class^="fa-"]):not([class*=" fa-"]):not(svg):not(svg *){
  font-family: var(--site-font) !important;
}

/* 4) هر چیزی که inline style داره (خیلی مهم برای بعضی ویجت‌ها/المنتور) */
html body [style*="font-family"]{
  font-family: var(--site-font) !important;
}

/* 5) فرم‌ها و دکمه‌ها (معمولاً جا می‌افتن) */
html body input,
html body textarea,
html body select,
html body button{
  font-family: var(--site-font) !important;
}


/* ===== KishNew Discount Display (Cards) ===== */
html body .kishnew-card{
  position: relative;
}

html body .kishnew-card .kishnew-badge-sale{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  background: #e60000;
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}

/* اگر badge خالی بود، متن رو خودِ CSS قرار بده */
html body .kishnew-card .kishnew-badge-sale:empty::before{
  content: "تخفیف ویژه";
}

html body .kishnew-card .kishnew-card-price del{
  display: block;
  opacity: .75;
  position: relative;
  text-decoration: none !important;
}

.kishnew-card-price del::after{
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 50%;
  height: 2px;
  background: currentColor;
  opacity: .55;
  transform: rotate(-3deg);
  border-radius: 999px;
  pointer-events: none;
}

html body .kishnew-card .kishnew-card-price del *{
  text-decoration: none !important;
}

html body .kishnew-card .kishnew-card-price ins{
  display: block;
  text-decoration: none !important;
  font-weight: 800;
  color: #e60000;
}

/* Price range (min/max) should be inline without separator line */
html body .kishnew-card .kishnew-card-price .kishnew-price-range{
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
  justify-content:flex-start;
}

html body .kishnew-card .kishnew-card-price .kishnew-price-range .kishnew-price-min,
html body .kishnew-card .kishnew-card-price .kishnew-price-range .kishnew-price-max{
  display:inline-flex;
  align-items:baseline;
  white-space:nowrap;
  border:0 !important;
  padding:0 !important;
  margin:0 !important;
}

/* این span جایگزین &ndash; شده: فقط فاصله بده، خط نشون نده */
html body .kishnew-card .kishnew-card-price .kishnew-price-range-dash{
  display:inline-block;
  width:8px;
  height:1px;
}

html body .kishnew-card .kishnew-card-price .kishnew-price-min,
html body .kishnew-card .kishnew-card-price .kishnew-price-max{
  border:0 !important;
}
