@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@400;500;700&display=swap');

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;

}
:root {
    --bg: #D0F5FF;
    --primary: #4EA6E5;
    --primaryVar: #89ceff;
    --secondary: #4EA6E5;
    --secondary2: #fd913f;
    --onbg:#064455;
    }
/*MENU STYLE*/
nav {
    background: #FFFFFF;
    padding: 5px;
    -webkit-box-shadow: 4px 5px 4px -2px rgba(0, 0, 0, 0.17);
    box-shadow: 4px 5px 4px -2px rgba(0, 0, 0, 0.17);
    position: fixed; 
    right: 0;
    left: 0;
    z-index: 1030;
    width: 100%;
    /* position: relative; */
 }

ul {
    list-style-type: none;
    margin: 5px;
}

a {
    color: var(--onbg);
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease 0s;
}

.menu li {
    font-size: 16px;
    padding: 10px 13px;
}

.menu li a {
    display: block;
}

.logo {
    height: 47px;
    width: auto;
    cursor: pointer;
}

.fas {
    cursor: pointer;
    margin: 10px 10px 10px 10px;
}

.button-menu.secondary {
    border-bottom: 2px;
    color : white ;
    border-color: var(--primary) solid;
}

.vl {
    border-left: 2px solid var(--onBg);
    height: auto;
    margin-left: 30px;
}

.vl2 {
    border-left: 2px solid var(--onBg);
    height: auto;
    margin-left: 30px;
}

.notification {
    position: relative;
}

.notification .badge {
    position: absolute;
    top: 0px;
    right: -1px;
    border-radius: 50%;
    background-color: rgb(241, 46, 46);
    color: white;
    width: 20px;
    height: 20px;
    font-size: 12px;
}

.cart {
    position: relative;
}

.cart .badge {
    position: absolute;
    top: 0px;
    right: -1px;
    border-radius: 50%;
    background-color: rgb(241, 46, 46);
    color: white;
    width: 20px;
    height: 20px;
    font-size: 12px;
}

.dropbtn {
    background-color: var(--bg);
    padding: 7px 5px;
    font-size: 16px;
    cursor: pointer;
    background: var(--bg);
    border: 2px solid var(--secondary);
    font-weight: bold;
    color: var(--onBg);
    width: 120px;
    background: transparent;
    /* font-family: 'IBM Plex Sans Thai', sans-serif; */
    border-radius: 10px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #FFFFFF;
    min-width: 160px;
    box-shadow: 4px 5px 4px -2px rgba(0, 0, 0, 0.17);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: var(--primaryVar);
    
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: var(--primaryVar);
    border: 2px solid var(--primaryVar);
    transition: all 0.3s ease 0s;
    
}

/*
.item.dropNone{
    display: none;
}
*/


/*moblie menu*/
.menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.toggle {
    order: 1;
}

.item.button-menu {
    order: 2;
}

.item.dropdown {
    order: 2;
}



.item {
    width: 100%;
    text-align: center;
    order: 3;
    display: none;
    background-color: white;
}

.item.active {
    display: block;
}

.item.vl.active {
    display: none;
}

.item.vl2.active {
    display: none;
}

.toggle {
    cursor: pointer;
}

.bars {
    background: var(--primary);
    display: inline-block;
    height: 2px;
    position: relative;
    width: 18px;
}

.bars::before,
.bars::after {
    background: var(--primary);
    content: "";
    display: inline-block;
    height: 2px;
    position: absolute;
    width: 18px;
}

.bars::before {
    top: 5px;
}

.bars::after {
    top: -5px;
}

/*
.dropbtn{
    display: none;
}
*/


/*tablet menu*/
@media all and (min-width: 468px) {
    .menu {
        justify-content: center;
    }

    .logo {
        order: 0;
    }

    .item.button-menu {
        width: auto;
        order: 1;
        display: block;
    }

    .dropdown {
        width: auto;
        order: 1;
        display: block;
    }

    .toggle {
        order: 2;
    }

    .button-menu.secondary {
        border: 0;
    }

    .button-menu a {
        text-decoration: none;
        padding: 7px 5px;
        background: transparent;
        border: 2px solid var(--primary);
        color: var(--onBg);
        border-radius: 10px;
    }

    .button-menu.secondary a {
        
        background: var(--primary);
    }

    .button-menu a:hover {
        transition: 0.3s;
    }

    .button-menu:not(.secondary) a:hover {
        color: white;
        background: var(--primary);
        border: 2px solid var(--primary);
    }

    .button-menu.secondary a:hover {
        background: var(--primaryVar);
        border: 2px solid var(--primaryVar);
    }

    /*
    .dropbtn{
        display: block;
    }
*/
}

/*window menu*/
@media all and (min-width: 768px) {
    .item {
        display: block;
        width: auto;
    }

    .item.button-menu {
        width: 120px;
        order: 1;
        display: block;
    }

    .toggle {
        display: none;
    }

    .logo {
        order: 0;
    }

    .button-menu {
        order: 2;
    }

    .item {
        order: 1;
    }


    .menu li.button-menu {
        padding-right: 0px;
    }

}