html {
  box-sizing: border-box; /* eliminate margin and padding from calculation */
  font-size: 100%; /* prevent font change during responsive screens */
}

/* all elements inherit box sizing */
*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0; /* remove default margin */
  padding: 0; /* remove default padding */
}

main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh; /* full height of the viewport */
  background-color: hsl(30, 38%, 92%);
}

.container {
  width: 40%;
  max-width: 1200px; /* max width of the container */
  height: 60vh; /* height of the container */
  background-color: rgb(255, 255, 255);
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 10px; /* rounded corners */
}

.cell {
  overflow: hidden;
  height: 100%;
}

.image-cell {
  height: 100%;
}

.mobile {
  display: none;
}

.perfume {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.text-cell {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  height: 100%;
  align-items: left;
  margin-left: 24px;
  margin-right: 24px;
}
.text-cell h1 {
  margin: 0; /* remove default margin */
  padding: 0; /* remove default padding */
  font-size: 30px;
  font-family: "Fraunces", serif;
}
.text-cell h4 {
  font-family: "Montserrat", sans-serif;
  letter-spacing: 5px;
  font-size: 8px;
  font-weight: 350;
  text-transform: uppercase;
}
.text-cell p {
  font-size: 12px;
  font-family: "Montserrat", sans-serif;
}
.text-cell .price {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.text-cell h2 {
  color: hsl(158, 36%, 37%);
  font-size: 26px;
  font-family: "Fraunces", serif;
}
.text-cell h3 {
  text-decoration: line-through;
  font-size: 10px;
  font-weight: 400;
  margin-left: 16px;
  color: hsl(228, 12%, 48%);
}
.text-cell button {
  background-color: hsl(158, 36%, 37%);
  border-radius: 5px;
  height: 32px;
  border: none;
  color: white;
  font-size: 10px;
}
.text-cell :hover {
  background-color: hsl(158, 42%, 18%);
  cursor: pointer;
}
.text-cell .cart {
  height: 10px;
  margin-right: 12px;
  vertical-align: middle;
}

@media (max-width: 375px) {
  main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* full height of the viewport */
    background-color: hsl(30, 38%, 92%);
  }
  .container {
    width: 90%;
    height: 90vh; /* height of the container */
    background-color: rgb(255, 255, 255);
    display: grid;
    grid-template-rows: 40% 60%; /* two rows */
    grid-template-columns: 1fr; /* one column */
    border-radius: 10px; /* rounded corners */
  }
  .cell {
    overflow: hidden;
  }
  .image-cell {
    height: 100%;
  }
  .perfume {
    display: none;
  }
  .mobile {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    display: block;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }
  .text-cell {
    display: flex;
    flex-direction: column;
    align-items: left;
    margin-top: 4px;
    margin-left: 20px;
    margin-right: 20px;
  }
  .text-cell h1 {
    margin: 0; /* remove default margin */
    padding: 0; /* remove default padding */
    font-size: 32px;
    font-family: "Fraunces", serif;
  }
  .text-cell h4 {
    font-family: "Montserrat", sans-serif;
    letter-spacing: 4px;
    font-size: 12px;
    font-weight: 350;
    text-transform: uppercase;
  }
  .text-cell p {
    font-size: 14px;
    font-family: "Montserrat", sans-serif;
  }
  .text-cell .price {
    margin-top: 8px;
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  .text-cell h2 {
    font-family: "Fraunces", serif;
    color: hsl(158, 36%, 37%);
    font-size: 28px;
  }
  .text-cell h3 {
    text-decoration: line-through;
    font-size: 18px;
    font-weight: 400;
    margin-left: 8px;
    color: hsl(228, 12%, 48%);
  }
  .text-cell button {
    background-color: hsl(158, 36%, 37%);
    border-radius: 5px;
    height: 36px;
    border: none;
    color: white;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 20px;
  }
  .text-cell :hover {
    background-color: hsl(158, 42%, 18%);
    cursor: pointer;
  }
  .text-cell .cart {
    height: 18px;
    margin-right: 10px;
    vertical-align: middle;
  }
}/*# sourceMappingURL=style.css.map */