/* =====================================================
   HiGi Fashion House
   ORDERS PAGE
===================================================== */


:root{

    --primary:#8C4B2D;

    --secondary:#D4AF37;

    --accent:#C96A1B;

    --dark:#1A1614;

    --cream:#FAF5EF;

    --soft:#F3E8DA;

    --white:#FFFFFF;

    --text:#2B211C;

    --gray:#7D746D;

    --shadow:rgba(0,0,0,.12);

}



/* =====================================================
   RESET
===================================================== */

*{

    margin:0;

    padding:0;

    box-sizing:border-box;

}


html{

    scroll-behavior:smooth;

}


body{

    min-height:100vh;

    background:var(--cream);

    color:var(--text);

    font-family:"Work Sans",sans-serif;

}


/* =====================================================
   HEADER
===================================================== */

.orders-header{

    position:sticky;

    top:0;

    z-index:100;

    background:rgba(250,245,239,.95);

    backdrop-filter:blur(15px);

    border-bottom:1px solid rgba(140,75,45,.12);

}


.orders-header-inner{

    width:min(1200px,92%);

    margin:auto;

    min-height:78px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:20px;

}


/* =====================================================
   LOGO
===================================================== */

.orders-logo{

    text-decoration:none;

    display:flex;

    flex-direction:column;

    line-height:1;

}


.logo-main{

    color:var(--primary);

    font-family:"Fraunces",serif;

    font-size:32px;

    font-weight:700;

}


.logo-sub{

    margin-top:5px;

    color:var(--gray);

    font-size:9px;

    font-weight:700;

    letter-spacing:2px;

}


/* =====================================================
   BACK BUTTON
===================================================== */

.back-home{

    display:flex;

    align-items:center;

    gap:8px;

    color:var(--primary);

    text-decoration:none;

    font-size:14px;

    font-weight:600;

    padding:10px 16px;

    border:1px solid rgba(140,75,45,.2);

    border-radius:30px;

    transition:.25s ease;

}


.back-home:hover{

    background:var(--primary);

    color:var(--white);

}


/* =====================================================
   PAGE
===================================================== */

.orders-page{

    width:min(1100px,92%);

    margin:auto;

    padding:70px 0 100px;

}


/* =====================================================
   HERO
===================================================== */

.orders-hero{

    text-align:center;

    margin-bottom:55px;

}


.orders-eyebrow{

    display:inline-block;

    margin-bottom:12px;

    color:var(--secondary);

    font-size:12px;

    font-weight:700;

    letter-spacing:3px;

    text-transform:uppercase;

}


.orders-hero h1{

    font-family:"Fraunces",serif;

    font-size:clamp(42px,7vw,70px);

    line-height:1;

    color:var(--dark);

    margin-bottom:18px;

}


.orders-hero p{

    color:var(--gray);

    font-size:16px;

}


/* =====================================================
   ORDERS SECTION
===================================================== */

.orders-section-heading{

    display:flex;

    align-items:end;

    justify-content:space-between;

    gap:20px;

    margin-bottom:25px;

}


.orders-section-heading span:first-child{

    color:var(--secondary);

    font-size:11px;

    font-weight:700;

    letter-spacing:2px;

}


.orders-section-heading h2{

    margin-top:7px;

    font-family:"Fraunces",serif;

    font-size:30px;

    color:var(--dark);

}


.orders-count{

    padding:8px 14px;

    border-radius:30px;

    background:var(--soft);

    color:var(--primary);

    font-size:13px;

    font-weight:700;

}


/* =====================================================
   ORDER LIST
===================================================== */

.orders-list{

    display:grid;

    gap:20px;

}


/* =====================================================
   ORDER CARD
===================================================== */

.order-card{

    background:var(--white);

    border:1px solid rgba(140,75,45,.1);

    border-radius:20px;

    padding:25px;

    box-shadow:0 12px 35px var(--shadow);

}


.order-card-top{

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    gap:20px;

    padding-bottom:20px;

    border-bottom:1px solid rgba(0,0,0,.07);

}


.order-id-label{

    color:var(--gray);

    font-size:11px;

    font-weight:700;

    letter-spacing:1px;

    text-transform:uppercase;

}


.order-id{

    margin-top:5px;

    color:var(--dark);

    font-size:16px;

    font-weight:700;

}


