:root{--red:#e31e24;--red-dark:#bd151a;--ink:#20242a;--muted:#707983;--line:#d8dde1;--soft:#f4f6f7;--max:1600px}
*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden}body{display:flex;flex-direction:column;background:var(--soft);color:var(--ink);font:13px/1.25 Arial,sans-serif;height:100dvh}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}button,a{-webkit-tap-highlight-color:transparent}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible,summary:focus-visible,[role=separator]:focus-visible{outline:3px solid #e31e2440;outline-offset:2px}[hidden]{display:none!important}.wrap{width:min(calc(100% - 24px),var(--max));margin-inline:auto}
.site-header{flex:none;border-bottom:3px solid var(--red);background:#fff}.header-inner{min-height:54px;display:flex;align-items:center;gap:14px}.brand{display:flex;align-items:center;gap:9px}.brand img{width:36px;height:36px;object-fit:contain;border-radius:5px}.brand strong{display:block;color:var(--red);font-size:15px;letter-spacing:.03em}.brand small{display:block;color:var(--muted);font-size:9px;letter-spacing:.07em;text-transform:uppercase}.page-title{flex:1;min-width:0;margin:0;font-size:18px}.header-actions{display:flex;align-items:center;gap:6px}.lang-btn,.catalog-btn,.tree-toggle,.tree-close{border:0;border-radius:5px;font-weight:700}.lang-btn{min-width:40px;padding:7px 9px;background:#eceff1}.catalog-btn{padding:8px 11px;background:var(--ink);color:#fff}.tree-toggle{display:flex;align-items:center;gap:6px;padding:8px 11px;background:var(--red);color:#fff}.tree-toggle:hover{background:var(--red-dark)}.cart-link{display:flex;align-items:center;gap:5px;padding:7px 10px;border-radius:5px;background:var(--red);color:#fff;font-weight:700;white-space:nowrap}.cart-link b{min-width:19px;padding:2px 4px;border-radius:3px;background:#fff;color:var(--red);text-align:center}
.tools{flex:none;padding:7px 0;border-bottom:1px solid var(--line)}.tools-row{display:flex;align-items:center;gap:9px}.search{min-width:0;flex:1;height:34px;padding:6px 9px;border:1px solid #c9d0d5;border-radius:5px;background:#fff}.result-meta{color:var(--muted);font-size:11px;white-space:nowrap}.workspace{flex:1;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) 12px minmax(0,1fr);padding:8px 0}.catalog-shell{min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(290px,28%);gap:10px}.list-panel,.tree-pane,.cart-panel{min-height:0;min-width:0;border:1px solid var(--line);background:#fff}.list-panel,.cart-panel{display:flex;flex-direction:column}.panel-head{flex:none;min-height:35px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:5px 9px;border-bottom:1px solid var(--line);background:#edf0f2}.panel-head strong{min-width:0;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.panel-count{flex:none;color:var(--muted);font-size:11px;white-space:nowrap}.table-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}.code-table{width:100%;min-width:870px;border-collapse:separate;border-spacing:0;table-layout:fixed}.code-table th{position:sticky;z-index:4;top:0;padding:5px;background:var(--red);color:#fff;text-align:left;font-size:11px;letter-spacing:.02em}.code-table th:first-child{width:190px}.code-table th:nth-child(3){width:76px}.code-table th:nth-child(4){width:63px}.code-table th:nth-child(5){width:173px}.code-table th:last-child{width:39px}.code-table td{height:29px;padding:2px 5px;border-bottom:1px solid #e1e4e7;vertical-align:middle}.code-table tbody tr:nth-child(even){background:#f7f8f9}.code-table tbody tr:hover{background:#fff1f2}.code-table code{color:#151a20;font:700 11px/1.2 Consolas,"Courier New",monospace;white-space:nowrap}.description{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.row-input,.row-select{width:100%;height:24px;min-width:0;padding:2px 4px;border:1px solid #cdd3d7;border-radius:3px;background:#fff;color:var(--ink);font:11px Arial,sans-serif}.row-input{text-align:right}.row-add,.row-remove{width:29px;height:24px;border:0;border-radius:3px;background:var(--red);color:#fff;font-size:19px;line-height:1}.row-add:hover,.row-remove:hover{background:var(--red-dark)}.fixed-value{font-size:11px;color:var(--muted)}.more-row{flex:none;padding:5px;text-align:center;border-top:1px solid var(--line)}.more-btn{border:1px solid #c9d0d5;border-radius:4px;padding:4px 12px;background:#fff;font-weight:700}.empty{padding:24px 14px;color:var(--muted);text-align:center}.scroll-hint{display:none;flex:none;padding:4px 9px;background:#fff8e7;color:#66552c;font-size:11px;border-bottom:1px solid var(--line)}
.tree-pane{overflow:auto;overscroll-behavior:contain}.tree-head{position:sticky;z-index:5;top:0}.tree-close{display:none;width:27px;height:27px;background:#dde1e4;color:#30363c}.folder-tree,.folder-tree ul{margin:0;padding:0;list-style:none}.folder-tree{padding:5px 5px 8px}.folder-tree ul{margin-left:10px;padding-left:6px;border-left:1px solid #cfd4d8}.tree-details{margin:0}.tree-summary{min-height:21px;display:flex;align-items:center;gap:5px;padding:0 3px;border-radius:3px;cursor:pointer;list-style:none;white-space:nowrap}.tree-summary::-webkit-details-marker{display:none}.tree-summary:hover,.tree-leaf:hover{background:#edf0f2}.tree-summary:before{content:"›";width:9px;color:#67717a;font-size:14px;font-weight:700}.tree-details[open]>.tree-summary:before{content:"⌄"}.folder-icon{position:relative;width:14px;height:10px;flex:0 0 14px;border:1.4px solid #c98b00;border-radius:1px;background:#ffd972}.folder-icon:before{content:"";position:absolute;left:0;top:-4px;width:7px;height:4px;border:1.4px solid #c98b00;border-bottom:0;border-radius:1px 1px 0 0;background:#ffe28a}.tree-label{overflow:hidden;text-overflow:ellipsis}.root-label,.category-label{font-weight:700}.family-label{font-weight:700;color:#30363c}.dimension-label{color:#4e5962}.child-list:empty{display:none}.tree-leaf{width:100%;min-height:20px;display:flex;align-items:center;gap:5px;padding:0 3px 0 17px;border:0;border-radius:3px;background:transparent;color:inherit;text-align:left;white-space:nowrap}.file-icon{position:relative;width:10px;height:13px;flex:0 0 10px;border:1px solid #8b959e;background:#fff}.file-icon:after{content:"";position:absolute;right:-1px;top:-1px;width:4px;height:4px;border-left:1px solid #8b959e;border-bottom:1px solid #8b959e;background:#fff}.tree-leaf code{font:700 10px/1.15 Consolas,"Courier New",monospace}.tree-leaf span:last-child{overflow:hidden;text-overflow:ellipsis;color:#65707a}.tree-summary.selected,.tree-leaf.selected{background:#ffe7e8;color:#9f1116}.tree-backdrop{display:none}body.tree-closed .catalog-shell{grid-template-columns:1fr}body.tree-closed .tree-pane{display:none}
.workspace{grid-template-columns:minmax(0,1fr)}.catalog-shell{min-width:0}
.pane-splitter{display:flex;align-items:center;justify-content:center;cursor:row-resize;touch-action:none;border-block:1px solid transparent}.pane-splitter:before{content:"";width:58px;height:3px;border-radius:4px;background:#aeb8bf}.pane-splitter:hover,.pane-splitter:focus-visible{background:#e2e7ea}.resizing{cursor:row-resize;user-select:none}.cart-head{min-height:41px;background:#fff}.cart-heading{display:flex;align-items:center;gap:10px;min-width:0}.cart-heading strong{font-size:14px}.submit-btn{flex:none;padding:7px 14px;border:0;border-radius:4px;background:var(--red);color:#fff;font-weight:700}.submit-btn:hover{background:var(--red-dark)}button:disabled{opacity:.5;cursor:default}.cart-table{min-width:840px}.cart-table th{background:#343b42}.cart-table th:first-child{width:190px}.cart-table th:nth-child(3){width:76px}.cart-table th:nth-child(4){width:63px}.cart-table th:nth-child(5){width:225px}.cart-table th:last-child{width:39px}.cart-finish{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cart-empty{flex:1;display:flex;align-items:center;justify-content:center;gap:10px;padding:18px;text-align:center;color:var(--muted);font-size:13px}.footer{flex:none;padding:7px 0;border-top:1px solid var(--line);background:#fff;color:var(--muted);font-size:11px}.footer-inner{display:flex;justify-content:space-between;gap:12px}.tree-toast{position:fixed;z-index:110;bottom:25px;left:50%;max-width:calc(100vw - 24px);transform:translateX(-50%);padding:10px 16px;border-radius:6px;background:#20242a;color:#fff;box-shadow:0 6px 24px #0002;font-size:13px}
dialog{max-height:calc(100dvh - 28px);overflow:auto;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);box-shadow:0 14px 60px #0003}dialog::backdrop{background:#14181d66}.options-dialog{width:min(440px,calc(100vw - 24px));padding:20px}.options-dialog h2{margin:0 0 8px;font-size:17px}.options-dialog p{font-size:12px;color:var(--muted)}.options-dialog label{display:block;margin:12px 0 4px;font-size:12px;font-weight:700}.options-dialog input,.options-dialog select{width:100%;height:34px;padding:5px 8px;border:1px solid #c9d0d5;border-radius:4px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}.dialog-actions button{padding:9px 12px;border:0;border-radius:4px;font-weight:700}.dialog-add{background:var(--red);color:#fff}.checkout-dialog{width:min(680px,calc(100vw - 24px));padding:18px}.checkout-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.checkout-head h2{margin:0;font-size:20px}.dialog-close{width:29px;height:29px;border:0;border-radius:4px;background:#eceff1;color:var(--ink);font-size:23px;line-height:1}.rfq-number-box{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px;margin-bottom:14px;border:1px solid var(--line);border-radius:5px;background:var(--soft);font-size:12px}.rfq-number-box strong{color:var(--red);font-family:Consolas,"Courier New",monospace}.number-reset{padding:0;border:0;background:none;color:var(--muted);font-size:11px;text-decoration:underline}.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px}.contact-field{min-width:0}.contact-field.wide{grid-column:1/-1}.contact-field label{display:block;font-size:12px;font-weight:700;margin-bottom:4px}.contact-field input,.contact-field textarea{display:block;width:100%;padding:7px 9px;border:1px solid #c9d0d5;border-radius:4px;background:#fff;color:var(--ink)}.contact-field input{height:34px}.contact-field textarea{resize:vertical;min-height:54px}.checkout-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}.checkout-actions button{padding:10px 12px;border:0;border-radius:5px;font-weight:700}.pdf-btn{background:var(--red);color:#fff}.email-btn{background:var(--ink);color:#fff}.checkout-note{margin:12px 0 0;font-size:12px;line-height:1.45;color:var(--muted)}
@media(max-width:1050px){.page-title{font-size:15px}.header-inner{gap:9px}.catalog-shell{grid-template-columns:minmax(0,1fr) minmax(280px,30%)}}
@media(max-width:900px){.wrap{width:min(calc(100% - 14px),var(--max))}.brand small{display:none}.catalog-btn{display:none}.header-inner{gap:8px}.catalog-shell{display:block}.list-panel{height:100%}.tree-pane{display:block!important;position:fixed;z-index:70;top:0;right:0;width:min(90vw,430px);height:100dvh;max-height:none;transform:translateX(102%);transition:transform .2s ease;box-shadow:-12px 0 34px #0003}body.tree-open-mobile .tree-pane{transform:translateX(0)}.tree-close{display:block}.tree-backdrop{position:fixed;z-index:65;inset:0;width:100%;border:0;background:#14181d6b}body.tree-open-mobile .tree-backdrop{display:block}.scroll-hint{display:block}.cart-link{padding:7px}.footer-inner{font-size:10px}}
@media(max-width:560px){.page-title,.cart-link span,.tree-toggle span,.result-meta{display:none}.brand strong{font-size:13px}.header-actions{margin-left:auto;gap:5px}.tree-toggle{padding-inline:8px}.cart-heading{gap:6px}.cart-heading strong{font-size:12px}.submit-btn{padding:7px 9px;font-size:12px}.cart-head{gap:6px}.panel-count{font-size:10px}.contact-grid{grid-template-columns:1fr}.contact-field.wide{grid-column:auto}.checkout-head h2{font-size:17px}.checkout-actions{grid-template-columns:1fr}.checkout-dialog{padding:14px}.footer-inner span:last-child{display:none}}
@media(prefers-reduced-motion:reduce){.tree-pane{transition:none}}
