body{margin:0;background:#f4f8f5;color:#17382a;font-family:Arial,system-ui,sans-serif}.kb-top{height:72px;background:#fff;border-bottom:1px solid #dfe8e1;display:flex;align-items:center;gap:28px;padding:0 3vw}.kb-brand{display:flex;gap:10px;align-items:center;color:#087a43;text-decoration:none;font-size:21px}.kb-leaf{width:36px;height:36px;border-radius:11px;background:#087a43;color:#fff;display:grid;place-items:center}.kb-title{display:flex;flex-direction:column;flex:1}.kb-title span{font-size:11px;color:#687970}.kb-back{color:#087a43;font-weight:700;text-decoration:none}.kb-shell{max-width:1450px;margin:auto;padding:28px 3vw;display:grid;grid-template-columns:1fr 330px;gap:22px}.kb-toolbar{display:flex;justify-content:space-between;gap:15px;align-items:end;margin-bottom:16px}.kb-toolbar h1{margin:0;font-size:29px}.kb-toolbar p{font-size:13px;color:#687970}.kb-filters{display:flex;gap:10px;align-items:center}.kb-toolbar select,.kb-toolbar input{height:42px;padding:0 12px;border:1px solid #dfe8e1;border-radius:10px;background:#fff;box-sizing:border-box}.kb-toolbar select{width:200px}.kb-toolbar input{width:260px}.kb-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:start}
.kb-card{background:#fff;border:1px solid #dfe8e1;border-radius:16px;overflow:hidden;min-width:0;display:flex;flex-direction:column}
.kb-pic{height:190px;min-height:190px;background:#f5f8f5;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:12px;box-sizing:border-box}
.kb-pic img{display:block;width:auto;height:auto;max-width:100%;max-height:166px;object-fit:contain;object-position:center;flex:0 0 auto}.kb-card-body{padding:12px;min-width:0;background:#fff;position:relative;z-index:1;box-sizing:border-box}.kb-card h3{font-size:14px;line-height:1.35;margin:0 0 4px;min-height:38px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word}.kb-card small{color:#687970}.kb-price{font-size:17px;line-height:1.2;font-weight:900;color:#087a43;margin:8px 0 10px}.kb-row{display:flex;gap:7px}.qty{display:flex;border:1px solid #dfe8e1;border-radius:8px;overflow:hidden}.qty button{width:28px;border:0}.qty b{width:29px;display:grid;place-items:center}.kb-add{flex:1;border:1px solid #087a43;border-radius:8px;background:#fff;color:#087a43;font-weight:800}.kb-add.active{background:#087a43;color:#fff}.kb-summary{background:#fff;border:1px solid #dfe8e1;border-radius:17px;padding:18px;height:max-content;position:sticky;top:92px}.kb-summary-head{display:flex;justify-content:space-between}.kb-summary-head small{color:#087a43;font-weight:800}.kb-summary h2{margin:3px 0}.kb-line{display:flex;justify-content:space-between;padding:9px 0;border-top:1px solid #dfe8e1;font-size:12px}.kb-total{display:flex;justify-content:space-between;border-top:1px solid #dfe8e1;padding-top:15px;margin-top:8px}.kb-total strong{font-size:23px;color:#087a43}.kb-actions{display:grid;gap:8px;margin-top:16px}.kb-actions button{height:40px;border-radius:9px;font-weight:800}.kb-primary{background:#087a43;color:#fff;border:1px solid #087a43}.kb-secondary{background:#fff;border:1px solid #dfe8e1}.kb-empty,.kb-loading{padding:28px;text-align:center;color:#687970;background:#fff;border:1px dashed #dfe8e1;border-radius:15px;grid-column:1/-1}@media(max-width:1100px){.kb-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.kb-shell{grid-template-columns:1fr}.kb-summary{position:static}.kb-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.kb-pic{height:175px;min-height:175px}.kb-pic img{max-height:151px}}
@media(max-width:560px){.kb-grid{grid-template-columns:1fr}.kb-pic{height:190px;min-height:190px}.kb-pic img{max-height:166px}}
/* Mobile Kit Builder: selected-kit summary stays visible while products remain scrollable. */
@media(max-width:900px){
  .kb-shell{padding-bottom:190px}
  .kb-summary{position:fixed;left:0;right:0;bottom:0;top:auto;z-index:60;border-radius:18px 18px 0 0;padding:10px 14px;box-shadow:0 -10px 30px rgba(0,0,0,.14);max-height:30vh;overflow:auto}
  .kb-summary-head{align-items:center}
  .kb-summary-head h2{font-size:17px}
  .kb-items{max-height:9vh;overflow:auto}
  .kb-actions{grid-template-columns:1.2fr 1fr 1fr;gap:6px;margin-top:8px}
  .kb-actions button{height:38px;font-size:12px}
}
@media(max-width:560px){
  .kb-top{height:58px;padding:0 12px;gap:10px}
  .kb-brand{font-size:17px}.kb-leaf{width:30px;height:30px}
  .kb-title span{display:none}.kb-title b{font-size:14px}
  .kb-back{font-size:12px}
  .kb-shell{padding:14px 10px 205px;display:block}
  .kb-toolbar{display:block;margin-bottom:12px}
  .kb-toolbar h1{font-size:22px}
  .kb-toolbar p{margin:5px 0 10px}
  .kb-filters{display:grid;grid-template-columns:1fr;gap:7px}
  .kb-toolbar select,.kb-toolbar input{width:100%;height:40px}
  .kb-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .kb-pic{height:135px;min-height:135px;padding:7px}
  .kb-pic img{max-height:121px;max-width:94%}
  .kb-card-body{padding:9px}
  .kb-card h3{font-size:12px;min-height:34px}
  .kb-price{font-size:15px;margin:6px 0 8px}
  .kb-row{gap:5px}.qty button{width:25px}.qty b{width:25px}.kb-add{font-size:11px}
  .kb-summary{padding:9px 11px;max-height:27vh}.kb-summary.has-items{max-height:52vh}.kb-summary.has-items .kb-items{max-height:25vh}
  .kb-summary-head small{font-size:9px}.kb-summary-head h2{font-size:15px}.kb-summary-head #count{font-size:11px}
  .kb-total{padding-top:8px;margin-top:5px}.kb-total strong{font-size:19px}.kb-actions{grid-template-columns:1fr 1fr 1fr}
}

@media(max-width:900px){.kb-summary:not(.has-items) .kb-empty{padding:14px 8px}.kb-summary:not(.has-items) .kb-total{padding-top:5px;margin-top:3px}.kb-summary:not(.has-items) .kb-actions{margin-top:5px}}
@media(max-width:560px){.kb-summary:not(.has-items) .kb-empty{padding:10px 6px}.kb-summary.has-items .kb-items{max-height:24vh}}

/* Kit export chooser */
.kb-export-modal{display:none;position:fixed;inset:0;z-index:9999}.kb-export-modal.open{display:block}.kb-export-backdrop{position:absolute;inset:0;background:rgba(8,30,20,.46);backdrop-filter:blur(3px)}.kb-export-dialog{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(620px,calc(100vw - 32px));background:#fff;border:1px solid #dfe9e3;border-radius:22px;box-shadow:0 24px 70px rgba(20,50,35,.25);padding:28px}.kb-export-dialog small{font-weight:800;color:#16834c;letter-spacing:.08em}.kb-export-dialog h2{margin:6px 0 4px}.kb-export-dialog p{margin:0 0 18px;color:#6b7c73}.kb-export-close{position:absolute;right:14px;top:12px;border:0;background:#f1f5f2;border-radius:50%;width:34px;height:34px;font-size:24px;cursor:pointer}.kb-export-grid{display:grid;grid-template-columns:1fr;gap:10px}.kb-export-card{text-align:left;border:1px solid #dce8e0;background:#f8fbf9;border-radius:15px;padding:15px 16px;cursor:pointer;display:flex;flex-direction:column;gap:4px}.kb-export-card:hover{border-color:#15925a;background:#f1faf5}.kb-export-card b{color:#123e2a}.kb-export-card span{font-size:12px;color:#718079}@media(max-width:640px){.kb-export-dialog{top:auto;bottom:0;transform:translateX(-50%);border-radius:22px 22px 0 0;padding:22px 16px 28px}.kb-export-card{padding:14px}.kb-actions{position:sticky;bottom:10px}}
/* PDF print sheet must never appear in the normal page flow; it is print-only. */
#kbPrintSheet{display:none!important}
@media print{
  #kbPrintSheet{display:block!important}
}


/* v166: compact dealer catalog thumbnails; keep complete product visible. */
.kb-pic{height:92px!important;display:grid!important;place-items:center!important;overflow:hidden!important;background:#f7faf8!important;padding:6px!important;}
.kb-pic img{max-width:72px!important;max-height:72px!important;width:auto!important;height:auto!important;object-fit:contain!important;object-position:center!important;}

/* Clear kit actions and comfortably sized controls on touch screens. */
.qty button,.kb-add{min-height:38px;cursor:pointer}
.kb-card .kb-row .kb-add.active{background:#fff6f4!important;color:#9d352b!important;border-color:#d99b94!important}
.kb-row button:focus-visible,.kb-actions button:focus-visible{outline:3px solid #a5512d;outline-offset:2px}
@media(max-width:560px){
  .kb-row{display:grid;grid-template-columns:minmax(0,1fr);gap:6px}
  .qty{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}
  .qty button,.qty b{width:auto;min-width:0;min-height:40px}
  .kb-add{width:100%;min-height:40px;font-size:12px}
}
