
/* ===== Wrapper ===== */
.page-heading {
  display: none !important;
}

.category-wrapper {
  width: 60%;
  margin: 0 auto;
  margin-top: 60px;
  position: relative;
  padding: 0 40px; /* space for arrows */
}

.category-title {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 48px;
  line-height: 40px;
  font-weight: 500;
  color: #666; /* grey */
  margin: 0 0 40px 0;
  letter-spacing: normal !important;
}

/* ===== Scroll Buttons (triangle style) ===== */
.scroll-btn {
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
  padding: 0;
  width: 0;
  height: 0;
}

/* Left triangle */
.scroll-btn.left {
  left: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-right: 16px solid #732a80;
}

/* Right triangle */
.scroll-btn.right {
  right: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 16px solid #732a80;
}

/* Hover effect (optional) */
.scroll-btn:hover {
  opacity: 0.7;
}


/* ===== Scroller Container ===== */
.category-scroller {
  overflow-x: auto;
  padding-bottom: 10px;
 scroll-padding-right: 0px;

  /* Firefox scrollbar */
  scrollbar-color: #732a80 #eee;
  scrollbar-width: thin;
}

/* Chrome, Edge, Safari scrollbar */
.category-scroller::-webkit-scrollbar {
  height: 8px;
}

.category-scroller::-webkit-scrollbar-track {
  background: #eee;
}

.category-scroller::-webkit-scrollbar-thumb {
  background: #732a80;
  border-radius: 4px;
}

.category-scroller::-webkit-scrollbar-thumb:hover {
  background: #5e2369;
}

/* ===== Track ===== */
.scroller-track {
  display: flex;
  gap: 20px;
  width: max-content;
}

  .scroller-track::after {
  content: "";
  flex: 0 0 2px; /* creates controlled end spacing */
}

/* ===== Category Item ===== */
.category-item {
  flex: 0 0 180px;   /*  restore stronger desktop size */
  text-decoration: none !important;
  color: black;
}

.image-box {
  width: 180px;
  height: 180px;
  overflow: hidden;
}

.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Caption ===== */
.caption {
  display: flex;
  align-items: center;      /* vertical centering */
  justify-content: center;  /* horizontal centering */
  height: 52px;             /* fixed button height */
  margin-top: 10px;
  padding: 0 12px;
  text-align: center;
  text-decoration: none !important;
  background-color: rgba(115, 42, 128, 0.2);
  color: #732a80;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  box-sizing: border-box;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;

}

.category-item:hover .caption {
  background-color: #732a80;
  color: #ffffff;
  text-decoration: none !important;
}


.category-scroller.is-centered {
  overflow: hidden; /* no scroll needed */
}

.category-scroller.is-centered .scroller-track {
  justify-content: center;
  width: 100%;
}

.category-wrapper.is-centered .scroll-btn {
  display: none;
}

/* ===== Tablet ===== */
@media (max-width: 1024px) {

  .category-wrapper {
  width: 100%;
  margin: 0 auto;
  margin-top: 30px;
  }

  .scroller-track {
    gap: 14px; /* slightly tighter than desktop */
  }

  .category-item {
    flex: 0 0 140px; /* smaller than 160 → fixes spacing */
  }

  .image-box {
    width: 140px;
    height: 140px;
  }
}

@media (min-width: 601px) {
  .category-wrapper.is-centered .scroll-btn {
    display: none;
  }
}

/* ===== Mobile ===== */
@media (max-width: 600px) {

  .category-wrapper {
    padding: 0 8px;
  }

  .category-item {
    flex: 0 0 35vw; /* ~2.5 items */
  }

  .image-box {
    width: 35vw;
    height: 35vw;
  }

  .scroller-track {
    gap: 12px;
    width: fit-content;
    padding-right: 0px; 
  }

  .scroll-btn {
    display: none;
  }

    .category-scroller.is-centered {
    overflow: hidden;
  }

    .category-scroller.is-centered .scroller-track {
    justify-content: center;
    width: 100%;
  }

  .scroller-track::after {
    flex: 0 0 4px;
  }
}