/*
Theme Name: Envision Sciplus
Theme URI: https://envision-sci.com/
Author: Envision SciPlus Co.,Ltd.
Description: Product-search catalog for Envision Sciplus (research reagents and consumables). Thai default, English at /en/.
Version: 0.1.5
Requires PHP: 8.0
Text Domain: envision-sciplus
*/

:root {
	--blue: #0034b7;
	--blue-700: #00288e;
	--blue-50: #eef2fc;
	--blue-100: #dfe6fa;
	--cyan: #00b3e5;
	--navy: #00263a;
	--ink: #212529;
	--text: #333333;
	--muted: #646b78;
	--line: #d5d9e1;
	--line-soft: #e8eaf0;
	--bg-soft: #f5f6f8;
	--white: #ffffff;
	--ok: #1e7b4a;
	--err: #b42318;
	--radius: 12px;
	--wrap: 1100px;
	--font: "Inter", "IBM Plex Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--white); }
body.lang-th { line-height: 1.65; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 32px; font-weight: 700; }
h2 { font-size: 24px; font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-700); }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-50); }
.btn-white { background: #fff; color: var(--blue); }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 14px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
.head-row { display: flex; align-items: center; gap: 22px; min-height: 92px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; flex: none; }
.brand img { display: block; border-radius: 6px; }
.brand-name { font-size: 20px; font-weight: 500; letter-spacing: -.01em; color: var(--blue); white-space: nowrap; }
.brand-name b { font-weight: 800; }
.head-search { position: relative; flex: 1; display: flex; align-items: stretch; height: 48px; border: 1px solid #8a909c; border-radius: 999px; background: #fff; min-width: 0; }
.head-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }
.head-search .scope { display: flex; align-items: center; background: var(--bg-soft); border-radius: 999px 0 0 999px; border-right: 1px solid var(--line); }
.head-search select { border: 0; background: transparent; padding: 0 30px 0 18px; height: 100%; max-width: 190px; color: var(--muted); font-size: 15px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.head-search select:focus { outline: none; }
.head-search input { flex: 1; min-width: 0; border: 0; padding: 0 16px; background: transparent; font-size: 15px; }
.head-search input:focus { outline: none; }
.head-search > button { border: 0; background: transparent; color: var(--blue); padding: 0 18px; cursor: pointer; border-radius: 0 999px 999px 0; }
.head-tools { display: flex; align-items: center; gap: 16px; flex: none; }
.head-phone { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink); white-space: nowrap; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang a { padding: 6px 12px; font-size: 14px; color: var(--ink); text-decoration: none; }
.lang a[aria-current] { background: var(--blue); color: #fff; font-weight: 600; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; position: relative; }
.menu-btn span:first-child, .menu-btn span:first-child::before, .menu-btn span:first-child::after { position: absolute; left: 11px; width: 20px; height: 2px; background: var(--ink); content: ""; }
.menu-btn span:first-child { top: 21px; }
.menu-btn span:first-child::before { top: -6px; left: 0; }
.menu-btn span:first-child::after { top: 6px; left: 0; }

.mainnav { background: var(--blue); }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.nav-list > li > a { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; }
.nav-list > li:first-child > a { padding-left: 0; }
.nav-list > li > a:hover { text-decoration: underline; text-underline-offset: 5px; }
.chev { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.has-mega { position: static; }
.mega { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line-soft); box-shadow: 0 12px 24px rgba(0, 0, 0, .12); padding: 28px max(20px, calc((100vw - var(--wrap)) / 2 + 20px)); gap: 40px; }
.has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.open .mega { display: grid; grid-template-columns: 1fr 2fr auto; }
.mega h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: block; padding: 5px 0; color: var(--ink); }
.mega li a:hover { color: var(--blue); }
.mega-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 28px; align-content: start; }
.mega-types h3 { grid-column: 1 / -1; }
.type-group { margin-bottom: 10px; }
.type-parent { font-weight: 700; color: var(--blue); display: block; padding: 4px 0; }
.type-group li a { font-size: 14px; color: var(--text); padding: 3px 0; }
.mega-cta { align-self: end; }

/* Suggestions */
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 6px 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 28px rgba(0, 0, 0, .14); z-index: 60; max-height: 70vh; overflow: auto; text-align: left; }
.suggest li a { display: flex; justify-content: space-between; gap: 16px; padding: 9px 18px; color: var(--ink); text-decoration: none; }
.suggest li.on a, .suggest li a:hover { background: var(--blue-50); }
.sg-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-cat { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; flex: none; }
.suggest li.none { padding: 10px 18px; color: var(--muted); }
.suggest li.all button { width: 100%; text-align: left; border: 0; border-top: 1px solid var(--line-soft); background: none; padding: 10px 18px; color: var(--blue); font-weight: 600; cursor: pointer; }

