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

nav {
  background-color: black;
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

h1 {
  margin: 0;
}

ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

li {
  color: gray;
  cursor: pointer;
}

li:hover {
  color: white;
}

.searchbar {
  padding: 30px;
  text-align: center;
}

input {
  width: 100%;
  max-width: 600px;
  padding: 15px;
}

.products1,
.products2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.box {
  border: 2px solid black;
  flex: 1 1 200px;
  max-width: 250px;
  padding: 20px;
  text-align: center;
  transition: 0.3s;
}

.box:hover {
  background-color: gray;
  color: white;
}

h1:hover {
  border: 2px solid black;
  background-color: black;
  color: white;
}

.about {
  text-align: center;
  padding: 30px;
}

.contact {
  text-align: center;
  padding: 50px;
  background: black;
  color: white;
}

/* 📱 Mobile (max 600px) */
@media screen and (max-width: 600px) {
  nav {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  ul {
    justify-content: center;
    gap: 10px;
  }
  
  input {
    width: 90%;
    padding: 10px;
    font-size: 14px;
  }

  h1 {
    font-size: 22px;
  }

  .about p {
    font-size: 14px;
    line-height: 1.5;
  }

  .contact h3 {
    font-size: 14px;
  }
  
  .contact p {
    font-size: 13px;
  }

  .box {
    max-width: 90%;
  }
}

/* 💻 Tablets (601px to 1024px) */
@media screen and (min-width: 601px) and (max-width: 1024px) {
  nav {
    padding: 20px;
  }

  input {
    width: 80%;
    font-size: 15px;
  }

  .about p {
    font-size: 15px;
    line-height: 1.6;
  }

  .box {
    flex: 1 1 45%;
    max-width: 45%;
  }
}

/* 🖥️ Laptops (1025px to 1440px) */
@media screen and (min-width: 1025px) and (max-width: 1440px) {
  .about p {
    font-size: 16px;
  }

  .box {
    flex: 1 1 22%;
    max-width: 22%;
  }
}

/* 🖥️ Large screens (1441px and above) */
@media screen and (min-width: 1441px) {
  .about p {
    font-size: 18px;
    line-height: 1.8;
  }

  .box {
    flex: 1 1 20%;
    max-width: 20%;
  }
}