@import url('https://fonts.googleapis.com/css2?family=Spartan:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Spartan', sans-serif;
}

h1 {
    font-size: 50px;
    line-height: 64px;
    color: #222;
}

h2 {
    font-size: 46px;
    line-height: 54px;
    color: #222;
}

h4 {
    font-size: 20px;
    color: #222;
}

h6 {
    font-size: 12px;
    font-weight: 700px;

}

p {
    font-size: 16px;
    color: #556865;
    margin: 15px 0 20px 0;
}

.section-p1 {
    padding: 40px 80px;
   background-position: top 50% right 0;
}

.section-p2 {
    padding: 40px 80px;
   background-position: top 10% right 0;
}

.section-m1 {
    margin: 40px 0;
}

button.btn-button {
    font-size: 14px;
    font-weight: 600px;
    padding: 15px 30px;
    color: #000;
    background-color: #eee;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    outline: none;
    transition: 0.2s;

}

button.white {
    font-size: 13px;
    font-weight: 600px;
    padding: 11px 18px;
    margin-right: 80%;
    cursor: pointer;
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
    outline: none;
    transition: 0.2s;
}

body {
    width: 100%;
}



/* Header Start */

#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 80px;
    background: rgb(228, 225, 236);/*#E3E6F3;*/
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    z-index: 999;
    position: sticky;
    top: 0;
    left: 0;

}

#navbar {
    display: flex;
    justify-content: center;
    align-items: center;
}

#navbar li {
    list-style: none;
    padding: 0 20px;
    position: relative;
}
#navbar li a {
    text-decoration: none;
    font-size: 17px;
    font-weight: 600px;
    color: #1a1a1a;
    transition: 0.3s ease;
}

#navbar li a:hover,
#navbar li a.active {
    color: #d836c2;
}

#navbar li a.active::after,
#navbar li a:hover::after {
    content: "";
    width: 30%;
    height: 2px;
    background: #d836c2;
    position: absolute;
    bottom: -4px;
    left: 20px;
}

#mobile {
    display: none; /* ครั้งแรกเป็น flex พอหลังจาก copy==> @media แล้วให้เปลี่ยนเป็น none */
    align-items: center;
}

#close {
    display: none;
}

/* Home Page */

#hero {
    background-image: url('../img/logo/MNT3.jpg');
    height: 80vh;
    width: 100%;
    background-size: cover;
    background-position: top 25% right 0; /*top 25% bottom 25% right 0;*/
    padding: 0 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /*border: 1px solid black;*/
}

#hero h4 {
    padding-bottom: 15px;
}

#hero h1 {
    color: #d836c2;
}

#hero button {
    background-image: url('../img/bg/hero-button-bg.png');
    background-color: transparent;
    color: #d836c2;
    border: 0;
    padding: 14px 80px 14px 65px;
    background-repeat: no-repeat;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
}

#feature {
    /*background-image: url('../img/bg/circuit-bg.png');
    background-repeat: no-repeat;
    background-color: transparent;*/
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

#feature .fe-box {
    width: 180px;
    text-align: center;
    padding: 25px 15px;
    box-shadow: 20px 20px 34px rgba(0, 0, 0, 0.03);
    border: 1px solid #eee;
    border-radius: 4px;
    margin: 15px 0;
}

#feature .fe-box:hover {
    box-shadow: 10px 10px 54px rgba(70, 62, 221, 0.01);

}
   
#feature .fe-box img {
    width: 100%;
    margin-bottom: 10px;
}

#feature .fe-box h6 {
    display: inline-block;
    padding: 9px 8px 6px 8px;
    line-height: 1;
    background-color: #fddde4;
    color: #088178;
    border-radius: 4px;
}

#feature .fe-box:nth-child(2) h6 {
    background-color: #cdebbc;
}
#feature .fe-box:nth-child(3) h6 {
    background-color: #d1e8f2;
}
#feature .fe-box:nth-child(4) h6 {
    background-color: #cdd4f8;
}
#feature .fe-box:nth-child(5) h6 {
    background-color: #f6dbf6;
}
#feature .fe-box:nth-child(6) h6 {
    background-color: #fff2e5;
}

