/* ============================================
   styles.css — Global styles & CSS variables
   ============================================ */

/* Variables */
:root {
  /* Colors */
  --bg-light:          #f5f5f7;
  --bg-white:          #ffffff;
  --text-primary:      #1d1d1f;
  --text-secondary:    #6e6e73;
  --text-muted:        #a1a1a6;
  --accent-blue:       #0071e3;
  --accent-blue-hover: #0077ed;
  --accent-orange:     #e8590c;
  --border:            #d2d2d7;

  /* Category tag colors */
  --tag-scara-bg:    #e8edff; --tag-scara-color:  #3451b2;
  --tag-6axis-bg:    #f0e8ff; --tag-6axis-color:  #6741d9;
  --tag-collab-bg:   #e6f9ee; --tag-collab-color: #2b8a3e;

  /* Elevation */
  --card-shadow:       0 2px 8px rgba(0,0,0,0.06);
  --card-shadow-hover: 0 8px 28px rgba(0,0,0,0.10);
  --radius: 18px;

  /* Specs table header */
  --table-header-bg: #1460aa;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Prevent Safari iOS from auto-enlarging font sizes in narrow table cells */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* Base */
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-light);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.5;
}

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 48px; }

/* Prevent horizontal overflow — only on body, not html.
   Safari stops recalculating viewport width for media queries
   when overflow-x: hidden is set on the html element. */
body { overflow-x: hidden; }

/* Responsive container */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

/* ============================================
   index.html — Page layout
   ============================================ */

/* EXPLORE */
.section-explore { background: var(--bg-light); padding: 60px 0 72px; }
.section-explore h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
/* minmax(0, 1fr) prevents Safari from holding stale track sizes on resize */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

/* CONTROL */
.section-control { background: var(--bg-light); padding: 72px 0 80px; }

