/* ═══════════════════════════════════════════════════════════
   EV-ENTZ STOCK PORTAL 2026 — v20260318_04
   Design tokens synced to ev-entzhire.co.uk
   ═══════════════════════════════════════════════════════════ */

/* ── TOKEN LAYER ── */
.shell--stock-2026 {
  --blue:          #3b82f6;
  --blue-bright:   #60a5fa;
  --blue-dark:     #2563eb;
  --blue-glow:     rgba(59,130,246,.22);

  --bg-black:      #050810;
  --bg-dark:       #0f1419;
  --bg-card:       #1a202c;
  --bg-card-hover: #1e2633;

  --border:        rgba(59,130,246,.15);
  --border-hover:  rgba(59,130,246,.32);
  --glow:          rgba(59,130,246,.10);

  --text-primary:   #ffffff;
  --text-secondary: rgba(255,255,255,.92);
  --text-muted:     rgba(255,255,255,.78);
  --text-dim:       rgba(255,255,255,.55);

  --ok:     #3dd598;
  --warn:   #f7b955;
  --danger: #ff7272;

  --font-display: 'Outfit',       'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-body:    'Space Grotesk','Inter', ui-sans-serif, system-ui, sans-serif;

  --radius:    16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --ease:      cubic-bezier(.4,0,.2,1);

  position: relative;
  z-index: 1;
  max-width: 1520px;
  padding-top: 28px;
}

/* Ambient glow layer */
.shell--stock-2026::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 0%,  rgba(59,130,246,.07), transparent 30%),
    radial-gradient(ellipse at 85% 10%, rgba(96,165,250,.04), transparent 25%);
  z-index: 0;
}

/* ── TOPBAR SYNC ── */
.topbar {
  background: rgba(5,8,16,.92) !important;
  border-bottom-color: rgba(59,130,246,.15) !important;
}
.brand-mark {
  background: linear-gradient(135deg, rgba(96,165,250,.22), rgba(59,130,246,.1)) !important;
  border-color: rgba(59,130,246,.3) !important;
}
.nav-pill:hover, .button:hover, button.button:hover {
  border-color: rgba(59,130,246,.4) !important;
  background: rgba(59,130,246,.08) !important;
}

/* ── TYPOGRAPHY ── */
.shell--stock-2026 h2,
.shell--stock-2026 h3,
.shell--stock-2026 h4,
.shell--stock-2026 .stock-hero__copy h2,
.shell--stock-2026 .sh-stat__v,
.shell--stock-2026 .cat-section-name,
.shell--stock-2026 .cat-block-head h4,
.shell--stock-2026 .td-name,
.shell--stock-2026 .td-price {
  font-family: var(--font-display);
  letter-spacing: -.02em;
}

.shell--stock-2026 p,
.shell--stock-2026 label,
.shell--stock-2026 input,
.shell--stock-2026 select,
.shell--stock-2026 .meta-pill,
.shell--stock-2026 .tag,
.shell--stock-2026 .badge,
.shell--stock-2026 .eyebrow-pill,
.shell--stock-2026 .section-kicker,
.shell--stock-2026 .toc-cat-link,
.shell--stock-2026 .toc-sub-link,
.shell--stock-2026 .toc-section-label,
.shell--stock-2026 .td-code,
.shell--stock-2026 .cat-count,
.shell--stock-2026 .toc-cat-count {
  font-family: var(--font-body);
}

/* ── ATOMS ── */
.shell--stock-2026 .eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem 1.1rem;
  border-radius: 100px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin-bottom: 1rem;
}

.shell--stock-2026 .meta-pill {
  display: inline-flex;
  align-items: center;
  padding: .38rem .9rem;
  border-radius: 100px;
  font-size: .78rem;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
}
.shell--stock-2026 .meta-pill--soft { color: var(--text-dim); background: transparent; }
.shell--stock-2026 .text-accent      { color: var(--blue-bright); }
.shell--stock-2026 .hero-inline-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.shell--stock-2026 .section-kicker {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--blue-bright);
  background: var(--glow);
  padding: .28rem .8rem;
  border-radius: 100px;
  border: 1px solid rgba(59,130,246,.18);
  margin-bottom: .5rem;
}

