/*
 * AdeptDEV Store v0.22.2 — Price & Discount Refinement
 * Unified commercial price hierarchy for every v22 product card.
 */

/* The discount belongs to the price, not to the media image. */
body.adeptdev-storefront .ad-product-card--v22 .ad-product-card__badges .ad-badge--sale {
  display: none !important;
}

body.adeptdev-storefront .ad-product-card--v22 .ad-product-card__footer {
  gap: 9px;
}

body.adeptdev-storefront .ad-product-card--v22 .ad-product-price {
  min-height: 47px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  padding: 0;
  line-height: 1;
}

body.adeptdev-storefront .ad-product-card--v22 .ad-product-price__main {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.adeptdev-storefront .ad-product-card--v22 .ad-product-price__current,
body.adeptdev-storefront .ad-product-card--v22 .ad-product-price strong.ad-product-price__current {
  display: block;
  min-width: 0;
  margin: 0;
  color: #163f7f;
  font-size: 21px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -.045em;
  white-space: nowrap;
}

body.adeptdev-storefront .ad-product-card--v22 .ad-product-price.is-sale .ad-product-price__current {
  color: #1959da;
}

body.adeptdev-storefront .ad-product-card--v22 .ad-product-price__discount {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 23px;
  padding: 0 8px;
  border: 1px solid #ffd8d2;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff7f5 0%, #fff0ed 100%);
  color: #d84b3f;
  font-size: 10px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: -.01em;
  box-shadow: 0 4px 10px rgba(216, 75, 63, .07);
}

body.adeptdev-storefront .ad-product-card--v22 .ad-product-price__previous {
  display: flex;
  align-items: center;
  min-height: 13px;
}

body.adeptdev-storefront .ad-product-card--v22 .ad-product-price__previous del,
body.adeptdev-storefront .ad-product-card--v22 .ad-product-price del {
  position: relative;
  color: #8fa0b8;
  font-size: 11px;
  line-height: 1.1;
  font-weight: 700;
  text-decoration-thickness: 1.25px;
  text-decoration-color: #a9b6c8;
  white-space: nowrap;
}

/* Keep non-sale cards aligned with sale cards while remaining visually clean. */
body.adeptdev-storefront .ad-product-card--v22 .ad-product-price:not(.is-sale) .ad-product-price__main {
  min-height: 34px;
  align-items: center;
}

/* The CTA visually belongs to the price zone but must not compete with it. */
body.adeptdev-storefront .ad-product-card--v22 .ad-add-cart {
  min-height: 41px;
}

@media (max-width: 1199px) {
  body.adeptdev-storefront .ad-product-card--v22 .ad-product-price__current,
  body.adeptdev-storefront .ad-product-card--v22 .ad-product-price strong.ad-product-price__current {
    font-size: 19px;
  }
}

@media (max-width: 767px) {
  body.adeptdev-storefront .ad-product-card--v22 .ad-product-price {
    min-height: 42px;
    gap: 2px;
  }
  body.adeptdev-storefront .ad-product-card--v22 .ad-product-price__main {
    gap: 5px;
  }
  body.adeptdev-storefront .ad-product-card--v22 .ad-product-price__current,
  body.adeptdev-storefront .ad-product-card--v22 .ad-product-price strong.ad-product-price__current {
    font-size: 16px;
    letter-spacing: -.035em;
  }
  body.adeptdev-storefront .ad-product-card--v22 .ad-product-price__discount {
    min-height: 20px;
    padding: 0 6px;
    font-size: 8.5px;
  }
  body.adeptdev-storefront .ad-product-card--v22 .ad-product-price__previous del,
  body.adeptdev-storefront .ad-product-card--v22 .ad-product-price del {
    font-size: 9px;
  }
}

@media (max-width: 390px) {
  body.adeptdev-storefront .ad-product-card--v22 .ad-product-price__current,
  body.adeptdev-storefront .ad-product-card--v22 .ad-product-price strong.ad-product-price__current {
    font-size: 14.5px;
  }
  body.adeptdev-storefront .ad-product-card--v22 .ad-product-price__discount {
    min-height: 18px;
    padding: 0 5px;
    font-size: 7.5px;
  }
}
