/* Sepahan 2.2.3 - isolated fixes for Products 15 touch ownership and
 * the 3-column product-category price/rating row. No other widgets are touched.
 */

/* Keep the price and rating in one physical row. Explicit grid placement means
 * hiding the rating cannot recenter or relocate the price. */
html body .elementor-widget-sepahan_triple_product_categories .sepahan-triple-product-meta {
  position: absolute !important;
  right: 14px !important;
  left: 14px !important;
  bottom: 12px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-rows: minmax(0, auto) !important;
  align-items: end !important;
  column-gap: 8px !important;
  row-gap: 0 !important;
  direction: ltr !important;
  min-width: 0 !important;
  max-width: none !important;
  flex-wrap: nowrap !important;
}

html body .elementor-widget-sepahan_triple_product_categories .sepahan-triple-product-rating {
  position: static !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: end !important;
  justify-self: end !important;
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  min-width: max-content !important;
  width: auto !important;
  margin: 0 !important;
  white-space: nowrap !important;
  direction: rtl !important;
}

html body .elementor-widget-sepahan_triple_product_categories .sepahan-triple-product-price {
  position: static !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: end !important;
  justify-self: start !important;
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  justify-content: flex-end !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  text-align: left !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  direction: rtl !important;
}

html body .elementor-widget-sepahan_triple_product_categories .sepahan-triple-product-price del,
html body .elementor-widget-sepahan_triple_product_categories .sepahan-triple-product-price ins,
html body .elementor-widget-sepahan_triple_product_categories .sepahan-triple-product-price > .amount,
html body .elementor-widget-sepahan_triple_product_categories .sepahan-triple-product-price .woocommerce-Price-amount,
html body .elementor-widget-sepahan_triple_product_categories .sepahan-triple-product-price bdi {
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html body .elementor-widget-sepahan_triple_product_categories .sepahan-triple-product-meta--no-rating .sepahan-triple-product-price {
  grid-column: 1 !important;
  justify-self: start !important;
  align-items: flex-start !important;
  text-align: left !important;
}

@media (max-width: 575px) {
  html body .elementor-widget-sepahan_triple_product_categories .sepahan-triple-product-meta {
    right: 10px !important;
    left: 10px !important;
    column-gap: 5px !important;
  }

  html body .elementor-widget-sepahan_triple_product_categories .sepahan-triple-product-price {
    font-size: 0.68rem !important;
  }

  html body .elementor-widget-sepahan_triple_product_categories .sepahan-triple-product-price del {
    font-size: 0.62rem !important;
  }

  html body .elementor-widget-sepahan_triple_product_categories .sepahan-triple-product-price ins {
    font-size: 0.72rem !important;
  }
}
