/* ===== 배송 추적 ===== */
.shipping-wrap { max-width: 900px; margin: 0 auto; padding: 0 6% 80px; }
.ship-card {
  background: white;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
  margin-bottom: 18px;
}
.ship-meta {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 2px dashed var(--line);
}
.ship-meta h3 { font-family: 'Jua'; font-size: 20px; }
.ship-meta small { color: var(--text-soft); font-size: 12px; display: block; }
.ship-meta .track-no { background: var(--bg); padding: 10px 16px; border-radius: 14px; font-size: 13px; font-weight: 700; }
.ship-meta .track-no.empty { background: rgba(255, 193, 7, .14); color: #92400E; font-weight: 600; }

.ship-progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  margin-bottom: 12px;
  overflow: hidden;
}
.ship-step {
  text-align: center;
  position: relative;
  padding-top: 36px;
}
/* 각 step 사이 연결 라인: step의 왼쪽 50%에서 다음 step의 50%까지 그어짐 */
.ship-step::before {
  content: '';
  position: absolute;
  top: 16px; left: 50%;
  width: 100%;
  height: 4px;
  background: #eee;
  z-index: 0;
}
/* 마지막 step의 ::before는 다음 칸이 없으므로 숨김 (튀어나오는 라인 제거) */
.ship-step:last-child::before { display: none; }
.ship-step .ball {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 32px; height: 32px;
  border-radius: 50%;
  background: white;
  border: 3px solid #eee;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  z-index: 1;
}
.ship-step.done .ball { background: var(--pink); border-color: var(--pink); color: white; }
.ship-step.done::before { background: var(--pink); }
.ship-step.current .ball { background: var(--yellow); border-color: var(--yellow); color: var(--text); animation: pulseRing 1.6s infinite; }
@keyframes pulseRing { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 201, 60, .6); } 50% { box-shadow: 0 0 0 10px rgba(255, 201, 60, 0); } }
.ship-step .label { font-family: 'Jua'; font-size: 13px; }
.ship-step .time { font-size: 11px; color: var(--text-soft); margin-top: 2px; }

.ship-items {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 26px; padding-top: 22px;
  border-top: 2px dashed var(--line);
}
.ship-item-row { display: flex; align-items: center; gap: 14px; font-size: 13.5px; }
.ship-item-row .e { font-size: 26px; }

.cart-info-row {
  background: var(--bg);
  border-radius: 16px;
  padding: 18px 22px;
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--text-soft);
  display: flex; align-items: flex-start; gap: 12px;
}
.cart-info-row b { color: var(--text); }

@media (max-width: 900px) {
  .ship-step .label { font-size: 11px; }
  .ship-step .time { display: none; }
}

/* ===== 다크모드 ===== */
body.dark-theme .ship-card { background: var(--surface); }
body.dark-theme .ship-meta .track-no { background: var(--bg-2); color: var(--text); }
body.dark-theme .ship-step::before { background: var(--line); }
body.dark-theme .ship-step .ball { background: var(--surface); border-color: var(--line); }
body.dark-theme .ship-step.done .ball { background: var(--pink); border-color: var(--pink); }
body.dark-theme .cart-info-row { background: var(--bg-2); }
body.dark-theme .cart-info-row b { color: var(--text); }
