/* ===========================
   MY ORDERS PAGE
=========================== */

body{
    background:#f5f5f5;
}

/* Page Title */

section h1,
section h2{
    text-align:center;
    margin-bottom:35px;
    color:#111;
}

/* Empty Orders */

.empty-cart{

    background:white;

    padding:60px;

    border-radius:18px;

    text-align:center;

    box-shadow:0 8px 25px rgba(0,0,0,.08);

}

.empty-cart h2{

    color:#c00000;

    margin-bottom:15px;

}

.empty-cart p{

    color:#777;

}

/* Order Card */

.order-card{

    background:white;

    border-radius:18px;

    padding:25px;

    margin-bottom:30px;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

    transition:.3s;

}

.order-card:hover{

    transform:translateY(-5px);

}

/* Header */

.order-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    border-bottom:1px solid #eee;

    padding-bottom:18px;

    margin-bottom:20px;

}

.order-header h3{

    margin:0;

    color:#111;

}

.order-header small{

    color:#777;

}

/* Status */

.status{

    padding:8px 18px;

    border-radius:30px;

    color:white;

    font-weight:bold;

    font-size:14px;

    text-transform:uppercase;

}

.pending{

    background:#ff9800;

}

.processing{

    background:#2196f3;

}

.shipped{

    background:#673ab7;

}

.delivered{

    background:#4caf50;

}

/* Product List */

.order-items{

    display:flex;

    flex-direction:column;

    gap:18px;

}

/* Product Row */

.product-row{

    display:flex;

    align-items:center;

    gap:18px;

    padding:12px;

    border-radius:12px;

    background:#fafafa;

}

/* Product Image */

.product-thumb{

    width:90px;

    height:90px;

    object-fit:cover;

    border-radius:12px;

    border:1px solid #ddd;

}

/* Product Details */

.product-details{

    flex:1;

}

.product-details h4{

    margin-bottom:8px;

    color:#111;

}

.product-details p{

    margin:4px 0;

    color:#666;

}

/* Footer */

.order-footer{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-top:25px;

    border-top:1px solid #eee;

    padding-top:20px;

}

.order-footer h3{

    color:#c00000;

    margin-bottom:8px;

}

.order-footer p{

    color:#666;

}

/* Buy Again Button */

.buy-again{

    background:#c00000;

    color:white;

    border:none;

    padding:12px 25px;

    border-radius:10px;

    cursor:pointer;

    font-size:15px;

    font-weight:bold;

    transition:.3s;

}

.buy-again:hover{

    background:#900000;

    transform:scale(1.05);

}

/* Loading Text */

.loading{

    text-align:center;

    font-size:22px;

    color:#555;

    padding:60px;

}

/* Responsive */

@media(max-width:768px){

.order-header{

    flex-direction:column;

    align-items:flex-start;

    gap:15px;

}

.product-row{

    flex-direction:column;

    text-align:center;

}

.product-thumb{

    width:140px;

    height:140px;

}

.order-footer{

    flex-direction:column;

    gap:20px;

    text-align:center;

}

.buy-again{

    width:100%;

}

}