/* ACCESSORIES */
.section-accessories { background: var(--bg-white); padding: 72px 0 80px; }
.accessories-grid-top {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px; margin-bottom: 20px;
}
.accessories-grid-bottom { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

/* CTA */
.section-cta { background: var(--bg-light); padding: 72px 0 80px; }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .product-grid         { grid-template-columns: repeat(2, 1fr); }
  .accessories-grid-top { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .section-explore      { padding: 40px 0 52px; }
  .section-control      { padding: 48px 0 56px; }
  .section-accessories  { padding: 48px 0 56px; }
  .section-cta          { padding: 48px 0 56px; }
  .product-grid         { grid-template-columns: 1fr; }
  .accessories-grid-top { grid-template-columns: 1fr 1fr; }
  .accessories-grid-bottom { grid-template-columns: 1fr; }
  .cta-grid             { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .accessories-grid-top { grid-template-columns: 1fr; }
  .section-explore      { padding-top: 24px; }
}

/* ============================================
   product.html — Page layout
   ============================================ */

/* Offset section anchors below the sticky nav (logo row ~40px + links row ~30px) */
section[id] { scroll-margin-top: 70px; }
/* Extra offset on pages with the breadcrumb row (~27px taller) */
body.page-has-breadcrumb section[id] { scroll-margin-top: 97px; }

/* Full-width showcase — no container, flush to viewport edges */
.section-showcase { display: block; }

.section-features  { background: var(--bg-white); padding: 72px 0 80px; }

.section-gyroplus  { background: var(--bg-white); padding: 72px 0 80px; }

.section-gallery      { background: var(--bg-light); padding: 72px 0 80px; }
.section-applications { background: var(--bg-light); padding: 72px 0 80px; }

.section-specs     { background: var(--bg-white); padding: 72px 0 80px; }
.section-specs--alt { background: var(--bg-light); }

/* Sub-heading between grouped specs tables on accessory pages */
.specs-group-heading {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 44px 0 14px;
}
.specs-group-heading:first-of-type { margin-top: 0; }

/* GyroPlus layout */
.gyroplus-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.gyroplus-eyebrow {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-blue);
}
.gyroplus-eyebrow--scara { color: var(--tag-scara-color); }
.gyroplus-eyebrow--6axis { color: var(--tag-6axis-color); }
.gyroplus-eyebrow--cobot  { color: var(--tag-collab-color); }
/* Override .section-header p when an eyebrow is placed inside it */
.section-header .gyroplus-eyebrow { font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.section-header .gyroplus-eyebrow--cobot { color: var(--tag-collab-color); }
.gyroplus-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}
.gyroplus-text p:not(.gyroplus-eyebrow) {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}
.gyroplus-text p:last-child { margin-bottom: 0; }
.gyroplus-text ul {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 14px 1.25em;
  padding: 0;
}
.gyroplus-text ul li { margin-bottom: 4px; }

/* Responsive 16:9 video embed */
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow-hover);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 1024px) {
  .gyroplus-layout { gap: 36px; }
}
@media (max-width: 768px) {
  .section-features  { padding: 24px 0 56px; }
  .section-gyroplus  { padding: 48px 0 56px; }
  .section-gallery      { padding: 48px 0 56px; }
  .section-applications { padding: 48px 0 56px; }
  .section-specs     { padding: 48px 0 56px; }
  .gyroplus-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ══ TP Accessory page — product showcase + timeline ══ */

/* Three product images side by side */
.tp-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
  margin-bottom: 72px;
}
/* Reset button defaults; each product is a clickable tray card */
.tp-product {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: var(--bg-light);
  border: none;
  padding: 32px 24px 24px;
  cursor: pointer;
  border-radius: var(--radius);
  box-shadow: none;
  transition: box-shadow 0.18s ease, transform 0.15s ease;
}
.tp-product:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.tp-product img {
  width: 100%;
  max-width: 300px;
  height: 240px;
  object-fit: contain;
}
.tp-product-name {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

/* Timeline: vertical line + label | node | card rows */
.tp-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
/* The vertical line runs through the node column */
.tp-timeline::before {
  content: '';
  position: absolute;
  left: calc(50% - 1px);
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
  z-index: 0;
}
.tp-timeline__item {
  display: grid;
  grid-template-columns: 1fr 52px 1fr;
  align-items: center;
  gap: 28px;
  position: relative;
}
.tp-timeline__label {
  text-align: right;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
}
/* Circular node sitting on the line */
.tp-timeline__node {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 2px solid var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: color 0.2s, border-color 0.2s;
}
/* Glow rays hidden by default */
.tp-timeline__node .bulb-rays {
  opacity: 0;
  transition: opacity 0.2s;
}
/* On item hover: darken node, reveal rays */
.tp-timeline__item:hover .tp-timeline__node {
  color: #0050a0;
  border-color: #0050a0;
}
.tp-timeline__item:hover .tp-timeline__node .bulb-rays {
  opacity: 1;
}
/* Card bubble on the right */
.tp-timeline__card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 18px 22px;
  transition: background 0.2s, box-shadow 0.2s;
}
/* On item hover: card pops with a light blue tint */
.tp-timeline__item:hover .tp-timeline__card {
  background: var(--tag-scara-bg);
  box-shadow: var(--card-shadow-hover);
}
.tp-timeline__card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 600px) {
  .tp-products {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 48px;
  }
  .tp-product img { height: 200px; }
  /* On mobile: vertical stack, node hidden but column kept for indent */
  .tp-timeline::before { display: none; }
  .tp-timeline__item {
    grid-template-columns: 52px 1fr;
    grid-template-rows: auto auto;
    gap: 4px 16px;
  }
  .tp-timeline__label {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
  }
  .tp-timeline__node {
    display: none;
  }
  .tp-timeline__card {
    grid-column: 2;
    grid-row: 2;
  }
}

/* ══ Video section — shared across all accessory pages ══ */

.section-videos { background: var(--bg-light); padding: 72px 0 80px; }

/* Per-page margin between the tab pills and the embed */
.vision-video-tabs,
.forcesensor-video-tabs,
.partsfeeder-video-tabs,
.gx-video-tabs,
.vt-video-tabs,
.n-video-tabs,
.c-video-tabs,
.cx-video-tabs,
.ax-video-tabs,
.rs-video-tabs,
.t-video-tabs,
.ls-video-tabs { margin-bottom: 28px; }

