/* ==========================================================================
   ISIS Fluid Control — Base CSS (Webflow-free foundation)
   Generated 2026-09-16 by Webshape Design. Theme copy for isisfluids-v2 (Manrope self-hosted).

   Purpose: replaces normalize.css + components.css + the Webflow utility
   layer (.w-*) with one self-sufficient foundation. Existing block class
   names (.body-section, .body-container, .title-holder, .button-holder,
   .columns/.column, .main-button) are kept so current templates keep
   working while they are migrated.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Fonts
   Manrope is the only typeface: one self-hosted variable WOFF2 (weights 200–800),
   preloaded in header.php. No third-party font services (v1's Typekit halcom
   was dropped in v2).
   -------------------------------------------------------------------------- */
/* Manrope variable font (weights 200–800), self-hosted. SIL Open Font Licence: fonts/OFL.txt */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('../fonts/manrope-variable.woff2') format('woff2'); }

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* === Brand (carried over from isisfluids.css :root, renamed) === */
  --isis-white: #efefef;
  --text: #000614;
  --dark-blue: #011441;
  --isis-grey: #83a7ab;
  --brand-blue: #054180;
  --brand-green: #21894a;
  --brand-brown: #54143f;
  --brand-cyan: #008299;
  --engineering: #e1a138;
  --light: #f3f7ff;

  /* === Semantic colour tokens (use these in new CSS) === */
  --color-dark: var(--dark-blue);
  --color-dark-lighter: #0a2358;
  --color-primary: var(--brand-blue);
  --color-primary-dark: #033161;
  --color-primary-rgb: 5, 65, 128;
  --color-accent: var(--brand-cyan);
  --color-accent-dark: #006b7e;
  --color-success: var(--brand-green);
  --color-warning: var(--engineering);
  --color-danger: #b42318;
  --color-tertiary: var(--brand-brown);
  --color-secondary: var(--isis-grey);
  --color-light: var(--light);
  --color-light-alt: #e8eef8;
  --color-page: #f7f9fc;
  --color-white: #ffffff;
  --color-text: var(--text);
  --color-text-muted: #4a5568;
  --color-border: #d9e1ec;
  --color-border-strong: #b9c6d8;
  --color-overlay: rgba(1, 20, 65, 0.6);

  /* === Typography === */
  --font-primary: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --text-base: 1rem;           /* 16px — down from 18px on the current site */
  --text-sm: 0.875rem;
  --text-xs: 0.78rem;
  --leading: 1.6;

  /* === Spacing === */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  /* === Shadows === */
  --shadow-sm: 0 1px 2px rgba(1, 20, 65, 0.06);
  --shadow-md: 0 4px 8px rgba(1, 20, 65, 0.06), 0 2px 4px rgba(1, 20, 65, 0.04);
  --shadow-lg: 0 12px 24px rgba(1, 20, 65, 0.10), 0 4px 8px rgba(1, 20, 65, 0.05);
  --shadow-xl: 0 24px 48px rgba(1, 20, 65, 0.14), 0 8px 16px rgba(1, 20, 65, 0.06);
  --shadow-card: 0 1px 2px rgba(1, 20, 65, 0.04);
  --shadow-card-hover: 0 10px 24px rgba(1, 20, 65, 0.12);

  /* === Transitions === */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 450ms ease;

  /* === Container === */
  --container-max: 1280px;
  --container-wide: 1440px;
  --container-narrow: 860px;
  --container-padding: 1.5rem;

  /* === Design profile: "Industrial Catalogue" (custom) === */
  /* shape: soft-small | cards: bordered | transitions: clean | decoration: division-stripe
     spacing: compact | images: product-cutout | hover: lift (subtle)                     */
  --profile-radius-sm: 6px;
  --profile-radius-md: 10px;
  --profile-radius-lg: 16px;
  --profile-radius-pill: 999px;
  --profile-button-radius: 8px;

  --profile-card-border: 1px solid var(--color-border);
  --profile-card-shadow: var(--shadow-card);
  --profile-card-bg: var(--color-white);
  --profile-card-hover-shadow: var(--shadow-card-hover);
  --profile-card-hover-lift: -3px;
  --profile-card-hover-border: var(--color-border-strong);

  --profile-section-transition: clean;
  --profile-section-gap: 0;

  --profile-decoration: division-stripe;
  --profile-decoration-opacity: 1;

  --profile-space-multiplier: 0.85;
  --profile-section-padding: calc(var(--space-3xl) * var(--profile-space-multiplier));
  --profile-container-max: var(--container-max);

  --profile-image-radius: var(--profile-radius-md);
  --profile-image-aspect: 4 / 3;
  --profile-image-bg: var(--color-white);
  --profile-image-padding: 12%;
  --profile-image-filter: none;

  --profile-hover-shadow: var(--shadow-card-hover);
  --profile-hover-transform: translateY(-3px);
  --profile-hover-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Aliases */
  --border-radius-sm: var(--profile-radius-sm);
  --border-radius-md: var(--profile-radius-md);
  --border-radius-lg: var(--profile-radius-lg);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-page);
  color: var(--color-text);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-dark); }
