/* Track Order Page Styles */

.track-order-page {
  padding-top: 160px;
  padding-bottom: 80px;
  min-height: 70vh;
}

/* Page Heading */
.page-heading {
  text-align: center;
  margin-bottom: 40px;
}

.page-heading h1 {
  font-size: 36px;
  color: var(--secondary);
  margin-bottom: 10px;
}

.page-heading p {
  font-size: 16px;
  color: #777;
  max-width: 500px;
  margin: 0 auto;
}

/* Search Form */
.track-search-section {
  max-width: 550px;
  margin: 0 auto 50px;
}

.track-search-form {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.track-search-form .form-group {
  margin-bottom: 20px;
}

.track-search-form .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
  font-size: 14px;
}

.track-search-form .form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  font-family: "Winky Rough", sans-serif;
  transition: border-color 0.3s ease;
}

.track-search-form .form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(71, 143, 7, 0.15);
}

.track-search-form .btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
}

/* Tracking Results */
.tracking-results {
  max-width: 800px;
  margin: 0 auto;
}

/* Order Header */
.tracking-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.tracking-order-info h2 {
  font-size: 22px;
  color: var(--dark);
  margin-bottom: 5px;
}

.tracking-order-info h2 span {
  color: var(--primary);
}

.tracking-order-date {
  font-size: 14px;
  color: #777;
}

.status-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
}

.status-shipped {
  background: #e8f5e9;
  color: var(--primary);
}

.status-processing {
  background: #fff3e0;
  color: #f39c12;
}

.status-delivered {
  background: #e8f5e9;
  color: var(--primary);
}

.status-cancelled {
  background: #fce4ec;
  color: #e74c3c;
}

/* Tracking Timeline */
.tracking-timeline {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 30px;
  position: relative;
}

.timeline-step {
  display: flex;
  gap: 20px;
  padding-bottom: 30px;
  position: relative;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

/* Vertical line connecting dots */
.timeline-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  width: 3px;
  height: calc(100% - 20px);
  background: #e9ecef;
}

.timeline-step.completed:not(:last-child)::before {
  background: var(--primary);
}

.timeline-step.active:not(:last-child)::before {
  background: linear-gradient(to bottom, var(--primary) 50%, #e9ecef 50%);
}

/* Timeline Dot */
.timeline-dot {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  z-index: 1;
  transition: all 0.3s ease;
}

.timeline-step.completed .timeline-dot {
  background: var(--primary);
  color: white;
}

.timeline-step.active .timeline-dot {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 0 6px rgba(71, 143, 7, 0.2);
}

.timeline-step.pending .timeline-dot {
  background: #e9ecef;
  color: #aaa;
}

.dot-icon {
  font-size: 16px;
  line-height: 1;
}

/* Timeline Content */
.timeline-step-content h3 {
  font-size: 16px;
  color: var(--dark);
  margin-bottom: 4px;
}

.timeline-step.pending .timeline-step-content h3 {
  color: #aaa;
}

.timeline-step-date {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-step.pending .timeline-step-date {
  color: #bbb;
}

.timeline-step-desc {
  font-size: 14px;
  color: #777;
  line-height: 1.5;
}

.timeline-step.pending .timeline-step-desc {
  color: #bbb;
}

/* Order Details Grid */
.tracking-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.tracking-detail-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 24px;
}

.tracking-detail-card h3 {
  font-size: 18px;
  color: var(--dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

/* Tracking Items */
.tracking-item {
  display: flex;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
}

.tracking-item:last-child {
  border-bottom: none;
}

.tracking-item img {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #eee;
}

.tracking-item-info {
  flex: 1;
}

.tracking-item-name {
  font-weight: 600;
  color: #333;
  font-size: 15px;
  margin-bottom: 4px;
}

.tracking-item-variant {
  font-size: 13px;
  color: #777;
  margin-bottom: 4px;
}

.tracking-item-price {
  font-weight: bold;
  color: var(--primary);
  font-size: 14px;
}

/* Shipping Info */
.tracking-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
}

.tracking-info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-size: 14px;
  color: #777;
  min-width: 140px;
}

.info-value {
  font-size: 14px;
  color: #333;
  font-weight: 500;
  text-align: right;
}

.info-value.highlight {
  color: var(--primary);
  font-weight: bold;
}

/* No Results State */
.tracking-no-results {
  text-align: center;
  padding: 60px 20px;
  max-width: 400px;
  margin: 0 auto;
}

.no-results-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.tracking-no-results h2 {
  font-size: 24px;
  color: var(--dark);
  margin-bottom: 12px;
}

.tracking-no-results p {
  font-size: 15px;
  color: #777;
  margin-bottom: 25px;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .track-order-page {
    padding-top: 140px;
  }

  .page-heading h1 {
    font-size: 28px;
  }

  .tracking-order-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .tracking-details-grid {
    grid-template-columns: 1fr;
  }

  .tracking-info-row {
    flex-direction: column;
    gap: 4px;
  }

  .info-value {
    text-align: left;
  }

  .tracking-timeline {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .page-heading h1 {
    font-size: 24px;
  }

  .track-search-form {
    padding: 20px;
  }

  .timeline-step {
    gap: 12px;
  }

  .timeline-dot {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: 14px;
  }

  .timeline-step:not(:last-child)::before {
    left: 16px;
  }

  .timeline-step-content h3 {
    font-size: 15px;
  }

  .tracking-detail-card {
    padding: 16px;
  }
}
