

*{
    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;
}

/* =========================
   PAGE 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;
    color:#777;
    font-size:14px;
}

/* =========================
   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;
    font-weight:400;
    margin-bottom: 7px;
}

.page-header p{
    margin-top:7px;
    color:#777;
    font-size:13px;
    margin-bottom: 0;
}

/* =========================
   ADD ADDRESS BUTTON
========================= */

.add-address-btn{
    background:#168c28;
    color:#fff;
    border:0;
    padding:12px 19px;
    border-radius:5px;
    font-size:11px;
    font-weight:600;
    cursor:pointer;
    transition:.25s;
}

.add-address-btn:hover{
    background:#10731f;
}

/* =========================
   ADDRESS GRID
========================= */

.address-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

/* =========================
   ADDRESS CARD
========================= */

.address-card{
    background:#fff;
    border-radius:12px;
    padding:24px;
    box-shadow:0 5px 25px rgba(0,0,0,.05);
    border:1px solid #f0f0f0;
    position:relative;
}

/* Card Header */

.address-card-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding-bottom:16px;
    margin-bottom:17px;
    border-bottom:1px solid #eee;
}

.address-title{
    display:flex;
    align-items:center;
    gap:10px;
}

.address-icon{
    width:38px;
    height:38px;
    border-radius:8px;
    background:#edf8ef;
    color:#168c28;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:17px;
}

.address-title h3{
    font-family:Georgia,serif;
    font-size:17px;
    font-weight:400;
    margin-bottom: 0;
}

.default-badge{
    background:#e8f7eb;
    color:#168c28;
    padding:5px 9px;
    border-radius:20px;
    font-size:9px;
    font-weight:600;
}

/* Address Details */

.address-details{
    font-size:13px;
    line-height:1.8;
    color:#555;
}

.customer-name{
    color:#111;
    font-weight:600;
    font-size:14px;
    margin-bottom:3px;
}

.phone{
    margin-top:5px;
    color:#555;
}

/* Card Footer */

.address-footer{
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:20px;
    padding-top:16px;
    border-top:1px solid #eee;
}

.address-btn{
    padding:9px 15px;
    border-radius:5px;
    font-size:10px;
    font-weight:600;
    cursor:pointer;
}

.edit-address{
    background:#111;
    color:#fff;
}

.edit-address:hover{
    background:#168c28;
}

.delete-address{
    border:1px solid #ddd;
    background:#fff;
    color:#d93025;
}

.delete-address:hover{
    background:#fff3f3;
}

/* =========================
   ADD ADDRESS CARD
========================= */

.add-card{
    background:#fff;
    border:2px dashed #dce8de;
    border-radius:12px;
    min-height:240px;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    text-align:center;
    cursor:pointer;
    transition:.25s;
}

.add-card:hover{
    border-color:#168c28;
    background:#f5fbf6;
}

.add-icon{
    width:55px;
    height:55px;
    border-radius:50%;
    background:#edf8ef;
    color:#168c28;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:27px;
    margin-bottom:13px;
}

.add-card h3{
    font-family:Georgia,serif;
    font-size:18px;
    font-weight:400;
}

.add-card p{
    font-size:11px;
    color:#888;
    margin-top:6px;
}

/* =========================
   MODAL
========================= */

.modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    z-index:999;

    align-items:center;
    justify-content:center;

    padding:20px;
}

.modal-box{
    width:100%;
    max-width:600px;
    background:#fff;
    border-radius:12px;
    padding:28px;
    max-height:90vh;
    overflow-y:auto;
}

.modal-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
}

.modal-header h2{
    font-family:Georgia,serif;
    font-size:22px;
    font-weight:400;
}

.close-modal{
    width:32px;
    height:32px;
    border:0;
    background:#f4f4f4;
    border-radius:50%;
    cursor:pointer;
    font-size:18px;
}

/* =========================
   FORM
========================= */

.form-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px;
}

.form-group{
    margin-bottom:17px;
}

.form-group label{
    display:block;
    font-size:11px;
    font-weight:600;
    margin-bottom:7px;
    color:#444;
}

.form-group input,
.form-group select{
    width:100%;
    height:44px;
    border:1px solid #ddd;
    border-radius:5px;
    padding:0 12px;
    font-size:12px;
    outline:none;
}

.form-group input:focus,
.form-group select:focus{
    border-color:#168c28;
}

.modal-footer{
    display:flex;
    justify-content:flex-end;
    gap:10px;
    margin-top:10px;
    padding-top:20px;
    border-top:1px solid #eee;
}

.cancel-btn{
    border:1px solid #ddd;
    background:#fff;
    padding:11px 20px;
    border-radius:5px;
    font-size:11px;
    cursor:pointer;
}

.save-address{
    border:0;
    background:#168c28;
    color:#fff;
    padding:11px 20px;
    border-radius:5px;
    font-size:11px;
    cursor:pointer;
}

/* =========================
   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{
        flex-direction:column;
        align-items:flex-start;
        gap:17px;
        padding:20px;
    }

    .add-address-btn{
        width:100%;
    }

    .address-grid{
        grid-template-columns:1fr;
    }

    .form-row{
        grid-template-columns:1fr;
        gap:0;
    }

}

@media(max-width:500px){

    .account-menu{
        grid-template-columns:1fr;
    }

    .account-title{
        margin-bottom:30px;
    }

    .account-title h1{
        font-size:26px;
    }

    .address-card{
        padding:19px;
    }

    .modal-box{
        padding:20px;
    }

}

