/* Wrapper */
.featured-category-wrapper {
  margin-top: 40px;
  padding: 0 15px;
}

/* Section Title */
.featured-category-wrapper .section-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

/* Scrollable container */
.featured-category-container {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.featured-category-container::-webkit-scrollbar {
  display: none;
}

/* Each item card */
.featured-category-item {
  width: 100px;
  height: 150px;
  text-align: center;
  text-decoration: none;
  color: #333;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 20px;
  padding: 10px 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.featured-category-item:hover {
  transform: translateY(-4px);
}

/* Outer green border wrapper */
.category-image {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #28a745; /* Green border */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  box-sizing: border-box;
  padding: 3px; /* Space between green border and white border */
}

/* Inner white border wrapper */
.category-image-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff; /* White border */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px; /* Space between white border and image */
  box-sizing: border-box;
}

/* Actual image */
.category-image-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Category name (fixed height for 2 lines only) */
.category-name {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  line-height: 1.3;
  max-width: 80px;
  height: calc(1.3em * 2); /* 2 line height */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}