.product-section {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
}

.product-category {
  text-align: center;
  flex: 1 1 calc(33.33% - 20px);
  min-width: 250px;
}

.category-title {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 1rem;
}

.category-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 images per row */
  gap: 10px;
  margin-top: 20px;
}

.category-images img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.category-nav {
  text-align: center;
  margin-bottom: 20px;
}

.category-btn {
  background-color: #b9964c;
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 5px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
}

.category-btn:hover {
  background-color: #edc278;
}
/* Modal (Fullscreen) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* On top of other content */
  padding-top: 60px; /* Position the modal's close button */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Enable scrolling if needed */
  background-color: rgba(0, 0, 0, 0.9); /* Black background with transparency */
}

/* Modal Content (Image) */
.modal-content {
  margin: auto;
  display: block;
  width: 80%; /* Adjust width */
  max-width: 700px; /* Max width of the image */
}

/* Caption (Optional) */
#caption {
  text-align: center;
  color: #f1f1f1;
  padding: 10px 0;
  font-size: 1.2rem;
}

/* Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* Make sure the image fits well within the screen size */
@media (max-width: 768px) {
  .modal-content {
    width: 90%;
  }
}

/* Active Button Style */
.category-btn.active {
  background-color: #1f712d; /* Gold color */
}


.all {
  display: block; /* All categories are displayed by default */
}

.knit, .woven, .sweater, .jacket, .home_tex, .leather {
  display: none; /* Hide all by default */
}

@media (max-width: 768px) {
  .product-category {
    flex: 1 1 calc(50% - 20px); /* 2 items per row on smaller screens */
  }

  .category-images {
    grid-template-columns: repeat(2, 1fr); /* 2 images per row on smaller screens */
  }
}

@media (max-width: 480px) {
  .product-category {
    flex: 1 1 100%; /* 1 item per row on very small screens */
  }

  .category-images {
    grid-template-columns: 1fr; /* 1 image per row */
  }
}
