/* ============================================================
   VISTEX — Components
   ============================================================ */

/* ============ BUTTONS ============ */
.btn {
  --btn-bg: transparent; --btn-fg: var(--text); --btn-bd: transparent;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--r-full);
  font-family: var(--font-body); font-size: var(--step--1);
  font-weight: 600; letter-spacing: -0.005em; white-space: nowrap;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd);
  transition: transform var(--t-fast), box-shadow var(--t-mid),
              background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Sheen sweep on hover — subtle, one pass */
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.22) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform .7s var(--ease-out);
}
.btn:hover::after { transform: translateX(120%); }

.btn-primary {
  --btn-bg: var(--blue-600); --btn-fg: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover { --btn-bg: var(--blue-700); }
[data-theme="dark"] .btn-primary { --btn-bg: var(--aqua-500); --btn-fg: #04121f; }
[data-theme="dark"] .btn-primary:hover { --btn-bg: var(--aqua-400); }

.btn-signal {
  --btn-bg: var(--red-500); --btn-fg: #fff;
  box-shadow: 0 12px 32px -12px color-mix(in srgb, var(--red-500) 60%, transparent);
}
.btn-signal:hover { --btn-bg: var(--red-600); }

.btn-ghost { --btn-bd: var(--border); --btn-fg: var(--text); }
.btn-ghost:hover { --btn-bd: var(--border-lit); --btn-fg: var(--accent); background: var(--accent-soft); }

.btn-light { --btn-bg: #fff; --btn-fg: var(--blue-700); }
.btn-light:hover { box-shadow: var(--shadow-2); }

.btn-wa { --btn-bg: var(--wa); --btn-fg: #05300f; }
.btn-wa:hover { filter: brightness(1.06); }

.btn-sm { padding: 9px 16px; font-size: var(--step--2); }
.btn-lg { padding: 17px 34px; font-size: var(--step-0); }
.btn-block { width: 100%; }

/* Text link with an animated underline */
.link-u {
  position: relative; color: var(--link); font-weight: 600;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px; background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size var(--t-mid);
}
.link-u:hover { background-size: 100% 1.5px; }
.link-quiet { color: var(--text-3); font-size: var(--step--2); padding: 6px; }
.link-quiet:hover { color: var(--signal); }

/* ============ CARD ============ */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
}
.card-pad { padding: clamp(20px, 3vw, 32px); }

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-2);
  border-color: var(--border-lit);
}

/* Aqua glow that tracks the pointer — set by motion.js */
.card-glow::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx,50%) var(--my,50%),
              color-mix(in srgb, var(--aqua-500) 13%, transparent), transparent 62%);
  opacity: 0; transition: opacity var(--t-mid); pointer-events: none;
}
.card-glow:hover::before { opacity: 1; }

/* ============ CHIP ============ */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: var(--r-full);
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: var(--step--1); font-weight: 500; color: var(--text-2);
  transition: all var(--t-fast); cursor: default;
}
a.chip, button.chip { cursor: pointer; }
a.chip:hover, button.chip:hover {
  border-color: var(--border-lit); color: var(--accent);
  background: var(--accent-soft); transform: translateY(-1px);
}
.chip svg { width: 15px; height: 15px; flex: none; }

.chip--accent { background: var(--accent-soft); color: var(--accent); border-color: var(--border-lit); }
.chip--on { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.chip--on:hover { background: var(--accent-2); color: var(--on-accent); }
.chip--glass {
  background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28);
  color: #fff; backdrop-filter: blur(10px);
}
.chip--glass:hover { background: rgba(255,255,255,.24); color: #fff; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: var(--step--2);
  letter-spacing: var(--tr-mono); font-weight: 500;
  padding: 5px 11px; border-radius: var(--r-xs);
  background: var(--accent-soft); color: var(--accent);
}
.badge--signal { background: var(--signal-soft); color: var(--signal); }

/* ============ FEATURE LIST ============ */
.feature-list { display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 13px; align-items: flex-start; color: var(--text-2); }
.feature-list .fi {
  flex: none; width: 24px; height: 24px; margin-top: 1px;
  display: grid; place-items: center; border-radius: var(--r-full);
  background: var(--accent-soft); color: var(--accent);
}
.feature-list .fi svg { width: 14px; height: 14px; }