ul, ol { margin: 0 0 var(--space-sm); padding-left: 1.25rem; }
hr { border: 0; border-top: 1px solid var(--color-border); margin: var(--space-lg) 0; }
:focus-visible { outline: 3px solid rgba(var(--color-primary-rgb), 0.35); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 {
  margin: 0 0 0.5em;
  color: var(--color-dark);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}
h1, .h1 { font-size: clamp(2.1rem, 1.5rem + 2vw, 3.25rem); letter-spacing: -0.02em; line-height: 1.08; }
h2, .h2 { font-size: clamp(1.65rem, 1.3rem + 1.2vw, 2.25rem); letter-spacing: -0.01em; }
h3, .h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); line-height: 1.3; }
h4, .h4 { font-size: 1.125rem; line-height: 1.4; }
h5, .h5 { font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-secondary); }
p { margin: 0 0 var(--space-sm); }
p:last-child { margin-bottom: 0; }
.lead { font-size: 1.125rem; color: var(--color-text-muted); }
.small, small { font-size: var(--text-sm); }
.muted { color: var(--color-text-muted); }
.pre-title, .small-title {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.text-highlight { font-size: 1.125rem; font-weight: 700; color: var(--color-dark); }
.text-content > * + * { margin-top: var(--space-sm); }
.text-content ul li { margin-bottom: 0.35rem; }
.text-restrict { max-width: 720px; margin: 0 auto; }
.text-restrict.left { margin-left: 0; }
.mono { font-family: var(--font-mono); font-size: 0.9em; }

/* Dark sections */
.body-section.dark, .body-section.dark h1, .body-section.dark h2, .body-section.dark h3, .body-section.dark h4 { color: var(--color-white); }
.body-section.dark .muted, .body-section.dark .lead { color: rgba(255, 255, 255, 0.72); }
.body-section.dark a:not(.main-button) { color: var(--color-white); }
.body-section.dark a:not(.main-button):hover { color: var(--isis-grey); }
.body-section.dark .pre-title { color: var(--isis-grey); }

/* --------------------------------------------------------------------------
   4. Layout: sections, containers, grids
   -------------------------------------------------------------------------- */
.body-section {
  position: relative;
  padding: var(--profile-section-padding) 0;
  background: var(--color-white);
  color: var(--color-text);
}
.body-section.light { background: var(--color-light); }
.body-section.grey { background: var(--isis-white); }
.body-section.page { background: var(--color-page); }
.body-section.dark { background: var(--color-dark); }
.body-section.blue { background: var(--color-primary); color: var(--color-white); }
.body-section.blue h1, .body-section.blue h2, .body-section.blue h3 { color: var(--color-white); }
.body-section.slim { padding: calc(var(--profile-section-padding) * 0.5) 0; }
.body-section.flush { padding: 0; }

.body-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--profile-container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}
.body-container.wide { max-width: var(--container-wide); }
.body-container.narrow { max-width: var(--container-narrow); }

