* {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}
nav a {
  color: #070707;
  text-decoration: none;
}

nav a:hover {
  color: green;
}

header {
  color: #070707;
  background-color: #feee00;
  padding: 10px;
  text-align: start;
  width: auto;
}
nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

nav li {
  color: #070707;
  display: inline;
  margin-right: 20px;
}

main {
  padding: 20px;
}

.slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.slider img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  height: auto;
}

.categories {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}

.category {
  text-align: center;
}

.category img {
  width: 100%;
  max-height: 150px;
}

footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 10px;
  bottom: 0;
  width: 100%;
  margin-top: 20px;
}

.products {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 20px 116px; /* Add margin on the sides (negative margin to offset) */
  margin-bottom: 100px;
}

.product-card {
  flex: 0 0 calc(25% - 20px); /* Each product card takes 25% width with margins */
  margin: 10px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 10px; /* Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Box shadow for a subtle lift */
  text-align: center;
}

.product-card img {
  max-height: 150px;
  object-fit: cover;
  border-radius: 8px;
}

.product-card h3 {
  margin-top: 10px;
}

.product-card button {
  background-color: #000000;
  color: white;
  padding: 5px 10px;
  border: none;
  cursor: pointer;
  border-radius: 20px;
}

.product-recommend {
  flex: 0 0 calc(20% - 20px); /* Each product card takes 25% width with margins */
  margin: 10px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 10px; /* Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Box shadow for a subtle lift */
  text-align: center;
}
.product-recommend img {
  max-height: 150px;
  object-fit: cover;
  border-radius: 8px;
}

.product-recommendcard h3 {
  margin-top: 10px;
}

.product-recommend button {
  background-color: #000000;
  color: white;
  padding: 5px 10px;
  border: none;
  cursor: pointer;
  border-radius: 20px;
}

.survey {
  width: 100%;
  background-color: #feee00;
  color: black;
  padding: 15px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 1.2em;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 768px) {
  .product-card {
      flex: 0 0 calc(50% - 20px); /* 2 products per row on smaller screens */
  }
}

@media screen and (max-width: 480px) {
  .product-card {
      flex: 0 0 calc(100% - 20px); /* 1 product per row on even smaller screens */
  }
}

@media screen and (max-width: 600px) {
  nav {
      flex-direction: column;
  }

  nav a {
      text-align: center;
      width: 100%;
      display: block;
      border-bottom: 1px solid #ddd;
  }
}