/* ================================================
   ALHIDAYA — Styles Page Suivi Commande
   ================================================ */

/* ================================================
   WRAPPER
   ================================================ */
.suivi-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 0 60px;
}

/* ================================================
   HEADER
   ================================================ */
.suivi-header {
    text-align: center;
    margin-bottom: 32px;
}

.suivi-titre {
    font-family: 'Cormorant Garamond', serif;
    font-size: 38px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.suivi-desc {
    font-size: 14px;
    color: var(--text-muted);
}

/* ================================================
   SEARCH
   ================================================ */
.suivi-search-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 28px;
}

.suivi-search-row {
    display: flex;
    gap: 12px;
}

.suivi-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.suivi-search-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 15px;
}

.suivi-input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border: 1px solid var(--border);
    border-radius: 9px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.15s;
}

.suivi-input:focus { border-color: var(--teal); }

.suivi-btn {
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.suivi-btn:hover { opacity: 0.88; }

/* ================================================
   RESULTAT
   ================================================ */
.suivi-result {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

/* Header résultat */
.suivi-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 12px;
}

.suivi-result-num {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
}

.suivi-result-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Badges statut */
.suivi-statut-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
}

.statut-attente { background: var(--gold-light); color: #8a5c00; }
.statut-confirmee { background: #e8f2fe; color: #1e4d7b; }
.statut-preparation { background: #fff3e0; color: #e65100; }
.statut-expediee { background: var(--teal-light); color: var(--teal-dark); }
.statut-livree { background: #eafde8; color: #1a6b1a; }
.statut-annulee { background: #fde8e8; color: #e53e3e; }

/* ================================================
   BARRE PROGRESSION
   ================================================ */
.suivi-progress {
    padding: 32px 24px;
    border-bottom: 1px solid var(--border);
}

.progress-track {
    position: relative;
}

.progress-line {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    z-index: 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--teal), var(--teal-dark));
    border-radius: 2px;
    transition: width 0.5s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.p-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.p-step-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    transition: all 0.3s;
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--border);
}

.p-step.done .p-step-dot {
    background: var(--teal);
    box-shadow: 0 0 0 2px var(--teal);
}

.p-step.current .p-step-dot {
    background: white;
    color: var(--teal);
    box-shadow: 0 0 0 2px var(--teal);
    border-color: var(--teal);
}

.p-step-label {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    font-weight: 500;
}

.p-step.done .p-step-label,
.p-step.current .p-step-label {
    color: var(--text);
}

/* ================================================
   DETAILS GRID
   ================================================ */
.suivi-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-bottom: 1px solid var(--border);
}

.suivi-detail-card {
    padding: 20px 24px;
}

.suivi-detail-card:first-child {
    border-right: 1px solid var(--border);
}

.suivi-detail-titre {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.suivi-detail-titre i { color: var(--teal); }

.suivi-detail-val {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 4px;
}

.suivi-detail-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ================================================
   ARTICLES
   ================================================ */
.suivi-articles { padding: 20px 24px; }

.suivi-articles-titre {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.suivi-article {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--warm-gray);
}

.suivi-article:last-of-type {
    border-bottom: none;
}

.suivi-article-img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: #fafafa;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4px;
    flex-shrink: 0;
}

.suivi-article-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.suivi-article-img i {
    font-size: 24px;
    color: var(--border);
}

.suivi-article-infos { flex: 1; min-width: 0; }

.suivi-article-cat {
    font-size: 10px;
    color: var(--teal);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 3px;
}

.suivi-article-nom {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suivi-article-qty {
    font-size: 12px;
    color: var(--text-muted);
}

.suivi-article-prix {
    font-size: 15px;
    font-weight: 700;
    color: var(--teal-dark);
    flex-shrink: 0;
}

/* Total */
.suivi-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    border-top: 1px solid var(--border);
    margin-top: 8px;
}
.suivi-sous-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-muted);
    border-top: 1px solid var(--warm-gray);
}

.suivi-total-val {
    font-size: 20px;
    font-weight: 700;
    color: var(--teal-dark);
}

/* ================================================
   NOT FOUND
   ================================================ */
.suivi-not-found {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
}

.suivi-not-found i {
    font-size: 56px;
    color: var(--border);
    display: block;
    margin-bottom: 16px;
}

.suivi-not-found h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text);
}

.suivi-not-found p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 576px) {
    .suivi-search-row { flex-direction: column; }
    .suivi-details-grid { grid-template-columns: 1fr; }
    .suivi-detail-card:first-child { border-right: none; border-bottom: 1px solid var(--border); }
    .suivi-titre { font-size: 28px; }
    .progress-steps { gap: 0; }
    .p-step-label { font-size: 10px; }
}