/**
 * 프로모션 시스템 스타일
 */

/* 프로모션 배지 */
.promotion-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: linear-gradient(135deg, #EF4444 0%, #F97316 100%);
  color: white;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  white-space: nowrap;
}

.promotion-badge i {
  font-size: 10px;
}

/* ========================================
   쿠팡 스타일 프로모션 타이머 배너
   ======================================== */

/* 프로모션 타이머 컨테이너 */
.promotion-timer-container {
  margin: 12px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #E5E7EB;
}

/* 오늘의 딜 타이머 바 */
.promotion-timer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: linear-gradient(135deg, #18B7BE 0%, #00C4CC 100%);
  color: white;
}

.promotion-timer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.promotion-timer-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promotion-timer-icon svg {
  width: 18px;
  height: 18px;
}

.promotion-timer-label {
  font-size: 14px;
  font-weight: 600;
}

.promotion-timer-countdown {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.promotion-timer-countdown .time-separator {
  opacity: 0.8;
}

.promotion-timer-arrow {
  font-size: 18px;
  opacity: 0.8;
}

/* 프로모션 상세 정보 */
.promotion-deal-info {
  padding: 16px;
  background: #FAFAFA;
}

.promotion-deal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.promotion-deal-row:last-child {
  margin-bottom: 0;
}

.promotion-deal-label {
  font-size: 13px;
  color: #6B7280;
}

.promotion-deal-value {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.promotion-deal-value.highlight {
  color: #EF4444;
  font-size: 18px;
}

.promotion-deal-value .original {
  font-size: 13px;
  color: #9CA3AF;
  text-decoration: line-through;
  margin-right: 8px;
}

.promotion-deal-value .discount-rate {
  color: #EF4444;
  font-weight: 700;
  margin-right: 6px;
}

/* 추가 혜택 배너 */
.promotion-extra-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  color: white;
  cursor: pointer;
  transition: opacity 0.2s;
}

.promotion-extra-banner:hover {
  opacity: 0.95;
}

.promotion-extra-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.promotion-extra-icon {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.promotion-extra-text {
  font-size: 14px;
  font-weight: 500;
}

.promotion-extra-arrow {
  font-size: 16px;
}

/* 프로모션 뱃지들 */
.promotion-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.promo-badge.deal {
  background: #FEF3C7;
  color: #92400E;
}

.promo-badge.flash {
  background: #FEE2E2;
  color: #DC2626;
}

.promo-badge.limited {
  background: #DBEAFE;
  color: #1D4ED8;
}

/* 타이머 애니메이션 */
@keyframes timerPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.promotion-timer-countdown.ending {
  animation: timerPulse 1s ease-in-out infinite;
}

/* 반응형 */
@media (max-width: 480px) {
  .promotion-timer-bar {
    padding: 8px 12px;
  }

  .promotion-timer-label {
    font-size: 12px;
  }

  .promotion-timer-countdown {
    font-size: 13px;
  }

  .promotion-deal-info {
    padding: 12px;
  }

  .promotion-deal-value.highlight {
    font-size: 16px;
  }
}

/* 다크모드 */
[data-theme="dark"] .promotion-timer-container {
  background: #1F2937;
  border-color: #374151;
}

[data-theme="dark"] .promotion-deal-info {
  background: #111827;
}

[data-theme="dark"] .promotion-deal-label {
  color: #9CA3AF;
}

[data-theme="dark"] .promotion-deal-value {
  color: #F3F4F6;
}

/* 할인 가격 표시 */
.price-with-discount {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price-with-discount .original-price {
  font-size: 14px;
  color: #9CA3AF;
  text-decoration: line-through;
}

.price-with-discount .discounted-price {
  font-size: 18px;
  font-weight: 700;
  color: #EF4444;
}

/* 프로모션 모달 */
.promotion-modal {
  max-width: 520px;
  width: 90%;
}

.promotion-modal .product-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #F7F6F3;
  border-radius: 8px;
  margin-bottom: 20px;
}

.promotion-modal .product-badge {
  padding: 4px 8px;
  background: #3362e4;
  color: white;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
}

.promotion-modal .product-name {
  font-size: 14px;
  font-weight: 500;
  color: #37352F;
}

.promotion-modal .form-group {
  margin-bottom: 16px;
}

.promotion-modal .form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #37352F;
  margin-bottom: 6px;
}

.promotion-modal .form-group label .optional {
  font-size: 12px;
  color: #9B9B9B;
  font-weight: 400;
}

.promotion-modal .form-group input,
.promotion-modal .form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #E3E3E3;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

/* Select 드롭다운 화살표 스타일 */
.promotion-modal .form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B6B6B' d='M6 8L1 3h10L6 8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

/* datetime-local 입력 필드 오버플로우 방지 */
.promotion-modal .form-group input[type="datetime-local"] {
  min-width: 0;
  max-width: 100%;
}

.promotion-modal .form-group input:focus,
.promotion-modal .form-group select:focus {
  outline: none;
  border-color: #3362e4;
}

.promotion-modal .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* 날짜 입력 행은 오버플로우 방지 */
.promotion-modal .form-row:has(input[type="datetime-local"]) {
  overflow: hidden;
}

.promotion-modal .form-row .form-group {
  min-width: 0; /* flexbox/grid 자식 요소 오버플로우 방지 */
}

/* 입력 필드 + suffix 래퍼 */
.promotion-modal .input-with-suffix {
  position: relative;
  display: block;
}

.promotion-modal .input-with-suffix input {
  width: 100%;
  padding-right: 40px;
}

.promotion-modal .input-suffix {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #6B6B6B;
  pointer-events: none;
}

/* 레거시 지원 (래퍼 없는 경우) */
.promotion-modal .form-group:has(.input-suffix):not(:has(.input-with-suffix)) {
  position: relative;
}

.promotion-modal .form-group:has(.input-suffix):not(:has(.input-with-suffix)) input {
  padding-right: 40px;
}

/* 모달 오버레이 - 프로모션 모달 전용 (#promotionModal) */
#promotionModal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  animation: fadeIn 0.2s ease;
}

