/* =========================================================
   ORDERS PAGE
========================================================= */

.orders-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.orders-page-header > div span {
    color: #ff3d81;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.orders-page-header h1 {
    font-size: 25px;
    font-weight: 600;
    margin: 4px 0;
}

.orders-page-header p {
    color: #888;
    font-size: 10px;
    margin: 0;
}


/* =========================================================
   ORDER CARD
========================================================= */

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
}


/* =========================================================
   HEADER
========================================================= */

.order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

.order-main-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff1f6;
    color: #ff3d81;
    font-size: 17px;
}

.order-main-info > div:last-child span,
.order-main-info > div:last-child strong {
    display: block;
}

.order-label {
    color: #999;
    font-size: 8px;
    letter-spacing: .5px;
}

.order-main-info strong {
    font-size: 11px;
}

.order-date {
    text-align: right;
}

.order-date span,
.order-date strong {
    display: block;
}

.order-date span {
    color: #999;
    font-size: 8px;
}

.order-date strong {
    font-size: 10px;
    margin-top: 3px;
}


/* =========================================================
   BODY
========================================================= */

.order-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px;
}

.order-product-preview {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-product-image {
    width: 65px;
    height: 75px;
    border-radius: 7px;
    overflow: hidden;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-product-image i {
    color: #aaa;
}

.order-product-summary strong,
.order-product-summary span,
.order-product-summary small {
    display: block;
}

.order-product-summary strong {
    font-size: 11px;
}

.order-product-summary span {
    font-size: 10px;
    margin-top: 5px;
}

.order-product-summary small {
    color: #888;
    font-size: 8px;
    margin-top: 4px;
}


/* =========================================================
   STATUS
========================================================= */

.order-status-area {
    text-align: right;
}

.order-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 600;
}

.order-status i {
    font-size: 6px;
}

.status-pending {
    background: #fff7ed;
    color: #c2410c;
}

.status-confirmed {
    background: #eff6ff;
    color: #2563eb;
}

.status-processing {
    background: #f5f3ff;
    color: #7c3aed;
}

.status-shipped {
    background: #ecfeff;
    color: #0891b2;
}

.status-delivered {
    background: #f0fdf4;
    color: #15803d;
}

.status-cancelled {
    background: #fef2f2;
    color: #dc2626;
}

.payment-status {
    display: block;
    color: #888;
    font-size: 8px;
    margin-top: 7px;
}

.payment-status strong {
    color: #555;
}


/* =========================================================
   FOOTER
========================================================= */

.order-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 18px;
    border-top: 1px solid #eee;
}

.order-view-button,
.order-cancel-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 600;
}

.order-view-button {
    background: #ff3d81;
    color: #fff;
}

.order-view-button:hover {
    background: #e91e68;
    color: #fff;
}

.order-cancel-button {
    background: #fff;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.order-cancel-button:hover {
    background: #fef2f2;
}


/* =========================================================
   EMPTY
========================================================= */

.orders-empty {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    text-align: center;
    padding: 75px 20px;
}

.orders-empty-icon {
    width: 75px;
    height: 75px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff1f6;
    color: #ff3d81;
    font-size: 30px;
}

.orders-empty h3 {
    font-size: 18px;
}

.orders-empty p {
    max-width: 450px;
    margin: 8px auto 20px;
    color: #888;
    font-size: 10px;
    line-height: 1.7;
}

.orders-shop-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 40px;
    padding: 0 17px;
    background: #ff3d81;
    color: #fff;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 600;
}

.orders-shop-button:hover {
    background: #e91e68;
    color: #fff;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 576px) {

    .orders-page-header {
        align-items: flex-start;
    }

    .orders-page-header > .orders-shop-button {
        display: none;
    }

    .order-card-header {
        align-items: flex-start;
    }

    .order-card-body {
        align-items: flex-start;
        flex-direction: column;
    }

    .order-status-area {
        width: 100%;
        text-align: left;
    }

    .order-card-footer {
        justify-content: space-between;
    }

}