.category-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 15%,
    black 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 15%,
    black 100%
  );
}

.category-carousel__track {
  display: flex;
  gap: 20px;
  width: max-content;
  cursor: grab;
  will-change: transform;
}

.category-carousel__track.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.category-carousel__slide {
  position: relative;
  flex-shrink: 0;
  width: 280px;
  height: 360px;
  border-radius: 16px;
  overflow: hidden;
  display: block;
  text-decoration: none;
}

.category-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

.category-carousel__arrow {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 2;
}

.category-carousel__slide:hover .category-carousel__arrow {
  background: var(--color-success);
  color: var(--color-white);
  transform: scale(1.1);
}

.category-carousel__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 1;
}

.category-carousel__name {
  font-family: var(--font-base);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-white);
}

.category-carousel__count {
  font-family: var(--font-base);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 768px) {
  .category-carousel__slide {
    width: 200px;
    height: 260px;
  }
}