#promotionModal .modal-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease;
}

#promotionModal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #E3E3E3;
}

#promotionModal .modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #37352F;
  margin: 0;
}

#promotionModal .modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #6B6B6B;
  cursor: pointer;
  transition: all 0.2s;
}

#promotionModal .modal-close:hover {
  background: #F0F0F0;
  color: #37352F;
}

#promotionModal .modal-body {
  padding: 24px;
}

#promotionModal .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #E3E3E3;
}

#promotionModal .modal-footer .btn-secondary {
  padding: 10px 20px;
  background: #F7F6F3;
  border: 1px solid #E3E3E3;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #37352F;
  cursor: pointer;
  transition: all 0.2s;
}

#promotionModal .modal-footer .btn-secondary:hover {
  background: #EEEEEE;
}

#promotionModal .modal-footer .btn-primary {
  padding: 10px 20px;
  background: #3362e4;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

#promotionModal .modal-footer .btn-primary:hover {
  background: #2952c8;
}

/* 프로모션 카드 - 토스 스타일 */
.promotion-card {
  background: white;
  border: 1px solid #E5E8EB;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
}

.promotion-card:hover {
  border-color: #3362e4;
}

.promotion-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #F8F9FA;
  border-bottom: 1px solid #E5E8EB;
}

.promotion-status {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: white;
}

.promotion-actions {
  display: flex;
  gap: 4px;
}

.btn-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid #E3E3E3;
  border-radius: 6px;
  color: #6B6B6B;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon:hover {
  background: #F0F0F0;
  color: #37352F;
}