.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl); align-items: center; }
.columns.reverse .column:first-child { order: 2; }
.columns.top { align-items: start; }
.grid { display: grid; gap: var(--space-md); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flex { display: flex; gap: var(--space-sm); align-items: center; flex-wrap: wrap; }
.flex.between { justify-content: space-between; }
.stack > * + * { margin-top: var(--space-sm); }

/* Division stripe — the four-colour brand motif used as the profile decoration */
.division-stripe { display: flex; height: 6px; width: 100%; overflow: hidden; border-radius: var(--profile-radius-pill); }
.division-stripe span { flex: 1; }
.division-stripe span:nth-child(1) { background: var(--brand-blue); }
.division-stripe span:nth-child(2) { background: var(--brand-green); }
.division-stripe span:nth-child(3) { background: var(--brand-brown); }
.division-stripe span:nth-child(4) { background: var(--brand-cyan); }
.division-stripe.vertical { flex-direction: column; width: 6px; height: 100%; }

/* Background image sections */
.background-image { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.background-overlay { position: absolute; inset: 0; z-index: 1; background: var(--color-overlay); }

/* Title holder */
.title-holder { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: var(--space-lg); }
.title-holder.left { align-items: flex-start; text-align: left; }
.title-holder h1, .title-holder h2, .title-holder .text-title { margin-bottom: 0.25rem; }
.text-title { font-size: clamp(1.65rem, 1.3rem + 1.2vw, 2.25rem); font-weight: 700; color: var(--color-dark); line-height: 1.15; }
.title-border { width: 56px; height: 4px; margin-top: 0.85rem; border-radius: 2px; background: var(--color-accent); }
.title-holder .division-stripe { width: 96px; margin-top: 0.85rem; height: 4px; }

/* --------------------------------------------------------------------------
   5. Buttons & badges
   -------------------------------------------------------------------------- */
.button-holder { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; align-items: center; margin-top: var(--space-md); }
.button-holder.left { justify-content: flex-start; }
.button-holder.right { justify-content: flex-end; }

.main-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--color-primary);
  border-radius: var(--profile-button-radius);
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--profile-hover-transition);
}
.main-button:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: var(--color-white); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.main-button:active { transform: translateY(0); box-shadow: none; }
.main-button.dark { background: var(--color-dark); border-color: var(--color-dark); }
.main-button.dark:hover { background: var(--color-dark-lighter); border-color: var(--color-dark-lighter); }
.main-button.accent { background: var(--color-accent); border-color: var(--color-accent); }
.main-button.accent:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); }
.main-button.success { background: var(--color-success); border-color: var(--color-success); }
.main-button.outlined { background: transparent; color: var(--color-primary); }
.main-button.outlined:hover { background: var(--color-primary); color: var(--color-white); }
.main-button.white { background: var(--color-white); border-color: var(--color-white); color: var(--color-dark); }
.main-button.white:hover { background: var(--color-light); border-color: var(--color-light); color: var(--color-dark); }
.main-button.ghost { background: transparent; border-color: rgba(255, 255, 255, 0.5); color: var(--color-white); }
.main-button.ghost:hover { background: var(--color-white); color: var(--color-dark); border-color: var(--color-white); }
.main-button.small { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: var(--text-sm); }
.main-button.large { min-height: 3.5rem; padding: 1rem 2rem; font-size: 1.05rem; }
.main-button.block { width: 100%; }
.main-button svg { width: 1.1em; height: 1.1em; }
.main-button[disabled], .main-button.disabled { opacity: 0.5; pointer-events: none; }

.text-link { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: var(--color-dark); }
.text-link svg { width: 1em; height: 1em; transition: transform var(--transition-fast); }
.text-link:hover svg { transform: translateX(3px); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--profile-radius-pill);
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.badge.light { background: var(--color-light-alt); color: var(--color-dark); }
.badge.outline { background: transparent; border: 1px solid var(--color-border-strong); color: var(--color-text-muted); }
.badge.dark { background: var(--color-dark); }
.badge.accent { background: var(--color-accent); }
.badge.success { background: rgba(33, 137, 74, 0.12); color: var(--color-success); }
.badge.warning { background: rgba(225, 161, 56, 0.16); color: #8a5a10; }
.badge.danger { background: rgba(180, 35, 24, 0.1); color: var(--color-danger); }
.badge.division-blue { background: var(--brand-blue); }
.badge.division-green { background: var(--brand-green); }
.badge.division-brown { background: var(--brand-brown); }
.badge.division-cyan { background: var(--brand-cyan); }
.badge-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }

/* --------------------------------------------------------------------------
   6. Forms
   -------------------------------------------------------------------------- */
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label { font-size: var(--text-sm); font-weight: 700; color: var(--color-dark); }
.form-label .req { color: var(--color-danger); margin-left: 0.15rem; }
.form-hint { font-size: var(--text-xs); color: var(--color-text-muted); }
.form-error { display: none; font-size: var(--text-xs); color: var(--color-danger); font-weight: 600; }
.form-field.has-error .form-error { display: block; }

.text-field, .select-field {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--profile-radius-sm);
  background: var(--color-white);
  color: var(--color-text);
  font-size: var(--text-base);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.text-field::placeholder { color: #8a94a6; }
.text-field:hover, .select-field:hover { border-color: var(--color-secondary); }
.text-field:focus, .select-field:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.15); }
.text-field.area { min-height: 8rem; resize: vertical; }
.form-field.has-error .text-field, .form-field.has-error .select-field { border-color: var(--color-danger); background: rgba(180, 35, 24, 0.03); }
.select-field {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2383a7ab' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

/* Checkbox / radio */
.form-checkbox, .form-radio { display: flex; align-items: flex-start; gap: 0.6rem; cursor: pointer; font-size: var(--text-sm); }
.form-checkbox input, .form-radio input, .form-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.form-checkbox-box {
  flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--color-border-strong); border-radius: 4px; background: var(--color-white);
  transition: var(--transition-base);
}
.form-checkbox-box svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 3; fill: none; opacity: 0; transition: opacity var(--transition-fast); }
.form-checkbox input:checked + .form-checkbox-box { background: var(--color-primary); border-color: var(--color-primary); }
.form-checkbox input:checked + .form-checkbox-box svg { opacity: 1; }
.form-checkbox:hover .form-checkbox-box { border-color: var(--color-primary); }
.form-checkbox.has-error .form-checkbox-box { border-color: var(--color-danger); }
.form-radio-dot {
  flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--color-border-strong); border-radius: 50%; background: var(--color-white);
  transition: var(--transition-base);
}
.form-radio-dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--color-primary); transform: scale(0); transition: transform var(--transition-fast); }
.form-radio input:checked + .form-radio-dot { border-color: var(--color-primary); }
.form-radio input:checked + .form-radio-dot::after { transform: scale(1); }

