.nmc-catalog {
  --nmc-orange: #e65a28;
  --nmc-orange-dark: #c9481d;
  --nmc-orange-soft: #fff0ea;
  --nmc-green: #0f8a4b;
  --nmc-green-dark: #0b6f3c;
  --nmc-green-soft: #eaf7f0;
  --nmc-border: #f1ded6;
  --nmc-text: #16312a;
  --nmc-muted: #64748b;
  font-family: inherit;
}

.nmc-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.nmc-filter-link {
  align-items: center;
  background: #fff;
  border: 1px solid var(--nmc-border);
  border-radius: 999px;
  color: var(--nmc-text);
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  padding: 10px 16px;
  text-decoration: none !important;
  transition: all 0.18s ease;
}

.nmc-filter-link:hover,
.nmc-filter-link.is-active {
  background: var(--nmc-orange);
  border-color: var(--nmc-orange);
  color: #fff;
}

.nmc-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(var(--nmc-columns), minmax(0, 1fr));
}

.nmc-card {
  background: #fff;
  border: 1px solid var(--nmc-border);
  border-radius: 22px;
  box-shadow: 0 16px 36px rgba(230, 90, 40, 0.08);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.nmc-card:hover {
  box-shadow: 0 22px 48px rgba(230, 90, 40, 0.14);
  transform: translateY(-3px);
}

.nmc-image-wrap {
  align-items: center;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #fff7f3, #fff);
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.nmc-image {
  height: 100%;
  object-fit: contain;
  padding: 18px;
  width: 100%;
}

.nmc-placeholder {
  align-items: center;
  background: var(--nmc-orange-soft);
  border-radius: 999px;
  color: var(--nmc-orange-dark);
  display: flex;
  font-weight: 800;
  height: 120px;
  justify-content: center;
  width: 120px;
}

.nmc-card-body {
  padding: 18px;
}

.nmc-badge {
  background: var(--nmc-orange-soft);
  border-radius: 999px;
  color: var(--nmc-orange-dark);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 10px;
  padding: 8px 11px;
}

.nmc-title {
  color: var(--nmc-text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 16px;
  min-height: 44px;
}

.nmc-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nmc-button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  line-height: 1;
  min-height: 42px;
  padding: 12px 14px;
  text-decoration: none !important;
  transition: all 0.18s ease;
}

.nmc-button-shopee {
  background: var(--nmc-orange);
  border: 1px solid var(--nmc-orange);
  color: #fff !important;
}

.nmc-button-shopee:hover {
  background: var(--nmc-orange-dark);
  border-color: var(--nmc-orange-dark);
  color: #fff !important;
}

.nmc-button-tokopedia {
  background: var(--nmc-green);
  border: 1px solid var(--nmc-green);
  color: #fff !important;
}

.nmc-button-tokopedia:hover {
  background: var(--nmc-green-dark);
  border-color: var(--nmc-green-dark);
  color: #fff !important;
}

.nmc-pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}

.nmc-pagination .page-numbers {
  align-items: center;
  background: #fff;
  border: 1px solid var(--nmc-border);
  border-radius: 999px;
  color: var(--nmc-text);
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
  min-height: 40px;
  min-width: 40px;
  padding: 10px 14px;
  text-decoration: none !important;
  transition: all 0.18s ease;
}

.nmc-pagination .page-numbers:hover,
.nmc-pagination .page-numbers.current {
  background: var(--nmc-orange);
  border-color: var(--nmc-orange);
  color: #fff;
}

.nmc-empty {
  background: #fff;
  border: 1px solid var(--nmc-border);
  border-radius: 18px;
  color: var(--nmc-muted);
  padding: 24px;
  text-align: center;
}

@media (max-width: 1024px) {
  .nmc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .nmc-filter {
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0 -16px 18px;
    overflow-x: auto;
    padding: 0 16px 4px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nmc-filter::-webkit-scrollbar {
    display: none;
  }

  .nmc-filter-link {
    flex: 0 0 auto;
    font-size: 12px;
    min-height: 38px;
    padding: 10px 14px;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .nmc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nmc-card-body {
    padding: 14px;
  }

  .nmc-title {
    font-size: 14px;
    min-height: 40px;
  }

  .nmc-actions {
    grid-template-columns: 1fr;
  }

  .nmc-pagination {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: 100%;
  }

  .nmc-pagination .page-numbers {
    font-size: 13px;
    min-height: 38px;
    min-width: 38px;
    padding: 10px 13px;
  }
}

@media (max-width: 420px) {
  .nmc-grid {
    grid-template-columns: 1fr;
  }
}

.nmc-content {
  transition: opacity 0.18s ease;
}

.nmc-catalog.is-loading .nmc-content {
  opacity: 0.55;
  pointer-events: none;
}
