/* ===========================
   Order Details
=========================== */

.order-details {
    max-width: 1100px;
    margin: 40px auto 0;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.order-details h2 {
    margin-bottom: 20px;
    font-size: 26px;
    font-weight: 600;
}

.order-details h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 20px;
}


/* ===========================
   Order Info
=========================== */

.order-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px 25px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f7f8fa;
    border-radius: 8px;
}

.order-info p {
    margin: 4px 0;
    font-size: 14px;
}

.order-info b {
    color: #444;
}

/* ===========================
   Table
=========================== */

.order-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.order-items-table th {
    background: #f3f4f6;
    text-align: left;
    padding: 12px;
    font-size: 14px;
    border-bottom: 1px solid #ddd;
}

.order-items-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.order-items-table tr:hover {
    background: #fafafa;
}


/* ===========================
   Product Image
=========================== */

.order-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
}


/* ===========================
   Attributes
=========================== */

.order-details .attributes-list {
    margin: 0;
    margin-top: 10px;
    padding-left: 16px;
    font-size: 13px;
}

.order-details .attributes-list li {
    margin-bottom: 3px;
}


/* ===========================
   Total
=========================== */

.order-total {
    text-align: right;
    font-size: 18px;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 2px solid #eee;
}

.order-total b {
    color: #111;
}

.orders-filter{
    display:flex;
    gap:10px;
    margin-bottom:20px;
}

.orders-filter input,
.orders-filter select{
    padding:8px 10px;
    border:1px solid #ccc;
    border-radius:6px;
}

.orders-filter button{
    padding:8px 15px;
    border:none;
    background:#2f4fff;
    color:white;
    border-radius:6px;
    cursor:pointer;
}

.order-status-form{
    margin-top:10px;
    display:flex;
    gap:10px;
    align-items:center;
}

.order-status-select{
    padding:6px 10px;
    border:1px solid #ccc;
    border-radius:6px;
}

.status-save{
    padding:6px 12px;
    border:none;
    background:#2f4fff;
    color:white;
    border-radius:6px;
    cursor:pointer;
}

@media (max-width: 768px) {
    .order-details {
        margin-top: 24px;
        padding: 18px;
    }

    .orders-filter,
    .order-status-form {
        flex-wrap: wrap;
    }

    .orders-filter input,
    .orders-filter select,
    .orders-filter button,
    .order-status-select,
    .status-save {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .order-details {
        padding: 14px;
        border-radius: 8px;
    }

    .order-details h2 {
        font-size: 22px;
    }

    .order-items-table,
    .order-items-table thead,
    .order-items-table tbody,
    .order-items-table tr,
    .order-items-table td {
        display: block;
        width: 100%;
    }

    .order-items-table thead {
        display: none;
    }

    .order-items-table tr {
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        margin-bottom: 12px;
        padding: 10px;
        background: #fff;
    }

    .order-items-table td {
        border: 0;
        padding: 6px 0;
        text-align: left;
    }

    .order-item-image {
        width: 54px;
        height: 54px;
    }

    .order-total {
        text-align: left;
        font-size: 16px;
    }
}
