
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    background:#f7f8f7;
    color:#222;
}

a{
    text-decoration:none;
    color:inherit;
}

/* =========================
   MAIN WRAPPER
========================= */

.account-wrapper{
    max-width:1250px;
    margin:auto;
    padding:55px 25px 70px;
}

/* =========================
   TITLE
========================= */

.account-title{
    text-align:center;
    margin-bottom:45px;
}

.account-title h1{
    font-family:Georgia,serif;
    font-size:34px;
    font-weight:400;
    color:#111;
}

.account-title p{
    margin-top:10px;
    font-size:14px;
    color:#777;
}

/* =========================
   LAYOUT
========================= */

.account-layout{
    display:grid;
    grid-template-columns:250px 1fr;
    gap:28px;
}

/* =========================
   SIDEBAR
========================= */

.account-sidebar{
    background:#fff;
    border-radius:12px;
    padding:22px;
    height:max-content;
    box-shadow:0 5px 25px rgba(0,0,0,.06);
}

.profile-mini{
    text-align:center;
    padding-bottom:22px;
    margin-bottom:20px;
    border-bottom:1px solid #eee;
}

.profile-mini img{
    width:72px;
    height:72px;
    border-radius:50%;
    object-fit:cover;
    border:3px solid #e7f6ea;
}

.profile-mini h3{
    font-size:15px;
    margin-top:10px;
    margin-bottom: 7px;
}

.profile-mini span{
    display:block;
    color:#888;
    font-size:12px;
    margin-top:5px;
}

.account-menu{
    list-style:none;
}

.account-menu li{
    margin-bottom:7px;
}

.account-menu a{
    display:flex;
    align-items:center;
    gap:12px;
    padding:13px 14px;
    border-radius:8px;
    color:#333;
    font-size:14px;
    transition:.25s;
}

.account-menu a:hover{
    background:#edf8ef;
    color:#168c28;
}

.account-menu a.active{
    background:#168c28;
    color:#fff;
    font-weight:600;
}

.menu-icon{
 
    font-size:19px;
}

.logout{
    margin-top:18px;
    padding-top:18px;
    border-top:1px solid #eee;
}

.logout a{
    color:#d93025;
}

/* =========================
   CONTENT
========================= */

.account-content{
    min-width:0;
}

/* =========================
   PAGE HEADER
========================= */

.page-header{
    background:#fff;
    border-radius:12px;
    padding:25px 28px;
    margin-bottom:22px;
    box-shadow:0 5px 25px rgba(0,0,0,.05);

    display:flex;
    justify-content:space-between;
    align-items:center;
}

.page-header h2{
    font-family:Georgia,serif;
    font-size:24px;
        margin-bottom: 7px;
    font-weight:400;
}

.page-header p{
    margin-top:7px;
    font-size:13px;
    color:#777;
        margin-bottom: 0;
}

/* =========================
   FILTER
========================= */

.order-filter{
    display:flex;
    gap:10px;
    margin-bottom:20px;
}

.filter-btn{
    border:1px solid #ddd;
    background:#fff;
    padding:10px 17px;
    border-radius:6px;
    cursor:pointer;
    font-size:12px;
    color:#555;
}

.filter-btn:hover,
.filter-btn.active{
    background:#168c28;
    color:#fff;
    border-color:#168c28;
}

/* =========================
   ORDER CARD
========================= */

.order-card{
    background:#fff;
    border-radius:12px;
    margin-bottom:18px;
    box-shadow:0 5px 25px rgba(0,0,0,.05);
    overflow:hidden;
}

/* Order Header */

.order-header{
    background:#fafafa;
    padding:16px 22px;
    border-bottom:1px solid #eee;

    display:flex;
    align-items:center;
    justify-content:space-between;
}

.order-number{
    font-size:13px;
    font-weight:600;
}

.order-date{
    display:block;
    color:#888;
    font-size:11px;
    margin-top:4px;
}

.order-status{
    padding:6px 12px;
    border-radius:20px;
    font-size:10px;
    font-weight:600;
}

.delivered{
    background:#e8f7eb;
    color:#168c28;
}

.processing{
    background:#fff4d6;
    color:#a06a00;
}

.cancelled{
    background:#fdeaea;
    color:#d93025;
}

/* Order Body */

.order-body{
    padding:20px 22px;

    display:flex;
    align-items:center;
    gap:18px;
}

.product-image{
    width:85px;
    height:85px;
    border-radius:8px;
    object-fit:cover;
    border:1px solid #eee;
}

.product-info{
    flex:1;
}

.product-info h3{
    font-size:14px;
    margin-bottom:7px;
}

.product-info p{
    color:#888;
    font-size:12px;
    margin-bottom:5px;
}

.product-price{
    font-size:14px;
    font-weight:600;
}

/* =========================
   ORDER RIGHT
========================= */

.order-right{
    text-align:right;
    min-width:150px;
}

.order-total{
    font-size:15px;
    font-weight:600;
    margin-bottom:12px;
}

.order-buttons{
    display:flex;
    justify-content:flex-end;
    gap:7px;
}

.btn{
    display:inline-block;
    padding:9px 13px;
    border-radius:5px;
    font-size:11px;
    cursor:pointer;
}

.view-btn{
    background:#111;
    color:#fff;
}

.track-btn{
    border:1px solid #168c28;
    color:#168c28;
    background:#fff;
}

.view-btn:hover{
    background:#168c28;
}

.track-btn:hover{
    background:#168c28;
    color:#fff;
}

/* =========================
   EMPTY ORDER
========================= */

.no-orders{
    background:#fff;
    border-radius:12px;
    padding:60px 20px;
    text-align:center;
    box-shadow:0 5px 25px rgba(0,0,0,.05);
}

.no-orders-icon{
    font-size:45px;
    margin-bottom:15px;
}

.no-orders h3{
    font-family:Georgia,serif;
    font-size:21px;
    font-weight:400;
}

.no-orders p{
    color:#888;
    font-size:13px;
    margin:8px 0 20px;
}

.shop-btn{
    display:inline-block;
    padding:11px 22px;
    background:#168c28;
    color:#fff;
    border-radius:5px;
    font-size:12px;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:1000px){

    .account-layout{
        grid-template-columns:1fr;
    }

    .profile-mini{
        display:flex;
        align-items:center;
        gap:13px;
        text-align:left;
    }

    .profile-mini img{
        width:58px;
        height:58px;
    }

    .profile-mini h3{
        margin-top:0;
    }

    .account-menu{
        display:grid;
        grid-template-columns:repeat(2,1fr);
        gap:5px;
    }

    .account-menu li{
        margin:0;
    }

    .logout{
        margin-top:0;
        padding-top:0;
        border-top:0;
    }
}

@media(max-width:700px){

    .account-wrapper{
        padding:135px 15px 60px;
    }

    .account-title h1{
        font-size:28px;
    }

    .page-header{
        padding:20px;
    }

    .order-body{
        align-items:flex-start;
        flex-wrap:wrap;
    }

    .order-right{
        width:100%;
        text-align:left;
        border-top:1px solid #eee;
        padding-top:15px;
    }

    .order-buttons{
        justify-content:flex-start;
    }

}

@media(max-width:500px){

    .account-menu{
        grid-template-columns:1fr;
    }

    .order-header{
        align-items:flex-start;
        gap:10px;
        flex-direction:column;
    }

    .product-image{
        width:70px;
        height:70px;
    }

    .product-info h3{
        font-size:13px;
    }

    .order-filter{
        overflow-x:auto;
    }

    .filter-btn{
        white-space:nowrap;
    }
}
