#nc-especies-root.nc-dark {
  --bg: #000;
  --card: #141414;
  --muted: #bdbdbd;
  --ink: #fff;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #fff;
}
#nc-especies-root {
  background: var(--bg);
  color: var(--ink);
  position: relative;
  min-height: 60vh;
}

/* Offcanvas */
#nc-offcanvas {
  position: fixed;
  top: 50%;
  left: 0;
  width: min(88vw, 360px);
  height: 100vh;
  background: #0b0b0b;
  border-right: 1px solid var(--line);
  transform: translateX(-100%) translateY(-50%) !important;
  transition: transform 0.28s ease, visibility 0s 0.28s;
  z-index: 1001;
  padding: 20px;
  visibility: hidden !important;
  overflow-y: auto;
}
#nc-offcanvas[aria-hidden="false"] {
  transform: translateX(0) translateY(-50%) !important;
  visibility: visible !important;
  transition: transform 0.28s ease;
}
#nc-offcanvas[aria-hidden="true"] {
  transform: translateX(-100%) translateY(-50%) !important;
  visibility: hidden !important;
  transition: transform 0.28s ease, visibility 0s 0.28s;
}
#nc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 1000;
  pointer-events: none;
}
#nc-overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
#nc-overlay[aria-hidden="true"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.nc-offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.nc-offcanvas-header h3 {
  font-size: 1.3rem;
  margin: 0;
}
.nc-offcanvas-header .nc-close {
  background: transparent;
  border: 0;
  color: #eee;
  cursor: pointer;
}

/* Slider duplo — melhorado o hit-area e z-index dos thumbs */
.nc-filter-body {
  padding-top: 8px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

.nc-filter-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nc-filter-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.nc-label {
  display: block;
  font-size: 16px;
  color: #eaeaea;
  margin-bottom: 8px;
}
.nc-tip {
  color: var(--muted);
  font-size: 1rem;
  display: none;
}

/* Select inputs */
.nc-select {
  width: 100%;
  padding: 8px 12px;
  background: #0b0b0b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #eaeaea;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease;
  height: 40px;
  display: flex;
  align-items: center;
  line-height: 1.2;
}

.nc-select:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.nc-select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Checkbox groups */
.nc-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.nc-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.nc-checkbox-label:hover {
  background: rgba(255, 255, 255, 0.05);
}

.nc-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #fff;
}

.nc-checkbox-label span {
  color: #eaeaea;
  font-size: 1rem;
}
.nc-dual-range {
  position: relative;
  height: 40px;
  padding: 12px 0;
}
.nc-dual-range input[type="range"] {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: none;
  margin: 0;
  height: 40px; /* área útil maior p/ tocar */
  /* manteremos pointer-events para o thumb */
  pointer-events: none;
}
.nc-dual-range input:focus-visible {
  outline: none;
}
.nc-dual-range input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 0 0 2px #000 inset, 0 0 0 4px rgba(255, 255, 255, 0.12);
  transform: translateY(-7px);
}
.nc-dual-range input::-moz-range-thumb {
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  transform: translateY(-7px);
}
.nc-dual-range input:hover::-webkit-slider-thumb {
  box-shadow: 0 0 0 2px #000 inset, 0 0 0 6px rgba(255, 255, 255, 0.18);
  transform: translateY(-7px);
}
.nc-dual-range input:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 2px #000 inset, 0 0 0 8px rgba(255, 255, 255, 0.22);
  transform: translateY(-7px);
}

.nc-dual-range input::-webkit-slider-runnable-track,
.nc-dual-range input::-moz-range-track {
  height: 4px;
  background: transparent;
}
.nc-dual-range .nc-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  transform: translateY(-50%);
  background: #333;
  border-radius: 999px;
  z-index: 1;
}
.nc-dual-range .nc-range {
  position: absolute;
  height: 100%;
  background: #fff;
  border-radius: 999px;
  left: 0;
  right: 0;
  z-index: 2;
}

/* z-index controlado: min por cima, mas alternamos via classe .is-active no JS */
#nc-min {
  z-index: 4;
}
#nc-max {
  z-index: 3;
}
#nc-min.is-active {
  z-index: 5;
}
#nc-max.is-active {
  z-index: 5;
}

.nc-values {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
}

/* Grelha */
.nc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 24px 16px 84px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 800px) {
  .nc-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    padding: 36px 24px 96px;
  }
}
.nc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.nc-thumb {
  display: block;
  background: #1d1d1d;
  aspect-ratio: 16/10;
  position: relative;
}
.nc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nc-ph {
  width: 100%;
  height: 100%;
  display: block;
}
.nc-title {
  font-size: 1.7rem;
  line-height: 1.3;
  margin: 14px 16px 16px;
}
.nc-title a {
  color: var(--ink);
  text-decoration: none;
}
.nc-title a:hover {
  text-decoration: underline;
}
.nc-temp {
  color: #e6e6e6;
  font-weight: 600;
  margin: 0 16px 16px;
}

/* Estados */
.nc-empty {
  color: var(--muted);
  background: #0f0f0f;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}
.nc-status {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 6px 0 16px;
}
#nc-grid[aria-busy="true"] {
  opacity: 0.6;
}

/* Bottom bar */
.nc-bottombar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.88);
  border-top: 1px solid var(--line);
  backdrop-filter: saturate(120%) blur(6px);
  z-index: 1002;
}
@media (min-width: 800px) {
  .nc-bottombar {
    padding: 10px 24px;
  }
}
.nc-bottombar .nc-cart,
.nc-bottombar .nc-home,
.nc-bottombar .nc-filter-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #111;
  color: #fff;
  border: 1px solid var(--line);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
}
.nc-bottombar .nc-cart:hover,
.nc-bottombar .nc-home:hover,
.nc-bottombar .nc-filter-toggle:hover {
  background: #161616;
}

/* Barra inferior para páginas de espécie */
.nc-bottombar-especie {
  justify-content: space-between;
}

.nc-favorite-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Estilização para o botão de favorito */
.nc-favorite-container .favorito-botao,
.nc-favorite-container [class*="favorito"] {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #111;
  color: #fff;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.nc-favorite-container .favorito-botao:hover,
.nc-favorite-container [class*="favorito"]:hover {
  background: #161616;
}
