@charset "utf-8";

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --lightgreen: #3c8067;
    --darkgreen: #1b4133;
    --black: #1c232b;
    --grey: #6c7289;
    --cream: #f2ebe3;
    --white: #ffffff;

    --fontbase:"Montserrat", sans-serif;
    --fontspecial: "Fraunces", serif;
}

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: var(--fontbase);
    font-size: 14px;
    color: var(--black);
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background-color: var(--cream);
    height: 100vh;
    padding: 20px;
}

main {
    display: flex;
    flex-direction: column;
    
    background-color: var(--white);
    margin-bottom: 15px;
    width: 50vw;
    overflow: hidden;
    border-radius: 6px;
}

section#image-mobile {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

section#image-mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

section#image-desktop {
    display: none;
}

section#content {
    margin: 20px;
}

p.top {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

h1 {
    font-family: var(--fontspecial);
    font-size: 26px;
    line-height: 26px;
    color: var(--darkgreen);
    padding: 10px 0px;
}

p.description {
    line-height: 22px;
}

section#prices {
    display: flex;
    padding: 10px 0px;
}

p#current-price {
    font-family: var(--fontspecial);
    font-size: 26px;
    font-weight: 700;
    color: var(--lightgreen);
    padding-right: 15px;
}

p#old-price {
    margin-top: 5px;
    text-decoration: line-through;
}

button {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    padding: 10px;
    background-color: var(--lightgreen);
    border: none;
    border-radius: 8px;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.11);
    cursor: pointer;
    transition: 0.5s;
}

button:hover {
    background-color: var(--darkgreen);
}

img.cart-icon {
    margin-right: 5px;
}

p.btn-cart {
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
}

footer a {
    color: var(--darkgreen);
    font-weight: 500;
    text-decoration: none;
    transition: 0.5s;
}

footer a:hover {
    color: var(--lightgreen);
    text-decoration: underline;
}
