/* ==========================================================================
   v9 · Catalog: dark head with the smart search, production showcase,
   filter column beside the grid, mobile filter drawer.
   ========================================================================== */

.site-main > .chero:first-child { margin-top: calc(-1 * var(--head-h)); }
.chero { position: relative; background: var(--dark); color: #fff; padding: calc(var(--head-h) + clamp(24px, 3vw, 44px)) 0 clamp(48px, 6vw, 84px); isolation: isolate; }
.chero::before { content: ''; position: absolute; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(60vw 60vw at 15% 120%, rgba(37, 87, 167, .5), transparent 60%), radial-gradient(40vw 40vw at 100% -20%, rgba(110, 155, 224, .18), transparent 60%); }
.chero__grid { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: clamp(24px, 3vw, 44px); }
.chero__h { margin-top: 20px; font-size: clamp(2.6rem, 6vw, 5.2rem); font-weight: 800; letter-spacing: -.04em; line-height: .98; color: #fff; }
.chero__p { margin-top: 18px; font-weight: 300; font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.6; color: rgba(255, 255, 255, .75); max-width: 62ch; }
.chero__dl { flex: none; }

/* ---------- smart search ---------- */
.ss { position: relative; margin-top: clamp(32px, 4vw, 52px); max-width: 980px; z-index: 5; }
.ss__box { position: relative; display: flex; align-items: center; gap: 8px; height: 76px; padding: 8px; padding-inline-start: 22px; border-radius: var(--pill); background: #fff; color: var(--ink); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .25); transition: box-shadow .4s var(--ease-out); }
.ss__box::before { content: ''; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; background: conic-gradient(from var(--ss-a, 0deg), #6E9BE0, #2557A7, #9CC0FF, #2557A7, #6E9BE0); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s; pointer-events: none; }
.ss:focus-within .ss__box::before, .ss.is-busy .ss__box::before { opacity: 1; animation: ss-spin 3s linear infinite; }
@property --ss-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes ss-spin { to { --ss-a: 360deg; } }
.ss__spark { display: grid; place-items: center; color: var(--accent); flex: none; }
.ss__spark .ic { animation: spark 3.2s var(--ease-io) infinite; }
@keyframes spark { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(1.18) rotate(12deg); opacity: .75; } }
.ss__input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font: inherit; font-size: clamp(1.02rem, 1.4vw, 1.2rem); font-weight: 400; color: var(--ink); }
.ss__input::placeholder { color: #8A95A8; font-weight: 300; }
.ss__input:focus { outline: none; }
.ss__input::-webkit-search-cancel-button { display: none; }
.ss__ai { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border-radius: var(--pill); border: 1px solid var(--line-strong); color: var(--ink-2); font-weight: 800; letter-spacing: .04em; transition: all .3s; }
.ss__ai[aria-pressed="true"] { background: linear-gradient(135deg, #2557A7, #6E3FD0); border-color: transparent; color: #fff; box-shadow: 0 10px 24px -12px rgba(110, 63, 208, .8); }
.ss__go { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--navy); color: #fff; flex: none; transition: transform .5s var(--ease-out), background .3s; }
.ss__go .ic-arrow { transform: scaleX(-1); }
.ss__go:hover { background: var(--accent); transform: scale(1.05); }
.ss__try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.ss__try-l { color: rgba(255, 255, 255, .6); font-weight: 600; font-size: .92rem; margin-inline-end: 4px; }
.ss__chip { padding: 8px 14px; border-radius: var(--pill); border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .05); color: rgba(255, 255, 255, .88); font-size: .92rem; font-weight: 400; transition: background .3s, border-color .3s, transform .4s var(--ease-out); }
.ss__chip:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); transform: translateY(-2px); }
.ss__hint { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: rgba(255, 255, 255, .55); font-size: .9rem; font-weight: 300; }

/* results panel */
.ss__panel { position: absolute; top: calc(76px + 12px); inset-inline: 0; background: #fff; color: var(--ink); box-shadow: 0 40px 90px -30px rgba(6, 21, 49, .55); border: 1px solid rgba(11, 27, 51, .08); padding: 10px; animation: ss-drop .45s var(--ease-out); max-height: min(70vh, 640px); overflow: auto; overscroll-behavior: contain; }
@keyframes ss-drop { from { opacity: 0; transform: translateY(-8px); } }
.ss__panel[hidden] { display: none; }
.ss__got { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.ss__got[hidden] { display: none; }
.ss__got-l { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent); font-size: .9rem; }
.ss__list { display: grid; }
.ss__item a { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 8px 10px; border-radius: 0; transition: background .2s; }
.ss__item a:hover, .ss__item.is-active a { background: var(--tint); }
.ss__thumb { width: 56px; height: 56px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.ss__thumb img { width: 100%; height: 100%; object-fit: contain; }
.ss__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ss__t strong { font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss__t small { color: var(--ink-3); font-size: .85rem; }
.ss__t mark { background: rgba(37, 87, 167, .14); color: inherit; border-radius: 2px; }
.ss__prod { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: var(--pill); background: var(--navy); color: #fff; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.ss__none { padding: 18px 14px; color: var(--ink-2); font-weight: 300; }
.ss__none[hidden], .ss__all[hidden] { display: none; }
.ss__all { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; padding: 14px; background: var(--navy); color: #fff; font-weight: 700; }
.ss__all .ic-arrow { transform: scaleX(-1); }
.ss__all:hover { background: var(--accent); }
.ss__skel { height: 72px; margin: 4px 0; background: linear-gradient(90deg, #F1F4F8 25%, #E6EBF2 50%, #F1F4F8 75%); background-size: 200% 100%; animation: skel 1.1s linear infinite; }
@keyframes skel { to { background-position: -200% 0; } }

/* understood chips (panel and results bar) */
.cgot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 22px; padding: 14px 16px; background: var(--tint); }
.cgot__l { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 700; margin-inline-end: 4px; }
.cgot__chip, .ss__got .cgot__chip { padding: 6px 12px; border-radius: var(--pill); background: #fff; border: 1px solid rgba(37, 87, 167, .2); color: var(--navy); font-weight: 600; font-size: .88rem; }
.cgot__chip--production { background: var(--navy); color: #fff; border-color: var(--navy); }
.cgot__chip--fix { background: #FFF6DE; border-color: #F0D58A; color: #6B4E00; }
.cgot__chip--ai { background: linear-gradient(135deg, #2557A7, #6E3FD0); color: #fff; border: 0; }

/* ---------- production showcase ---------- */
.prodx { padding-block: clamp(64px, 8vw, 120px) clamp(40px, 5vw, 72px); background: #fff; }
.prodx__head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 96px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.prodx__side p { color: var(--ink-2); font-weight: 300; font-size: 1.12rem; line-height: 1.6; }
.prodx__side .btn { margin-top: 24px; }
/* ---------- filters + grid ---------- */
.cat2 { padding-block: clamp(40px, 5vw, 72px) var(--section); }
.cat2__grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.cfilters { position: sticky; top: calc(var(--head-h) + 24px); display: grid; gap: 28px; max-height: calc(100vh - var(--head-h) - 48px); overflow: auto; scrollbar-width: none; padding-inline-end: 4px; }
.cfilters::-webkit-scrollbar { display: none; }
.cfilters__head { display: none; }
.cfilters__h { font-weight: 700; font-size: .78rem; letter-spacing: .12em; color: var(--ink-3); margin-bottom: 10px; }
.ptoggle { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 18px; background: linear-gradient(135deg, #0E2A5C, var(--dark)); color: #fff; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.ptoggle:hover { transform: translateY(-2px); box-shadow: 0 24px 40px -26px rgba(6, 21, 49, .8); }
.ptoggle__ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.ptoggle__text strong { display: block; font-weight: 700; line-height: 1.25; }
.ptoggle__text small { color: rgba(255, 255, 255, .62); font-size: .85rem; }
.ptoggle__sw { position: relative; width: 44px; height: 26px; border-radius: 99px; background: rgba(255, 255, 255, .22); transition: background .3s; }
.ptoggle__sw span { position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .4s var(--ease-out); }
.ptoggle.is-on .ptoggle__sw { background: #6E9BE0; }
.ptoggle.is-on .ptoggle__sw span { transform: translateX(-18px); }
.clist { display: grid; }
.clist a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 12px; margin-inline: -12px; color: var(--ink-2); font-weight: 400; border-inline-start: 2px solid transparent; transition: background .25s, color .25s, border-color .25s; }
.clist a:hover { background: var(--tint); color: var(--ink); }
.clist a.is-active { color: var(--navy); font-weight: 700; border-color: var(--accent); background: var(--tint); }
.clist small { color: var(--ink-3); font-size: .82rem; }
.facets2 { display: grid; gap: 10px; }
.facet { display: grid; gap: 6px; }
.facet span { font-weight: 600; font-size: .9rem; }
.facet select { height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); background: #fff; font: inherit; color: var(--ink); }
.cfilters__clear { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 700; }
.cbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.cbar__count { color: var(--ink-2); font-weight: 300; }
.cbar__count strong { font-weight: 800; color: var(--ink); font-size: 1.25rem; }
.cbar__count q { font-weight: 700; color: var(--ink); }
.cbar__filters { display: none; }
.cat2 .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.empty { text-align: center; padding: clamp(40px, 6vw, 80px) 20px; background: var(--tint); }
.empty__ic { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: #fff; color: var(--accent); margin-bottom: 18px; }
.empty__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
body.filters-open { overflow: hidden; }

@media (min-width: 1500px) { .cat2 .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1100px) {
	.cat2__grid { grid-template-columns: 1fr; }
	.cbar__filters { display: inline-flex; }
	.cfilters { position: fixed; inset: 0; inset-inline-end: auto; top: 0; z-index: 300; width: min(380px, 92vw); max-height: none; height: 100%; padding: 24px; background: #fff; box-shadow: 0 0 80px rgba(6, 21, 49, .35); transform: translateX(105%); transition: transform .55s var(--ease-out); visibility: hidden; }
	.cfilters.is-open { transform: none; visibility: visible; }
	.cfilters__head { display: flex; align-items: center; justify-content: space-between; }
	.cfilters__head strong { font-size: 1.3rem; font-weight: 800; }
	.cfilters__close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); }
}
@media (max-width: 820px) {
	.prodx__head, .chero__grid { grid-template-columns: 1fr; display: grid; }
	.ss__box { height: 64px; padding-inline-start: 16px; }
	.ss__go { width: 50px; height: 50px; }
	.ss__panel { top: calc(64px + 10px); }
	.cat2 .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.ss__ai span { display: none; }
	.ss__item a { grid-template-columns: 48px 1fr; }
	.ss__prod { display: none; }
	.cat2 .pgrid { gap: 10px; }
}

/* in-place navigation: results dim while the next listing loads */
.cat2__main { position: relative; transition: opacity .35s var(--ease-out), filter .35s; }
.cat2.is-loading .cat2__main { opacity: .35; filter: saturate(.6); pointer-events: none; }
.cat2.is-loading .cbar::after { content: ''; position: absolute; inset-inline: 0; top: -2px; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: cat-load 1s linear infinite; }
.cbar { position: relative; }
@keyframes cat-load { from { background-position: -50% 0; } to { background-position: 150% 0; } }
.cat2.is-loading .clist a.is-active { background: var(--tint); }
