:root {
  --green: hsl(158, 36%, 37%);
  --body-background-color: hsl(30, 38%, 92%);
  --white: hsl(0, 0%, 100%);
  --Dark-cyan: hsl(158, 36%, 37%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--body-background-color);
  height: 100vh;
  align-items: center;
  justify-content: center;
}

main {
  width: 100%;
}

.container {
  min-width: 600px;
  max-width: 1440px;
  width: 30%;
  margin: 0 auto;
  display: flex;

  border-radius: 10px;
}

.left {
  width: 40%;
  background: url("./WebPage/images/image-product-desktop.jpg");
  background-size: cover;
  border-bottom-left-radius: 10px;
  border-top-left-radius: 10px;
}

.right {
  width: 40%;
  row-gap: 12px;
  padding: 25px;
  border-radius: 0 10px 10px 10px;
  background-color: var(--white);
}

h1 {
  color: gray;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 100;
}

h2 {
  padding-top: 20px;
  font-size: 25px;
  line-height: 1;
  font-family: "Fraunces", sans-serif;
}

.description {
  padding-top: 20px;
  line-height: 20px;
}

.prices {
  line-height: 80px;
  display: flex;
  gap: 30px;
}

.current-price {
  font-size: 30px;
  color: var(--green);
  font-weight: bold;
}

.previous-price {
  text-decoration: line-through;
  color: gray;
}

.button {
  width: 100%;
  padding: 8px;
  background-color: var(--green);
  text-align: center;
  border-radius: 5px;
  color: var(--white);
}

.shopping-cart {
  padding-right: 10px;
}

.button:hover {
  background-color: darkgreen;
  cursor: pointer;
}

@media screen and (min-width: 621px) and (max-width: 768px) {
  .container {
    max-width: 600px;
  }
}

@media screen and (max-width: 640px) {
  .container {
    display: flex;
    flex-direction: column;
    min-width: auto;
    width: 70%;
  }

  .left {
    width: 100%;
    height: 300px;
    background: url("./WebPage/images/image-product-mobile.jpg");
    background-size: cover;
    border-radius: 10px 10px 0 0;
  }

  .right {
    width: 100%;
    row-gap: 10px;
    padding: 20px;
    border-radius: 0 0 10px 10px;
  }

  h1 {
    font-weight: 700;
    letter-spacing: 5px;
  }

  h2 {
    font-size: 30px;
  }

  .description {
    width: 100%;
    font-size: 17px;
    color: gray;
  }

  .current-price {
    font-size: 35px;
    font-family: "Fraunces", sans-serif;
  }

  .button {
    padding: 15px;
    width: 100%;
    font-weight: bold;
  }
}
