/*
 * AdeptDEV × NANU Market — Sale badge + stock pulse polish v7.33
 * Internal signature: AdeptDEV — https://t.me/adeptdevs
 */

#product-category .adev-badge--sale,
#product-search .adev-badge--sale {
  background: linear-gradient(135deg, #ef5350 0%, #d93a36 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(217,58,54,.20) !important;
}

#product-category .adev-stock.is-in,
#product-search .adev-stock.is-in {
  color: #1f9d5c !important;
  background: #ffffff !important;
  border: 1px solid rgba(31,157,92,.16) !important;
  box-shadow: none !important;
}

#product-category .adev-stock.is-in::before,
#product-search .adev-stock.is-in::before {
  width: 7px !important;
  height: 7px !important;
  min-width: 7px !important;
  background: #29b66f !important;
  box-shadow: 0 0 0 0 rgba(41,182,111,.40) !important;
  animation: adevStockPulseGreen 1.8s ease-in-out infinite !important;
}

#product-category .adev-stock.is-out,
#product-search .adev-stock.is-out {
  color: #d3543f !important;
}

#product-category .adev-stock.is-out::before,
#product-search .adev-stock.is-out::before {
  background: #e46a55 !important;
}

body.nx-dark #product-category .adev-badge--sale,
body.nx-dark #product-search .adev-badge--sale {
  background: linear-gradient(135deg, #ef5350 0%, #d93a36 100%) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.28) !important;
}

body.nx-dark #product-category .adev-stock.is-in,
body.nx-dark #product-search .adev-stock.is-in {
  background: rgba(255,255,255,.06) !important;
  color: #5fd78f !important;
  border-color: rgba(95,215,143,.18) !important;
}

body.nx-dark #product-category .adev-stock.is-in::before,
body.nx-dark #product-search .adev-stock.is-in::before {
  background: #5fd78f !important;
  box-shadow: 0 0 0 0 rgba(95,215,143,.34) !important;
}

@keyframes adevStockPulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(41,182,111,.38); }
  70% { box-shadow: 0 0 0 7px rgba(41,182,111,0); }
  100% { box-shadow: 0 0 0 0 rgba(41,182,111,0); }
}

@media (prefers-reduced-motion: reduce) {
  #product-category .adev-stock.is-in::before,
  #product-search .adev-stock.is-in::before {
    animation: none !important;
  }
}
