.order-detail-page {
    background: #f8f8f6;
    padding: 60px 0;
}

.order-detail-shell {
    background: #fff;
    border: 1px solid #eceae4;
    border-radius: 24px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
    padding: 32px;
}

.order-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.order-detail-head__eyebrow {
    margin: 0 0 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #222222;
}

.order-detail-head__title {
    margin: 0;
    font-size: 32px;
    color: #fb5d5d;
}

.order-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #eef8f1;
    color: #1f8a4d;
    font-size: 14px;
    font-weight: 700;
    text-transform: capitalize;
}

.order-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
    align-items: start;
}

.order-card,
.info-card,
.timeline-card {
    background: #fff;
    border: 1px solid #eceae4;
    border-radius: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
}

.order-card {
    padding: 22px;
}

.order-card__head {
    margin-bottom: 18px;
}

.order-card__head h2 {
    margin: 0;
    font-size: 24px;
    color: #fb5d5d;
}

.order-products-table-wrap {
    overflow-x: auto;
}

.order-products-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.order-products-table thead th {
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    color: #111;
    padding: 14px 12px;
    border-bottom: 1px solid #d9d9d9;
}

.order-products-table tbody td {
    padding: 16px 12px;
    border-bottom: 1px solid #eceae4;
    vertical-align: top;
    color: #333;
    font-size: 15px;
}

.order-product-thumb img {
    width: 72px;
    height: 92px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.order-product-info h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
    color: #111;
    text-transform: uppercase;
}

.order-product-info p {
    margin: 0 0 4px;
    font-size: 15px;
    color: #444;
    text-transform: uppercase;
}

.order-totals {
    margin-top: 18px;
    border-top: 1px solid #eceae4;
    padding-top: 12px;
}

.order-totals__row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid #f0efeb;
    font-size: 16px;
    color: #444;
}

.order-totals__row--grand {
    font-size: 20px;
    font-weight: 700;
    color: #fb5d5d;
    border-bottom: 0;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.info-card {
    padding: 20px;
}

.info-card h3 {
    margin: 0 0 14px;
    font-size: 24px;
    color: #fb5d5d;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    margin-bottom: 8px;
    font-size: 15px;
    color: #444;
    line-height: 1.6;
}

.timeline-card {
    padding: 22px 20px;
    position: sticky;
    top: 100px;
}

.timeline-card h3 {
    margin: 0 0 18px;
    font-size: 26px;
    color: #fb5d5d;
}

.order-timeline {
    position: relative;
    padding-left: 24px;
}

.order-timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #f0c7cf;
}

.timeline-item {
    position: relative;
    padding: 0 0 24px 12px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -24px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffc7d0;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #f3d5db;
}

.timeline-label {
    font-size: 16px;
    color: #444;
    text-transform: capitalize;
}

.timeline-item.is-complete .timeline-dot {
    background: #fb5d5d;
    box-shadow: 0 0 0 1px #fb5d5d;
}

.timeline-item.is-complete .timeline-label {
    color: #111;
    font-weight: 600;
}

.timeline-item.is-cancel .timeline-dot {
    background: #ef4444;
    box-shadow: 0 0 0 1px #ef4444;
}

.timeline-item.is-cancel .timeline-label {
    color: #ef4444;
    font-weight: 600;
}

@media (max-width: 1199px) {
    .order-info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 991px) {
    .order-detail-layout {
        grid-template-columns: 1fr;
    }

    .timeline-card {
        position: static;
    }

    .order-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .order-detail-page {
        padding: 40px 0;
    }

    .order-detail-shell {
        padding: 18px;
        border-radius: 18px;
    }

    .order-detail-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-detail-head__title {
        font-size: 30px;
    }

    .order-card__head h2,
    .timeline-card h3,
    .info-card h3 {
        font-size: 22px;
    }

    .order-card,
    .info-card,
    .timeline-card {
        border-radius: 16px;
    }

    .order-card {
        padding: 16px;
    }
}

.invoice-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    border: 1px solid #eceae4;
    border-radius: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
    padding: 22px 20px;
    margin-top: 24px;
}

.invoice-card__icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 16px;
    background: #fff4f5;
    color: #ff5d7c;
    display: flex;
    align-items: center;
    justify-content: center;
}

.invoice-card__icon svg {
    width: 28px;
    height: 28px;
    display: block;
}

.invoice-card__content {
    flex: 1;
    min-width: 0;
}

.invoice-card__title {
    margin: 0 0 8px;
    font-size: 24px;
    color: #fb5d5d;
}

.invoice-card__text {
    margin: 0 0 14px;
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

.invoice-card__text--muted {
    margin-bottom: 0;
    color: #777;
    font-weight: 600;
}

.invoice-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    background: #fb5d5d;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: 0.3s ease;
}

.invoice-card__btn:hover {
    color: #fff;
    opacity: 0.92;
}

@media (max-width: 767px) {
    .invoice-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 16px;
        border-radius: 16px;
    }

    .invoice-card__title {
        font-size: 20px;
    }

    .invoice-card__btn {
        width: 100%;
    }
}