/* ==============================
   ORDERS PAGE
============================== */

:root{
    --primary:#5A321E;
    --primary-dark:#321A10;
    --primary-light:#87573B;

    --gold:#C99B3C;
    --gold-dark:#A97922;
    --gold-light:#F3D995;

    --cream:#FFF9F0;
    --cream-dark:#F5E9D8;
    --soft-bg:#FBF6EF;

    --white:#FFFFFF;
    --dark:#251B16;
    --text:#62544D;
    --muted:#8A7B73;
    --border:#E9DDCF;

    --success:#198754;
    --danger:#D64545;
    --info:#0D6EFD;

    --shadow-sm:0 8px 24px rgba(70,42,25,.08);
    --shadow-md:0 16px 38px rgba(70,42,25,.14);
}


/* ==============================
   PAGE
============================== */

.orders-page{
    min-height:100vh;
    padding:80px 8%;

    background:
        radial-gradient(
            circle at 10% 12%,
            rgba(201,155,60,.11),
            transparent 27%
        ),
        radial-gradient(
            circle at 90% 88%,
            rgba(90,50,30,.08),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            var(--cream),
            var(--soft-bg)
        );

    color:var(--dark);
}


/* ==============================
   SECTION TITLE
============================== */

.orders-page .section-title{
    max-width:700px;
    margin:0 auto 45px;

    text-align:center;
}

.orders-page .section-title h1{
    margin-bottom:11px;

    color:var(--primary);

    font-family:'Playfair Display',serif;
    font-size:42px;
    font-weight:700;
    line-height:1.2;
}

.orders-page .section-title p{
    color:var(--text);

    font-size:15px;
    line-height:1.7;
}


/* ==============================
   ORDERS CONTAINER
============================== */

.orders-container{
    max-width:1100px;
    margin:auto;

    display:flex;
    flex-direction:column;
    gap:26px;
}


/* ==============================
   ORDER CARD
============================== */

