/* Discounted price tag (reusable). Markup comes from priceTag() in app.js (and api/product.js for product pages):
   <span class="ptag" style="--ptag-size:56px">
     <span class="ptag-sr">…sentence for screen readers…</span>
     <span class="ptag-label" aria-hidden="true">Our lowest price</span>
     <span class="ptag-row" aria-hidden="true"><span class="ptag-peso">₱</span><span class="ptag-num">10,499</span><span class="ptag-unit">/pc</span></span>
     <span class="ptag-off" aria-hidden="true">-20%</span>
   </span>
   Everything scales from --ptag-size (the price number's font size). The design spec's pixel values are at an 80px number:
   padding 16/26/12, shadow 8px, discount tag 24px text at -22px/-18px, padding 8/12/6, shadow 4px.
   Fonts: Poppins 700/800/900 and Noto Sans 900 for the ₱ sign (Poppins has no ₱ glyph). */
.ptag{
  --ptag-size:80px;
  position:relative;display:inline-flex;flex-direction:column;align-items:flex-start;
  font-size:var(--ptag-size);line-height:1;color:#111;white-space:nowrap;text-align:left;
  background:#ffe94a;border-radius:4px;box-shadow:none; /* basket-button yellow, flat (owner 26 Nov) */
  padding:.2em .325em .15em;
  margin:.3em .32em .12em 0; /* room for the discount tag above */
  vertical-align:top;
}
.ptag-label{font-family:"Poppins",Arial,sans-serif;font-weight:800;font-size:.23em;line-height:1.1;letter-spacing:1px;text-transform:uppercase;color:#111;margin-bottom:.12em}
.ptag-row{display:flex;align-items:baseline;white-space:nowrap}
.ptag-peso{font-family:"Noto Sans",Arial,sans-serif;font-weight:900;font-size:.42em;line-height:1;align-self:flex-start;margin-top:.27em;margin-right:.08em}
.ptag-num{font-family:"Poppins",Arial,sans-serif;font-weight:900;font-size:1em;line-height:1;letter-spacing:-1px;color:#111}
.ptag-unit{font-family:"Poppins",Arial,sans-serif;font-weight:700;font-size:.31em;line-height:1;margin-left:.2em;color:#111}
.ptag-off{
  position:absolute;top:-.917em;right:-.75em;
  font-family:"Poppins",Arial,sans-serif;font-weight:900;font-size:.3em;line-height:1;color:#fff;
  background:#E3161B;border-radius:4px;padding:.333em .5em .25em;box-shadow:none;
}
.ptag-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* Small sizes: keep the hairline details readable. */
.ptag.ptag-sm .ptag-label{letter-spacing:.6px}
.ptag.ptag-sm .ptag-num{letter-spacing:-.5px}

/* Where it's used */
.cp-body{container-type:inline-size}
.cp-card .ptag{--ptag-size:clamp(18px,9.5cqi,24px)}
.cp-card .cp-line{margin-top:6px}
.cp-card .ptag-was{margin-top:4px}
.pm-price .ptag{--ptag-size:42px;margin-top:.36em}
.pp-price .ptag{--ptag-size:46px;margin-top:.36em}
@media(max-width:760px){.pm-price .ptag{--ptag-size:36px}.pp-price .ptag{--ptag-size:38px}}
.ptag-was{display:block;font-size:12px;color:#8a8d93;margin-top:2px}
.pm-price .ptag-was,.pp-price .ptag-was{font-size:14px;margin-top:4px}
/* No label line: even padding top/bottom so the price sits centred. */
.ptag-nolabel{padding:.16em .3em .12em}
/* Regular (not on sale) price in the same type as the tag, without the box, so card prices look balanced (26 Nov, owner: like IKEA). */
.ptag.ptag-plain{background:none;box-shadow:none;border-radius:0;padding:0;margin:.12em 0 .06em}
.pm-price .ptag.ptag-plain,.pp-price .ptag.ptag-plain{margin-top:.1em}
/* Option A, lighter cards (owner 27 Nov): Bold price instead of Black, quieter old price */
.cp-card .ptag-num{font-weight:700;letter-spacing:-.3px}
.cp-card .ptag-was{font-size:11.5px;color:#a3a6ab;font-weight:400;margin-top:5px}
/* Product pop-up price lighter and a bit smaller (owner 27 Nov): Bold instead of Black; box scales with --ptag-size */
.pm-price .ptag{--ptag-size:36px}
.pm-price .ptag-num{font-weight:700;letter-spacing:-.5px}
.pm-price .ptag-off{font-weight:700}
@media(max-width:760px){.pm-price .ptag{--ptag-size:31px}}
