.track-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    font-size: 14px;
}
.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover {
    color: var(--primary-color);
}
.breadcrumb i {
    font-size: 12px;
    color: var(--text-muted);
}
.breadcrumb span {
    color: var(--primary-color);
    font-weight: 500;
}

/* Header Card */
.track-header {
    text-align: center;
    margin-bottom: 40px;
}
.track-header h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}
.track-header p {
    color: var(--text-muted);
    font-size: 16px;
}

/* Search Card */
.search-card {
    background: var(--bg-light);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    padding: 32px;
    margin-bottom: 32px;
}
.input-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.input-group input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid var(--border-light);
    border-radius: 60px;
    font-family: var(--main-font);
    font-size: 15px;
    transition: all 0.2s;
    background: var(--bg-light);
}
.input-group input:focus {
    outline: none;
    border-color: var(--button-primary);
    box-shadow: 0 0 0 3px rgba(17, 155, 51, 0.1);
}
.input-group input::placeholder {
    color: #bbb;
    font-family: var(--main-font);
}
.search-btn {
    background: var(--button-primary);
    color: white;
    border: none;
    padding: 0 32px;
    border-radius: 60px;
    font-family: var(--main-font);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}
.search-btn:hover {
    background: #0d852b;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.example-hint {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}
.example-hint i {
    margin-right: 6px;
}
.example-order {
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 500;
    text-decoration: underline;
}

/* Order Result Card */
.order-result {
    background: var(--bg-light);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: none;
    animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Status Banner */
.status-banner {
    padding: 24px 32px;
    background: linear-gradient(135deg, var(--bg-muted) 0%, var(--bg-light) 100%);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.order-id-display {
    font-size: 18px;
    font-weight: 600;
}
.order-id-display i {
    color: var(--primary-color);
    margin-right: 8px;
}
.status-badge {
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.status-badge.pending { background: #fff3e0; color: #e67e22; }
.status-badge.processing { background: #fff3e0; color: #e67e22; }
.status-badge.confirmed { background: #e3f2fd; color: #1976d2; }
.status-badge.shipped { background: #e0f2e9; color: var(--success-color); }
.status-badge.delivered { background: #e8f5e9; color: #2e7d32; }
.status-badge.cancelled { background: #ffebee; color: var(--danger-color); }
.status-badge.returned { background: #ffebee; color: var(--danger-color); }

/* Order Details */
.order-details {
    padding: 32px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-light);
}

.detail-block h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.detail-block h3 i {
    color: var(--primary-color);
    width: 24px;
}
.detail-block p {
    font-size: 16px;
    margin-bottom: 6px;
}
.detail-block .label {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 2px;
}

/* Order Items */
.items-section {
    margin-bottom: 28px;
}
.items-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.items-section .item-count-badge {
    background: var(--primary-color);
    color: white;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
.order-table {
    width: 100%;
    border-collapse: collapse;
}
.order-table th {
    text-align: left;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
}
.order-table td {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}
.order-table tr:last-child td {
    border-bottom: none;
}
.product-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}
.product-icon img{
    width: 50px;
    height: 50px;
    background: var(--faded-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
}
.product-details {
    flex: 1;
}
.product-details .product-name {
    font-weight: 500;
    font-size: 16px;
}
.product-details .product-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}
.product-details .product-meta span {
    display: inline-block;
    margin-right: 8px;
}
.product-details .product-meta .tag {
    background: var(--bg-muted);
    padding: 1px 8px;
    border-radius: 12px;
    font-size: 11px;
}

/* Totals */
.totals-card {
    background: var(--bg-muted);
    border-radius: 20px;
    padding: 20px;
    margin-top: 20px;
}
.totals-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 15px;
}
.totals-row.grand-total {
    font-size: 18px;
    font-weight: 700;
    padding-top: 14px;
    margin-top: 8px;
    border-top: 2px solid var(--border-light);
    color: var(--primary-color);
}

/* Timeline / Tracking Progress */
.timeline-section {
    padding: 0 32px 32px 32px;
}
.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 20px;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: var(--border-light);
    z-index: 1;
}
.timeline-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}
.step-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-muted);
    border: 3px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    transition: all 0.3s;
}
.timeline-step.active .step-icon {
    background: var(--button-primary);
    border-color: var(--button-primary);
    color: white;
}
.timeline-step.completed .step-icon {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}
.step-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}
.timeline-step.active .step-label,
.timeline-step.completed .step-label {
    color: var(--primary-color);
    font-weight: 600;
}
.step-date {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Error Message */
.error-card {
    background: #fff5f5;
    border: 1px solid #ffcdd2;
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    color: var(--danger-color);
    margin-top: 20px;
}
.error-card i {
    font-size: 48px;
    margin-bottom: 16px;
}
.error-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

/* Toast */
.toast-msg {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1a1a1a;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 14px;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive */
@media (max-width: 700px) {
    .track-wrapper {
        padding: 24px 16px;
    }
    .track-header h1 {
        font-size: 26px;
    }
    .search-card {
        padding: 24px;
    }
    .input-group {
        flex-direction: column;
    }
    .search-btn {
        justify-content: center;
        padding: 14px;
    }
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .status-banner {
        flex-direction: column;
        text-align: center;
    }
    .timeline {
        flex-direction: column;
        gap: 16px;
    }
    .timeline::before {
        display: none;
    }
    .timeline-step {
        display: flex;
        align-items: center;
        gap: 16px;
        text-align: left;
    }
    .step-icon {
        margin: 0;
    }
    .order-table {
        font-size: 13px;
    }
    .product-cell {
        flex-wrap: wrap;
    }
}