.order-card{
    overflow:hidden;

    border:1px solid rgba(201,155,60,.22);
    border-radius:19px;

    background:rgba(255,255,255,.96);

    box-shadow:var(--shadow-sm);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.order-card:hover{
    border-color:rgba(201,155,60,.45);

    transform:translateY(-3px);

    box-shadow:var(--shadow-md);
}


/* ==============================
   ORDER HEADER
============================== */

.order-header{
    padding:21px 25px;

    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    flex-wrap:wrap;

    border-bottom:1px solid var(--border);

    background:
        linear-gradient(
            135deg,
            var(--cream),
            #F8EEDC
        );
}

.order-header h3{
    margin-bottom:5px;

    color:var(--primary);

    font-size:18px;
    font-weight:700;
}

.order-date{
    color:var(--muted);

    font-size:13px;
}


/* ==============================
   ORDER STATUS
============================== */

.order-status{
    padding:8px 15px;

    display:inline-flex;
    align-items:center;
    gap:7px;

    border-radius:30px;

    font-size:13px;
    font-weight:700;
    white-space:nowrap;
}

.order-status i{
    font-size:12px;
}


/* ==============================
   ORDER ITEMS
============================== */

.order-products{
    padding:5px 25px;
}

.order-item{
    padding:20px 0;

    display:grid;
    grid-template-columns:82px minmax(0,1fr) auto;
    align-items:center;
    gap:18px;

    border-bottom:1px solid var(--border);
}

.order-item:last-child{
    border-bottom:none;
}

.order-item img{
    width:82px;
    height:82px;

    object-fit:cover;

    border:1px solid rgba(201,155,60,.23);
    border-radius:11px;

    background:var(--cream);

    box-shadow:0 7px 18px rgba(70,42,25,.09);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.order-item:hover img{
    transform:scale(1.04);

    box-shadow:0 10px 24px rgba(70,42,25,.14);
}

.order-item-info{
    min-width:0;
}

.order-item-info h4{
    margin-bottom:7px;

    color:var(--dark);

    font-size:15px;
    font-weight:700;
}

.order-item-info p{
    margin:4px 0;

    color:var(--muted);

    font-size:13px;
    line-height:1.5;
}

.order-item-total{
    color:var(--primary);

    font-size:17px;
    font-weight:700;

    white-space:nowrap;
}


/* ==============================
   ORDER FOOTER
============================== */

.order-footer{
    padding:21px 25px;

    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    flex-wrap:wrap;

    border-top:1px solid var(--border);

    background:var(--cream);
}

.order-customer p{
    margin:5px 0;

    color:var(--text);

    font-size:13px;
    line-height:1.5;
}

.order-customer strong{
    color:var(--primary);
}

.order-total{
    text-align:right;
}

.order-total span{
    display:block;

    margin-bottom:5px;

    color:var(--muted);

    font-size:13px;
}

.order-total strong{
    color:var(--gold-dark);

    font-size:24px;
    font-weight:700;
}


/* ==============================
   ORDER ACTIONS
============================== */

.order-actions{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.invoice-btn,
.buy-again-btn,
.cancel-order-btn,
.track-order-btn{
    min-height:42px;
    padding:10px 17px;

    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;

    border:none;
    border-radius:22px;

    color:var(--white);

    font-family:inherit;
    font-size:13px;
    font-weight:700;

    cursor:pointer;

    text-decoration:none;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        background .3s ease;
}


/* ==============================
   TRACK ORDER BUTTON
============================== */

.track-order-btn{
    background:
        linear-gradient(
            135deg,
            var(--primary-light),
            var(--primary)
        );

    box-shadow:0 8px 19px rgba(70,42,25,.18);
}

.track-order-btn:hover{
    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    transform:translateY(-2px);

    box-shadow:0 11px 24px rgba(70,42,25,.24);
}


/* ==============================
   INVOICE BUTTON
============================== */

.invoice-btn{
    background:
        linear-gradient(
            135deg,
            var(--gold),
            var(--gold-dark)
        );

    box-shadow:0 8px 19px rgba(169,121,34,.19);
}

.invoice-btn:hover{
    background:
        linear-gradient(
            135deg,
            var(--primary-light),
            var(--primary)
        );

    transform:translateY(-2px);

    box-shadow:0 11px 24px rgba(70,42,25,.22);
}


/* ==============================
   BUY AGAIN BUTTON
============================== */

.buy-again-btn{
    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    box-shadow:0 8px 19px rgba(70,42,25,.20);
}

.buy-again-btn:hover{
    background:
        linear-gradient(
            135deg,
            var(--gold),
            var(--gold-dark)
        );

    transform:translateY(-2px);

    box-shadow:0 11px 24px rgba(169,121,34,.23);
}


/* ==============================
   CANCEL ORDER BUTTON
============================== */

.cancel-order-btn{
    background:
        linear-gradient(
            135deg,
            #E85B59,
            #BE3432
        );

    box-shadow:0 8px 19px rgba(190,52,50,.18);
}

.cancel-order-btn:hover{
    background:
        linear-gradient(
            135deg,
            #D64545,
            #9F2727
        );

    transform:translateY(-2px);

    box-shadow:0 11px 24px rgba(190,52,50,.25);
}


/* ==============================
   STATUS COLORS
============================== */

.status-placed{
    background:#FFF3CD;
    color:#856404;
}

.status-packed{
    background:#E8F2FF;
    color:#0D6EFD;
}

.status-shipped{
    background:#DCEEFF;
    color:#0056B3;
}

.status-out-for-delivery{
    background:#EDE5FF;
    color:#6F42C1;
}

.status-delivered{
    background:#E7F8EE;
    color:#198754;
}

.status-cancelled{
    background:#FDEAEA;
    color:#D32F2F;
}


/* ==============================
   EMPTY ORDERS
============================== */

.empty-orders{
    min-height:70vh;
    padding:100px 20px;

    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;

    text-align:center;

    background:
        radial-gradient(
            circle at center,
            rgba(201,155,60,.11),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            var(--cream),
            var(--soft-bg)
        );
}

.empty-orders i{
    margin-bottom:22px;

    color:var(--gold);

    font-size:84px;

    filter:drop-shadow(0 10px 16px rgba(169,121,34,.19));
}

.empty-orders h2{
    margin-bottom:12px;

    color:var(--primary);

    font-family:'Playfair Display',serif;
    font-size:30px;
}

.empty-orders p{
    max-width:480px;

    color:var(--muted);

    font-size:14px;
    line-height:1.7;
}

.empty-orders a{
    margin-top:23px;
    padding:13px 31px;

    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;

    border-radius:26px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color:var(--white);

    text-decoration:none;

    font-size:14px;
    font-weight:700;

    box-shadow:0 10px 24px rgba(70,42,25,.22);

    transition:
        transform .3s ease,
        background .3s ease,
        box-shadow .3s ease;
}

.empty-orders a:hover{
    background:
        linear-gradient(
            135deg,
            var(--gold),
            var(--gold-dark)
        );

    transform:translateY(-3px);

    box-shadow:0 14px 29px rgba(169,121,34,.25);
}


/* ==============================
   RESPONSIVE
============================== */

@media(max-width:900px){

    .orders-page{
        padding-left:5%;
        padding-right:5%;
    }

}


@media(max-width:700px){

    .orders-page{
        padding:55px 16px;
    }

    .orders-page .section-title{
        margin-bottom:33px;
    }

    .orders-page .section-title h1{
        font-size:34px;
    }

    .orders-page .section-title p{
        font-size:13px;
    }

    .order-header,
    .order-footer{
        align-items:flex-start;
        flex-direction:column;

        padding:18px;
    }

    .order-products{
        padding:5px 18px;
    }

    .order-item{
        grid-template-columns:65px minmax(0,1fr);
        gap:13px;
    }

    .order-item img{
        width:65px;
        height:65px;
    }

    .order-item-total{
        grid-column:2;
    }

    .order-total{
        text-align:left;
    }

    .order-actions{
        width:100%;
    }

    .track-order-btn,
    .invoice-btn,
    .buy-again-btn,
    .cancel-order-btn{
        width:100%;
    }

}


@media(max-width:400px){

    .orders-page{
        padding-left:11px;
        padding-right:11px;
    }

    .order-header,
    .order-footer{
        padding-left:14px;
        padding-right:14px;
    }

    .order-products{
        padding-left:14px;
        padding-right:14px;
    }

    .order-item{
        grid-template-columns:55px minmax(0,1fr);
    }

    .order-item img{
        width:55px;
        height:55px;
    }

    .order-item-info h4{
        font-size:14px;
    }

    .order-total strong{
        font-size:21px;
    }

}