/* =========================================================
   SOULFRESH - MY ORDERS PAGE
========================================================= */

.orders-page {
    padding: 70px 0 90px;
    background: #f7faf7;
    min-height: 70vh;
}

/* =========================================
   HEADER
========================================= */

.orders-header {
    margin-bottom: 35px;
}

.orders-header h1 {
    margin: 0 0 8px;
    font-size: 36px;
    font-weight: 700;
    color: #183b20;
}

.orders-header p {
    margin: 0;
    color: #777;
    font-size: 15px;
}


/* =========================================
   ORDERS LIST
========================================= */

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* =========================================
   ORDER CARD
========================================= */

.order-card {
    background: #ffffff;
    border: 1px solid #e8eee8;
    border-radius: 18px;
    padding: 24px 26px;
    box-shadow: 0 8px 30px rgba(38, 80, 45, 0.07);
    transition: all 0.3s ease;
}

.order-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(38, 80, 45, 0.12);
}


/* =========================================
   TOP SECTION
========================================= */

.order-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf1ed;
}

.order-label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-card-top h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #222;
}


/* =========================================
   STATUS
========================================= */

.order-status {
    display: inline-flex;
    align-items: center;
    padding: 7px 15px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}


/* WhatsApp Confirmation Pending */

.status-whatsapp-pending {
    background: #FFF8E1;
    color: #B78103;
    border: 1px solid #FFE082;
    font-weight: 700;
}


/* Pending */

.status-pending {
    background: #fff4d6;
    color: #9a6900;
}


/* Processing */

.status-processing {
    background: #e8f1ff;
    color: #2865b5;
}


/* Shipped */

.status-shipped {
    background: #e5f7f8;
    color: #087b83;
}


/* Delivered */

.status-delivered {
    background: #e7f7ec;
    color: #23813c;
}


/* Cancelled */

.status-cancelled {
    background: #fdeaea;
    color: #c0392b;
}


/* =========================================
   ORDER INFORMATION
========================================= */

.order-card-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 22px 0;
}

.order-card-info div {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.order-card-info span {
    font-size: 12px;
    color: #999;
}

.order-card-info strong {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}


/* =========================================
   BOTTOM
========================================= */

.order-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid #edf1ed;
}

.payment-status {
    font-size: 13px;
    color: #777;
}

.btn-whatsapp-order {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff !important;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
    transition: all 0.3s ease;
}

.btn-whatsapp-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    background: linear-gradient(135deg, #20bd5a, #0e7064);
    color: #fff !important;
}

.btn-whatsapp-order i {
    font-size: 16px;
}

.view-order-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2e7d32;
    color: #fff !important;
    text-decoration: none;
    padding: 11px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-order-btn:hover {
    background: #1b5e20;
    transform: translateX(2px);
}

.view-order-btn i {
    font-size: 11px;
}


/* =========================================
   EMPTY ORDERS
========================================= */

.empty-orders {
    background: #fff;
    border-radius: 20px;
    padding: 70px 20px;
    text-align: center;
    border: 1px solid #e9eee9;
    box-shadow: 0 8px 30px rgba(38, 80, 45, 0.06);
}

.empty-orders i {
    font-size: 65px;
    color: #cfdacf;
    margin-bottom: 20px;
}

.empty-orders h3 {
    margin-bottom: 8px;
    color: #333;
    font-size: 23px;
}

.empty-orders p {
    color: #888;
    margin-bottom: 25px;
}

.empty-orders .shop-btn {
    display: inline-block;
    background: #2e7d32;
    color: #fff;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s ease;
}

.empty-orders .shop-btn:hover {
    background: #1b5e20;
}


/* =========================================
   RESPONSIVE - TABLET
========================================= */

@media (max-width: 991px) {

    .orders-page {
        padding: 50px 0 70px;
    }

    .orders-header h1 {
        font-size: 30px;
    }

    .order-card-info {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 20px;
    }

}


/* =========================================
   RESPONSIVE - MOBILE
========================================= */

@media (max-width: 576px) {

    .orders-page {
        padding: 40px 0 60px;
    }

    .orders-header {
        margin-bottom: 25px;
    }

    .orders-header h1 {
        font-size: 27px;
    }

    .orders-header p {
        font-size: 14px;
    }

    .order-card {
        padding: 18px;
        border-radius: 15px;
    }

    .order-card-top {
        align-items: flex-start;
        gap: 15px;
    }

    .order-card-top h4 {
        font-size: 15px;
    }

    .order-status {
        font-size: 11px;
        padding: 6px 11px;
        white-space: nowrap;
    }

    .order-card-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px 12px;
        padding: 20px 0;
    }

    .order-card-info span {
        font-size: 11px;
    }

    .order-card-info strong {
        font-size: 12px;
    }

    .order-card-bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .view-order-btn {
        justify-content: center;
        width: 100%;
    }

    .payment-status {
        display: block;
        text-align: center;
    }

}