.shell--stock-2026 .tag {
  display: inline-flex;
  padding: .28rem .75rem;
  border-radius: 100px;
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--blue-bright);
  border: 1px solid rgba(59,130,246,.22);
  background: var(--glow);
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════
   STOCK HERO
   Uses own classes (.stock-hero__*) to completely avoid
   the base style.css .hero { display:grid } rule.
══════════════════════════════════════════════════════ */
.shell--stock-2026 .stock-hero {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse at 80% 20%, rgba(59,130,246,.14), transparent 24%),
    linear-gradient(180deg, #0b1422 0%, #060e1a 100%);
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.04);
  /* DO NOT inherit .hero styles */
  display: block !important;
  grid-template-columns: none !important;
  padding: 0 !important;
}

/* Blue top accent stripe */
.shell--stock-2026 .stock-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue) 20%, var(--blue-bright) 50%, var(--blue) 80%, transparent);
  z-index: 2;
  pointer-events: none;
}

/* Blue orb glow */
.shell--stock-2026 .stock-hero::after {
  content: "";
  position: absolute;
  inset: -30% auto auto -8%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(59,130,246,.16) 0%, rgba(59,130,246,0) 68%);
  filter: blur(14px);
  pointer-events: none;
  z-index: 0;
}

.shell--stock-2026 .stock-hero__inner {
  position: relative;
  z-index: 1;
  padding: 44px 44px 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: start;
}

/* Left copy */
.shell--stock-2026 .stock-hero__copy h2 {
  font-size: clamp(2.4rem, 4.5vw, 4.4rem);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.03em;
  margin: .6rem 0 1rem;
  color: var(--text-primary);
}

.shell--stock-2026 .stock-hero__copy p {
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0;
}

/* Right stats — 2×2 grid of cards */
.shell--stock-2026 .stock-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 240px;
  align-self: center;
}

.shell--stock-2026 .sh-stat {
  padding: 16px 16px 14px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  transition: border-color .3s var(--ease);
  text-align: center;
}

.shell--stock-2026 .sh-stat:hover { border-color: var(--border-hover); }

.shell--stock-2026 .sh-stat__k {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-body);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.shell--stock-2026 .sh-stat__v {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── FILTER BAR ── */
.shell--stock-2026 .filters--stock-2026 {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(0,0,0,.14);
}

.shell--stock-2026 .filters--stock-2026 form {
  grid-template-columns: 2.2fr 1.1fr 1.1fr 1.3fr auto;
  gap: 12px;
  align-items: end;
}

.shell--stock-2026 .filters--stock-2026 .field { gap: 7px; }

.shell--stock-2026 .filters--stock-2026 .field label {
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.shell--stock-2026 .filters--stock-2026 input,
.shell--stock-2026 .filters--stock-2026 select {
  min-height: 46px;
  border-radius: 10px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text-primary);
  transition: border-color .22s, box-shadow .22s;
}

.shell--stock-2026 .filters--stock-2026 input:focus,
.shell--stock-2026 .filters--stock-2026 select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,.1);
  background: var(--bg-card-hover);
}

.shell--stock-2026 .filters--stock-2026 .button {
  min-height: 46px;
  padding-inline: 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  border: none;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
  box-shadow: 0 5px 18px var(--blue-glow);
  transition: all .28s var(--ease);
  white-space: nowrap;
}

.shell--stock-2026 .filters--stock-2026 .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 28px var(--blue-glow);
}

/* ══════════════════════════════════════════════════════
   CATALOGUE LAYOUT — always two-column
══════════════════════════════════════════════════════ */
.shell--stock-2026 .catalogue-layout {
  display: flex;
  gap: 0;
  margin-top: 22px;
  /* stretch: both columns fill full height so sticky TOC has room to scroll */
  align-items: stretch;
  min-height: 60vh;
}

/* ── LEFT TOC ── */
.shell--stock-2026 .catalogue-toc {
  width: 220px;
  flex-shrink: 0;
  /* Sticky within the stretched flex column */
  position: sticky;
  top: 70px;
  /* Height = viewport minus topbar; TOC scrolls independently */
  height: calc(100vh - 90px);
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 0 40px;
  /* Align self to top so sticky works even when content is taller */
  align-self: flex-start;
  scrollbar-width: thin;
  scrollbar-color: rgba(59,130,246,.2) transparent;
}

