﻿/*.tracking-page {
    max-width: 900px;
    margin: 60px auto;
}

.tracking-search {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.order-card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.timeline {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    position: relative;
}

    .timeline::before {
        content: '';
        position: absolute;
        top: 18px;
        left: 0;
        right: 0;
        height: 4px;
        background: #ddd;
    }

.step {
    text-align: center;
    z-index: 2;
}

.circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ddd;
    line-height: 36px;
    color: white;
    margin: auto;
}

.step.done .circle {
    background: #28a745;
}

.step.active .circle {
    background: #007bff;
}

.chat-box {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.messages {
    max-height: 300px;
    overflow: auto;
    margin-bottom: 15px;
}

.message {
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    max-width: 70%;
}

    .message.user {
        background: #e3f2fd;
        margin-left: auto;
    }

    .message.admin {
        background: #f1f1f1;
    }

.chat-input {
    display: flex;
    gap: 10px;
}
.order-items {
    margin-top: 20px;
    border-top: 1px dashed #eee;
    padding-top: 15px;
}

.item-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-bottom: 1px solid #f9f9f9;
}

    .item-row:last-child {
        border-bottom: none;
    }

.item-info {
    flex-grow: 1;
}

.item-name {
    font-weight: bold;
    display: block;
}

.item-price {
    color: #666;
    font-size: 0.9em;
}

.item-qty {
    background: #f1f1f1;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85em;
}
*/

/* ---------- کانتینر اصلی ---------- */
.tracking-container {
    max-width: 450px; /* هماهنگ با عرض فروشگاه */
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    min-height: 100vh;
}

.tracking-header {
    text-align: center;
    margin-bottom: 30px;
}

    .tracking-header h1 {
        font-size: 22px;
        color: #000;
        margin-bottom: 8px;
    }

    .tracking-header p {
        font-size: 13px;
        color: #777;
    }

/* ---------- بخش جستجو ---------- */
.tracking-search-box {
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    margin-bottom: 30px;
}

.input-group {
    position: relative;
    margin-bottom: 15px;
}

.tracking-input {
    width: 100%;
    padding: 14px 45px 14px 15px;
    border: 1.5px solid #eee;
    border-radius: 16px;
    font-family: 'Vazir';
    font-size: 14px;
    box-sizing: border-box;
    transition: 0.3s;
}

    .tracking-input:focus {
        border-color: #D4AF37;
        outline: none;
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
    }

.input-group i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #D4AF37;
    font-style: normal;
}

.btn-track {
    width: 100%;
    background: #000;
    color: #D4AF37;
    border: none;
    padding: 16px;
    border-radius: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

    .btn-track:hover {
        background: #222;
        transform: translateY(-2px);
    }

/* ---------- کارت سفارش ---------- */
.order-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

/* ---------- تایم‌لاین (وضعیت سفارش) ---------- */
.timeline {
    display: flex;
    justify-content: space-between;
    margin: 40px 0 20px;
    position: relative;
}

    .timeline::before {
        content: '';
        position: absolute;
        top: 15px;
        left: 5%;
        right: 5%;
        height: 3px;
        background: #f0f0f0;
        z-index: 1;
    }

.step {
    text-align: center;
    z-index: 2;
    flex: 1;
}

.circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #f0f0f0;
    line-height: 28px;
    color: #ccc;
    margin: auto;
    font-size: 12px;
    font-weight: bold;
    transition: 0.3s;
}

.step-label {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    color: #999;
    font-weight: bold;
}

/* وضعیت فعال و انجام شده */
.step.done .circle {
    background: #D4AF37;
    border-color: #D4AF37;
    color: #000;
}

.step.active .circle {
    border-color: #000;
    color: #000;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.step.done .step-label, .step.active .step-label {
    color: #000;
}

/* ---------- چت و پیام‌ها ---------- */
.chat-box {
    background: #f9f9f9;
    border-radius: 20px;
    padding: 15px;
    border: 1px solid #eee;
}

.messages {
    max-height: 250px;
    overflow-y: auto;
    padding: 10px;
}

.message {
    padding: 10px 14px;
    border-radius: 15px;
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.6;
    max-width: 85%;
}

    .message.user {
        background: #000;
        color: #D4AF37;
        margin-right: auto;
        border-bottom-left-radius: 2px;
    }

    .message.admin {
        background: #fff;
        color: #333;
        margin-left: auto;
        border: 1px solid #eee;
        border-bottom-right-radius: 2px;
    }

/* ---------- لیست محصولات سفارش ---------- */
.order-items {
    margin-top: 20px;
    background: #fff;
    border-radius: 15px;
}

.item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.item-name {
    font-weight: bold;
    font-size: 14px;
    color: #222;
}

.item-qty {
    font-size: 12px;
    color: #D4AF37;
    background: #000;
    padding: 2px 8px;
    border-radius: 8px;
}

.item-row {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: 0.3s;
}

    .item-row:hover {
        background: #f8f9fa;
    }
