/* Product discovery and a mobile-first, isolated product viewer. */
.instrument-detail-open{overflow:hidden}
#product-dialog{width:min(1120px,94vw);max-width:1120px;height:min(880px,92dvh);max-height:92dvh;padding:0;border:1px solid #dce6ef;border-radius:22px;overflow:hidden;background:#fff;color:#102b46;box-shadow:0 30px 110px #00162e66}
#product-dialog[open]{display:flex;flex-direction:column;animation:instrument-reveal .24s ease-out}
#product-dialog::backdrop{background:#03172ccc;backdrop-filter:blur(7px)}
.detail-toolbar{flex:none;display:flex;align-items:center;justify-content:space-between;padding:16px 24px;border-bottom:1px solid #e2ebf3;background:#fff;gap:16px}
.detail-toolbar>span{font-size:25px;letter-spacing:-1px;font-weight:800;color:#104b80;direction:ltr}.detail-toolbar small{font-size:9px;font-weight:600;letter-spacing:2px;margin-inline-start:8px}
#close-product{position:static;float:none;min-height:44px;padding:10px 16px;border:1px solid #d9e5ef;border-radius:24px;background:#f4f8fc;color:#173c61;font-size:13px;cursor:pointer}
#detail-scroll{flex:1;overflow-y:auto;overscroll-behavior:contain;min-height:0;scrollbar-gutter:stable}
.detail-identity{padding:28px 32px 24px;background:linear-gradient(125deg,#f0f6fc,#fff);border-bottom:1px solid #e6edf4}
.detail-eyebrow{display:block;font-size:10px;font-weight:700;letter-spacing:2px;color:#1260b6;margin-bottom:10px}.detail-identity>small{font-size:12px;color:#60788c}
#product-detail .detail-identity h2{font-size:clamp(22px,2.5vw,32px);line-height:1.35;font-weight:650;letter-spacing:-.5px;margin:10px 0 18px;max-width:940px;overflow-wrap:anywhere;text-align:start}
.detail-code-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.detail-code-row bdi{font:600 16px/1.5 monospace;letter-spacing:.5px;color:#0758ad;background:#e7f1ff;padding:8px 12px;border-radius:7px;user-select:all}.detail-copy-code{min-height:44px;background:transparent;border:0;color:#426482;font-size:12px;text-decoration:underline;text-underline-offset:4px}.copy-status{font-size:12px;color:#226943}
.instrument-detail-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:30px;padding:28px 32px}.detail-gallery,.detail-information{min-width:0}
.gallery-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;margin-bottom:12px}.gallery-heading strong{font-weight:600;color:#516c84}.gallery-heading bdi{color:#a16600;border-bottom:2px solid #f1be58;padding-bottom:3px}
.gallery-viewport{background:#f3f6f9;border:1px solid #e0e7ef;border-radius:12px;overflow:auto;max-height:540px;direction:ltr;overscroll-behavior:contain;padding:12px}
#product-detail .source-stage{margin:0;max-width:none;width:100%;background:white}#product-detail .gallery-main{margin:0;width:100%;height:auto;max-height:none;display:block}#product-detail .is-zoomed .source-stage{width:200%;max-width:none}
.gallery-controls{display:flex;align-items:center;gap:14px;margin-top:10px}.gallery-controls button{flex:none;min-height:44px;border:1px solid #cfdeec;border-radius:8px;padding:8px 16px;background:#f1f6fc;color:#155994;font-size:12px}.gallery-controls a{font-size:11px;color:#436d91;line-height:1.6}.gallery-caption{font-size:11px;color:#718599;margin:10px 0}
.detail-thumbnails{display:flex;gap:8px;overflow:auto;padding:5px 0}.detail-thumbnails button{white-space:nowrap;min-height:44px;padding:9px 14px;background:#f3f6f9;border:1px solid #dbe5ee;border-radius:7px;color:#315674;font-size:12px}.detail-thumbnails button[aria-pressed=true]{background:#0e579f;color:white;border-color:#0e579f}
#product-detail .source-note{font-size:11px;line-height:1.85;padding:12px 14px;color:#60768b;background:#f6f8fb;margin:14px 0 0;border-radius:8px}
.detail-information h3{font-size:18px;margin:0 0 15px;font-weight:650}.detail-information dl{margin:0}.detail-information dl>div{display:grid;grid-template-columns:95px minmax(0,1fr);gap:14px;padding:16px 0;border-bottom:1px solid #e5ecf3;font-size:13px;line-height:1.6}.detail-information dt{color:#73869a}.detail-information dd{margin:0;overflow-wrap:anywhere;font-weight:500}
.detail-order-note{padding:20px;background:#ecf4fd;border:1px solid #dce9f8;border-radius:12px;margin-top:24px}.detail-order-note strong{font-size:14px;color:#0d559c}.detail-order-note strong:before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:#4283c5;margin-inline-end:8px}.detail-order-note p{font-size:12px;line-height:1.8;color:#617c94;margin:8px 0 0}
#product-detail .detail-source{margin-top:14px;padding:14px 0;font-size:12px;color:#61788e}#product-detail .detail-source summary{min-height:36px;cursor:pointer}
#detail-actions{display:flex;align-items:end;gap:18px;flex:none;background:white;border-top:1px solid #dce6ef;box-shadow:0 -7px 24px #10324e08;padding:16px 32px;padding-bottom:max(16px,env(safe-area-inset-bottom))}.detail-quantity{display:flex;flex-direction:column;gap:5px;font-size:11px;color:#637c94}.detail-quantity input{width:88px;height:48px;padding:10px;border:1px solid #ccdce9;border-radius:8px;font:16px Arial;color:#163e60;background:#f8fafc;text-align:center}#detail-actions .instrument-button{flex:1;min-height:48px;border-radius:8px;font-size:14px;line-height:1.5}
#product-dialog button:focus-visible,#product-dialog a:focus-visible,#product-dialog input:focus-visible,.gallery-viewport:focus-visible{outline:3px solid #70adf4;outline-offset:2px}
.view-instrument{display:block;width:100%;border-top:1px solid #dfe9f2;padding-top:12px;margin-top:6px;color:#085cb2;font-size:12px;font-weight:600}.instrument-product{border-radius:12px}.instrument-product p{overflow-wrap:anywhere}.instrument-product>p:first-of-type{color:#183d5d;font-size:13px;line-height:1.6;font-weight:500}.instrument-product .stock-badge{margin-top:auto}
@keyframes instrument-reveal{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:760px){
#product-dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}.detail-toolbar{padding:10px 16px;padding-top:max(10px,env(safe-area-inset-top))}.detail-toolbar>span{font-size:23px}.detail-toolbar small{font-size:8px;letter-spacing:1px}#close-product{font-size:12px;padding:10px 12px}
.detail-identity{padding:23px 20px 20px}#product-detail .detail-identity h2{font-size:23px;line-height:1.45;letter-spacing:-.3px}.detail-code-row bdi{font-size:15px}.detail-eyebrow{font-size:9px;letter-spacing:1.5px}
.instrument-detail-layout{grid-template-columns:minmax(0,1fr);gap:28px;padding:20px}.gallery-viewport{max-height:55dvh;padding:8px}.gallery-heading{font-size:10px}.detail-information dl>div{grid-template-columns:100px minmax(0,1fr);font-size:13px}.detail-order-note{margin-top:20px}.detail-information h3{font-size:18px}
#detail-actions{gap:12px;padding:12px 16px;padding-bottom:max(12px,env(safe-area-inset-bottom))}.detail-quantity input{width:72px}#detail-actions .instrument-button{font-size:13px;min-height:48px}.detail-quantity{font-size:10px}
.instrument-results.search-active{grid-template-columns:minmax(0,1fr)}.search-active .instrument-product{display:grid;grid-template-columns:90px minmax(0,1fr);column-gap:14px;row-gap:6px;padding:15px;align-items:start}.search-active .catalogue-card-image{grid-column:1;grid-row:1 / span 6;padding:5px 5px 24px}.search-active .catalogue-card-image img{height:115px!important}.search-active .catalogue-card-image>span{font-size:7px;line-height:1.4;bottom:5px}.search-active .instrument-product>small,.search-active .instrument-product>h3,.search-active .instrument-product>p,.search-active .instrument-product>.stock-badge,.search-active .instrument-product>.review-badge,.search-active .view-instrument{grid-column:2}.search-active .instrument-product h3{font-size:15px;margin:0}.search-active .instrument-product>p:first-of-type{font-size:14px;line-height:1.65}.search-active .stock-badge{justify-self:start;font-size:10px;margin-top:5px}.search-active .view-instrument{font-size:12px;padding:10px 0 0}.instrument-search input,.instrument-layout aside input,.instrument-layout aside select{font-size:16px!important}
}
@media(prefers-reduced-motion:reduce){#product-dialog[open]{animation:none}}
