/* ==========================================================================
   M/s Vinayak Traders — Compact Deep Ocean-Teal Design System
   23 Categorized Brand Price Lists + Direct Chemical Brand Websites
   ========================================================================== */

:root {
  --bg-base: #0B2026;
  --bg-deep: #07161B;
  --surface-card: rgba(255, 255, 255, 0.055);
  --surface-card-hover: rgba(255, 255, 255, 0.095);
  --surface-input: rgba(6, 20, 25, 0.55);

  --ink-primary: #F2F7F6;
  --ink-secondary: #B7CDD2;
  --ink-muted: #84A3AB;

  --accent-primary: #2EC4B6;
  --accent-primary-hover: #25ADA0;
  --accent-primary-ink: #052124;
  --accent-brass: #E4A951;
  --accent-brass-soft: rgba(228, 169, 81, 0.14);
  --accent-teal-soft: rgba(46, 196, 182, 0.14);

  --border-subtle: rgba(210, 238, 240, 0.12);
  --border-strong: rgba(210, 238, 240, 0.24);
  --shadow-md: 0 12px 32px -10px rgba(2, 12, 16, 0.55);
  --shadow-lg: 0 22px 48px -14px rgba(2, 10, 14, 0.65);

  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --container-max: 1120px;
  --transition: 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.58;
  color: var(--ink-primary);
  background-color: var(--bg-base);
  background-image:
    radial-gradient(circle at 85% 8%, rgba(46, 196, 182, 0.18), transparent 44%),
    radial-gradient(circle at 10% 58%, rgba(228, 169, 81, 0.09), transparent 42%),
    linear-gradient(165deg, #0E2B33 0%, #0F343D 46%, #091D23 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 18px; }
@media (min-width: 768px) { .container { padding: 0 30px; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(9, 28, 34, 0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand__mark {
  width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center;
  padding: 3px; border-radius: 10px;
  background: #F4F9FA;
  border: 1px solid rgba(228, 169, 81, 0.48);
  box-shadow: 0 3px 12px rgba(2, 12, 16, 0.36);
}
.brand__logo-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.15; letter-spacing: -0.02em; white-space: nowrap; }
.brand__sub { font-size: 11.5px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav-desktop { display: none; align-items: center; gap: 24px; }
.nav-desktop a { font-size: 14px; font-weight: 500; color: var(--ink-secondary); transition: color var(--transition); }
.nav-desktop a:hover { color: var(--accent-primary); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle); background: var(--surface-card); color: var(--ink-primary); cursor: pointer;
}
@media (min-width: 860px) { .nav-desktop { display: flex; } .menu-toggle { display: none; } }

.mobile-drawer { display: none; border-top: 1px solid var(--border-subtle); background: #0A2026; padding: 12px 18px 16px; }
.mobile-drawer.is-open { display: block; }
.mobile-drawer__links { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.mobile-drawer__links a { padding: 9px 10px; border-radius: var(--radius-sm); font-weight: 500; }
.mobile-drawer__links a:hover { background: var(--surface-card); }
.mobile-drawer__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px; line-height: 1;
  padding: 12px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent-primary); color: var(--accent-primary-ink); }
.btn--primary:hover { background: var(--accent-primary-hover); }
.btn--secondary { background: var(--surface-card); color: var(--ink-primary); border-color: var(--border-strong); }
.btn--secondary:hover { background: var(--surface-card-hover); border-color: rgba(210, 238, 240, 0.42); }
.btn--whatsapp { background: #1FA855; color: #fff; }
.btn--whatsapp:hover { background: #198E47; }
.btn--sm { padding: 9px 13px; font-size: 13px; }
.btn--header { display: none; }
@media (min-width: 560px) { .btn--header { display: inline-flex; } }

/* Sections & Typography */
.section { padding: 30px 0; }
@media (min-width: 900px) { .section { padding: 42px 0; } }
.section--finder { padding: 0 0 26px; }
.section--bordered { border-top: 1px solid var(--border-subtle); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-brass); margin: 0 0 10px;
}
.eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--accent-brass); }

h1, h2, h3 { font-family: var(--font-display); margin: 0; color: var(--ink-primary); }
h1 { font-size: clamp(26px, 4vw, 40px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 800; }
h2 { font-size: clamp(20px, 2.6vw, 27px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
h3 { font-size: 16px; line-height: 1.3; font-weight: 600; }
.lead { font-size: 15px; color: var(--ink-secondary); margin: 10px 0 0; line-height: 1.55; }
.section-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }

/* Hero */
.hero { padding: 20px 0 18px; }
@media (min-width: 900px) { .hero { padding: 28px 0 22px; } }
.hero__grid { display: block; }
.hero__content { max-width: 780px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hero__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-subtle); font-size: 13px;
}
.gst-chip {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--accent-brass);
  background: var(--accent-brass-soft); border: 1px solid rgba(228, 169, 81, 0.3);
  padding: 4px 9px; border-radius: 6px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.gst-chip:hover { background: rgba(228, 169, 81, 0.22); }
.hours-tag {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--accent-primary);
  background: var(--accent-teal-soft); border: 1px solid rgba(46, 196, 182, 0.25);
  padding: 4px 9px; border-radius: 6px;
}

/* 5 Divisions Strip */
.divisions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 28px; }
@media (min-width: 768px) { .divisions-grid { grid-template-columns: repeat(5, 1fr); gap: 12px; } }
.division-tile { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 13px; }
.division-tile__icon { width: 28px; height: 28px; border-radius: 6px; background: var(--accent-teal-soft); color: var(--accent-primary); display: grid; place-items: center; margin-bottom: 8px; }
.division-tile h3 { font-size: 14px; margin-bottom: 3px; }
.division-tile p { margin: 0; font-size: 12px; line-height: 1.45; color: var(--ink-muted); }

/* Price Lists Panel */
.catalogue-panel {
  background: rgba(6, 22, 27, 0.56);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  box-shadow: var(--shadow-md);
}
@media (min-width: 768px) { .catalogue-panel { padding: 26px 24px; } }

.catalogue-top {
  display: flex; flex-direction: column; gap: 12px;
}
@media (min-width: 760px) {
  .catalogue-top { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}

.search-box { position: relative; width: 100%; max-width: 280px; }
.search-box__icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-muted); pointer-events: none; }
.search-box__input {
  width: 100%; padding: 8px 12px 8px 34px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface-input);
  color: var(--ink-primary); font-size: 13.5px;
}
.search-box__input::placeholder { color: var(--ink-muted); }
.search-box__input:focus { outline: none; border-color: var(--accent-primary); }

