/* =========================================================
   ZERALVO ATELIER - LUXURY ORDER TRACKING (Apple / Swiss Clean)
   ========================================================= */

.tracking-page-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 20px 100px;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  color: #111111;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------
   Hero Section
   --------------------------------------------------------- */
.tracking-hero {
  text-align: center;
  margin-bottom: 40px;
}

.tracking-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #888888;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tracking-breadcrumb a {
  color: #666666;
  text-decoration: none;
  transition: color 0.2s ease;
}

.tracking-breadcrumb a:hover {
  color: #111111;
}

.tracking-breadcrumb .sep {
  color: #cccccc;
}

.tracking-breadcrumb .current {
  color: #111111;
}

.tracking-kicker {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #b08d57;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.tracking-hero h1 {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111111;
  margin: 0 0 14px;
  line-height: 1.2;
}

.tracking-hero p {
  font-size: 15px;
  line-height: 1.6;
  color: #666666;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------------------------------------------------------
   Search Input Form
   --------------------------------------------------------- */
.tracking-search-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
  margin-bottom: 40px;
}

.tracking-form {
  display: flex;
  gap: 10px;
}

.tracking-input {
  flex: 1;
  height: 52px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0 18px;
  font-size: 15px;
  font-family: inherit;
  background: #f8f8f9;
  color: #111111;
  outline: none;
  transition: all 0.2s ease;
}

.tracking-input:focus {
  background: #ffffff;
  border-color: #111111;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.tracking-submit-btn {
  height: 52px;
  padding: 0 32px;
  background: #111111;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tracking-submit-btn:hover {
  background: #333333;
}

/* ---------------------------------------------------------
   Order Details Result Card
   --------------------------------------------------------- */
.tracking-result-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.result-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid #f0f0f0;
}

.result-order-meta strong {
  font-size: 20px;
  font-weight: 800;
  color: #111111;
  letter-spacing: -0.01em;
}

.result-order-meta small {
  display: block;
  font-size: 12px;
  color: #777777;
  margin-top: 4px;
}

.tracking-status-badge {
  font-size: 12px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tracking-status-badge.badge-new {
  background: #fff8e1;
  color: #b78103;
}

.tracking-status-badge.badge-paid {
  background: #e8f5e9;
  color: #2e7d32;
}

.tracking-status-badge.badge-preparing {
  background: #e3f2fd;
  color: #1565c0;
}

.tracking-status-badge.badge-shipped {
  background: #f3e5f5;
  color: #7b1fa2;
}

.tracking-status-badge.badge-delivered {
  background: #e8f5e9;
  color: #1b5e20;
}

.tracking-status-badge.badge-cancelled {
  background: #ffebee;
  color: #c62828;
}

/* ---------------------------------------------------------
   5-Step Visual Timeline
   --------------------------------------------------------- */
.tracking-timeline-wrap {
  padding: 10px 0;
}

.timeline-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #888888;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
}

.tracking-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
  gap: 8px;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-node {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #888888;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.timeline-step.completed .step-node {
  background: #111111;
  color: #ffffff;
}

.timeline-step.active .step-node {
  background: #b08d57;
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(176, 141, 87, 0.35);
}

.step-label {
  font-size: 11px;
  font-weight: 700;
  color: #777777;
  line-height: 1.35;
}

.timeline-step.completed .step-label,
.timeline-step.active .step-label {
  color: #111111;
}

/* ---------------------------------------------------------
   Cargo Info Box
   --------------------------------------------------------- */
.tracking-cargo-box {
  background: #faf8f5;
  border: 1px solid #ebdcd0;
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.cargo-box-info strong {
  display: block;
  font-size: 14px;
  color: #3d2b1f;
  margin-bottom: 4px;
}

.cargo-box-info span {
  font-size: 12px;
  color: #7a6352;
}

.cargo-code-display {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cargo-code-text {
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 14px;
  font-weight: 800;
  background: #ffffff;
  border: 1px solid #d8c3b3;
  padding: 6px 14px;
  border-radius: 6px;
  color: #111111;
  letter-spacing: 0.05em;
}

.btn-copy-code {
  padding: 7px 14px;
  background: #111111;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-copy-code:hover {
  opacity: 0.85;
}

/* ---------------------------------------------------------
   Ordered Products List (Clickable to Product Pages!)
   --------------------------------------------------------- */
.tracking-products-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-subtitle {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #888888;
  text-transform: uppercase;
}

.tracking-products-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tracking-product-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  background: #fafafa;
  border: 1px solid #eeeeee;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.tracking-product-item:hover {
  background: #ffffff;
  border-color: #111111;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.tracking-product-thumb {
  width: 64px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #eaeaea;
}

.tracking-product-info strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 4px;
}

.tracking-product-info small {
  display: block;
  font-size: 11px;
  color: #777777;
  margin-bottom: 6px;
}

.product-link-hint {
  font-size: 11px;
  font-weight: 700;
  color: #b08d57;
}

.tracking-product-price {
  text-align: right;
  font-size: 14px;
  font-weight: 800;
  color: #111111;
}

/* ---------------------------------------------------------
   Summary & Assistance Bar
   --------------------------------------------------------- */
.tracking-summary-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.tracking-total-block span {
  font-size: 11px;
  color: #888888;
  display: block;
}

.tracking-total-block strong {
  font-size: 22px;
  font-weight: 800;
  color: #111111;
}

.tracking-help-bar {
  background: #111111;
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #ffffff;
}

.help-bar-text h4 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 4px;
  color: #ffffff;
}

.help-bar-text p {
  font-size: 12px;
  color: #aaaaaa;
  margin: 0;
}

.help-bar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-help-whatsapp {
  padding: 10px 18px;
  background: #25d366;
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.btn-help-whatsapp:hover {
  opacity: 0.9;
}

.btn-help-mail {
  padding: 10px 16px;
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-help-mail:hover {
  border-color: #ffffff;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 768px) {
  .tracking-steps {
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: flex-start;
  }

  .timeline-step {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    text-align: left;
  }

  .step-node {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .tracking-help-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .help-bar-actions {
    width: 100%;
    flex-direction: column;
  }

  .btn-help-whatsapp,
  .btn-help-mail {
    text-align: center;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
}

@media (max-width: 600px) {
  .tracking-page-container {
    padding: 24px 14px 60px;
  }

  .tracking-hero h1 {
    font-size: 28px;
  }

  .tracking-form {
    flex-direction: column;
  }

  .tracking-submit-btn {
    width: 100%;
  }

  .tracking-result-card {
    padding: 20px 16px;
    border-radius: 16px;
  }
}
