* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #f5f8ff;
}

.wrapper {
  width: 95%;
  margin: 0 auto;
}

h1, h3 {
  color: #2c8eec;
  font-size: 4rem;
  font-family: 'Playfair Display', serif;
  padding: 25px 30px;
  margin-left: 100px;
  margin-top: 80px;
}

h3 {
  color: #000000;
}

nav {
  font-family: "Poppins", sans-serif;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 1em 2em;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 50px;
  width: 90%;
  max-width: 1000px;
  transition: all 0.3s ease;
}

nav .nav-links {
  display: flex;
  justify-content: space-between;
  width: 60%;
  margin: 0 auto;
}

nav .nav-links li {
  flex: 1;
  text-align: center;
}

nav .nav-links li a {
  display: block;
  padding: 0.5em;
}

nav:hover {
  background-color: rgba(255, 255, 255, 0.95);
}

#logo {
  font-size: 1.5em;
  font-weight: 600;
  font-family: 'Playfair Display', serif;
  color: #2c8eec;
  text-decoration: none;
  margin-right: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5em;
  align-items: center;
  justify-content: center;
}

.nav-links li {
  position: relative;
}

.nav-links li a {
  text-decoration: none;
  text-transform: capitalize;
  color: #333;
  padding: 0.75em 1em;
  border-radius: 25px;
  font-family: 'Lato', sans-serif;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  font-weight: 500;
  display: inline-block;
}

.nav-links li a:hover {
  color: #333;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: rgba(44, 142, 236, 0.1);
  transition: all 0.3s ease;
  z-index: -1;
  border-radius: 25px;
}

.nav-links li a:hover::after {
  height: 100%;
}

.nav-links li a.active {
  color: #333;
}

@media screen and (max-width: 600px) {
  label {
    display: block;
    cursor: pointer;
  }

  ul {
    font-size: 1.2em;
    position: absolute;
    left: -100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #333333;
    gap: 2em;
    top: 60px;
    width: 100%;
    height: calc(100vh - 60px);
    transition: 0.5s;
  }

  input[type="checkbox"]:checked ~ ul {
    left: 0;
  }

  ul a {
    padding: 1em 1.5em;
  }

  ul a:hover {
    background-color: #2c8eec;
  }
}

#search-container {
  margin: 1em 0;
  position: relative;
  width: 40%;
  margin-left: 350px;
  margin-bottom: 50px;
}

#search-container input {
  background-color: transparent;
  width: 100%;
  border: 2px solid #110f29;
  padding: 0.9em 2.5em 0.9em 0.9em;
  border-radius: 50px;
}

#search-container input:focus {
  border-color: #2c8eec;
  outline: none;
}

#search-container button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
}

#search-container button::before {
  content: "\1F50D";
  font-size: 1.2em;
  color: #2c8eec;
}

.button-value {
  border: 2px solid #2c8eec;
  padding: 1em 4em;
  border-radius: 3em;
  background-color: transparent;
  color: #2c8eec;
  cursor: pointer;
}

.active {
  background-color: #ffffff;
  color: #ffffff;
}

#products {
  display: grid;
  grid-template-columns: auto auto auto;
  grid-column-gap: 1.5em;
  padding: 2em 0;
}

.card {
  background-color: #ffffff;
  max-width: 18em;
  margin-top: 1em;
  padding: 1em;
  border-radius: 5px;
  box-shadow: 1em 2em 2.5em rgba(1, 2, 68, 0.08);
}

.image-container {
  text-align: center;
}

img {
  max-width: 100%;
  object-fit: contain;
  height: 15em;
}

.container {
  padding-top: 1em;
  color: #110f29;
}

.container h5 {
  font-weight: 500;
}

.hide {
  display: none;
}

@media screen and (max-width: 720px) {
  img {
    max-width: 100%;
    object-fit: contain;
    height: 10em;
  }

  .card {
    max-width: 10em;
    margin-top: 1em;
  }

  #products {
    grid-template-columns: auto auto;
    grid-column-gap: 1em;
  }
}