.filter-tabs {
  display: flex; align-items: center; gap: 7px; overflow-x: auto;
  padding-bottom: 4px; margin: 16px 0 4px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar { display: none; }

.filter-tab {
  font-family: var(--font-display); font-size: 12.5px; font-weight: 600;
  padding: 7px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle); background: var(--surface-card);
  color: var(--ink-secondary); cursor: pointer; white-space: nowrap;
  transition: all var(--transition);
}
.filter-tab:hover { border-color: var(--border-strong); color: var(--ink-primary); }
.filter-tab.is-active { background: var(--accent-primary); border-color: var(--accent-primary); color: var(--accent-primary-ink); }

.catalogue-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
.catalogue-grid[hidden] { display: none; }
@media (min-width: 680px) { .catalogue-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .catalogue-grid { grid-template-columns: repeat(3, 1fr); } }

.cat-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  padding: 13px 14px; transition: background var(--transition), border-color var(--transition);
}
.cat-card:hover { background: var(--surface-card-hover); border-color: rgba(46, 196, 182, 0.42); }
.cat-card__info { min-width: 0; flex: 1; }
.cat-card__meta {
  display: flex; align-items: center; gap: 6px; font-family: var(--font-mono);
  font-size: 10.5px; color: var(--accent-brass); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 3px;
}
.cat-card__size { color: var(--ink-muted); }
.cat-card__title { font-family: var(--font-display); font-size: 14.5px; font-weight: 700; color: var(--ink-primary); line-height: 1.25; }
.cat-card__sub { font-size: 12px; color: var(--ink-muted); margin-top: 2px; }

.cat-card__actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.icon-view-btn {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px;
  border: 1px solid var(--border-strong); background: rgba(6, 20, 25, 0.45); color: var(--ink-secondary);
  transition: color var(--transition), border-color var(--transition);
}
.icon-view-btn:hover { color: var(--accent-primary); border-color: var(--accent-primary); }

