/* ==========================================================================
   Order Tracking & Order Display Card (Dùng chung cho Tra cứu & Lịch sử đơn)
   ========================================================================== */

.tracking-page {
    padding: 2.5rem 0 4rem;
}

.tracking-hero {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: #ffffff;
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

.tracking-hero h1 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.search-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2.5rem;
}

/* Thẻ hiển thị đơn hàng (Dùng chung) */
.order-result-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 2rem;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.order-result-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.09);
    border-color: #d1d5db;
}

.order-result-header {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.25rem 1.75rem;
}

/* Stepper tiến trình đơn hàng */
.stepper-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin: 1.75rem 0;
    padding: 0;
}

.stepper-container::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 16.6667%;
    right: 16.6667%;
    height: 3px;
    background-color: #e5e7eb;
    z-index: 0;
}

.stepper-progress-bar {
    position: absolute;
    top: 20px;
    left: 16.6667%;
    height: 3px;
    background-color: #10b981;
    z-index: 1;
    transition: width 0.4s ease;
}

.stepper-step {
    position: relative;
    z-index: 2;
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    padding: 0 0.25rem;
}

.stepper-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #f3f4f6;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 1.15rem;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.stepper-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
}

.stepper-step.active .stepper-circle {
    background-color: #111827;
    color: #ffffff;
    border-color: #111827;
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.15);
}

.stepper-step.active .stepper-label {
    color: #111827;
    font-weight: 700;
}

.stepper-step.completed .stepper-circle {
    background-color: #10b981;
    color: #ffffff;
    border-color: #10b981;
}

.stepper-step.completed .stepper-label {
    color: #10b981;
    font-weight: 600;
}

/* Thẻ bảo hành điện tử chính hãng */
.warranty-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #334155;
    position: relative;
    overflow: hidden;
}

.warranty-card::after {
    content: 'E-WARRANTY';
    position: absolute;
    right: -10px;
    bottom: -15px;
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.04);
    pointer-events: none;
    font-weight: bold;
}

.warranty-badge-active {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Ảnh sản phẩm thumbnail trong bảng */
.order-product-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
    transition: transform 0.2s ease;
}

.order-product-thumb:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .tracking-page {
        padding: 1.5rem 0 3rem;
    }

    .tracking-hero {
        padding: 1.75rem 1.25rem;
    }

    .search-card {
        padding: 1.25rem;
    }

    .order-result-header {
        padding: 1rem 1.25rem;
    }

    .stepper-circle {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .stepper-label {
        font-size: 0.75rem;
    }
}
