/* امبليوم — «نفذت الكمية مؤقتًا» (stock-status.js). Nothing here applies unless a
   product is sold out: every rule targets classes that script adds. */

.embso-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #c81e1e; color: #fff;
  font-weight: 800; font-size: 14px; line-height: 1.4;
  padding: 5px 12px; border-radius: 999px;
}
.embso-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; flex: none; }

/* PLP card: bottom corner of the image, clear of the «وفّر» badge at the top */
.card .badge--soldout {
  top: auto; bottom: 0; inset-inline-start: 0;
  border-radius: 0 var(--r, 8px) 0 var(--r, 8px);
  font-size: 12px; padding: 4px 10px;
}
[dir="rtl"] .card .badge--soldout { border-radius: var(--r, 8px) 0 var(--r, 8px) 0; }
.card--soldout .card__media img { opacity: .55; }

/* PDP */
.embso-badge--pdp { margin: 8px 0; }
.emb-soldout #stockLine, .emb-soldout [data-stock] { display: none !important; }
.embso-hide { display: none !important; }
.emb-soldout #orderForm { display: none !important; }
.emb-soldout .sticky .embso-wa { white-space: nowrap; }

.embso-wa, .embso-wa:visited {
  background: #1f8f4e !important; border-color: #1f8f4e !important; color: #fff !important;
  text-align: center; text-decoration: none;
}
.embso-wa:hover, .embso-wa:focus-visible { background: #17733e !important; border-color: #17733e !important; }

.embso-panel {
  display: grid; gap: 12px; justify-items: start;
  padding: 18px; margin: 0 0 16px;
  border: 2px solid #c81e1e; border-radius: 12px; background: #fff5f5;
}
.embso-panel__txt { margin: 0; font-weight: 600; color: #3b0d0d; line-height: 1.7; }
.embso-panel .embso-wa { width: 100%; }
