/* =====================================================================
   Shop clutch kits — /catalog/clutch/clutch-kits.php
   Scoped under .nvk-clutch so the site-wide h1/h2/h3/p/img/li rules in
   styles.css (and light_style.css) don't leak in. Colours are tokens with a
   light-mode value each (.nvk-clutch.is-light, set by the page's script from
   the site's light-mode preference), the same way the shop page does it.
   The kit rows are novak_cart.js product widgets: .add-to-cart, .part-title,
   .part-number and the notices the widget inserts are restyled here.
   ===================================================================== */

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

.nvk-clutch {
  --ck-bg: rgba(12, 15, 17, 0.82);
  --ck-card: #161c20;
  --ck-row-hover: rgba(255, 255, 255, 0.03);
  --ck-line: rgba(255, 255, 255, 0.10);
  --ck-line-2: rgba(255, 255, 255, 0.18);
  --ck-text: #eef2f4;
  --ck-muted: #9eabb2;
  --ck-green: #00cc4e;
  --ck-green-d: #00a63f;
  --ck-on-green: #04140a;
  --ck-green-soft: rgba(0, 204, 78, 0.12);
  --ck-amber: #e9b44c;
  --ck-stock: #4ee38a;
  --ck-bar: rgba(255, 255, 255, 0.10);
  --ck-pill-bg: rgba(0, 0, 0, 0.35);
  --ck-thumb-bg: #ffffff;
  --ck-disabled-bg: #3a4348;
  --ck-disabled-text: #b9c3c8;
  --ck-radius: 12px;
  --ck-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --ck-body: "Barlow", Arial, Helvetica, sans-serif;

  color: var(--ck-text);
  font-family: var(--ck-body);
  font-size: 15px;
  line-height: 1.45;
}
.nvk-clutch.is-light {
  --ck-bg: rgba(255, 255, 255, 0.94);
  --ck-card: #ffffff;
  --ck-row-hover: rgba(0, 0, 0, 0.025);
  --ck-line: rgba(0, 0, 0, 0.12);
  --ck-line-2: rgba(0, 0, 0, 0.24);
  --ck-text: #12171a;
  --ck-muted: #56636a;
  --ck-green: #00a63f;
  --ck-green-d: #008f36;
  --ck-on-green: #ffffff;
  --ck-green-soft: rgba(0, 166, 63, 0.10);
  --ck-amber: #8a5a00;
  --ck-stock: #13843f;
  --ck-bar: rgba(0, 0, 0, 0.10);
  --ck-pill-bg: #ffffff;
  --ck-thumb-bg: #ffffff;
  --ck-disabled-bg: #d5dadd;
  --ck-disabled-text: #4a555b;
}

/* ---------------- resets (styles.css / light_style.css give every h1-h3/p/li/img its own look) ---------------- */
.nvk-clutch *, .nvk-clutch *::before, .nvk-clutch *::after { box-sizing: border-box; }
.nvk-clutch p { margin: 0; padding: 0; font-family: var(--ck-body); font-size: inherit; line-height: inherit; color: inherit; word-spacing: normal; letter-spacing: normal; }
.nvk-clutch h1, .nvk-clutch h2, .nvk-clutch h3 { border: 0; border-radius: 0; padding: 0; margin: 0; display: block; clear: none; color: var(--ck-text); letter-spacing: 0; text-indent: 0; text-align: left; position: static; z-index: auto; background: none; }
.nvk-clutch h3::after { content: none; display: none; }
.nvk-clutch ul, .nvk-clutch ol { list-style: none; margin: 0; padding: 0; }
.nvk-clutch li { color: inherit; font-size: inherit; line-height: inherit; }
.nvk-clutch dl, .nvk-clutch dd { margin: 0; }
.nvk-clutch a { color: inherit; }
.nvk-clutch button { font-family: inherit; }
.nvk-clutch [hidden] { display: none !important; }

.nvk-clutch .ck-h2 { font: 700 22px/1.1 var(--ck-head); text-transform: uppercase; letter-spacing: .6px; margin: 0 0 12px; }

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

/* ---------------- how to choose ---------------- */
.ck-how { padding: 14px 16px 16px; margin-bottom: 14px; background: var(--ck-bg); border: 1px solid var(--ck-line); border-radius: var(--ck-radius); }
.ck-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 16px; counter-reset: ck-step; }
.nvk-clutch .ck-steps li { position: relative; padding-left: 34px; font-size: 14px; line-height: 1.4; color: var(--ck-muted); counter-increment: ck-step; }
.ck-steps li::before { content: counter(ck-step); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--ck-green); color: var(--ck-on-green); font: 700 15px/24px var(--ck-head); text-align: center; }
.ck-steps strong { display: block; color: var(--ck-text); font: 700 17px/1.2 var(--ck-head); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 2px; }
.nvk-clutch .ck-help { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--ck-line); font-size: 14px; color: var(--ck-muted); }
.nvk-clutch .ck-help a { color: var(--ck-green); font-weight: 600; }

