﻿/* ===== CART PAGE ===== */

.cart-container {
    max-width: 1100px;
    margin: 60px auto;
    background: #fff;
    padding: 40px;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
}

/* title */
.cart-title {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 30px;
}

/* table */
.cart-table {
    width: 100%;
    border-collapse: collapse;
}

    .cart-table th {
        text-align: left;
        font-size: 14px;
        color: #6e6e73;
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
    }

    /* row */
    .cart-table td {
        padding: 20px 0;
        border-bottom: 1px solid #f0f0f0;
    }

/* product */
.cart-product {
    display: flex;
    align-items: center;
    gap: 20px;
}

    .cart-product img {
        width: 80px;
        border-radius: 10px;
    }

/* name */
.cart-product-name {
    font-size: 16px;
    font-weight: 500;
}

/* price */
.cart-price {
    font-size: 16px;
    font-weight: 500;
}

/* quantity */
.cart-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: 0.2s;
}

    .quantity-btn:hover {
        background: #f5f5f7;
    }

/* remove */
.cart-remove {
    color: red;
    font-size: 14px;
    text-decoration: none;
}

    .cart-remove:hover {
        text-decoration: underline;
    }

/* footer */
.cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

/* total */
.cart-total {
    font-size: 20px;
    font-weight: 600;
}