/* ============ SPEC TABLE (product technicals) ============ */
.spec { display: grid; gap: 0; border-top: 1px solid var(--border); }
.spec-row {
  display: grid; grid-template-columns: minmax(110px, 0.55fr) 1fr;
  gap: var(--s-4); padding: 13px 2px;
  border-bottom: 1px solid var(--border-2);
}
.spec-row dt {
  font-family: var(--font-mono); font-size: var(--step--2);
  letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--text-3);
  padding-top: 2px;
}
.spec-row dd { font-size: var(--step--1); color: var(--text); font-weight: 500; }

/* ============ FORM FIELDS ============ */
.field { display: grid; gap: 7px; }
.field > span, .field > .field-label {
  font-family: var(--font-mono); font-size: var(--step--2);
  letter-spacing: var(--tr-label); text-transform: uppercase;
  color: var(--text-3); font-weight: 500;
}
.field input, .field textarea, .field select, .input {
  width: 100%; padding: 13px 15px;
  background: var(--surface-2); color: var(--text);
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-size: var(--step--1); transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.field input::placeholder, .field textarea::placeholder, .input::placeholder { color: var(--text-4); }
.field input:focus, .field textarea:focus, .input:focus {
  outline: none; border-color: var(--accent); background: var(--surface);
  box-shadow: var(--ring);
}
.field textarea { resize: vertical; min-height: 108px; line-height: 1.6; }
.field-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
@media (max-width: 560px) { .field-row2 { grid-template-columns: 1fr; } }

.form-note { font-size: var(--step--2); color: var(--text-3); }
.form-status {
  padding: 12px 15px; border-radius: var(--r-sm); font-size: var(--step--1);
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--border-lit);
}
.form-status--err { background: var(--signal-soft); color: var(--signal); border-color: color-mix(in srgb, var(--signal) 30%, transparent); }

/* Search input with leading icon */
.search {
  position: relative; display: flex; align-items: center;
}
.search svg { position: absolute; left: 15px; width: 18px; height: 18px; color: var(--text-4); pointer-events: none; }
.search input { padding-left: 44px; border-radius: var(--r-full); }
.search .search-clear {
  position: absolute; right: 12px; width: 26px; height: 26px;
  display: grid; place-items: center; border-radius: var(--r-full);
  color: var(--text-3); background: var(--surface-3);
}
.search .search-clear:hover { color: var(--signal); }

/* ============ HEADER ============
   FIXED, not sticky: a sticky header occupies flow space, which would push the
   hero down and leave nothing behind the bar. Fixed lets the hero artwork run
   full-bleed to the top of the viewport and show through a transparent nav.
   Body reserves the height on every page except home (see base.css). */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: var(--z-header);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-mid), background var(--t-mid),
              box-shadow var(--t-mid), backdrop-filter var(--t-mid);
}

/* At the top the bar is genuinely transparent — no wash, no blur, nothing over
   the artwork. Legibility comes entirely from the text colour rules below. */
.site-header::before { content: none; }

/* Once scrolled it becomes a real frosted bar */
.site-header.scrolled {
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--shadow-1);
}


/* Slightly narrower than the page container so the bar reads as a tighter
   cluster instead of logo and actions pinned to opposite screen edges. */
.site-header .container { max-width: 1180px; }

/* Home, at the top of the page, the nav sits directly on the hero photograph.
   Strengthen the labels and control borders so they clear AA without needing
   a panel behind them. Both values are theme tokens, so dark mode inverts. */
body[data-page="home"] .site-header:not(.scrolled) .nav-links a { color: var(--text); }
body[data-page="home"] .site-header:not(.scrolled) .icon-btn {
  color: var(--text);
  border-color: color-mix(in srgb, currentColor 30%, transparent);
  background: color-mix(in srgb, var(--bg) 30%, transparent);
  backdrop-filter: blur(6px);
}
body[data-page="home"] .site-header:not(.scrolled) .nav-toggle {
  border-color: color-mix(in srgb, var(--text) 30%, transparent);
}
body[data-page="home"] .site-header:not(.scrolled) .nav-links a:hover {
  background: color-mix(in srgb, var(--bg) 55%, transparent);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); height: var(--header-h);
}
.nav-logo { display: flex; align-items: center; flex: none; }
.nav-logo img {
  /* the artwork fills its box (the dead canvas was cropped out), so this
     height is all logo, not padding */
  height: clamp(48px, 5.2vw, 68px); width: auto;
  transition: opacity var(--t-fast);
}
.nav-logo:hover img { opacity: .82; }
.nav-logo .logo-dark { display: none; }
[data-theme="dark"] .nav-logo .logo-light { display: none; }
[data-theme="dark"] .nav-logo .logo-dark  { display: block; }

