.category-v2 {
  position: relative;
  padding: 8px 0 4px;
}

.category-v2 .swiper-container {
  overflow: hidden;
  padding: 88px 8px 12px;
}

.category-v2 .swiper-wrapper {
  align-items: stretch;
}

.category-v2 .swiper-slide {
  height: auto;
}

.category-v2-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.category-v2-card__body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  max-width: 170px;
  min-height: 168px;
  margin: 0 auto;
  padding: 88px 8px 14px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.category-v2 .swiper-slide:nth-child(odd) .category-v2-card__body {
  background: var(--color-primary);
}

.category-v2 .swiper-slide:nth-child(even) .category-v2-card__body {
  background: var(--color-primary-dark);
}

.category-v2-card__media {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 1;
  width: 140%;
  transform: translate(-50%, -32%);
  pointer-events: none;
}

.category-v2-card__image {
  display: block;
  width: 80%;
  height: auto;
  max-height: 188px;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.28));
  transform-origin: center bottom;
}

.category-v2-card:hover .category-v2-card__image,
.category-v2-card:focus-visible .category-v2-card__image {
  animation: category-v2-image-pulse 1.7s ease-in-out infinite;
}

.category-v2-card__name {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
}

@keyframes category-v2-image-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .category-v2-card:hover .category-v2-card__image,
  .category-v2-card:focus-visible .category-v2-card__image {
    animation: none;
    transform: scale(1.04);
  }
}

@media (max-width: 767.98px) {
  .category-v2 .swiper-container {
    padding-top: 36px;
    padding-bottom: 8px;
  }

  .category-v2-card__body {
    max-width: 84px;
    min-height: 92px;
    padding: 44px 6px 8px;
    border-radius: 12px;
  }

  .category-v2-card__media {
    width: 150%;
    top: 0;
    transform: translate(-50%, -16%);
  }

  .category-v2-card__image {
    max-height: 100px;
  }

  .category-v2-card__name {
    font-size: 0.88rem;
  }
}
