/* Keep these controls independent of the template's global input padding. */
.chem-quantity { width: 184px; max-width: 100%; min-width: 0; box-sizing: border-box; }
.chem-quantity button { flex: 0 0 48px; padding: 0; }
.chem-quantity input { flex: 1 1 0; width: 0; min-width: 4ch; padding: 0 4px; box-sizing: border-box; appearance: textfield; -moz-appearance: textfield; font-variant-numeric: tabular-nums; font-size: 16px; }
.chem-quantity input::-webkit-inner-spin-button, .chem-quantity input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.chem-quantity:focus-within { outline: 2px solid #f58220; outline-offset: 3px; }
.chem-search-trigger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; order: 2; border-radius: 50%; color: inherit; flex-shrink: 0; }
.chem-search-trigger:hover { background: #f5822026; color: #f58220; }
.chem-search-dialog { position: fixed; inset: 0; margin: auto; padding: 0; width: min(600px, calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow: auto; border: 1px solid #ffffff26; border-radius: 24px; background: #191919; color: #fff; box-shadow: 0 28px 100px #0008; }
.chem-search-dialog::backdrop { background: #0009; backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); }
.chem-search-active { overflow: hidden; }
.chem-search-panel { padding: 40px 30px; }
.chem-search-panel h2 { font-size: clamp(26px, 5vw, 36px); margin: 10px 0 25px; }
.chem-dialog-close { position: absolute; top: 10px; right: 12px; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; font-size: 30px; }
.chem-search-fields { display: flex; gap: 12px; align-items: stretch; margin-top: 12px; }
.chem-search-fields input { min-width: 0; flex: 1; width: 100%; background: #ffffff09; color: inherit; border: 1px solid #ffffff40; border-radius: 12px; padding: 14px; font-size: 16px; }
.chem-action { display: inline-flex; justify-content: center; align-items: center; padding: 14px 22px; border: 0; border-radius: 12px; background: #f58220; color: #141414; font-weight: 600; text-decoration: none; }
.chem-action:hover { background: #ffab62; color: #141414; }
.chem-eyebrow { color: #f58220; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; margin-bottom: 16px; }
.chem-downloads { padding-top: 170px; padding-bottom: 100px; }
.chem-downloads h1 { font-size: clamp(42px, 8vw, 80px); margin-bottom: 20px; }
.chem-downloads-intro { max-width: 650px; }
.chem-catalog-card { display: grid; grid-template-columns: minmax(200px, 360px) 1fr; align-items: center; gap: clamp(28px, 7vw, 100px); margin-top: 55px; padding: clamp(20px, 4vw, 48px); background: #ffffff06; border: 1px solid #ffffff20; border-radius: 24px; }
.chem-catalog-card h2 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 20px; }
.chem-catalog-cover { max-width: 360px; width: 100%; margin: auto; box-shadow: 10px 20px 40px #0005; }
.chem-catalog-cover img { width: 100%; height: auto; display: block; }
.chem-cover-placeholder { aspect-ratio: 1 / 1.414; display: flex; flex-direction: column; justify-content: space-between; padding: 30px; background: linear-gradient(145deg, #303638, #131617 65%); border-left: 8px solid #f58220; color: #fff; }
.chem-cover-placeholder strong { font-size: clamp(26px, 4vw, 40px); line-height: 1.2; }
.chem-cover-placeholder span { color: #f58220; letter-spacing: .12em; font-size: 12px; }
.chem-catalog-empty { padding: 20px; margin: 24px 0; border-left: 2px solid #f58220; background: #f582200a; }
.chem-catalog-empty p { margin-top: 10px; }
.chem-catalog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 30px; }
.chem-catalog-viewer { margin-top: 70px; scroll-margin-top: 110px; }
.chem-catalog-viewer h2 { margin-bottom: 15px; }
.chem-catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 25px 0; }
.chem-catalog-toolbar button { border: 1px solid #ffffff40; border-radius: 10px; padding: 10px 15px; background: #222; color: #fff; min-height: 44px; }
.chem-catalog-toolbar button:disabled { opacity: .4; }
.chem-catalog-toolbar form { display: flex; gap: 8px; align-items: center; }
.chem-catalog-toolbar input { width: 80px; padding: 8px; color: inherit; background: transparent; border: 1px solid #ffffff40; border-radius: 8px; }
.chem-catalog-sheet { position: relative; background: #252525; min-height: 100px; width: 100%; text-align: center; overflow: hidden; }
.chem-catalog-sheet canvas { display: block; max-width: 100%; margin: auto; transform-origin: left center; }
.chem-catalog-sheet canvas[hidden] { display: none; }
.chem-catalog-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: pre-wrap; }
.chem-catalog-viewer > p { margin: 16px 0; }
.chem-catalog-viewer a { text-decoration: underline; }
.chem-search-results { display: grid; gap: 16px; margin: 30px 0; }
.chem-search-results a { padding: 24px; border: 1px solid #ffffff30; border-radius: 16px; }
.chem-search-results h2 { font-size: 24px; margin-top: 8px; }
.chem-search-trigger:focus-visible, .chem-search-dialog :focus-visible, .chem-downloads :focus-visible { outline: 2px solid #f58220; outline-offset: 4px; }
@media(max-width: 991px) { .chem-search-trigger { order: 0; margin-right: 12px; } .navbar .navbar-collapse { flex-basis: 100%; } }
@media(max-width: 600px) { .chem-catalog-card { grid-template-columns: 1fr; } .chem-catalog-cover { max-width: 260px; } .chem-search-fields { flex-direction: column; } .chem-search-panel { padding: 40px 22px 24px; } .chem-downloads { padding-top: 130px; } .chem-catalog-toolbar { justify-content: center; } }
@media(max-width: 600px) { .navbar .logo.w-250px { width: min(250px, calc(100% - 112px)); flex-shrink: 1; } }