.nav-links { display: flex; align-items: center; gap: 0; }
.nav-links a {
  position: relative; padding: 8px 13px; border-radius: var(--r-full);
  font-size: var(--step--1); font-weight: 500; color: var(--text-2);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a:hover { color: var(--text); background: var(--surface-3); }
.nav-links a.active { color: var(--accent); font-weight: 600; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px;
  width: 4px; height: 4px; border-radius: var(--r-full);
  background: currentColor; transform: translateX(-50%);
}

.nav-actions { display: flex; align-items: center; gap: var(--s-2); }
.icon-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 14px; border-radius: var(--r-full);
  border: 1.5px solid var(--border); color: var(--text-2);
  font-size: var(--step--1); font-weight: 500;
  transition: all var(--t-fast);
}
.icon-btn:hover { border-color: var(--border-lit); color: var(--accent); background: var(--accent-soft); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn--sq { width: 42px; padding: 0; justify-content: center; }

.cart-badge {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px;
  padding: 0 5px; border-radius: var(--r-full);
  background: var(--red-500); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 20px; text-align: center;
  box-shadow: 0 2px 8px rgba(237,30,38,.5);
  animation: badge-pop .38s var(--ease-spring);
}
@keyframes badge-pop { from { transform: scale(0); } to { transform: scale(1); } }

.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: var(--r-full);
  border: 1.5px solid var(--border); position: relative;
}
.nav-toggle span {
  display: block; width: 17px; height: 1.8px; margin: 0 auto;
  background: var(--text); border-radius: 2px;
  transition: transform var(--t-mid), opacity var(--t-fast);
}
.nav-toggle span + span { margin-top: 4.5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.3px) rotate(-45deg); }

/* Scroll progress hairline */
.scroll-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  transform: scaleX(var(--sp, 0)); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--blue-600), var(--aqua-500));
  transition: transform .1s linear;
}
[data-theme="dark"] .scroll-progress { background: linear-gradient(90deg, var(--aqua-500), var(--aqua-300)); }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: var(--s-4) var(--gutter) var(--s-7);
    box-shadow: var(--shadow-3);
    clip-path: inset(0 0 100% 0); opacity: 0; pointer-events: none;
    transition: clip-path var(--t-mid), opacity var(--t-fast);
  }
  .nav-links.open { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 15px 12px; font-size: var(--step-1); border-radius: var(--r-sm); }
  .nav-links a.active::after { left: 12px; transform: none; top: 50%; bottom: auto; }
}

/* ============ FOOTER ============ */
.site-footer {
  position: relative; margin-top: var(--s-11);
  background: var(--blue-900); color: #fff; overflow: hidden;
}
[data-theme="dark"] .site-footer { background: #060a17; border-top: 1px solid var(--border); }
.footer-glow {
  position: absolute; left: 50%; top: -40%; width: 900px; height: 500px;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--aqua-500) 22%, transparent), transparent 68%);
}
.footer-grid {
  position: relative; display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.5fr; gap: var(--s-8);
  padding-block: clamp(52px, 7vw, 84px);
}
@media (max-width: 940px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-7); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { height: 68px; width: auto; }
.footer-grid h4 {
  font-family: var(--font-mono); font-size: var(--step--2);
  letter-spacing: var(--tr-label); text-transform: uppercase;
  color: var(--aqua-300); margin-bottom: var(--s-4); font-weight: 500;
}
.footer-grid ul { display: grid; gap: 11px; font-size: var(--step--1); }
/* A bare text link in this list measured 21px tall — under the 24x24 pointer
   target WCAG 2.5.8 asks for. Padding the anchor (not the li) keeps the
   visual rhythm identical while making the whole row hittable. */
