/* =========================================================
   MahakShop Child — Product card price system v1.5.6
   خروجی قیمت کارت‌ها بدون تداخل del/ins ووکامرس
   ========================================================= */

:where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .product-card__price-row,
:where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .product-card__price-row--masala,
:where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .product-card__deal {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 10px !important;
  border: 1px solid rgba(var(--mahak-brand-primary-rgb), .14) !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, rgba(255,255,255, .98), rgba(var(--mahak-brand-primary-rgb), .04)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86), 0 8px 22px rgba(87, 72, 39, .045) !important;
  overflow: hidden !important;
}

:where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .product-card__deal {
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
}

:where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .product-card__price-icon {
  width: 23px !important;
  height: 23px !important;
  min-width: 23px !important;
  flex: 0 0 23px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--mahak-brand-primary) !important;
  opacity: .84 !important;
}

:where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .product-card__price-icon svg {
  width: 100% !important;
  height: 100% !important;
  max-width: 23px !important;
  max-height: 23px !important;
  display: block !important;
}

:where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .product-card__price.mahak-card-price,
:where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .mahak-card-price {
  flex: 1 1 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: baseline !important;
  column-gap: 7px !important;
  row-gap: 3px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  direction: rtl !important;
  line-height: 1.2 !important;
  color: #272316 !important;
}

:where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .mahak-card-price--single {
  grid-template-columns: minmax(0, 1fr) !important;
}

:where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .product-card__price-current,
:where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .mahak-card-price__current {
  min-width: 0 !important;
  max-width: 100% !important;
  display: inline-flex !important;
  align-items: baseline !important;
  justify-content: flex-start !important;
  gap: 3px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  color: #252116 !important;
  font-weight: 950 !important;
  letter-spacing: -.02em !important;
}

:where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .product-card__price-current > span,
:where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .mahak-card-price__current .mahak-card-price__amount,
:where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .product-card__sale-price ins .amount,
:where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .product-card .price ins .amount,
:where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .product-card .price > .amount {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: clamp(12px, .95vw, 15px) !important;
  line-height: 1.16 !important;
  font-weight: 950 !important;
}

:where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .product-card__price-current small,
:where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .mahak-card-price__currency,
:where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .product-card .price .woocommerce-Price-currencySymbol {
  flex: 0 0 auto !important;
  font-size: 8.5px !important;
  line-height: 1.1 !important;
  font-weight: 850 !important;
  color: #777064 !important;
  opacity: .92 !important;
}

:where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .product-card__price-old,
:where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .product-card__old-price,
:where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .mahak-card-price__old {
  min-width: 0 !important;
  max-width: 100% !important;
  display: inline-flex !important;
  align-items: baseline !important;
  justify-content: flex-end !important;
  gap: 2px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  color: #9a9285 !important;
  opacity: .58 !important;
  filter: blur(.42px) !important;
  text-decoration: none !important;
  text-decoration-thickness: 0 !important;
  text-decoration-color: rgba(117, 104, 84, .58) !important;
  font-weight: 700 !important;
  transition: opacity .18s ease, filter .18s ease !important;
}

:where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .product-card__price-old:hover,
:where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .product-card__old-price:hover,
:where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .mahak-card-price__old:hover {
  opacity: .82 !important;
  filter: blur(.5px) saturate(.72) !important;
}

:where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .product-card__price-old > span,
:where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .product-card__old-price > span,
:where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .mahak-card-price__old .mahak-card-price__amount,
:where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .product-card .price del .amount {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 9.5px !important;
  line-height: 1.1 !important;
  font-weight: 700 !important;
}

:where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .product-card__price-old small,
:where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .product-card__old-price small {
  flex: 0 0 auto !important;
  font-size: 7.6px !important;
  line-height: 1.1 !important;
  font-weight: 650 !important;
}

