/* West Industrial Supply — site styles
   Design cues taken from the Wix "3D Printing Company (Promising)" template, applied to WIS:
   warm stone background with tan panels and near-black ink; quiet light-weight grotesk type (Geist);
   big thin numerals (Stack Sans Notch); floating pill navigation; tall numbered cards; frosted-glass CTA;
   underline form fields; minimal cream footer. WIS logo cyan is a small accent only.
   Kept clearly different from the manufacturer's site (dark charcoal, all-caps heavy headings, navy buttons). */
:root {
  --stone: #e7e4d9;        /* page */
  --tan: #dbd6c6;          /* panels */
  --tan-2: #cfc9b6;        /* hover / deeper panel */
  --cream: #f2f0e8;        /* raised surfaces */
  --ink: #12100b;          /* near-black */
  --ink-2: #3b3830;
  --muted: #6e6a5e;
  --line: rgba(18, 16, 11, .14);
  --line-2: rgba(18, 16, 11, .24);
  --cyan: #00a6f0;         /* WIS logo accent */
  --cyan-ink: #00739f;
  --ok: #2f7d4f;
  --r: 6px;                /* panels */
  --pill: 999px;
  --maxw: 1240px;
  --text: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --num: "Stack Sans Notch", "Geist", sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--text); font-weight: 400; color: var(--ink); background: var(--stone); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--text); font-weight: 400; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.1rem; font-weight: 500; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.num { font-family: var(--num); font-weight: 300; line-height: 1; letter-spacing: -.01em; }
