/* ======================================================
   SEAN B SHOP
   CUSTOMER ORDERS PAGE
   assets/css/pages/orders.css
====================================================== */


/* ======================================================
   PAGE WRAPPER
====================================================== */


.orders-page{

    background:#f5f7fa;

    min-height:100vh;

    padding:40px 0;

}




/* ======================================================
   ACCOUNT LAYOUT
====================================================== */


.account-layout{

    display:grid;

    grid-template-columns:280px 1fr;

    gap:25px;

    align-items:start;

}






/* ======================================================
   ACCOUNT SIDEBAR
====================================================== */


.account-sidebar{

    background:#fff;

    border-radius:18px;

    overflow:hidden;

    border:1px solid #e8edf3;

}



.account-user{

    background:#0b1f3a;

    color:#fff;

    padding:30px 20px;

    text-align:center;

}



.account-avatar{

    width:70px;

    height:70px;

    margin:auto;

    display:flex;

    justify-content:center;

    align-items:center;

    border-radius:50%;

    background:#e60000;

    font-size:28px;

    margin-bottom:15px;

}



.account-user h3{

    margin:0;

    font-size:18px;

    font-weight:800;

}





.account-sidebar nav{

    padding:15px;

}



.account-sidebar nav a{

    height:45px;

    display:flex;

    align-items:center;

    gap:12px;

    padding:0 15px;

    margin-bottom:8px;

    color:#334155;

    border-radius:10px;

    text-decoration:none;

    font-size:14px;

    font-weight:600;

    transition:.25s ease;

}



.account-sidebar nav a i{

    width:18px;

    color:#0b1f3a;

}



.account-sidebar nav a:hover,

.account-sidebar nav a.active{

    background:#0b1f3a;

    color:#fff;

}



.account-sidebar nav a:hover i,

.account-sidebar nav a.active i{

    color:#fff;

}







/* ======================================================
   ORDERS CONTENT
====================================================== */


.orders-content{

    background:#fff;

    border-radius:18px;

    padding:30px;

    border:1px solid #e8edf3;

}





.orders-header{

    margin-bottom:25px;

}



.orders-header h1{

    margin:0;

    color:#0b1f3a;

    font-size:30px;

    font-weight:900;

}



.orders-header p{

    margin-top:8px;

    color:#64748b;

    font-size:14px;

}







/* ======================================================
   ORDER CARD
====================================================== */


.order-card{

    border:1px solid #e5eaf0;

    border-radius:16px;

    padding:22px;

    margin-bottom:18px;

    transition:.25s ease;

}



.order-card:hover{

    box-shadow:

    0 10px 25px rgba(0,0,0,.08);

    transform:translateY(-2px);

}





/* ======================================================
   ORDER TOP
====================================================== */


.order-top{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding-bottom:18px;

    border-bottom:1px solid #edf1f5;

}



.order-label{

    display:block;

    color:#64748b;

    font-size:12px;

}



.order-top h3{

    margin:5px 0 0;

    color:#0b1f3a;

    font-size:17px;

    font-weight:800;

}





.order-date{

    color:#64748b;

    font-size:13px;

}






/* ======================================================
   ORDER DETAILS
====================================================== */


.order-details{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:15px;

    padding:20px 0;

}



.order-details div{

    background:#f8fafc;

    padding:14px;

    border-radius:12px;

}



.order-details span{

    display:block;

    font-size:12px;

    color:#64748b;

    margin-bottom:6px;

}



.order-details strong{

    font-size:14px;

    color:#0b1f3a;

}





.order-total{

    color:#e60000 !important;

}







/* ======================================================
   STATUS BADGES
====================================================== */


.status{

    display:inline-flex;

    padding:5px 12px;

    border-radius:20px;

    font-size:12px;

    font-weight:800;

    text-transform:capitalize;

}



.status.pending{

    background:#fff7ed;

    color:#ea580c;

}



.status.processing{

    background:#eff6ff;

    color:#2563eb;

}



.status.shipped{

    background:#ecfeff;

    color:#0891b2;

}



.status.completed{

    background:#ecfdf5;

    color:#059669;

}



.status.cancelled{

    background:#fef2f2;

    color:#dc2626;

}







/* ======================================================
   ACTION BUTTONS
====================================================== */


.order-actions{

    display:flex;

    gap:12px;

}



.order-actions a{

    height:38px;

    padding:0 18px;

    border-radius:20px;

    display:flex;

    align-items:center;

    gap:8px;

    text-decoration:none;

    font-size:13px;

    font-weight:700;

    background:#0b1f3a;

    color:#fff;

    transition:.25s ease;

}



.order-actions a:hover{

    background:#e60000;

}







/* ======================================================
   EMPTY ORDERS
====================================================== */


.empty-orders{

    text-align:center;

    padding:70px 20px;

}



.empty-orders i{

    font-size:60px;

    color:#cbd5e1;

}



.empty-orders h2{

    margin:20px 0 10px;

    color:#0b1f3a;

}



.empty-orders p{

    color:#64748b;

}



.empty-orders a{

    display:inline-flex;

    margin-top:20px;

    background:#e60000;

    color:#fff;

    padding:12px 25px;

    border-radius:25px;

    text-decoration:none;

    font-weight:800;

}







/* ======================================================
   TABLET
====================================================== */


@media(max-width:992px){


.account-layout{

    grid-template-columns:1fr;

}



.order-details{

    grid-template-columns:repeat(2,1fr);

}


}







/* ======================================================
   MOBILE
====================================================== */


@media(max-width:600px){


.orders-page{

    padding:25px 0;

}



.orders-content{

    padding:20px;

}



.orders-header h1{

    font-size:24px;

}



.order-top{

    flex-direction:column;

    align-items:flex-start;

    gap:10px;

}



.order-details{

    grid-template-columns:1fr;

}



.order-actions{

    flex-direction:column;

}



.order-actions a{

    justify-content:center;

}


}

/* ======================================================
   DARK BACKGROUND TEXT VISIBILITY FIX
====================================================== */


/* Account header */

.account-user,
.account-user h3,
.account-user p{

    color:#ffffff;

}


.account-user p{

    opacity:.9;

}




/* Sidebar active item */

.account-sidebar nav a.active,
.account-sidebar nav a.active i{

    color:#ffffff;

    background:#0b1f3a;

}




/* Sidebar hover */

.account-sidebar nav a:hover,
.account-sidebar nav a:hover i{

    color:#ffffff;

}




/* Dark buttons */

.order-actions a{

    background:#0b1f3a;

    color:#ffffff;

}


.order-actions a i{

    color:#ffffff;

}


.order-actions a:hover{

    background:#e60000;

    color:#ffffff;

}


.order-actions a:hover i{

    color:#ffffff;

}





/* Improve headings on white cards */

.orders-header h1,
.order-top h3,
.order-details strong,
.empty-orders h2{

    color:#0b1f3a;

}



/* Improve muted text visibility */

.orders-header p,
.order-date,
.order-label,
.order-details span,
.empty-orders p{

    color:#475569;

}




/* Better contrast for account icon */

.account-avatar i{

    color:#ffffff;

}



/* Dark navy cards hover */

.order-card:hover{

    border-color:#0b1f3a;

}



/* Improve mobile visibility */

@media(max-width:600px){

    .account-user h3{

        color:#ffffff;

    }


}