/* Switch */
.form-switch { display: inline-flex; align-items: center; gap: 0.6rem; cursor: pointer; font-size: var(--text-sm); position: relative; }
.form-switch-track { width: 44px; height: 24px; border-radius: 12px; background: var(--color-border-strong); position: relative; transition: background var(--transition-base); }
.form-switch-thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--color-white); box-shadow: var(--shadow-sm); transition: transform var(--transition-base); }
.form-switch input:checked + .form-switch-track { background: var(--color-success); }
.form-switch input:checked + .form-switch-track .form-switch-thumb { transform: translateX(20px); }

/* Search bar */
.search-bar { position: relative; display: flex; align-items: center; }
.search-bar-icon { position: absolute; left: 0.9rem; width: 18px; height: 18px; stroke: var(--color-secondary); fill: none; stroke-width: 2.2; pointer-events: none; }
.search-bar-input { width: 100%; min-height: 2.9rem; padding: 0.5rem 2.75rem 0.5rem 2.75rem; border: 1px solid var(--color-border-strong); border-radius: var(--profile-radius-pill); background: var(--color-white); font-size: var(--text-sm); transition: border-color var(--transition-base), box-shadow var(--transition-base); }
.search-bar-input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.15); }
.search-bar-clear { position: absolute; right: 0.6rem; display: flex; padding: 0.3rem; border: 0; background: none; color: var(--color-secondary); }
.search-bar-clear svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; }
.search-bar.large .search-bar-input { min-height: 3.4rem; font-size: var(--text-base); padding-left: 3rem; }
.search-bar.large .search-bar-icon { left: 1.1rem; width: 20px; height: 20px; }

/* Quantity stepper */
.qty-stepper { display: inline-flex; align-items: stretch; min-height: 3rem; border: 1px solid var(--color-border-strong); border-radius: var(--profile-button-radius); background: var(--color-white); overflow: hidden; }
.qty-stepper button { width: 2.75rem; border: 0; background: transparent; color: var(--color-primary); font-size: 1.25rem; font-weight: 500; line-height: 1; transition: background var(--transition-fast); }
.qty-stepper button:hover { background: var(--color-light); }
.qty-stepper input { width: 3.25rem; border: 0; border-left: 1px solid var(--color-border); border-right: 1px solid var(--color-border); text-align: center; font-weight: 700; font-size: var(--text-base); -moz-appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper input:focus { outline: none; background: var(--color-light); }
.qty-stepper.small { min-height: 2.5rem; }
.qty-stepper.small button { width: 2.25rem; font-size: 1.05rem; }
.qty-stepper.small input { width: 2.75rem; font-size: var(--text-sm); }

/* Option chips (variation selector) */
.option-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.option-chip {
  display: inline-flex; align-items: center; justify-content: center; min-width: 3.25rem; min-height: 2.75rem;
  padding: 0.5rem 0.9rem; border: 2px solid var(--color-border); border-radius: var(--profile-radius-sm);
  background: var(--color-light); color: var(--color-dark); font-size: var(--text-sm); font-weight: 700; cursor: pointer;
  transition: var(--transition-base);
}
.option-chip:hover { border-color: var(--color-primary); background: var(--color-white); }
.option-chip.active, .option-chip[aria-pressed="true"] { border-color: var(--color-primary); background: var(--color-primary); color: var(--color-white); }
.option-chip.unavailable { color: var(--color-secondary); background: transparent; border-style: dashed; text-decoration: line-through; cursor: not-allowed; }

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.card-base {
  position: relative;
  display: flex; flex-direction: column;
  border: var(--profile-card-border);
  box-shadow: var(--profile-card-shadow);
  background: var(--profile-card-bg);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: var(--profile-hover-transition);
}
.card-base:hover { box-shadow: var(--profile-card-hover-shadow); border-color: var(--profile-card-hover-border); transform: translateY(var(--profile-card-hover-lift)); }
.card-body { display: flex; flex-direction: column; gap: 0.6rem; padding: var(--space-md); flex: 1; }
.card-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding: var(--space-sm) var(--space-md); border-top: 1px solid var(--color-border); background: var(--color-page); }
.card-image { position: relative; aspect-ratio: var(--profile-image-aspect); background: var(--profile-image-bg); overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; filter: var(--profile-image-filter); transition: transform var(--transition-slow); }
.card-base:hover .card-image img { transform: scale(1.03); }
.card-image.cutout { display: flex; align-items: center; justify-content: center; padding: var(--profile-image-padding); border-bottom: 1px solid var(--color-border); }
.card-image.cutout img { object-fit: contain; }
.card-title { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.card-title a { color: var(--color-dark); }
.card-title a:hover { color: var(--color-primary); }
.card-text { font-size: var(--text-sm); color: var(--color-text-muted); }
.card-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.card-image .card-badges { position: absolute; top: 0.75rem; left: 0.75rem; z-index: 2; }
.card-brand { position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2; max-height: 22px; max-width: 80px; object-fit: contain; }

/* Product card specifics */
.product-card .card-title { text-transform: none; }
.product-card .spec-list { margin: 0.25rem 0 0; }
.product-card .price-from { font-size: var(--text-xs); color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.product-card .price { font-size: 1.1rem; font-weight: 700; color: var(--color-dark); line-height: 1.1; }
.product-card .price small { font-size: var(--text-xs); font-weight: 600; color: var(--color-text-muted); }

/* Category / division card (icon or image + title + count) */
.category-card { align-items: flex-start; padding: var(--space-md); gap: 0.75rem; text-decoration: none; }
.category-card .cat-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--profile-radius-md); background: var(--color-light); color: var(--color-primary); }
.category-card .cat-icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.category-card .cat-count { font-size: var(--text-xs); color: var(--color-text-muted); }
.category-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--card-accent, var(--color-primary)); }