.dl-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  padding: 8px 11px; border-radius: 6px;
  background: var(--accent-primary); color: var(--accent-primary-ink);
  transition: background var(--transition);
}
.dl-btn:hover { background: var(--accent-primary-hover); }

.empty-state {
  text-align: center; padding: 26px 14px; font-size: 14px; color: var(--ink-muted);
  border: 1px dashed var(--border-strong); border-radius: var(--radius-md);
}

/* Direct Official Brand Websites Strip */
.brand-portals {
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border-subtle);
}
.brand-portals__label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-brass); margin: 0 0 11px;
}
.brand-portals__grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .brand-portals__grid { grid-template-columns: repeat(2, 1fr); } }
.brand-link-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 15px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(228, 169, 81, 0.1), rgba(46, 196, 182, 0.08));
  border: 1px solid rgba(228, 169, 81, 0.28);
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
}
.brand-link-card:hover {
  border-color: var(--accent-brass);
  background: linear-gradient(135deg, rgba(228, 169, 81, 0.18), rgba(46, 196, 182, 0.12));
  transform: translateY(-2px);
}
.brand-link-card__name { font-family: var(--font-display); font-size: 14.5px; font-weight: 700; color: var(--ink-primary); }
.brand-link-card__sub { font-size: 12px; color: var(--ink-secondary); margin-top: 2px; }
.brand-link-card__cta { flex-shrink: 0; font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; color: var(--accent-brass); white-space: nowrap; }

/* Offices & Contact */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
@media (min-width: 880px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 22px; } }
.panel-card { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 20px 18px; }
.office-list { display: grid; grid-template-columns: 1fr; gap: 11px; margin-bottom: 16px; }
@media (min-width: 540px) { .office-list { grid-template-columns: 1fr 1fr; } }
.office-box { background: rgba(6, 20, 25, 0.45); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); padding: 13px; display: flex; flex-direction: column; justify-content: space-between; gap: 9px; }
.office-box__tag { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-brass); display: block; margin-bottom: 4px; }
.office-box__addr { font-size: 13.5px; color: var(--ink-secondary); margin: 0; line-height: 1.5; }
.office-box__map { font-size: 12.5px; font-weight: 600; color: var(--accent-primary); }
.direct-rows { display: flex; flex-direction: column; gap: 9px; padding-top: 13px; border-top: 1px solid var(--border-subtle); font-size: 14px; }
.direct-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.direct-row__label { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-muted); }
.direct-row__val { font-weight: 500; color: var(--ink-primary); word-break: break-word; }

.form-grid { display: grid; grid-template-columns: 1fr; gap: 11px; margin-top: 13px; }
@media (min-width: 520px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink-secondary); }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface-input); color: var(--ink-primary); font-size: 14px;
}
.field select option { background: #0B2026; color: #F2F7F6; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.16); }
.field textarea { min-height: 78px; resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 13px; }
.form-actions .btn { flex: 1 1 145px; }

/* Footer & Toast */
.site-footer { border-top: 1px solid var(--border-subtle); background: rgba(5, 17, 21, 0.72); padding: 18px 0; font-size: 13px; color: var(--ink-muted); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.footer__gst { font-family: var(--font-mono); font-size: 12px; color: var(--accent-brass); }
.toast {
  position: fixed; right: 16px; bottom: 16px; z-index: 140; background: #06171C; color: #F2F7F6;
  border: 1px solid rgba(46, 196, 182, 0.4); font-size: 13px; font-weight: 500;
  padding: 10px 14px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 200ms ease, transform 200ms ease;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Animations, Ambient Background Drift & Brand Marquee
   ========================================================================== */
.ambient-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.42;
  will-change: transform;
}

.ambient-orb--teal {
  width: 460px;
  height: 460px;
  top: -120px;
  right: -90px;
  background: radial-gradient(circle, rgba(46, 196, 182, 0.42) 0%, transparent 70%);
  animation: orbDriftA 18s ease-in-out infinite alternate;
}

.ambient-orb--brass {
  width: 400px;
  height: 400px;
  bottom: 8%;
  left: -120px;
  background: radial-gradient(circle, rgba(228, 169, 81, 0.24) 0%, transparent 70%);
  animation: orbDriftB 22s ease-in-out infinite alternate;
}

@keyframes orbDriftA {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-48px, 56px) scale(1.12); }
}

