* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* Navigation Bar */
nav {
  background-color: black;
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

li {
  color: grey;
  cursor: pointer;
}

li:hover {
  color: white;
}

/* Search Bar */
.searchbar {
  padding: 30px 15px;
  text-align: center;
}

input {
  width: 90%;
  max-width: 500px;
  padding: 12px;
  margin-top: 10px;
}

/* Product Section */
.product {
  text-align: center;
  padding: 20px 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.box {
  border: 2px solid black;
  width: 220px;
  padding: 10px;
  transition: 0.3s;
}

.box img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.box:hover {
  background-color: black;
  color: white;
}

/* About & Contact */
.about {
  text-align: center;
  padding: 30px 15px;
}

.three {
  padding: 30px;
  border: 2px dotted black;
}

.contact {
  text-align: center;
  background-color: black;
  color: white;
  padding: 20px;
}

.four {
  color: gray;
}

.five {
  color: red;
}

/* Mobile Responsiveness (768px-ku keela) */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  ul {
    margin-left: 0;
    gap: 15px;
  }

  .box {
    width: 90%; /* Mobile-la card full size-a azhaga nirkum */
    max-width: 300px;
  }

  h1 {
    font-size: 22px;
  }
}