@import url('https://fonts.googleapis.com/css2?family=Baloo+Bhaina+2&family=Prompt&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    /* font-family: 'Baloo Bhaina 2', sans-serif; */
    font-family: 'Prompt', sans-serif;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
}

@media only screen and (max-width: 980px) {
    .container {
        max-width: 850px;
        margin: 0 auto;
    }
}

/* ขนาดเหรียญ */
.logo-point {
    width: 16px;
    height: 16px;
}

/* top nav */
/* nav {
    padding-top: 1.5rem;
    background: #fff;
} */
.nav-con {
    position: absolute;
    display: flex;
    z-index: 999;
    margin: 2rem;
    right: 200px;
}

@media only screen and (max-width: 1000px) {
    .nav-con {
        right: 0;
    }
}

.basket {
    display: flex;
    background: #FFC600;
    padding: 8px;
    border-radius: 5px;
    /* right: 0; */
}

.basket a {
    display: flex;
}

.basket a img {
    width: 18px;
    height: 18px;
}

/* slide Banner */
.mySlides {
    display: none;
}

.mySlides img {
    vertical-align: middle;
}

/* Slideshow container */
.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: auto;
}

/* The dots/bullets/indicators */
.action {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
}

.dot {
    height: 3px;
    width: 30px;
    margin: 0 3px;
    background-color: #bbb;
    border-radius: 25px;
    display: inline-block;
    transition: background-color 0.8s ease;
}

.active {
    background-color: #fff;
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
    .text {
        font-size: 11px
    }
}


/* header */
.header-con {
    /* max-width: 500px; */
    display: flex;
    justify-content: space-between;
    background-color: #FFC600;
    border-radius: 10px;
    padding: 0.3rem 0.5rem;
    margin: 0.3rem 1rem;
}

.head-left {
    display: flex;
}

.head-right {
    display: flex;
    text-align: center;
}

.head-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    padding: 0 1rem;
}

@media only screen and (max-width: 480px) {
    .header-con {
        padding: 0.3rem 0.5rem;
    }

    .head-item {
        padding: 0 .5rem;
    }
}


.close {
    right: 0;
}

.menu {
    display: flex;
    list-style: none;
    /* text-align: center; */
}

.menu li {
    margin: 0 1rem;
    text-align: center;

}

.menu li a {
    color: #000;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.menu li a h4 {
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
}

.menu-pop {
    position: relative;
    z-index: 999;
    background-position: center;
}

.popup-menu {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    background-color: #fff;
    width: 250px;
    border-radius: 10px;
    /* padding: 1rem; */
    position: absolute;
    list-style: none;
    display: none;
    text-decoration: none;
    background-position: center;
    margin: 0 auto;
    right: 0;
}

.close {
    right: 10px;
    position: absolute;

}

.pop-top {
    padding-bottom: 1rem;
    border-bottom: dashed 2px #D7D7D7;
}

.top-title {
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-title h1 {
    padding: 0.5rem;
}

.point-title {
    display: flex;
    justify-content: center;
    align-items: center;
}

.point-title h5 {
    padding: 0.3rem;
}

.popup-menu li {
    padding: .5rem 0;
}

.point-info {
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.pop-top {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.point-detail {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.point-detail-item {
    display: flex;
    justify-content: space-between;
}

.get {
    color: #64D220;
}

.use {
    color: #FF4343;
}

.pop-info a {
    display: flex;
    text-decoration: none;
    color: #757575;
    align-items: center;
    justify-content: center;
}

.pop-info h4 {
    color: #757575;
}


/* invite */
.head-item a {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    text-decoration: none;
    color: #000;
    align-items: center;
}

/* function */
.function-con {
    display: flex;
    margin: 0 1rem;
    justify-content: center;
    align-items: baseline;
}

.function-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    text-align: center;
}

.function-item a {
    text-decoration: none;
    color: #000;
    font-size: 12px;
}

.function-title {
    text-align: center;
    margin-top: 5px;
}

@media only screen and (max-width: 390px) {
    .container {
        max-width: 380px;
    }

    .function-con {
        margin: 1rem;
    }

    .function-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0.5rem;
    }
}

.function-img {
    display: flex;
    background-color: #FFFBEE;
    padding: 1.5rem;
    border-radius: 100%;
}

.function-img img {
    height: 25px;
    width: 25px;
}


/* main */
main {
    margin-bottom: 6rem;
}

/* new-relese */
.new-relese-title {
    margin: 0.3rem;
    font-size: 18px;
}

/* promotion*/
.promotion-title {
    display: flex;
    justify-content: space-between;
    margin: 0.3rem;
    font-size: 18px;
}

.promotion-right a {
    display: flex;
    text-decoration: none;
    color: #757575;
}

.promotion-right h3 {
    margin-left: 0.3rem;
    color: #757575;
    font-size: 16px;
    font-weight: 400;
}

/* main product */

.product-head {
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
}

.product-head-right a {
    display: flex;
    text-decoration: none;
    color: #757575;
}

.product-head-right h3 {
    margin-left: 0.3rem;
    color: #757575;
    font-size: 16px;
    font-weight: 400;
}

.product-con {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    column-gap: 0.5rem;
    row-gap: 1rem;
    margin: 1rem;
}

@media only screen and (max-width: 480px) {
    .product-con {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 0.5rem;
        row-gap: 1rem;
        margin: 1rem;
    }
}

.product-item {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    padding: 0.3rem;
}

.product-item a {
    text-decoration: none;
    color: #000;
}

.product-img img {
    width: 100%;
    border-radius: 5px;
}

.product-detail {
    font-size: 16px;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    bottom: 0;
}

.product-left {
    display: flex;
    padding-right: 0.3rem;
    font-size: 18px;
    color: #FF4343;
    font-weight: 800;
    align-items: baseline;
}

.product-left span {
    padding-left: 0.3rem;
}

.product-right {
    font-size: 12px;
    color: #757575;
}

/* footer menu */
footer {
    position: fixed;
    z-index: 1030;
    bottom: 0;
    width: 100%;
    /* height: 80px; */
    background-color: #fff;
    align-items: center;
    text-decoration: none;
}

/* @media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
} */

/* @media only screen and (max-width: 400px) {
    .container{
        max-width: 300px;
    }
} */

.footer-menu {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    align-items: center;
}

.btn-image {
    padding: 0.3rem 1rem;
}

.btn-img {
    background-color: #FFC600;
    border-radius: 50%;
    padding: 0.5rem;
    /* position: relative; */
}

.btn-image a {
    text-decoration: none;

}