@keyframes orbDriftB {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(54px, -42px) scale(1.1); }
}

/* Staggered Hero Entrance */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-anim {
  opacity: 0;
  animation: fadeUp 680ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--d, 0) * 90ms);
}

/* Floating Hero Workbench Frame + Subtle Slow Zoom */
@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

@keyframes heroZoom {
  0%   { transform: scale(1); }
  100% { transform: scale(1.06); }
}

.hero__frame {
  animation: fadeUp 780ms cubic-bezier(0.22, 1, 0.36, 1) 180ms backwards,
             gentleFloat 6.5s ease-in-out 960ms infinite;
}

.hero__img {
  animation: heroZoom 18s ease-in-out infinite alternate;
  will-change: transform;
}

/* Glossy Sheen Sweep on Hero Primary CTA */
.btn--sheen {
  position: relative;
  overflow: hidden;
}

.btn--sheen::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -75%;
  width: 48%;
  height: 140%;
  background: linear-gradient(110deg, transparent 10%, rgba(255, 255, 255, 0.45) 50%, transparent 90%);
  transform: skewX(-20deg);
  animation: btnSheen 4.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  pointer-events: none;
}

@keyframes btnSheen {
  0%, 58% { left: -75%; }
  100%    { left: 135%; }
}

/* Brand Flask Emblem Hover Tilt */
.brand__mark {
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}
.brand:hover .brand__mark {
  transform: rotate(-8deg) scale(1.06);
}

/* Continuous Infinite Brand Marquee Strip */
.brand-marquee {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(6, 20, 25, 0.46);
  padding: 11px 0;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

.brand-marquee__track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 34s linear infinite;
}

.brand-marquee:hover .brand-marquee__track {
  animation-play-state: paused;
}

.brand-marquee__group {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
}

.brand-marquee__item {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 26px;
}

.brand-marquee__item::after {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-brass);
  opacity: 0.75;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Scroll-Triggered Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--stagger, 0) * 65ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Interactive Division Tile & Price List Card Micro-Interactions */
.division-tile {
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
              background var(--transition),
              border-color var(--transition);
}
.division-tile:hover {
  transform: translateY(-4px);
  background: var(--surface-card-hover);
  border-color: rgba(46, 196, 182, 0.4);
}
.division-tile__icon {
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), background var(--transition);
}
.division-tile:hover .division-tile__icon {
  transform: scale(1.12) rotate(-4deg);
  background: rgba(46, 196, 182, 0.24);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.cat-card {
  animation: cardIn 360ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--i, 0) * 35ms);
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -10px rgba(2, 12, 16, 0.5);
}
.cat-card:hover .dl-btn svg {
  animation: dlBounce 600ms ease infinite;
}

@keyframes dlBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(2.5px); }
}

.brand-link-card__cta {
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.brand-link-card:hover .brand-link-card__cta {
  transform: translate(3px, -2px);
}

/* ==========================================================================
   Chemical & CAS No. Live Price Finder
   ========================================================================== */
.chem-finder {
  background: linear-gradient(155deg, rgba(11, 40, 48, 0.86), rgba(6, 22, 27, 0.78));
  border: 1px solid rgba(46, 196, 182, 0.34);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .chem-finder { padding: 26px 24px; }
}

.finder-cats {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-top: 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.finder-cats::-webkit-scrollbar { display: none; }

.finder-cat-btn {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}
.finder-cat-btn:hover {
  border-color: var(--border-strong);
  color: var(--ink-primary);
}
.finder-cat-btn.is-active {
  background: var(--accent-brass);
  border-color: var(--accent-brass);
  color: #081A1F;
}

.chem-finder__controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

@media (min-width: 720px) {
  .chem-finder__controls {
    grid-template-columns: 240px 1fr;
    gap: 12px;
  }
}

.chem-select {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-input);
  color: var(--ink-primary);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.chem-select option,
.chem-select optgroup {
  background: #0B2026;
  color: #F2F7F6;
}

.chem-select optgroup {
  color: var(--accent-brass);
  font-weight: 700;
}

.chem-select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.18);
}

