/* ==========================================================================
   FlashFit — suivi de commande
   ========================================================================== */

/* --- Recherche ----------------------------------------------------------- */
.track__form { display: flex; gap: 10px; flex-wrap: wrap; }
.track__form .ff-input { flex: 1 1 240px; text-transform: uppercase; letter-spacing: .04em; }
.track__err { font-size: 13px; color: #B91C1C; margin: 12px 0 0; }

.track__help { margin-top: 34px; font-size: 13px; color: var(--muted); }
.track__help .ff-link { margin-left: 6px; }

/* --- Résultat ------------------------------------------------------------ */
.ord {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 32px;
}

.ord__head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.ord__num-label {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.ord__num {
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 20px; font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink-soft);
}

.ord__pill {
  background: var(--blue-wash);
  color: var(--blue);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 12px; font-weight: 600;
  white-space: nowrap;
}
.ord__pill.is-done { background: #DCFCE7; color: #15803D; }

/* Produit */
.ord__product {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.ord__img {
  width: 62px; height: 62px; flex-shrink: 0;
  background: #FAFAFA;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: grid; place-items: center;
}
.ord__img img { width: 100%; height: 100%; object-fit: contain; }
.ord__img svg { width: 22px; height: 22px; stroke: var(--faint); fill: none; stroke-width: 1.6; }

.ord__info { flex: 1; min-width: 0; }
.ord__nm { font-size: 14px; font-weight: 600; color: var(--ink-soft); margin-bottom: 3px; }
.ord__meta { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.ord__price { font-family: 'Sora', system-ui, sans-serif; font-size: 17px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }

/* Progression */
.ord__steps { padding: 26px 24px; }
.ord__steps-title {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 22px;
}

.step { display: flex; gap: 16px; }
.step__col { display: flex; flex-direction: column; align-items: center; }

.step__dot {
  width: 30px; height: 30px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--faint);
}
.step__dot svg { width: 14px; height: 14px; }
.step.is-done .step__dot { background: var(--blue); border-color: var(--blue); color: #fff; }

.step__seg { width: 1px; flex: 1; min-height: 26px; background: var(--line); margin: 4px 0; }
.step.is-done .step__seg { background: var(--blue); }

.step__body { padding-bottom: 22px; }
.step:last-child .step__body { padding-bottom: 0; }
.step__lbl { font-size: 13.5px; font-weight: 600; color: var(--faint); margin-bottom: 3px; }
.step.is-done .step__lbl { color: var(--ink-soft); }
.step__date { font-size: 12px; color: var(--muted); }

/* Détails */
.ord__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}
.ord__cell { background: var(--surface); padding: 18px 24px; }
.ord__cell.full { grid-column: 1 / -1; }
.ord__cell label {
  display: block;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.ord__cell span { font-size: 13.5px; color: var(--ink-soft); overflow-wrap: anywhere; }

/* Chargement */
.track__loading {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 50px 20px;
  font-size: 13.5px; color: var(--muted);
}
.track__spin {
  width: 20px; height: 20px;
  border: 2px solid var(--line);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 560px) {
  .ord__grid { grid-template-columns: 1fr; }
  .ord__product { flex-wrap: wrap; }
}
