/* Blank Apparel · what a price looks like when it is on sale.
 *
 * WooCommerce prints a sale price as <del>old</del> <ins>new</ins> on its own,
 * so nothing here needs a template of its own: these rules dress the markup
 * the shop already produces, on the card, on the garment and in the basket.
 *
 * The old price is not red and not crossed in red. A quiet shop says the old
 * number was true and is not any more, which is what a rule through it means,
 * and lets the new one carry the weight by being the only one at full
 * strength. The green is the brand's and is used once, on the mark, because a
 * reader scanning a grid needs one place to look. */

/* ---------- the price itself ---------- */

.pcard-price del,
.price del,
.cline-k del,
.pline-unit del {
  margin-inline-end: var(--space-2xs);
  color: var(--color-muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-underline-offset: 0;
}

.pcard-price ins,
.price ins,
.cline-k ins,
.pline-unit ins {
  text-decoration: none;
  color: var(--color-ink);
}

/* the garment page says it in full, because there is room for it */
.price del { font-size: 0.86em; }

/* ---------- the mark on the card ----------
   It sits on the picture's reading corner, opposite the shortlist heart, and
   carries the figure rather than the word "sale": a reader deciding between
   twelve shirts wants the number. */

.pcard-sale {
  position: absolute;
  inset-block-start: var(--space-sm);
  inset-inline-start: var(--space-sm);
  z-index: 3;
  padding: 0 var(--space-xs);
  min-block-size: 24px;
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--color-paper);
  background: var(--color-accent);
  border-radius: var(--radius-sm);
  pointer-events: none;
}

/* On the business side of the shop the card prints a tier line instead of a
   price, so a sale mark there would be claiming something the card is not
   showing. */
.shop[data-world="business"] .pcard-sale { display: none; }

/* ---------- a quantity break, said before it is earned ----------
   A tier the basket has not reached yet is an invitation, so it reads as a
   note and not as a price. The basket already has this line for its own
   tiers; this keeps the two looking the same. */

.pprice-tier {
  margin: var(--space-2xs) 0 0;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--color-ink-2);
}
.pprice-tier b { font-weight: 500; color: var(--color-ink); }

/* ---------- the window ----------
   A sale with an end date says so once, under the price, in the smallest
   type on the page. Shops that put a counting clock there are selling
   urgency; this one is only answering "until when". */

.pprice-until {
  margin: var(--space-2xs) 0 0;
  font-size: var(--text-xs);
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .pcard-sale { transition: none; }
}
