.collection_pils {
  padding: 20px;
  width: 90%;
  margin: auto;
}

.pils_container {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  will-change: scroll-position;
  contain: layout style paint;
  gap: 12px;
  width: 100%;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  justify-content: flex-start;
}

.is_centered {
  justify-content: center;
}

.pils_container:active {
  cursor: grabbing;
}

.pils_container::-webkit-scrollbar {
  display: none;
}


.pil_link {
  display: flex;
  padding: 8px 16px;
  border: 1px solid #000000;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  /* Pastikan pil tidak menyusut dan bisa scroll */
  flex-shrink: 0;
  flex-grow: 0;
  will-change: transform, background-color, border-color;
  backface-visibility: hidden;
  /* Mencegah drag pada link */
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  /* Mencegah text selection */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.pil_text {
  color: #000000;
  font-size: 14px;
  white-space: nowrap;
  font-family: var(--neuzeit-light-font);
  text-transform: capitalize;
}

.pil_link_active {
  background-color: #e0c9e1;
  border-color: #000000;
}

.pil_text_active {
  color: #000000;
}

@media only screen and (min-width: 769px) and (max-width: 1024px) {
  .collection_pils {
    width: 85%;
    margin: auto;
  }
}


@media (max-width: 768px) {

  .collection_pils {
    padding: 25px 15px;
    width: 100%;
  }

  .pils_container {
    gap: 8px;
  }

  .pil_link {
    padding: 6px 12px;
  }

  .pil_text {
    font-size: 12px;
  }
}