:where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .product-card__discount,
:where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .mahak-card-price__discount {
  grid-column: 1 / -1 !important;
  justify-self: start !important;
  max-width: 100% !important;
  padding: 2px 7px !important;
  border-radius: 999px !important;
  background: rgba(var(--mahak-brand-primary-rgb), .10) !important;
  color: var(--mahak-brand-primary) !important;
  font-size: 8.6px !important;
  line-height: 1.45 !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

:where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .mahak-card-price__empty {
  display: inline-flex !important;
  align-items: center !important;
  color: var(--mahak-brand-primary) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

/* Safety net برای کارت‌هایی که هنوز خروجی خام get_price_html ووکامرس دارند */
:where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .product-card__sale-price > del,
:where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .product-card__sale-price > del + .screen-reader-text {
  display: none !important;
}

:where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .product-card__sale-price > ins {
  display: inline-flex !important;
  min-width: 0 !important;
  max-width: 100% !important;
  text-decoration: none !important;
  color: #252116 !important;
  overflow: hidden !important;
}

:where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .product-card .price:not(.mahak-card-price) {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 7px !important;
  margin: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

:where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .product-card .price:not(.mahak-card-price) ins {
  min-width: 0 !important;
  text-decoration: none !important;
  color: #252116 !important;
  font-weight: 950 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

:where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .product-card .price:not(.mahak-card-price) del {
  min-width: 0 !important;
  color: #9a9285 !important;
  opacity: .58 !important;
  filter: blur(.42px) !important;
  font-size: .78em !important;
  font-weight: 700 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media (min-width: 1200px) {
  body.mahak-home-product-grid-ready .mahak-home-premium .mahak-home-grid--basic,
  body.mahak-home-product-grid-ready .mahak-home-premium #products .product-grid.mahak-home-grid--basic {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  body.mahak-home-product-grid-ready .mahak-home-premium .mahak-home-grid--basic .product-card__title {
    min-height: 38px !important;
    font-size: 13px !important;
  }

  body.mahak-home-product-grid-ready .mahak-home-premium .mahak-home-grid--basic .product-card__meta {
    min-height: 34px !important;
    font-size: 11px !important;
  }

  body.mahak-home-product-grid-ready .mahak-home-premium .mahak-home-grid--basic .btn--cart {
    min-height: 38px !important;
    border-radius: 13px !important;
    font-size: 11px !important;
    padding-inline: 8px !important;
  }
}

@media (max-width: 680px) {
  :where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .product-card__price-row,
  :where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .product-card__price-row--masala,
  :where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .product-card__deal {
    padding: 7px 8px !important;
    border-radius: 14px !important;
    gap: 6px !important;
  }

  :where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .product-card__price-icon {
    display: none !important;
  }

  :where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .product-card__price.mahak-card-price,
  :where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .mahak-card-price {
    column-gap: 6px !important;
  }

  :where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .product-card__price-current > span,
  :where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .mahak-card-price__current .mahak-card-price__amount {
    font-size: clamp(12px, 3.2vw, 14px) !important;
  }
}

@media (max-width: 420px) {
  :where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .product-card__price.mahak-card-price,
  :where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .mahak-card-price {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  :where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .product-card__price-old,
  :where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .product-card__old-price,
  :where(.mahak-home-premium, .mahak-shop-page, .mahak-product-related, .mahak-cart-cross-sells) .mahak-card-price__old {
    justify-content: flex-start !important;
    max-width: 100% !important;
  }
}


/* =========================================================
   v1.5.6 — Force premium price UI, stronger sale-old blur,
   and mobile sale-price stacking across every product card.
   ========================================================= */
body:not(.wp-admin) .product-card .mahak-card-price,
body:not(.wp-admin) .woocommerce .product-card .mahak-card-price,
body:not(.wp-admin) .mahak-home-premium .product-card .mahak-card-price,
body:not(.wp-admin) .mahak-shop-page .product-card .mahak-card-price,
body:not(.wp-admin) .mahak-product-related .product-card .mahak-card-price,
body:not(.wp-admin) .mahak-cart-cross-sells .product-card .mahak-card-price {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  direction: rtl !important;
  color: #252116 !important;
}

body:not(.wp-admin) .product-card .mahak-card-price--sale,
body:not(.wp-admin) .woocommerce .product-card .mahak-card-price--sale,
body:not(.wp-admin).mahak-home-product-grid-ready .mahak-home-premium .product-card .mahak-card-price--sale,
body:not(.wp-admin) .mahak-shop-page .product-card .mahak-card-price--sale {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-areas:
    "current old"
    "discount discount" !important;
  align-items: baseline !important;
  justify-content: stretch !important;
  column-gap: 8px !important;
  row-gap: 5px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

body:not(.wp-admin) .product-card .mahak-card-price--single,
body:not(.wp-admin) .woocommerce .product-card .mahak-card-price--single,
body:not(.wp-admin).mahak-home-product-grid-ready .mahak-home-premium .product-card .mahak-card-price--single,
body:not(.wp-admin) .mahak-shop-page .product-card .mahak-card-price--single {
  display: flex !important;
  align-items: baseline !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

body:not(.wp-admin) .product-card .mahak-card-price__current,
body:not(.wp-admin) .woocommerce .product-card .mahak-card-price__current,
body:not(.wp-admin).mahak-home-product-grid-ready .mahak-home-premium .product-card .mahak-card-price__current,
body:not(.wp-admin) .mahak-shop-page .product-card .mahak-card-price__current {
  grid-area: current !important;
  min-width: 0 !important;
  max-width: 100% !important;
  display: inline-flex !important;
  align-items: baseline !important;
  justify-content: flex-start !important;
  gap: 3px !important;
  color: var(--mahak-brand-dark) !important;
  opacity: 1 !important;
  filter: none !important;
  text-decoration: none !important;
  font-weight: 950 !important;
  letter-spacing: -0.025em !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

body:not(.wp-admin) .product-card .mahak-card-price__current .mahak-card-price__amount,
body:not(.wp-admin) .woocommerce .product-card .mahak-card-price__current .mahak-card-price__amount,
body:not(.wp-admin).mahak-home-product-grid-ready .mahak-home-premium .product-card .mahak-card-price__current .mahak-card-price__amount,
body:not(.wp-admin) .mahak-shop-page .product-card .mahak-card-price__current .mahak-card-price__amount {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  color: var(--mahak-brand-dark) !important;
  font-size: clamp(13px, 1vw, 16px) !important;
  line-height: 1.18 !important;
  font-weight: 950 !important;
}

body:not(.wp-admin) .product-card .mahak-card-price__current .mahak-card-price__currency,
body:not(.wp-admin) .woocommerce .product-card .mahak-card-price__current .mahak-card-price__currency,
body:not(.wp-admin).mahak-home-product-grid-ready .mahak-home-premium .product-card .mahak-card-price__current .mahak-card-price__currency,
body:not(.wp-admin) .mahak-shop-page .product-card .mahak-card-price__current .mahak-card-price__currency {
  flex: 0 0 auto !important;
  color: rgba(var(--mahak-brand-text-rgb), .74) !important;
  font-size: 9px !important;
  line-height: 1.1 !important;
  font-weight: 850 !important;
  opacity: .95 !important;
}

body:not(.wp-admin) .product-card del.mahak-card-price__old,
body:not(.wp-admin) .product-card .mahak-card-price__old,
body:not(.wp-admin) .product-card .product-card__price-old,
body:not(.wp-admin) .product-card .product-card__old-price,
body:not(.wp-admin) .woocommerce .product-card del.mahak-card-price__old,
body:not(.wp-admin).mahak-home-product-grid-ready .mahak-home-premium .product-card del.mahak-card-price__old,
body:not(.wp-admin) .mahak-shop-page .product-card del.mahak-card-price__old {
  grid-area: old !important;
  justify-self: end !important;
  min-width: 0 !important;
  max-width: 100% !important;
  display: inline-flex !important;
  align-items: baseline !important;
  justify-content: flex-end !important;
  gap: 2px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: rgba(var(--mahak-brand-text-rgb), .42) !important;
  opacity: .56 !important;
  filter: blur(.5px) saturate(.72) !important;
  -webkit-filter: blur(.5px) saturate(.72) !important;
  transform: translateZ(0) !important;
  will-change: filter !important;
  text-decoration-line: none !important;
  text-decoration-style: solid !important;
  text-decoration-thickness: 0 !important;
  text-decoration-color: transparent !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-weight: 650 !important;
}

body:not(.wp-admin) .product-card del.mahak-card-price__old .mahak-card-price__amount,
body:not(.wp-admin) .product-card .mahak-card-price__old .mahak-card-price__amount,
body:not(.wp-admin) .product-card .product-card__price-old > span,
body:not(.wp-admin) .product-card .product-card__old-price > span,
body:not(.wp-admin).mahak-home-product-grid-ready .mahak-home-premium .product-card del.mahak-card-price__old .mahak-card-price__amount,
body:not(.wp-admin) .mahak-shop-page .product-card del.mahak-card-price__old .mahak-card-price__amount {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  color: rgba(var(--mahak-brand-text-rgb), .42) !important;
  font-size: clamp(8.8px, .72vw, 10.5px) !important;
  line-height: 1.15 !important;
  font-weight: 650 !important;
}

body:not(.wp-admin) .product-card del.mahak-card-price__old .mahak-card-price__currency,
body:not(.wp-admin) .product-card .mahak-card-price__old .mahak-card-price__currency,
body:not(.wp-admin) .product-card .product-card__price-old small,
body:not(.wp-admin) .product-card .product-card__old-price small,
body:not(.wp-admin).mahak-home-product-grid-ready .mahak-home-premium .product-card del.mahak-card-price__old .mahak-card-price__currency,
body:not(.wp-admin) .mahak-shop-page .product-card del.mahak-card-price__old .mahak-card-price__currency {
  flex: 0 0 auto !important;
  color: rgba(var(--mahak-brand-text-rgb), .38) !important;
  font-size: 7.6px !important;
  line-height: 1.1 !important;
  font-weight: 650 !important;
}

body:not(.wp-admin) .product-card del.mahak-card-price__old:hover,
body:not(.wp-admin) .product-card .mahak-card-price__old:hover,
body:not(.wp-admin) .product-card .product-card__price-old:hover,
body:not(.wp-admin) .product-card .product-card__old-price:hover {
  opacity: .74 !important;
  filter: blur(.5px) saturate(.72) !important;
  -webkit-filter: blur(.5px) saturate(.72) !important;
}

body:not(.wp-admin) .product-card .mahak-card-price__discount,
body:not(.wp-admin) .product-card .product-card__discount,
body:not(.wp-admin).mahak-home-product-grid-ready .mahak-home-premium .product-card .mahak-card-price__discount,
body:not(.wp-admin) .mahak-shop-page .product-card .mahak-card-price__discount {
  grid-area: discount !important;
  justify-self: start !important;
  max-width: 100% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 18px !important;
  padding: 2px 7px !important;
  border: 1px solid rgba(var(--mahak-brand-primary-rgb), .10) !important;
  border-radius: 999px !important;
  background: rgba(var(--mahak-brand-primary-rgb), .105) !important;
  color: var(--mahak-brand-primary) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72) !important;
  font-size: 8.4px !important;
  line-height: 1.35 !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body:not(.wp-admin) .product-card__price-row:has(.mahak-card-price),
body:not(.wp-admin) .product-card__price-row--masala:has(.mahak-card-price),
body:not(.wp-admin) .product-card__deal:has(.mahak-card-price) {
  box-sizing: border-box !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

@media (max-width: 680px) {
  body:not(.wp-admin) .product-card .mahak-card-price--sale,
  body:not(.wp-admin) .woocommerce .product-card .mahak-card-price--sale,
  body:not(.wp-admin).mahak-home-product-grid-ready .mahak-home-premium .product-card .mahak-card-price--sale,
  body:not(.wp-admin) .mahak-shop-page .product-card .mahak-card-price--sale {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "current"
      "old"
      "discount" !important;
    row-gap: 4px !important;
    column-gap: 0 !important;
    white-space: normal !important;
    overflow: visible !important;
  }

  body:not(.wp-admin) .product-card .mahak-card-price__current,
  body:not(.wp-admin) .woocommerce .product-card .mahak-card-price__current,
  body:not(.wp-admin).mahak-home-product-grid-ready .mahak-home-premium .product-card .mahak-card-price__current,
  body:not(.wp-admin) .mahak-shop-page .product-card .mahak-card-price__current {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: flex-start !important;
    overflow: visible !important;
  }

  body:not(.wp-admin) .product-card .mahak-card-price__current .mahak-card-price__amount,
  body:not(.wp-admin) .woocommerce .product-card .mahak-card-price__current .mahak-card-price__amount,
  body:not(.wp-admin).mahak-home-product-grid-ready .mahak-home-premium .product-card .mahak-card-price__current .mahak-card-price__amount,
  body:not(.wp-admin) .mahak-shop-page .product-card .mahak-card-price__current .mahak-card-price__amount {
    font-size: clamp(12.5px, 3.75vw, 15px) !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  body:not(.wp-admin) .product-card del.mahak-card-price__old,
  body:not(.wp-admin) .product-card .mahak-card-price__old,
  body:not(.wp-admin) .product-card .product-card__price-old,
  body:not(.wp-admin) .product-card .product-card__old-price,
  body:not(.wp-admin).mahak-home-product-grid-ready .mahak-home-premium .product-card del.mahak-card-price__old,
  body:not(.wp-admin) .mahak-shop-page .product-card del.mahak-card-price__old {
    width: fit-content !important;
    max-width: 100% !important;
    justify-self: start !important;
    justify-content: flex-start !important;
    opacity: .54 !important;
    filter: blur(.8px) saturate(.65) !important;
    -webkit-filter: blur(.8px) saturate(.65) !important;
    overflow: hidden !important;
  }

  body:not(.wp-admin) .product-card .mahak-card-price__discount,
  body:not(.wp-admin) .product-card .product-card__discount,
  body:not(.wp-admin).mahak-home-product-grid-ready .mahak-home-premium .product-card .mahak-card-price__discount,
  body:not(.wp-admin) .mahak-shop-page .product-card .mahak-card-price__discount {
    justify-self: start !important;
    font-size: 8px !important;
    min-height: 17px !important;
  }
}

@media (max-width: 420px) {
  body:not(.wp-admin) .product-card .mahak-card-price,
  body:not(.wp-admin) .woocommerce .product-card .mahak-card-price,
  body:not(.wp-admin).mahak-home-product-grid-ready .mahak-home-premium .product-card .mahak-card-price,
  body:not(.wp-admin) .mahak-shop-page .product-card .mahak-card-price {
    row-gap: 3px !important;
  }

  body:not(.wp-admin) .product-card .mahak-card-price__current .mahak-card-price__amount,
  body:not(.wp-admin) .woocommerce .product-card .mahak-card-price__current .mahak-card-price__amount,
  body:not(.wp-admin).mahak-home-product-grid-ready .mahak-home-premium .product-card .mahak-card-price__current .mahak-card-price__amount,
  body:not(.wp-admin) .mahak-shop-page .product-card .mahak-card-price__current .mahak-card-price__amount {
    font-size: clamp(12px, 4vw, 14px) !important;
  }
}


/* MahakShop Child v1.5.9 — hard final price style
   این بخش باید آخر فایل بماند. */
html body:not(.wp-admin) .mahak-home-premium .product-card .product-card__price .product-card__price-old,
html body:not(.wp-admin) .mahak-home-premium .product-card .product-card__price .mahak-card-price__old,
html body:not(.wp-admin) .mahak-shop-page .product-card .product-card__price .product-card__price-old,
html body:not(.wp-admin) .mahak-shop-page .product-card .product-card__price .mahak-card-price__old,
html body:not(.wp-admin) .mahak-product-related .product-card .product-card__price .product-card__price-old,
html body:not(.wp-admin) .mahak-cart-cross-sells .product-card .product-card__price .product-card__price-old {
  filter: blur(.5px) saturate(.72) !important;
  -webkit-filter: blur(.5px) saturate(.72) !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
  text-decoration-thickness: 0 !important;
  text-decoration-color: transparent !important;
  font-size: clamp(10.8px, .82vw, 12.4px) !important;
  font-weight: 760 !important;
  opacity: .62 !important;
}
html body:not(.wp-admin) .product-card .product-card__price .product-card__price-old *,
html body:not(.wp-admin) .product-card .product-card__price .mahak-card-price__old * {
  text-decoration: none !important;
  text-decoration-line: none !important;
  font-size: inherit !important;
  color: inherit !important;
}


/* =========================================================
   PYM v1.5.13 — Turmeric subtitle only
   فقط زیرعنوان کارت‌های سکشن زردچوبه تک‌خطی می‌ماند.
   ========================================================= */
html body:not(.wp-admin).mahak-home-product-grid-ready .mahak-home-premium .featured-product-section__grid.featured-product-section__grid--turmeric .product-card__subtitle,
html body:not(.wp-admin).mahak-home-product-grid-ready .mahak-home-premium .featured-product-section__grid--turmeric.mahak-home-grid--turmeric .product-card__subtitle {
  display: block !important;
  max-width: clamp(145px, 18vw, 230px) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
@media (max-width: 680px) {
  html body:not(.wp-admin).mahak-home-product-grid-ready .mahak-home-premium .featured-product-section__grid.featured-product-section__grid--turmeric .product-card__subtitle,
  html body:not(.wp-admin).mahak-home-product-grid-ready .mahak-home-premium .featured-product-section__grid--turmeric.mahak-home-grid--turmeric .product-card__subtitle {
    max-width: 100% !important;
  }
}


/* =========================================================
   v1.6.1 — shop price no truncate
   قیمت صفحه فروشگاه نباید به‌خاطر ellipsis ناقص نمایش داده شود.
   ========================================================= */
body:not(.wp-admin) .mahak-shop-page .product-card .mahak-card-price,
body:not(.wp-admin) .mahak-shop-page .product-card .mahak-card-price--single,
body:not(.wp-admin) .mahak-shop-page .product-card .mahak-card-price--sale,
body:not(.wp-admin) .mahak-shop-page .product-card .mahak-card-price__current,
body:not(.wp-admin) .mahak-shop-page .product-card .mahak-card-price__current .mahak-card-price__amount {
  overflow: visible !important;
  text-overflow: clip !important;
  max-width: none !important;
  white-space: nowrap !important;
}
body:not(.wp-admin) .mahak-shop-page .product-card .mahak-card-price--sale {
  grid-template-columns: max-content auto !important;
  justify-content: start !important;
}

/* =========================================================
   v1.6.2 — Sale/current price must never be truncated in shop cards
   قیمت فعلی و قیمت قبل از تخفیف در صفحه فروشگاه نباید overflow/ellipsis داشته باشد.
   ========================================================= */
html body:not(.wp-admin) .mahak-shop-page .product-card .product-card__price-row,
html body:not(.wp-admin) .mahak-shop-page .product-card .product-card__price-row--masala,
html body:not(.wp-admin) .mahak-shop-page .product-card .product-card__price-row:has(.mahak-card-price),
html body:not(.wp-admin) .mahak-shop-page .product-card .product-card__deal:has(.mahak-card-price) {
  min-width: 0 !important;
  overflow: visible !important;
}
html body:not(.wp-admin) .mahak-shop-page .product-card .mahak-card-price,
html body:not(.wp-admin) .mahak-shop-page .product-card .mahak-card-price--single,
html body:not(.wp-admin) .mahak-shop-page .product-card .mahak-card-price--sale,
html body:not(.wp-admin) .mahak-shop-page .product-card .mahak-card-price__current,
html body:not(.wp-admin) .mahak-shop-page .product-card .mahak-card-price__old,
html body:not(.wp-admin) .mahak-shop-page .product-card del.mahak-card-price__old,
html body:not(.wp-admin) .mahak-shop-page .product-card .product-card__price-old,
html body:not(.wp-admin) .mahak-shop-page .product-card .product-card__old-price,
html body:not(.wp-admin) .mahak-shop-page .product-card .mahak-card-price__amount,
html body:not(.wp-admin) .mahak-shop-page .product-card .mahak-card-price__current .mahak-card-price__amount,
html body:not(.wp-admin) .mahak-shop-page .product-card .mahak-card-price__old .mahak-card-price__amount,
html body:not(.wp-admin) .mahak-shop-page .product-card del.mahak-card-price__old .mahak-card-price__amount,
html body:not(.wp-admin) .mahak-shop-page .product-card .product-card__price-old > span,
html body:not(.wp-admin) .mahak-shop-page .product-card .product-card__old-price > span {
  min-width: 0 !important;
  overflow: visible !important;
  text-overflow: clip !important;
  max-width: none !important;
  white-space: nowrap !important;
}
html body:not(.wp-admin) .mahak-shop-page .product-card .mahak-card-price--sale {
  grid-template-columns: max-content max-content !important;
  grid-template-areas: "current old" "discount discount" !important;
  justify-content: start !important;
}
html body:not(.wp-admin) .mahak-shop-page .product-card .mahak-card-price__current,
html body:not(.wp-admin) .mahak-shop-page .product-card .mahak-card-price__old,
html body:not(.wp-admin) .mahak-shop-page .product-card del.mahak-card-price__old {
  flex: 0 1 auto !important;
}
@media (max-width: 520px) {
  html body:not(.wp-admin) .mahak-shop-page .product-card .mahak-card-price--sale {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "current" "old" "discount" !important;
  }
}


/* MahakShop Child v1.6.4 — no truncation for product card prices */
.mahak-shop-page .product-card .mahak-card-price,
.mahak-shop-page .product-card .mahak-card-price--single,
.mahak-shop-page .product-card .mahak-card-price--sale,
.mahak-shop-page .product-card .mahak-card-price__current,
.mahak-shop-page .product-card .mahak-card-price__old,
.mahak-shop-page .product-card del.mahak-card-price__old,
.mahak-shop-page .product-card .product-card__price,
.mahak-shop-page .product-card .product-card__price-current,
.mahak-shop-page .product-card .product-card__price-old,
.mahak-shop-page .product-card .product-card__old-price,
.mahak-shop-page .product-card .mahak-card-price__amount,
.mahak-shop-page .product-card .mahak-card-price__old .mahak-card-price__amount,
.mahak-shop-page .product-card .mahak-card-price__current .mahak-card-price__amount,
.mahak-shop-page .product-card .product-card__price-current > span,
.mahak-shop-page .product-card .product-card__price-old > span,
.mahak-shop-page .product-card .product-card__old-price > span {
  min-width: 0 !important;
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}
.mahak-shop-page .product-card .mahak-card-price__amount,
.mahak-shop-page .product-card .product-card__price-current > span,
.mahak-shop-page .product-card .product-card__price-old > span,
.mahak-shop-page .product-card .product-card__old-price > span {
  display: inline-block !important;
  flex: 0 0 auto !important;
}
.mahak-shop-page .product-card .mahak-card-price--sale,
.mahak-shop-page .product-card span.mahak-card-price--sale,
.mahak-shop-page .product-card p.mahak-card-price--sale {
  grid-template-columns: max-content max-content !important;
  justify-content: start !important;
}

/* MahakShop Child v1.6.17 — Global product-card title hover color lock */
html body:not(.wp-admin) .product-card:hover h2.product-card__title a,
html body:not(.wp-admin) .product-card:hover h3.product-card__title a,
html body:not(.wp-admin) .product-card .product-card__title a:hover,
html body:not(.wp-admin) .product-card .product-card__title a:focus-visible,
html body:not(.wp-admin) .product-card__title a:hover,
html body:not(.wp-admin) .product-card__title a:focus-visible {
  color: #241726 !important;
}
