/* Avellon 4.1.2 - FINAL card row alignment / ASCII digits. Loaded last. */
.woocommerce li.product.av-product-card .av-product-card__body,
.av-home li.product.av-product-card .av-product-card__body,
.av-shop-results li.product.av-product-card .av-product-card__body {
 display:grid!important;grid-template-columns:minmax(0,1fr)!important;
 grid-template-rows:18px 42px 16px minmax(43px,auto)!important;
 align-content:start!important;gap:0!important;min-height:0!important;
 padding:10px 10px 11px!important;text-align:right!important;
}
.woocommerce li.product.av-product-card .av-product-card__brand,
.av-home li.product.av-product-card .av-product-card__brand,
.av-shop-results li.product.av-product-card .av-product-card__brand {
 display:block!important;min-width:0!important;height:18px!important;min-height:18px!important;
 line-height:18px!important;margin:0!important;overflow:hidden!important;text-overflow:ellipsis!important;
 white-space:nowrap!important;box-sizing:border-box!important;
}
.av-product-card__brand-sep{margin-inline:5px!important;}
.woocommerce li.product.av-product-card .av-product-card__title-link,
.av-home li.product.av-product-card .av-product-card__title-link,
.av-shop-results li.product.av-product-card .av-product-card__title-link {
 display:block!important;height:42px!important;min-height:42px!important;max-height:42px!important;
 margin:0!important;overflow:hidden!important;align-self:start!important;
}
.woocommerce li.product.av-product-card .av-product-card__title-link h3,
.av-home li.product.av-product-card .av-product-card__title-link h3,
.av-shop-results li.product.av-product-card .av-product-card__title-link h3 {
 display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
 height:auto!important;min-height:0!important;max-height:42px!important;
 font-size:11px!important;line-height:21px!important;margin:0!important;padding:0!important;
 overflow:hidden!important;text-overflow:ellipsis!important;overflow-wrap:anywhere!important;
}
.woocommerce li.product.av-product-card .av-product-card__english,
.av-home li.product.av-product-card .av-product-card__english,
.av-shop-results li.product.av-product-card .av-product-card__english {
 display:block!important;height:16px!important;min-height:16px!important;max-height:16px!important;
 font:400 10px/16px Arial,sans-serif!important;white-space:nowrap!important;
 overflow:hidden!important;text-overflow:ellipsis!important;margin:0!important;padding:0!important;
 text-align:left!important;direction:ltr!important;
}
.woocommerce li.product.av-product-card .av-product-card__footer,
.av-home li.product.av-product-card .av-product-card__footer,
.av-shop-results li.product.av-product-card .av-product-card__footer {
 display:flex!important;align-items:center!important;justify-content:space-between!important;
 margin:0!important;padding:5px 0 0!important;border-top:1px solid #d4b5a9!important;
 min-height:43px!important;height:auto!important;align-self:stretch!important;gap:4px!important;
}
.av-product-card__price{min-width:0!important;overflow-wrap:normal!important;}
.av-product-card__price .woocommerce-Price-amount,
.av-product-card__price .woocommerce-Price-amount bdi,
.av-product-card__price .amount,
.av-daily-deals__price .amount,
.woocommerce-pagination .page-numbers,
.av-daily-deals__clock strong{
 font-family:Arial,Tahoma,sans-serif!important;font-variant-numeric:tabular-nums!important;
}
@media(max-width:767px){
 .woocommerce li.product.av-product-card .av-product-card__body,
 .av-home li.product.av-product-card .av-product-card__body,
 .av-shop-results li.product.av-product-card .av-product-card__body{
  grid-template-rows:16px 38px 15px minmax(40px,auto)!important;padding:8px 7px 9px!important;
 }
 .woocommerce li.product.av-product-card .av-product-card__brand,
 .av-home li.product.av-product-card .av-product-card__brand,
 .av-shop-results li.product.av-product-card .av-product-card__brand{height:16px!important;min-height:16px!important;line-height:16px!important;}
 .woocommerce li.product.av-product-card .av-product-card__title-link,
 .av-home li.product.av-product-card .av-product-card__title-link,
 .av-shop-results li.product.av-product-card .av-product-card__title-link{height:38px!important;min-height:38px!important;max-height:38px!important;}
 .woocommerce li.product.av-product-card .av-product-card__title-link h3,
 .av-home li.product.av-product-card .av-product-card__title-link h3,
 .av-shop-results li.product.av-product-card .av-product-card__title-link h3{font-size:10px!important;line-height:19px!important;max-height:38px!important;}
 .woocommerce li.product.av-product-card .av-product-card__english,
 .av-home li.product.av-product-card .av-product-card__english,
 .av-shop-results li.product.av-product-card .av-product-card__english{height:15px!important;min-height:15px!important;max-height:15px!important;font-size:9px!important;line-height:15px!important;}
 .woocommerce li.product.av-product-card .av-product-card__footer,
 .av-home li.product.av-product-card .av-product-card__footer,
 .av-shop-results li.product.av-product-card .av-product-card__footer{min-height:40px!important;padding-top:4px!important;}
}

