body
{
    margin: 0;
    text-transform: capitalize;
    font-family: 'Lato', sans-serif;
    font-weight: 100;
}

#containerProduct
{
    padding-top: 80px;
}
#containerD
{
    width: 90%;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    padding: 80px 40px;
}
#imageSection
{
    width: 80%;
    margin: auto;
}
#imgDetails
{
    width: 100%;
    float: right;
    border-radius: 10px;
    box-shadow: 1px 2px 6px 2px rgb(219, 219, 219);
}
#imgDetails:hover
{
    box-shadow: 1px 0px 9px 1px rgb(3, 122, 122);

}

#productDetails
{
    width: 100%;
    text-align: left;
}

/* Improve readability on product detail (avoid thin/foggy text on mobile) */
#productDetails h1 {
    color: rgb(29, 29, 29);
    font-weight: 700;
    opacity: 1;
}

#productDetails p {
    color: rgb(29, 29, 29);
    font-weight: 400;
    opacity: 1;
}

#productDetails #details h3 {
    color: rgb(29, 29, 29);
    font-weight: 700;
}

#productDetails h4 {
    font-weight: 700;
    opacity: 1;
}

.related-products-section
{
    width: 90%;
    margin: 0 auto 30px;
}

/* Override global `h1` spacing for the related products heading */
.related-products-section h1
{
    width: auto;
    padding: 0 !important;
    margin: 0 !important;
    margin-top: 8px !important;
    margin-bottom: 16px !important;
    text-align: center;
}
h1
{
    font-size: 35px;
    letter-spacing: 1px;
    word-spacing: 2px;
}
h4
{
    font-size: 15px;
    font-weight: bold;
    color: rgb(3, 122, 122);
    letter-spacing: 1px;
    word-spacing: 2px;
}

#productDetails h1,
#productDetails h4,
#productDetails #details h3,
#productDetails #details p
{
    text-align: left;
}

#productDetails h1
{
    width: 100%;
    margin: 0 0 14px;
    padding: 0;
    line-height: 1.25;
}

#productDetails h4
{
    margin: 0 0 12px;
}

#productDetails #details
{
    margin: 0 0 12px;
    padding: 0 !important;
    text-transform: none !important;
}

#productDetails #details h3
{
    margin: 0 0 10px;
}

#productDetails #details p
{
    margin: 0;
}

#button
{
    text-align: left;
}
#productPreview
{
    padding-bottom: 10px;
}
.mobile-product-preview
{
    display: none;
}
#productPreview > img
{
    width: 50px;
    max-width: 50px;
    height: auto;
    padding: 10px 10px;
    border-radius: 15px;
    cursor: pointer;
}
p
{
    font-size: 15px;
    word-spacing: 2px;
    letter-spacing: 1px;
    line-height: 25px;
}
button
{
    padding: 10px 15px;
    color: white;
    background-color: rgb(3, 122, 122);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px;
}
button a
{
    text-decoration: none;
    font-size: 18px;
}
button:hover
{
    background-color: rgb(3, 94, 94);
}
button a:focus
{
    outline: none;
}

/* ----------------------------- MEDIA QUERY --------------------------- */

@media(max-width: 1300px)
{
    h1
    {
        font-size: 28px;
    }
    #productPreview > img
    {
        width: 40px;
        padding: 10px 10px;
        padding-bottom: 30px;
    }
    button
    {
        padding: 8px 13px;
        background-color: rgb(3, 122, 122);
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }
}

@media(max-width: 1170px)
{
    h1
    {
        font-size: 22px;
    }
    #productPreview > img
    {
        width: 40px;
        padding: 10px 10px;
        padding-bottom: 30px;
    }
    button a
    {
        font-size: 15px;

    }
    h4, p
    {
        font-size: 13px;
    }
    h3
    {
        font-size: 15px;
    }

}

@media(max-width: 900px)
{
    /* #containerProduct */
    #containerD
    {
        width: 60%;
        margin: auto;
        display: grid;
        grid-template-columns: 1fr;
    }
    #imageSection
    {
        width: 100%;
        text-align: center;
    }
    #imgDetails
    {
        text-align: center;
        width: 70%;
        float: none;
    }
    #productDetails
    {
        width: 100%;
    }
    #button
    {
        text-align: left;
        margin-bottom: 14px;
    }
    .desktop-product-preview
    {
        display: none;
    }
    .mobile-product-preview
    {
        display: block;
        margin-top: 12px;
    }
    .related-products-section
    {
        width: 95%;
        margin: 8px auto 20px;
    }

    .related-products-section h1
    {
        margin-top: 6px !important;
        margin-bottom: 12px !important;
        font-size: 28px;
        text-align: center;
    }

    #productDetails p {
        /* Override global `p { line-height: 25px; letter-spacing: 1px; }` for mobile */
        line-height: 1.65;
        letter-spacing: 0.2px;
        font-size: 16px;
    }

    /* Extra boost for the main description text */
    #productDetails #details p {
        font-size: 16px;
        line-height: 1.7;
    }
}

@media(max-width: 650px)
{
    #containerD
    {
        width: 80%;
    }
}