/* common */
* {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    text-align: justify;
    color: dimgray;
    box-sizing: border-box;
}

.warpper {
    width: 100%;
    margin: auto;
}

.clear {
    clear: both;
}

/* header */
#header {
    padding: 0 0.5vw;
}

/* navbar */
#navbar {
    padding: 0 0.5vw;
    background-color: #272727;
    background-clip: content-box;
}

#navbar ul {
    margin: 0;
    padding-left: 0;
    padding-top: 15px;
    padding-bottom: 15px;
    list-style: none;
}

#navbar ul li {
    margin: 15px;
    display: inline;
}

#navbar ul li a {
    font-size: 15px;
    letter-spacing: 1px;
    color: white;
    text-decoration: none;
}

#navbar ul li a:hover {
    color: red;
    cursor: pointer;
}

/* carousel */
#carousel {
    height: 22.5vw;
    margin-top: 0.5vw;
    padding: 0 0.5vw;
    background-image: url('./img/slider_1.jpg');
    background-size: cover;
    background-position: center center;
    background-clip: content-box;
}

/* intro */
#intro {
    padding: 0 0.5vw;
    background-clip: content-box;
}

#intro .description {
    margin: auto;
    padding: 0.5vw 0;
    font-size: 1vw;
    line-height: 1.3vw;
}

#intro .company-name {
    font-weight: bold;
    color: red;
}

#intro .product-left,
#intro .product-right {
    width: 50%;
    padding: 0 0.5vw;
    float: left;
    height: 36vw;
}

#intro .product-item {
    padding: 0.5vw;
    float: left;
}

#intro .product-item-half {
    width: 50%;
    height: 14vw;
}

#intro .product-item-full {
    width: 100%;
    height: 22vw;
}

#intro .product-item-dub {
    width: 100%;
    height: 18vw;
}

#intro .product-left img {
    width: 100%;
    max-height: 100%;
}

#intro .product-right img {
    width: 100%;
    max-height: 100%;
}

/* product */
#product .item {
    width: 25%;
    padding: 0 0.5vw;
    float: left;
}

#product .title {
    margin: 0;
    padding: 0.5vw 0;
    text-align: center;
    font-family: 'MS Reference Sans Serif';
    font-size: 1.6vw;
    font-weight: 500;
    letter-spacing: 0.1vw;
}

#product .item img {
    width: 100%;
}

#product .item-title {
    margin: 0.5vw 0;
    font-family: 'MS Reference Sans Serif';
    font-size: 1.5vw;
    font-weight: normal;
}

#product .item-content {
    margin: 0;
    font-size: 0.8vw;
}

#product .item-btn {
    width: 80px;
    height: 30px;
    margin: 10px 0;
    border: 0;
    border-radius: 5px;
    text-align: center;
    font-family: 'MS Reference Sans Serif';
    color: white;
    background-color: rgba(217, 87, 86, 1);
}

#product button:hover {
    background-color: rgba(217, 87, 86, 0.7);
    cursor: pointer;
}

/* banner */
#banner {
    height: 20vw;
    position: relative;
    background-image: url('./img/nature.jpg');
    background-size: cover;
    background-position: center center;
    background-clip: content-box;
}

#banner .saleoff {
    width: 12.5vw;
    height: 12.5vw;
    position: absolute;
    left: 5%;
    top: 10%;
    border-radius: 50%;
    background-color: rgba(211, 29, 37, 0.5);
}

#banner .saleoff h2,
#banner .saleoff p {
    margin: 0;
    text-align: center;
    color: white;
}

#banner .saleoff h2 {
    margin-top: 2vw;
    font-family: 'MS Reference Sans Serif';
    font-size: 1.6vw;
    font-weight: normal;
}

#banner .saleoff p:nth-child(2) {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 4.5vw;
}

#banner .saleoff p:nth-child(3) {
    font-size: 1vw;
}

/* service */
#service {
    width: 90%;
    margin: 1vw auto;
    padding: 0 0.5vw;
}

#service .item {
    width: 33.333333%;
    text-align: center;
    float: left;
}

#service .item h2,
#service .item p {
    margin: 0;
    text-align: center;
}

#service .item h2 {
    font-size: 1.2vw;
    font-weight: 400;
}

#service .item p {
    margin-top: 0.3vw;
    font-size: 0.7vw;
}

#service .item img {
    width: 2.5vw;
}

/* footer */
#footer {
    margin-top: 20px;
    background-color: black;
    background-clip: content-box;
}

#footer h2,
#footer p {
    margin: 0;
    text-align: center;
    color: white;
}

#footer h2 {
    padding-top: 15px;
    padding-bottom: 5px;
    font-size: 27px;
    font-weight: 400;
    letter-spacing: 1px;
}

#footer p {
    padding-bottom: 10px;
    font-size: smaller;
    line-height: 25px;
}

/* reponsive */
@media (min-width:1281px) {
    .warpper {
        width: 1281px;
    }
}

@media (max-width:1025px) {

    /* header */
    #header {
        padding: 0 1vw;
    }

    /* navbar */
    #navbar {
        padding: 0 1vw;
    }

    /* carousel */
    #carousel {
        padding: 0 1vw;
    }

    /* intro */
    #intro {
        margin-top: 10px;
        margin-bottom: 5px;
        padding: 0;
    }

    #intro .description span {
        display: none;
    }

    #intro .description:after {
        content: 'SẢN PHẨM';
    }

    #intro .description {
        padding: 1vw 1vw;
        font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
        font-size: large;
        font-weight: bold;
        color: black;
    }

    #intro .main {
        display: none;
    }

    /* product */
    #product {
        padding: 0 0.5vw;
    }

    #product .item {
        width: 50%;
    }

    #product .title {
        display: none;
    }

    #product .item-title {
        display: none;
    }

    #product .item-content {
        display: none;
    }

    /* banner */
    #banner {
        padding: 0 1vw;
    }

    /* service */
    #service {
        display: none;
    }

    /* footer */
    #footer {
        padding: 0 1vw;
    }
}

@media (max-width:600px) {

    /* header */
    #header img {
        max-width: 100%;
    }

    /* navbar */
    #navbar ul li {
        display: list-item;
    }

    /* product */
    #product .item {
        width: 100%;
    }
}