﻿/*
=========================================
HAPPY MISTHAN
AUTH CSS
PART 1
=========================================
*/

/* ==============================
USER AREA
============================== */

.user-area{

    position:relative;

    display:flex;

    align-items:center;

    gap:12px;

    flex-shrink:0;

}

/* ==============================
USER BUTTON
============================== */

.user-btn{

    width:52px;

    height:52px;

    border:none;

    border-radius:16px;

    background:#fff7ef;

    color:var(--primary);

    cursor:pointer;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:22px;

    font-weight:700;

    box-shadow:0 8px 22px rgba(255,122,0,.12);

    transition:.25s;

}

.user-btn:hover{

    background:var(--primary);

    color:#fff;

}

/* ==============================
USER AVATAR
============================== */

.user-avatar{

    width:52px;

    height:52px;

    border-radius:16px;

    background:var(--primary);

    color:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:22px;

    font-weight:700;

    cursor:pointer;

    box-shadow:0 10px 25px rgba(255,122,0,.30);

    transition:.25s;

}

.user-avatar:hover{

    transform:translateY(-2px);

}

/* ==============================
PROFILE DROPDOWN
============================== */


/* ==============================
PROFILE HEADER
============================== */



/* ==============================
PROFILE MENU
============================== */


/* ==============================
AUTH OVERLAY
============================== */

.auth-overlay{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.45);

    opacity:0;

    visibility:hidden;

    transition:.3s;

    z-index:10010;

}

.auth-overlay.active{

    opacity:1;

    visibility:visible;

}

/* ==============================
AUTH MODAL
============================== */

.auth-modal{

    position:fixed;

    left:50%;

    top:50%;

    width:min(430px,94vw);

    background:#fff;

    border-radius:28px;

    transform:translate(-50%,-50%) scale(.9);

    opacity:0;

    visibility:hidden;

    transition:.30s;

    overflow:hidden;

    z-index:10011;

    box-shadow:0 35px 80px rgba(0,0,0,.18);

}

.auth-modal.active{

    opacity:1;

    visibility:visible;

    transform:translate(-50%,-50%) scale(1);

}
/* =========================================
AUTH HEADER
========================================= */