@media (max-width: 768px) {
  .section-videos { padding: 48px 0 56px; }
}
@media (max-width: 480px) {
  /* When video tab pills are wrapped in the carousel, move their margin
     to the wrapper so it doesn't inflate the pill height */
  .filter-carousel-wrap > .vision-video-tabs,
  .filter-carousel-wrap > .forcesensor-video-tabs,
  .filter-carousel-wrap > .partsfeeder-video-tabs,
  .filter-carousel-wrap > .gx-video-tabs,
  .filter-carousel-wrap > .vt-video-tabs,
  .filter-carousel-wrap > .n-video-tabs,
  .filter-carousel-wrap > .c-video-tabs,
  .filter-carousel-wrap > .cx-video-tabs,
  .filter-carousel-wrap > .ax-video-tabs,
  .filter-carousel-wrap > .rs-video-tabs,
  .filter-carousel-wrap > .t-video-tabs,
  .filter-carousel-wrap > .ls-video-tabs { margin-bottom: 0; }
  .section-videos .filter-carousel-wrap { margin-bottom: 28px; }
}

/* ══ Force Sensor Accessory page — hero image with title ══ */

.fs-hero {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 56px;
  align-items: center;
}

.fs-hero__text { padding-left: 20%; white-space: nowrap; }

.fs-hero__title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-primary);
}

.fs-hero__image { margin: 0; }

.fs-hero__image img {
  width: 100%;
  height: 528px;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .fs-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .fs-hero__text { padding-left: 0; white-space: normal; }
  .fs-hero__image img {
    margin: 0 auto;
    height: 380px;
  }
}

@media (max-width: 480px) {
  .fs-hero__image img {
    height: 260px;
  }
}

/* ══ Vision Accessory page — system connection diagram ══ */

.vision-diagram {
  margin-top: 48px;
  /* allows the diagram to scroll on very small screens */
  overflow-x: auto;
}

/* Flex row — top row (RC800 + GX8) and bottom row (CV2 + cameras) */
.vd-row {
  display: flex;
  align-items: center;
  min-width: 560px;
}

/* Component node */
.vd-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
  flex-shrink: 0;
}

.vd-node img {
  object-fit: contain;
  display: block;
}

