@font-face {
    font-family: 'Pretendard-Regular';
    src: url('https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

.m_header {
    display: none;
}

.m_header_hidden {
    display: none;
}

.m_search_hidden {
    display: none;
}

.m_menu_hidden {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    padding: 0 100px;
    background: #262626;
    width: 100%;
    box-sizing: border-box;
    z-index: 40;
}

.m_toggle_submenu {
    cursor: pointer;
}

.m_menu_hidden nav {
    float: right;
    display: none;
}

.m_menu_hidden nav ul {
    margin: 0;
    padding: 0;
    display: flex;
}

.m_menu_hidden nav ul li {
    list-style: none;
    position: relative;
}

.m_menu_hidden nav ul li a {
    height: 50px;
    line-height: 50px;
    padding: 0 20px;
    color: #FFF;
    text-decoration: none;
    display: block;
    font-family: 'Pretendard-Regular';
}

.m_menu_hidden nav ul li a:hover,
.m_menu_hidden nav ul li a.turnOn {
    color: #FFF;
    background: #2196F3;
}

.m_menu_hidden nav ul li ul {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    width: 100vw;
    background: #515151;
    opacity: 0;
    max-height: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    overflow: hidden;
    text-align: center;
}

.m_menu_hidden nav ul li ul li {
    display: inline-block;
    margin: 0 auto;
}

.m_menu_hidden nav ul li ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 20px;
    color: #FFF;
    text-decoration: none;
    font-family: 'Pretendard-Regular';
}

.m_menu_hidden nav ul li.m_open > ul {
    display: block;
    max-height: 400px;
    opacity: 1;
}

.m_menu_hidden nav ul li.m_open > a {
    background: #2196F3;
}


@media (max-width: 1400px) {

    .m_header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        height: 60px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 20px;
        background-color: white;
        z-index: 100;
    }

    .m_header_hidden {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        height: 60px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 20px;
        background-color: #4286f4;
        color: #fff;
        z-index: 100;
    }

    .m_header_hidden input {
        background: transparent;
        border: none;
        border-bottom: 2px solid #fff;
        height: 40px;
        padding: 3px 5px;
        width: 100%;
        font-size: 1.2rem;
        color: white;
        font-family: 'Pretendard-Regular';
    }

    .m_header_hidden input::placeholder {
        color: #deeaff;
    }

    .m_header_hidden input:-ms-input-placeholder {
        color: #deeaff;
    }

    .m_header_hidden input::-moz-placeholder {
        color: #deeaff;
        opacity: 1;
    }

    .m_header_hidden input:-webkit-input-placeholder {
        color: #deeaff;
    }

    .m_logo {
        background-image: url("/new_asset/new_logo.svg");
        display: inline-block;
        width: 180px;
        height: 60px;
        background-size: 100% 100%;
        vertical-align: top;
    }

    .m_menu_search {
        display: flex;
        width: 80%;
    }

    .m_menu_search form {
        display: flex;
    }

    .m_menu_search form > div {
        margin: auto 5px;
    }

    .m_menu_search > form:first-child {
        width: 100%;
    }

    @media (max-width: 768px) {
        .m_logo {
            width: 150px;
        }

        .m_menu_search {
            width: 70%;
        }
    }

    @media (max-width: 320px) {
        .m_header_hidden input {
            font-size: 1rem;
        }

        .m_logo {
            width: 120px;
        }

        .m_menu_search {
            width: 65%;
        }
    }

    .m_menu_icon div {
        cursor: pointer;
        margin: auto 3px;
        padding: 0px 3px;
    }

    .m_search_hidden {
        background-color: #fff;
        width: 100vw;
        height: 100vh;
        position: fixed;
        z-index: 50;

    }


        .m_menu_hidden {
            display: block;
            padding: 0 20px;
        }

        .m_menu_hidden nav {
            display: block;
            position: absolute;
            width: 100%;
            height: calc(100vh - 50px);
            background: #333;
            top: 50px;
            right: -100%;
            overflow-y: auto;
            transition: right 0.5s ease-in-out;
        }

        .m_menu_hidden nav::-webkit-scrollbar {
            display: none;
        }

        .m_menu_hidden nav.turnOn {
            right: 0;
        }

        .m_menu_hidden nav ul {
            display: block;
            text-align: center;
        }

        .m_menu_hidden nav ul li {
            position: relative;
        }

        .m_menu_hidden nav ul li ul {
            position: static;
            box-shadow: none;
        }

        .m_menu_hidden nav ul li ul li {
            display: block;
        }

        .m_menu_hidden nav ul li a {
            border-bottom: 1px solid rgba(0, 0, 0, 0.2);
        }
    }

.m_header_info {
    background-color: #757575;
    padding: 20px;
    font-family: 'Pretendard-Regular';
    max-width: 100%;
    margin: 0 auto;
}

.header-user-info {
    text-align: center;
}

.user-greeting {
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
}

.user-details {
    font-size: 14px;
    color: #333;
}

.user-details div {
    margin-bottom: 5px;
}

.user-type, .user-balance {
    color: #ffffff;
    font-weight: bold;
}

.user-orders {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
}

.order-box {
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 8px;
    width: 30%;
    text-align: center;
}

.order-type {
    display: block;
    font-size: 12px;
    color: #333;
}

.order-count {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.m_logout {
    margin-top: 10px;
}

.m_logout a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}

@media (max-width: 600px) {
    .user-orders {
        flex-direction: column;
    }

    .order-box {
        width: 100%;
        margin-bottom: 10px;
    }
}


.m_header_login {
    text-align: center;
    margin: 0 auto;
    max-width: 100%;
    padding: 20px;
    background-color: #c7c7c7;
}

.m_btn {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Pretendard-Regular';
    cursor: pointer;
    color: #fff;
    text-align: center;
}

.mlogin-btn {
    background-color: #4a4a4a; /* Dark grey for login */
}

.mnaver-login-btn {
    background-color: #2db400; /* Naver green */
    color: #fff;
}

.mkakao-login-btn {
    background-color: #ffe812; /* Kakao yellow */
    color: #3c1e1e;
    font-weight: bold;
}

.naver-icon {
    font-size: 20px;
    font-weight: bold;
    margin-right: 10px;
}

.kakao-icon {
    font-size: 18px;
    margin-right: 10px;
}

.m_links {
    margin-top: 20px;
    font-size: 14px;
    color: #333;
}

.m_links a {
    color: #333;
    text-decoration: none;
    margin: 0 5px;
    font-weight: bold;
}

.m_links a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .m_btn {
        font-size: 14px;
        padding: 12px;
    }

    .naver-icon, .kakao-icon {
        font-size: 16px;
    }
}