:root {
    /* Bray-style palette: charcoal structure, red for every call to action */
    --navy: #1C1E21;
    --navy-dark: #111214;
    --steel: #2C3034;
    --steel-light: #F1F2F4;
    --accent: #C8102E;
    --accent-dark: #9B0C23;
    --text: #1B1D20;
    --muted: #5C6167;
    --surface: #F5F6F7;
    --surface-2: #EBEDEF;
    --border: #DDE0E3;
    --white: #ffffff;
    --radius: 4px;
    --shadow: 0 1px 2px rgba(24, 26, 29, .06), 0 8px 24px rgba(24, 26, 29, .08);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--steel); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.topbar { background: #fff; color: var(--muted); font-size: .8rem; border-bottom: 1px solid var(--steel-light); }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: var(--muted); }
.topbar a:hover { color: var(--accent); text-decoration: none; }
.topbar .tb-right { display: flex; gap: 18px; align-items: center; }

.site-header { background: #fff; border-bottom: 3px solid var(--accent); box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; color: var(--text); font-weight: 600; font-size: 1.25rem; }
.logo:hover { color: var(--text); text-decoration: none; }
.logo-img { height: 60px; width: auto; display: block; background: #fff; padding: 9px 15px; border-radius: 6px; border: 1px solid var(--steel-light); }
.site-footer .logo-img { background: #fff; }

.main-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.main-nav a { color: var(--text); font-size: .92rem; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--accent); text-decoration: none; border-bottom-color: var(--accent); }

/* language switcher */
.lang-switch { position: relative; }
.lang-switch summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; color: var(--text); font-size: .86rem; font-weight: 500; padding: 7px 10px; border: 1px solid var(--border); border-radius: 4px; user-select: none; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { color: var(--accent); border-color: var(--muted); }
.lang-switch .lang-caret { transition: transform .15s; }
.lang-switch[open] .lang-caret { transform: rotate(180deg); }
.lang-switch ul { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--border); border-radius: 6px; box-shadow: 0 12px 28px rgba(11, 44, 76, .18); padding: 6px; margin: 0; list-style: none; z-index: 95; min-width: 172px; }
.lang-switch li a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 4px; color: var(--text); font-size: .88rem; white-space: nowrap; border-bottom: none; }
.lang-switch li a:hover { background: var(--surface); text-decoration: none; }
.lang-switch li.active a { font-weight: 600; background: var(--steel-light); }
.lang-switch li.active a::after { content: "✓"; margin-left: auto; color: var(--accent); font-size: .8rem; }
.flag-ic { width: 20px; height: 14px; border-radius: 2px; display: inline-block; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.nav-cta { background: var(--accent); color: #fff !important; padding: 9px 16px !important; border-radius: var(--radius); font-weight: 600; border-bottom: none !important; }
.nav-cta:hover { background: var(--accent-dark); }

/* Products dropdown: product categories */
.nav-item { position: relative; }
.nav-item > a { display: inline-flex; align-items: center; gap: 6px; }
.nav-item .caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .7; transition: transform .15s; }
.nav-item:hover .caret, .nav-item:focus-within .caret { transform: rotate(180deg); }
.submenu { position: absolute; top: 100%; left: -16px; z-index: 60; min-width: 280px; margin: 0; padding: 6px 0; list-style: none; background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: 0 0 6px 6px; box-shadow: 0 12px 28px rgba(11, 44, 76, .18); display: none; }
.nav-item:hover .submenu, .nav-item:focus-within .submenu { display: block; }
.submenu li a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 18px; font-size: .9rem; font-weight: 400; color: var(--text); border-bottom: none; }
.submenu li a .qty { font-size: .76rem; color: var(--muted); }
.submenu li a:hover, .submenu li a:focus { background: var(--surface); color: var(--steel); text-decoration: none; border-bottom: none; }
.submenu .submenu-all { border-top: 1px solid var(--border); margin-top: 6px; }
.submenu .submenu-all a { color: var(--steel); font-weight: 600; font-size: .85rem; }

/* Products mega menu: category columns with product models */
.submenu.mega { left: -16px; width: min(1140px, calc(100vw - 48px)); padding: 16px 20px 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 28px; }
.nav-item:hover .submenu.mega, .nav-item:focus-within .submenu.mega { display: grid; max-height: 76vh; overflow: auto; }
.submenu.mega .mega-col { list-style: none; }
.submenu.mega .mega-cat { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0 8px; font-weight: 600; font-size: .92rem; color: var(--steel); border-bottom: 2px solid var(--accent); margin-bottom: 6px; background: none; }
.submenu.mega .mega-cat:hover { background: none; color: var(--steel); }
.submenu.mega .mega-col > ul { list-style: none; margin: 0; padding: 0; }
.submenu.mega .mega-col > ul a { display: block; padding: 5px 0; font-size: .84rem; font-weight: 400; color: var(--text); line-height: 1.35; }
.submenu.mega .mega-col > ul a:hover, .submenu.mega .mega-col > ul a:focus { background: none; color: var(--steel); text-decoration: underline; }
.submenu.mega .mega-more { color: var(--accent); font-weight: 600; }
.submenu.mega .mega-all { grid-column: 1 / -1; }

/* header product search */
.nav-search { position: relative; margin-left: 4px; display: flex; align-items: center; }
.nav-search input[type="search"] { width: 190px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 4px 0 0 4px; border-right: none; background: var(--surface); color: var(--text); font-size: .88rem; }
.search-submit { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: none; border-radius: 0 4px 4px 0; background: var(--accent); color: #fff; cursor: pointer; flex: none; }
.search-submit:hover { background: #9B0C23; }
.search-results { display: flex; flex-direction: column; gap: 18px; }
.search-hit { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 18px 22px; }
.search-hit h2 { font-size: 1.05rem; margin: 0 0 4px; }
.search-hit h2 a { color: var(--navy); }
.search-hit h2 a:hover { color: var(--accent); }
.hit-meta { font-size: .8rem; color: var(--muted); margin: 0 0 8px; }
.hit-snippet { font-size: .9rem; color: var(--text); margin: 0; line-height: 1.6; }
.nav-search input[type="search"]::placeholder { color: var(--muted); }
.nav-search input[type="search"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; background: #fff; }
.search-pop { position: absolute; top: calc(100% + 6px); right: 0; width: 340px; max-height: 400px; overflow: auto; background: #fff; border: 1px solid var(--border); border-radius: 6px; box-shadow: 0 12px 28px rgba(11, 44, 76, .18); z-index: 70; }
.search-pop a { display: block; padding: 9px 14px; font-size: .87rem; color: var(--text); border-bottom: 1px solid var(--border); }
.search-pop a:last-child { border-bottom: none; }
.search-pop a:hover, .search-pop a:focus { background: var(--surface); color: var(--steel); text-decoration: none; }

.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #0C447C 0%, #0A3A6B 100%); color: #fff; padding: 64px 0 56px; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: 2.6rem; margin-bottom: .4em; text-shadow: 0 1px 3px rgba(0,0,0,.55), 0 2px 20px rgba(0,0,0,.5); }
.hero .lede { color: #E4EEF7; font-size: 1.08rem; max-width: 34em; text-shadow: 0 1px 3px rgba(0,0,0,.6), 0 2px 16px rgba(0,0,0,.55); }
.hero .eyebrow { color: #D6E8FA; text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 600; margin-bottom: 14px; text-shadow: 0 1px 3px rgba(0,0,0,.6), 0 2px 14px rgba(0,0,0,.5); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
/* every button: red background, white label (Bray convention) */
.btn { display: inline-block; padding: 12px 22px; border-radius: var(--radius); font-weight: 600; font-size: .95rem; background: var(--accent); color: #fff; border: 1px solid var(--accent); cursor: pointer; }
.btn:hover, .btn:focus { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; text-decoration: none; }
.btn-primary, .btn-ghost, .btn-outline { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover, .btn-ghost:hover, .btn-outline:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.hero-facts { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.hero-facts div { font-size: .84rem; color: #DCE9F5; text-shadow: 0 1px 3px rgba(0,0,0,.6), 0 2px 14px rgba(0,0,0,.5); }
.hero-facts strong { display: block; font-size: 1.35rem; color: #fff; font-weight: 600; text-shadow: 0 1px 8px rgba(0,0,0,.5); }

.hero-figure { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14); border-radius: 8px; padding: 10px; display: flex; align-items: center; justify-content: center; }
.hero-figure img { display: block; width: 100%; height: auto; border-radius: 4px; }

.section { padding: 64px 0; }
.section.alt { background: var(--surface); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 32px; }
.section-head p { color: var(--muted); margin: 0; max-width: 46em; }
.section-head .link { font-size: .9rem; font-weight: 600; white-space: nowrap; }

.brand-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.brand-card { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 28px 26px; display: flex; gap: 22px; align-items: flex-start; transition: border-color .15s, box-shadow .15s; }
.brand-card:hover { border-color: var(--steel); box-shadow: var(--shadow); }
.brand-card .brand-mark { width: 64px; height: 64px; flex: 0 0 auto; border-radius: 4px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--navy); font-size: .82rem; letter-spacing: .04em; text-align: center; line-height: 1.2; padding: 4px; }
.brand-card h3 { margin-bottom: 6px; }
.brand-card p { color: var(--muted); font-size: .94rem; margin-bottom: 10px; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card { background: #fff; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.product-card:hover { border-color: var(--steel); box-shadow: var(--shadow); }
.product-thumb { background: var(--surface); height: 230px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border); overflow: hidden; }
.product-thumb svg { width: 96px; height: 96px; color: #9DB0C4; }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.product-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.product-brand { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); font-weight: 600; margin-bottom: 6px; }
.product-name { font-size: 1.02rem; font-weight: 600; margin-bottom: 6px; }
.product-name a { color: var(--text); }
.product-name a:hover { color: var(--steel); text-decoration: none; }
.product-meta { font-size: .84rem; color: var(--muted); margin-bottom: 14px; }
.product-link { margin-top: auto; font-size: .86rem; font-weight: 600; color: var(--accent); }
.product-link:hover { text-decoration: none; color: var(--accent-dark); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }
.feature .num { font-size: .76rem; font-weight: 700; color: var(--steel); letter-spacing: .1em; display: block; margin-bottom: 10px; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { border-top: 2px solid var(--navy); padding-top: 18px; }
.post-card .date { font-size: .78rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.post-card h3 { font-size: 1.06rem; margin: 8px 0 8px; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--steel); text-decoration: none; }
.post-card p { color: var(--muted); font-size: .92rem; margin: 0; }

.cta-band { background: var(--navy); color: #fff; padding: 44px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 4px; font-size: 1.5rem; }
.cta-band p { color: #C9DDF0; margin: 0; }

.crumbs { background: var(--surface); border-bottom: 1px solid var(--border); font-size: .82rem; color: var(--muted); padding: 10px 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; color: #A9B4C1; margin-right: 8px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--steel); }
.crumbs [aria-current] { color: var(--text); }

.page-head { background: var(--surface); border-bottom: 1px solid var(--border); padding: 40px 0 36px; }
.page-head .eyebrow { color: var(--steel); text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; font-weight: 600; }
.page-head h1 { margin: 8px 0 10px; }
.page-head p { color: var(--muted); max-width: 52em; margin: 0; }

.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.category-card { border: 1px solid var(--border); border-radius: 6px; padding: 22px; background: #fff; }
.category-card:hover { border-color: var(--steel); box-shadow: var(--shadow); }
.category-card .brand-tag { font-size: .72rem; color: var(--steel); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.category-card h3 { font-size: 1.08rem; margin: 8px 0 8px; }
.category-card h3 a { color: var(--text); }
.category-card p { font-size: .9rem; color: var(--muted); margin: 0 0 12px; }
.category-card .count { font-size: .8rem; color: var(--muted); }

/* media category card: image + name + count badge */
.category-card.media { position: relative; display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; }
.category-card.media:hover { text-decoration: none; }
.category-media { display: flex; align-items: center; justify-content: center; height: 170px; background: #fff; border-bottom: 1px solid var(--border); overflow: hidden; }
.category-media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; padding: 12px; }
.category-media svg { width: 90px; height: 90px; color: #A6B7C8; }
.category-card.media .category-name { display: block; padding: 14px 16px 30px; font-weight: 600; font-size: .98rem; color: var(--text); }
.count-badge { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .84rem; font-weight: 700; line-height: 1; }

/* why choose us */
.why-us { padding: 56px 0; background: var(--surface); }
.why-us .section-head h2 { font-size: 2rem; }
.section-head.centered { flex-direction: column; align-items: center; text-align: center; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 10px; }
.why-card { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 28px 26px; }
.why-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--steel-light); color: var(--navy); margin-bottom: 14px; }
.why-card h3 { font-size: 1.02rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.why-card p { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.65; }

/* popular models grid */
.popular-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.popular-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 6px; background: #fff; padding: 16px; }
.popular-card:hover { border-color: var(--steel); box-shadow: var(--shadow); }
.popular-media { display: flex; align-items: center; justify-content: center; height: 150px; margin-bottom: 12px; background: #fff; }
.popular-media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.popular-media svg { width: 80px; height: 80px; color: #A6B7C8; }
.popular-card h3 { font-size: .98rem; margin-bottom: 8px; }
.popular-card h3 a { color: var(--text); }
.popular-text { font-size: .87rem; color: var(--muted); margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.9em; }
.popular-card .product-link { margin-top: auto; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.detail-media { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; min-height: 380px; display: flex; align-items: center; justify-content: center; }
.detail-media svg { width: 180px; height: 180px; color: #A6B7C8; }
.detail-media img { padding: 24px; max-height: 420px; object-fit: contain; }
.detail-info h1 { margin-bottom: 10px; }
.detail-info .brandline { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--steel); font-weight: 600; margin-bottom: 10px; }
.detail-info .summary { color: var(--muted); font-size: 1.02rem; }
.meta-row { display: flex; gap: 26px; margin: 18px 0 24px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.meta-row div { font-size: .82rem; color: var(--muted); }
.meta-row strong { display: block; color: var(--text); font-size: .95rem; font-weight: 600; }

.specs { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: .95rem; }
.specs th, .specs td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.specs th { background: var(--surface); font-weight: 600; color: var(--muted); width: 38%; }
.specs-full { margin-top: 18px; }
.specs-full tr:hover td { background: var(--surface); }
.feature-list { margin: 14px 0 0; padding-left: 20px; }
.feature-list li { margin-bottom: 8px; }
.spec-text p { margin-bottom: 12px; }
.diagram-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; margin-top: 22px; }
.diagram-card { margin: 0; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: #fff; }
.diagram-card a { display: block; background: #fff; }
.diagram-card img { display: block; width: 100%; height: auto; object-fit: contain; padding: 14px; }
.diagram-card figcaption { padding: 10px 14px; font-size: .86rem; font-weight: 600; color: var(--text); border-top: 1px solid var(--border); background: var(--surface); }

/* product detail: horizontal category bar above content */
.detail-catbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; margin-bottom: 30px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.detail-catbar a { padding: 6px 14px; border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--text); background: var(--surface); border: 1px solid var(--border); }
.detail-catbar a:hover, .detail-catbar a:focus { color: var(--steel); border-color: var(--steel); text-decoration: none; }
.detail-catbar a.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.detail-catbar .catbar-all { background: none; border-color: transparent; color: var(--muted); padding-left: 0; }
.detail-catbar .catbar-all:hover { color: var(--steel); border-color: transparent; text-decoration: underline; }
.btn-sm { padding: 8px 14px; font-size: .84rem; }

.inquiry-band { margin-top: 48px; background: var(--navy); color: #E7F0FA; border-radius: 6px; padding: 30px 32px; display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.inquiry-band h2 { color: #fff; font-size: 1.3rem; margin-bottom: 8px; }
.inquiry-band p { margin: 0; font-size: .92rem; max-width: 52em; }
.inquiry-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.inquiry-band .btn-outline { background: var(--accent); border-color: var(--accent); color: #fff; }
.inquiry-band .btn-outline:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

/* detail images keep natural aspect ratio; card thumbs are height-contained */
.detail-media img { width: 100%; height: auto; object-fit: contain; }
.detail-gallery { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.detail-gallery a { display: block; width: 96px; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; background: #fff; }
.detail-gallery img { display: block; width: 100%; height: auto; }

/* homepage: split hero figure uses a real product illustration */
.hero-figure { flex-direction: column; gap: 10px; }
.hero-figure img { width: 100%; max-width: 340px; height: auto; filter: drop-shadow(0 10px 18px rgba(0,0,0,.25)); }
.hero-figure span { font-size: .78rem; color: #9FC3E8; }

/* trust strip */
.trust-strip { background: var(--navy); color: #C9DDF0; padding: 14px 0; }
.trust-strip-inner { display: flex; gap: 10px 34px; flex-wrap: wrap; font-size: .86rem; }
.trust-strip-inner span { display: flex; align-items: center; gap: 8px; }
.trust-strip-inner span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* application cards */
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.app-card { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--border); border-radius: 6px; padding: 22px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.app-card:hover { border-color: var(--steel); box-shadow: var(--shadow); text-decoration: none; }
.app-card h3 { font-size: 1.04rem; margin: 0; color: var(--text); }
.app-card p { margin: 0; font-size: .9rem; color: var(--muted); flex: 1; }
.app-card .product-link { margin-top: 6px; }

/* featured model comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.compare-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
.compare-table th, .compare-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare-table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--surface); }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover { background: var(--steel-light); }
.compare-table tbody th { font-weight: 600; white-space: nowrap; }

/* selection process steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-card { border: 1px solid var(--border); border-radius: 6px; padding: 24px; background: #fff; position: relative; }
.step-no { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 600; margin-bottom: 14px; }
.step-card h3 { font-size: 1.04rem; margin: 0 0 8px; }
.step-card p { margin: 0; font-size: .92rem; color: var(--muted); }
.steps-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.steps-cta .btn-outline { background: var(--accent); border-color: var(--accent); color: #fff; }
.steps-cta .btn-outline:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.12rem; margin-top: 1.4em; }
.prose p, .prose li { color: #2C3745; }
.prose ul { padding-left: 1.2em; }

.pager { display: flex; gap: 8px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 38px; text-align: center; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: .88rem; color: var(--text); background: #fff; }
.pager a:hover { border-color: var(--steel); color: var(--steel); text-decoration: none; }
.pager .current { background: var(--navy); border-color: var(--navy); color: #fff; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .84rem; font-weight: 600; color: #35404E; }
.field input, .field select, .field textarea { font-family: inherit; font-size: .95rem; padding: 10px 12px; border: 1px solid #C6D0DB; border-radius: var(--radius); background: #fff; color: var(--text); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--steel-light); border-color: var(--steel); }
.field textarea { min-height: 140px; resize: vertical; }
.hint { font-size: .78rem; color: var(--muted); }
.validation { color: #B42318; font-size: .8rem; }
.validation-summary { border: 1px solid #F3C0BB; background: #FDF3F2; color: #912018; padding: 12px 14px; border-radius: var(--radius); font-size: .88rem; margin-bottom: 18px; }
.validation-summary ul { margin: 0; padding-left: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 24px; }
.contact-card h3 { font-size: 1rem; }
.contact-card .item { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .92rem; }
.contact-card .item:last-child { border-bottom: none; }
.contact-card .item span { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }

.site-footer { background: #0A2E55; color: #B9CEE4; font-size: .88rem; padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.site-footer a { color: #B9CEE4; display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer p { color: #9DB8D2; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; font-size: .8rem; color: #8FAAC4; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 980px) {
    .hero .container { grid-template-columns: 1fr; gap: 32px; }
    .hero h1 { font-size: 2.1rem; }
    .product-grid, .post-grid, .category-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .popular-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .detail-grid { grid-template-columns: 1fr; gap: 28px; }
    .detail-catbar { gap: 6px 4px; }
    .detail-catbar a { padding: 5px 11px; font-size: .84rem; }
    .submenu.mega { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; }
    .brand-grid { grid-template-columns: 1fr; }
    .app-grid, .steps-grid { grid-template-columns: 1fr; }
    .hero-figure { display: none; }
}
@media (max-width: 640px) {
    h1 { font-size: 1.8rem; }
    .hero { padding: 44px 0 40px; }
    .hero h1 { font-size: 1.75rem; }
    .section { padding: 44px 0; }
    .product-grid, .post-grid, .category-grid, .feature-grid, .form-grid { grid-template-columns: 1fr; }
    .popular-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .topbar .tb-right { display: none; }
    .main-nav { gap: 14px; font-size: .85rem; }
    .submenu { left: 0; min-width: 220px; }
    .section-head { flex-direction: column; align-items: flex-start; }
}
/* ---- AI assistant widget (导购员形象版, 202611121603) ---- */
.ai-assistant { position: fixed; right: 22px; bottom: 22px; z-index: 200; font-size: .92rem; }
.ai-host { width: 92px; height: 92px; border-radius: 50%; border: 3px solid #fff; padding: 0; overflow: hidden; cursor: pointer; background: #E8F0F7; box-shadow: 0 10px 26px rgba(11,44,76,.28); animation: aiFloat 2.6s ease-in-out infinite; transition: transform .2s; }
.ai-host img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
.ai-host:hover { transform: scale(1.06); }
.ai-assistant.panel-open .ai-host { animation-play-state: paused; }
@keyframes aiFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.ai-tip { position: absolute; right: 104px; bottom: 34px; background: #fff; color: var(--text); font-size: .84rem; font-weight: 600; padding: 9px 14px; border-radius: 10px; box-shadow: 0 8px 20px rgba(11,44,76,.2); white-space: nowrap; animation: aiTipIn .35s ease-out; }
.ai-tip::after { content: ""; position: absolute; right: -7px; top: 50%; margin-top: -7px; border: 7px solid transparent; border-left-color: #fff; }
.ai-tip[hidden] { display: none; }
@keyframes aiTipIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }
.ai-panel[hidden] { display: none; }
.ai-panel { position: absolute; right: 0; bottom: 108px; width: 384px; height: 560px; max-width: calc(100vw - 32px); background: #fff; border-radius: 12px; box-shadow: 0 18px 44px rgba(11,44,76,.3); border: 1px solid var(--steel-light); display: flex; flex-direction: column; overflow: hidden; }
.ai-panel-head { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--navy); color: #fff; }
.ai-panel-head strong { font-size: .95rem; flex: 1; }
.ai-panel-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; border: 2px solid rgba(255,255,255,.7); background: #E8F0F7; }
.ai-panel-close { border: none; background: none; color: #fff; font-size: 1.3rem; cursor: pointer; line-height: 1; }
.ai-panel-msgs { flex: 1; overflow-y: auto; padding: 12px; background: #F7F8FA; display: flex; flex-direction: column; gap: 10px; }
.ai-msg { max-width: 85%; padding: 8px 12px; border-radius: 10px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.ai-user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 2px; }
.ai-ai { align-self: flex-start; background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 2px; color: var(--text); }
.ai-msg-zh-toggle { border: none; background: none; color: var(--muted); font-size: .72rem; padding: 2px 0; cursor: pointer; }
.ai-msg-zh { font-size: .82rem; color: var(--muted); border-top: 1px dashed var(--border); margin-top: 4px; padding-top: 4px; }
.ai-products { background: var(--steel-light); align-self: flex-start; }
.ai-products-title { font-weight: 700; font-size: .78rem; color: var(--muted); margin-bottom: 4px; }
.ai-product-link { display: block; color: var(--accent); font-size: .82rem; text-decoration: none; padding: 2px 0; }
.ai-product-link:hover { text-decoration: underline; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; max-width: 92%; padding: 2px 0; }
.ai-chip { border: 1px solid var(--border); background: #fff; border-radius: 14px; padding: 5px 11px; font-size: .78rem; color: var(--accent); cursor: pointer; }
.ai-chip:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.ai-panel-form { display: flex; padding: 10px; border-top: 1px solid var(--border); gap: 8px; background: #fff; }
.ai-panel-form textarea { flex: 1; resize: none; border: 1px solid var(--border); border-radius: 6px; padding: 8px; font: inherit; }
.ai-panel-form button { border: none; background: var(--accent); color: #fff; border-radius: 6px; padding: 8px 14px; font-weight: 600; cursor: pointer; }
.ai-panel-form button:disabled { opacity: .5; cursor: default; }
.ai-panel-privacy { font-size: .7rem; color: var(--muted); padding: 0 10px 8px; background: #fff; }
@media (max-width: 640px) {
    .ai-assistant { right: 14px; bottom: 14px; }
    .ai-host { width: 76px; height: 76px; }
    .ai-panel { width: calc(100vw - 24px); height: calc(100vh - 130px); right: 12px; bottom: 92px; }
    .ai-tip { right: 88px; }
}

/* ---- detail media: main image + right thumbnail rail, no overlap (202611131026-2) ---- */
.detail-media { display: flex; align-items: stretch; justify-content: flex-start; gap: 14px; padding: 14px; }
.detail-media-main { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; }
.detail-thumbs { display: flex; flex-direction: column; gap: 10px; flex: 0 0 96px; width: 96px; }
.detail-thumb { padding: 0; border: 1px solid var(--border); border-radius: 4px; background: #fff; cursor: pointer; overflow: hidden; }
.detail-thumb img { display: block; width: 100%; height: 72px; object-fit: cover; padding: 0; max-height: none; }
.detail-thumb:hover, .detail-thumb:focus-visible { border-color: var(--accent); }

/* ---- WhatsApp chat button (202611131026-3) ---- */
.btn-wa { display: inline-flex; align-items: center; gap: 8px; background: #25D366; border-color: #25D366; color: #fff; }
.btn-wa:hover { background: #1eb958; border-color: #1eb958; }
.btn-wa svg { flex: none; }

@media (max-width: 640px) {
  .detail-thumbs { flex-direction: row; width: auto; flex: none; flex-wrap: wrap; }
  .detail-thumb img { height: 56px; }
  .detail-media { flex-direction: column; }
  .detail-media-main { order: -1; }
}

/* hero WhatsApp CTA in Bray brand red (logo #E31935) */
.hero-actions .btn-wa { background: #E31935; border-color: #E31935; color: #fff; font-weight: 600; padding: 12px 26px; }
.hero-actions .btn-wa:hover { background: #C4142C; border-color: #C4142C; }

/* homepage buttons unified with Bray brand red #E31935 */
.page-home .btn-primary, .page-home .btn-ghost { background: #E31935; border-color: #E31935; color: #fff; }
.page-home .btn-primary:hover, .page-home .btn-ghost:hover { background: #C4142C; border-color: #C4142C; color: #fff; }
.page-home .btn-outline { background: transparent; border-color: #E31935; color: #E31935; }
.page-home .btn-outline:hover { background: #E31935; border-color: #E31935; color: #fff; }
.page-home .product-link { color: #E31935; }
.page-home .product-link:hover { color: #C4142C; }

/* ---- inquiry list & comparison (202611201037) ---- */
.btn-sm { padding: 7px 14px; font-size: .84rem; }
.is-disabled { opacity: .55; pointer-events: none; }
.linklike { background: none; border: none; padding: 0; color: var(--accent); font: inherit; font-size: .84rem; cursor: pointer; text-decoration: underline; }

.nav-inquiry { display: inline-flex; align-items: center; gap: 6px; }
.nav-count { background: var(--accent); color: #fff; font-size: .7rem; min-width: 18px; height: 18px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }

.flash-toast { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); z-index: 300; background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 8px; box-shadow: 0 10px 26px rgba(11,44,76,.28); font-size: .9rem; transition: opacity .3s, transform .3s; }
.flash-toast.is-hidden { opacity: 0; transform: translate(-50%, -12px); pointer-events: none; }

.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-top: 18px; }
.detail-actions form { margin: 0; }
.detail-add-cart { display: flex; gap: 10px; align-items: flex-end; }
.detail-qty { display: flex; flex-direction: column; gap: 4px; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.detail-qty input { width: 78px; padding: 9px 8px; border: 1px solid #C6D0DB; border-radius: var(--radius); font: inherit; }
.detail-cart-hint { margin-top: 8px; }

/* floating comparison bar */
.compare-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 190; background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(11,44,76,.12); padding: 10px 0; }
.compare-bar-inner { display: flex; align-items: center; gap: 16px; }
.compare-bar-items { display: flex; gap: 10px; overflow-x: auto; flex: 1; }
.compare-chip { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 6px; padding: 5px 8px; background: var(--surface); min-width: 0; }
.compare-chip img { width: 40px; height: 40px; object-fit: contain; border-radius: 4px; background: #fff; }
.compare-chip-glyph { width: 40px; height: 40px; border-radius: 4px; background: var(--steel-light); flex: none; }
.compare-chip-name { font-size: .82rem; max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compare-chip form { margin: 0; display: flex; }
.compare-chip-remove { border: none; background: none; color: var(--muted); font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 0 2px; }
.compare-chip-remove:hover { color: #B42318; }
.compare-bar-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.compare-bar-actions form { margin: 0; }
body.has-compare-bar { padding-bottom: 72px; }
body.has-compare-bar .ai-assistant { bottom: 96px; }

/* comparison page */
.compare-toolbar { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.compare-share { display: flex; gap: 8px; flex: 1; min-width: 260px; }
.compare-share-input { flex: 1; padding: 8px 10px; border: 1px solid #C6D0DB; border-radius: var(--radius); font: inherit; font-size: .82rem; color: var(--muted); }
.compare-toolbar-actions { display: flex; gap: 10px; align-items: center; }
.compare-toolbar-actions form { margin: 0; }
.compare-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.compare-grid { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 720px; font-size: .9rem; }
.compare-grid th, .compare-grid td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.compare-grid thead th { background: var(--surface); vertical-align: top; }
.compare-grid .compare-row-label { position: sticky; left: 0; z-index: 1; background: #fff; font-weight: 600; white-space: nowrap; min-width: 170px; border-right: 1px solid var(--border); }
.compare-grid thead .compare-row-label { background: var(--surface); z-index: 3; }
.compare-product-head { min-width: 220px; }
.compare-product-thumb { display: block; }
.compare-product-thumb img { width: 100%; max-width: 160px; height: 120px; object-fit: contain; background: #fff; }
.compare-product-name { display: block; font-weight: 600; color: var(--text); margin-top: 6px; }
.compare-head-actions { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.compare-head-actions form { margin: 0; }
.compare-grid tr.diff .compare-row-label { background: #FFF1D6; }
.compare-grid tr.diff td { background: #FFF7E6; }
.compare-grid tr.compare-section th { background: var(--steel-light); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); position: static; border-right: none; }

/* inquiry list page */
.cart-empty { text-align: center; padding: 56px 20px; border: 1px dashed var(--border); border-radius: 8px; background: #fff; }
.cart-empty p { color: var(--muted); margin-bottom: 20px; }
.cart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cart-head form { margin: 0; }
.cart-list { display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 120px 1fr auto auto; gap: 16px; align-items: center; border: 1px solid var(--border); border-radius: 8px; background: #fff; padding: 14px; }
.cart-thumb img { width: 120px; height: 96px; object-fit: contain; }
.cart-info h3 { font-size: 1rem; margin: 0 0 6px; }
.cart-model { font-size: .82rem; color: var(--muted); }
.cart-unavailable { color: #B42318; font-size: .8rem; margin: 6px 0 0; }
.cart-item.is-unavailable { opacity: .7; }
.cart-edit { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.cart-edit .field { gap: 4px; }
.cart-edit .field span { font-size: .72rem; color: var(--muted); }
.cart-qty input { width: 80px; }
.cart-note input { width: 220px; }
.cart-actions { display: flex; }
.cart-remove { margin: 0; }
.cart-remove-btn { border: none; background: none; color: var(--muted); font-size: 1.4rem; cursor: pointer; line-height: 1; padding: 4px 8px; }
.cart-remove-btn:hover { color: #B42318; }
.cart-footer { display: flex; justify-content: space-between; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.form-cart-summary ul { list-style: none; margin: 0 0 6px; padding: 0; font-size: .9rem; }
.form-cart-summary li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.form-cart-summary li:last-child { border-bottom: none; }
.cart-edit input[type=text], .cart-edit input[type=number] { font-family: inherit; font-size: .9rem; padding: 8px 10px; border: 1px solid #C6D0DB; border-radius: var(--radius); }

@media (max-width: 760px) {
  .cart-item { grid-template-columns: 84px 1fr; }
  .cart-thumb img { width: 84px; height: 72px; }
  .cart-edit, .cart-remove { grid-column: 1 / -1; }
  .cart-note input { width: 100%; }
  .compare-bar-inner { flex-direction: column; align-items: stretch; gap: 10px; }
  .compare-bar-actions { justify-content: flex-end; }
  body.has-compare-bar { padding-bottom: 132px; }
  body.has-compare-bar .ai-assistant { bottom: 150px; }
  .detail-actions { flex-direction: column; align-items: stretch; }
  .compare-grid .compare-row-label { min-width: 130px; }
}

@media print {
  .site-header, .topbar, .crumbs, .cta-band, .site-footer, .compare-bar, .ai-assistant, .compare-toolbar { display: none !important; }
  .compare-grid .compare-row-label { position: static; }
  body.has-compare-bar { padding-bottom: 0; }
}

/* ---- faceted product filtering (202611201051) ---- */
.filter-layout { display: grid; grid-template-columns: 240px 1fr; gap: 30px; align-items: start; }
.facet-panel { border: 1px solid var(--border); border-radius: 6px; background: #fff; padding: 16px; position: sticky; top: 16px; }
.facet-toggle { display: none; cursor: pointer; font-weight: 600; }
.facet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.facet-head a { font-size: .78rem; }
.facet-group { padding: 12px 0; border-top: 1px solid var(--border); }
.facet-group:first-of-type { border-top: none; padding-top: 0; }
.facet-title { font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 8px; }
.facet-options { display: flex; flex-direction: column; gap: 4px; max-height: 210px; overflow-y: auto; }
.facet-option { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--text); padding: 3px 0; text-decoration: none; }
.facet-option:hover { color: var(--accent); text-decoration: none; }
.facet-check { width: 14px; height: 14px; border: 1px solid #B9C4D0; border-radius: 3px; flex: none; background: #fff; position: relative; }
.facet-option.is-selected .facet-check { background: var(--accent); border-color: var(--accent); }
.facet-option.is-selected .facet-check::after { content: ""; position: absolute; left: 3px; top: 1px; width: 6px; height: 9px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(40deg); }
.facet-label { flex: 1; }
.facet-count { color: var(--muted); font-size: .76rem; }
.filter-count { font-size: .84rem; color: var(--muted); margin-bottom: 14px; }
@media (max-width: 900px) {
  .filter-layout { grid-template-columns: 1fr; }
  .facet-panel { position: static; padding: 0; border: none; }
  .facet-toggle { display: block; padding: 12px 14px; background: #fff; border: 1px solid var(--border); border-radius: 6px; list-style: none; }
  .facet-toggle::-webkit-details-marker { display: none; }
  .facet-panel .facet-body { border: 1px solid var(--border); border-top: none; border-radius: 0 0 6px 6px; padding: 14px; background: #fff; }
  .facet-panel:not([open]) .facet-body { display: none; }
}

/* ---- downloads centre (202611201051) ---- */
.dl-toolbar { margin-bottom: 16px; }
.dl-search { display: flex; gap: 8px; max-width: 520px; }
.dl-search input { flex: 1; padding: 9px 12px; border: 1px solid #C6D0DB; border-radius: var(--radius); font: inherit; }
.dl-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.dl-cat { padding: 6px 13px; border: 1px solid var(--border); border-radius: 16px; font-size: .82rem; color: var(--text); background: #fff; }
.dl-cat:hover, .dl-cat.active { background: var(--navy); border-color: var(--navy); color: #fff; text-decoration: none; }
.dl-list { display: flex; flex-direction: column; gap: 10px; }
.dl-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: start; border: 1px solid var(--border); border-radius: 6px; background: #fff; padding: 14px 16px; }
.dl-row.is-open { border-color: var(--steel); box-shadow: var(--shadow); }
.dl-file { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 6px; background: #FDECEC; color: #B42318; font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.dl-info h3 { margin: 0 0 4px; font-size: 1rem; }
.dl-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.dl-gate summary { list-style: none; cursor: pointer; }
.dl-gate summary::-webkit-details-marker { display: none; }
.dl-gate[open] { grid-column: 1 / -1; }
.dl-form { margin-top: 14px; }
.dl-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.dl-form-grid .field span { font-size: .78rem; font-weight: 600; }
.dl-form-grid input { padding: 8px 10px; border: 1px solid #C6D0DB; border-radius: var(--radius); font: inherit; }
.dl-form-actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
@media (max-width: 700px) {
  .dl-row { grid-template-columns: 40px 1fr; }
  .dl-file { width: 40px; height: 40px; }
  .dl-gate { grid-column: 1 / -1; }
  .dl-form-grid { grid-template-columns: 1fr; }
}

/* ---- printable datasheet (202611201051) ---- */
.ds-actions { background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px 0; }
.ds-actions .container { display: flex; gap: 10px; justify-content: flex-end; }
.datasheet { max-width: 900px; margin: 32px auto 48px; padding: 0 20px; }
.ds-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-bottom: 2px solid var(--navy); padding-bottom: 14px; }
.ds-brand { display: flex; gap: 12px; align-items: center; }
.ds-brand img { width: 120px; height: auto; }
.ds-brand-text strong { display: block; color: var(--navy); }
.ds-brand-text span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.ds-generated { font-size: .78rem; color: var(--muted); }
.datasheet h1 { font-size: 1.9rem; margin: 22px 0 6px; }
.ds-sub { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; margin-bottom: 20px; }
.ds-media { display: grid; grid-template-columns: 240px 1fr; gap: 22px; align-items: center; margin-bottom: 24px; }
.ds-media img { width: 100%; max-height: 200px; object-fit: contain; }
.ds-media p { margin: 0; color: #2C3745; }
.datasheet h2 { font-size: 1.15rem; margin: 26px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.ds-specs { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ds-specs th, .ds-specs td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.ds-specs th { width: 34%; background: var(--surface); font-weight: 600; }
.ds-features { padding-left: 1.2em; }
.ds-diagrams { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.ds-diagrams figure { margin: 0; border: 1px solid var(--border); border-radius: 4px; padding: 8px; background: #fff; }
.ds-diagrams img { width: 100%; height: auto; }
.ds-diagrams figcaption { font-size: .78rem; color: var(--muted); text-align: center; }
.ds-foot { display: flex; justify-content: space-between; gap: 20px; margin-top: 34px; padding-top: 14px; border-top: 2px solid var(--navy); font-size: .86rem; flex-wrap: wrap; }
.ds-contact { display: flex; flex-direction: column; gap: 2px; color: var(--muted); }

@media print {
  .no-print, .site-header, .topbar, .crumbs, .cta-band, .site-footer, .compare-bar, .ai-assistant, .flash-toast { display: none !important; }
  .datasheet { max-width: none; margin: 0; padding: 0; }
  .ds-media { grid-template-columns: 180px 1fr; }
  @page { margin: 12mm; }
}

/* ---- applications & case studies (202611201112) ---- */
.eyebrow { color: var(--steel); text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; font-weight: 600; }

.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.app-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.app-card:hover { border-color: var(--steel); box-shadow: var(--shadow); color: var(--text); text-decoration: none; }
.app-card-media { height: 186px; background: var(--surface-2); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.app-card-media img { width: 100%; height: 100%; object-fit: cover; }
.app-card-placeholder { width: 68px; height: 68px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; font-weight: 700; text-transform: uppercase; }
.app-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.app-card-body h3 { font-size: 1.06rem; margin: 0 0 6px; }
.app-card-body p { font-size: .9rem; color: var(--muted); margin: 0 0 14px; }
.app-card-meta { margin-top: auto; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-size: .82rem; font-weight: 600; color: var(--accent); }
.app-card-meta span:last-child { color: var(--muted); font-weight: 400; }

.app-hero { background: var(--navy); color: #fff; padding: 54px 0; }
.app-hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 38px; align-items: center; }
.app-hero .eyebrow { color: #F0A9B4; }
.app-hero h1 { color: #fff; margin: 8px 0 12px; }
.app-hero p { color: #C6CBD1; }
.app-hero-tagline { font-size: 1.12rem; font-weight: 600; color: #E9EBED; }
.app-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.app-hero-media img { width: 100%; border-radius: 6px; display: block; }

.section-subtitle { font-size: 1.25rem; margin: 44px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.section-subtitle:first-child { margin-top: 0; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 14px; border: 1px solid var(--border); border-radius: 16px; background: #fff; font-size: .86rem; color: var(--text); }
.chip:hover { background: var(--navy); border-color: var(--navy); color: #fff; text-decoration: none; }

.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.case-card:hover { border-color: var(--steel); box-shadow: var(--shadow); color: var(--text); text-decoration: none; }
.case-card-media { height: 178px; background: var(--steel-light); display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid var(--border); }
.case-card-media img { width: 100%; height: 100%; object-fit: cover; }
.case-card-placeholder { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: #8A939C; }
.case-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.case-card-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--steel); font-weight: 600; margin-bottom: 8px; }
.case-card-meta span:not(:first-child)::before { content: "·"; margin-right: 6px; color: #A9B4C1; }
.case-card-body h3 { font-size: 1rem; margin: 0 0 8px; }
.case-card-body p { font-size: .88rem; color: var(--muted); margin: 0 0 12px; }
.case-card-body .product-link { margin-top: auto; padding-top: 10px; }

.case-detail { padding-bottom: 64px; }
.case-detail .crumbs { background: none; border-bottom: none; padding: 14px 0 0; }
.case-detail .crumbs span { color: var(--muted); }
.case-head { max-width: 840px; margin: 24px 0 22px; }
.case-head h1 { font-size: 2.2rem; margin: 8px 0 12px; }
.case-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .84rem; color: var(--muted); margin-bottom: 12px; }
.case-meta a { color: var(--accent); font-weight: 600; }
.case-summary { font-size: 1.08rem; color: #2C3745; }
.case-cover { margin-bottom: 32px; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.case-cover img { width: 100%; max-height: 460px; object-fit: cover; }
.case-body { max-width: 840px; display: grid; gap: 26px; }
.case-body h2 { font-size: 1.2rem; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.case-cta { display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 6px; padding: 22px 24px; margin: 44px 0 4px; }
.case-cta strong { display: block; font-size: 1.05rem; }
.case-cta p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }

@media (max-width: 980px) {
  .app-hero-inner { grid-template-columns: 1fr; gap: 26px; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .app-hero { padding: 40px 0; }
  .case-grid { grid-template-columns: 1fr; }
  .case-head h1 { font-size: 1.7rem; }
  .case-cta { flex-direction: column; align-items: flex-start; }
}

/* ---- valve selector & cross-reference (202611201150) ---- */
.selector-form, .xr-form { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 24px; margin-bottom: 28px; }
.xr-grid { display: grid; grid-template-columns: 260px 1fr 160px; gap: 18px; align-items: end; }
.xr-submit button { width: 100%; }
.form-actions { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.check-row { display: flex; flex-wrap: wrap; gap: 10px 18px; padding-top: 4px; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; font-weight: 400; color: var(--text); }
.check input { width: auto; }

.selector-results { margin-top: 8px; }
.selector-narrative { background: var(--surface); border-left: 4px solid var(--steel); border-radius: 4px; padding: 16px 20px; font-size: .95rem; line-height: 1.65; color: #2C3745; margin-bottom: 22px; }
.notice-inline { background: #FFF7E8; border: 1px solid #F0D9A8; color: #7A5A12; border-radius: 4px; padding: 10px 14px; font-size: .88rem; margin: 14px 0; }

.select-card { border: 1px solid var(--border); border-radius: 8px; background: #fff; padding: 22px 24px; margin-bottom: 18px; }
.select-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.select-card-head h3 { margin: 0 0 2px; font-size: 1.15rem; }
.select-card-zh { font-size: .84rem; color: var(--muted); }
.select-score { flex: 0 0 auto; background: var(--navy); color: #fff; border-radius: 20px; padding: 5px 13px; font-size: .86rem; font-weight: 700; }
.select-reasons { margin: 12px 0 6px; padding-left: 18px; font-size: .88rem; color: #3D4854; display: grid; gap: 4px; }
.select-partial { font-size: .82rem; color: #A6430B; margin: 4px 0 0; }

.pick-list { display: grid; gap: 8px; margin-top: 14px; }
.pick-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 14px; background: var(--surface); border-radius: 4px; flex-wrap: wrap; }
.pick-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pick-name { font-weight: 600; font-size: .92rem; color: var(--text); }
.pick-model { font-size: .78rem; color: var(--muted); }
.pick-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pick-actions form { margin: 0; }

.selector-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.selector-hint { margin-top: 10px; border: 1px dashed var(--border); border-radius: 6px; padding: 18px 20px; background: #fff; }
.selector-hint strong { display: block; margin-bottom: 6px; }
.selector-hint p { color: var(--muted); font-size: .9rem; margin: 0; }

.xr-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; align-items: center; border: 1px solid var(--border); border-radius: 6px; background: #fff; padding: 16px 20px; margin-bottom: 10px; }
.xr-source { display: flex; flex-direction: column; gap: 3px; }
.xr-brand { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--steel); font-weight: 700; }
.xr-model { font-size: 1.02rem; font-weight: 600; }
.xr-notes { font-size: .82rem; color: var(--muted); }
.xr-target { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.xr-arrow { color: var(--accent); font-size: 1.1rem; }
.xr-product { display: flex; flex-direction: column; gap: 2px; }
.xr-target .pick-actions { margin-left: auto; }

.tool-note { font-size: .86rem; color: var(--muted); margin-top: 10px; }
.tool-note a { color: var(--accent); font-weight: 600; }
.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tool-card { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--border); border-radius: 8px; background: #fff; padding: 22px 24px; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.tool-card:hover { border-color: var(--steel); box-shadow: var(--shadow); text-decoration: none; color: var(--text); }
.tool-card strong { font-size: 1.08rem; }
.tool-card p { margin: 0; font-size: .9rem; color: var(--muted); }
.tool-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; }
.tool-link { margin-top: auto; padding-top: 8px; color: var(--accent); font-weight: 600; font-size: .88rem; }

.ds-score { font-size: .84rem; color: var(--accent); margin-left: 8px; }

@media (max-width: 900px) {
  .xr-grid { grid-template-columns: 1fr 1fr; }
  .xr-submit { grid-column: 1 / -1; }
  .xr-submit label { display: none; }
  .xr-row { grid-template-columns: 1fr; gap: 12px; }
  .tool-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .selector-form, .xr-form { padding: 18px; }
  .xr-grid { grid-template-columns: 1fr; }
  .select-card { padding: 18px; }
  .pick-row { align-items: flex-start; }
}

/* ---- Arabic (RTL) minimal overrides ---------------------------------
   Only the header, navigation, breadcrumbs, lists and accent borders are
   mirrored. Data tables keep their column order and horizontal scrolling. */
html[dir="rtl"] .lang-switch ul { right: auto; left: 0; }
html[dir="rtl"] .lang-switch li.active a::after { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .submenu { left: auto; right: -16px; }
html[dir="rtl"] .nav-search { margin-left: 0; margin-right: 4px; }
html[dir="rtl"] .nav-search input[type="search"] { border-radius: 0 4px 4px 0; border-right: 1px solid var(--border); border-left: none; }
html[dir="rtl"] .crumbs li + li::before { margin-right: 0; margin-left: 8px; }
html[dir="rtl"] .prose ul,
html[dir="rtl"] .feature-list,
html[dir="rtl"] .validation-summary ul,
html[dir="rtl"] .select-reasons,
html[dir="rtl"] .ds-features { padding-left: 0; padding-right: 1.2em; }
html[dir="rtl"] .case-cta { border-left: 1px solid var(--border); border-right: 4px solid var(--accent); }
html[dir="rtl"] .selector-narrative { border-left: 0; border-right: 4px solid var(--steel); }
html[dir="rtl"] .ai-tip::after { right: auto; left: -7px; border-left-color: transparent; border-right-color: #fff; }
html[dir="rtl"] .xr-target .pick-actions { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .detail-catbar .catbar-all { padding-left: 0; padding-right: 0; }
html[dir="rtl"] .form-actions { justify-content: flex-start; }

