/* ==========================================
   VIEW ORDERS
========================================== */

.view-orders-page {
    padding: 70px 0;
    background: #f8faf8;
    min-height: 70vh;
}

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
}

.orders-header h1 {
    font-size: 34px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

.orders-header p {
    color: #777;
    margin: 0;
}

.continue-shopping-btn {
    background: #2E7D32;
    color: #fff;
    padding: 12px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
}

.continue-shopping-btn:hover {
    background: #1B5E20;
    color: #fff;
}


/* Order Card */

.order-card {
    background: #fff;
    border-radius: 18px;
    margin-bottom: 25px;
    box-shadow: 0 8px 30px rgba(0,0,0,.07);
    overflow: hidden;
    border: 1px solid #eee;
}

.order-card-header {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 20px;
    padding: 25px;
    border-bottom: 1px solid #eee;
}

.order-label {
    display: block;
    color: #888;
    font-size: 13px;
    margin-bottom: 6px;
}

.order-card-header h4 {
    margin: 0;
    font-size: 18px;
    color: #222;
}

.order-card-header p {
    margin: 0;
    color: #444;
}


/* Status */

.order-status {
    display: inline-block;
    padding: 6px 13px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.order-status.whatsapp-pending {
    background: #FFF8E1;
    color: #B78103;
    border: 1px solid #FFE082;
    font-weight: 700;
}

.order-status.success {
    background: #dff5e3;
    color: #198754;
}

.order-status.warning {
    background: #fff3cd;
    color: #856404;
}

.order-status.info {
    background: #dff3fa;
    color: #087990;
}

.order-status.danger {
    background: #f8d7da;
    color: #842029;
}

.order-status.secondary {
    background: #e9ecef;
    color: #555;
}


/* Details */

.order-card-body {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 25px;
}

.order-detail {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-detail i {
    width: 42px;
    height: 42px;
    background: #eef7ef;
    color: #2E7D32;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-detail span {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 3px;
}

.order-detail strong {
    font-size: 14px;
    color: #333;
}


/* Footer */

.order-card-footer {
    padding: 18px 25px;
    background: #fafafa;
    border-top: 1px solid #eee;
    display: flex;
    gap: 12px;
}

.btn-whatsapp-order,
.view-order-btn,
.invoice-btn {
    padding: 10px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-whatsapp-order {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

.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;
}

.view-order-btn {
    background: #2E7D32;
    color: #fff;
}

.view-order-btn:hover {
    background: #1B5E20;
    color: #fff;
}

.invoice-btn {
    border: 1px solid #2E7D32;
    color: #2E7D32;
    background: #fff;
}


/* Empty */

.empty-orders {
    background: #fff;
    text-align: center;
    padding: 80px 20px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,.05);
}

.empty-orders i {
    font-size: 70px;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-orders h2 {
    margin-bottom: 10px;
}

.empty-orders p {
    color: #777;
    margin-bottom: 25px;
}

.empty-orders a {
    display: inline-block;
    background: #2E7D32;
    color: #fff;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
}


/* Mobile */

@media (max-width: 768px) {

    .orders-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .order-card-header {
        grid-template-columns: 1fr;
    }

    .order-card-body {
        grid-template-columns: 1fr 1fr;
    }

}

@media (max-width: 500px) {

    .order-card-body {
        grid-template-columns: 1fr;
    }

    .order-card-footer {
        flex-direction: column;
    }

}