.auth-header{

    padding:28px 28px 22px;

    background:linear-gradient(135deg,#ff8b1f,#ff6a00);

    color:#fff;

    position:relative;

    text-align:center;

}

.auth-header h2{

    font-size:28px;

    font-weight:700;

    margin-bottom:6px;

}

.auth-header p{

    font-size:14px;

    opacity:.95;

}

.auth-close{

    position:absolute;

    top:18px;

    right:18px;

    width:42px;

    height:42px;

    border:none;

    border-radius:50%;

    background:rgba(255,255,255,.15);

    color:#fff;

    cursor:pointer;

    font-size:22px;

    transition:.25s;

}

.auth-close:hover{

    background:#fff;

    color:var(--primary);

}

/* =========================================
FORM
========================================= */

.auth-form{

    padding:28px;

}

.auth-group{

    margin-bottom:18px;

}

.auth-group label{

    display:block;

    margin-bottom:8px;

    font-size:14px;

    font-weight:600;

    color:#444;

}

.auth-group input,

.auth-group textarea{

    width:100%;

    height:56px;

    border:2px solid #ececec;

    border-radius:16px;

    padding:0 18px;

    font-size:15px;

    color:#222;

    background:#fff;

    transition:.25s;

}

.auth-group textarea{

    height:100px;

    resize:none;

    padding:16px 18px;

}

.auth-group input:focus,

.auth-group textarea:focus{

    border-color:var(--primary);

    outline:none;

    box-shadow:0 0 0 4px rgba(255,122,0,.12);

}

.auth-group input::placeholder,

.auth-group textarea::placeholder{

    color:#9a9a9a;

}
/*=========================================
DISABLE BACKGROUND SCROLL
=========================================*/

body.no-scroll{

    overflow:hidden;

    touch-action:none;

}
/* =========================================
PASSWORD
========================================= */

.password-box{

    position:relative;

}

.password-box input{

    padding-right:58px;

}

.password-toggle{

    position:absolute;

    right:16px;

    top:50%;

    transform:translateY(-50%);

    width:36px;

    height:36px;

    border:none;

    background:transparent;

    display:flex;

    align-items:center;

    justify-content:center;

    color:#777;

    cursor:pointer;

    transition:.25s;

}

.password-toggle svg{

    width:20px;

    height:20px;

    stroke-width:2.2;

}

.password-toggle:hover{

    color:var(--primary);

}



/* =========================================
BUTTON
========================================= */

.auth-submit{

    width:100%;

    height:58px;

    border:none;

    border-radius:18px;

    background:var(--primary);

    color:#fff;

    font-size:17px;

    font-weight:700;

    cursor:pointer;

    transition:.25s;

    box-shadow:0 15px 30px rgba(255,122,0,.25);

}

.auth-submit:hover{

    transform:translateY(-2px);

    background:#ff6a00;

}

.auth-submit:disabled{

    opacity:.7;

    cursor:not-allowed;

    transform:none;

}

/* =========================================
FORGOT PASSWORD
========================================= */

.auth-forgot-row{

    display:flex;

    justify-content:flex-end;

    margin:-10px 0 18px;

}

.auth-forgot-link{

    border:none;

    background:none;

    color:var(--primary);

    font-size:14px;

    font-weight:600;

    cursor:pointer;

}

.auth-forgot-link:hover{

    text-decoration:underline;

}

/* =========================================
SWITCH
========================================= */

.auth-switch{

    text-align:center;

    margin-top:24px;

    font-size:14px;

    color:#666;

}

.auth-switch button{

    border:none;

    background:none;

    color:var(--primary);

    font-weight:700;

    cursor:pointer;

    margin-left:5px;

}

.auth-switch button:hover{

    text-decoration:underline;

}

/* =========================================
ERROR
========================================= */

.auth-error{

    display:none;

    padding:14px 16px;

    margin-bottom:18px;

    background:#ffe7e7;

    color:#d32626;

    border-radius:14px;

    font-size:14px;

    font-weight:600;

}

.auth-error.show{

    display:block;

}

/* =========================================
SUCCESS
========================================= */

.auth-success{

    display:none;

    padding:14px 16px;

    margin-bottom:18px;

    background:#e8fff0;

    color:#1f8b42;

    border-radius:14px;

    font-size:14px;

    font-weight:600;

}

.auth-success.show{

    display:block;

}

/* =========================================
LOADING
========================================= */

.auth-loading{

    pointer-events:none;

    opacity:.75;

}
/* =========================================
MOBILE BOTTOM SHEET
========================================= */

@media (max-width:768px){

    .auth-modal{

        width:100%;

        max-width:none;

        left:0;

        right:0;

        bottom:0;

        top:auto;

        transform:translateY(100%);

        border-radius:28px 28px 0 0;

        max-height:92vh;

        overflow-y:auto;

    }

    .auth-modal.active{

        transform:translateY(0);

    }

   

}

/* =========================================
SMALL PHONES
========================================= */

@media(max-width:420px){

    .auth-header{

        padding:22px 18px 18px;

    }

    .auth-header h2{

        font-size:24px;

    }

    .auth-form{

        padding:20px;

    }

    .auth-group input,

    .auth-group textarea{

        height:52px;

        font-size:14px;

    }

    .auth-group textarea{

        height:90px;

    }

    .auth-submit{

        height:54px;

        font-size:16px;

    }

    .user-btn,

    .user-avatar{

        width:46px;

        height:46px;

        border-radius:14px;

        font-size:19px;

    }

}

/* =========================================
TABLET
========================================= */



/* =========================================
DESKTOP
========================================= */

@media(min-width:1200px){

    .auth-modal{

        width:460px;

    }

}

/* =========================================
SAFE AREA
========================================= */

@supports (padding:max(0px)){

    .auth-modal{

        padding-bottom:max(0px,env(safe-area-inset-bottom));

    }

}

/* =========================================
SCROLLBAR
========================================= */





/* =========================================
ANIMATIONS
========================================= */



@keyframes authPop{

    from{

        opacity:0;

        transform:scale(.92);

    }

    to{

        opacity:1;

        transform:scale(1);

    }

}

@keyframes fadeIn{

    from{

        opacity:0;

    }

    to{

        opacity:1;

    }

}

/* =========================================
HELPERS
========================================= */

.hidden{

    display:none !important;

}

.no-scroll{

    overflow:hidden;

}

.text-center{

    text-align:center;

}

.w-100{

    width:100%;

}

/* =========================================
FOCUS ACCESSIBILITY
========================================= */

.user-btn:focus,

.user-avatar:focus,

.auth-submit:focus,

.auth-close:focus,

.password-toggle:focus{

    outline:3px solid rgba(255,122,0,.25);

    outline-offset:3px;

}
/* ==================================================
USER DRAWER
================================================== */

.user-overlay{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.45);

    opacity:0;

    visibility:hidden;

    transition:.3s;

    z-index:10012;

}

.user-overlay.active{

    opacity:1;

    visibility:visible;

}