/* Article card */
.article-card .card-meta { display: flex; gap: 0.75rem; align-items: center; font-size: var(--text-xs); color: var(--color-text-muted); }

/* Spec list (definition-style key/value) */
.spec-list { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; margin: 0; font-size: var(--text-sm); }
.spec-list dt { font-weight: 700; color: var(--color-dark); }
.spec-list dd { margin: 0; color: var(--color-text-muted); text-align: right; }
.spec-list.rows { grid-template-columns: 1fr; gap: 0; }
.spec-list.rows > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--color-border); }
.spec-list.rows > div:last-child { border-bottom: 0; }

/* Spec table (product detail) */
.spec-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.spec-table th, .spec-table td { padding: 0.7rem 0.85rem; text-align: left; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.spec-table th { width: 32%; font-weight: 700; color: var(--color-dark); background: var(--color-page); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table.bordered { border: 1px solid var(--color-border); border-radius: var(--profile-radius-md); overflow: hidden; }

/* --------------------------------------------------------------------------
   8. Data table (variations / pricing)
   -------------------------------------------------------------------------- */
.data-table-wrap { border: 1px solid var(--color-border); border-radius: var(--profile-radius-md); overflow: auto; background: var(--color-white); }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); min-width: 640px; }
.data-table thead th { position: sticky; top: 0; padding: 0.8rem 1rem; text-align: left; background: var(--color-dark); color: var(--color-white); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.data-table tbody td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:nth-child(even) td { background: var(--color-page); }
.data-table tbody tr:hover td { background: var(--color-light); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table .price-cell { font-weight: 700; color: var(--color-dark); }
.data-table .poa { color: var(--color-text-muted); font-weight: 600; }
.data-table .sku { font-family: var(--font-mono); font-size: 0.82rem; color: var(--color-dark); font-weight: 600; }
.data-table .actions { display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; }
.data-table tbody tr.selected td { background: rgba(var(--color-primary-rgb), 0.06); box-shadow: inset 3px 0 0 var(--color-primary); }

/* --------------------------------------------------------------------------
   9. UI patterns
   -------------------------------------------------------------------------- */
/* Tabs */
.tabs { width: 100%; }
.tab-menu { display: flex; gap: 0.25rem; border-bottom: 2px solid var(--color-border); overflow-x: auto; scrollbar-width: none; }
.tab-menu::-webkit-scrollbar { display: none; }
.tab-trigger { flex-shrink: 0; padding: 0.9rem 1.25rem; margin-bottom: -2px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--color-text-muted); font-size: var(--text-sm); font-weight: 700; white-space: nowrap; transition: var(--transition-base); }
.tab-trigger:hover { color: var(--color-dark); }
.tab-trigger.active, .tab-trigger[aria-selected="true"] { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.tab-trigger .count { margin-left: 0.4rem; padding: 0.1rem 0.45rem; border-radius: var(--profile-radius-pill); background: var(--color-light-alt); font-size: 0.7rem; }
.tab-panel { display: none; padding: var(--space-lg) 0; }
.tab-panel.active { display: block; }
.tabs.pills .tab-menu { border-bottom: 0; gap: 0.5rem; }
.tabs.pills .tab-trigger { border: 1px solid var(--color-border); border-radius: var(--profile-radius-pill); padding: 0.6rem 1.1rem; margin: 0; }
.tabs.pills .tab-trigger.active { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-white); }

/* Accordion */
.faq-item, .accordion-item { border-bottom: 1px solid var(--color-border); }
.faq-question, .accordion-trigger { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: var(--space-sm) 0; border: 0; background: none; color: var(--color-dark); font-size: var(--text-base); font-weight: 700; text-align: left; transition: color var(--transition-base); }
.faq-question:hover, .accordion-trigger:hover { color: var(--color-primary); }
.faq-chevron, .accordion-chevron { flex-shrink: 0; width: 20px; height: 20px; stroke: var(--color-secondary); fill: none; stroke-width: 2.2; transition: transform var(--transition-base); }
.faq-question[aria-expanded="true"] .faq-chevron, .accordion-trigger[aria-expanded="true"] .accordion-chevron { transform: rotate(180deg); stroke: var(--color-primary); }
.faq-answer, .accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-question[aria-expanded="true"] + .faq-answer, .accordion-trigger[aria-expanded="true"] + .accordion-panel { max-height: 1000px; }
.faq-answer-inner, .accordion-inner { padding: 0 0 var(--space-sm); font-size: var(--text-sm); color: var(--color-text-muted); }
.accordion.boxed .accordion-item { border: 1px solid var(--color-border); border-radius: var(--profile-radius-md); margin-bottom: 0.5rem; background: var(--color-white); }
.accordion.boxed .accordion-trigger, .accordion.boxed .accordion-inner { padding-left: var(--space-sm); padding-right: var(--space-sm); }

/* Breadcrumbs */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-bottom: var(--space-sm); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.02em; }
.breadcrumbs a { color: var(--color-text-muted); }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumb-sep { color: var(--color-secondary); opacity: 0.7; }
.breadcrumb-current { color: var(--color-dark); }