#product1 {
    text-align: center;
}

#product1 .pro-container {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    flex-wrap: wrap;
}

#product1 .pro {
    width: 23%;
    min-width: 250px;
    padding: 10px 12px;
    border: 1px solid #eee;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.02);
    margin: 15px 0;
    transition: 0.2s ease;
    position: relative; 
}

#product1 .pro2 {
    width: 17%;
    min-width: 150px;
    padding: 10px 12px;
    border: 1px solid #eee;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.02);
    margin: 15px 0;
    transition: 0.2s ease;
    position: relative; 
}


#product1 .pro:hover {
    box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.06);

}

#product1 .pro img {
    width: 100%;
    border-radius: 20px;
}

#product1 .pro .des {
    text-align: start;
    padding: 10px 0;
}

#product1 .pro .des span {
    color: #606063;
    font-size: 14px;
}

#product1 .pro .des h5 {
    color: #1a1a1a;
    font-size: 16px;
    padding: 7px;
}

#product1 .pro .des i {
    color: rgb(243, 181, 25);
    font-size: 12px;
}

#product1 .pro .des h4 {
    color: #088178;
    font-size: 17px;
    font-weight: 700px;
    padding-top: 7px;
}

#product1 .pro .cart {
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background-color: rgb(213, 233, 236);
    font-weight: 500px;
    color: rgb(60, 63, 63);
    border: 1px solid #eee;    
    bottom: 20px;
    right: 10px;
    position: absolute; /* position: absolute; ใส่ absolute ที่ตำแหน่งนี้(chlid element) ==> จะต้องใส่ relative ที่ parent element ด้วย */
}

#banner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: url(../img/bg/cta-bg.jpg);
    width: 100%;
    height: 40vh;
    background-size: cover;
    background-position: center; 
}

#banner h4 {
    /* color: #eee; */
    font-size: 25px; 
}

#banner h2 {
    /* color: #eee; */
    /* font-size: 30px;  */
    padding: 10px 0;
}

#banner h2 span {
    color: rgb(233, 24, 70); 
}

#banner button:hover {
    background-color:rgb(49, 163, 180);
    color: #fff;
}

#sm-banner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

#sm-banner .banner-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex start;
    background-image: url('../img/bg/flowers-g26777a66e_1920.jpg');
    min-width: 630px;
    height: 50vh;
    background-size: cover;
    background-position: center;
    padding: 30px;
}

#sm-banner .banner-box2 {
    background-image: url('../img/bg/cat-gc650cadd9_1280.jpg');

}

#sm-banner .banner-box h4 {
    color: #fff;
    font-size: 20px;
    font-weight: 300px;
}

#sm-banner .banner-box h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 800px;
}

#sm-banner .banner-box span {
    color: #fff;
    font-size: 14px;
    font-weight: 500px;
    padding-bottom: 15px;
}

 #sm-banner .banner-box:hover button {   /*ชี้ไปที่รูปก็จะ hover เลย */
        background-color:rgb(49, 163, 180);
        color: #000;
        border: 1px solid rgb(49, 163, 180);
} 
 /* ถ้าเขียนแบบนี้ จะชี้ไปที่ ปุ่มกด ถึงจะ hover 
    button.white:hover { 
    background-color:rgb(49, 163, 180);
    color: #000;
    border: 1px solid rgb(49, 163, 180);

}*/
#banner3 {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 80px;
}



#banner3 .banner-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background-image: url('../img/bg/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    min-width: 30%;
    height: 30vh;
    padding: 20px;
    margin-bottom: 20px;
}

#banner3 h2 {
    color: #fff;
    font-size: 22px;
    font-weight: 900;
}

#banner3 h3 {
    color: rgb(235, 122, 137);
    font-size: 15px;
    font-weight: 800;
}

