/* =====================================================================
   Shop catalog — /catalog/catalog-filter.php
   Everything is scoped under .nvk-cat so the site-wide h2/p/img/li rules
   in styles.css don't leak in (and nothing here leaks out).
   ===================================================================== */

.nc-content { max-width: 1150px; padding: 18px 20px 40px; }

.nvk-cat {
  --nc-bg: rgba(12, 15, 17, 0.82);
  --nc-panel: #13181b;
  --nc-card: #161c20;
  --nc-line: rgba(255, 255, 255, 0.10);
  --nc-line-2: rgba(255, 255, 255, 0.18);
  --nc-text: #eef2f4;
  --nc-muted: #9eabb2;
  --nc-green: #00cc4e;
  --nc-green-d: #00a63f;
  --nc-amber: #e9b44c;
  --nc-radius: 12px;
  --nc-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --nc-body: "Barlow", Arial, Helvetica, sans-serif;

  color: var(--nc-text);
  font-family: var(--nc-body);
  font-size: 15px;
  line-height: 1.45;
}
.nvk-cat *, .nvk-cat *::before, .nvk-cat *::after { box-sizing: border-box; }
.nvk-cat p { margin: 0; padding: 0; font-family: var(--nc-body); font-size: inherit; line-height: inherit; color: inherit; word-spacing: normal; }
.nvk-cat h1, .nvk-cat h2, .nvk-cat h3 { border: 0; padding: 0; margin: 0; display: block; color: var(--nc-text); letter-spacing: 0; text-indent: 0; position: static; z-index: auto; }
/* styles.css gives every h3 z-index:-1 (hides it behind card backgrounds) and an ::after underline */
.nvk-cat h3::after { content: none; display: none; }
.nvk-cat ul { list-style: none; margin: 0; padding: 0; }
.nvk-cat li { color: inherit; font-size: inherit; line-height: inherit; }
.nvk-cat a { color: inherit; }
.nvk-cat img { border-radius: 0; }
.nvk-cat button { font-family: inherit; }
.nvk-cat [hidden] { display: none !important; }
.nc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------- header ---------------- */
.nc-head { margin-bottom: 18px; }
.nc-crumbs { font-size: 13px; color: var(--nc-muted); margin-bottom: 6px; }
.nc-crumbs a { color: var(--nc-muted); text-decoration: none; }
.nc-crumbs a:hover { color: var(--nc-green); }
.nc-crumbs span { margin: 0 6px; opacity: .6; }
.nvk-cat .nc-title {
  font-family: var(--nc-head);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.nvk-cat .nc-sub { color: var(--nc-muted); margin-top: 6px; max-width: 640px; }

.nc-search { position: relative; margin-top: 16px; max-width: 760px; }
.nc-search__icon { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--nc-muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.nc-search input {
  width: 100%;
  height: 50px;
  padding: 0 44px 0 44px;
  border-radius: 10px;
  border: 1px solid var(--nc-line-2);
  background: rgba(0, 0, 0, .55);
  color: var(--nc-text);
  font: 500 16px var(--nc-body);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.nc-search input::placeholder { color: #7f8b91; }
.nc-search input:focus { border-color: var(--nc-green); box-shadow: 0 0 0 3px rgba(0, 204, 78, .18); }
.nc-search input::-webkit-search-cancel-button { display: none; }
.nc-search__clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--nc-muted); font-size: 24px; line-height: 1; cursor: pointer; }
.nc-search__clear:hover { color: var(--nc-text); background: rgba(255, 255, 255, .08); }

/* ---------------- layout ---------------- */
.nc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
.nc-main { min-width: 0; scroll-margin-top: 80px; }

/* ---------------- sidebar ---------------- */
.nc-side {
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 24px);
  display: flex;
  flex-direction: column;
  background: var(--nc-bg);
  border: 1px solid var(--nc-line);
  border-radius: var(--nc-radius);
  overflow: hidden;
}
.nc-side__head, .nc-side__foot { display: none; }
.nc-side__body { overflow-y: auto; padding: 14px 14px 18px; scrollbar-width: thin; scrollbar-color: #39444a transparent; }

.nc-toggle { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 14px; border: 1px solid var(--nc-line); border-radius: 10px; background: rgba(255, 255, 255, .03); cursor: pointer; font-weight: 600; }
.nc-toggle input, .nc-opt input, .nc-stock input { accent-color: var(--nc-green); width: 16px; height: 16px; margin: 0; flex: none; }

.nc-group { border-top: 1px solid var(--nc-line); padding: 12px 0 10px; }
.nc-group:first-of-type { border-top: 0; padding-top: 0; }
.nvk-cat .nc-group__title {
  font-family: var(--nc-head);
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--nc-text);
  margin: 0 0 8px;
  cursor: default;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
details.nc-group > summary { cursor: pointer; user-select: none; }
details.nc-group > summary::-webkit-details-marker { display: none; }
details.nc-group > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--nc-muted); border-bottom: 2px solid var(--nc-muted); transform: rotate(45deg) translateY(-3px); transition: transform .15s; }
details.nc-group[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
details.nc-group:not([open]) > summary { margin-bottom: 0; }
.nc-group__n { background: var(--nc-green); color: #04140a; font: 700 12px var(--nc-body); border-radius: 999px; padding: 1px 7px; }
.nc-group__help, .nc-group__note { font-size: 12.5px; color: var(--nc-muted); margin: -2px 0 8px; line-height: 1.35; }
.nc-group__note { margin: 8px 0 0; color: #b7c8bd; }

.nc-cats li + li { margin-top: 1px; }
.nc-cat {
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--nc-text);
  font: 500 14.5px var(--nc-body);
  text-align: left;
  cursor: pointer;
}
.nc-cat span { flex: 1; }
.nc-cat em, .nc-opt em { font-style: normal; font-size: 12.5px; color: var(--nc-muted); font-variant-numeric: tabular-nums; }
.nc-cat:hover { background: rgba(255, 255, 255, .06); }
.nc-cat.is-on { background: rgba(0, 204, 78, .14); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--nc-green); }
.nc-subcats { margin: 2px 0 6px 10px; padding-left: 8px; border-left: 1px solid var(--nc-line-2); }
.nc-cat--sub { font-size: 13.5px; padding: 5px 8px; color: #d5dde1; }

.nc-opts li + li { margin-top: 2px; }
.nc-opt { display: flex; align-items: center; gap: 9px; padding: 5px 6px; border-radius: 7px; cursor: pointer; font-size: 14px; }
.nc-opt:hover { background: rgba(255, 255, 255, .05); }
.nc-opt__name { flex: 1; }
.nc-more { margin-top: 6px; padding: 4px 6px; border: 0; background: none; color: var(--nc-green); font: 600 13.5px var(--nc-body); cursor: pointer; }
.nc-more:hover { text-decoration: underline; }

/* ---------------- buttons ---------------- */
.nvk-cat .nc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  max-width: none;
  margin: 0;
  padding: 0 16px;
  border-radius: 9px;
  border: 1px solid transparent;
  font: 700 15px var(--nc-body);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, transform .05s;
}
.nvk-cat .nc-btn:active { transform: translateY(1px); }
.nvk-cat .nc-btn--primary { background: var(--nc-green); color: #04140a; border-color: var(--nc-green); }
.nvk-cat .nc-btn--primary:hover { background: #22e066; color: #04140a; }
.nvk-cat .nc-btn--primary.is-added { background: #fff; border-color: #fff; color: #0a3d1d; }
.nvk-cat .nc-btn--ghost { background: transparent; color: var(--nc-text); border-color: var(--nc-line-2); }
.nvk-cat .nc-btn--ghost:hover { border-color: var(--nc-text); background: rgba(255, 255, 255, .05); }
.nvk-cat .nc-btn--filter { display: none; background: rgba(255, 255, 255, .06); color: var(--nc-text); border-color: var(--nc-line-2); }
.nc-btn--filter svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nc-badge { background: var(--nc-green); color: #04140a; border-radius: 999px; font-size: 12px; padding: 1px 7px; }

/* ---------------- "What's in your Jeep?" ---------------- */
.nc-fit { margin-bottom: 18px; padding: 14px 16px 16px; background: var(--nc-bg); border: 1px solid var(--nc-line); border-left: 3px solid var(--nc-green); border-radius: var(--nc-radius); }
.nc-fit__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.nvk-cat .nc-fit__title { font: 700 20px/1.1 var(--nc-head); text-transform: uppercase; letter-spacing: .5px; }
.nc-fit__clear { margin-left: auto; padding: 2px 4px; border: 0; background: none; color: var(--nc-muted); font: 600 13.5px var(--nc-body); text-decoration: underline; cursor: pointer; }
.nc-fit__clear:hover { color: var(--nc-text); }
.nc-fit__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.nc-fit__field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nc-fit__field span { font: 600 12px var(--nc-body); text-transform: uppercase; letter-spacing: .6px; color: var(--nc-muted); }
.nc-fit__field select { width: 100%; height: 40px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--nc-line-2); background: #0d1113; color: var(--nc-text); font: 500 14.5px var(--nc-body); cursor: pointer; text-overflow: ellipsis; }
.nc-fit__field select:focus { outline: none; border-color: var(--nc-green); box-shadow: 0 0 0 3px rgba(0, 204, 78, .18); }
/* Solid colours only: Windows draws the open list on white using the select's colours, so a
   see-through green made the options near-white on pale green (unreadable). */
.nc-fit__field.is-set select { border-color: var(--nc-green); background-color: #0c2018; }
.nc-fit__note { margin-top: 10px !important; font-size: 13px; color: #b7c8bd; }
.nc-fit__note a, .nc-fit__last a { color: var(--nc-green); }
.nc-fit { scroll-margin-top: 80px; }
.nc-fit__lead { margin: -4px 0 10px !important; color: var(--nc-muted); font-size: 14px; max-width: 640px; }
.nc-fit__last { margin: -2px 0 10px !important; font-size: 14px; }
.nc-fit__last a { font-weight: 600; }
.nc-fit__field optgroup { font-style: normal; font-weight: 700; color: #9eabb2; background-color: #0d1113; }
.nc-fit__field option { color: #eef2f4; font-weight: 500; background-color: #0d1113; }

/* turnkey LS swap kit for the chosen Jeep */
.nvk-cat .nc-turnkey { display: flex; align-items: center; gap: 12px 14px; flex-wrap: wrap; margin-top: 12px; padding: 11px 14px; border-radius: 10px; border: 1px solid rgba(0, 204, 78, .45); background: linear-gradient(135deg, rgba(0, 0, 0, .35), rgba(0, 204, 78, .10)); text-decoration: none; transition: border-color .15s; }
.nvk-cat .nc-turnkey:hover { border-color: var(--nc-green); }
.nc-turnkey__badge { flex: none; padding: 2px 8px; border-radius: 4px; background: var(--nc-green); color: #04140a; font: 700 11px var(--nc-body); text-transform: uppercase; letter-spacing: .5px; }
.nc-turnkey__text { flex: 1 1 260px; font-size: 14px; color: var(--nc-muted); }
.nc-turnkey__text strong { color: var(--nc-text); }
.nc-turnkey__go { flex: none; font-weight: 700; color: var(--nc-green); white-space: nowrap; }

/* ---------------- kit view: a build's parts, one section per category ---------------- */
.nc-kit { container-type: inline-size; transition: opacity .15s; }
.nc-kit.is-loading { opacity: .45; pointer-events: none; }
.nc-kit__sec { margin-bottom: 22px; }
.nc-kit__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 1px solid var(--nc-line); }
.nvk-cat .nc-kit__title { font: 700 21px/1.1 var(--nc-head); text-transform: uppercase; letter-spacing: .5px; }
.nc-kit__count { font-size: 13px; color: var(--nc-muted); }
.nvk-cat .nc-kit__all { margin-left: auto; font-weight: 600; font-size: 14px; color: var(--nc-green); text-decoration: none; white-space: nowrap; }
.nvk-cat .nc-kit__all:hover { text-decoration: underline; }
/* two columns of four cards; three in a row (the 4th hidden) once there's room */
.nc-kit .nc-grid--kit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@container (min-width: 690px) {
  .nc-kit .nc-grid--kit { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nc-kit .nc-grid--kit > .nc-card:nth-child(n+4) { display: none; }
}
.nc-kit__more { margin: 6px 0 4px; }
.nc-kit__more .nc-kit__title { font-size: 18px; margin-bottom: 10px; }
.nc-kit__list { margin-top: 12px !important; text-align: center; }
.nc-card__fits--match { color: #7fe3a5; font-weight: 600; }
.nc-note { margin: -4px 0 12px !important; padding: 9px 12px; border-radius: 9px; background: rgba(233, 180, 76, .10); border: 1px solid rgba(233, 180, 76, .35); color: #f1d9a6; font-size: 14px; }

/* ---------------- search: matching guides / pages ---------------- */
.nc-guides { margin-bottom: 14px; }
.nvk-cat .nc-guides__h { font: 700 18px var(--nc-head); text-transform: uppercase; letter-spacing: .6px; margin: 0 0 10px; }
.nc-guides__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-bottom: 18px; }
.nvk-cat .nc-guide { display: flex; flex-direction: column; gap: 3px; padding: 11px 13px; background: var(--nc-bg); border: 1px solid var(--nc-line); border-left: 3px solid var(--nc-green); border-radius: 10px; text-decoration: none; transition: border-color .15s; }
.nvk-cat .nc-guide:hover { border-color: var(--nc-green); }
.nc-guide__sec { font: 600 11.5px var(--nc-body); text-transform: uppercase; letter-spacing: .6px; color: var(--nc-green); }
.nc-guide__title { font-weight: 600; line-height: 1.3; }
.nc-guide__snip { font-size: 13px; color: var(--nc-muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------------- category tiles ---------------- */
.nvk-cat .nc-h2 { font-family: var(--nc-head); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: .6px; margin: 0 0 12px; }
.nc-tiles { margin-bottom: 8px; }
.nc-tiles__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 28px; }
.nc-tile {
  display: flex;
  flex-direction: column;
  border-radius: var(--nc-radius);
  background: var(--nc-card);
  border: 1px solid var(--nc-line);
  text-decoration: none;
  overflow: hidden;
  transition: border-color .15s, transform .15s;
}
.nc-tile:hover { border-color: var(--nc-green); transform: translateY(-2px); }
.nc-tile__img { aspect-ratio: 4 / 3; background: #fff url("/images/graphics/novak_logo_bw.webp") center / 46% no-repeat; display: block; position: relative; }
.nc-tile__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8px; background: #fff; margin: 0; max-width: none; }
.nc-tile__name { font: 700 17px/1.1 var(--nc-head); text-transform: uppercase; letter-spacing: .3px; padding: 10px 10px 2px; color: var(--nc-text); }
.nc-tile__count { font-size: 12.5px; color: var(--nc-muted); padding: 0 10px 10px; }

/* ---------------- type pills ---------------- */
.nc-types { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: thin; }
.nc-pill {
  flex: none;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--nc-line-2);
  background: rgba(0, 0, 0, .35);
  color: var(--nc-text);
  font: 600 13.5px var(--nc-body);
  cursor: pointer;
  white-space: nowrap;
}
.nc-pill span { color: var(--nc-muted); font-weight: 500; margin-left: 2px; }
.nc-pill:hover { border-color: var(--nc-text); }
.nc-pill.is-on { background: var(--nc-green); border-color: var(--nc-green); color: #04140a; }
.nc-pill.is-on span { color: #0d4a24; }
.nvk-cat a.nc-pill { text-decoration: none; display: inline-block; }

/* ---------------- results bar + chips ---------------- */
.nc-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 12px; background: var(--nc-bg); border: 1px solid var(--nc-line); border-radius: var(--nc-radius); }
.nc-count { margin-right: auto; color: var(--nc-muted); }
.nc-count strong { color: var(--nc-text); font-size: 16px; }
.nc-stock { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; white-space: nowrap; }
.nc-sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--nc-muted); }
.nc-sort select { height: 36px; padding: 0 30px 0 10px; border-radius: 8px; border: 1px solid var(--nc-line-2); background: #0d1113; color: var(--nc-text); font: 500 14px var(--nc-body); cursor: pointer; }

.nc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.nc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(0, 204, 78, .45); background: rgba(0, 204, 78, .10); color: #dff7e8; font: 600 13px var(--nc-body); cursor: pointer; }
.nc-chip span[aria-hidden] { font-size: 16px; line-height: 1; opacity: .8; }
.nc-chip:hover { border-color: var(--nc-green); }
.nc-chip--clear { border-color: transparent; background: none; color: var(--nc-muted); text-decoration: underline; }

/* ---------------- product grid ---------------- */
.nc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 14px; transition: opacity .15s; }
.nc-grid.is-loading { opacity: .45; pointer-events: none; }
.nc-card { display: flex; flex-direction: column; background: var(--nc-card); border: 1px solid var(--nc-line); border-radius: var(--nc-radius); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.nc-card:hover { border-color: rgba(0, 204, 78, .55); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
/* The photo is positioned out of the flow: an aspect-ratio box otherwise grows to fit its
   content, so a portrait photo (a quart bottle, 207x533) stretched its card to ~660px tall. */
.nc-card__img { display: block; position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: #fff; }
.nvk-cat .nc-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10px; margin: 0; max-width: none; background: #fff; display: block; }
.nvk-cat .nc-card__img img.is-fallback { padding: 28%; opacity: .35; }
.nc-card__body { display: flex; flex-direction: column; flex: 1; padding: 12px 13px 13px; gap: 4px; }
.nc-card__kicker { font: 600 12px var(--nc-body); color: var(--nc-green); text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nvk-cat .nc-card__title { font: 600 15px/1.3 var(--nc-body); margin: 0; }
.nvk-cat .nc-card__title a { text-decoration: none; display: block; max-height: 3.9em; overflow: hidden; } /* 3 lines at 1.3 line-height */
.nvk-cat .nc-card__title a:hover { color: var(--nc-green); }
.nc-card__pn { font-size: 12.5px; color: var(--nc-muted); font-variant-numeric: tabular-nums; }
.nc-card__fits { font-size: 12.5px; color: #c9d7cf; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-card__foot { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; gap: 2px; }
.nc-price { font: 700 24px/1 var(--nc-head); letter-spacing: .3px; }
.nc-price--call { font-size: 18px; color: var(--nc-muted); }
.nc-msrp { color: var(--nc-muted); font-size: 14px; margin-left: 4px; }
.nc-stockline { font-size: 12.5px; color: var(--nc-muted); }
.nc-stockline.is-in { color: #4ee38a; }
.nc-stockline.is-in::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #4ee38a; margin-right: 6px; vertical-align: 1px; }
.nc-stockline.is-bo { color: var(--nc-amber); }
.nc-card__actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 10px; }
.nc-buy { display: flex; }
.nc-buy .nc-btn { width: 100%; }

/* ---------------- empty / loading ---------------- */
.nc-empty { grid-column: 1 / -1; text-align: center; padding: 48px 20px; background: var(--nc-bg); border: 1px dashed var(--nc-line-2); border-radius: var(--nc-radius); }
.nvk-cat .nc-empty h3 { font: 700 24px var(--nc-head); text-transform: uppercase; margin-bottom: 8px; }
.nc-empty p { color: var(--nc-muted); max-width: 520px; margin: 0 auto 16px !important; }
.nc-empty a { color: var(--nc-green); }
.nc-skel { border-radius: var(--nc-radius); background: linear-gradient(100deg, #161c20 30%, #1f272c 50%, #161c20 70%); background-size: 300% 100%; animation: nc-shimmer 1.3s infinite linear; }
.nc-skel--card { aspect-ratio: 3 / 4.6; }
.nc-skel--side { height: 420px; }
@keyframes nc-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---------------- pagination ---------------- */
.nc-pages { margin: 26px 0 8px; text-align: center; }
.nc-pages__row { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; }
.nc-page { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--nc-line-2); background: rgba(0, 0, 0, .4); color: var(--nc-text); font: 600 14px var(--nc-body); cursor: pointer; }
.nc-page:hover:not(:disabled) { border-color: var(--nc-text); }
.nc-page.is-on { background: var(--nc-green); border-color: var(--nc-green); color: #04140a; }
.nc-page:disabled { opacity: .35; cursor: default; }
.nc-page__gap { color: var(--nc-muted); padding: 0 2px; }
.nc-pages__info { margin-top: 10px; font-size: 13px; color: var(--nc-muted); }

/* ---------------- site light mode (viewControl.js + light_style.css) ---------------- */
.nvk-cat.is-light {
  --nc-bg: rgba(255, 255, 255, 0.94);
  --nc-panel: #ffffff;
  --nc-card: #ffffff;
  --nc-line: rgba(0, 0, 0, 0.12);
  --nc-line-2: rgba(0, 0, 0, 0.24);
  --nc-text: #12171a;
  --nc-muted: #56636a;
  --nc-green: #00a63f;
  --nc-amber: #8a5a00;
}
.nvk-cat.is-light .nc-search input,
.nvk-cat.is-light .nc-sort select,
.nvk-cat.is-light .nc-fit__field select,
.nvk-cat.is-light .nc-pill,
.nvk-cat.is-light .nc-page { background: #fff; }
.nvk-cat.is-light .nc-pill.is-on, .nvk-cat.is-light .nc-page.is-on { background: var(--nc-green); color: #fff; }
.nvk-cat.is-light .nc-pill.is-on span { color: #dff7e8; }
.nvk-cat.is-light .nc-fit__field.is-set select { background-color: #ebf6ef; }
.nvk-cat.is-light .nc-chip { color: #0b5a2a; background: rgba(0, 166, 63, .08); }
.nvk-cat.is-light .nc-card__fits { color: #2f6b45; }
.nvk-cat.is-light .nc-group__note, .nvk-cat.is-light .nc-fit__note { color: #3d5a47; }
.nvk-cat.is-light .nc-cat.is-on { color: #0b3d1f; background: rgba(0, 166, 63, .12); }
.nvk-cat.is-light .nc-cat--sub { color: #333c41; }
.nvk-cat.is-light .nc-cat:hover, .nvk-cat.is-light .nc-opt:hover { background: rgba(0, 0, 0, .05); }
.nvk-cat.is-light .nc-stockline.is-in { color: #13843f; }
.nvk-cat.is-light .nc-stockline.is-in::before { background: #13843f; }
.nvk-cat.is-light .nc-note { color: #5c3d00; background: rgba(233, 180, 76, .18); }
.nvk-cat.is-light .nc-btn--filter { background: rgba(0, 0, 0, .04); }
.nvk-cat.is-light .nc-btn--primary { color: #fff; }
.nvk-cat.is-light .nc-btn--primary:hover { background: #008f36; color: #fff; }
.nvk-cat.is-light .nc-badge, .nvk-cat.is-light .nc-group__n { color: #fff; }
.nvk-cat.is-light .nc-search__clear:hover { background: rgba(0, 0, 0, .06); }
.nvk-cat.is-light .nc-skel { background: linear-gradient(100deg, #eef1f2 30%, #f7f9f9 50%, #eef1f2 70%); background-size: 300% 100%; }
.nvk-cat.is-light .nc-card:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, .12); }
.nvk-cat.is-light .nc-card__fits--match { color: #13843f; }
.nvk-cat.is-light .nc-turnkey { background: linear-gradient(135deg, #fff, rgba(0, 166, 63, .08)); border-color: rgba(0, 166, 63, .45); }
.nvk-cat.is-light .nc-turnkey__badge { color: #fff; }
.nvk-cat.is-light .nc-fit__field option { color: #12171a; background-color: #fff; }
.nvk-cat.is-light .nc-fit__field optgroup { color: #56636a; background-color: #fff; }

/* ---------------- mobile: sidebar becomes a drawer ---------------- */
@media (max-width: 900px) {
  .nc-content { padding: 12px 16px 32px; }
  .nc-layout { grid-template-columns: minmax(0, 1fr); }
  .nvk-cat .nc-btn--filter { display: inline-flex; }

  .nc-side {
    position: fixed;
    inset: 0 auto 0 0;
    top: 0;
    width: min(360px, 88vw);
    max-height: none;
    height: 100%;
    z-index: 3000;
    border-radius: 0;
    border: 0;
    border-right: 1px solid var(--nc-line);
    background: #0d1113;
    transform: translateX(-102%);
    transition: transform .25s cubic-bezier(.25, 1, .5, 1);
  }
  body.nc-drawer-open .nc-side { transform: none; }
  .nvk-cat.is-light .nc-side { background: #fff; }
  body.nc-drawer-open { overflow: hidden; }
  .nc-side__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--nc-line); font: 700 20px var(--nc-head); text-transform: uppercase; letter-spacing: .5px; }
  .nc-side__close { width: 38px; height: 38px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .06); color: var(--nc-text); font-size: 26px; line-height: 1; cursor: pointer; }
  .nc-side__body { flex: 1; padding: 14px 16px; }
  .nc-side__foot { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--nc-line); }
  .nc-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 2999; }

  .nc-bar { display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center; }
  .nvk-cat .nc-btn--filter { grid-column: 1; grid-row: 1; }
  .nc-sort { grid-column: 2; grid-row: 1; justify-self: end; }
  .nc-stock { grid-column: 1; grid-row: 2; }
  .nc-count { grid-column: 2; grid-row: 2; margin: 0; text-align: right; }
  .nc-sort span { display: none; }
  .nc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .nc-tiles__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .nc-tile__name { font-size: 14px; padding: 7px 7px 1px; overflow-wrap: anywhere; }
  .nc-tile__count { font-size: 11.5px; padding: 0 7px 7px; }
  .nc-tile__img img { padding: 5px; }
  .nc-fit { padding: 12px; }
  .nc-fit__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .nc-guides__list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

@media (max-width: 480px) {
  .nc-card__body { padding: 10px; }
  .nvk-cat .nc-card__title { font-size: 14px; }
  .nc-price { font-size: 21px; }
  .nc-card__actions { grid-template-columns: 1fr; }
  .nvk-cat .nc-btn { min-height: 38px; padding: 0 10px; font-size: 14px; }
  .nc-stock { font-size: 13px; }
}
