:root {
    --green_f: hsl(158, 36%, 37%);
    --green_s: hsl(158, 42%, 18%);
    --black: hsl(212, 21%, 14%);
    --grey: hsl(228, 12%, 48%);
    --cream: hsl(30, 38%, 92%);
    --white: hsl(0, 0%, 100%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
    background-color: var(--cream);
    font-family: Montserrat, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

main {
    background-color: var(--white);
    max-width: 600px;
    width: 60%;
    border-radius: 10px;
    display: flex;
}

.product-image {
    height: 100%;
    width: 100%;
    display: block;
    border-radius: 10px 0 0 10px;
}

picture {
    flex: 1;
}

.product-info {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

h1 {
    color: var(--black);
    font-family: Fraunces, serif;
    font-size: 2rem;
    line-height: 2.5rem;
}

p, s {
    color: var(--grey);
    font-size: 0.9rem;
    line-height: 1.5rem;
}

.category {
    text-transform: uppercase;
    letter-spacing: 3px;
}

.price {
    display: flex;
}

.current-price {
    color: var(--green_f);
    font-family: Fraunces, serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-right: 1.1rem;
}

.add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--green_f);
    color: var(--white);
    border: none;
    border-radius: 5px;
    padding: 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
}

.cart-icon {
    margin-right: 0.8rem;
}

.add-to-cart:hover, .add-to-cart:focus {
    background-color: var(--green_s);
}

@media (max-width: 768px) {
    main {
        flex-direction: column;
        width: 90%;
    }

    .product-image {
        border-radius: 10px 10px 0 0;
    }

    .product-info {
        gap: 1rem;
    }
}