.btn-icon.danger:hover {
  background: #FEE2E2;
  border-color: #FECACA;
  color: #DC2626;
}

.promotion-card-body {
  padding: 16px;
}

.promotion-name {
  font-size: 16px;
  font-weight: 600;
  color: #37352F;
  margin: 0 0 12px 0;
}

.promotion-discount,
.promotion-period,
.promotion-product,
.promotion-uses {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6B6B6B;
  margin-bottom: 8px;
}

/* 토스 스타일 아이콘 색상 - 회색 통일 */
.promotion-discount i,
.promotion-discount .svg-icon { color: #6B7684; }
.promotion-period i,
.promotion-period .svg-icon { color: #6B7684; }
.promotion-product i,
.promotion-product .svg-icon { color: #6B7684; }
.promotion-uses i,
.promotion-uses .svg-icon { color: #6B7684; }

/* 프로모션 버튼 (상품 카드용) - 토스 스타일 */
.btn-promotion {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #3362e4;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-promotion:hover {
  background: #2952c8;
}

.btn-promotion i,
.btn-promotion .svg-icon {
  font-size: 12px;
  width: 12px;
  height: 12px;
}

/* 프로모션 그리드 */
.promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* 빈 상태 */
.promotions-empty {
  text-align: center;
  padding: 60px 20px;
  color: #9B9B9B;
}

.promotions-empty i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.promotions-empty p {
  font-size: 15px;
  margin-bottom: 20px;
}

/* 애니메이션 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 반응형 */
@media (max-width: 767px) {
  .promotion-modal {
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
  }

  .promotion-modal .form-row {
    grid-template-columns: 1fr;
  }

  .modal-footer {
    flex-direction: column;
  }

  .modal-footer button {
    width: 100%;
  }

  .promotions-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* 프로모션 카드 모바일 최적화 */
  .promotion-card {
    border-radius: 10px;
  }

  .promotion-card-header {
    padding: 10px 14px;
  }

  .promotion-status {
    font-size: 11px;
    padding: 3px 8px;
  }

  .btn-icon {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .promotion-card-body {
    padding: 12px 14px;
  }

  .promotion-name {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .promotion-discount,
  .promotion-period,
  .promotion-product,
  .promotion-uses {
    font-size: 12px;
    gap: 6px;
    margin-bottom: 6px;
  }

  .promotion-discount i,
  .promotion-period i,
  .promotion-product i,
  .promotion-uses i,
  .promotion-discount .svg-icon,
  .promotion-period .svg-icon,
  .promotion-product .svg-icon,
  .promotion-uses .svg-icon {
    font-size: 12px;
    width: 14px;
    min-width: 14px;
  }
}

/* 작은 모바일 (480px 이하) */
@media (max-width: 480px) {
  .promotion-modal {
    width: 100%;
    max-height: 100vh;
    border-radius: 16px 16px 0 0;
    margin-top: auto;
  }

  #promotionModal {
    align-items: flex-end;
  }

  #promotionModal .modal-content {
    border-radius: 16px 16px 0 0;
    max-height: 90vh;
  }

  #promotionModal .modal-header {
    padding: 16px 20px;
  }

  #promotionModal .modal-body {
    padding: 16px 20px;
  }

  #promotionModal .modal-footer {
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .promotions-grid {
    gap: 10px;
  }

  .promotion-card-header {
    padding: 8px 12px;
  }

  .promotion-card-body {
    padding: 10px 12px;
  }

  .promotion-name {
    font-size: 13px;
  }

  .promotion-discount,
  .promotion-period,
  .promotion-product,
  .promotion-uses {
    font-size: 11px;
  }
}

/* 다크모드 */
[data-theme="dark"] .promotion-modal .product-info {
  background: #2D2D2D;
}

[data-theme="dark"] .promotion-modal .product-name {
  color: #E0E0E0;
}

[data-theme="dark"] .promotion-modal .form-group label {
  color: #E0E0E0;
}

[data-theme="dark"] .promotion-modal .form-group input,
[data-theme="dark"] .promotion-modal .form-group select {
  background: #1E1E1E;
  border-color: #404040;
  color: #E0E0E0;
}

/* 다크모드 select 화살표 */
[data-theme="dark"] .promotion-modal .form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239CA3AF' d='M6 8L1 3h10L6 8z'/%3E%3C/svg%3E");
}

[data-theme="dark"] #promotionModal .modal-content {
  background: #1E1E1E;
}

