@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
}

li {
  list-style-type: none;
}

a {
  text-decoration: none;
  color: #333;
}

.grey {
  color: #6d6d6d;
}

.container {
  max-width: 1240px;
  margin: auto;
  padding: 0 8px;
}

/* Top Bar */
.top-bar {
  width: 100%;
  height: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  border-bottom: 1px solid #eee;
}

.top-bar .intro {
  grid-column: 2;
  justify-self: center;
}

.top-bar p {
  justify-self: end;
}
/* Top Bar End */

/* Navbar */
.navbar {
  width: 100%;
  min-height: 80px;
  border-bottom: 1px solid #eee;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}

.navbar h1 {
  color: #ff385c;
  font-size: 24px;
}

.search {
  justify-self: center;
  width: 100%;
}

.search form {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 300px;
  margin: auto;
  width: 100%;
  padding: 8px 12px;
  border-radius: 15px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

.search input {
  background: transparent;
  border: none;
  font-size: 1rem;
}

.search input:focus {
  outline: none;
}

.search i {
  font-size: 1rem;
  color: #ff385c;
}

.search button {
  border: none;
  background: transparent;
}

.menu {
  justify-self: end;
}

.nav-menu {
  display: flex;
}

.nav-menu li {
  padding-left: 1rem;
  font-size: 0.8rem;
}

.mobile {
  cursor: pointer;
  display: none;
}
/* Navbar End*/

/* Sort Bar */
.sort-bar {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  color: #5e5e5e;
}

.sort-bar div {
  text-align: center;
}

.sort-bar i {
  font-size: 1.2rem;
}

.sort-bar p {
  font-size: 12px;
}
/* Sort Bar End */

/* List */
.list {
  margin: 1rem 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.list .card {
  max-width: 300px;
  width: 100%;
  font-size: 0.9rem;
}

.list .card-title {
  display: flex;
  justify-content: space-between;
}

.list img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.list p {
  padding-bottom: 4px;
}

img {
  border-radius: 15px;
}
/* List End */

/* Feature */
.feature {
  width: 100%;
  padding: 4rem 0;
}

.feature .feature-title {
  padding: 1rem 0;
}

.feature h1 {
  border-bottom: 4px solid #ff385c;
  display: inline;
}

.feature .feature-wrapper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}

.feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature .main {
  grid-column: span 3;
  grid-row: span 2;
}
/* Feature End */

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #eee;
  padding: 1rem 0;
}

.footer .right-menu,
.left-menu {
  display: flex;
}

.footer .right-menu li {
  padding-left: 1rem;
}

.footer .left-menu li {
  padding-right: 1rem;
}
/* Footer End */

/* Scroll */
.top {
  display: flex;
}

.top a {
  margin: auto;
  font-size: 2rem;
}

@media screen and (max-width: 940px) {
  .top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .navbar {
    grid-template-columns: repeat(2, 1fr);
    border-bottom: none;
  }

  .navbar .search {
    width: 100%;
    padding: 10px 0;
    order: 3;
    grid-column: span 2;
  }

  .search form {
    max-width: 100%;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    background-color: #fff;
    flex-direction: column;
    top: 80px;
    height: 100%;
    width: 100%;
    transition-duration: 0.3s;
    padding-top: 1rem;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    font-size: 1.2rem;
    padding: 1rem;
  }

  .mobile {
    display: block;
  }

  .list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 680px) {
  .top-bar .intro,
  p {
    font-size: 0.8rem;
  }

  .list {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature .feature-title {
    text-align: center;
  }

  .feature .feature-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature .main {
    grid-column: span 2;
  }

  .footer .right-menu,
  .left-menu {
    flex-direction: column;
  }
}