/* Explicit slots keep footer on the same baseline even if English field is empty. */
.av-product-card__body > .av-product-card__brand{grid-row:1!important;}
.av-product-card__body > .av-product-card__title-link{grid-row:2!important;}
.av-product-card__body > .av-product-card__english{grid-row:3!important;}
.av-product-card__body > .av-product-card__footer{grid-row:4!important;}

/* AVELLON 4.1.3: maintain Vazir Persian glyphs, Latin digits, and tidy buy row. */
@font-face {
  font-family: "Avellon Latin Numerals";
  src: local("Arial"), local("Roboto"), local("Liberation Sans");
  font-style: normal;
  font-weight: 100 900;
  unicode-range: U+0030-0039;
}
/* Only the digit glyphs are taken from the Latin face; Persian stays Vazir. */
:root { --av-font-fa: "Avellon Latin Numerals", "Vazir Avellon", Tahoma, sans-serif;
        --av-font: "Avellon Latin Numerals", "Vazir Avellon", Tahoma, sans-serif; }
body, body button, body select, body input, body textarea,
.woocommerce, .woocommerce-page, .woocommerce button,
.av-product-card__price, .av-product-card__brand, .av-product-card__title-link,
.av-product-card__footer, .woocommerce-Price-amount, .woocommerce-Price-amount bdi,
.single-product .price, .single-product .product_title {
  font-family: "Avellon Latin Numerals", "Vazir Avellon", Tahoma, sans-serif !important;
}
/* Preserve English product-title styling; correct digits come from the first face. */
.av-product-card__english {font-family:"Avellon Latin Numerals", Arial, sans-serif !important;}
.av-product-card__body > .av-product-card__footer,
.woocommerce li.product.av-product-card .av-product-card__footer,
.av-home li.product.av-product-card .av-product-card__footer,
.av-shop-results li.product.av-product-card .av-product-card__footer {
  box-sizing:border-box !important;
  padding:11px 0 3px !important;
  min-height:49px !important;
  display:flex !important;
  flex-direction:row !important;
  justify-content:space-between !important;
  align-items:center !important;
  gap:7px !important;
  line-height:1.5 !important;
}
.av-product-card__footer .av-product-card__price{
  display:flex!important; flex-wrap:wrap!important; align-items:center!important;
  justify-content:flex-start!important; gap:3px!important;
  margin:0!important; padding:0!important; line-height:1.55!important;
  font-size:11px!important; min-height:28px!important;
  font-family:"Avellon Latin Numerals","Vazir Avellon",Tahoma,sans-serif!important;
}
.av-product-card__footer .av-product-card__action {
  margin:0!important; align-self:center!important; flex:0 0 auto!important;
}
.av-product-card__price .woocommerce-Price-amount,
.av-product-card__price .woocommerce-Price-amount bdi,
.av-product-card__price .amount,
.av-daily-deals__price .amount,
.woocommerce-pagination .page-numbers,
.av-daily-deals__clock strong{
  font-family:"Avellon Latin Numerals","Vazir Avellon",Tahoma,sans-serif!important;
  font-variant-numeric: tabular-nums!important;
}
@media (max-width:767px){
 .woocommerce li.product.av-product-card .av-product-card__body,
 .av-home li.product.av-product-card .av-product-card__body,
 .av-shop-results li.product.av-product-card .av-product-card__body{
    grid-template-rows:16px 38px 15px minmax(46px,auto)!important;
 }
 .woocommerce li.product.av-product-card .av-product-card__footer,
 .av-home li.product.av-product-card .av-product-card__footer,
 .av-shop-results li.product.av-product-card .av-product-card__footer{
    padding:9px 0 2px!important;min-height:46px!important;
 }
 .av-product-card__footer .av-product-card__price{font-size:10px!important; min-height:26px!important;}
}