.shell--stock-2026 .catalogue-toc::-webkit-scrollbar { width: 3px; }
.shell--stock-2026 .catalogue-toc::-webkit-scrollbar-thumb {
  background: rgba(59,130,246,.25);
  border-radius: 99px;
}

/* Search context panel */
.shell--stock-2026 .toc-search-context {
  padding: 12px 14px 10px;
  margin-bottom: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.shell--stock-2026 .toc-search-label {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.shell--stock-2026 .toc-search-term {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--blue-bright);
  margin-bottom: 8px;
  word-break: break-word;
}

.shell--stock-2026 .toc-clear-search {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .7rem;
  font-weight: 700;
  color: var(--text-dim);
  text-decoration: none;
  padding: .3rem .6rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  transition: all .18s;
}

.shell--stock-2026 .toc-clear-search:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: rgba(255,255,255,.04);
  text-decoration: none;
}

.shell--stock-2026 .toc-search-sections {
  margin-top: 10px;
}

.shell--stock-2026 .toc-search-sections-label {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--text-dim);
  padding: 0 12px;
  margin-bottom: 6px;
}

/* Section heading (L1) */
.shell--stock-2026 .toc-section { margin-bottom: 2px; }

.shell--stock-2026 .toc-section-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px 7px;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--blue-bright);
  cursor: pointer;
  border-radius: 8px;
  transition: background .18s;
  user-select: none;
}

.shell--stock-2026 .toc-section-label--muted { color: var(--text-dim); }
.shell--stock-2026 .toc-section-label:hover  { background: rgba(59,130,246,.06); }

.shell--stock-2026 .toc-chevron {
  font-size: .65rem;
  color: var(--text-dim);
  transition: transform .2s var(--ease);
  flex-shrink: 0;
  margin-left: auto;
}

.shell--stock-2026 .toc-section.is-open .toc-chevron { transform: rotate(90deg); }

.shell--stock-2026 .toc-section-children {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s var(--ease);
}
.shell--stock-2026 .toc-section.is-open .toc-section-children { max-height: 2400px; }

/* Category link (L2) */
.shell--stock-2026 .toc-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px 5px 18px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 7px;
  border-left: 2px solid transparent;
  transition: all .16s;
  line-height: 1.3;
  gap: 6px;
}

.shell--stock-2026 .toc-cat-link:hover,
.shell--stock-2026 .toc-cat-link.is-active {
  color: var(--text-primary);
  background: var(--glow);
  border-left-color: var(--blue);
  text-decoration: none;
}

.shell--stock-2026 .toc-cat-count {
  font-size: .62rem;
  font-weight: 700;
  color: var(--text-dim);
  background: rgba(255,255,255,.05);
  border-radius: 100px;
  padding: .1rem .42rem;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Sub-category (L3) */
.shell--stock-2026 .toc-cat-item.has-children > .toc-cat-link::after {
  content: "›";
  color: var(--text-dim);
  font-size: .8rem;
  transition: transform .18s var(--ease);
}
.shell--stock-2026 .toc-cat-item.has-children.is-open > .toc-cat-link::after { transform: rotate(90deg); }

.shell--stock-2026 .toc-sub-list {
  overflow: hidden;
  max-height: 0;
  transition: max-height .22s var(--ease);
}
.shell--stock-2026 .toc-cat-item.has-children.is-open > .toc-sub-list { max-height: 1200px; }

.shell--stock-2026 .toc-sub-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px 4px 28px;
  font-size: .73rem;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: all .16s;
  gap: 6px;
}

.shell--stock-2026 .toc-sub-link:hover,
.shell--stock-2026 .toc-sub-link.is-active {
  color: var(--blue-bright);
  background: rgba(59,130,246,.06);
  border-left-color: rgba(59,130,246,.35);
  text-decoration: none;
}

.shell--stock-2026 .toc-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 10px;
  opacity: .6;
}