.vd-node figcaption {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

/* Node sizes */
.vd-node--rc800      { width: 280px; }
.vd-node--rc800 img { width: 100%; height: 170px; }
.vd-node--gx8        { width: 220px; }
.vd-node--gx8 img   { width: 100%; height: 260px; }
.vd-node--cv2        { width: 280px; }
.vd-node--cv2 img   { width: 100%; height: 110px; }

/* Horizontal connection line */
.vd-hline {
  flex: 1;
  min-width: 48px;
  height: 3px;
  background: var(--text-primary);
  position: relative;
}

/* Label below a horizontal line */
.vd-hline .vd-conn-label {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Vertical connector: sits between the two rows, aligned under RC800/CV2 */
.vd-vconn {
  width: 280px;               /* must match .vd-node--rc800 width */
  height: 64px;
  display: flex;
  justify-content: center;
}

.vd-vconn__line {
  width: 3px;
  background: var(--text-primary);
  position: relative;
}

/* Label to the right of the vertical line */
.vd-vconn__line .vd-conn-label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* CV2 area: green badge stacked above the CV2 node */
.vd-cv2-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Camera stack + badge side by side */
.vd-cameras-area {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.vd-cameras {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vd-camera { margin: 0; }

.vd-camera img {
  width: 100px;
  height: 76px;
  object-fit: contain;
  display: block;
}

/* Green system badge (CV2 series label, GigE camera label) */
.vd-badge {
  display: inline-block;
  background: var(--tag-collab-bg);
  color: var(--tag-collab-color);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 600px) {
  /* Allow rows to shrink below the 560px minimum */
  .vd-row { min-width: 0; }

  /* Smaller nodes */
  .vd-node--rc800      { width: 150px; }
  .vd-node--rc800 img  { height: 100px; }
  .vd-node--gx8        { width: 130px; }
  .vd-node--gx8 img    { height: 160px; }
  .vd-node--cv2        { width: 180px; }
  .vd-node--cv2 img    { height: 80px; }

  /* Vertical connector must match RC800 width */
  .vd-vconn            { width: 150px; }

  /* Lines: shrink minimum so they don't force overflow */
  .vd-hline            { min-width: 16px; }

  /* Stack badge below cameras so cameras-area stays narrow (~90px) */
  .vd-cameras-area     { flex-direction: column; align-items: flex-start; gap: 8px; }
  .vd-camera img       { width: 70px; height: 50px; }

  /* Connection labels don't fit on short lines at this size */
  .vd-conn-label       { display: none; }
}

/* Notes bullet list below the diagram */
.vd-notes {
  list-style: none;
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vd-notes li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.vd-notes li::before {
  content: '*';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* ============================================
   valassz-epson-robotot.html — Robot Selector
   ============================================ */

/* ── Hero ── */
.section-selector-hero {
  background: var(--bg-white);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border);
}
.sel-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.sel-hero__eyebrow {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-blue);
}
.sel-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.sel-hero__desc {
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.65;
}
.sel-hero__stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 0;
}
.sel-hero__stats-row {
  display: flex;
  gap: 32px;
}
.sel-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.sel-stat__num {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.sel-stat__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* ── Catalogue download button — below the stat numbers ── */
.sel-catalogue-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-primary);
}
.sel-catalogue-btn:hover .sel-catalogue-btn__icon {
  background: var(--accent-blue);
  color: #fff;
  transform: scale(1.08);
}
/* Icon wrapper — same pattern as contact-item__icon */
.sel-catalogue-btn__icon {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  flex-shrink: 0;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.sel-catalogue-btn__icon svg {
  width: 20px;
  height: 20px;
}
/* Sonar pulse */
.sel-catalogue-btn__icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  border: 2px solid var(--accent-blue);
  border-radius: 13px;
  opacity: 0;
  animation: sonarPulse 2.8s ease-out infinite 1.2s;
}
@keyframes sonarPulse {
  0%   { opacity: 0.55; transform: scale(1);   border-radius: 13px; }
  100% { opacity: 0;    transform: scale(2.0); border-radius: 50%; }
}
.sel-catalogue-btn__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sel-catalogue-btn__text strong {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
}
.sel-catalogue-btn__text small {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
}
/* Cobot (green) colour variant */
.sel-catalogue-btn--cobot .sel-catalogue-btn__icon {
  background: var(--tag-collab-bg);
  color: var(--tag-collab-color);
}
.sel-catalogue-btn--cobot .sel-catalogue-btn__icon::after {
  border-color: var(--tag-collab-color);
}
.sel-catalogue-btn--cobot:hover .sel-catalogue-btn__icon {
  background: var(--tag-collab-color);
  color: #fff;
}

/* ── Main section ── */
.section-selector { background: var(--bg-light); padding: 40px 0 80px; }

/* ── Filter card ── */
.selector-filters {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 28px 32px 24px;
  margin-bottom: 36px;
}
.filter-group {
  margin-bottom: 22px;
}
.filter-group__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.filter-group__label--muted { color: var(--text-secondary); }
.filter-group__hint {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Category pills — single select */
.filter-type-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-type-pill {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.filter-type-pill:hover { border-color: var(--text-primary); color: var(--text-primary); }
.filter-type-pill.active { border-color: transparent; background: var(--text-primary); color: #fff; }
.filter-type-pill.active[data-cat="scara"] { background: var(--tag-scara-bg);  color: var(--tag-scara-color);  border-color: var(--tag-scara-color); }
.filter-type-pill.active[data-cat="6axis"] { background: var(--tag-6axis-bg);  color: var(--tag-6axis-color);  border-color: var(--tag-6axis-color); }
.filter-type-pill.active[data-cat="cobot"] { background: var(--tag-collab-bg); color: var(--tag-collab-color); border-color: var(--tag-collab-color); }

/* Two-column grid for payload + arm */
.filter-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}
.filter-two-col .filter-group { margin-bottom: 0; }
.filter-two-col .filter-group:first-child {
  padding-right: 32px;
  border-right: 1px solid var(--border);
}

/* Method A (dropdowns) */
.filter-method { transition: opacity 0.2s; }
.filter-method.dimmed { opacity: 0.3; pointer-events: none; }

.method-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.method-hint {
  font-weight: 400;
  font-style: italic;
  margin-left: 6px;
}

.filter-dropdowns {
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-dropdowns select {
  flex: 1;
  min-width: 0;
  padding: 8px 28px 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--text-primary);
  background: var(--bg-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  cursor: pointer;
}
.filter-dropdowns select:focus { outline: none; border-color: var(--accent-blue); }
.range-sep { color: var(--text-muted); font-weight: 600; flex-shrink: 0; }

/* VAGY separator between A and B */
.method-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.method-or::before,
.method-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Value pills — Method B */
.value-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.value-pill {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
}
.value-pill:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
.value-pill.selected { background: var(--accent-blue); border-color: var(--accent-blue); color: #fff; }
/* Range-selected pills (shift-click interior): lighter blue */
.value-pill.in-range { background: #cce4ff; border-color: var(--accent-blue); color: #004e9e; }

/* Env / Mounting multi-select pills */
.multi-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.multi-pill {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
}
.multi-pill:hover { border-color: var(--text-primary); color: var(--text-primary); }
.multi-pill.selected { background: var(--tag-scara-bg); border-color: var(--tag-scara-color); color: var(--tag-scara-color); }
.multi-pill:disabled { opacity: 0.3; cursor: not-allowed; pointer-events: none; }

/* Action row */
.filter-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.btn-search-lg { padding: 11px 32px; font-size: 0.9375rem; }
.btn-reset-filter {
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: color 0.15s;
}
.btn-reset-filter:hover { color: var(--text-primary); }

/* ── Results ── */
.selector-initial {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.selector-results-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.results-count {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
}
.results-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Sortable table */
.selector-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}
.selector-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  font-size: 0.875rem;
}
.selector-table th {
  background: var(--table-header-bg);
  color: #fff;
  padding: 11px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8125rem;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.selector-table th::after       { content: ' \2195'; opacity: 0.35; font-size: 0.7rem; }
.selector-table th.sort-asc::after  { content: ' \2191'; opacity: 1; }
.selector-table th.sort-desc::after { content: ' \2193'; opacity: 1; }
.selector-table th.no-sort { cursor: default; }
.selector-table th.no-sort::after { content: ''; }
.selector-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--bg-light);
  vertical-align: middle;
  white-space: nowrap;
}
.selector-table tbody tr:last-child td { border-bottom: none; }
.selector-table tbody tr:hover td { background: #f7f7fa; }

/* Category badges */
.tbl-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.tbl-badge--scara { background: var(--tag-scara-bg); color: var(--tag-scara-color); }
.tbl-badge--6axis { background: var(--tag-6axis-bg); color: var(--tag-6axis-color); }
.tbl-badge--cobot { background: var(--tag-collab-bg); color: var(--tag-collab-color); }

/* Family link */
.family-link { color: var(--text-primary); font-weight: 600; text-decoration: none; }
.family-link:hover { color: var(--accent-blue); }

/* Model number */
.tbl-model {
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Special tags */
.tbl-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tbl-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
  background: #e8e8ed;
  color: var(--text-secondary);
}
.tbl-tag--esd       { background: #fff3cd; color: #7a5500; }
.tbl-tag--cleanroom { background: #cfe2ff; color: #083f88; }
.tbl-tag--vedett    { background: #d4f5f5; color: #086363; }
.tbl-tag--food      { background: #d4edda; color: #155724; }
.tbl-tag--curved    { background: var(--tag-6axis-bg); color: var(--tag-6axis-color); }
.tbl-tag--axis3     { background: #fde8f0; color: #8e1a58; }
.tbl-none { color: var(--text-muted); }

/* SW-reconfigurable mounting footnote */
.selector-sw-note {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Row link arrow */
.tbl-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: #fff;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: background 0.15s, color 0.15s;
}
.tbl-link:hover { background: var(--accent-blue-hover); color: #fff; }

/* Empty state */
.selector-empty {
  text-align: center;
  padding: 56px 20px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}
.selector-empty__icon { color: var(--text-muted); margin-bottom: 16px; }
.selector-empty__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.selector-empty__text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* ── Stat number pop animation ── */
@keyframes stat-pop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.28); }
  70%  { transform: scale(0.96); }
  100% { transform: scale(1); }
}
.sel-stat__num.popping {
  display: inline-block;
  animation: stat-pop 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* ── Disclaimer ── */
.selector-disclaimer {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 16px 0;
}
.selector-disclaimer p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.selector-disclaimer a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.selector-disclaimer a:hover { color: var(--text-secondary); }

/* ── Responsive ── */
@media (max-width: 960px) {
  .sel-hero { flex-direction: column; align-items: flex-start; gap: 28px; }
  .sel-hero__stats { gap: 24px; }
}
@media (max-width: 768px) {
  .section-selector-hero { padding: 24px 0 32px; }
  .section-selector { padding: 28px 0 60px; }
  .selector-filters { padding: 20px; }
  .filter-two-col {
    grid-template-columns: 1fr;
    gap: 22px 0;
  }
  .filter-two-col .filter-group:first-child {
    padding-right: 0;
    border-right: none;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
  }
  .sel-hero__stats-row { flex-wrap: wrap; }
}

#debug-bar {display: none !important;}