.chem-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.chem-search-wrap__icon {
  position: absolute;
  left: 13px;
  color: var(--accent-primary);
  pointer-events: none;
}

.chem-search-input {
  width: 100%;
  padding: 11px 38px 11px 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-input);
  color: var(--ink-primary);
  font-size: 14.5px;
}

.chem-search-input::placeholder {
  color: var(--ink-muted);
}

.chem-search-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.18);
}

.chem-search-clear {
  position: absolute;
  right: 8px;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-secondary);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 15px;
  line-height: 1;
}

.chem-search-clear[hidden] {
  display: none;
}

.chem-quick-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-muted);
}

.quick-chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.quick-chip:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--accent-teal-soft);
}

.chem-status-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--ink-secondary);
}

.chem-status-bar[hidden] {
  display: none;
}

.chem-results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
  margin-top: 12px;
}

@media (min-width: 760px) {
  .chem-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.chem-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: cardIn 300ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--i, 0) * 24ms);
}

.chem-card:hover {
  border-color: rgba(46, 196, 182, 0.42);
  background: var(--surface-card-hover);
}

.chem-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.chem-brand-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-brass);
  background: var(--accent-brass-soft);
  padding: 3px 8px;
  border-radius: 5px;
}

.chem-cas-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-primary);
  background: var(--accent-teal-soft);
  border: 1px solid rgba(46, 196, 182, 0.25);
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
}

.chem-cas-btn:hover {
  background: rgba(46, 196, 182, 0.24);
}

.chem-meta-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-secondary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: 5px;
}

.chem-card__name {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.3;
}

.chem-packs {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 2px;
}

.chem-pack-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(6, 20, 25, 0.48);
  border: 1px solid rgba(210, 238, 240, 0.08);
  font-size: 13px;
}

.chem-pack-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.chem-pack-size {
  font-weight: 600;
  color: var(--ink-primary);
}

.chem-pack-code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.chem-pack-price {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-primary);
  white-space: nowrap;
}

.chem-pack-price--por {
  color: var(--accent-brass);
}

.chem-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--border-subtle);
}

.chem-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #5EEAD4;
  transition: color var(--transition);
}

.chem-wa-btn:hover {
  color: #ffffff;
  text-decoration: underline;
}

.chem-more-wrap {
  text-align: center;
  margin-top: 14px;
}

/* ==========================================================================
   Header Quote Button & Pack "+ Quote" Controls
   ========================================================================== */
.header-quote-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 11px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(228, 169, 81, 0.36);
  background: rgba(228, 169, 81, 0.12);
  color: var(--ink-primary);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.header-quote-btn:hover {
  background: rgba(228, 169, 81, 0.22);
  border-color: var(--accent-brass);
}
.header-quote-btn svg { color: var(--accent-brass); flex-shrink: 0; }
.header-quote-btn__label { display: none; }
@media (min-width: 420px) { .header-quote-btn__label { display: inline; } }

.quote-badge {
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent-brass);
  color: #081A1F;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.quote-badge[hidden] { display: none; }

.chem-pack-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pack-add-btn {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid rgba(46, 196, 182, 0.35);
  background: rgba(46, 196, 182, 0.12);
  color: #7CF0E4;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}
.pack-add-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--accent-primary-ink);
}
.pack-add-btn.is-in-cart {
  background: rgba(228, 169, 81, 0.2);
  border-color: var(--accent-brass);
  color: var(--accent-brass);
}

.chem-compare-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #081A1F;
  background: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  padding: 3px 9px;
  border-radius: 5px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.chem-compare-btn:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   Floating Mobile WhatsApp, Call & Quote Dock
   ========================================================================== */
.site-footer { padding-bottom: 84px; }

.fab-dock {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 160;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(7, 22, 27, 0.92);
  border: 1px solid rgba(210, 238, 240, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px -6px rgba(0, 0, 0, 0.72);
}

.fab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--transition), filter var(--transition);
}
.fab-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.fab-btn:active { transform: translateY(0); }
.fab-btn[hidden] { display: none; }

.fab-btn--quote {
  background: var(--accent-brass);
  color: #081A1F;
}
.fab-btn--call {
  background: rgba(46, 196, 182, 0.16);
  border-color: rgba(46, 196, 182, 0.4);
  color: #7CF0E4;
}
.fab-btn--wa {
  background: #1FA855;
  color: #FFFFFF;
}