.eyebrow { display: inline-flex; align-items: center; gap: .5em; font-size: .78rem; font-weight: 500; color: var(--ink-2); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Buttons: pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 500 .86rem/1 var(--text); padding: .85em 1.35em; border-radius: var(--pill); border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; text-decoration: none !important; white-space: nowrap; }
.btn-primary, .btn-dark { background: var(--ink); color: var(--stone); }
.btn-primary:hover, .btn-dark:hover { background: #2b2820; color: #fff; }
.btn-tan { background: var(--tan); color: var(--ink); }
.btn-tan:hover { background: var(--tan-2); }
.btn-ghost, .btn-outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover, .btn-outline:hover { border-color: var(--ink); background: rgba(18,16,11,.04); }
.btn-sm { padding: .62em 1em; font-size: .8rem; }
.btn.added { background: var(--ok); color: #fff; border-color: var(--ok); }

/* Header: floating pills */
.site-header { position: sticky; top: 0; z-index: 50; padding: 18px 0; background: linear-gradient(var(--stone) 45%, rgba(231,228,217,.92) 62%, rgba(231,228,217,.75) 80%, rgba(231,228,217,.45)); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 32px; pointer-events: none; background: linear-gradient(rgba(231,228,217,.45), rgba(231,228,217,.2) 45%, rgba(231,228,217,0)); }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none !important; margin-right: .6rem; }
.brand img { width: 30px; height: 30px; border-radius: 4px; }
.brand-name { font-weight: 500; font-size: .95rem; letter-spacing: -.01em; line-height: 1.1; }
.brand-name small { display: none; }
.nav { display: flex; align-items: center; gap: 2px; background: var(--ink); border-radius: var(--pill); padding: 4px; }
.nav a { color: var(--stone); font-size: .82rem; padding: .5rem .95rem; border-radius: var(--pill); text-decoration: none; transition: background .2s; }
.nav a:hover { background: rgba(231,228,217,.12); }
.nav a[aria-current="page"] { background: var(--stone); color: var(--ink); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: .8rem; }
.header-phone { font-size: .82rem; color: var(--ink-2); text-decoration: none; }
.quote-link { position: relative; background: var(--tan); color: var(--ink); border-radius: var(--pill); padding: .62rem 1.1rem; font-size: .82rem; font-weight: 500; text-decoration: none !important; transition: background .2s; }
.quote-link:hover { background: var(--tan-2); }
.quote-link[aria-current="page"] { background: var(--ink); color: var(--stone); }
.quote-count { position: absolute; top: -6px; right: -6px; background: var(--cyan); color: #fff; font: 600 .66rem var(--text); min-width: 18px; height: 18px; border-radius: 9px; display: none; align-items: center; justify-content: center; padding: 0 5px; }
.quote-count.show { display: inline-flex; }
.menu-toggle { display: none; background: var(--ink); border: 0; border-radius: var(--pill); padding: .55rem .9rem; cursor: pointer; }
.menu-toggle span { display: block; width: 16px; height: 1.5px; background: var(--stone); margin: 3px 0; }

/* Panels */
.tan { background: var(--tan); border-radius: var(--r); }

/* Home hero: split panels */
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 8px; padding-bottom: 16px; }
.hero-text { background: var(--tan); border-radius: var(--r); padding: 2.4rem; min-height: min(78vh, 680px); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.hero-text h1 { max-width: 12em; }
.hero-text .lead { font-size: 1.02rem; color: var(--ink-2); max-width: 30em; }
.hero-foot { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; }
.hero-foot .mark { width: 46px; height: 46px; border-radius: 4px; flex: none; }
.hero-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.2rem; }
.hero-media { position: relative; border-radius: var(--r); overflow: hidden; background: radial-gradient(120% 80% at 50% 40%, #f1eee5 0%, var(--tan) 70%); min-height: min(78vh, 680px); display: flex; align-items: center; justify-content: center; }
.hero-media img { height: 66%; max-height: 385px; width: auto; margin-bottom: 4.5rem; filter: drop-shadow(0 30px 40px rgba(18,16,11,.25)); }
.hero-media .num { position: absolute; top: 1.6rem; left: 1.8rem; font-size: 3.4rem; }
.hero-media .caption { position: absolute; left: 1.8rem; bottom: 1.6rem; max-width: 18em; font-size: .8rem; color: var(--ink-2); }
.hero-media .caption strong { display: block; color: var(--ink); font-weight: 500; font-size: .86rem; }

/* Sections */
.section { padding: 5.5rem 0; }
.section-alt, .section-dark { background: transparent; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; margin-bottom: 2.4rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); max-width: 32em; font-size: .95rem; justify-self: end; }

/* Numbered category cards (tall, staggered) */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
/* Numbered category cards: three stacked zones (number / photo / label), so the photo never covers the text */
.cat-tile { background: var(--tan); border-radius: var(--r); aspect-ratio: 3 / 4; padding: 1.3rem; display: flex; flex-direction: column; overflow: hidden; color: var(--ink); text-decoration: none !important; transition: background .25s; }
.cat-tile:hover { background: var(--tan-2); }
.cat-tile .idx { font-family: var(--num); font-weight: 300; font-size: 3.2rem; line-height: 1; }
.cat-tile .art { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: .9rem 0; }
.cat-tile .art img { max-height: 100%; max-width: 78%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 16px 20px rgba(18,16,11,.22)); transition: transform .4s; }
.cat-tile:hover .art img { transform: translateY(-5px); }
/* Wide photos (e.g. turning holders): show the working end only, cropped in a fixed frame */
.cat-tile .art.crop { position: relative; display: block; overflow: hidden; margin: .9rem -1.3rem .9rem -.2rem; padding: 0; border-radius: 4px; }
.cat-tile .art.crop img { position: absolute; left: 0; top: 50%; width: 175%; height: auto; max-width: none; max-height: none; transform: translateY(-46%); filter: none; }
.cat-tile:hover .art.crop img { transform: translateY(-48%); }
.cat-tile h3 { font-size: .95rem; margin: 0 0 .2rem; }
.cat-tile .count { font-size: .78rem; color: var(--ink-2); }

/* Stats band */
.stats { background: var(--tan); border-radius: var(--r); padding: 3rem 2.4rem; }
.stats h2 { font-size: 1.4rem; margin-bottom: .3rem; }
.stats .sub { color: var(--muted); font-size: .9rem; margin-bottom: 2.4rem; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stats-row .num { font-size: clamp(2.6rem, 5vw, 4.2rem); display: block; margin-bottom: .6rem; }
.stats-row span:last-child { font-size: .82rem; color: var(--ink-2); display: block; max-width: 14em; }

/* Generic cards & lists */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--tan); border-radius: var(--r); padding: 1.6rem; }
.step-card { min-height: 290px; display: flex; flex-direction: column; justify-content: space-between; }
.step-num { font-family: var(--num); font-weight: 300; font-size: 3.2rem; line-height: 1; }
.step-card h3 { margin-bottom: .35rem; }
.step-card p { font-size: .88rem; color: var(--ink-2); margin: 0; }
.icon-dot { width: 38px; height: 38px; border-radius: 50%; background: var(--cream); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.icon-dot svg { width: 18px; height: 18px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 1.2rem 0 0; border-top: 1px solid var(--line); }
.check-list li { padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-flex; align-items: center; gap: .4em; background: var(--cream); color: var(--ink-2); border-radius: var(--pill); padding: .38em .85em; font-size: .78rem; }

/* Frosted CTA */
.cta-band { position: relative; border-radius: var(--r); overflow: hidden; min-height: 380px; display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; background: radial-gradient(90% 120% at 30% 40%, #f3efe4, var(--tan-2)); }
.cta-band .bg { position: absolute; inset: 0; display: flex; justify-content: space-around; align-items: center; opacity: .9; }
/* Tool photos are 385px tall at most; never enlarge past that, or they go soft */
.cta-band .bg img { height: 100%; max-height: 385px; width: auto; transform: rotate(-18deg); filter: drop-shadow(0 20px 26px rgba(18,16,11,.22)); }
.drawing-panel img { width: auto; max-width: 100%; max-height: 420px; margin: 0 auto; background: #fff; border-radius: 4px; display: block; }
.drawing-panel { overflow: hidden; }
.cta-glass { position: relative; text-align: center; max-width: 520px; padding: 2rem 2.2rem; border-radius: var(--r); background: rgba(231,228,217,.55); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); border: 1px solid rgba(255,255,255,.4); }
.cta-glass h2 { font-size: 1.6rem; margin-bottom: .5rem; }
.cta-glass p { font-size: .9rem; color: var(--ink-2); }

/* Page head (inner pages) */
.page-head { padding: 2.4rem 0 1.6rem; }
.page-head h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem) !important; margin-bottom: .4rem; }
.page-head p { color: var(--ink-2); max-width: 42em; margin: 0; font-size: .98rem; }
.crumbs { font-size: .78rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--ink-2); }