.footer-grid a { display: inline-flex; align-items: center; min-height: 24px; }
.site-footer a { color: rgba(255,255,255,.72); transition: color var(--t-fast); }
.site-footer a:hover { color: #fff; }
.footer-grid li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,.72); }
.footer-grid li svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--aqua-300); }
.footer-bottom {
  position: relative; border-top: 1px solid rgba(255,255,255,.1);
  padding-block: var(--s-5);
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  align-items: center; justify-content: space-between;
  font-size: var(--step--2); color: rgba(255,255,255,.55);
}
.footer-brandline {
  font-family: var(--font-mono); letter-spacing: var(--tr-mono);
  color: var(--aqua-300);
}

/* ============ ENQUIRY DRAWER ============ */
.cart-overlay {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  background: color-mix(in srgb, var(--n-950) 55%, transparent);
  backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity var(--t-mid);
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-drawer);
  width: min(430px, 100vw);
  display: flex; flex-direction: column;
  background: var(--surface); border-left: 1px solid var(--border);
  box-shadow: var(--shadow-3);
  transform: translateX(101%);
  transition: transform .46s var(--ease-out);
}
.cart-drawer.open { transform: none; }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-5) var(--s-6); border-bottom: 1px solid var(--border);
}
.cart-head h3 { font-size: var(--step-1); }
.cart-close {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: var(--r-full); color: var(--text-3); border: 1px solid var(--border);
}
.cart-close:hover { color: var(--signal); border-color: var(--signal); }
.cart-items {
  flex: 1; overflow-y: auto; padding: var(--s-5) var(--s-6);
  display: grid; gap: var(--s-3); align-content: start;
}
.cart-empty { text-align: center; color: var(--text-3); margin-top: var(--s-11); font-size: var(--step--1); }
.cart-empty svg { width: 40px; height: 40px; margin: 0 auto var(--s-4); color: var(--text-4); }
.cart-item {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3); border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface-2);
  animation: ci-in .3s var(--ease-out);
}
@keyframes ci-in { from { opacity: 0; transform: translateX(14px); } }
.ci-name { font-size: var(--step--1); font-weight: 600; line-height: 1.35; }
.ci-code { font-family: var(--font-mono); font-size: var(--step--2); color: var(--signal); }
.ci-pack { font-family: var(--font-mono); font-size: var(--step--2); color: var(--text-3); letter-spacing: var(--tr-mono); }
.ci-remove { color: var(--text-4); padding: 4px; }
.ci-remove:hover { color: var(--signal); }

.qty { display: flex; align-items: center; gap: 2px; flex: none; }
.qty button {
  width: 28px; height: 28px; border-radius: var(--r-xs);
  border: 1px solid var(--border); color: var(--text-2);
  font-weight: 700; line-height: 1; transition: all var(--t-fast);
}
.qty button:hover { border-color: var(--accent); color: var(--accent); }
.qty span { width: 28px; text-align: center; font-weight: 600; font-size: var(--step--1); font-variant-numeric: tabular-nums; }

.cart-foot {
  border-top: 1px solid var(--border); padding: var(--s-5) var(--s-6);
  display: grid; gap: var(--s-3); background: var(--surface-2);
}
.cart-foot input, .cart-foot textarea {
  width: 100%; padding: 11px 13px; font-size: var(--step--1);
  background: var(--surface); color: var(--text);
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
}
.cart-foot input:focus, .cart-foot textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: var(--ring);
}
.cart-foot .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.cart-actions { display: grid; gap: var(--s-2); }

/* ============ PRODUCT CARD ============ */
.pcard {
  position: relative;              /* anchors the stretched title link below */
  /* The catalogue toolbar is sticky under the fixed header, so the global
     scroll-padding-top (header only) still parks a card underneath it when
     focus or scrollIntoView brings it up. */
  scroll-margin-top: calc(var(--header-h) + 96px);
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-lg);
}
.pcard-media {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  background: var(--surface-3);
}
.pcard-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease-out), filter var(--t-mid);
}
.pcard:hover .pcard-media img { transform: scale(1.06); }

/* No-photo fallback: a designed "label" instead of an empty box */
.pcard-noimg {
  position: absolute; inset: 0;
  display: grid; align-content: center; justify-items: center; gap: 8px;
  padding: var(--s-5); text-align: center; color: #fff;
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--aqua-500) 42%, transparent), transparent 62%),
    linear-gradient(155deg, var(--blue-600), var(--blue-900));
}
.pcard-noimg::before {
  content: ""; position: absolute; inset: 0; opacity: .16;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,.6) 0 1px, transparent 1px 13px);
}
.pcard-noimg .drop { position: relative; opacity: .9; }
.pcard-noimg .nm { position: relative; font-family: var(--font-display); font-weight: 600; font-size: var(--step--1); line-height: 1.25; }
.pcard-noimg .sb {
  position: relative; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: var(--tr-label); text-transform: uppercase; color: rgba(255,255,255,.72);
}