/* =====================================================
   STATUS
===================================================== */

.order-status{

    display:inline-flex;

    align-items:center;

    gap:7px;

    padding:8px 13px;

    border-radius:30px;

    font-size:12px;

    font-weight:700;

    background:#FFF4D8;

    color:#8A6200;

}


.order-status::before{

    content:"";

    width:7px;

    height:7px;

    border-radius:50%;

    background:currentColor;

}


/* =====================================================
   ORDER ITEMS
===================================================== */

.order-items{

    padding:20px 0;

    display:grid;

    gap:14px;

}


.order-item{

    display:flex;

    align-items:center;

    gap:14px;

}


.order-item-image{

    width:64px;

    height:78px;

    flex-shrink:0;

    overflow:hidden;

    border-radius:10px;

    background:var(--soft);

}


.order-item-image img{

    width:100%;

    height:100%;

    object-fit:cover;

}


.order-item-info{

    flex:1;

}


.order-item-info h4{

    margin-bottom:5px;

    font-family:"Fraunces",serif;

    font-size:17px;

}


.order-item-info p{

    color:var(--gray);

    font-size:13px;

}


.order-item-price{

    font-weight:700;

    color:var(--primary);

}


/* =====================================================
   ORDER BOTTOM
===================================================== */

.order-card-bottom{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:20px;

    padding-top:18px;

    border-top:1px solid rgba(0,0,0,.07);

}


.order-date{

    color:var(--gray);

    font-size:13px;

}


.order-total{

    text-align:right;

}


.order-total span{

    display:block;

    color:var(--gray);

    font-size:11px;

    margin-bottom:4px;

    text-transform:uppercase;

    letter-spacing:1px;

}


.order-total strong{

    color:var(--dark);

    font-size:20px;

}


/* =====================================================
   MESSAGES
===================================================== */

.orders-message{

    max-width:600px;

    margin:0 auto;

    text-align:center;

    padding:55px 25px;

    background:var(--white);

    border-radius:22px;

    box-shadow:0 12px 35px var(--shadow);

}


.message-icon{

    width:70px;

    height:70px;

    margin:0 auto 20px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    background:var(--soft);

    color:var(--primary);

    font-size:25px;

}


.orders-message h2{

    font-family:"Fraunces",serif;

    font-size:30px;

    margin-bottom:10px;

}


.orders-message p{

    color:var(--gray);

    line-height:1.7;

    margin-bottom:25px;

}


/* =====================================================
   BUTTON
===================================================== */

.orders-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:9px;

    padding:13px 22px;

    border-radius:30px;

    text-decoration:none;

    font-size:14px;

    font-weight:700;

    transition:.25s ease;

}


.primary-btn{

    background:var(--primary);

    color:var(--white);

}


.primary-btn:hover{

    background:var(--accent);

    transform:translateY(-2px);

}


/* =====================================================
   LOADING
===================================================== */

.loading-spinner{

    width:45px;

    height:45px;

    margin:0 auto 20px;

    border:4px solid var(--soft);

    border-top-color:var(--primary);

    border-radius:50%;

    animation:spin .8s linear infinite;

}


@keyframes spin{

    to{

        transform:rotate(360deg);

    }

}


/* =====================================================
   UTILITIES
===================================================== */

.hidden{

    display:none !important;

}


/* =====================================================
   FOOTER
===================================================== */

.orders-footer{

    padding:30px 20px;

    text-align:center;

    background:var(--dark);

    color:rgba(255,255,255,.65);

    font-size:13px;

}


/* =====================================================
   MOBILE
===================================================== */

@media(max-width:600px){

    .orders-header-inner{

        min-height:70px;

    }


    .logo-main{

        font-size:27px;

    }


    .logo-sub{

        font-size:8px;

    }


    .back-home{

        padding:9px 12px;

    }


    .back-home span{

        display:none;

    }


    .orders-page{

        padding:50px 0 70px;

    }


    .orders-hero{

        margin-bottom:40px;

    }


    .orders-section-heading{

        align-items:flex-start;

        flex-direction:column;

    }


    .order-card{

        padding:18px;

    }


    .order-card-top{

        flex-direction:column;

        gap:12px;

    }


    .order-card-bottom{

        align-items:flex-start;

        flex-direction:column;

    }


    .order-total{

        text-align:left;

    }

}