/* ════════════════════════════════════════════════════════════════
   NVK Landing enhancements
   1) compact Ajax-style product cards (like /product/catalog/)
   2) left checkbox sidebar (category filter, ajax.systems style)
   Applied to all brand landing pages via nvk-landing.js
   ════════════════════════════════════════════════════════════════ */

/* ── 1. compact product cards ── */
body.nvk-compact .prod-grid{
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr)) !important;
  gap:12px !important;
}
body.nvk-compact .prod-card{
  border:0 !important;
  background:#f7f7f7 !important;
  border-radius:16px !important;
  box-shadow:none !important;
}
body.nvk-compact .prod-card:hover{
  transform:translateY(-3px) !important;
  background:#fff !important;
  outline:1.5px solid #e3e3e3;
  box-shadow:0 18px 40px -18px rgba(0,0,0,.18) !important;
}
body.nvk-compact .prod-card .img-box{
  min-height:118px !important;
  padding:12px !important;
  border-bottom:0 !important;
  background:transparent !important;
}
body.nvk-compact .prod-card .img-box img{
  max-height:108px !important;
  max-width:82% !important;
  width:auto !important;
  height:auto !important;
  object-fit:contain;
  mix-blend-mode:multiply;
}
body.nvk-compact .prod-card .body{
  padding:4px 15px 15px !important;
  gap:3px;
}
body.nvk-compact .prod-card .model{font-size:12.5px !important;line-height:1.3 !important}
body.nvk-compact .prod-card .title{font-size:12.5px !important;line-height:1.45 !important;margin-top:2px !important}
body.nvk-compact .prod-card .desc{
  font-size:11.5px !important;line-height:1.5 !important;margin-top:3px !important;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
/* key-features list — visible (un-clamped), highlights what differs per model */
.prod-card .desc.kf,
body.nvk-compact .prod-card .desc.kf{
  display:block !important;-webkit-line-clamp:none !important;overflow:visible !important;
  margin-top:8px !important;
}
.prod-card .desc.kf ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.prod-card .desc.kf li{
  position:relative;padding-left:17px;font-size:11.5px;line-height:1.45;color:#3a3a3a;
}
.prod-card .desc.kf li::before{
  content:"";position:absolute;left:2px;top:6px;width:6px;height:6px;border-radius:50%;
  background:var(--nvk-red,#9e1115);
}
.prod-card .desc.kf li.hl{font-weight:600;color:#181818}
.prod-card .desc.kf li.hl::before{background:#e0820c}
body.nvk-compact .prod-card .specs{gap:4px !important;margin-top:8px !important}
body.nvk-compact .prod-card .specs .chip{font-size:9.5px !important;padding:3px 8px !important}
body.nvk-compact .prod-card .footer{margin-top:10px !important;padding-top:8px !important}
body.nvk-compact .prod-card .price{font-size:14.5px !important}
body.nvk-compact .prod-card .ds-btn{font-size:10.5px !important;padding:5px 9px !important}
body.nvk-compact .prod-card .line-link{font-size:11px !important}
body.nvk-compact .prod-card .stock-pill{font-size:9px !important;padding:3px 8px !important}
body.nvk-compact .prod-card .corner-tag{font-size:9.5px !important;padding:4px 9px !important}

/* hidden states */
.nvk-card-off{display:none !important}
.nvk-grid-off{display:none !important}
.nvk-head-off{display:none !important}

/* ── 2. product section: [selector] | [product list] ── */
.nvk-prodwrap{
  display:grid;
  grid-template-columns:236px minmax(0,1fr);
  gap:26px;
  align-items:start;
  margin:6px 0 10px;
}
.nvk-prodmain{min-width:0}
.nvk-selector{
  position:sticky;top:104px;
  max-height:calc(100vh - 130px);
  overflow-y:auto;
  background:#fff;
  border:1px solid #ececec;
  border-radius:16px;
  padding:18px 18px 20px;
  font-family:'Anuphan',system-ui,sans-serif;
}
.nvk-selector h5{
  margin:0 0 5px;
  font:600 11px/1 'IBM Plex Mono',monospace;
  letter-spacing:.12em;text-transform:uppercase;color:#8a8a8a;
}
.nvk-selector .nvk-side-count{font:500 12px/1.4 'Anuphan',sans-serif;color:#9a9a9a;margin-bottom:12px}
.nvk-selector .nvk-side-actions{display:flex;gap:10px;margin-bottom:10px}
.nvk-selector .nvk-side-actions button{
  border:0;background:transparent;padding:0;cursor:pointer;
  font:600 11.5px/1 'Anuphan',sans-serif;color:#9e1115;
}
.nvk-selector .nvk-side-actions button:hover{text-decoration:underline}
.nvk-selector .nvk-chk{
  display:flex;align-items:center;gap:9px;
  padding:6px 0;user-select:none;
  font:500 13px/1.35 'Anuphan',sans-serif;color:#333;
}
.nvk-selector .nvk-chk input{
  appearance:none;-webkit-appearance:none;
  width:17px;height:17px;flex-shrink:0;
  border:1.5px solid #cfcfcf;border-radius:5px;background:#fff;
  display:grid;place-items:center;cursor:pointer;margin:0;
  transition:.12s;
}
.nvk-selector .nvk-chk input:checked{background:#181818;border-color:#181818}
.nvk-selector .nvk-chk input:checked::after{
  content:"";width:9px;height:5px;
  border-left:2px solid #fff;border-bottom:2px solid #fff;
  transform:rotate(-45deg) translate(0.5px,-1px);
}
.nvk-selector .nvk-chk .txt{cursor:pointer}
.nvk-selector .nvk-chk .txt:hover{color:#9e1115;text-decoration:underline;text-underline-offset:3px}
.nvk-selector .nvk-chk .ct{
  margin-left:auto;
  font:500 10.5px/1 'IBM Plex Mono',monospace;color:#b0b0b0;
}
@media(max-width:1100px){
  .nvk-prodwrap{grid-template-columns:1fr}
  .nvk-selector{position:static;max-height:none}
}
