@charset "UTF-8";
/* JELENA — Sold-out stamp (cards + product page)
   Added 2026-11-30, approved by Omar. Pure CSS so homepage cards that arrive late from the
   data-jlr-more templates (snippet 393789) are covered too.
   Cards are matched by the existing badge (.jps-badge--sold); product page by .jelena-stock.is-out.
   Rollback: deactivate this snippet in WPCode, then purge LSCache. Nothing else is changed. */

/* ---------- cards (shop, categories, homepage rails, related) ---------- */
.jps-card:has(.jps-badge--sold) .jps-card__image{filter:grayscale(1) contrast(.92) brightness(1.04);opacity:.78;transition:none;
}
.jps-card:has(.jps-badge--sold) .jps-card__media{background:#efe6da}
.jps-card:has(.jps-badge--sold) .jps-card__media::before{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;background:rgba(250,245,237,.30);
}
.jps-card:has(.jps-badge--sold) .jps-card__media::after{content:"نفدت Quantity";position:absolute;right:50%;top:50%;z-index:3;pointer-events:none;transform:translate(50%,-50%) rotate(-11deg);padding:.32em .9em .38em;font-family:"El Messiri",serif;font-weight:700;line-height:1.1;white-space:nowrap;font-size:clamp(15px,4.4vw,28px);color:#50172b;background:rgba(255,248,240,.86);border:3px solid #50172b;border-radius:6px;outline:1.5px solid rgba(80,23,43,.55);outline-offset:4px;box-shadow:0 6px 22px rgba(56,35,42,.16);
}
@media (min-width:768px){
  .jps-card:has(.jps-badge--sold) .jps-card__media::after{font-size:clamp(17px,1.7vw,26px)}
}
.jev3-english .jps-card:has(.jps-badge--sold) .jps-card__media::after{content:"SOLD OUT";letter-spacing:.14em;font-family:"Cormorant Garamond","El Messiri",serif;
}
/* the stamp replaces the small corner pill */
.jps-card .jps-badge--sold{display:none!important}
/* no basket button on a sold-out card; price muted */
body:not(#jso) .jps-card:has(.jps-badge--sold) .jps-card__actions .jps-card__cart-link{display:none!important}
body:not(#jso) .jps-card:has(.jps-badge--sold) .jps-card__actions{grid-template-columns:1fr!important}
body:not(#jso) .jps-card:has(.jps-badge--sold) .jps-card__price{opacity:.5}
/* ---------- single product page ---------- */
.single-product .outofstock .jelena-gallery__main{position:relative}
.single-product .outofstock .jelena-gallery__main img,
.single-product .outofstock .jelena-thumb img{filter:grayscale(1) contrast(.92) brightness(1.04);opacity:.8;
}
.single-product .outofstock .jelena-gallery__main::after{content:"نفدت Quantity";position:absolute;right:50%;top:46%;z-index:5;pointer-events:none;transform:translate(50%,-50%) rotate(-11deg);padding:.3em 1em .36em;font-family:"El Messiri",serif;font-weight:700;line-height:1.1;white-space:nowrap;font-size:clamp(28px,7.2vw,44px);color:#50172b;background:rgba(255,248,240,.88);border:4px solid #50172b;border-radius:8px;outline:2px solid rgba(80,23,43,.55);outline-offset:6px;box-shadow:0 10px 30px rgba(56,35,42,.2);
}
.jev3-english.single-product .outofstock .jelena-gallery__main::after{content:"SOLD OUT";letter-spacing:.14em;font-family:"Cormorant Garamond","El Messiri",serif;
}
/* status line next to the title: a clear burgundy pill instead of the tiny dot */
.jelena-stock.is-out{display:inline-flex;align-items:center;gap:.4em;background:#50172b;color:#fff0e2!important;padding:.35em .95em;border-radius:999px;font-size:13px;font-weight:700;letter-spacing:.02em;
}
.jelena-stock.is-out::before{display:none!important}
/* the sentence under the price becomes a framed note */
.jelena-out{border:1.5px solid #50172b;border-radius:12px;background:#fff8f0;color:#50172b;padding:.85em 1.1em;font-weight:600;font-size:15px;
}
.single-product .outofstock .jelena-pdp__hero .jelena-price{opacity:.55}