@media (max-width: 420px) {
  .fab-dock { right: 10px; bottom: 10px; gap: 6px; padding: 5px; }
  .fab-btn { height: 36px; padding: 0 11px; font-size: 12.5px; }
}

.toast { bottom: 72px; }

/* ==========================================================================
   Shared Modal / Slide Sheet (Quote Cart + Brand Price Comparison)
   ========================================================================== */
.vt-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.vt-modal[hidden] { display: none; }

@media (min-width: 680px) {
  .vt-modal { align-items: center; padding: 20px; }
}

.vt-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 11, 14, 0.74);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.vt-modal__sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, #0D2931 0%, #081B21 100%);
  border: 1px solid var(--border-strong);
  border-radius: 18px 18px 0 0;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalUp 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (min-width: 680px) {
  .vt-modal__sheet { border-radius: var(--radius-lg); max-height: 84vh; }
  .vt-modal__sheet--drawer { max-width: 540px; }
  .vt-modal__sheet--wide { max-width: 960px; }
}

@keyframes modalUp {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.vt-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(6, 20, 25, 0.55);
}

.vt-modal__close {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  color: var(--ink-primary);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.vt-modal__close:hover { background: var(--surface-card-hover); border-color: var(--border-strong); }

.vt-modal__body {
  padding: 14px 18px;
  overflow-y: auto;
  flex: 1;
}

.vt-modal__foot {
  padding: 14px 18px 16px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(6, 20, 25, 0.72);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vt-modal__foot[hidden] { display: none; }

/* Quote Cart Items */
.cart-empty {
  text-align: center;
  padding: 28px 12px;
  color: var(--ink-muted);
  font-size: 14px;
}
.cart-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.cart-item {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cart-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.cart-item__brand {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-brass);
}
.cart-item__name {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.28;
  margin-top: 2px;
}
.cart-item__meta {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
}
.cart-item__del {
  background: transparent;
  border: none;
  color: var(--ink-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}
.cart-item__del:hover { color: #FCA5A5; }

.cart-item__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  overflow: hidden;
  background: rgba(6, 20, 25, 0.55);
}
.qty-stepper button {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--ink-primary);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.qty-stepper button:hover { background: rgba(46, 196, 182, 0.18); }
.qty-stepper span {
  min-width: 28px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-secondary);
}
.cart-total-val {
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--accent-primary);
}
.cart-note {
  margin: -4px 0 0;
  font-size: 11.5px;
  color: var(--ink-muted);
}
.cart-buyer-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 480px) {
  .cart-buyer-row { grid-template-columns: 1.2fr 0.8fr; }
}
.cart-mini-input {
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-input);
  color: var(--ink-primary);
  font-size: 13px;
}
.cart-mini-input option { background: #0B2026; color: #F2F7F6; }
.cart-foot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cart-foot-actions .btn--whatsapp { flex: 1; }

/* Side-by-Side Brand Price Comparison Modal */
.compare-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-secondary);
}
.compare-filters {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(6, 20, 25, 0.35);
  scrollbar-width: none;
}
.compare-filters::-webkit-scrollbar { display: none; }
.compare-filters[hidden] { display: none; }

.compare-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(255px, 82vw);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 720px) {
  .compare-grid {
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
    grid-auto-columns: unset;
    overflow-x: visible;
  }
}

.compare-col {
  scroll-snap-align: start;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.compare-col--best {
  border-color: rgba(228, 169, 81, 0.55);
  background: linear-gradient(165deg, rgba(228, 169, 81, 0.08), rgba(255, 255, 255, 0.045));
}
.compare-col__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.compare-best-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #081A1F;
  background: var(--accent-brass);
  padding: 2px 7px;
  border-radius: 999px;
}
.compare-col__name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  line-height: 1.32;
}
.compare-packs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ==========================================================================
   Voice Search Mic Button (Inside Product Search Bar)
   ========================================================================== */
.chem-search-input {
  padding-right: 78px;
}

.chem-search-clear {
  right: 44px;
}

