/* General Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 10rem;
  padding-right: 5rem;
  background-color: papayawhip;
}


nav ul {
  list-style: none;
  display: flex;
  margin: 0;
}

nav ul li {
  margin-right: 20px;
  padding-left: 1rem;
  padding-right: 1rem;
}

nav ul li a {
  color:black;
  text-decoration: none;
}

.logo img{
  width: 100px;
}

.search-cart {
  display: flex;
  align-items: center;

}

.search-cart input[type="text"] {
  padding: 5px;
  margin-right: 10px;
  font-size: 14px;

}

.cart-icon {
  background-color: tomato;
  color: #fff;
  border: none;
  border-radius:5px ;
  padding: 10px;
  cursor: pointer;
  padding-left: 4rem;
  padding-right: 4rem;
  font-size: 14px;
}

.hero {
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../Picture/supermarket.jpg');
  background-size: cover;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
  position: relative;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  color: #fff;
}
.hero-content p {
  font-size: 18px;
}

.shop-now-btn {
  border-radius: 5px;
  border: none;
  background-color: tomato;
  color: #fff;
  padding: 15px 30px;
  text-decoration: none;
  display: inline-block;
  margin-top: 20px;
}

.products {
  padding: 50px 20px;
  text-align: center;
}

.production{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}
.product-list {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.product-item {
  background-color: #f4f4f4;
  padding: 20px;
  margin: 20px;
  text-align: center;
  border-radius: 5px;
  width: 100%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.product-item img {
  max-width: 100%;
  border-radius: 10px;
  height: auto;
  margin-bottom: 15px;
}
.product-item a{
  text-decoration: none;
}

.product-item h3 {
  margin-bottom: 10px;
}

.add-to-cart-btn {
  background-color:tomato;
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-weight: 550;
  width: 50%;
  border-radius: 5px;
}

footer {
  background-color:papayawhip;
  color:black;
  text-align: center;
  padding: 20px;
}

.social-media {
  margin-top: 10px;
}

@media (max-width: 850px) {
  header {
      flex-direction: column;
      align-items: flex-start;
      padding-left: 2rem;
      padding-right: 2rem;
  }

  nav ul {
      flex-direction: column;
      align-items: flex-start;
      margin-top: 10px;
  }

  nav ul li {
      margin-right: 0;
      margin-bottom: 10px;
  }

  .search-cart {
      flex-direction: column;
      align-items: flex-start;
      width: 100%;
      margin-top: 10px;
  }

  .search-cart input[type="text"] {
      width: 100%;
      margin-right: 0;
      margin-bottom: 10px;
  }

  .cart-icon {
      width: 100%;
  }
}


@media (max-width: 850px) {
  .hero {
      padding: 50px 20px;
  }

  .hero-content h1 {
      font-size: 2.5rem;
  }

  .hero-content p {
      font-size: 16px;
  }

  .shop-now-btn {
      padding: 10px 20px;
  }
}


@media (max-width: 850px) {
  .production {
      grid-template-columns: 1fr 1fr;
      gap: 10px;
  }

  .product-item {
      width: 100%;
      margin: 10px 0;
  }
}

@media (max-width: 600px) {
  .production {
      grid-template-columns: 1fr;
  }

  .product-item {
      margin: 10px auto;
  }
}


@media (max-width: 850px) {
  footer {
      padding: 20px 10px;
  }

  .social-media {
      margin-top: 5px;
  }
}


/* Hamburger Menu */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background-color: black;
  height: 3px;
  width: 25px;
  position: relative;
  transition: all 0.3s ease;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: '';
  position: absolute;
}

.nav-toggle-label span::before {
  top: -8px;
}

.nav-toggle-label span::after {
  top: 8px;
}

/* Show the navigation when the checkbox is checked */
.nav-toggle:checked + .nav-toggle-label span {
  background-color: transparent;
}

.nav-toggle:checked + .nav-toggle-label span::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle:checked + .nav-toggle-label span::after {
  transform: rotate(-45deg);
  top: 0;
}

.nav-toggle:checked ~ nav ul {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 60px;
  right: 0;
  background-color: papayawhip;
  width: 100%;
  padding: 20px 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

nav ul li {
  margin: 15px 0;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 850px) {
  .nav-toggle-label {
      display: block;
      height: 100vh;
  }

  nav ul {
      display: none;
  }

  .search-cart {
      flex-direction: column;
      align-items: flex-start;
      width: 100%;
      margin-top: 10px;
  }

  .search-cart input[type="text"] {
      width: 100%;
      margin-right: 0;
      margin-bottom: 10px;
  }

  .cart-icon {
      width: 100%;
  }
}



/* 0000000 */
/* .search-results {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  max-height: 300px;
  overflow-y: auto;
  position: absolute;
  width: 300px;
  z-index: 1000;
}

.search-result-item {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
}

.search-result-item img {
  width: 50px;
  height: 50px;
  margin-right: 10px;
}

.search-result-item p {
  margin: 0;
  font-size: 14px;
}

.search-results a {
  text-decoration: none;
  color: black;
}

.search-results a:hover {
  background-color: #f1f1f1;
} */
