* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  color: #333;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #222;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 15px 20px;
  z-index: 10;
}

@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 10px;
  }
  
  nav a {
    font-size: 12px;
    padding: 5px;
  }
  
  .search-container {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 5px;
  }
  
  #searchInput {
    width: 120px;
    padding: 5px 8px;
    font-size: 11px;
  }
  
  #searchBtn {
    padding: 5px 8px;
    font-size: 12px;
  }
}

.search-container {
  display: flex;
  align-items: center;
  gap: 5px;
}

#searchInput {
  padding: 8px 12px;
  border: none;
  border-radius: 20px;
  outline: none;
  width: 200px;
  font-size: 14px;
}

#searchBtn {
  background: #00bcd4;
  border: none;
  padding: 8px 12px;
  border-radius: 50%;
  cursor: pointer;
  color: white;
  font-size: 16px;
}

#searchBtn:hover {
  background: #0097a7;
}

.search-results {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  max-height: 300px;
  overflow-y: auto;
  z-index: 9;
  display: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.search-result-item {
  padding: 12px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.3s;
}

.search-result-item:hover {
  background: #f5f5f5;
}

.search-result-item:last-child {
  border-bottom: none;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #00bcd4;
}

.section {
  min-height: 100vh;
  padding: 100px 20px 20px;
  text-align: center;
}

@media (max-width: 768px) {
  .section {
    padding: 100px 10px 20px;
  }
}

.home {
  position: relative;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  transition: background-image 1s ease-in-out;
}

.content h1 {
  font-size: 3em;
}

.content p {
  font-size: 1.5em;
}

@media (max-width: 768px) {
  .content h1 {
    font-size: 2em;
  }
  .content p {
    font-size: 1em;
  }
  .home {
    padding-top: 80px;
  }
}

.shop {
  background: #f4f4f4;
  min-height: auto;
  padding-bottom: 50px;
}

.main-div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .main-div {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .main-div {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 5px;
  }
}

.product {
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .product {
    padding: 8px;
  }
}

.product:nth-child(1) { border-left: 4px solid #ff5722; }
.product:nth-child(2) { border-left: 4px solid #2196f3; }
.product:nth-child(3) { border-left: 4px solid #4caf50; }
.product:nth-child(4) { border-left: 4px solid #ff9800; }
.product:nth-child(5) { border-left: 4px solid #9c27b0; }
.product:nth-child(6) { border-left: 4px solid #f44336; }

.product-image {
  height: 200px;
  background: #e0e0e0;
  border-radius: 4px;
  margin-bottom: 10px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 768px) {
  .product-image {
    height: 120px;
  }
}

@media (max-width: 480px) {
  .product-image {
    height: 150px;
  }
}

.product-info {
  height: auto;
  min-height: 80px;
  background: #f5f5f5;
  border-radius: 4px;
  padding: 10px;
}

@media (max-width: 768px) {
  .product-info {
    padding: 8px;
    font-size: 12px;
  }
}

#div1 { background-image: url('chicken1.webp'); }
#div2 { background-image: url('chicken2.webp'); }
#div3 { background-image: url('chicken3.webp'); }
#div4 { background-image: url('chicken5.jpeg'); }
#div5 { background-image: url('chicken6.jpg'); }
#div6 { background-image: url('chicken7.jpeg'); }

.btn {
  background: #00bcd4;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
  width: 100%;
}

@media (max-width: 768px) {
  .btn {
    padding: 6px 12px;
    font-size: 11px;
  }
}

.btn:hover {
  background: #0097a7;
}

.about {
  background: #ffe0b2;
  min-height: auto;
  padding: 100px 20px 50px;
}

@media (max-width: 768px) {
  .about {
    padding: 80px 10px 30px;
  }
  
  .about p {
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
  }
}

.contact {
  background: #e1f5fe;
  min-height: auto;
  padding: 100px 20px 50px;
}

@media (max-width: 768px) {
  .contact {
    padding: 80px 10px 30px;
  }
}

#shopbutton {
  margin-top: 20px;
  padding: 10px 20px;
  border: none;
  background: #00bcd4;
  color: black;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
  position: absolute;
  bottom: 30px;
  left: 20px;
}

@media (max-width: 768px) {
  #shopbutton {
    position: static;
    margin: 20px auto;
    display: block;
  }
}

button:hover {
  background: #0097a7;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

form input, form textarea {
  width: 250px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

@media (max-width: 768px) {
  form input, form textarea {
    width: 200px;
    padding: 8px;
  }
}

footer {
  background: #222;
  color: #ccc;
  text-align: center;
  padding: 15px;
}