.product-category {
  box-sizing: border-box;
  padding: 32px;
  background: #fff;
}

.product-category .product-category__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.product-category .product-category__heading h2 {
  margin: 0 0 6px;
  color: #333;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.4;
}

.product-category .product-category__heading p {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

.product-category .product-category__all {
  flex-shrink: 0;
  padding: 8px 0;
  color: #2463b2;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.product-category .product-category__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-category .product-category__item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.product-category .product-category__link,
.product-category .product-category__child {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid #e7ebef;
  border-radius: 4px;
  color: #3c4653;
  background: #f6f8fa;
  font-size: 15px;
  line-height: 1.65;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.product-category .product-category__link {
  flex: 1;
}

.product-category .product-category__link:hover,
.product-category .product-category__child:hover {
  border-color: #bed2eb;
  color: #1c5091;
  background: #edf4fc;
}

.product-category .is-current,
.product-category .is-current:hover,
.product-category .product-category__child.is-current,
.product-category .product-category__child.is-current:hover {
  border-color: #2463b2;
  color: #fff;
  background: #2463b2;
}

.product-category a:focus-visible {
  outline: 2px solid #174a8a;
  outline-offset: 3px;
}

.product-category ::selection {
  color: #fff;
  background: #174a8a;
}

.product-category .product-category__children {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.product-category .product-category__children li + li {
  margin-top: 6px;
}

.product-category .product-category__child {
  min-height: 44px;
  padding: 8px 12px;
  font-size: 14px;
  background: #fff;
}

.ab_NyProDetail > .product-category {
  margin-top: 40px;
}

@media (max-width: 1199px) {
  .product-category .product-category__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .product-category {
    padding: 22px 16px;
  }

  .product-category .product-category__heading {
    gap: 12px;
    margin-bottom: 18px;
  }

  .product-category .product-category__heading h2 {
    font-size: 22px;
  }

  .product-category .product-category__heading p {
    font-size: 12px;
  }

  .product-category .product-category__all {
    font-size: 13px;
  }

  .product-category .product-category__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .product-category .product-category__link,
  .product-category .product-category__child {
    min-height: 48px;
    padding: 10px;
    font-size: 13px;
  }

  .ab_NyProDetail > .product-category {
    margin-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-category a {
    transition: none;
  }
}