#banner3 .banner-box2 {
    background-image: url('../img/bg/beach-g29c976256_1920.jpg');
}

#banner3 .banner-box3 {
    background-image: url('../img/bg/flowers-g2d96d5d4e_1920.jpg');
}

#newsletter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background-image: url('../img/bg/black-gf5d63da69_640.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    padding: 40px 80px;
    background-position: top 50% right 0;
    margin: 40px 0;
    background-color: #041e42;
}

#newsletter .newstext h4 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}
#newsletter .newstext p {
    color: #cdebbc;
    font-size: 14px;
    font-weight: 600;
}
#newsletter .newstext p span {
    color: #ffbd27;
}

#newsletter .form input {
    height: 3rem;
    padding: 0 1.25em;
    font-size: 14px;
    width: 100%;
    border: 1px solid transparent;
    border-radius: 4px;
    outline: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

#newsletter button {
    background-color:rgb(229, 145, 156);
    color: #1a1a1a;
    height: 3rem;
    width: 40%;
    white-space: nowrap;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

#newsletter button:hover {
    background-color:rgb(49, 163, 180);
    color: #fff;
}

#newsletter .form {
    display: flex;
    width: 40%;
}

footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

footer .col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
}

footer .logo {
    margin-bottom: 30px;
}

footer h4 {
    font-size: 14px;
    padding-bottom: 20px;
}

footer p {
    font-size: 13px;
    margin: 0 0 8px 0;
}

footer a {
    font-size: 13px;
    text-decoration: none;
    color:rgb(71, 76, 77);
    line-height: 1.5;
}

footer .follow {
    margin-top: 20px;
}

footer .follow i {
    color: #465b52;
    padding-right: 4px;
    cursor: pointer;
}

/* footer .install .row img { 
    border: 1px solid pink;
    border-radius: 6px;
}*/

footer .install img { 
    margin: 10px 0 15px 0;
}

footer .follow i:hover,
footer a:hover {
    color:rgb(231, 65, 195);
}

footer .copyright {
    width: 100%;
    text-align: center;
}


/* Shop Page */
#page-header {
    background-image: url('../img/bg/spinach-bg.jpg');
    width: 100%;
    height: 40vh;
    background-size: cover;
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 14px;
}

#page-header h2,
#page-header p {
    color: #fff;
}

#pagination {
    text-align: center;
}

#pagination a {
    text-decoration: none;
    background-color:rgb(207, 84, 166);
    padding: 15px 20px;
    border-radius: 4px;
    color: #fff;
    font-weight: 600;
}

#pagination a i {
    font-size: 16px;
    font-weight: 600;
}

/* Single Product */
#prodetails {
    display: flex;
    margin-top: 20px;
}

#prodetails .single-pro-image {
    width: 40%;
    margin-right: 50px;
}

.small-img-group {
    display: flex;
    justify-content: space-between;
}

.small-img-col {
    flex-basis: 24%;
    cursor: pointer;
}

#prodetails .single-pro-details {
    width: 50%;
    padding-top: 30px;
}

#prodetails .single-pro-details h4 {
    padding: 40px 0 20px 0;
}

#prodetails .single-pro-details h2 {
    font-size: 26px;
}

#prodetails .single-pro-details select {
    display: block;
    padding: 5px 10px;
}

#prodetails .single-pro-details input {
    width: 50px;
    height: 47px;
    padding-left: 10px;
    font-size: 16px;
    margin-right: 10px;
    margin-top: 10px;
}

#prodetails .single-pro-details input:focus {
    outline: none;
}

#prodetails .single-pro-details button {
    background:rgb(231, 65, 195);
    color: #eee;
}

#prodetails .single-pro-details span {
    line-height: 25px;
}



/* Blog Page */
#page-header.blog-header {
    background-image: url("../img/bg/cat-gc650cadd9_1280.jpg");
}

#blog {
    padding: 150px 150px 0px 150px;
}

#blog .blog-box {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    padding-bottom: 90px;

}

