* {
  box-sizing: border-box;
}

body {
  background-color: #fffaf0;
  font-family: "Open Sans", sans-serif;
  margin: 0;
  padding: 0;
}

.product-section {
  padding: 4rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  transform: scale(1.2);
}

.product-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 2rem;
  font-family: "Pacifico", cursive;
  color: #8b4513;
}

.product-filters {
  text-align: center;
  margin-bottom: 2rem;
}

.filter-btn {
  background-color: #f8e2c6;
  border: none;
  color: #5c3b1e;
  font-weight: bold;
  padding: 0.6rem 1.2rem;
  margin: 0 0.5rem;
  border-radius: 5px;
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  background-color: #8b4513;
  color: white;
}

.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.product-carousel-wrapper {
  overflow: hidden;
  flex: 1;
}

.product-carousel {
  display: flex;
  transition: transform 0.4s ease-in-out;
  gap: 2rem;
  padding: 1rem 0;
}

.product-card {
  flex-shrink: 0;
  width: calc((100% - 4rem) / 3);
  background: white;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.product-card h3 {
  color: #8b4513;
  margin-bottom: 0.5rem;
}

.product-card p {
  font-size: 0.95rem;
  color: #444;
}

.carousel-arrow {
  background: #8b4513;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.carousel-arrow.left {
  margin-right: 1rem;
}

.carousel-arrow.right {
  margin-left: 1rem;
}

@media (max-width: 768px) {
  .product-section {
    padding: 2rem 1rem;
    transform: scale(1);
  }

  .product-title {
    font-size: 2rem;
  }

  .filter-btn {
    padding: 0.5rem 0.8rem;
    margin: 0.3rem;
    font-size: 0.9rem;
  }

  .carousel-arrow {
    display: flex;
  }

  .product-carousel {
    gap: 1rem;
  }

  .product-card {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .product-card img {
    height: 160px;
    object-fit: contain;
  }

  .product-card h3 {
    font-size: 1rem;
  }

  .product-card p {
    font-size: 0.85rem;
  }
}
