/* ══════════════════════════════════════════════════
   Tindahan – alert.css  (Enhanced)
   Stock alert banner + notification popup styles.
   Preserves original design language.
══════════════════════════════════════════════════ */

/* ── Stock-alert banner (top of #app, above header) ── */
.stock-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff3cd;
  border-bottom: 1px solid #f5d799;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #7a4f00;
  cursor: pointer;
  flex-shrink: 0;
}
.stock-alert-text { flex: 1; }
.stock-alert-go   { color: #c47a00; font-weight: 700; white-space: nowrap; }
.stock-alert:hover .stock-alert-go { text-decoration: underline; }

/* ── Notification bell (in header) ── */
.notif-wrap {
  position: relative;
}
.header-notif {
  border: 0;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 20px;
  width: 38px; height: 38px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}

/* Badge counter */
.notif-badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  background: #fff;
  color: #E63946;
  border-radius: 999px;
  font-size: 11px; font-weight: 900; line-height: 18px;
  text-align: center; padding: 0 4px;
  animation: badge-pulse 1.6s ease infinite;
}
@keyframes badge-pulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.2); }
}

/* ── Notification drop-down popup ── */
.notif-popup {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  background: #fff;
  border: 1px solid #e8e4de;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
  z-index: 150;
  overflow: hidden;
  animation: notif-drop .18s ease-out;
}
@keyframes notif-drop { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }

.notif-header {
  background: #fff9f0;
  border-bottom: 1px solid #f5d799;
  padding: 10px 14px;
  font-size: 13px; font-weight: 800;
  color: #7a4f00;
}

.notif-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #f0ece6;
  cursor: pointer;
  transition: background .12s;
}
.notif-item:hover { background: #fdf9f5; }

.notif-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.notif-dot.out { background: #E63946; }
.notif-dot.low { background: #e9a100; }

.notif-item-info  { flex: 1; min-width: 0; }
.notif-item-name  { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-item-status { font-size: 11px; margin-top: 2px; font-weight: 600; }
.notif-item-status.out { color: #E63946; }
.notif-item-status.low { color: #e9a100; }

.notif-item-count {
  font-size: 20px; font-weight: 900;
  min-width: 32px; text-align: right;
}
.notif-item-count.out { color: #E63946; }
.notif-item-count.low { color: #e9a100; }

.notif-footer {
  padding: 10px 14px;
  text-align: center;
  background: #fdf9f5;
}
.notif-footer a {
  font-size: 13px; font-weight: 700;
  color: #E63946; cursor: pointer;
  text-decoration: none;
}
.notif-footer a:hover { text-decoration: underline; }

.notif-empty {
  padding: 18px 14px;
  text-align: center;
  font-size: 13px;
  color: #6b6b72;
}
