.catalog-open{overflow:hidden}.catalog-dialog{width:min(1080px,calc(100% - 32px));max-height:90vh;max-height:90dvh;border:1px solid #dfe7f0;border-radius:24px;padding:0;color:var(--ink);background:#fff;box-shadow:0 24px 100px #10182740}.catalog-dialog::backdrop{background:#10182799;backdrop-filter:blur(6px)}.catalog-shell{padding:36px}.catalog-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.catalog-kicker{font-size:12px;letter-spacing:2px;color:var(--green);font-weight:700;margin:0 0 12px}.catalog-head h2{font-size:36px;letter-spacing:-1.5px;margin:0 0 10px}.catalog-head p:last-child{color:var(--muted);margin:0}.catalog-close{border:1px solid var(--line);background:#f4f8fc;border-radius:50%;width:44px;height:44px;font-size:28px;cursor:pointer;flex-shrink:0}.catalog-status{font-size:12px;color:var(--muted);margin:24px 0 14px}.catalog-tabs{display:flex;gap:6px;overflow-x:auto;padding:7px;background:#eef4f5;border-radius:14px}.catalog-dialog button{font-family:inherit;cursor:pointer}.catalog-tabs button{white-space:nowrap;border:0;border-radius:10px;padding:12px 16px;background:transparent;color:#506273;font-weight:700}.catalog-tabs button[aria-pressed=true]{background:var(--green);color:white;box-shadow:0 4px 12px #0e735e30}.catalog-filters{margin:20px 0}.catalog-filters>div{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:12px 0;border-bottom:1px solid #edf1f5}.catalog-filters strong{font-size:12px;min-width:90px;color:var(--muted)}.catalog-filters button{border:1px solid var(--line);border-radius:24px;padding:8px 13px;background:white;color:#506273}.catalog-filters button[aria-pressed=true]{background:#e5f4ef;border-color:var(--green);color:var(--green)}.catalog-search{display:flex;gap:10px;align-items:center;background:#f6f8fb;border:1px solid var(--line);padding:10px 14px;border-radius:12px}.catalog-search label{font-size:12px;white-space:nowrap;font-weight:700}.catalog-search input{width:100%;min-width:0;border:0;background:transparent;padding:10px;font-size:15px;color:var(--ink)}.catalog-search button{border:0;background:transparent;white-space:nowrap;color:var(--green)}.catalog-summary{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:22px 0 12px;font-size:13px;color:var(--muted)}.catalog-summary select{padding:8px;border:1px solid var(--line);border-radius:8px;background:white;color:var(--ink)}.catalog-table-wrap{border:1px solid var(--line);border-radius:14px;overflow:hidden}.catalog-dialog table{border-collapse:collapse;width:100%;font-size:14px}.catalog-dialog th{text-align:left;background:#f4f8fc;font-size:12px;color:var(--muted);padding:15px 20px}.catalog-dialog td{padding:17px 20px;border-top:1px solid #edf1f5}.catalog-dialog th:last-child,.catalog-dialog td:last-child{text-align:right;white-space:nowrap}.catalog-dialog td strong{display:block;font-weight:600}.catalog-dialog td small{display:block;color:var(--muted);font-size:11px;margin-top:6px}.catalog-dialog tr:hover td{background:#fafdfc}.catalog-dialog .amount{font-weight:700;color:var(--green)}.catalog-dialog .quote{color:#617086;font-size:12px}.catalog-more{display:block;margin:20px auto;padding:12px 32px;background:white;border:1px solid var(--line);border-radius:10px}.catalog-more[hidden]{display:none}.catalog-note{padding:20px;margin-top:24px;border-radius:14px;background:#f0f7f4;font-size:13px;line-height:1.8}.catalog-note p{color:var(--muted)}.catalog-note a{color:var(--green);font-weight:700}.catalog-empty{text-align:center!important;padding:40px!important}.catalog-dialog :focus-visible{outline:3px solid #2563eb;outline-offset:3px}@media(max-width:600px){.catalog-dialog{width:calc(100% - 16px);border-radius:18px;max-height:95dvh}.catalog-shell{padding:22px 14px}.catalog-head h2{font-size:28px}.catalog-head p:last-child{font-size:13px}.catalog-search label{display:none}.catalog-dialog td,.catalog-dialog th{padding:14px 10px}.catalog-dialog table{font-size:12px}.catalog-summary{font-size:11px}.catalog-filters strong{width:100%}.catalog-tabs button{padding:10px 13px}}

.estimate-open{display:block;margin:20px 0 0 auto;border:0;border-radius:14px;background:linear-gradient(120deg,#106f68,#245bb6);color:white;padding:14px 20px;font-weight:700;font-size:14px;box-shadow:0 8px 24px #167b7620}.estimate-open span{display:inline-grid;place-items:center;min-width:24px;height:24px;margin:0 8px;background:#ffffff30;border-radius:50%}.estimate-panel{margin-top:18px;padding:22px;border:1px solid #cbe5e3;border-radius:18px;background:linear-gradient(130deg,#f0faf7,#f1f6ff)}.estimate-panel[hidden]{display:none}.estimate-panel h3{margin:0 0 16px;font-size:20px}.estimate-item{display:grid;grid-template-columns:1fr 70px 130px 28px;gap:12px;align-items:center;border-bottom:1px solid #dbe8e8;padding:12px 0;font-size:13px}.estimate-item input{width:100%;padding:8px;border:1px solid #c8dada;border-radius:8px;background:white;font:inherit;box-sizing:border-box}.estimate-item strong{text-align:right;color:#106f68}.estimate-item button{border:0;background:transparent;font-size:20px;color:#667c89}.estimate-total{font-size:22px;font-weight:800;color:#106f68;margin-bottom:8px}.estimate-help{font-size:12px;line-height:1.7;color:#637786}.estimate-clear{border:1px solid #c8dada;border-radius:8px;background:white;padding:8px 12px;color:#506273}.catalog-dialog td:nth-child(2),.catalog-dialog th:nth-child(2){text-align:right;white-space:nowrap}.catalog-dialog td:last-child,.catalog-dialog th:last-child{width:52px;text-align:center}.catalog-dialog input[type=checkbox]{width:20px;height:20px;accent-color:#107b70;cursor:pointer}.catalog-head+.estimate-open{position:sticky;top:12px;z-index:2}@media(max-width:600px){.estimate-panel{padding:16px}.estimate-item{grid-template-columns:1fr 58px 26px;gap:8px}.estimate-item span{grid-column:1/-1}.estimate-item strong{grid-column:1;grid-row:2;text-align:left}.estimate-item input{grid-column:2;grid-row:2}.estimate-item button{grid-column:3;grid-row:2}.estimate-total{font-size:19px}.catalog-dialog td:last-child,.catalog-dialog th:last-child{width:32px}}
.catalog-shell{padding-top:0}.catalog-fixed-top{position:sticky;top:0;z-index:5;background:#fffffffa;padding:24px 0 12px;border-bottom:1px solid #e1eaf0;box-shadow:0 12px 20px -20px #173a51}.catalog-fixed-top .catalog-head h2{font-size:30px}.catalog-fixed-top .catalog-head+.estimate-open{position:static;margin-top:12px;padding:10px 18px}.catalog-fixed-top .catalog-status{margin:10px 0}.catalog-fixed-top .catalog-kicker{margin-bottom:8px}.catalog-row-quantity{width:64px;padding:8px 5px;border:1px solid #cddfe3;border-radius:8px;background:#f8fbfc;color:#183b49;font:inherit;text-align:center;box-sizing:border-box}.catalog-dialog td:nth-child(3),.catalog-dialog th:nth-child(3){text-align:center;width:76px;padding-left:8px;padding-right:8px}.catalog-dialog td:first-child{overflow-wrap:anywhere}.catalog-dialog th:nth-child(2),.catalog-dialog td:nth-child(2){white-space:normal}@media(max-width:600px){.catalog-fixed-top{padding-top:14px}.catalog-fixed-top .catalog-head h2{font-size:25px}.catalog-fixed-top .catalog-head p:last-child{font-size:11px}.catalog-fixed-top .catalog-kicker{font-size:10px}.catalog-fixed-top .catalog-status{font-size:10px}.catalog-fixed-top .estimate-open{font-size:12px;padding:8px 12px}.catalog-fixed-top .catalog-tabs button{padding:8px 12px}.catalog-dialog td:nth-child(3),.catalog-dialog th:nth-child(3){width:54px;padding:8px 3px}.catalog-row-quantity{width:49px}.catalog-dialog td,.catalog-dialog th{padding:12px 6px}.catalog-dialog td:nth-child(2){font-size:11px}}

/* Compact catalog: keep the heading, categories and one estimate box visible. */
.catalog-fixed-top{padding:12px 0 8px;display:grid;grid-template-columns:1fr auto;gap:6px 12px}
.catalog-fixed-top .catalog-head{grid-column:1;grid-row:1;align-items:center;gap:10px}
.catalog-fixed-top .catalog-kicker,.catalog-fixed-top .catalog-head p:last-child{display:none}
.catalog-fixed-top .catalog-head h2{font-size:23px;margin:0;letter-spacing:-.7px}
.catalog-close{width:32px;height:32px;font-size:22px}
.catalog-fixed-top .estimate-open{grid-column:2;grid-row:1;margin:0;padding:6px 12px;font-size:12px;border-radius:9px}
.estimate-open span{height:20px;min-width:20px;margin:0 4px}
.catalog-fixed-top .catalog-status{grid-column:1/-1;margin:0;font-size:10px}
.catalog-tabs{grid-column:1/-1;padding:4px;gap:3px;border-radius:10px}
.catalog-fixed-top .catalog-tabs button{padding:7px 12px;font-size:12px}
.catalog-fixed-top .estimate-panel{grid-column:1/-1;margin:0;padding:8px 12px;border-radius:10px;display:flex;flex-direction:column;gap:5px}
.estimate-summary{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.estimate-panel h3{font-size:13px;margin:0}.estimate-panel .estimate-total{font-size:16px;margin:0;flex:1;text-align:right}
.estimate-clear{padding:4px 8px;font-size:11px}.estimate-items{max-height:64px;overflow-y:auto;overscroll-behavior:contain}
.estimate-item{padding:4px 0;font-size:12px;gap:8px;grid-template-columns:1fr 54px 100px 22px}
.estimate-item input{padding:4px}.estimate-item button{font-size:17px}.estimate-help{margin:0;font-size:10px;line-height:1.3}
.catalog-filters{margin:8px 0}.catalog-filters>div{padding:5px 0;gap:5px}.catalog-filters strong{min-width:75px;font-size:11px}
.catalog-filters button{padding:4px 10px;font-size:12px}.catalog-search{padding:4px 10px}.catalog-search input{padding:6px;font-size:13px}
.catalog-summary{margin:8px 0 6px}.catalog-summary select{padding:4px}.catalog-dialog th{padding:9px 14px}.catalog-dialog td{padding:9px 14px}.catalog-dialog td small{margin-top:3px}.catalog-row-quantity{padding:5px}
@media(max-width:600px){.catalog-fixed-top{padding-top:8px;gap:5px 6px}.catalog-fixed-top .catalog-head h2{font-size:19px}.catalog-close{width:28px;height:28px;font-size:20px}.catalog-fixed-top .estimate-open{padding:5px 7px;font-size:10px}.catalog-fixed-top .catalog-tabs button{padding:6px 10px}.catalog-fixed-top .catalog-status{font-size:9px}.catalog-filters strong{width:auto;min-width:66px}.catalog-filters>div{gap:4px;padding:4px 0}.catalog-filters button{padding:4px 8px;font-size:11px}.estimate-summary{gap:5px}.estimate-panel h3{font-size:11px}.estimate-panel .estimate-total{font-size:12px}.estimate-clear{font-size:10px;padding:3px 5px}.estimate-item{grid-template-columns:minmax(0,1fr) 42px 70px 18px;gap:4px;font-size:10px}.estimate-item span{grid-column:auto;overflow-wrap:anywhere}.estimate-item strong,.estimate-item input,.estimate-item button{grid-column:auto;grid-row:auto}.estimate-item strong{text-align:right}.estimate-items{max-height:54px}.catalog-fixed-top .estimate-panel{padding:6px 8px}.catalog-dialog td,.catalog-dialog th{padding:8px 5px}.catalog-row-quantity{width:43px}}

/* Keep all catalog controls in view; only product results scroll. */
.catalog-dialog{overflow:hidden}
.catalog-shell{height:min(860px,90dvh);box-sizing:border-box;display:flex;flex-direction:column;padding:0 18px 16px;overflow:hidden}
.catalog-fixed-top{position:relative;top:auto;flex:none;padding:16px 0 10px;gap:7px 12px}
.catalog-fixed-top .catalog-close{position:absolute;right:0;top:8px;width:46px;height:46px;font-size:32px;line-height:1;display:grid;place-items:center;z-index:10}
.catalog-fixed-top .estimate-open{margin-right:58px}
.catalog-fixed-top .catalog-filters,.catalog-fixed-top .catalog-search{grid-column:1/-1;margin:0}
.catalog-results{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.catalog-fixed-top .catalog-filters>div{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding-bottom:7px}
.catalog-filters strong,.catalog-filters button{flex-shrink:0;white-space:nowrap}
@media(max-width:600px){.catalog-shell{height:95dvh;padding:0 10px 10px}.catalog-fixed-top{padding-top:14px;gap:6px}.catalog-fixed-top .catalog-close{right:0;top:6px;width:44px;height:44px;font-size:30px}.catalog-fixed-top .estimate-open{margin-right:50px}.catalog-fixed-top .catalog-search input{font-size:16px}.catalog-fixed-top .catalog-filters strong{min-width:66px}.catalog-fixed-top .catalog-tabs{margin-top:5px}}
/* Consistent hover, selection and keyboard focus */
.catalog-tabs button,.catalog-filters button{transition:color .18s,background .18s,border-color .18s,box-shadow .18s}
.catalog-tabs button:hover,.catalog-filters button:hover{color:#075e4e;background:#def5ed;border-color:#139b7b}
.catalog-tabs button[aria-pressed=true],.catalog-filters button[aria-pressed=true]{background:#0e735e;color:#fff;border-color:#0e735e;font-weight:800;box-shadow:inset 0 -3px 0 #69dfbb,0 2px 7px #0e735e25}
.catalog-tabs button:focus-visible,.catalog-filters button:focus-visible{outline:3px solid #2470c7;outline-offset:3px}
@media(prefers-reduced-motion:reduce){.catalog-tabs button,.catalog-filters button{transition:none}}
