.nm-cat-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 20px 56px;
}

.nm-cat-rail-wrap {
  position: sticky;
  top: 132px;
  display: flex;
  max-height: min(640px, calc(100vh - 180px));
}

.nm-cat-rail {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(640px, calc(100vh - 180px));
  overflow-y: auto;
  scrollbar-width: none;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
}

.nm-cat-rail::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.nm-cat-rail-meter {
  position: absolute;
  top: 12px;
  right: 6px;
  bottom: 12px;
  width: 3px;
  border-radius: 99px;
  background: #e6eee2;
  pointer-events: none;
}

.nm-cat-rail-meter i {
  position: absolute;
  left: 0;
  width: 100%;
  border-radius: 99px;
  background: #6BB252;
}

.nm-cat-rail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #f2f2f2;
  border-left: 3px solid transparent;
  color: #6BB252;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.nm-cat-rail-item img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #f4f6f2;
}

.nm-cat-rail-item.is-active {
  background: #f3f8ef;
  border-left-color: #6BB252;
  color: #6BB252;
}

.nm-cat-head {
  margin-bottom: 14px;
}

.nm-cat-head h1 {
  margin: 0;
  color: #6BB252;
  font-size: 1.45rem;
  line-height: 1.2;
}

.nm-cat-head p {
  margin: 4px 0 0;
  color: #6d6d6d;
  font-size: 0.92rem;
  line-height: 1.4;
}

.nm-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.nm-cat-card {
  margin-bottom: 0;
}

.nm-cat-card h3 {
  margin-bottom: 2px;
  line-height: 1.3;
}

.nm-cat-card h3 a {
  color: #222;
  text-decoration: none;
}

.nm-cat-meta {
  margin: 0 0 6px;
  color: #212121;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.2;
}

.nm-cat-panel[hidden] {
  display: none !important;
}

@media (min-width: 1200px) {
  .nm-cat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  body.nm-page-category {
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
  }

  body.nm-page-category .nm-site-footer,
  body.nm-page-category #footer-bottom,
  body.nm-page-category .nm-cats {
    display: none;
  }

  body.nm-page-category .nm-cat-shell {
    flex: 1;
    min-height: 0;
    max-width: none;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
    padding: 0;
    overflow: hidden;
  }

  body.nm-page-category .nm-cat-rail-wrap {
    position: relative;
    top: 0;
    height: 100%;
    max-height: none;
    min-height: 0;
  }

  body.nm-page-category .nm-cat-rail,
  body.nm-page-category .nm-cat-board {
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.nm-page-category .nm-cat-rail {
    border: 0;
    border-right: 1px solid #ececec;
    border-radius: 0;
    background: #f6f7f4;
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  body.nm-page-category .nm-cat-rail-meter {
    top: 8px;
    right: 3px;
    bottom: 8px;
  }

  body.nm-page-category .nm-cat-rail-item {
    flex-direction: column;
    gap: 6px;
    padding: 12px 6px;
    border-left: 0;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    background: transparent;
  }

  body.nm-page-category .nm-cat-rail-item img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
  }

  body.nm-page-category .nm-cat-rail-item.is-active {
    background: #fff;
    box-shadow: inset 3px 0 0 #6BB252;
  }

  body.nm-page-category .nm-cat-board {
    padding: 12px 10px calc(76px + env(safe-area-inset-bottom));
    background: #fff;
  }

  body.nm-page-category .nm-cat-head h1 {
    font-size: 1.05rem;
  }

  body.nm-page-category .nm-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.nm-page-category .nm-cat-card.product-item {
    padding: 8px 8px 10px;
  }
}