/* Toasts */
.toast { display: flex; align-items: flex-start; gap: 0.85rem; max-width: 420px; padding: var(--space-sm) var(--space-md); border-radius: var(--profile-radius-md); border-left: 4px solid var(--color-primary); background: var(--color-white); box-shadow: var(--shadow-lg); }
.toast.success { border-left-color: var(--color-success); }
.toast.warning { border-left-color: var(--color-warning); }
.toast.error { border-left-color: var(--color-danger); }
.toast.info { border-left-color: var(--color-accent); }
.toast-icon { width: 22px; height: 22px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; color: var(--color-white); font-size: 0.75rem; font-weight: 700; }
.toast.success .toast-icon { background: var(--color-success); }
.toast.warning .toast-icon { background: var(--color-warning); }
.toast.error .toast-icon { background: var(--color-danger); }
.toast.info .toast-icon { background: var(--color-accent); }
.toast-title { font-size: var(--text-sm); font-weight: 700; color: var(--color-dark); }
.toast-text { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 0.15rem; }
.toast-close { margin-left: auto; border: 0; background: none; color: var(--color-secondary); font-size: 1.25rem; line-height: 1; padding: 0 0.25rem; }

/* Filter chips (active filters) */
.filter-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.filter-chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.5rem 0.35rem 0.75rem; border-radius: var(--profile-radius-pill); background: var(--color-light-alt); color: var(--color-dark); font-size: var(--text-xs); font-weight: 700; }
.filter-chip button { display: grid; place-items: center; width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--color-dark); color: var(--color-white); font-size: 0.7rem; line-height: 1; }
.filter-chip button:hover { background: var(--color-danger); }
.filter-clear { font-size: var(--text-xs); font-weight: 700; color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }

/* Filter sidebar */
.filter-panel { border: 1px solid var(--color-border); border-radius: var(--profile-radius-md); background: var(--color-white); }
.filter-panel-head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-sm); border-bottom: 1px solid var(--color-border); font-weight: 700; color: var(--color-dark); }
.filter-group { border-bottom: 1px solid var(--color-border); }
.filter-group:last-child { border-bottom: 0; }
.filter-group .accordion-trigger { padding: 0.85rem var(--space-sm); font-size: var(--text-sm); }
.filter-group .accordion-inner { padding: 0 var(--space-sm) var(--space-sm); display: flex; flex-direction: column; gap: 0.55rem; }
.filter-group .facet-count { margin-left: auto; font-size: var(--text-xs); color: var(--color-secondary); font-weight: 600; }
.filter-group .form-checkbox { align-items: center; }
.filter-group .form-checkbox > span:not(.form-checkbox-box) { flex: 1; display: flex; }