/* ── CATALOGUE MAIN ── */
.shell--stock-2026 .catalogue-main {
  flex: 1;
  min-width: 0;
  padding: 0 0 0 22px;
  border-left: 1px solid var(--border);
  margin-left: 8px;
}

/* Section divider heading */
.shell--stock-2026 .cat-section-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 0 14px;
}
.shell--stock-2026 .cat-section-divider:first-child { padding-top: 4px; }

.shell--stock-2026 .cat-section-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--text-primary);
  white-space: nowrap;
}

.shell--stock-2026 .cat-section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ── CATEGORY BLOCK ── */
.shell--stock-2026 .cat-block {
  margin-bottom: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-black);
  border: 1px solid var(--border);
  position: relative;
  transition: border-color .3s var(--ease);
}

.shell--stock-2026 .cat-block:hover { border-color: var(--border-hover); }

/* Blue top accent — appears on hover */
.shell--stock-2026 .cat-block::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .38s var(--ease);
  z-index: 1;
  pointer-events: none;
}
.shell--stock-2026 .cat-block:hover::before { transform: scaleX(1); }

/* Sub-category indent */
.shell--stock-2026 .cat-block--sub {
  margin-left: 14px;
  margin-bottom: 10px;
  border-color: rgba(59,130,246,.09);
}

/* Uncategorised — subdued */
.shell--stock-2026 .cat-block--uncategorised { opacity: .82; }

/* Category header */
.shell--stock-2026 .cat-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(59,130,246,.08), rgba(59,130,246,.02));
  gap: 10px;
}

.shell--stock-2026 .cat-block-head h4 {
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.shell--stock-2026 .cat-block-head-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.shell--stock-2026 .cat-count {
  font-size: .66rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(59,130,246,.1);
  border-radius: 100px;
  padding: .18rem .55rem;
  white-space: nowrap;
}

/* ── PRODUCT TABLE ── */
.shell--stock-2026 .cat-table {
  width: 100%;
  border-collapse: collapse;
}

.shell--stock-2026 .cat-table thead th {
  padding: 6px 14px;
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--text-dim);
  background: rgba(255,255,255,.015);
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

.shell--stock-2026 .cat-table thead th:nth-last-child(1),
.shell--stock-2026 .cat-table thead th:nth-last-child(2) { text-align: right; }

.shell--stock-2026 .cat-table tbody td {
  padding: 10px 14px;
  border-top: 1px solid rgba(255,255,255,.04);
  vertical-align: middle;
  background: var(--bg-black);
}

.shell--stock-2026 .cat-table tbody tr:hover td {
  background: rgba(59,130,246,.05);
}

/* Product name */
.shell--stock-2026 .td-name {
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text-primary);
  line-height: 1.25;
}

.shell--stock-2026 .td-code {
  font-size: .72rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Availability badges */
.shell--stock-2026 .badge {
  display: inline-flex;
  align-items: center;
  padding: .24rem .72rem;
  border-radius: 100px;
  font-size: .7rem;
  font-weight: 600;
  font-family: var(--font-body);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text-dim);
  white-space: nowrap;
}

.shell--stock-2026 .badge.ok    { color: var(--ok);   border-color: rgba(61,213,152,.28);  background: rgba(61,213,152,.07); }
.shell--stock-2026 .badge.warn  { color: var(--warn); border-color: rgba(247,185,85,.28);  background: rgba(247,185,85,.07); }
.shell--stock-2026 .badge.muted  { color: var(--text-dim); }
/* On quote — amber to distinguish from confirmed bookings */
.shell--stock-2026 .badge.quote  { color: #fb923c; border-color: rgba(251,146,60,.28); background: rgba(251,146,60,.07); }
/* On quote — amber/orange to distinguish from confirmed bookings */
.shell--stock-2026 .badge.quote { color: #fb923c; border-color: rgba(251,146,60,.28); background: rgba(251,146,60,.07); }

/* Price */
.shell--stock-2026 .td-price {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: right;
  white-space: nowrap;
  letter-spacing: -.01em;
}

/* Show more expander */
.shell--stock-2026 .cat-more {
  border-top: 1px solid rgba(59,130,246,.08);
  background: var(--bg-black);
}

.shell--stock-2026 .cat-more summary {
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  color: var(--blue-bright);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background .18s;
}

.shell--stock-2026 .cat-more summary::-webkit-details-marker { display: none; }
.shell--stock-2026 .cat-more summary:hover { background: rgba(59,130,246,.04); }
.shell--stock-2026 .cat-more summary::after  { content: " +"; opacity: .7; }
.shell--stock-2026 .cat-more[open] summary::after { content: " —"; }

/* ══════════════════════════════════════════════════════
   ADMIN CARD STYLES (unchanged from v3)
══════════════════════════════════════════════════════ */
.shell--stock-2026 .group-card {
  margin-top: 22px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
  position: relative;
}

.shell--stock-2026 .group-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,.3), transparent);
  pointer-events: none;
}

