.category-header {
  padding: 2vh 5vw;
  background: #f1f1f1;
  border-bottom: 1px solid #ddd;
}

.breadcrumb {
  font-size: clamp(0.8rem, 2vw, 1rem);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: #0f0f0f;
}

.breadcrumb a {
  text-decoration: none;
  color: #555;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  font-weight: bold;
}

.category-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: bold;
  text-align: left;
  margin: 1.5vh 0;
  text-transform: uppercase;
}

.category-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid black;
  padding-bottom: 0.8vh;
  gap: 1rem;
}

.subcategories {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  flex-grow: 1;
}
.subcategories a {
  color: #0f0f0f;
  text-decoration: none;
}

.subcategories a:hover {
  text-decoration: underline;
}

.filter-group {
  display: flex;
  justify-content: flex-end;
}

.filter-container {
  display: flex;
  align-items: center;
}

.filter-sort {
  border: 1px solid black;
  background: transparent;
  color: black;
  font-weight: bold;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.filter-icon {
  margin-left: 0.5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 items per row */
  gap: 1.5rem;
  padding: 2rem 5%;
  background: #f1f1f1;
}

.product-card {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  border-radius: 5px;
  background: white;
}

.product-price {
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 0.8rem;
}

.product-name {
  font-size: 1rem;
  color: #0f0f0f;
  margin: 0.5rem 0;
}

.product-tag {
  font-size: 0.8rem;
  color: #e60023;
  font-weight: bold;
  margin-top: 0.3rem;
}

/*media queries*/

@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 items per row */
  }

  .product-card img {
    height: 250px; /* Slightly smaller images on tablet */
  }
}

/* Media query for small tablets */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 items per row */
    gap: 1rem;
  }

  .product-card img {
    height: 200px;
  }
}

/* Media query for mobile phones */
@media (max-width: 576px) {
  .product-grid {
    grid-template-columns: 1fr; /* 1 item per row */
    padding: 1rem 5%;
  }

  .category-menu {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-group {
    width: 100%;
    justify-content: flex-start;
    margin-top: 1rem;
  }

  .subcategories {
    gap: 1rem;
  }
}
