/** ============================================================
    COMPONENT: Badges & Tags
    Source: home.css, style.css, details.css
    ============================================================ */

/* --- Card badges --- */
.es-badge {
  display: inline-block;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  line-height: 1.6;
}

.es-badge-red   { background: hsl(0 72% 94%);    color: hsl(0 72% 35%); }
.es-badge-green { background: hsl(160 60% 92%);  color: hsl(160 65% 28%); }

/* --- Discount badge --- */

/* --- Offer badge --- */
.offer-badge {
  font-size: 0.7rem;
  background: var(--clr-red);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  white-space: nowrap;
}

/* --- Header badge --- */
.hdr-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding-inline: 4px;
  background: var(--clr-primary);
  color: #fff;
  font-size: 0.5625rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid var(--surface-page);
}
.hdr-badge--red { background: var(--clr-red); }

/* --- PDP stock badges --- */
.pdp-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.pdp-stock-in {
  background: hsl(142 71% 95%);
  color: hsl(142 71% 28%);
  border: 1px solid hsl(142 60% 82%);
}

.pdp-stock-out {
  background: hsl(0 72% 97%);
  color: hsl(0 72% 45%);
  border: 1px solid hsl(0 72% 88%);
}

/* --- Status badge (specs table) --- */
.status-badge-table {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}
.status-badge-table.in-stock { background: hsl(160 60% 92%); color: hsl(160 65% 28%); }
.status-badge-table.out-of-stock { background: hsl(0 72% 94%); color: hsl(0 72% 35%); }
.status-badge-table.unavailable { background: var(--surface-raised); color: var(--ink-400); }

/* --- PDP price discount badge --- */
.pdp-price-badge-discount {
  display: inline-flex;
  align-items: center;
  background: hsl(0 72% 51% / 0.1);
  color: hsl(0 72% 45%);
  border: 1px solid hsl(0 72% 51% / 0.2);
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* --- PDP tag --- */