.shell--stock-2026 .group-head--enhanced {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}

.shell--stock-2026 .group-head-left { display: flex; align-items: center; gap: 14px; }

.shell--stock-2026 .group-copy--2026 h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: .98;
  margin: .4rem 0 .35rem;
  color: var(--text-primary);
}

.shell--stock-2026 .group-subcopy { margin: 0; font-size: .9rem; color: var(--text-dim); }

.shell--stock-2026 .group-icon-shell {
  width: 52px; height: 52px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(59,130,246,.14), rgba(59,130,246,.04));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.shell--stock-2026 .category-fallback {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--blue-bright);
}

.shell--stock-2026 .admin-grid--stock {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 22px;
}

.shell--stock-2026 .admin-section-body { padding: 0 24px 24px; }

.shell--stock-2026 .admin-subheading {
  margin: 20px 0 10px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.shell--stock-2026 .hub-map-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.shell--stock-2026 .hub-map-panel h5 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ══════════════════════════════════════════════════════
   TREE EDITOR (admin — identical to v3)
══════════════════════════════════════════════════════ */
.tree-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 16px;
}

.tree-panel, .palette-panel {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-height: 400px;
  max-height: 640px;
}

.tree-panel-head, .palette-panel-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
}

.tree-panel-head h5, .palette-panel-head h5 {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text-primary);
  margin: 0;
}

.tree-panel-head p, .palette-panel-head p {
  font-size: .72rem;
  color: var(--text-dim);
  margin: 0;
}

.tree-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(59,130,246,.2) transparent;
}

.tree-body::-webkit-scrollbar { width: 3px; }
.tree-body::-webkit-scrollbar-thumb { background: rgba(59,130,246,.25); border-radius: 99px; }

.tree-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: var(--text-dim);
  font-size: .82rem;
  text-align: center;
  gap: 8px;
  padding: 20px;
}
.tree-empty strong { color: var(--text-muted); font-size: .9rem; }

.tree-section {
  margin-bottom: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
}
.tree-section.is-drag-over { border-color: var(--blue); background: rgba(59,130,246,.06); }

.tree-section-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(59,130,246,.06);
  border-bottom: 1px solid var(--border);
  cursor: move;
  user-select: none;
}

.tree-drag-handle { color: var(--text-dim); font-size: .85rem; cursor: move; flex-shrink: 0; opacity: .5; }

.tree-section-label-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text-primary);
  padding: 2px 4px;
  border-radius: 4px;
  transition: background .2s;
}
.tree-section-label-input:focus { background: rgba(255,255,255,.05); }

.tree-section-toggle {
  font-size: .7rem; color: var(--text-dim); cursor: pointer;
  padding: 2px 6px; border-radius: 4px; border: none; background: transparent;
  transition: all .2s; flex-shrink: 0;
}
.tree-section-toggle:hover { background: rgba(255,255,255,.06); color: var(--text-primary); }

.tree-section-delete {
  font-size: .75rem; color: var(--danger); cursor: pointer;
  padding: 2px 6px; border-radius: 4px; border: none; background: transparent;
  opacity: .5; transition: opacity .2s; flex-shrink: 0;
}
.tree-section-delete:hover { opacity: 1; }

.tree-section-children {
  padding: 4px 6px 6px;
  min-height: 36px;
  overflow: hidden;
  max-height: 2000px;
  transition: max-height .25s var(--ease);
}
.tree-section.is-collapsed .tree-section-children { max-height: 0; padding: 0; }

