.product-card .product-card-head{position:relative;overflow:hidden}
.product-card .card-discount{
  --corner:57px;position:absolute;top:0;right:0;width:var(--corner);height:var(--corner);
  clip-path:polygon(0 0,100% 0,100% 100%);background:#4e3b31;color:#fffaf2;
  pointer-events:none;z-index:1;
}
.product-card .card-discount b{
  position:absolute;top:30%;left:69%;transform:translate(-50%,-50%) rotate(45deg);
  font:600 12px/1 var(--sans,Arial,sans-serif);font-variant-numeric:tabular-nums;
  letter-spacing:0;white-space:nowrap;
}
@media(max-width:760px){
  .product-card .card-discount{--corner:45px}
  .product-card .card-discount b{font-size:10px}
}
.product-card .card-discount-decimal b {font-size:10px}
@media(max-width:760px){.product-card .card-discount-decimal b {font-size:8.5px}}
/* Keep long labels and titles within the clear part of the header. */
.product-card .product-card-head:has(.card-discount) {container-type:inline-size}
.product-card-head:has(.card-discount) .card-category {
  align-self:center;max-width:calc(100% - 48px);text-wrap:balance;
}
.product-card-head:has(.card-discount) .card-name {
  align-self:center;max-width:calc(100% - 18px);text-wrap:balance;
  font-size:clamp(16px,10cqw,25px)!important;
}
@media(max-width:760px){
  .product-grid .product-card-head:has(.card-discount) .card-name{
    font-size:clamp(15px,10.5cqw,22px)!important;
  }
  .product-card-head:has(.card-discount) .card-category{max-width:calc(100% - 50px)}
}
@media(max-width:350px){
  .product-grid .product-card .product-card-head {
    height:96px!important;min-height:96px!important;max-height:96px!important;flex-basis:96px;
  }
}
