.product-sect{
margin-bottom: 4rem;
}
#header .container {
  color: #000;
}

.prod-head-section {
  justify-content: center;
  margin-top: 3rem;
}

.prod-head {
  padding: 2rem 3rem;
  color: #fff;
  background: var(--primary);
  width: 100%;
  border-radius: 10px;

}

.prod-head h2 {
  color: #fff;
  font-size: 2rem;
}

.products {
  margin: 2rem 0;
}

/* .active-btn{
    border-bottom: 2px solid #000 !important;
} */
.prod-show {
  display: grid;
}

.prod-show img {
  border-radius: 15px;
}

.type-btn {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.type-btn button {
  padding: .6rem 1.2rem;
  margin-right: 1rem;
  font-size: .95rem;
  font-weight: 500;
  margin: 0;
  background: none;
  border: none;
  color: #383838;
  position: relative;
  cursor: pointer;
  transition: color 0.3s ease;
}

.type-btn button::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.type-btn button.active-btn {
  color: var(--primary);
}

.type-btn button.active-btn::after {
  width: 100%;
}

.prod-show {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  transition: all 0.2s ease;
}

.product-item {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.2s ease;
}

.product-item.hide {
  opacity: 0;
  transform: translateY(20px);
  position: absolute;
  visibility: hidden;
}

/* Add smooth transitions for mobile menu */
header .nav {
  transition: transform 0.2s ease;
}

header .nav.open {
  transform: translateX(0);
}

.prod-name {
  font-size: .85rem;
  margin-left: 1rem;
  margin-bottom: .2rem;
}

.prod-descrip {
  font-size: .8rem;
  padding-left: 1rem;
}


/* MEDIA QUERY */
@media (max-width: 868px) {
  .prod-show {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .prod-show {
    grid-template-columns: repeat(2, 1fr);
  }

  .type-btn {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .prod-head h2 {
    font-size: 1.5rem;
  }

  .prod-show {
    grid-template-columns: 1fr;
  }

  .type-btn button {
    padding: .4rem .8rem;
    margin-right: .1rem;
    font-size: 0.8rem;
  }

  .type-btn {
    gap: .2rem;
  }
  .prod-show {
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
}
  .product-item {
width: 90%;
  }

}

@media (max-width: 320px) {
  .type-btn button {
    padding: .4rem;
  }
}