.tree-cat-node {
  margin-bottom: 3px;
  border: 1px solid rgba(59,130,246,.1);
  border-radius: 7px;
  background: rgba(255,255,255,.025);
  overflow: hidden;
}
.tree-cat-node.is-drag-over { border-color: var(--blue); background: rgba(59,130,246,.06); }

.tree-cat-head {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  cursor: move;
  user-select: none;
}

.tree-cat-name { flex: 1; font-size: .78rem; font-weight: 600; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tree-cat-id-badge { font-size: .6rem; color: var(--text-dim); background: rgba(255,255,255,.05); border-radius: 4px; padding: .1rem .35rem; flex-shrink: 0; }

.tree-cat-add-child {
  font-size: .65rem; color: var(--blue-bright); cursor: pointer;
  padding: 1px 5px; border-radius: 4px; border: 1px solid var(--border);
  background: transparent; transition: all .2s; flex-shrink: 0; white-space: nowrap;
}
.tree-cat-add-child:hover { background: var(--glow); border-color: var(--blue); }

.tree-cat-delete { font-size: .7rem; color: var(--danger); cursor: pointer; padding: 2px 5px; border-radius: 4px; border: none; background: transparent; opacity: .4; transition: opacity .2s; flex-shrink: 0; }
.tree-cat-delete:hover { opacity: 1; }

.tree-cat-children { padding: 0 4px 4px 16px; overflow: hidden; max-height: 1200px; transition: max-height .2s var(--ease); }
.tree-cat-node.is-collapsed .tree-cat-children { max-height: 0; padding: 0; }

.tree-sub-node { display: flex; align-items: center; gap: 5px; padding: 4px 6px; margin-bottom: 2px; border: 1px solid rgba(59,130,246,.07); border-radius: 5px; background: rgba(255,255,255,.015); cursor: move; user-select: none; }
.tree-sub-name { flex: 1; font-size: .74rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tree-sub-delete { font-size: .65rem; color: var(--danger); cursor: pointer; padding: 1px 4px; border-radius: 4px; border: none; background: transparent; opacity: .35; transition: opacity .2s; }
.tree-sub-delete:hover { opacity: 1; }

.tree-add-section-btn {
  width: 100%; padding: 8px 12px; margin-top: 6px;
  border-radius: 7px; border: 1.5px dashed rgba(59,130,246,.28);
  background: transparent; color: var(--blue-bright);
  font-family: var(--font-body); font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  cursor: pointer; transition: all .2s var(--ease);
}
.tree-add-section-btn:hover { border-color: var(--blue); background: var(--glow); }

.tree-footer { padding: 10px 12px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.tree-save-btn {
  flex: 1; padding: 8px 16px; border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  border: none; color: #fff;
  font-family: var(--font-body); font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  cursor: pointer; box-shadow: 0 4px 14px var(--blue-glow);
  transition: all .25s var(--ease);
}
.tree-save-btn:hover { transform: translateY(-1px); box-shadow: 0 7px 20px var(--blue-glow); }
.tree-save-btn:disabled { opacity: .5; pointer-events: none; }

.tree-save-status { font-size: .72rem; color: var(--text-dim); flex-shrink: 0; }
.tree-save-status.ok  { color: var(--ok); }
.tree-save-status.err { color: var(--danger); word-break: break-all; max-width: 300px; }

.palette-search { padding: 8px 12px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.palette-search input {
  width: 100%; padding: 7px 10px; border-radius: 8px;
  border: 1px solid var(--border); background: rgba(255,255,255,.04);
  color: var(--text-primary); font-family: var(--font-body); font-size: .78rem;
  outline: none; transition: border-color .2s;
}
.palette-search input:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(59,130,246,.1); }

.palette-body { flex: 1; overflow-y: auto; padding: 6px 8px; scrollbar-width: thin; scrollbar-color: rgba(59,130,246,.2) transparent; }
.palette-body::-webkit-scrollbar { width: 3px; }
.palette-body::-webkit-scrollbar-thumb { background: rgba(59,130,246,.25); border-radius: 99px; }

.palette-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; margin-bottom: 2px; cursor: grab; transition: background .15s; border: 1px solid transparent; }
.palette-item:hover { background: rgba(255,255,255,.04); border-color: var(--border); }
.palette-item.is-placed { opacity: .3; cursor: default; }
.palette-item.is-dragging { opacity: .5; }

.palette-item-name { flex: 1; font-size: .78rem; font-weight: 500; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-item-id { font-size: .62rem; color: var(--text-dim); background: rgba(255,255,255,.04); border-radius: 4px; padding: .1rem .35rem; flex-shrink: 0; }

.palette-item-add { font-size: .65rem; color: var(--blue-bright); cursor: pointer; padding: 2px 7px; border-radius: 4px; border: 1px solid var(--border); background: transparent; transition: all .18s; flex-shrink: 0; white-space: nowrap; }
.palette-item-add:hover { background: var(--glow); border-color: var(--blue); }
.palette-item.is-placed .palette-item-add { color: var(--text-dim); cursor: default; pointer-events: none; }

.placement-popover { position: absolute; z-index: 200; background: var(--bg-card); border: 1px solid var(--border-hover); border-radius: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.4); padding: 12px; width: 260px; font-family: var(--font-body); }
.placement-popover h6 { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); margin: 0 0 8px; }
.placement-popover select { width: 100%; margin-bottom: 6px; padding: 6px 8px; border-radius: 7px; border: 1px solid var(--border); background: var(--bg-dark); color: var(--text-primary); font-family: var(--font-body); font-size: .78rem; outline: none; }
.placement-popover select:focus { border-color: var(--blue); }
.placement-confirm { width: 100%; padding: 7px; border-radius: 7px; background: linear-gradient(135deg, var(--blue), var(--blue-bright)); border: none; color: #fff; font-family: var(--font-body); font-size: .75rem; font-weight: 700; cursor: pointer; }
.placement-cancel { width: 100%; margin-top: 4px; padding: 6px; border-radius: 7px; background: transparent; border: 1px solid var(--border); color: var(--text-dim); font-family: var(--font-body); font-size: .72rem; cursor: pointer; }

/* ── NOTICES ── */
.shell--stock-2026 .notice { margin-top: 16px; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .shell--stock-2026 .catalogue-toc { width: 192px; }
  .shell--stock-2026 .stock-hero__stats { min-width: 200px; gap: 8px; }
  .tree-editor { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .shell--stock-2026 .stock-hero__inner {
    grid-template-columns: 1fr;
    padding: 30px 24px 26px;
    gap: 20px;
  }
  .shell--stock-2026 .stock-hero__stats {
    grid-template-columns: repeat(4, 1fr);
    min-width: 0;
  }
  .shell--stock-2026 .catalogue-layout { display: block; }
  .shell--stock-2026 .catalogue-toc {
    position: static;
    width: 100%;
    max-height: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 0 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
    overflow: visible;
  }
  .shell--stock-2026 .toc-section { flex-shrink: 0; }
  .shell--stock-2026 .catalogue-main { padding: 0; border-left: none; margin-left: 0; }
  .shell--stock-2026 .admin-grid--stock { grid-template-columns: 1fr; }
  .shell--stock-2026 .filters--stock-2026 form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .shell--stock-2026 .stock-hero__inner { padding: 26px 18px 22px; }
  .shell--stock-2026 .stock-hero__stats { grid-template-columns: repeat(2, 1fr); }
  .shell--stock-2026 .filters--stock-2026 form { grid-template-columns: 1fr; }
  .shell--stock-2026 .cat-table thead { display: none; }
  .shell--stock-2026 .td-price { text-align: left; }
}

/* ── AVAILABILITY CHECKING DOTS ── */
.av-checking {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: .28rem .75rem;
}

.av-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(96,165,250,.6);
  animation: av-pulse 1.2s ease-in-out infinite;
}

.av-dot:nth-child(1) { animation-delay: 0s; }
.av-dot:nth-child(2) { animation-delay: .2s; }
.av-dot:nth-child(3) { animation-delay: .4s; }

@keyframes av-pulse {
  0%, 80%, 100% { transform: scale(.6); opacity: .4; }
  40%           { transform: scale(1);  opacity: 1;  }
}
