/* ===================== OUT OF STOCK BADGE ===================== */

.product-out-of-stock .product-image,
.product-out-of-stock .product-name,
.product-out-of-stock .product-desc,
.product-out-of-stock .original-price,
.product-out-of-stock .discounted-price {
  opacity: 0.6;
}

.out-of-stock-badge {
  display: inline-block;
  color: #ffffff !important;
  background: #c41e3a;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 2px 0 10px;
  padding: 5px 14px;
  border-radius: var(--radius-pill, 50px);
  border-bottom: none;
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.4);
  opacity: 1 !important;
  position: relative;
  overflow: hidden;
  animation: oosPulse 1.8s ease-in-out infinite;
}

/* Subtle pulse glow */
@keyframes oosPulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(196, 30, 58, 0.4); }
  50%       { box-shadow: 0 4px 22px rgba(196, 30, 58, 0.75), 0 0 0 4px rgba(196, 30, 58, 0.12); }
}

/* Diagonal shine sweep across the badge */
.out-of-stock-badge::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
  animation: oosShine 2.6s ease-in-out infinite;
}

@keyframes oosShine {
  0%   { left: -60%; }
  50%  { left: 130%; }
  100% { left: 130%; }
}

.product-out-of-stock .qty-btn,
.product-out-of-stock .qty-input {
  cursor: not-allowed;
  opacity: 0.5;
  pointer-events: none;
}

.product-out-of-stock:hover {
  transform: none !important;
  border-color: #e0e0e0 !important;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .out-of-stock-badge,
  .out-of-stock-badge::after {
    animation: none !important;
  }
}

/* ===================== END OUT OF STOCK BADGE ===================== */