.chem-voice-btn {
  position: absolute;
  right: 7px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(46, 196, 182, 0.34);
  background: rgba(46, 196, 182, 0.14);
  color: var(--accent-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), color var(--transition);
}
.chem-voice-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--accent-primary-ink);
}
.chem-voice-btn.is-listening {
  background: var(--accent-brass);
  border-color: var(--accent-brass);
  color: #081A1F;
  animation: voicePulse 1.15s ease-in-out infinite;
}

@keyframes voicePulse {
  0%   { box-shadow: 0 0 0 0 rgba(228, 169, 81, 0.65); }
  70%  { box-shadow: 0 0 0 10px rgba(228, 169, 81, 0); }
  100% { box-shadow: 0 0 0 0 rgba(228, 169, 81, 0); }
}

/* ==========================================================================
   Interactive Visual Showcase (High-Res Lab Photo Gallery + Lightbox)
   ========================================================================== */
.showcase-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.showcase-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  white-space: nowrap;
}
@media (min-width: 900px) { .showcase-hint { display: none; } }

.showcase-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 78vw);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 28px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.showcase-grid::-webkit-scrollbar { display: none; }

@media (min-width: 680px) {
  .showcase-grid {
    grid-auto-flow: row;
    grid-auto-columns: unset;
    grid-template-columns: repeat(2, 1fr);
    overflow-x: visible;
  }
}
@media (min-width: 980px) {
  .showcase-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
  }
  .showcase-card:nth-child(1),
  .showcase-card:nth-child(2) { grid-column: span 3; }
  .showcase-card:nth-child(3),
  .showcase-card:nth-child(4),
  .showcase-card:nth-child(5) { grid-column: span 2; }
}

.showcase-card {
  position: relative;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-deep);
  min-height: 225px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-md);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), border-color var(--transition), box-shadow 280ms ease;
}
.showcase-card:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 196, 182, 0.55);
  box-shadow: var(--shadow-lg);
}

.showcase-card__media {
  position: absolute;
  inset: 0;
  cursor: pointer;
}
.showcase-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}
.showcase-card:hover .showcase-card__img {
  transform: scale(1.07);
}
.showcase-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 20, 25, 0.14) 0%, rgba(6, 20, 25, 0.52) 48%, rgba(5, 17, 22, 0.94) 100%);
  pointer-events: none;
}

.showcase-card__top {
  position: absolute;
  top: 11px;
  left: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.showcase-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-brass);
  background: rgba(7, 22, 27, 0.78);
  border: 1px solid rgba(228, 169, 81, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 3px 9px;
  border-radius: 999px;
}
.showcase-zoom-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(210, 238, 240, 0.25);
  background: rgba(7, 22, 27, 0.72);
  color: var(--ink-primary);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.showcase-zoom-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--accent-primary-ink);
}

.showcase-card__body {
  position: relative;
  z-index: 2;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.showcase-card__body h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: #FFFFFF;
}
.showcase-card__body p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.42;
  color: var(--ink-secondary);
}
.showcase-action {
  margin-top: 6px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: #5EEAD4;
  background: rgba(46, 196, 182, 0.14);
  border: 1px solid rgba(46, 196, 182, 0.34);
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.showcase-action:hover {
  background: var(--accent-primary);
  color: var(--accent-primary-ink);
}

/* Lightbox Modal */
.lightbox-stage {
  position: relative;
  background: #041014;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}
.lightbox-img {
  width: 100%;
  max-height: 52vh;
  object-fit: cover;
  display: block;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(210, 238, 240, 0.3);
  background: rgba(6, 20, 25, 0.78);
  color: #FFFFFF;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lightbox-nav:hover { background: var(--accent-primary); color: var(--accent-primary-ink); }
.lightbox-nav--prev { left: 10px; }
.lightbox-nav--next { right: 10px; }

.lightbox-meta {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lightbox-meta p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-secondary);
}
.lightbox-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

/* ==========================================================================
   Built-in Lab Calculators Popup (Molarity, Dilution, % / ppm, Units)
   ========================================================================== */
.nav-link-btn {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: color var(--transition);
}
.nav-link-btn:hover { color: var(--accent-primary); }

.drawer-link-btn {
  background: transparent;
  border: none;
  text-align: left;
  width: 100%;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--accent-primary);
  cursor: pointer;
}
.drawer-link-btn:hover { background: var(--surface-card); }

.calc-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--ink-primary);
  background: rgba(46, 196, 182, 0.16);
  border-color: rgba(46, 196, 182, 0.42);
  transition: background var(--transition), border-color var(--transition);
}
.calc-hero-btn:hover {
  background: rgba(46, 196, 182, 0.28);
  border-color: var(--accent-primary);
}