.user-drawer{

    position:fixed;

    top:0;

    right:-420px;

    width:400px;

    max-width:100%;

    height:100vh;

    background:#fff;

    overflow-y:auto;

    transition:.35s ease;

    box-shadow:-12px 0 35px rgba(0,0,0,.18);

    z-index:10013;

}

.user-drawer.active{

    right:0;

}

.user-drawer-header{

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:22px;

    padding-top:calc(22px + env(safe-area-inset-top));

    background:var(--primary);

    color:#fff;

}

.user-info{

    display:flex;

    align-items:center;

    gap:16px;

}

.user-avatar-large{

    width:64px;

    height:64px;

    border-radius:50%;

    background:#fff;

    color:var(--primary);

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:28px;

    font-weight:700;

}

.user-details h3{

    margin:0;

    font-size:20px;

}

.user-details p{

    margin-top:4px;

    opacity:.9;

    font-size:14px;

}

.close-user-drawer{

    width:42px;

    height:42px;

    border:none;

    border-radius:50%;

    background:rgba(255,255,255,.18);

    color:#fff;

    font-size:22px;

    cursor:pointer;

}

.user-drawer-menu{

    padding:18px;

    border-bottom:1px solid #eee;

}

.drawer-tab{
    width:100%;
    height:58px;
    border:none;
    background:none;
    border-radius:16px;
    padding:0 18px;

    display:flex;
    align-items:center;
    justify-content:flex-start;

    gap:12px;

    font-size:17px;
    font-weight:600;
    line-height:1;

    cursor:pointer;
    transition:.25s;
}

.drawer-tab svg{
    width:22px;
    height:22px;
    flex-shrink:0;

    display:block;

    stroke-width:2;
}

.drawer-tab span{
    display:flex;
    align-items:center;

    height:22px;

    line-height:1;

    margin-top:-1px;   /* tiny optical adjustment */
}

.drawer-tab:hover{

    background:#fff5eb;

    color:var(--primary);

}

.drawer-tab.active{

    background:var(--primary);

    color:#fff;

}

.logout-tab{

    color:#d93025;

}

.user-drawer-body{

    padding:22px;

}

.drawer-page{

    display:none;

    animation:fadeDrawer .25s ease;

}

.drawer-page.active{

    display:block;

}

.user-drawer-body h2{

    margin-bottom:16px;

}

.user-drawer-body p{

    color:#666;

    line-height:1.7;

}

.user-drawer::-webkit-scrollbar{

    width:7px;

}