/* checkout button */
.checkout-btn {
    padding: 12px 24px;
    border-radius: 999px;
    background: #0071e3;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

    .checkout-btn:hover {
        background: #005bb5;
    }
.cart-container {
    transition: 0.3s;
}

    .cart-container:hover {
        box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    }

/*MyOrders*/
.orders-container {
    max-width: 900px;
    margin: 40px auto;
}

.order-card {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* header */
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* status */
.status {
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 14px;
}

    .status.Pending {
        background: #fff3cd;
        color: #856404;
    }

    .status.Shipping {
        background: #d1ecf1;
        color: #0c5460;
    }

    .status.Done {
        background: #d4edda;
        color: #155724;
    }

    .status.Cancelled {
        background: #f8d7da;
        color: #721c24;
    }

/* items */
.order-items {
    margin-top: 10px;
    padding-left: 18px;
}

/* cancel reason */
.cancel-reason {
    margin-top: 12px;
    padding: 10px;
    background: #fff0f0;
    border-left: 4px solid red;
    border-radius: 6px;
    color: #b30000;
}

/* cancel form */
.cancel-form {
    margin-top: 12px;
}

    .cancel-form select,
    .cancel-form input {
        width: 100%;
        padding: 6px;
        margin-top: 6px;
        border-radius: 6px;
        border: 1px solid #ccc;
    }

.btn-cancel {
    margin-top: 8px;
    background: red;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

    .btn-cancel:hover {
        background: darkred;
    }

.admin-actions a {
    margin-left: 8px;
    text-decoration: none;
    padding: 5px 8px;
    border-radius: 6px;
    background: #f5f5f7;
}

    .admin-actions a:hover {
        background: #e5e5e7;
    }
.status {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 500;
}

    /* Pending */
    .status.Pending {
        background: #fff3cd;
        color: #856404;
    }

    /* Shipping */
    .status.Shipping {
        background: #cce5ff;
        color: #004085;
    }

    /* Done */
    .status.Done {
        background: #d4edda;
        color: #155724;
    }
.btn-cancel {
    background: red;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    margin-top: 8px;
}

.cancel-form {
    margin-top: 10px;
}

    .cancel-form select,
    .cancel-form input {
        width: 100%;
        padding: 6px;
        margin-top: 5px;
    }

.cancel-reason {
    color: red;
    margin-top: 10px;
}
.order-card {
    background: #fff;
    padding: 18px 22px;
    margin: 20px auto;
    border-radius: 14px;
    max-width: 900px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

/* HEADER FLEX */
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    /* LEFT INFO */
    .order-header div {
        line-height: 1.6;
    }

/* STATUS BADGE */
.status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

    /* COLORS */
    .status.Pending {
        background: #fff3cd;
        color: #856404;
    }

    .status.Shipping {
        background: #d0e7ff;
        color: #0b5ed7;
    }

    .status.Done {
        background: #d4edda;
        color: #155724;
    }

    .status.Cancelled {
        background: #f8d7da;
        color: #721c24;
    }

/* ITEM LIST */
.order-items {
    margin-top: 10px;
    padding-left: 18px;
    font-size: 15px;
}

/* NÚT ĐÃ NHẬN */
.btn-received {
    display: inline-block;
    margin-top: 12px;
    background: #28a745;
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

    .btn-received:hover {
        background: #218838;
    }

/* NÚT HỦY */
.btn-cancel {
    margin-top: 10px;
    background: #dc3545;
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    border: none;
}

/* LÝ DO HỦY */
.cancel-reason {
    margin-top: 12px;
    padding: 10px;
    background: #fff0f0;
    border-left: 4px solid #dc3545;
    border-radius: 6px;
    color: #b30000;
}
/* =========================================================
   MOMO PAYMENT
========================================================= */

.momo-container {
    max-width: 900px;
    margin: 40px auto;
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.momo-header {
    background: #ae2070;
    color: #fff;
    padding: 18px 25px;
    border-radius: 14px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
}

.momo-content {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.qr-box {
    border: 3px solid #ae2070;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    background: #fff8fc;
}

    .qr-box img {
        width: 260px;
        border-radius: 14px;
    }

.payment-info {
    flex: 1;
}

    .payment-info h3 {
        font-size: 28px;
        margin-bottom: 20px;
        color: #111;
    }

    .payment-info p {
        margin-bottom: 14px;
        font-size: 17px;
        color: #444;
    }

    .payment-info strong {
        color: #111;
    }

.payment-amount {
    font-size: 34px;
    font-weight: 700;
    color: #ae2070;
    margin: 20px 0;
}

.payment-note {
    background: #fff4d7;
    padding: 16px;
    border-radius: 12px;
    margin: 20px 0;
    color: #7a5a00;
    font-weight: 500;
}

.confirm-btn {
    display: inline-block;
    padding: 15px 30px;
    background: #00a651;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}

    .confirm-btn:hover {
        background: #008a43;
        transform: translateY(-2px);
    }



/* =========================================================
   ORDER PAGE
========================================================= */

.order-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.order-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 35px;
    color: #111;
}

.order-card {
    background: #fff;
    border-radius: 18px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
}

.order-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.order-id {
    font-size: 20px;
    font-weight: 700;
    color: #111;
}

.order-date {
    color: #777;
    margin-top: 5px;
}

.order-status {
    font-size: 16px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 30px;
}

.status-pending {
    background: #fff4d7;
    color: #b77900;
}

.status-verifying {
    background: #eaf3ff;
    color: #0066cc;
}

.status-shipping {
    background: #eef9f0;
    color: #008f39;
}

.status-cancelled {
    background: #ffe9e9;
    color: #d10000;
}

.status-completed {
    background: #f0e8ff;
    color: #6d28d9;
}

.order-product {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 25px 0;
}

    .order-product img {
        width: 100px;
        border-radius: 14px;
        background: #f5f5f7;
        padding: 10px;
    }

.order-product-name {
    font-size: 24px;
    font-weight: 700;
    color: #111;
}

.order-product-price {
    font-size: 28px;
    font-weight: 700;
    color: #e60023;
    margin-top: 10px;
}

.order-total {
    margin-top: 20px;
    font-size: 22px;
    font-weight: 700;
    color: #111;
}

    .order-total span {
        color: #e60023;
    }

.cancel-reason {
    margin-top: 15px;
    padding: 15px;
    background: #fff1f1;
    border-radius: 12px;
    color: #c10000;
    font-weight: 500;
}

.pay-btn {
    display: inline-block;
    margin-top: 20px;
    background: #ae2070;
    color: #fff;
    padding: 14px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

    .pay-btn:hover {
        background: #8d185a;
        transform: translateY(-2px);
    }
.profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 55px;
    padding: 0 24px;
    border-radius: 40px;
    background: #0071e3;
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: 0.3s;
}

    .profile-btn:hover {
        background: #0058b0;
        transform: translateY(-3px);
    }
.logout-btn {
    background: #ff3b30;
}

    .logout-btn:hover {
        background: #d92c23;
    }
.admin-wrapper {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

    .admin-header h2 {
        font-size: 42px;
        font-weight: 700;
        color: #111;
    }

.btn-add {
    background: #0071e3;
    color: #fff;
    padding: 14px 24px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

    .btn-add:hover {
        background: #0058b0;
        transform: translateY(-2px);
    }

.admin-card {
    background: #fff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

    .admin-table thead {
        background: #f5f5f7;
    }

    .admin-table th {
        padding: 18px;
        text-align: left;
        font-size: 16px;
        color: #666;
        border-bottom: 1px solid #e5e5e5;
    }

    .admin-table td {
        padding: 20px 18px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 17px;
    }

    .admin-table tr:hover {
        background: #fafafa;
    }

.product-name {
    font-weight: 600;
    color: #111;
}

.product-price {
    color: #ff3b30;
    font-weight: 700;
}

.action-group {
    display: flex;
    gap: 12px;
}

.action-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    transition: 0.3s;
}

    .action-btn.edit {
        background: #e8f1ff;
        color: #0071e3;
    }

    .action-btn.delete {
        background: #ffe9e7;
        color: #ff3b30;
    }

    .action-btn:hover {
        transform: scale(1.08);
    }
.admin-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-btn {
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: 0.3s;
}

    .admin-btn:hover {
        transform: translateY(-2px);
    }

    .admin-btn.verifying {
        background: #0a84ff;
    }

    .admin-btn.shipping {
        background: #ff9f0a;
    }

    .admin-btn.complete {
        background: #34c759;
    }

    .admin-btn.cancel {
        background: #ff3b30;
    }