[data-theme="dark"] #promotionModal .modal-header,
[data-theme="dark"] #promotionModal .modal-footer {
  border-color: #333;
}

[data-theme="dark"] #promotionModal .modal-header h3 {
  color: #E0E0E0;
}

[data-theme="dark"] .promotion-card {
  background: #1E1E1E;
  border-color: #333;
}

[data-theme="dark"] .promotion-card-header {
  background: #2D2D2D;
  border-color: #333;
}

[data-theme="dark"] .promotion-name {
  color: #E0E0E0;
}

/* ========================================
   가격 카드 내부 프로모션 정보
   ======================================== */

.promotion-info-in-price {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #E5E7EB;
}

.promo-deal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border: 1px solid #F59E0B;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #92400E;
}

.promo-deal-badge i {
  color: #F59E0B;
}

.promo-deal-badge .promo-name {
  color: #B45309;
  font-weight: 700;
}

.promo-deal-badge .promo-discount {
  color: #DC2626;
  font-weight: 700;
}

.promo-timer-mini {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  color: #6B7280;
}

.promo-timer-mini i {
  color: #18B7BE;
}

.promo-timer-mini .countdown {
  font-weight: 600;
  color: #18B7BE;
  font-family: 'SF Mono', 'Monaco', monospace;
}

/* 상단 심플 타이머 배너 */
.promotion-timer-simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: linear-gradient(135deg, #18B7BE 0%, #00C4CC 100%);
  border-radius: 8px;
  color: white;
  margin-bottom: 12px;
}

.promotion-timer-simple .timer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.promotion-timer-simple .timer-left i {
  font-size: 16px;
}