/* Catalog */
.catalog-layout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; padding-top: .5rem; padding-bottom: 4.5rem; align-items: start; }
.catalog-layout > main, .detail > *, .quote-layout > * { min-width: 0; }
.filters { position: sticky; top: 84px; background: var(--tan); border-radius: var(--r); padding: 1.1rem; max-height: calc(100vh - 100px); overflow: auto; }
.filters h4 { font-size: .72rem; font-weight: 500; color: var(--muted); margin: 1.3rem 0 .5rem; letter-spacing: .02em; }
.filters h4:first-child { margin-top: 0; }
.filter-list { list-style: none; margin: 0; padding: 0; }
.filter-list button { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: 0; padding: .42rem .7rem; border-radius: var(--pill); font: 400 .86rem var(--text); color: var(--ink); cursor: pointer; text-align: left; }
.filter-list button:hover { background: rgba(18,16,11,.06); }
.filter-list button.active { background: var(--ink); color: var(--stone); }
.filter-list .n { font-size: .72rem; color: var(--muted); }
.filter-list button.active .n { color: var(--tan); }
.mat-grid { display: flex; flex-direction: column; gap: 2px; }
.mat-btn { border: 0; background: none; padding: .42rem .7rem; font: 400 .86rem var(--text); cursor: pointer; display: flex; align-items: center; gap: .55rem; color: var(--ink); text-align: left; border-radius: var(--pill); }
.mat-btn::before { content: ""; width: 13px; height: 13px; border: 1px solid var(--ink-2); border-radius: 50%; flex: none; }
.mat-btn:hover { background: rgba(18,16,11,.06); }
.mat-btn.active::before { background: var(--ink); box-shadow: inset 0 0 0 2.5px var(--tan); }
.iso { display: inline-flex; align-items: center; gap: .3em; font: 500 .68rem var(--mono); color: var(--ink-2); background: var(--cream); border-radius: var(--pill); padding: .15em .5em .15em .4em; }
.iso::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c, #999); }
.iso-P { --c: #2f6fd0; } .iso-M { --c: #d6a800; } .iso-K { --c: #c8412f; }
.iso-N { --c: #2e9c5c; } .iso-S { --c: #c9731a; } .iso-H { --c: #7b7a74; }
.toolbar { display: flex; gap: .6rem; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; }
.search { flex: 1; min-width: 220px; position: relative; }
.search input { width: 100%; padding: .78rem 1rem .78rem 2.5rem; border: 0; border-radius: var(--pill); font: 400 .9rem var(--text); background: var(--cream); color: var(--ink); }
.search input:focus, select:focus, .field input:focus, .field textarea:focus, .field select:focus, .qty-row input:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
.search svg { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); width: 16px; color: var(--muted); }
select { padding: .76rem 1rem; border: 0; border-radius: var(--pill); font: 400 .86rem var(--text); background: var(--cream); color: var(--ink); }
.result-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
.result-meta strong { color: var(--ink); font-weight: 500; }
.active-filters { display: flex; gap: .4rem; flex-wrap: wrap; }
.active-filters button { border: 0; background: var(--ink); color: var(--stone); border-radius: var(--pill); padding: .3em .8em; font: 400 .74rem var(--text); cursor: pointer; }
.cat-tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 1rem; scrollbar-width: none; background: var(--tan); padding: 4px; border-radius: var(--pill); }
.cat-tabs button { flex: none; border: 0; background: none; border-radius: var(--pill); padding: .5rem .9rem; font: 400 .82rem var(--text); cursor: pointer; color: var(--ink); }
.cat-tabs button:hover { background: rgba(18,16,11,.06); }
.cat-tabs button .muted { font-size: .72rem; }
.cat-tabs button.active { background: var(--ink); color: var(--stone); }
.cat-tabs button.active .muted { color: var(--tan); }
.cat-intro { font-size: .9rem; color: var(--ink-2); margin: 0 0 1.1rem; max-width: 60em; }