/* ---------------- filters + jump links ---------------- */
.ck-tools { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; margin-bottom: 14px; background: var(--ck-bg); border: 1px solid var(--ck-line); border-radius: var(--ck-radius); }
.ck-filter, .ck-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ck-filter__lbl { flex: none; width: 52px; font: 700 13px var(--ck-head); text-transform: uppercase; letter-spacing: .6px; color: var(--ck-muted); }
.ck-pill { flex: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ck-line-2); background: var(--ck-pill-bg); color: var(--ck-text); font: 600 13.5px var(--ck-body); cursor: pointer; white-space: nowrap; }
.ck-pill:hover { border-color: var(--ck-text); }
.ck-pill.is-on { background: var(--ck-green); border-color: var(--ck-green); color: var(--ck-on-green); }
.ck-pill:focus-visible, .ck-jump a:focus-visible, .ck-links a:focus-visible { outline: 2px solid var(--ck-green); outline-offset: 2px; }
.nvk-clutch .ck-jump a { padding: 4px 10px; border-radius: 8px; border: 1px solid var(--ck-line); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.ck-jump a span { color: var(--ck-muted); font-weight: 500; }
.nvk-clutch .ck-jump a:hover { border-color: var(--ck-green); color: var(--ck-green); }

/* ---------------- application cards ---------------- */
/* Balanced columns rather than a grid: cards differ in height (2–3 McLeod levels), and in
   column order the Jeep cards fill the left column and the GM cards the right one. */
.ck-grid { columns: 2 470px; column-gap: 14px; margin-bottom: 12px; }
.ck-app { container-type: inline-size; break-inside: avoid; margin-bottom: 14px; scroll-margin-top: 14px; background: var(--ck-card); border: 1px solid var(--ck-line); border-radius: var(--ck-radius); overflow: hidden; }
.ck-app:target { border-color: var(--ck-green); }
.ck-app__head { padding: 12px 14px 10px; border-bottom: 1px solid var(--ck-line); background: linear-gradient(135deg, var(--ck-green-soft), transparent 70%); }
.nvk-clutch .ck-app__name { font: 700 24px/1.05 var(--ck-head); text-transform: uppercase; letter-spacing: .4px; }
.ck-app__years { color: var(--ck-green); }
.ck-specs { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; }
.ck-specs dt { font: 600 11.5px var(--ck-body); text-transform: uppercase; letter-spacing: .6px; color: var(--ck-muted); }
.ck-specs dd { font: 700 17px/1.15 var(--ck-head); letter-spacing: .3px; }

/* one kit = one row: photo | level, torque, live title, part number + stock | price + Add to Cart */
.ck-opt { border-top: 1px solid var(--ck-line); }
.ck-opt:first-child { border-top: 0; }
.ck-opt:hover { background: var(--ck-row-hover); }
.nvk-clutch .novak_cart.ck-cart {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-areas: "img info" "buy buy";
  gap: 8px 12px;
  align-items: center;
  margin: 0;
  padding: 10px 12px;
  float: none;
  text-align: left;
  background: transparent;
  color: inherit;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  max-width: none;
}
@container (min-width: 440px) {
  .nvk-clutch .novak_cart.ck-cart { grid-template-columns: 64px minmax(0, 1fr) 176px; grid-template-areas: "img info buy"; }
  .nvk-clutch .ck-cart .ck-buy { align-items: flex-end; text-align: right; }
}
.ck-thumb-link { grid-area: img; display: block; }
.nvk-clutch .ck-cart .ck-thumb { grid-area: img; display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; margin: 0; padding: 3px; max-width: none; object-fit: contain; background: var(--ck-thumb-bg); border: 1px solid var(--ck-line); border-radius: 8px; }
.ck-thumb-link .ck-thumb { width: 100%; }
.nvk-clutch .ck-cart .ck-info { grid-area: info; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; }

.ck-level { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.ck-kicker { font: 600 11.5px var(--ck-body); text-transform: uppercase; letter-spacing: .6px; color: var(--ck-green); }
.nvk-clutch .ck-level__name { font: 700 18px/1.15 var(--ck-head); text-transform: uppercase; letter-spacing: .3px; display: inline; }
.ck-torque { margin-left: auto; font-size: 13px; color: var(--ck-muted); white-space: nowrap; }
.ck-torque strong { color: var(--ck-text); font: 700 16px var(--ck-head); }
.ck-bar { flex: 1 0 100%; height: 4px; margin: 3px 0 2px; border-radius: 2px; background: var(--ck-bar); overflow: hidden; }
.ck-bar span { display: block; height: 100%; border-radius: 2px; background: var(--ck-green); }

.nvk-clutch .ck-cart .part-title.ck-item { font: 500 13.5px/1.3 var(--ck-body); color: var(--ck-text); text-decoration: none; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.nvk-clutch .ck-cart a.part-title.ck-item:hover { color: var(--ck-green); text-decoration: underline; }
.ck-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-size: 12.5px; }
.nvk-clutch .ck-cart .part-number.ck-pn { display: inline; padding: 0; border: 0; margin: 0; font-size: 12.5px; color: var(--ck-muted); font-variant-numeric: tabular-nums; }
.ck-stock { color: var(--ck-muted); }
.ck-stock.is-in { color: var(--ck-stock); }
.ck-stock.is-in::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ck-stock); margin-right: 5px; vertical-align: 1px; }
.ck-stock.is-call { color: var(--ck-amber); }
.nvk-clutch .ck-stock.is-call a { color: inherit; font-weight: 600; white-space: nowrap; }

