/* ==========================================================================
   FEATURE: CATEGORIES SECTION & FILTER PILLS
   ========================================================================== */

.categories-section-website {
  max-width: var(--max-width, 1280px);
  margin: 30px auto;
  padding: 0 16px;
  width: 100%;
  box-sizing: border-box;
}

.section-header-wrap {
  margin-bottom: 24px;
  display: inline-block;
}

.section-header-title {
  font-size: 28px;
  font-weight: 600;
  color: #000000;
  margin-bottom: 4px;
}

.categories-grid-korilla {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.category-card-korilla {
  width: 187px;
  height: 261px;
  background: #FFFFFF;
  border: 1px solid #F1F5F9;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.category-card-korilla:hover {
  transform: translateY(-5px);
  border-color: #E2E8F0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.category-card-korilla img {
  width: 155px;
  height: 155px;
  border-radius: 12px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.category-card-korilla:hover img {
  transform: scale(1.04);
}

.category-card-korilla-title {
  font-size: 17px;
  font-weight: 700;
  color: #1E293B;
  text-align: center;
  line-height: 1.3;
  margin-top: 6px;
}

/* Category Filter Pills (Shop View) */
.cat-pills-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 24px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cat-pills-row::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  flex: 0 0 auto;
  padding: 8px 18px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--primary-navy, #000A46);
  white-space: nowrap;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.cat-pill:hover {
  border-color: var(--primary-red, #FB3E38);
  color: var(--primary-red, #FB3E38);
  background: #FFF8F8;
}

.cat-pill.active {
  background: var(--primary-red, #FB3E38);
  color: #FFFFFF;
  border-color: var(--primary-red, #FB3E38);
  box-shadow: 0 4px 12px rgba(251, 62, 56, 0.25);
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .categories-grid-korilla {
    gap: 10px;
  }
  .category-card-korilla {
    width: calc(50% - 6px);
    height: auto;
    min-height: 175px;
    padding: 10px 6px;
  }
  .category-card-korilla img {
    width: 85px;
    height: 85px;
  }
}