.pcard-body { padding: var(--s-5); display: flex; flex-direction: column; flex: 1; gap: 9px; }
.pcard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-3); }
.pcard-name { font-family: var(--font-display); font-weight: 600; font-size: var(--step-0); line-height: 1.25; letter-spacing: var(--tr-tight); }
.pcard-name a:hover { color: var(--accent); }
/* Two separate problems with the title link, both fixed here.
   1. Its own box was 20px tall — under the 24x24 pointer target WCAG 2.5.8
      asks for. display:block + min-height gives it a real box, and the title
      still wraps normally because the h3 around it is block-level anyway.
   2. Only the words were clickable. The stretched ::after makes the whole
      card open the product, which is what people already expect. The media
      anchor above it is aria-hidden and the Add button is lifted over the
      overlay, so neither the accessibility tree nor the enquiry flow moves. */
.pcard-name a { display: block; min-height: 24px; }
.pcard-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pcard-foot { position: relative; z-index: 2; }
.pcard-add { position: relative; z-index: 2; }
.pcard-code {
  flex: none; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: var(--tr-mono);
  /* brand red on its own 10% tint measured 3.82:1 — a shade darker clears AA
     at 5.17:1 and is indistinguishable at 10.5px */
  color: var(--red-600);
  background: var(--signal-soft); padding: 4px 8px; border-radius: var(--r-xs);
}
[data-theme="dark"] .pcard-code { color: var(--red-400); }
.pcard-desc {
  color: var(--text-3); font-size: var(--step--1); line-height: 1.6; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard-foot {
  margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
}
.pcard-pack {
  font-family: var(--font-mono); font-size: var(--step--2);
  letter-spacing: var(--tr-mono); text-transform: uppercase; color: var(--text-3);
}
.pcard-add {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--r-full);
  border: 1.5px solid var(--border); color: var(--text-2);
  font-size: var(--step--2); font-weight: 600; transition: all var(--t-fast);
}
.pcard-add:hover { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.pcard-add svg { width: 14px; height: 14px; }
.pcard-add.added { background: var(--wa); border-color: transparent; color: #05300f; }

/* ============ TOAST ============ */
.toast-wrap {
  position: fixed; left: 50%; bottom: 26px; z-index: 96;
  transform: translateX(-50%); display: grid; gap: 8px; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: var(--r-full);
  background: var(--surface-inv); color: var(--bg);
  font-size: var(--step--1); font-weight: 500;
  box-shadow: var(--shadow-3);
  animation: toast-in .34s var(--ease-out), toast-out .3s var(--ease-out) 2.4s forwards;
}
[data-theme="dark"] .toast { background: var(--n-0); color: var(--n-900); }
.toast svg { width: 17px; height: 17px; color: var(--wa); }
@keyframes toast-in  { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toast-out { to   { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }


/* ============================================================
   SWIPE DECK  — one idea per screen on phones
   Native horizontal scroll-snap. Vertical page scrolling is never
   intercepted, so reaching the last slide simply hands scrolling back.
   ============================================================ */
.swipe-deck { position: relative; }
.swipe-track {
  display: flex; gap: var(--s-4);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* bleed to the screen edges so a slide can sit centred */
  margin-inline: calc(var(--gutter) * -1);
  padding: 4px var(--gutter) var(--s-5);
}
.swipe-track::-webkit-scrollbar { display: none; }

.swipe-slide {
  flex: 0 0 min(84%, 420px);
  scroll-snap-align: center;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transform: scale(.955);
  opacity: .62;
  transition: transform .45s var(--ease-out), opacity .45s var(--ease-out),
              box-shadow .45s var(--ease-out), border-color .45s var(--ease-out);
}
.swipe-slide.is-active {
  transform: scale(1);
  opacity: 1;
  box-shadow: var(--shadow-3);
  border-color: var(--border-lit);
}

.swipe-media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--surface-3);
  display: grid; place-items: center;
}
.swipe-media img { width: 100%; height: 100%; object-fit: cover; }
.swipe-ico {
  display: grid; place-items: center;
  width: 68px; height: 68px; border-radius: var(--r-lg);
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--border-lit);
}
.swipe-media:has(.swipe-ico) { aspect-ratio: 16 / 7; background: var(--surface-2); }

.swipe-body { padding: var(--s-5) var(--s-5) var(--s-6); display: grid; gap: 8px; }
.swipe-step {
  font-family: var(--font-mono); font-size: var(--step--2);
  letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--accent);
}
.swipe-body h4 { font-size: var(--step-1); letter-spacing: var(--tr-tight); }
.swipe-body p { color: var(--text-3); font-size: var(--step--1); line-height: 1.65; }