#blog .blog-img {
    width: 50%;
    margin-right: 40px;
}

#blog img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

#blog .blog-details {
    width: 50%;
}

#blog .blog-details a {
    text-decoration: none;
    font-size: 14px;
    color: #000;
    font-weight: 700;
    position: relative;
    transition: 0.3s;
}

#blog .blog-details a::after {
    content: "";
    width: 50px;
    height: 1px;
    background-color: #000;
    position: absolute;
    top: 6px;
    right: -60px;
}

#blog .blog-details a:hover {
    color:rgb(207, 84, 166);
}

#blog .blog-details a:hover::after {
    background-color:rgb(207, 84, 166);
}

#blog .blog-box h1 {
    position: absolute;
    top: -40px;
    left: 0;
    font-size: 70px;
    font-weight: 700;
    color:#c9cbce;
    z-index: -9;
}





/* About Page */
#page-header.about-header {
    background-image: url('../img/bg/flowers-g2d96d5d4e_1920.jpg');
}

#about-head {
    display: flex;
    align-items: center;
}

#about-head img {
    width: 50%;
    height: auto;
}

#about-head div {
    padding-left: 40px;
}

#about-app {
    text-align: center;
}


#about-app .video {
    width: 70%;
    height: 100%;
    margin: 30px auto 0 auto;
}

#about-app .video video {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    border: 1px solid black;
}


/* Contact Page */

#contact-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#contact-details .details {
    width: 40%;
}

#contact-details .details span,
#form-details form span {
    font-size: 12px;
}

#contact-details .details h2,
#form-details form h2 {
    font-size: 26px;
    line-height: 35px;
    padding: 20px 0;
}

#contact-details .details h3 {
    font-size: 26px;
    padding-bottom: 15px;
}

#contact-details .details li {
    list-style: none;
    display: flex;
    padding: 10px 0;
}

#contact-details .details li i {
    font-size: 14px;
    padding-right: 22px;
}

#contact-details .details li p {
    margin: 0;
    font-size: 14px;
}

#contact-details .details .map {
    width: 55%;
    height: 400px;
}

#contact-details .details .map iframe {
    width: 100%;
    height: 100%;
}

#form-details form {
    width: 65%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#form-details form input,
#form-details form textarea {
    width: 100%;
    padding: 12px 15px;
    outline: none;
    margin-bottom: 20px;
    border: 1px solid #e1e1e1;
}

#form-details form button {
    background-color:rgb(207, 84, 166);
    color:#fff;
}

/* Cart Page */

#cart {
    overflow-x: auto;
}

#cart table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    white-space: nowrap;
}

#cart table img {
    width: 70px;
}

#cart table td:nth-child(1) {
    width: 100px;
    text-align: center;
}

#cart table td:nth-child(2) {
    width: 150px;
    text-align: center;
}

#cart table td:nth-child(3) {
    width: 250px;
    text-align: center;
}

#cart table td:nth-child(4),
#cart table td:nth-child(5),
#cart table td:nth-child(6){
    width: 150px;
    text-align: center;
}

#cart table td:nth-child(5) input {
    width: 70px;
    padding: 10px 5px 10px 15px;
}

#cart table thead {
    border: 1px solid #e2e9e1;
    border-left: none;
    border-right: none;
}

#cart table thead td {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    padding: 18px 0;
}

#cart table tbody tr td {
    padding-top: 15px;
}

#cart table tbody  td {
    font-size: 13px;
}

#cart-add {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

#coupon {
    width: 50%;
    margin-bottom: 30px;
}

#coupon h3,
#subtotal h3 {
    padding-bottom: 15px;
}

#coupon input {
    padding: 10px 20px;
    outline: none;
    width: 60%;
    margin-right: 10px;
    border: 1px solid #e2e9e1;
}

#coupon button,
#subtotal button {
    background-color:rgb(207, 84, 166);
    color: #fff;
    padding: 12px 20px;
}

#subtotal {
    width: 50%;
    margin-bottom: 30px;
    border: 1px solid #e2e9e1;
    padding: 30px;
}

