/* Product selection follows the existing light TRIMLIFE palette and native controls. */
.ms-catalogue{padding-top:48px;scroll-margin-top:120px}
.ms-catalogue [hidden],.ms-dialog [hidden]{display:none!important}
.ms-intro{max-width:720px;margin:0 0 28px}
.ms-intro h2{font-size:clamp(30px,3.7vw,46px);line-height:1.1;margin-bottom:16px;letter-spacing:-.035em}
.ms-intro p{color:var(--g);font-size:17px;line-height:1.6;max-width:60ch}
.ms-controls{display:flex;gap:24px;align-items:end;justify-content:space-between;margin-bottom:22px}
.ms-search{display:block;width:min(100%,360px);font-size:14px;font-weight:600;color:var(--ink)}
.ms-search input{display:block;width:100%;margin-top:8px;padding:12px 14px;min-height:48px;font-family:inherit;font-size:16px;line-height:1.3;font-weight:400;border:1px solid #92969a;border-radius:8px;background:#fff;color:var(--ink)}
.ms-search input::placeholder{color:#666b70}
.ms-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}
.ms-filter{min-height:44px;padding:10px 15px;display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--navy);font-family:inherit;font-size:14px;line-height:1.2;font-weight:500;cursor:pointer;scroll-margin-top:145px}
.ms-filter small{color:#626971;font-size:12px}
.ms-filter[aria-pressed=true]{background:var(--navy);border-color:var(--navy);color:#fff}
.ms-filter[aria-pressed=true] small{color:#fff}
.ms-filter:hover{border-color:var(--navy)}
.ms-result-bar{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:0 0 18px;font-size:14px;color:#626971}
.ms-reset{background:none;border:0;text-decoration:underline;text-underline-offset:3px;font:inherit;color:var(--navy);cursor:pointer;min-height:44px;padding:0 4px}
.ms-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.ms-card{min-width:0;display:flex;flex-direction:column;border:1px solid var(--line2);border-radius:12px;background:#fff;overflow:hidden}
.ms-figure{margin:0;display:flex;align-items:center;justify-content:center;aspect-ratio:4/3;background:var(--bg);padding:22px}
.ms-figure img{width:100%;height:100%;object-fit:contain;max-height:140px}
.ms-thumb{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border-radius:6px;cursor:pointer}
.ms-card-body{padding:18px;display:flex;flex-direction:column;flex:1;gap:10px}
.ms-card h3{font-size:19px;color:var(--navy);letter-spacing:-.01em;margin:0}
.ms-card p{font-size:13px;line-height:1.5;color:#626971;margin:0}
.ms-card-actions{display:flex;gap:8px 14px;flex-wrap:wrap;align-items:center;margin-top:auto;padding-top:5px}
.ms-open{display:inline-flex;justify-content:center;align-items:center;min-height:44px;border:1px solid var(--navy);border-radius:7px;background:#fff;color:var(--navy);padding:8px 12px;font-family:inherit;font-size:13px;line-height:1.2;font-weight:500;cursor:pointer}
.ms-open:hover{background:var(--bg)}
.ms-card-actions a{color:var(--link);font-size:13px;min-height:44px;display:inline-flex;align-items:center;text-underline-offset:4px}
.ms-card-actions a:hover{text-decoration:underline}
.ms-load{text-align:center;margin:28px 0 18px}
.ms-note{font-size:13px;color:#626971;line-height:1.6;max-width:740px;margin-top:24px}
.ms-empty{text-align:center;padding:56px 20px;background:var(--bg);border-radius:12px}
.ms-empty h3{font-size:24px;margin-bottom:10px}
.ms-empty p{color:var(--g);font-size:16px;margin-bottom:10px}
.ms-catalogue :focus-visible,.ms-dialog :focus-visible{outline:3px solid var(--link);outline-offset:4px}
.ms-dialog{color:var(--ink);background:#fff;border:0;border-radius:16px;padding:0;width:min(940px,calc(100% - 40px));max-height:calc(100dvh - 48px);margin:auto;overflow:auto;box-shadow:0 24px 80px #12385c26}
.ms-dialog::backdrop{background:#13233380}
.ms-dialog-head{position:sticky;top:0;z-index:1;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 28px;background:#fff;border-bottom:1px solid var(--line2)}
.ms-dialog-head h2{font-size:28px;line-height:1.15;letter-spacing:-.03em;margin:0}
.ms-dialog-head p{font-size:13px;color:var(--g);margin-bottom:4px}
.ms-close{min-width:66px;min-height:44px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--navy);font-family:inherit;font-size:14px;line-height:1.2;font-weight:500;cursor:pointer}
.ms-detail-grid{padding:28px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
.ms-detail-grid>*{min-width:0}
.ms-detail-figure{margin:0;max-width:100%}
.ms-section-preview{box-sizing:border-box;width:100%;max-width:100%;min-width:0;background:var(--bg);border-radius:10px;display:flex;align-items:center;justify-content:center;min-height:260px;aspect-ratio:1.2;padding:28px}
.ms-section-preview img{width:100%;max-width:100%;height:auto;max-height:300px;min-width:0;object-fit:contain}
.ms-detail-figure figcaption{color:#626971;font-size:13px;line-height:1.6;margin:12px 0 14px}
.ms-detail-figure>a{color:var(--link);font-size:14px;text-decoration:underline;text-underline-offset:4px;min-height:44px;display:inline-flex;align-items:center}
.ms-details dl{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0 0 26px;font-size:14px}
.ms-details dt{color:#626971}.ms-details dd{font-weight:500;text-align:right;margin:0}
.ms-finish-label{display:block;font-size:15px;font-weight:600;margin-bottom:10px}
.ms-finish-row{display:flex;align-items:center;gap:12px}
.ms-finish-row select{width:100%;min-width:0;min-height:48px;border:1px solid #92969a;border-radius:8px;background:#fff;color:var(--ink);padding:10px;font-family:inherit;font-size:16px;line-height:1.3;font-weight:400}
.ms-finish-row img{width:48px;height:48px;object-fit:cover;border-radius:6px;flex:0 0 48px;border:1px solid var(--line2)}
.ms-finish-note{color:#626971;font-size:13px;line-height:1.6;margin:12px 0 24px}
.ms-detail-actions{display:flex;flex-wrap:wrap;gap:12px 18px;align-items:center}
.ms-detail-actions .btn{min-height:48px}.ms-detail-actions .lk{font-size:14px;min-height:44px;display:inline-flex;align-items:center}
.model-dialog-open{overflow:hidden}
@media(max-width:1000px){.ms-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.ms-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ms-controls{display:block}.ms-search{width:100%}.ms-catalogue{padding-top:32px}.ms-card-body{padding:14px}.ms-card-actions{gap:4px 10px}.ms-figure{padding:16px}.ms-detail-grid{grid-template-columns:minmax(0,1fr);gap:24px;padding:22px}.ms-dialog-head{padding:16px 22px}.ms-section-preview{min-height:0;aspect-ratio:auto;height:220px;padding:20px}.ms-section-preview img{max-height:100%}.ms-dialog{width:calc(100% - 24px);max-height:calc(100dvh - 24px)}.ms-detail-actions .btn{flex:1}.ms-intro p{font-size:16px}}
@media(max-width:480px){.ms-detail-actions{flex-direction:column;align-items:stretch;gap:8px}.ms-detail-actions .btn{width:100%;flex:auto}.ms-detail-actions .lk{justify-content:center;min-height:48px}.ms-details dl{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media(max-width:370px){.ms-grid{grid-template-columns:1fr}.ms-figure{aspect-ratio:1.8}.ms-card-actions{justify-content:space-between}.ms-filters{gap:6px}.ms-filter{font-size:13px;padding:9px 11px}}