/* Results header */
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding-bottom: var(--space-sm); margin-bottom: var(--space-sm); border-bottom: 1px solid var(--color-border); }
.results-count { font-size: var(--text-sm); color: var(--color-text-muted); }
.results-count strong { color: var(--color-dark); }
.results-bar .select-field { min-height: 2.5rem; padding: 0.35rem 2.25rem 0.35rem 0.75rem; font-size: var(--text-sm); width: auto; }

/* Pagination */
.pagination { display: flex; gap: 0.35rem; align-items: center; justify-content: center; margin-top: var(--space-lg); }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 2.5rem; height: 2.5rem; padding: 0 0.6rem; border: 1px solid var(--color-border); border-radius: var(--profile-radius-sm); background: var(--color-white); color: var(--color-dark); font-size: var(--text-sm); font-weight: 700; }
.pagination a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pagination .current { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-white); }
.pagination .gap { border: 0; background: none; color: var(--color-secondary); }

/* Download list */
.download-list { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.download-list a { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border: 1px solid var(--color-border); border-radius: var(--profile-radius-sm); background: var(--color-white); color: var(--color-dark); font-size: var(--text-sm); font-weight: 700; transition: var(--transition-base); }
.download-list a:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-light); }
.download-list .file-icon { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: var(--profile-radius-sm); background: rgba(var(--color-primary-rgb), 0.08); color: var(--color-primary); font-size: 0.6rem; font-weight: 800; letter-spacing: 0.04em; }
.download-list .file-meta { margin-left: auto; font-size: var(--text-xs); font-weight: 600; color: var(--color-text-muted); }

/* Notice / callout */
.notice { display: flex; gap: 0.75rem; padding: var(--space-sm) var(--space-md); border-radius: var(--profile-radius-md); background: var(--color-light); border: 1px solid var(--color-border); font-size: var(--text-sm); color: var(--color-text-muted); }
.notice strong { color: var(--color-dark); }
.notice.warning { background: rgba(225, 161, 56, 0.1); border-color: rgba(225, 161, 56, 0.4); }

/* Stock status */
.stock { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--text-sm); font-weight: 700; }
.stock::before { content: ''; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: currentColor; }
.stock.in { color: var(--color-success); }
.stock.order { color: var(--color-primary); }
.stock.poa { color: var(--color-text-muted); }

/* --------------------------------------------------------------------------
   10. Site header & mega menu (proposed replacement for .nav-bar)
   -------------------------------------------------------------------------- */
.site-header { position: relative; z-index: 100; background: var(--color-white); border-bottom: 1px solid var(--color-border); font-size: var(--text-sm); }
.site-header .utility-bar { background: var(--color-dark); color: var(--color-white); }
.site-header .utility-bar .body-container { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-md); min-height: 40px; }
.site-header .utility-bar a { display: inline-flex; align-items: center; gap: 0.4rem; color: rgba(255, 255, 255, 0.85); font-weight: 600; font-size: var(--text-xs); }
.site-header .utility-bar a:hover { color: var(--color-white); }
.site-header .utility-bar svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.site-header .main-bar .body-container { display: flex; align-items: center; gap: var(--space-lg); min-height: 88px; }
.site-header .logo img { height: 52px; width: auto; }
.site-header .header-search { flex: 1; max-width: 560px; margin: 0 auto; }
.site-header .header-actions { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.icon-button { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--color-border); border-radius: var(--profile-radius-sm); background: var(--color-white); color: var(--color-dark); transition: var(--transition-base); }
.icon-button:hover { border-color: var(--color-primary); color: var(--color-primary); }
.icon-button svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.icon-button .count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: var(--profile-radius-pill); background: var(--color-accent); color: var(--color-white); font-size: 0.68rem; font-weight: 800; }

