html {
  box-sizing: border-box;

  --dark_cyan: hsl(158, 36%, 37%);
  --cream: hsl(30, 38%, 92%);
  --dark_blue: hsl(212, 21%, 14%);
  --grayish_blue: hsl(228, 12%, 48%);
  --white: hsl(0, 0%, 100%);

}

*,
::before,
::after {
  box-sizing: border-box;
}


.attribution {
  font-size: 11px;
  text-align: center;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

/*DESKTOP DESIGN*/

/*------------SURFACE STYLES---------------*/

body{
  display: flex;
  height: 100vh;
  flex-direction: column;
  background-color: var(--cream);
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  align-items: center;
  justify-content: center;
}

h1{
  font-family: 'Fraunces', serif;
  font-size: 2em;
  line-height: 1.1;
  color: var(--dark_blue);
  margin-bottom: 0;
}

h5{
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 0;
  color: var(--grayish_blue);
  font-size: 1em;
}

main{
  background-color: var(--white);
  border-radius: 10px;
  width: 40vw;
}

.product__container{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  border-radius: 10px;
}

.product__img{
  border-radius: 10px 0 0 10px;
  background-image: url("images/image-product-desktop.jpg");
  background-size: cover;
  background-position: center;
  height: 100%;
}

.product__info{
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.product__desc{
  line-height: 1.6;
  color: var(--grayish_blue);
}

/*----------------ELEMENT STYLES-------------*/

.product__pricing{
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.product__price{
  font-family: 'Fraunces', serif;
  color: var(--dark_cyan);
  font-weight: 700;
  font-size: xx-large;
}

.product__price--old{
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: line-through;
}

.product__btn{
display: flex;
gap: 1rem;
justify-content: center;
align-items: center;
background-color: var(--dark_cyan); 
color: var(--white);
border-radius: 10px;
padding: 1rem 3rem;
cursor: pointer;
}

.product__btn:active{
  background-color: var(--dark_blue);
}


@media only screen and (max-width: 980px){

  main{
    width: 90vw;
    min-width: 355px;
  }

  .product__container{
    display: grid;
    grid-template-columns: 90vw;
    grid-template-rows: repeat(2, auto);
  }

  .product__img{
    background-image: url("images/image-product-mobile.jpg");
    height: 30vh;
    min-width: 336px;
    border-radius: 10px 10px 0 0;
  }

}










