:root {
    --CTA: #6D9277;
    --text: #385B4F;
    --background: #F2F3EE;
    --transparent: rgba(235,234,234,0.8);
}

body { margin: 0; }

.main-content { height: auto; min-width: 0; }

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 400px;
    padding: 30px;
    background: url('images/hero.jpg') no-repeat top / cover;
}

.hero h1, .hero h2 {
    color: #03382d;
    overflow-wrap: break-word;
}

.hero h1 {
    font: bold 2.5rem/1.2 'Trirong', sans-serif;
    margin-bottom: 0;
}

.hero h2 {
    font: 400 1rem 'Poppins', sans-serif;
    margin-bottom: 10px;
}

.product {
    display: flex;
    height: auto;
    min-width: 0;
    padding: 40px 0;
    background-color: var(--background);
}

.product-image {
    flex: 1 1 45%;
    min-width: 0;
    padding: 40px;
}

.product-image img {
    display: block;
    width: 100%;
    max-width: none;
    max-height: 600px;
    object-fit: cover;
    object-position: right;
    margin: 0;
    border-radius: 40px;
}
    
.product-description {
    flex: 1 1 55%;
    min-width: 0;
    padding: 30px;
}

.product-description h3, .product-description h4 {
    font: bold 1.5rem 'Trirong', sans-serif;
    color: var(--text);
    margin: 0;
}

.product-description h4 {
    font: bold 1rem 'Trirong', sans-serif;
    margin: 0;
}

.product-description p {
    font: 1rem 'Poppins', sans-serif;
    color: var(--text);
}

.product-description .ingredients { margin-bottom: 40px; }

.product-description .btn {
    margin-top: 40px;
    padding: 15px 30px;
    border: 0;
    border-radius: 30px;
    background: var(--CTA);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
}

.product-description .btn:hover {
    background: var(--text);
    color: #fff;
    transition: background-color .3s, color .3s;
}

@media (max-width: 600px) {
    .hero {
        min-height: 420px;
        padding: 90px 20px 35px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .product {
        padding: 35px 15px;
    }

    .product-description {
        width: 100%;
        padding: 20px 18px;
    }

    .product-description p {
        line-height: 1.7;
    }

    .product-description .btn {
        display: inline-block;
        margin-top: 25px;
    }
}

@media (max-width: 900px) {
    .hero {
        height: auto;
        min-height: 450px;
        padding: 100px 40px 50px;
    }

    .product {
        flex-direction: column;
        align-items: center;
        padding: 50px 30px;
    }

    .product-image {
        width: min(100%, 520px);
        padding: 0;
    }

    .product-image img {
        display: block;
        width: 100%;
        max-width: none;
        height: auto;
        margin: 20px 0;
    }

    .product-description {
        width: min(100%, 680px);
        padding: 20px;
    }
}

@media (min-width:1600px) {
    .product {
        flex-direction: row;
        align-items: center;
        padding: 40px 250px;
    }

    .product-image img {
        width: 100%;
        max-width: none;
        max-height: 600px;
        margin: 0;
    }

    .product-description {
        width: 70%;
        padding: 30px;
    }

    .hero {
        padding: 0 300px;
    }

    nav.navbar {
       padding: 40px 300px;
    }

}