.order-view-section {
    padding: 80px 20px;
    background-color: #fff;
    animation: fadeInUp 1s ease-in-out;
}

.order-container {
    max-width: 800px;
    margin: 0 auto;
}

.order-header h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
}

.order-date {
    font-size: 14px;
    color: var(--color-secondary);
}

/* =====================================
   ORDER STATUS COLORS (FULL LIST)
===================================== */

/* Base style */
.order-status {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 8px;
}

/* Delivered */
.order-status.delivered {
    background-color: rgba(0, 128, 0, 0.1);
    color: green;
}

/* Pending */
.order-status.pending {
    background-color: rgba(255, 165, 0, 0.1);
    color: orange;
}

/* Confirmed */
.order-status.confirmed {
    background-color: rgba(0, 123, 255, 0.15);
    color: #007bff;
}

/* Processing */
.order-status.processing {
    background-color: rgba(0, 184, 255, 0.15);
    color: #00b8ff;
}

/* Shipped */
.order-status.shipped {
    background-color: rgba(74, 144, 226, 0.15);
    color: #4a90e2;
}

/* Out for Delivery */
.order-status.out-for-delivery {
    background-color: rgba(138, 43, 226, 0.15);
    color: #8a2be2;
}

/* Cancelled */
.order-status.cancelled,
.order-status.canceled {
    background-color: rgba(255, 0, 0, 0.1);
    color: red;
}

/* Returned */
.order-status.returned {
    background-color: rgba(255, 69, 0, 0.15);
    color: #ff4500;
}

/* Refunded */
.order-status.refunded {
    background-color: rgba(155, 89, 182, 0.15);
    color: #9b59b6;
}

/* Failed */
.order-status.failed {
    background-color: rgba(192, 57, 43, 0.15);
    color: #c0392b;
}

/* On Hold */
.order-status.on-hold {
    background-color: rgba(127, 140, 141, 0.15);
    color: #7f8c8d;
}

/* Order Items */
.order-items {
    margin-top: 40px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    animation: fadeIn 0.6s ease-in-out;
}

.order-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.item-info h4 {
    font-size: 16px;
    font-weight: 600;
}

.item-info p {
    font-size: 14px;
    margin: 5px 0;
}

.item-info span {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-black);
}

/* Billing & Shipping Info */
.order-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.billing-info,
.shipping-info {
    background: #fdfdfd;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    animation: fadeIn 1s ease-in-out;
}

.billing-info p,
.shipping-info p {
    font-size: 14px;
    margin-bottom: 10px;
}

/* Total */
.order-total {
    margin-top: 40px;
    text-align: right;
}

.order-total h3 {
    font-size: 20px;
    font-weight: 700;
}

.order-total span {
    color: var(--color-primary);
}

/* Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .order-header h2 {
        font-size: 22px;
    }

    .section-title {
        font-size: 18px;
    }

    .order-item img {
        width: 60px;
        height: 60px;
    }

    .item-info h4 {
        font-size: 14px;
    }

    .order-total h3 {
        font-size: 18px;
    }
}
