:root {
  --black-primary: hsl(212, 21%, 14%);
  --wite-primary: hsl(0, 0%, 100%);
  --green500: hsl(158, 36%, 37%);
  --green700: hsl(158, 42%, 18%);
  --grey: hsl(228, 12%, 48%);
  --cream: hsl(30, 38%, 92%);

  --family-monserrat: [Montserrat](https://fonts.google.com/specimen/Montserrat);
  --family-fraunces: [Fraunces](https://fonts.google.com/specimen/Fraunces);
}

/* Eliminar el modelo caja de css para medidas */

html {
  font-size: 62.5%;
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  background-color: var(--cream);
  font-family: var(--family-fraunces);
}

.main-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background-color: var(--wite-primary);
  width: 800px;
  height: 500px;
  margin: 0 auto;
  margin-top: 8rem;
}

.div-imagen {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.imagen {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.description {
  margin: 0 auto;
  height: 100%;
  max-height: 100%;
  width: 80%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
}

.title-second {
  color: var(--grey);
  letter-spacing: 0.5rem;
  text-transform: uppercase;
  font-weight: 100;
}

.title-main {
  width: 80%;
  font-size: 3.5rem;
  font-weight: bold;
}

.p-main {
  font-size: 1.5rem;
  color: var(--grey);
  line-height: 2rem;
}

.price-info {
  display: flex;
  gap: 2rem;
}

.original-price {
  color: var(--green500);
  font-size: 3rem;
  font-weight: bold;
  font-family: var(--family-monserrat);
}

.discount-price {
  font-size: 1.6rem;
  color: var(--grey);
  text-decoration: line-through;
  margin-top: 4rem;
}

.cart-container {
  background-color: var(--green500);
  text-align: center;
  border-radius: 0.8rem;
}

.cart {
  background-color: var(--green500);
  border: none;
  padding: 1.8rem;
  color: var(--wite-primary);
  font-weight: 600;
  cursor: pointer;
}

@media only screen and (max-width: 575px) {
  .main-container {
    display: flex;
    flex-direction: column;
    width: 350px;
    max-width: 100%;
    height: 900px;
    margin-bottom: 8rem;
    border-radius: 1rem;
  }

  .div-imagen {
    height: 400px;
    overflow: visible;
  }

  .imagen {
    max-height: auto;
  }

  .cart-container {
    max-width: 90%;
  }
}

@media only screen and (max-width: 767px) {
  .main-container {
    width: 700px;
    max-width: 100%;
  }
}