/* Page structure */
.page-pad { padding-top: 18px; padding-bottom: 64px; }
.narrow { max-width: 860px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); margin-bottom: 26px; }
.crumbs span[aria-current] { color: var(--muted); }
.page-title { font-size: 30px; margin-bottom: 12px; }
.lead { font-size: 18px; color: var(--muted); max-width: 760px; }
.prose { font-size: 17px; }
.prose p { margin: 0 0 1em; }

/* Home */
.hero { margin: 24px 0 8px; background: linear-gradient(105deg, #e9ecf3 0%, #f5f6f8 60%, #e6ecfb 100%); border-radius: 24px; padding: 52px 50px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: center; }
.hero h1 { font-size: 34px; max-width: 620px; }
.hero p { font-size: 17px; max-width: 600px; }
.hero-search { position: relative; display: flex; gap: 8px; background: #fff; border: 1px solid #8a909c; border-radius: 999px; padding: 6px; max-width: 620px; margin-top: 22px; }
.hero-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }
.hero-search input { flex: 1; min-width: 0; border: 0; padding: 0 16px; font-size: 17px; background: transparent; }
.hero-search input:focus { outline: none; }
.hero-hint { font-size: 14px !important; color: var(--muted); margin-top: 12px; }
.hero-art { display: flex; justify-content: center; gap: 10px; color: var(--ink); }
.hero-art .es-icon { width: 108px; height: 108px; background: #fff; border-radius: 22px; padding: 14px; box-shadow: 0 6px 18px rgba(0, 38, 58, .08); }
.hero-art .es-icon:nth-child(2) { transform: translateY(-22px); }
.block { margin-top: 56px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.block-head h2 { margin: 0; font-size: 26px; }
.es-icon { width: 64px; height: 64px; color: var(--ink); display: block; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 26px 14px 20px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none !important; min-height: 196px; transition: border-color .15s, box-shadow .15s; }
.tile:hover { border-color: var(--blue); box-shadow: 0 6px 16px rgba(0, 52, 183, .12); }
.tile-name { font-weight: 700; font-size: 15px; line-height: 1.3; }
.tile-count { font-size: 13px; color: var(--muted); margin-top: auto; }
.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.type-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; background: #fff; }
.type-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.type-card-head .es-icon { width: 44px; height: 44px; }
.type-card-head a { font-size: 18px; font-weight: 700; }
.type-card ul { list-style: none; margin: 0; padding: 0; }
.type-card li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line-soft); font-size: 15px; }
.type-card li em { font-style: normal; color: var(--muted); font-size: 13px; }
.band { margin-top: 56px; background: var(--blue); color: #fff; border-radius: 20px; padding: 34px 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.band h2 { color: #fff; margin-bottom: 6px; }
.band p { margin: 0; opacity: .92; }
.band-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.band-link { color: #fff; text-decoration: underline; }

/* Applications */
.app-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-top: 26px; }
.app-card { display: flex; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none !important; }
.app-card:hover { border-color: var(--blue); box-shadow: 0 6px 16px rgba(0, 52, 183, .1); }
.app-card .es-icon { flex: none; width: 56px; height: 56px; }
.app-card-body { display: flex; flex-direction: column; gap: 6px; }
.app-card strong { color: var(--blue); font-size: 18px; }
.app-card em { font-style: normal; font-size: 14px; color: var(--muted); }
.tax-head { display: flex; gap: 20px; align-items: flex-start; }
.tax-head .es-icon { flex: none; width: 72px; height: 72px; }
.inline-search { display: flex; gap: 8px; max-width: 560px; margin: 18px 0 22px; }
.inline-search input { flex: 1; min-width: 0; height: 46px; border: 1px solid #8a909c; border-radius: 999px; padding: 0 18px; }

/* Filters */
.filters { margin-bottom: 8px; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: 10px; padding: 14px 16px; }
.facet { position: relative; }
.facet > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; background: #fff; border: 1px solid var(--line); border-radius: 6px; color: var(--blue); font-size: 15px; cursor: pointer; user-select: none; }
.facet > summary::-webkit-details-marker { display: none; }
.facet > summary::after { content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; }
.facet.on > summary { border-color: var(--blue); background: var(--blue-50); }
.facet > summary b { background: var(--blue); color: #fff; border-radius: 999px; font-size: 12px; padding: 0 7px; }
.facet-pop { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: 330px; max-width: calc(100vw - 40px); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 28px rgba(0, 0, 0, .14); padding: 12px; }
.facet-pop ul { list-style: none; margin: 0 0 10px; padding: 0; max-height: 320px; overflow: auto; }
.facet-pop li label { display: flex; align-items: flex-start; gap: 8px; padding: 6px 4px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.facet-pop li label:hover { background: var(--bg-soft); }
.facet-pop li.child label { padding-left: 24px; }
.facet-pop li span { flex: 1; }
.facet-pop li em { font-style: normal; color: var(--muted); font-size: 13px; }
.facet-find { width: 100%; height: 36px; border: 1px solid var(--line); border-radius: 6px; padding: 0 10px; margin-bottom: 8px; }
.sort { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sort select { height: 38px; border: 1px solid var(--line); border-radius: 6px; padding: 0 8px; background: #fff; color: var(--blue); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.chip { display: inline-flex; gap: 6px; align-items: center; background: var(--blue-50); color: var(--blue); border: 1px solid var(--blue-100); padding: 4px 12px; border-radius: 999px; font-size: 14px; text-decoration: none !important; }
.chip:hover { background: var(--blue-100); }
.chip-clear { font-size: 14px; }
.result-count { color: var(--muted); font-size: 15px; margin: 18px 0 12px; }
.result-count b { color: var(--ink); }

/* Result cards (R&D-style) */
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.rcard { border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; background: #fff; }
.rcard-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.rcard h2 { font-size: 18px; font-weight: 700; margin: 0; line-height: 1.35; }
.maker { flex: none; color: var(--blue); font-weight: 800; font-size: 14px; letter-spacing: .01em; }
.rcard-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; margin: 6px 0 12px; padding-bottom: 12px; border-bottom: 1px solid #222; color: var(--text); }
.rcard-meta .doc::before { content: ""; display: inline-block; width: 10px; height: 13px; margin-right: 6px; border: 2px solid var(--err); border-radius: 2px; vertical-align: -1px; }
.rcard-body { display: flex; gap: 20px; justify-content: space-between; }
.rcard dl { margin: 0; display: grid; gap: 4px; font-size: 15px; flex: 1; }
.rcard dl div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; }
.rcard dt { font-weight: 700; color: var(--ink); }
.rcard dd { margin: 0; }
.thumb { flex: none; width: 200px; height: 104px; border: 1px solid var(--line); border-radius: 6px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; }
.thumb img { max-height: 100%; object-fit: contain; }
.rcard-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; background: var(--bg-soft); border-radius: 6px; padding: 8px 8px 8px 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
a.tag:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.empty { padding: 30px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 28px; }
.pager a, .pager span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; text-decoration: none; }
.pager span[aria-current] { background: var(--blue); color: #fff; border-color: var(--blue); font-weight: 700; }
.pager .gap { border: 0; }

/* Product page */
.pd-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.pd-main { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 12px; }
.pd-main img { max-height: 100%; object-fit: contain; }
.pd-noimg img { width: 120px; opacity: .6; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; overflow-y: hidden; padding-bottom: 2px; scrollbar-width: thin; }
.pd-thumbs button { flex: none; width: 72px; height: 56px; border: 1px solid var(--line); border-radius: 6px; padding: 3px; background: #fff; cursor: pointer; }
.pd-thumbs button[aria-current] { border: 2px solid var(--blue); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pd-type { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.pd-info h1 { font-size: 28px; }
.pd-cat, .pd-brand { margin: 4px 0; font-size: 16px; }
.pd-cat b { font-variant-numeric: tabular-nums; }
.copy { border: 1px solid var(--line); background: #fff; border-radius: 6px; font-size: 12px; padding: 2px 8px; margin-left: 6px; cursor: pointer; color: var(--blue); }
.pd-sizes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 6px; }
.size { border: 1px solid var(--blue); color: var(--blue); border-radius: 6px; padding: 3px 12px; font-size: 14px; font-weight: 600; }
.pd-price { color: var(--muted); margin: 8px 0 16px; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.pd-facts { margin: 0 0 14px; border-top: 1px solid var(--line-soft); }
.pd-facts div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.pd-facts dt { font-weight: 700; color: var(--ink); }
.pd-facts dd { margin: 0; }
.pd-tabs { position: sticky; top: 138px; z-index: 20; display: flex; gap: 4px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; background: #fff; border-bottom: 2px solid var(--line-soft); margin: 40px 0 8px; }
.pd-tabs a { flex: none; padding: 12px 16px; font-weight: 600; color: var(--ink); border-bottom: 3px solid transparent; margin-bottom: -2px; text-decoration: none; }
.pd-tabs a:hover { color: var(--blue); border-bottom-color: var(--blue); }
.pd-content { overflow-wrap: break-word; }
.es-sec { padding-top: 22px; }
.es-sec h2 { font-size: 22px; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); margin-bottom: 14px; }
.es-sec table { width: 100%; border-collapse: collapse; margin: 10px 0 20px; font-size: 14.5px; display: block; overflow-x: auto; }
.es-sec table tbody, .es-sec table thead { display: table; width: 100%; border-collapse: collapse; }
.es-sec th, .es-sec td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; overflow-wrap: normal; word-break: normal; }
.es-sec tr > td:first-child, .es-sec tr > td:nth-child(3), .es-sec th { background: var(--bg-soft); font-weight: 600; color: var(--ink); }
#sec-1 tr > td:first-child, #sec-1 tr > td:nth-child(3) { width: 17%; min-width: 130px; }
#sec-1 tr > td:nth-child(2), #sec-1 tr > td:nth-child(4) { width: 33%; }
.es-sec img { display: block; margin: 12px 0; max-height: 640px; object-fit: contain; }
.es-sec p { margin: 0 0 .8em; }
img.broken { display: none !important; }
.pd-source { margin-top: 28px; font-size: 15px; }
.pd-inquiry { margin-top: 40px; background: var(--bg-soft); border-radius: 16px; padding: 30px 32px; }

/* Forms */
.es-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-top: 16px; }
.es-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.es-form .full, .es-form-product { grid-column: 1 / -1; }
.es-form input, .es-form select, .es-form textarea { font-weight: 400; border: 1px solid #a3a9b4; border-radius: 8px; padding: 10px 12px; background: #fff; font-size: 15px; }
.es-form input:focus, .es-form select:focus, .es-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }
.es-form-product { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.es-form-product .lbl, .es-form-product .cat { color: var(--muted); font-size: 14px; }
.es-form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.es-form-actions .note { font-size: 13px; color: var(--muted); }
.es-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.es-notice { margin: 14px 0; padding: 12px 16px; border-radius: 8px; font-weight: 600; }
.es-notice-ok { background: #e6f4ec; color: var(--ok); }
.es-notice-err { background: #fdecea; color: var(--err); }

/* About / Contact */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 30px 0; }
.about-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.about-card .es-icon { width: 52px; height: 52px; margin-bottom: 10px; }
.about-card h2 { font-size: 18px; }
.about-card p { margin: 0; font-size: 15px; }
.contact-grid { display: grid; grid-template-columns: 320px 1fr; gap: 32px; margin-top: 26px; align-items: start; }
.contact-cards { display: grid; gap: 12px; }
.ccard { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none !important; }
.ccard span { color: var(--muted); font-size: 14px; }
.ccard b { color: var(--blue); font-size: 18px; }
.ccard:hover { border-color: var(--blue); }
.contact-form { background: var(--bg-soft); border-radius: 16px; padding: 28px 30px; }

/* Footer */
.site-footer { background: var(--navy); color: #d7dee8; margin-top: 40px; font-size: 15px; }
.site-footer a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 46px; padding-bottom: 30px; }
.site-footer h3 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; }
.foot-brand .brand-name { color: #fff; }
.foot-brand p { margin-top: 14px; max-width: 300px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 16px; padding-bottom: 22px; font-size: 13px; color: #a9b6c6; }

/* Responsive */
@media (max-width: 1000px) {
	.head-phone { display: none; }
	.hero { grid-template-columns: 1fr; padding: 40px 32px; }
	.hero-art { display: none; }
	.foot-grid { grid-template-columns: 1fr 1fr; }
	.mega-types { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
	html { scroll-padding-top: 150px; }
	.head-row { flex-wrap: wrap; gap: 10px 14px; min-height: 0; padding-top: 10px; padding-bottom: 10px; }
	.brand img { width: 42px; height: 40px; }
	.brand-name { font-size: 18px; }
	.head-tools { margin-left: auto; }
	.head-search { order: 3; flex-basis: 100%; height: 44px; }
	.head-search .scope { display: none; }
	.menu-btn { display: block; }
	.mainnav { display: none; }
	.mainnav.open { display: block; max-height: calc(100vh - 120px); overflow: auto; }
	.nav-list { flex-direction: column; gap: 0; padding: 6px 0 12px; }
	.nav-list > li > a, .nav-list > li:first-child > a { padding: 0; height: 46px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
	.has-mega:hover .mega { display: none; }
	.has-mega.open .mega { display: block; position: static; box-shadow: none; border-radius: 10px; padding: 16px; margin: 8px 0; }
	.mega-types { grid-template-columns: 1fr; margin-top: 14px; }
	.mega-cta { margin-top: 10px; }
	.pd-head { grid-template-columns: 1fr; gap: 22px; }
	.pd-tabs { top: 112px; }
	.contact-grid { grid-template-columns: 1fr; }
	.about-grid { grid-template-columns: 1fr; }
	.rcard-body { flex-direction: column; }
	.thumb { width: 100%; height: 140px; }
}
@media (max-width: 600px) {
	.wrap { padding: 0 16px; }
	.head-row { gap: 10px 8px; }
	.head-tools { gap: 8px; }
	.brand { gap: 8px; }
	.brand img { width: 36px; height: 35px; }
	.brand-name { font-size: 17px; }
	h1, .page-title { font-size: 25px; }
	.hero { padding: 28px 20px; border-radius: 16px; margin-top: 14px; }
	.hero h1 { font-size: 26px; }
	.hero-search { flex-direction: column; border-radius: 16px; }
	.hero-search input { height: 44px; }
	.hero-search .btn { width: 100%; }
	.tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.tile { min-height: 168px; padding: 18px 10px 14px; }
	.types, .app-list { grid-template-columns: 1fr; }
	.band { padding: 26px 22px; }
	.rcard { padding: 16px; }
	.rcard-head { flex-direction: column; gap: 4px; }
	.rcard dl div, .pd-facts div { grid-template-columns: 1fr; gap: 0; }
	.rcard-foot { flex-direction: column; align-items: stretch; }
	.rcard-foot .btn { width: 100%; }
	.sort { margin-left: 0; width: 100%; }
	.es-form { grid-template-columns: 1fr; }
	.pd-inquiry, .contact-form { padding: 22px 18px; }
	.foot-grid { grid-template-columns: 1fr; }
	.facet-pop { position: fixed; left: 20px; right: 20px; top: auto; bottom: 20px; width: auto; }
	.lang a { padding: 6px 10px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Figure lists in imported product data (image + caption) */
.es-sec ul:has(img) { list-style: none; padding: 0; margin: 10px 0 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.es-sec ul:has(img) > li { border: 1px solid var(--line); border-radius: 8px; padding: 12px; font-size: 14px; background: #fff; }
.es-sec ul:has(img) img { margin: 0 auto 8px; max-height: 340px; }
@media (max-width: 380px) {
	.brand-name { font-size: 15px; }
	.lang a { padding: 5px 8px; }
	.menu-btn { width: 40px; height: 40px; }
	.menu-btn span:first-child { top: 19px; left: 9px; }
}


/* ===== 2026-10-16 Instruments (BioAir) ===== */
.inst-sec{margin:36px 0 8px}
.inst-sec h2{font-size:22px;margin:0 0 14px;padding-bottom:8px;border-bottom:2px solid var(--line-soft)}
.inst-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:18px}
.inst-card{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:var(--radius);background:#fff;overflow:hidden;color:inherit;text-decoration:none;transition:box-shadow .15s,border-color .15s}
.inst-card:hover{border-color:var(--blue);box-shadow:0 6px 18px rgba(0,38,58,.12)}
.inst-card-img{aspect-ratio:4/3;background:var(--bg-soft);display:flex;align-items:center;justify-content:center;padding:14px}
.inst-card-img img{max-width:100%;max-height:100%;object-fit:contain}
.inst-card-body{padding:14px 16px 16px;display:flex;flex-direction:column;gap:4px}
.inst-card-body strong{font-size:17px;color:var(--ink)}
.inst-card-body span{font-size:14px;color:var(--muted)}
.inst-card-body em{font-style:normal;font-size:13px;font-weight:600;color:var(--blue);margin-top:6px}
.inst-img{background:var(--bg-soft);border-radius:var(--radius);padding:24px;display:flex;align-items:center;justify-content:center;min-height:280px}
.inst-img img{max-width:100%;max-height:420px;object-fit:contain}
.inst-sub{font-size:17px;color:var(--text);margin:8px 0 16px}
.inst-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}
.inst-btn-alt{background:#fff;color:var(--blue);border-color:var(--blue)}
.inst-body{max-width:820px;margin-top:32px;line-height:1.65}
.inst-body h3{font-size:20px;margin:24px 0 10px}
.inst-body h4{font-size:17px;margin:18px 0 8px}
.inst-body ul{padding-left:20px;margin:0 0 14px}
.inst-body li{margin:4px 0}
.inst-docs{list-style:none;padding:0;margin:8px 0 0;display:flex;flex-direction:column;gap:8px}
.inst-docs a{display:inline-block;padding:10px 14px;border:1px solid var(--line);border-radius:10px;color:var(--blue);font-weight:600;text-decoration:none}
.inst-docs a:hover{border-color:var(--blue);background:var(--blue-50)}
@media (max-width:700px){.inst-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.inst-card-img{padding:8px}.inst-img{min-height:200px;padding:14px}}
