/* ==========================================================================
   Heart to Kiss — countdown.css
   할인 카운트다운 배지 스타일
   ========================================================================== */

/* ── 기본 배지 ──────────────────────────────────────────────────────────── */
.countdown-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: #E53935;
  color: #fff;
  font-family: var(--font-numeric, 'Inter', monospace);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 4px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(229, 57, 53, 0.35);
}

/* 모바일: 약간 작게 */
@media (max-width: 480px) {
  .countdown-badge {
    font-size: 10px;
    padding: 3px 6px;
    top: 6px;
    right: 6px;
  }
}

/* ── 종료 상태 ──────────────────────────────────────────────────────────── */
.countdown-badge.is-ended {
  background: #888;
  box-shadow: none;
}

/* ── 긴박감 (1시간 미만) 깜빡임 ─────────────────────────────────────────── */
.countdown-badge.is-urgent {
  animation: htk-countdown-pulse 1s ease-in-out infinite;
}

@keyframes htk-countdown-pulse {
  0%   { opacity: 1;    background: #E53935; }
  50%  { opacity: 0.65; background: #C62828; }
  100% { opacity: 1;    background: #E53935; }
}

/* ── 상세 페이지 인라인 배지 (가격 영역 아래) ──────────────────────────── */
.countdown-detail {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
}

.countdown-detail .countdown-badge {
  position: static;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
}

/* ── 상품 카드 media 는 relative 포지션이 필요함 ─────────────────────────
   (site.css 의 .prod-card__media 에 이미 있으면 생략, 없으면 보험)
   ─────────────────────────────────────────────────────────────────────── */
.prod-card__media {
  position: relative;
}
