.home-category-nav {
  margin: 18px auto 8px;
  position: relative;
  z-index: 2;
}

.home-category-nav__inner {
  align-items: stretch;
  background: linear-gradient(145deg, #ffffff, #eef5f1);
  border: 1px solid rgba(31, 78, 61, .12);
  border-radius: 22px;
  box-shadow: 0 12px 24px rgba(31, 78, 61, .13), inset 0 1px 0 rgba(255, 255, 255, .9);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  padding: 12px;
}

.home-category-nav__item {
  align-items: center;
  background: linear-gradient(145deg, #ffffff, #f2f7f4);
  border: 1px solid rgba(31, 78, 61, .1);
  border-radius: 16px;
  box-shadow: 5px 5px 12px rgba(31, 78, 61, .11), -3px -3px 8px rgba(255, 255, 255, .95);
  color: #173e31;
  display: flex;
  flex-direction: column;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  justify-content: center;
  line-height: 1.2;
  min-height: 78px;
  padding: 10px 7px;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.home-category-nav__item:hover,
.home-category-nav__item:focus-visible {
  background: linear-gradient(145deg, #f8fffB, #e6f3ec);
  border-color: rgba(25, 135, 84, .34);
  box-shadow: 8px 8px 16px rgba(31, 78, 61, .15), -4px -4px 10px rgba(255, 255, 255, 1);
  color: #146c43;
  outline: none;
  transform: translateY(-3px);
}

.home-category-nav__icon {
  align-items: center;
  background: #eef7f2;
  border: 1px solid rgba(25, 135, 84, .14);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 4px 10px rgba(31, 78, 61, .09);
  display: inline-flex;
  font-size: 21px;
  height: 38px;
  justify-content: center;
  line-height: 1;
  width: 38px;
}

.home-category-nav__label {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

@media (max-width: 1120px) {
  .home-category-nav__inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-category-nav {
    margin-top: 12px;
  }

  .home-category-nav__inner {
    border-radius: 16px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 9px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .home-category-nav__item {
    flex: 0 0 92px;
    font-size: 11px;
    min-height: 68px;
    padding: 8px 6px;
    scroll-snap-align: start;
  }

  .home-category-nav__icon {
    border-radius: 10px;
    font-size: 18px;
    height: 32px;
    width: 32px;
  }
}