.calc-tabs {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(6, 20, 25, 0.35);
  scrollbar-width: none;
}
.calc-tabs::-webkit-scrollbar { display: none; }
.calc-tabs--inline {
  padding: 0 0 6px;
  margin: 14px 0 14px;
  background: transparent;
  border-bottom: 1px solid var(--border-subtle);
}

/* Prominent Top 2-Tab Bar (Product Search | Lab Calculators) */
.workbench-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.workbench-tab {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: rgba(8, 28, 34, 0.78);
  color: var(--ink-secondary);
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.workbench-tab:hover {
  transform: translateY(-2px);
  border-color: rgba(46, 196, 182, 0.5);
  background: rgba(12, 42, 50, 0.88);
  color: var(--ink-primary);
}
.workbench-tab__icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-primary);
  display: grid;
  place-items: center;
  transition: background var(--transition), color var(--transition);
}
.workbench-tab--calc .workbench-tab__icon {
  background: rgba(228, 169, 81, 0.14);
  color: var(--accent-brass);
}
.workbench-tab__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.workbench-tab__text strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.2;
}
.workbench-tab__text span {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workbench-tab.is-active {
  background: linear-gradient(155deg, rgba(46, 196, 182, 0.22), rgba(11, 40, 48, 0.92));
  border-color: var(--accent-primary);
  box-shadow: 0 8px 24px -10px rgba(46, 196, 182, 0.45);
}
.workbench-tab.is-active .workbench-tab__icon {
  background: var(--accent-primary);
  color: var(--accent-primary-ink);
}
.workbench-tab--calc.is-active {
  background: linear-gradient(155deg, rgba(228, 169, 81, 0.22), rgba(11, 40, 48, 0.92));
  border-color: var(--accent-brass);
  box-shadow: 0 8px 24px -10px rgba(228, 169, 81, 0.42);
}
.workbench-tab--calc.is-active .workbench-tab__icon {
  background: var(--accent-brass);
  color: #081A1F;
}

@media (max-width: 480px) {
  .workbench-tabs { gap: 8px; }
  .workbench-tab { padding: 11px 10px; gap: 8px; }
  .workbench-tab__icon { width: 32px; height: 32px; border-radius: 8px; }
  .workbench-tab__text strong { font-size: 13.5px; }
  .workbench-tab__text span { font-size: 11px; }
}

.wb-pane[hidden] { display: none; }
.calc-pane[hidden] { display: none; }

.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
}
@media (min-width: 520px) {
  .calc-grid--2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 760px) {
  .calc-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.calc-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
}
.calc-input-row {
  display: flex;
  gap: 6px;
}
.calc-input-row input { flex: 1; min-width: 0; }
.calc-input-row select { width: 84px; flex-shrink: 0; }

.calc-ctrl {
  width: 100%;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-input);
  color: var(--ink-primary);
  font-size: 14px;
}
.calc-ctrl:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.16);
}
.calc-ctrl option { background: #0B2026; color: #F2F7F6; }

.calc-result-box {
  margin-top: 14px;
  padding: 14px 15px;
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, rgba(46, 196, 182, 0.13), rgba(6, 22, 27, 0.72));
  border: 1px solid rgba(46, 196, 182, 0.38);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.calc-result-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-brass);
}
.calc-result-val {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.15;
}
.calc-result-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-secondary);
}
.calc-result-desc strong { color: var(--ink-primary); }

.calc-result-warn {
  border-color: rgba(228, 169, 81, 0.55);
  background: rgba(228, 169, 81, 0.1);
}

.calc-conv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}
.calc-conv-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(6, 20, 25, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--ink-primary);
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .ambient-orb, .hero-anim, .hero__frame, .hero__img, .btn--sheen::after,
  .brand-marquee__track, .cat-card, .cat-card:hover .dl-btn svg, .vt-modal__sheet,
  .chem-voice-btn.is-listening {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

