/* Base */
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #f8f9fa;
  color: #1f2937;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ED3655;
  padding: 0 1rem;
  height: 3.2em;
}
.brand {
  display: flex;
  align-items: center;
  height: 98%;
  width: clamp(84px, 9vw, 120px);
  padding-left: 1%;
}
.brand video {
  width: 90%;
  height: 100%;
  object-fit: cover;
}
.icon {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 35%;
  height: 100%;
  background-color: #ED3B5A;
}
.search {
  width: 70%;
  height: 100%;
  border: none;
  background: #ED3B5A;
}
.search img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Tracking container */
.tracking-container {
  max-width: 960px;
  margin: 0 auto;
  border-radius: 12px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Card */
.tracking-card {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  max-width: 820px;
  margin: 0 auto;
  transition: transform 0.2s ease;
}
.tracking-card:hover {
  transform: translateY(-3px);
}

/* Product image */
.tracking-img {
  flex: 0 0 28%;
  min-width: 140px;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #eaeaea;
  border-radius: 12px;
}
.tracking-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Info */
.tracking-info {
  flex: 1 1 0%;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
}
.title {
  font-size: 0.98rem;
  font-weight: 600;
  margin: 0;
}
.description {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0;
  margin-left: 7%;
}

/* Status bar */
.tracking-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.3rem;
}
.step {
  position: relative;
  flex: 1;
  text-align: center;
  padding: 0.4rem 0.2rem;
  font-size: 0.74rem;
  color: #6b7280;
}
.step.completed { color: #2E9B68; font-weight: 600; }
.step.current { color: #ED3B5A; font-weight: 600; }

.step.completed::before { background: #2E9B68; }
.step:first-child::before { width: 50%; left: 50%; }
.step:last-child::before { width: 50%; left: 0; }

/* Action button */
.tracking-action {
  display: flex;
  align-items: center;
  padding: 0.85rem;
}
.details-btn {
  background: #ED3B5A;
  color: #fff;
  border: none;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}
.details-btn:hover { background: #F04668; }

/* Responsive */
@media (max-width: 768px) {
  .tracking-card { flex-direction: column; }
  .tracking-img { width: 100%; aspect-ratio: 16/11; min-width: 0; }
  .tracking-action { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .tracking-card {
    flex-direction: row;      /* keep image + info side by side */
    padding: 0.3rem;
    max-width: 100%;
  }

  .tracking-img {
    flex: 0 0 30%;
    aspect-ratio: 1 / 1;      /* small square image */
    min-width: 80px;
  }

  .tracking-info {
    flex: 1 1 0%;
    padding: 0.3rem;
    gap: 0.15rem;
  }

  .title {
    font-size: 0.8rem;
  }

  .description {
    font-size: 0.7rem;
  }

  .tracking-status {
    gap: 0.3rem;
  }

  .step {
    font-size: 0.65rem;
    padding: 0.25rem 0.15rem;
  }

  .tracking-action {
    padding: 0.3rem;
  }

  .details-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
}


.tracking-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.3rem;
}

.step {
  position: relative;
  flex: 1;
  text-align: center;
  padding: 0.4rem 0.2rem;
  font-size: 0.74rem;
  color: #6b7280;
  transition: color 0.5s ease;
}



.step.completed {
  color: #2E9B68;
  font-weight: 600;
}

.step.current {
  color: #ED3B5A;
  font-weight: 600;
}

/* Animate the "before" bar for completed steps */
.step.completed::before {
  width: 100%;
}

/* Empty state */
.empty-state {
  max-width: 820px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 2rem 1.5rem;
  text-align: center;
}
.empty-emoji {
  font-size: 64px;
  line-height: 1;
}
.empty-title {
  margin: 0.5rem 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2937;
}
.empty-subtext {
  margin: 0;
  color: #6b7280;
  font-size: 0.92rem;
}
.empty-cta {
  margin-top: 1rem;
}
.empty-btn {
  background: #ED3B5A;
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.empty-btn:hover {
  background: #F04668;
}

/* Subtle bounce for the emoji */
@keyframes empty-pop {
  0% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}
.empty-emoji {
  animation: empty-pop 1.6s ease-in-out infinite;
}

@media (max-width: 480px) {
  .empty-state { padding: 1.25rem 1rem; }
  .empty-emoji { font-size: 52px; }
  .empty-title { font-size: 0.98rem; }
  .empty-subtext { font-size: 0.85rem; }
}
