@import url('https://fonts.googleapis.com/css2?family=Lato:wght@100;300;400;700;900&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,900;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
  box-sizing: border-box;
}

body {
  font-family: 'Lato', sans-serif;
  margin: 0;
  padding: 0;
}

a {
  color: black;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: 'Playfair Display', serif;
}

h1 {
  color: #614992;
}

h3,
h4 {
  font-weight: 200;
  margin: 0;
  line-height: 30px;
}

header {
  padding: 1rem 5rem;
}

#website-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

#website-logo img {
  width: 50px;
  margin-right: 0.5rem;
}

nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

nav h1 {
  font-size: 30px;
}

nav ul li {
  display: inline-block;
  margin-left: 2rem;
}

nav ul li:hover, #active-page {
  color: #b290ff;
  text-shadow: 0px 1px 10px #afa6c4aa;
}

#menu-icon {
  display: none;
  cursor: pointer;
  width: 25px;
  height: 25px;
  margin-left: 4rem;
  z-index: 3;
}

#menu-icon i:hover {
  color: #614992;
}


.container {
  padding: 2rem 6rem;
}

section {
  height: 85vh;
  background-color: #f2ebf3;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.hero {
  width: 50%;
}

.hero h1 {
  font-size: 60px;
  margin: 0;
}


p {
  line-height: 30px;
  color: #333;
  font-size: 17px;
  margin: 1rem 0;
}


button {
  border: none;
  font-size: 16px;
  background-color: #614992;
  padding: 1rem 2.5rem;
  color: white;
  border-radius: 40px;
  margin: 1rem 0;
  cursor: pointer;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
}

button:hover {
  background-color: #4c3872;
}


img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}


/* styles for products */
.products {
  /* height: max-content; */
  padding: 2rem 0;
  display: grid;
  grid-template-columns: auto auto auto auto;
  column-gap: 2rem;
  row-gap: 5rem;
  place-items: center;
}

.prod {
  background-color: #fff;
  width: 15rem;
  height: 20rem;
  border-radius: 20px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 20px 25px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px;

}

.prod-img {
  height: 70%;
  background-color: #f2ebf3;
  border-top-right-radius: 20px;
  border-top-left-radius: 20px;
}

.prod .prod-details {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

.prod-details h4 {
  text-transform: capitalize;
}

.prod-details p {
  color: #4c3872;
}



/* Medium devices (tablets, 820px and down) */
@media (max-width: 820px) {

  header {
    padding: 1rem 2rem;
  }

  nav {
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
  }

  nav ul li {
    margin: 0 1rem;
  }

  section {
    align-items: flex-start;
    text-align: center;
  }

  .hero {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .hero h1 {
    font-size: 50px;
  }

  .products {
    grid-template-columns: auto auto;
  }

}

/* Small devices (phones, 576px and down) */
@media (max-width: 576px) {

  header {
    padding: 1rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  nav {
    margin-top: 0;
  }

  /* sideMenu */
  nav #sideMenu {
    width: 50%;
    height: 100vh;
    position: fixed;
    top: 0;
    right: -400px;
    margin: 0;
    padding: 10rem 0 0 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-color: #614992f8;
    transition: right 0.5s;
  }

  nav ul li {
    margin: 1rem 0;
  }

  nav ul a {
    color: white;
  }

  #menu-icon {
    display: block;
  }

  .container {
    padding: 2rem 3rem;
  }

  .hero h1 {
    font-size: 35px;
    margin-bottom: 1rem;
  }

  .products {
    grid-template-columns: auto;
    text-align: left;
  }

}