.primary-nav { position: relative; background: var(--color-white); border-top: 1px solid var(--color-border); }
.primary-nav > .body-container { display: flex; align-items: stretch; gap: 0; }
.primary-nav .nav-item { position: static; } /* panel is positioned against .primary-nav so it spans the full width */
.primary-nav .nav-link { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 52px; padding: 0 1.1rem; color: var(--color-dark); font-weight: 700; font-size: var(--text-sm); border-bottom: 3px solid transparent; transition: var(--transition-base); }
.primary-nav .nav-link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; transition: transform var(--transition-fast); }
.primary-nav .nav-item:hover .nav-link, .primary-nav .nav-item.open .nav-link, .primary-nav .nav-link.current { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.primary-nav .nav-item.open .nav-link svg { transform: rotate(180deg); }
.primary-nav .nav-item.division-blue .nav-link { --nav-accent: var(--brand-blue); }
.primary-nav .nav-item.division-green .nav-link { --nav-accent: var(--brand-green); }
.primary-nav .nav-item.division-brown .nav-link { --nav-accent: var(--brand-brown); }
.primary-nav .nav-item.division-cyan .nav-link { --nav-accent: var(--brand-cyan); }
.primary-nav .nav-item[class*="division-"]:hover .nav-link, .primary-nav .nav-item[class*="division-"].open .nav-link { border-bottom-color: var(--nav-accent); }
.primary-nav .nav-spacer { flex: 1; }
.primary-nav .nav-link.secondary { font-weight: 600; color: var(--color-text-muted); }

/* Mega menu panel: level 2 on the left rail, level 3 in the content area */
.mega-menu { position: absolute; left: 0; right: 0; top: 100%; display: none; background: var(--color-white); border-top: 1px solid var(--color-border); box-shadow: var(--shadow-xl); }
.nav-item.open .mega-menu { display: block; }
.mega-menu-inner { display: grid; grid-template-columns: 280px 1fr 260px; min-height: 380px; }
.mega-rail { padding: var(--space-sm) 0; background: var(--color-page); border-right: 1px solid var(--color-border); }
.mega-rail a { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.7rem var(--space-md); color: var(--color-dark); font-weight: 700; font-size: var(--text-sm); border-left: 3px solid transparent; transition: var(--transition-fast); }
.mega-rail a svg { width: 14px; height: 14px; stroke: var(--color-secondary); fill: none; stroke-width: 2.5; }
.mega-rail a:hover, .mega-rail a.active { background: var(--color-white); border-left-color: var(--nav-accent, var(--color-primary)); color: var(--color-primary); }
.mega-rail a.active svg { stroke: var(--color-primary); }
.mega-content { padding: var(--space-md) var(--space-lg); }
.mega-content-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: var(--space-sm); padding-bottom: 0.75rem; border-bottom: 1px solid var(--color-border); }
.mega-content-head h4 { margin: 0; }
.mega-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.15rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.mega-links a { display: block; padding: 0.45rem 0; color: var(--color-text); font-weight: 500; font-size: var(--text-sm); border-bottom: 1px solid transparent; }
.mega-links a:hover { color: var(--color-primary); }
.mega-links a.see-all { color: var(--color-primary); font-weight: 700; }
.mega-feature { padding: var(--space-md); background: var(--color-light); border-left: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 0.75rem; }
.mega-feature .card-image { border-radius: var(--profile-radius-sm); border: 1px solid var(--color-border); }
.mega-feature .pre-title { margin-bottom: 0; }

/* Mobile drawer (illustrative) */
.mobile-drawer { width: 100%; max-width: 380px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--profile-radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.mobile-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-sm); border-bottom: 1px solid var(--color-border); background: var(--color-page); }
.mobile-drawer-head .back { display: inline-flex; align-items: center; gap: 0.35rem; font-size: var(--text-sm); font-weight: 700; color: var(--color-primary); }
.mobile-drawer ul { list-style: none; margin: 0; padding: 0; }
.mobile-drawer li a { display: flex; align-items: center; justify-content: space-between; padding: 0.95rem var(--space-sm); border-bottom: 1px solid var(--color-border); color: var(--color-dark); font-weight: 700; font-size: var(--text-sm); }
.mobile-drawer li a svg { width: 16px; height: 16px; stroke: var(--color-secondary); fill: none; stroke-width: 2.5; }
.mobile-drawer .drawer-foot { display: grid; gap: 0.5rem; padding: var(--space-sm); background: var(--color-page); }

/* --------------------------------------------------------------------------
   11. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .mega-menu-inner { grid-template-columns: 240px 1fr; }
  .mega-feature { display: none; }
}
@media (max-width: 991px) {
  :root { --profile-section-padding: calc(var(--space-2xl) * var(--profile-space-multiplier) * 1.1); }
  .columns, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .primary-nav { display: none; }
  .site-header .header-search { display: none; }
}
@media (max-width: 767px) {
  :root { --container-padding: 1rem; }
  .columns, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .columns.reverse .column:first-child { order: 0; }
  .site-header .main-bar .body-container { min-height: 72px; gap: var(--space-sm); }
  .site-header .logo img { height: 42px; }
  .spec-table th { width: 40%; }
  .results-bar { align-items: flex-start; }
}
@media (max-width: 479px) {
  :root { --profile-section-padding: var(--space-xl); }
  .main-button { width: 100%; }
  .button-holder .main-button { width: auto; flex: 1; }
}
