/* VialCove: actual price, matching comparison and a visible image-corner offer. */
.product-card .product-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.product-card .product-price { width: 100%; text-align: left; }
.vc-price-set { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 8px 10px; max-width: 100%; vertical-align: middle; }
.vc-price-current { color: var(--vc-ink); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.product-price .vc-price-current { font-size: 20px; letter-spacing: -.025em; }
.vc-price-set .vc-price-compare { color: var(--vc-muted-readable); font-size: 14px; font-weight: 400; opacity: 1; text-decoration-thickness: 1px; white-space: nowrap; }
.woocommerce div.product .vc-price-set .vc-price-compare,
.woocommerce ul.products li.product .vc-price-set .vc-price-compare { opacity: 1; }
.vc-sale-badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 4px; background: #c52228; color: #fff; font-size: 14px; font-weight: 700; line-height: 20px; white-space: nowrap; letter-spacing: 0; }
.vc-price-demo { flex: 0 0 100%; color: var(--vc-muted-readable); font-size: 11px; font-weight: 400; line-height: 1.5; letter-spacing: 0; }
.woocommerce div.product .summary .vc-detail-price { margin-block: 18px 22px; line-height: 1.35; }
.vc-detail-price .vc-price-current { font-size: clamp(26px, 2.3vw, 32px); }
.vc-detail-price .vc-price-compare { font-size: 18px; }
.vc-detail-price .vc-sale-badge { font-size: 16px; padding: 4px 12px; }
.vc-detail-price .vc-price-demo { font-size: 12px; }
.vc-price-hint { display: block; margin-top: 8px; color: var(--vc-muted-readable); font-size: 13px; font-weight: 400; line-height: 1.5; }
.vc-detail-price .vc-variation-price { display: block; }
@media (max-width: 480px) {
  .vc-price-set { column-gap: 8px; }
  .product-price .vc-price-current { font-size: 19px; }
  .vc-price-set .vc-price-compare { font-size: 13px; }
  .vc-detail-price .vc-price-compare { font-size: 17px; }
}
@media (max-width: 767px) {
  .product-card .vc-price-set .vc-price-compare {
    color: #425F69;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }
  .product-card .vc-price-demo {
    color: #425F69;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
  }
}

.vc-sale-ribbon { position: absolute; top: 0; right: 0; width: 128px; height: 128px; overflow: hidden; z-index: 3; pointer-events: none; border-top-right-radius: inherit; }
.vc-sale-ribbon > span { position: absolute; top: 28px; right: -40px; width: 176px; padding: 8px 0; transform: rotate(45deg); background: #c52228; color: #fff; font-family: inherit; font-size: 16px; font-weight: 700; line-height: 24px; letter-spacing: .025em; text-align: center; white-space: nowrap; box-shadow: 0 2px 4px #45101526; }
.woocommerce-product-gallery { position: relative; }
.vc-sale-ribbon--detail { width: 160px; height: 160px; }
.vc-sale-ribbon--detail > span { top: 40px; right: -48px; width: 224px; font-size: 20px; line-height: 28px; }
/* Keep the original percentage accessible beside its actual price. Only hide
   it visually where the image ribbon has successfully been rendered. */
.product-card--offer .product-price .vc-sale-badge,
.vc-detail-has-offer .summary > .vc-detail-price .vc-sale-badge { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 767px) {
  .product-card .vc-sale-ribbon { width: 96px; height: 96px; }
  .product-card .vc-sale-ribbon > span { top: 20px; right: -40px; width: 144px; padding: 4px 0; font-size: 14px; line-height: 24px; }
  .vc-sale-ribbon--detail { width: 128px; height: 128px; }
  .vc-sale-ribbon--detail > span { top: 28px; right: -40px; width: 176px; font-size: 16px; line-height: 24px; }
}

/* Card overlays follow the image's own width, including narrow builder frames.
   Keep the gallery's separate sizing and the native whole-image link intact. */
.product-card .product-visual { container-type: inline-size; }
.product-card .product-visual > .product-open {
  width: 16%;
  height: auto;
  aspect-ratio: 1;
  right: 5%;
  bottom: 5%;
}
.product-card .product-visual > .product-open svg { width: 50%; height: 50%; }
@supports (font-size: 1cqw) {
  .product-card .vc-sale-ribbon { font-size: 6cqw; width: 7.5em; height: 7.5em; }
  .product-card .vc-sale-ribbon > span {
    top: 1.6em;
    right: -2.7em;
    width: 11em;
    padding: .35em 0;
    font-size: inherit;
    line-height: 1.4;
    box-shadow: 0 .125em .25em #45101526;
  }
}
