@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');

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


html {
  font-size: 62.5%;
}

:root {
    --color-black: hsl(212, 21%, 14%);
    --color-grey: hsl(228, 12%, 48%);
    --color-cream: hsl(30, 38%, 92%);
    --color-white: hsl(0, 0%, 100%);
    --color-green-500: hsl(158, 36%, 37%);
    --color-green-700: hsl(158, 42%, 18%);
    --size-medium: 1.5rem;
    --font-size-paragraph: 1rem;
}

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

.product {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  
}

.product-banner__image{
    max-width: 30rem;
    border-radius: 10px 10px 0px 0px;
    height: 100%;
    width: 100%;
}

.product-details {
    background-color: var(--color-white);
    max-width: 30rem;
    padding: 3rem;
    border-radius: 0px 0px 10px 10px;
    
}

.product-category {
  color: var(--color-grey);
  font-family: 'Montserrat';
  font-weight: 500;
  letter-spacing: .5rem;
  margin-bottom: 2rem;
}

.product-title {
  font-family: 'Fraunces';
  font-weight: 700;
  font-size: x-large;
  line-height: 2.4rem;
  margin-bottom: 2rem;
}

.product-description {
  font-size: var(--font-size-paragraph);
  line-height: 1.5;
  font-family: 'Montserrat';
  font-size: small;
  color: var(--color-grey);
  margin-bottom: 2rem;
}

.product-price {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
}

.product-price__current {
  color: var(--color-green-500);
  font-weight: 700;
  font-size: xx-large;
  font-family: 'Fraunces';
}

.product-price__previous {
  text-decoration: line-through;
  color: var(--color-grey);
}

.product-actions__add-to-cart {
  width: 100%;
  padding: 1.2rem;
  background-color: var(--color-green-500);
  border: none;
  border-radius: 5px;
  color: var(--color-white);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.product-actions__add-to-cart:hover {
  background-color: var(--color-green-700);
}

.icon-chart {
  width: 1.2rem;
}

@media screen and (min-width: 620px) {
  .product-details {
    border-radius: 0px 10px 10px 0px;
    max-width: 25rem;
  }

  .product-banner__image{
    border-radius: 10px 0px 0px 10px;
    max-width: 25rem;
}
}