#subtotal table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 20px;
}

#subtotal table td {
    width: 50%;
    border: 1px solid #e2e9e1;
    padding: 10px;
    font-size: 13px;
}








/* Start Media Query */

@media (max-width:799px) {
    .section-p1 {
        padding: 40px 40px;
    }

    #navbar {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        position: fixed;
        top: 0;
        right: -300px;
        height: 100vh;
        width: 300px;
        background-color: #E3E6F3;
        box-shadow: 0 40px 60px rgba(0, 0, 0, 0.1);
        padding: 80px 0 0 10px;
        transition: 0.3s;
    }

    #navbar.active {
        right: 0px;
    }

    #navbar li {
        margin-bottom: 25px;
    }

    #mobile {
        display: flex;
        align-items: center;
    }

    #mobile i {
        color: #1a1a1a;
        font-size: 24px;
        padding-left: 20px;
    }

    #close {
        display: initial;
        position: absolute;
        top: 30px;
        left: 30px;
        color: #222;
        font-size: 24px;
    }

    #lg-bag {
        display: none;
    }

    #hero {
        height: 30vh;
        background-position: top 10% right 30% ;
        padding: 0 80px;
        /* border: 1px solid black; */
    }

    #feature {
        justify-content: center;
    }

    #feature .fe-box {
        margin: 15px 15px;
    }

    #product1 .pro-container {
        justify-content: center;
    }

    #product1 .pro {
        margin: 15px;
    }

    #banner {
        height: 20vh;
    }

    #sm-banner .banner-box {
        min-width:100%;
        height: 30vh;
    }

    #banner3 {
        padding: 0 40px;
    }

    #banner3 .banner-box {
        width: 28%;
    }

    #newsletter .form {
        width: 70%;
    }

    /* Contact Page */

    #form-details form {
        width: 55%;
    }
}








@media (max-width: 477px) {
    .section-p1 {
        padding: 20px;
    }

    #header {
        padding: 10px 30px;
    }

    #hero {
        background-position: 55%;
        padding: 0 20px;
    }

    #feature {
        justify-content: space-between;
    }

    #feature .fe-box {
        width: 155px;
        margin: 0 0 15px 0;
    }

    #product1 .pro {
        width: 100%;
    }

    #banner {
        height: 40vh;
    }

    #sm-banner .banner-box {
        height: 40vh;
    }

    #sm-banner .banner-box2 {
        margin-top: 20px;
    }

    #banner3 {
        padding: 0 20px;
    }

    #banner3 .banner-box {
        width: 100%;
    }

    #newsletter {
        padding: 20px 40px;
    }

    #newsletter .form {
        width: 100%;
    }
    footer .copyright {
        text-align: start;
    }

/* single Product */
    #prodetails {
        display: flex;
        flex-direction: column;
} 
    #prodetails .single-pro-image {
        width: 100%;
        margin-right: 0px;
    }
    #prodetails .single-pro-details {
        width: 100%;
    }

/* Blog Page */
#blog {
    padding: 100px 20px 0px 20px;
}

#blog .blog-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#blog .blog-img {
    width: 100%;
    margin-right: 0px;
    margin-bottom: 30px;
}

#blog .blog-details {
    width: 100%;
}

/* about page */

#about-head {
    flex-direction: column;
}

#about-head img {
    width: 100%;
    margin-bottom: 20px;
}

#about-head div {
    padding-left: 0px;
}

#about-app .video {
    width: 100%;
}

/* Contact Page */

#contact-details {
    flex-direction: column;
}

#contact-details .details {
    width: 100%;
    margin-bottom: 30px;
}

#contact-details .map {
    width: 100%;
}

#form-details form {
    width: 100%;
    margin-bottom: 30px;
}

/* Cart Page */

#cart-add {
    flex-direction: column;
}

#coupon {
    width: 100%;
}

#subtotal {
    width: 100%;
    padding: 20px;
}

}




