/* Product page low-stock line (prefix .fbs). Box nai: dot + text + patla bar */
.fbs { --w: 20%; margin: 12px 0 4px; max-width: 360px; }
.fbs[hidden] { display: none; }

@media (min-width: 992px) {
  .product-info > .fbs { margin: 0 0 -6px; }
}

.fbs__row { display: flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 600; line-height: 1.35; color: #4a3b3e; }

/* Lal dot + halka pulse ring */
.fbs__dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #e53935; }
.fbs__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid #e53935; opacity: 0; animation: fbs-ring 1.8s ease-out infinite; }
@keyframes fbs-ring { 0% { transform: scale(.5); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }

.fbs__n { margin: 0 1px; font-size: 16px; font-weight: 800; color: #c62828; font-variant-numeric: tabular-nums; }

/* Patla bar. Width ashe --w theke, tai server o JS dui-tai sahoj-e bodlay */
.fbs__bar { height: 4px; margin-top: 8px; border-radius: 99px; background: #f1e3e0; overflow: hidden; }
.fbs__bar i { display: block; height: 100%; width: var(--w); border-radius: 99px;
  background: linear-gradient(90deg, #e53935, #ff8a65); transition: width .9s cubic-bezier(.2, .8, .2, 1); }

/* Kenar por number 4 -> 3 hole ektu "pop" kore, jeno chokhe pore */
.fbs.is-drop .fbs__n { animation: fbs-pop .7s ease; }
@keyframes fbs-pop { 30% { transform: scale(1.45); } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .fbs__dot::after, .fbs.is-drop .fbs__n { animation: none; }
  .fbs__bar i { transition: none; }
}

/* Mobile: full width, ektu chhoto text, qty row er kache */
@media (max-width: 768px) {
  .fbs { max-width: none; margin: 10px 0 8px; }
  .fbs__row { font-size: 13px; }
  .fbs__n { font-size: 15px; }
}

/* Variant product e variant-picker er nijer "Only N left" note double na hoy */
.has-fbs .vp-stock,
.has-fbs #pdpStockStatus { display: none; }