.promotion-timer-simple .timer-right {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.promotion-timer-simple .timer-right.ending {
  animation: timerPulse 1s ease-in-out infinite;
}

/* 다크모드 */
[data-theme="dark"] .promotion-info-in-price {
  border-top-color: #374151;
}

[data-theme="dark"] .promo-deal-badge {
  background: linear-gradient(135deg, #78350F 0%, #92400E 100%);
  border-color: #B45309;
  color: #FDE68A;
}

[data-theme="dark"] .promo-deal-badge .promo-name {
  color: #FCD34D;
}

[data-theme="dark"] .promo-timer-mini {
  color: #9CA3AF;
}

/* ========================================
   가격 카드 내 프로모션 행 (토스 스타일)
   ======================================== */

.promo-price-row {
  border-top: 1px solid #e8e8e8;
  padding-top: 16px;
  margin-top: 8px;
}

.promo-price-row .promo-label {
  font-family: 'PretendardVariable', 'Pretendard', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #6B7280;
}

.promo-price-row .price-value-wrap {
  text-align: right;
}

.promo-price-row .promo-price-main {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 12px;
}

.promo-original-price {
  font-family: 'PretendardVariable', 'Pretendard', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #9CA3AF;
  text-decoration: line-through;
}

.promo-discount-amount {
  display: block;
  font-family: 'PretendardVariable', 'Pretendard', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #10B981;
  text-align: right;
  margin-top: 2px;
}

.promo-price-value {
  font-family: 'PretendardVariable', 'Pretendard', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.3px;
}

.promo-timer-text {
  display: block;
  font-family: 'PretendardVariable', 'Pretendard', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #EF4444;
  margin-top: 4px;
}

.promo-timer-text i {
  margin-right: 4px;
}

/* 다크모드 */
[data-theme="dark"] .promo-price-row {
  border-top-color: #374151;
}

[data-theme="dark"] .promo-price-row .promo-label {
  color: #9CA3AF;
}

[data-theme="dark"] .promo-original-price {
  color: #6B7280;
}

[data-theme="dark"] .promo-discount-amount {
  color: #34D399;
}

[data-theme="dark"] .promo-price-value {
  color: #F9FAFB;
}

[data-theme="dark"] .promo-timer-text {
  color: #FCA5A5;
}

/* ========================================
   모바일 프로모션 행 (토스/카카오뱅크 스타일)
   ======================================== */

.price-promo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 12px 14px;
  background: #F8F9FA;
  border-radius: 8px;
  border: 1px solid #E9ECEF;
  font-family: 'PretendardVariable', 'Pretendard', sans-serif;
}

.price-promo-row .promo-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.price-promo-row .promo-name {
  font-size: 13px;
  font-weight: 500;
  color: #495057;
}

.price-promo-row .promo-original {
  font-size: 13px;
  color: #ADB5BD;
  text-decoration: line-through;
}

.price-promo-row .promo-arrow {
  font-size: 12px;
  color: #ADB5BD;
}

.price-promo-row .promo-price {
  font-size: 16px;
  font-weight: 500;
  color: #3362e4;
  position: relative;
  top: 1px;
}

.price-promo-row .promo-countdown {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #EF4444;
  white-space: nowrap;
  position: relative;
  top: 1px;
}

.price-promo-row .promo-countdown i {
  font-size: 11px;
}

/* 다크모드 */
[data-theme="dark"] .price-promo-row {
  background: #1E1E1E;
  border-color: #333;
}

[data-theme="dark"] .price-promo-row .promo-name {
  color: #E0E0E0;
}

[data-theme="dark"] .price-promo-row .promo-original {
  color: #6B7280;
}

[data-theme="dark"] .price-promo-row .promo-arrow {
  color: #6B7280;
}

[data-theme="dark"] .price-promo-row .promo-price {
  color: #6B8DF5;
}

[data-theme="dark"] .price-promo-row .promo-countdown {
  color: #FCA5A5;
}

/* ========================================
   상품 카드 내 프로모션 텍스트 (index.html, product.html 등)
   "🏷️ 월 6,547,500원" 형식으로 표시 (3열 최적화)
   ======================================== */

/* 상품 카드 프로모션 텍스트 */
.card-promo-text {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  font-size: 16px; /* 할인가와 동일한 크기 */
  white-space: nowrap;
  overflow: hidden;
}

.card-promo-label {
  font-weight: 400;
  color: #6B7280;
  flex-shrink: 0;
  font-size: 14px;
}

.card-promo-price {
  font-weight: 600;
  color: #3362e4;
  font-size: 16px; /* 할인가와 동일한 크기 */
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-promo-icon {
  display: none; /* 기본: 아이콘 숨김 */
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  color: #3362e4;
}

/* 모바일 반응형 - 할인가와 동일한 크기 유지 */
@media (max-width: 768px) {
  .card-promo-text {
    font-size: 14px; /* 모바일 할인가와 동일 */
  }

  .card-promo-label {
    font-size: 14px; /* 모바일 프로모션가와 동일 */
  }

  .card-promo-price {
    font-size: 14px; /* 모바일 할인가와 동일 */
  }

  /* 모바일 3열 그리드에서는 프로모션 숨김 */
  #popular-places-container .card-promo-text,
  #discount-products-container .card-promo-text {
    display: none;
  }
}

/* 다크모드 */
[data-theme="dark"] .card-promo-label {
  color: #9CA3AF;
}

[data-theme="dark"] .card-promo-icon {
  color: #6B8DF5;
}

[data-theme="dark"] .card-promo-price {
  color: #6B8DF5;
}