.swipe-dots { display: flex; justify-content: center; gap: 7px; margin-top: var(--s-2); }
.swipe-dots i {
  width: 6px; height: 6px; border-radius: var(--r-full); display: block;
  background: color-mix(in srgb, var(--text) 22%, transparent);
  transition: all var(--t-mid);
}
.swipe-dots i.on { background: var(--accent); width: 22px; }

/* Which layout is shown where — the deck is phones-only. */
.mob-only { display: none; }
@media (max-width: 820px) {
  .desk-only { display: none !important; }
  .mob-only  { display: block; }
}


/* ============================================================
   BRAND ARCHITECTURE
   Vistex Chemicals Ltd manufactures; Swift is the brand on the packaging.
   The site keeps them in a fixed relationship: Vistex owns the chrome
   (header, footer, page identity), Swift appears wherever product is the
   subject. These components make that pairing explicit and consistent.
   ============================================================ */

/* The Swift badge is a self-contained oval with its own ground, so it needs
   no plate behind it and reads on light and dark alike. */
.swift-badge { display: inline-block; line-height: 0; }
.swift-badge img { width: 100%; height: auto; display: block; }
.swift-badge--sm { width: 82px; }
.swift-badge--md { width: 132px; }
.swift-badge--lg { width: clamp(170px, 22vw, 240px); }

/* Parent company beside product brand, separated by a rule. */
.brand-lockup {
  display: flex; align-items: center; gap: var(--s-5);
  flex-wrap: wrap;
}
.brand-lockup__rule {
  width: 1px; align-self: stretch; min-height: 44px;
  background: currentColor; opacity: .22;
}
.brand-lockup__side { display: grid; gap: 6px; }
.brand-lockup__label {
  font-family: var(--font-mono); font-size: var(--step--2);
  letter-spacing: var(--tr-label); text-transform: uppercase;
  opacity: .62;
}

/* Footer pairing: the company mark, then the brand it makes. */
.footer-brands { display: grid; gap: var(--s-5); }
.footer-brands .brand-lockup__label { color: var(--aqua-300); opacity: 1; }
.footer-swift { display: flex; align-items: center; gap: var(--s-4); }
.footer-swift .swift-badge { width: 104px; flex: none; }
.footer-swift p {
  font-size: var(--step--2); color: rgba(255,255,255,.66);
  max-width: 26ch; line-height: 1.5;
}
@media (max-width: 560px) {
  .footer-swift .swift-badge { width: 88px; }
}

/* ============================================================
   GLASS — frosted panel
   One translucent surface used across the site. It only works if
   something interesting sits BEHIND it, so it is reserved for panels
   over photography, gradients or the aurora — never over flat page
   background, where it just reads as a slightly grey box.
   ============================================================ */
.glass {
  position: relative;
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--n-0) 46%, transparent);
  border: 1px solid color-mix(in srgb, var(--n-0) 62%, transparent);
  box-shadow:
    0 20px 44px -26px rgba(12, 20, 48, .45),
    inset 0 1px 0 color-mix(in srgb, #fff 60%, transparent);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
}
[data-theme="dark"] .glass {
  background: color-mix(in srgb, var(--surface) 46%, transparent);
  border-color: color-mix(in srgb, #fff 12%, transparent);
  box-shadow:
    0 22px 48px -26px rgba(0, 0, 0, .7),
    inset 0 1px 0 color-mix(in srgb, #fff 14%, transparent);
}
/* Without backdrop-filter the panel is simply transparent, and the content
   behind it makes the text unreadable — so opt out of translucency entirely. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--surface); }
  [data-theme="dark"] .glass { background: var(--surface-2); }
}