/* price + button column; novak_cart.js puts its notices (backorder, website message, MSRP, reviews) above the button */
.nvk-clutch .ck-cart .ck-buy { grid-area: buy; display: flex; flex-direction: column; align-items: stretch; gap: 3px; margin: 0; padding: 0; min-width: 0; text-align: left; }
.nvk-clutch .ck-cart .add-to-cart {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 38px;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: var(--ck-green);
  color: var(--ck-on-green);
  font: 700 14px/1.2 var(--ck-body);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s;
}
.nvk-clutch .ck-cart .add-to-cart:hover { background: var(--ck-green-d); color: var(--ck-on-green); }
.nvk-clutch .ck-cart .add-to-cart:disabled { background: var(--ck-disabled-bg); color: var(--ck-disabled-text); cursor: not-allowed; }
.nvk-clutch .ck-cart .ck-buy > p,
.nvk-clutch .ck-cart .ck-buy > div:not(.review-summary) { margin: 0; padding: 0; font-size: 12px; line-height: 1.3; letter-spacing: normal; text-align: inherit; }
.nvk-clutch .ck-cart .item-website-message { color: #ff6b6b; font-weight: 600; }
.nvk-clutch .ck-cart .item-backordered-message { color: var(--ck-amber) !important; font-weight: 600; }
.nvk-clutch .ck-cart .product-msrp { color: var(--ck-muted); }
.nvk-clutch .ck-cart .review-summary { margin: 0 !important; font-size: 13px !important; text-align: inherit; }
.nvk-clutch .ck-cart .item-instructions-links a { color: var(--ck-green); }
.nvk-clutch.is-light .ck-cart .item-website-message { color: #c62828; }

/* ---------------- no match ---------------- */
.ck-empty { margin-bottom: 26px; padding: 36px 20px; text-align: center; background: var(--ck-bg); border: 1px dashed var(--ck-line-2); border-radius: var(--ck-radius); }
.nvk-clutch .ck-empty p { color: var(--ck-muted); margin-bottom: 12px; }

/* ---------------- related ---------------- */
.ck-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.nvk-clutch .ck-links a { display: flex; flex-direction: column; gap: 2px; padding: 11px 13px; background: var(--ck-bg); border: 1px solid var(--ck-line); border-left: 3px solid var(--ck-green); border-radius: 10px; text-decoration: none; transition: border-color .15s; }
.nvk-clutch .ck-links a:hover { border-color: var(--ck-green); }
.ck-links strong { font-weight: 600; }
.ck-links span { font-size: 13px; color: var(--ck-muted); line-height: 1.35; }

/* ---------------- smaller screens ---------------- */
@media (max-width: 900px) {
  .ck-content { padding: 12px 16px 32px; }
  .ck-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .nvk-clutch .ck-sub { font-size: 14px; }
  .ck-how { padding: 12px 12px 12px; }
  .ck-steps { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .nvk-clutch .ck-steps li { padding-left: 30px; font-size: 13.5px; }
  .ck-steps li::before { width: 22px; height: 22px; font-size: 14px; line-height: 22px; }
  .ck-steps strong { display: inline; font-size: 16px; margin: 0 4px 0 0; }
  .nvk-clutch .ck-help { font-size: 13.5px; }
  .ck-tools { padding: 10px; gap: 7px; }
  .ck-filter__lbl { width: 44px; }
  .ck-pill { padding: 6px 10px; font-size: 13px; }
  /* one swipeable line of jump links instead of three wrapped ones */
  .ck-jump { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -10px; padding-right: 10px; }
  .ck-jump::-webkit-scrollbar { display: none; }
  .nvk-clutch .ck-app__name { font-size: 22px; }
  .ck-specs { gap: 4px 14px; }
}