/* Product cards: tall, image on tan panel, details below */
.series-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px 14px; }
.s-card { display: flex; flex-direction: column; }
.s-card .img { position: relative; aspect-ratio: 4 / 5; background: var(--tan); border-radius: var(--r); display: flex; align-items: center; justify-content: center; overflow: hidden; transition: background .25s; }
.s-card:hover .img { background: var(--tan-2); }
.s-card .img img { height: 84%; width: auto; filter: drop-shadow(0 14px 18px rgba(18,16,11,.2)); transition: transform .4s; }
.s-card:hover .img img { transform: translateY(-6px); }
.s-card .body { padding: .85rem .2rem 0; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.s-card .type { font-size: .72rem; color: var(--muted); }
.s-card h3 { font-family: var(--num); font-weight: 300; font-size: 1.55rem; letter-spacing: -.01em; margin: 0; line-height: 1.05; }
.s-card h3 a { text-decoration: none; }
.s-card .desc { font-size: .86rem; margin: 0; color: var(--ink-2); }
.s-card .spec { font: 400 .7rem var(--mono); color: var(--muted); margin: 0; }
.s-card .isos { display: flex; gap: 3px; flex-wrap: wrap; margin-top: auto; padding-top: .45rem; }
.s-card .actions { display: flex; gap: .4rem; margin-top: .7rem; }
.s-card .actions .btn { flex: 1; }
.empty { text-align: center; padding: 4rem 1rem; background: var(--tan); border-radius: var(--r); color: var(--ink-2); }
.load-more { display: flex; justify-content: center; margin-top: 2rem; }

/* Series detail */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: .5rem; padding-bottom: 4rem; align-items: start; }
.detail-img { position: sticky; top: 84px; background: radial-gradient(120% 80% at 50% 40%, #f1eee5 0%, var(--tan) 70%); border-radius: var(--r); display: flex; align-items: center; justify-content: center; min-height: min(78vh, 640px); padding: 2rem; }
.detail-img img { height: 80%; max-height: 385px; width: auto; filter: drop-shadow(0 26px 34px rgba(18,16,11,.25)); }
.detail-info { padding: 1rem 0 0 1.4rem; }
.detail .spec-line { font: 400 .78rem var(--mono); color: var(--ink-2); margin-bottom: .8rem; }
.detail h1 { font-family: var(--num); font-weight: 300; font-size: clamp(2.6rem, 5vw, 4rem); letter-spacing: -.02em; margin-bottom: .25em; }
.detail .headline { font-size: 1.05rem; color: var(--ink-2); }
.panel { background: var(--tan); border-radius: var(--r); padding: 1.3rem 1.4rem; margin-top: 12px; }
.panel h3 { font-size: .74rem; font-weight: 500; color: var(--muted); letter-spacing: .02em; margin-bottom: .8rem; }
.overview { list-style: none; padding: 0; margin: 0; }
.overview li { padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.overview li:last-child { border-bottom: 0; }
.qty-row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.qty-row input { width: 84px; padding: .72rem 1rem; border: 0; border-radius: var(--pill); font: 500 .95rem var(--text); background: var(--cream); }
.related { padding: 2rem 0 4.5rem; }
.related h2 { font-size: 1.5rem !important; }

/* Quote */
.quote-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; padding-top: .5rem; padding-bottom: 4.5rem; align-items: start; }
.quote-layout > .card { padding: 1.8rem; }
.quote-layout h3 { font-size: .8rem !important; font-weight: 500 !important; color: var(--muted); text-transform: none !important; }
.q-item { display: grid; grid-template-columns: 54px 1fr 80px 32px; gap: .8rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.q-item img { height: 64px; width: auto; margin: auto; }
.q-item input { width: 100%; padding: .45rem .1rem; border: 0; border-bottom: 1px solid var(--line-2); background: transparent; font: 400 .88rem var(--text); border-radius: 0; }
.q-item input[type=number] { text-align: center; font-weight: 500; }
.q-item .rm { background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 1.3rem; }
.q-item .rm:hover { color: #b03a2e; }
/* Underline fields, like the template's newsletter form */
.field { display: flex; flex-direction: column; gap: .2rem; margin-bottom: 1.1rem; }
.field label { font-size: .76rem; color: var(--ink-2); }
.field input, .field textarea, .field select { padding: .55rem 0; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; font: 400 .95rem var(--text); background: transparent; color: var(--ink); }
.field select { border-radius: 0; }
.field textarea { min-height: 110px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.notice { background: var(--cream); border-radius: var(--r); padding: .9rem 1rem; font-size: .86rem; color: var(--ink-2); }

/* Footer: minimal cream */
.site-footer { background: var(--stone); color: var(--ink-2); padding: 4rem 0 2rem; font-size: .84rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { font-size: .74rem; font-weight: 500; color: var(--ink); margin-bottom: .9rem; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .brand { margin-bottom: 1rem; }
.site-footer p { max-width: 26em; }
.legal { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .74rem; color: var(--muted); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 160%); background: var(--ink); color: var(--stone); padding: .8rem 1.2rem; border-radius: var(--pill); font-size: .86rem; z-index: 100; transition: transform .3s; display: flex; gap: 1rem; align-items: center; box-shadow: 0 10px 30px rgba(18,16,11,.25); }
.toast.show { transform: translate(-50%, 0); }
.toast a { color: var(--tan); font-weight: 500; }

/* Sizes & part numbers (series pages) */
.sizes { padding: .5rem 0 3rem; scroll-margin-top: 90px; }
.sizes-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: .4rem; }
.sizes h2 { font-family: var(--num); font-weight: 300; font-size: clamp(1.9rem, 3.6vw, 2.6rem); letter-spacing: -.01em; margin-bottom: .2em; }
.sizes-head p { margin: 0; font-size: .92rem; }
.sizes-filter { flex: 0 1 320px; }
.size-table { background: var(--tan); border-radius: var(--r); padding: 1.1rem 1.2rem .8rem; margin-top: 12px; }
[hidden] { display: none !important; }   /* so the hidden attribute wins over display rules like .load-more */
.size-table h3 { font: 400 .8rem var(--mono); color: var(--ink-2); margin-bottom: .6rem; }
.size-table h3 span { color: var(--muted); margin-left: .6rem; }
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.size-table table { border-collapse: collapse; width: 100%; font: 400 .84rem var(--mono); white-space: nowrap; }
.size-table th { text-align: left; font: 500 .74rem var(--text); color: var(--muted); padding: .45rem .7rem; border-bottom: 1px solid var(--line-2); }
.size-table td { padding: .28rem .7rem; border-bottom: 1px solid var(--line); }
.size-table tbody tr:last-child td { border-bottom: 0; }
.size-table tbody tr:hover td { background: rgba(242, 240, 232, .45); }
.size-table td.na { color: var(--muted); }
.size-table tr.hit td { background: rgba(0, 166, 240, .16); }
.pn-btn { display: inline-flex; align-items: center; gap: .45rem; font: 500 .84rem var(--mono); color: var(--ink); background: var(--cream); border: 0; border-radius: var(--pill); padding: .22rem .7rem; cursor: pointer; }
.pn-btn span { color: var(--cyan-ink); font-weight: 600; }
.pn-btn:hover, .pn-btn:focus-visible { background: var(--ink); color: var(--cream); }
.pn-btn:hover span, .pn-btn:focus-visible span { color: var(--cyan); }
.pn-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
.pn-btn.hit { box-shadow: 0 0 0 2px var(--cyan); }
.pn-btn.added { background: var(--ok); color: #fff; }
.sizes-note { font-size: .82rem; margin: 1rem 0 0; max-width: 70ch; }
.q-size { font: 400 .76rem var(--mono); color: var(--ink-2); margin-top: .2rem; }

/* Part-number matches (catalog search) */
.pn-results { background: var(--cream); border-radius: var(--r); padding: 1rem 1.2rem .6rem; margin-bottom: 16px; }
.pn-results h3 { font-size: .74rem; font-weight: 500; color: var(--muted); margin-bottom: .4rem; }
.pn-hit { display: grid; grid-template-columns: minmax(110px, auto) 1fr auto; gap: .9rem; align-items: center; padding: .6rem 0; border-top: 1px solid var(--line); }
.pn-hit .pn-no { font: 500 .95rem var(--mono); color: var(--ink); }
.pn-hit a { color: inherit; }
.pn-more { margin: .6rem 0 .2rem; font-size: .85rem; }
.pn-sub { margin: 0 0 .6rem; font-size: .9rem; color: var(--ink-2); }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: .6rem; }
.suggest button { font: 500 .88rem var(--text); color: var(--ink); background: var(--tan); border: 0; border-radius: var(--pill); padding: .45rem .9rem; cursor: pointer; }
.suggest button span { color: var(--muted); font-weight: 400; margin-left: .35rem; }
.suggest button:hover, .suggest button:focus-visible { background: var(--ink); color: var(--cream); }
.suggest button:hover span, .suggest button:focus-visible span { color: var(--cream); opacity: .7; }
.active-filters .understood { background: var(--ink); color: var(--cream); }
.notice.ok { border-left: 3px solid var(--cyan); color: var(--ink); }
.notice.err { border-left: 3px solid #b3261e; color: var(--ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
button[disabled] { opacity: .6; cursor: default; }
.smart-note { font-size: .86rem; color: var(--ink-2); margin: -.2rem 0 .8rem; }
@media (max-width: 560px) {
  .pn-hit { grid-template-columns: 1fr auto; }
  .pn-hit > div { grid-column: 1 / -1; grid-row: 2; }
  .sizes-filter { flex: 1 1 100%; }
}

/* Reveal (content always visible; animation is an extra) */
.reveal.in { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal.in { animation: none; } * { scroll-behavior: auto !important; } }

/* Responsive */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); row-gap: 2.2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-phone { display: none; }
}
@media (max-width: 880px) {
  .hero .wrap, .split, .detail, .quote-layout, .catalog-layout, .section-head { grid-template-columns: 1fr; }
  .section-head p { justify-self: start; }
  .hero-text, .hero-media { min-height: 0; }
  .hero-media { aspect-ratio: 4 / 3; }
  .filters { position: static; max-height: none; }
  .detail-img { position: static; min-height: 0; aspect-ratio: 4 / 4; }
  .detail-info { padding: .8rem 0 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .step-card { min-height: 0; gap: 2rem; }
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 28px; right: 28px; flex-direction: column; align-items: stretch; border-radius: 18px; padding: 8px; }
  .nav.open { display: flex; }
  .nav a { padding: .75rem 1rem; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav { left: 16px; right: 16px; }
  .hero-text { padding: 1.6rem; }
  .cat-grid { gap: 10px; }
  .cat-tile { padding: 1rem; }
  .cat-tile .idx { font-size: 2.4rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .section { padding: 3.8rem 0; }
  .stats { padding: 2.2rem 1.4rem; }
  .q-item { grid-template-columns: 44px 1fr 60px 28px; }
  .quote-link { padding: .55rem .9rem; white-space: nowrap; }
}
@media (max-width: 430px) {
  .brand-name { display: none; }
}

/* Plain link lists on generated category and series pages (tools/build-pages.js) */
.series-index-wrap { padding-top: 2rem; }
.series-index-wrap h3 { margin: 1.6rem 0 .5rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; }
.series-index { list-style: none; margin: 0; padding: 0; columns: 2 22rem; column-gap: 2rem; font-size: .92rem; }
.series-index li { break-inside: avoid; padding: .3rem 0; border-bottom: 1px solid var(--line, #e5e5e5); }
.series-index .muted { font-size: .85rem; }