.user-drawer::-webkit-scrollbar-thumb{

    background:var(--primary);

    border-radius:20px;

}
.close-user-drawer:hover{

    background:#fff;

    color:var(--primary);

}
@media(max-width:768px){

    .user-drawer{

        width:100%;

        right:-100%;

    }

}
.user-drawer.active{

    right:0;

}
@keyframes fadeDrawer{

    from{

        opacity:0;

        transform:translateY(10px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}
@media (max-width:768px){

    .drawer-tab{
        gap:10px;
    }

    .drawer-tab svg{
        width:20px;
        height:20px;
    }

    .drawer-tab span{
        margin-top:-2px;
    }

}
/*==================================================
PROFILE PAGE
==================================================*/

.profile-box{

    background:#fff;

    border-radius:20px;

    border:1px solid #ececec;

    padding:20px;

}

.profile-avatar-box{

    text-align:center;

    margin-bottom:28px;

}

.profile-avatar-large{

    width:90px;

    height:90px;

    border-radius:50%;

    margin:0 auto 15px;

    background:var(--primary);

    color:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:38px;

    font-weight:700;

    box-shadow:0 12px 25px rgba(255,122,0,.25);

}

.profile-avatar-box h3{

    margin:0;

    font-size:24px;

    color:#222;

    font-weight:700;

}

.profile-avatar-box p{

    margin-top:8px;

    color:#777;

    font-size:14px;

}

.profile-message{

    display:none;

    padding:14px 16px;

    border-radius:14px;

    margin-bottom:18px;

    font-size:14px;

    font-weight:600;

}

.profile-message.success{

    display:block;

    background:#e9ffe9;

    color:#188b2b;

}

.profile-message.error{

    display:block;

    background:#ffe7e7;

    color:#d93025;

}

.profile-group{

    margin-bottom:18px;

}

.profile-group label{

    display:block;

    margin-bottom:8px;

    font-size:14px;

    font-weight:600;

    color:#444;

}

.profile-group input,

.profile-group textarea{

    width:100%;

    border:2px solid #ececec;

    border-radius:16px;

    padding:15px 18px;

    font-size:15px;

    color:#222;

    background:#fff;

    transition:.25s;

}

.profile-group input{

    height:56px;

}

.profile-group textarea{

    resize:none;

    min-height:120px;

}

.profile-group input:focus,

.profile-group textarea:focus{

    outline:none;

    border-color:var(--primary);

    box-shadow:0 0 0 4px rgba(255,122,0,.12);

}

.profile-group input[readonly]{

    background:#f6f6f6;

    cursor:not-allowed;

}

.profile-save-btn{

    width:100%;

    height:58px;

    border:none;

    border-radius:18px;

    background:var(--primary);

    color:#fff;

    font-size:16px;

    font-weight:700;

    cursor:pointer;

    transition:.25s;

    margin-top:8px;

    box-shadow:0 12px 28px rgba(255,122,0,.25);

}

.profile-save-btn:hover{

    background:#f06d00;

    transform:translateY(-2px);

}

.profile-save-btn:disabled{

    opacity:.7;

    cursor:not-allowed;

    transform:none;

}

@media(max-width:768px){

    .profile-box{

        padding:18px;

        border-radius:18px;

    }

    .profile-avatar-large{

        width:78px;

        height:78px;

        font-size:32px;

    }

    .profile-avatar-box h3{

        font-size:22px;

    }

    .profile-group input{

        height:52px;

        font-size:14px;

    }

    .profile-group textarea{

        min-height:100px;

        font-size:14px;

    }

    .profile-save-btn{

        height:54px;

        font-size:15px;

    }

}

@media(max-width:420px){

    .profile-box{

        padding:15px;

    }

    .profile-avatar-large{

        width:70px;

        height:70px;

        font-size:28px;

    }

    .profile-avatar-box h3{

        font-size:20px;

    }

}

/* =========================================
END OF FILE
========================================= */
/*=========================================
MY ORDERS
=========================================*/

.orders-header{

    margin-bottom:20px;

}

.orders-header h2{

    font-size:24px;

    color:#222;

    margin-bottom:6px;

}

.orders-header p{

    color:#777;

    font-size:14px;

}

.orders-loading,

.orders-empty{

    background:#fff;

    border-radius:18px;

    padding:35px 20px;

    text-align:center;

    color:#777;

    font-size:15px;

    box-shadow:0 8px 22px rgba(0,0,0,.05);

}

.orders-container{

    display:flex;

    flex-direction:column;

    gap:18px;

}

.order-card{

    background:#fff;

    border-radius:20px;

    overflow:hidden;

    box-shadow:0 8px 25px rgba(0,0,0,.06);

    transition:.25s;

}

.order-card:hover{

    transform:translateY(-2px);

}

.order-top{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:18px;

}

.order-id{

    font-size:17px;

    font-weight:700;

    color:#222;

}

.order-date{

    margin-top:5px;

    color:#888;

    font-size:13px;

}

.order-status{

    padding:8px 14px;

    border-radius:50px;

    font-size:13px;

    font-weight:700;

}

.status-pending{

    background:#fff3cd;

    color:#856404;

}

.status-preparing{

    background:#dbeafe;

    color:#1d4ed8;

}

.status-delivered{

    background:#dcfce7;

    color:#15803d;

}

.status-cancelled{

    background:#fee2e2;

    color:#dc2626;

}

.order-bottom{

    border-top:1px solid #f1f1f1;

    padding:18px;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.order-total{

    font-size:20px;

    font-weight:700;

    color:var(--primary);

}

.order-details-btn{

    border:none;

    background:var(--primary);

    color:#fff;

    padding:10px 18px;

    border-radius:12px;

    cursor:pointer;

    font-weight:600;

    transition:.25s;

}

.order-details-btn:hover{

    background:#ef6c00;

}

.order-details{

    display:none;

    border-top:1px dashed #ececec;

    padding:18px;

    background:#fafafa;

}

.order-details.active{

    display:block;

}

.order-item{

    display:flex;

    justify-content:space-between;

    margin-bottom:12px;

    font-size:15px;

}

.order-item:last-child{

    margin-bottom:0;

}

.order-summary{

    margin-top:16px;

    padding-top:14px;

    border-top:1px solid #ececec;

    font-weight:700;

    display:flex;

    justify-content:space-between;

}

@media(max-width:768px){

    .order-top,

    .order-bottom{

        flex-direction:column;

        align-items:flex-start;

        gap:12px;

    }

    .order-total{

        font-size:18px;

    }

    .order-details-btn{

        width:100%;

    }

}
.bottom-cart.auth-cart-hidden {
    display: none !important;
}