/* ────────────────────────────────────────────────────────────────
   tactical.shop — .new3 "Clinical Logistics Terminal" design system
   adopted from aidesigner canvas a9f19b66 (April 2026)
   Loaded alongside style.css; tac-* and pdp-* classes only.
   ──────────────────────────────────────────────────────────────── */

/* ── Tokens ────────────────────────────────────────────────────── */
:root {
  --tac-white: #ffffff;
  --tac-slate-50: #f8fafc;
  --tac-slate-100: #f1f5f9;
  --tac-slate-200: #e2e8f0;
  --tac-slate-300: #cbd5e1;
  --tac-slate-400: #94a3b8;
  --tac-slate-500: #64748b;
  --tac-slate-600: #475569;
  --tac-slate-700: #334155;
  --tac-slate-800: #1e293b;
  --tac-slate-900: #0f172a;
  --tac-orange: #d95c14;
  --tac-orange-dark: #b94b10;
  --tac-green: #16a34a;
  --tac-green-light: #22c55e;
  --tac-emerald-50: #ecfdf5;
  --tac-emerald-100: #d1fae5;
  --tac-emerald-200: #a7f3d0;
  --tac-emerald-700: #047857;
  --tac-emerald-800: #065f46;
  --tac-emerald-900: #064e3b;

  --tac-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --tac-font-tech: 'Rajdhani', 'Inter', sans-serif;
  --tac-font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --tac-max: 1600px;
  --tac-shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .06);
  --tac-shadow-orange: 0 4px 14px rgba(217, 92, 20, .3);
  --tac-shadow-slate: 0 4px 14px rgba(15, 23, 42, .3);
}

/* ── Page base (applied only when body has .tac-page) ─────────── */
body.tac-page {
  background: var(--tac-slate-50);
  color: var(--tac-slate-700);
  font-family: var(--tac-font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding-bottom: 0;
}
body.tac-page.has-sticky-cart { padding-bottom: 80px; }
@media (min-width: 1024px) {
  body.tac-page.has-sticky-cart { padding-bottom: 0; }
}
body.tac-page ::selection { background: var(--tac-orange); color: var(--tac-white); }
body.tac-page ::-webkit-scrollbar { width: 8px; height: 8px; }
body.tac-page ::-webkit-scrollbar-track { background: var(--tac-slate-50); }
body.tac-page ::-webkit-scrollbar-thumb { background: var(--tac-slate-300); }
body.tac-page ::-webkit-scrollbar-thumb:hover { background: var(--tac-orange); }

.tac-wrap { max-width: var(--tac-max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .tac-wrap { padding: 0 32px; } }

/* ── Clip-path utilities ──────────────────────────────────────── */
.clip-angle { clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); }
.clip-angle-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%); }
.clip-angle-sm { clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); }
.clip-angle-tl { clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px); }

/* ── Animations ───────────────────────────────────────────────── */
@keyframes tac-pulse-fast {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}
.tac-pulse-fast { animation: tac-pulse-fast 1s cubic-bezier(.4, 0, .6, 1) infinite; }
@keyframes tac-pulse-slow {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}
.tac-pulse-slow { animation: tac-pulse-slow 1.8s cubic-bezier(.4, 0, .6, 1) infinite; }

/* ── Utility (logistics) bar ──────────────────────────────────── */
.tac-util {
  background: var(--tac-orange);
  color: #000;
  font-family: var(--tac-font-mono);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 6px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 50;
  line-height: 1.4;
}
@media (min-width: 640px) { .tac-util { font-size: 11px; } }
.tac-util__icon { font-size: 18px; line-height: 1; }
.tac-util__sep { opacity: .6; }
.tac-util__right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.tac-util__link { color: #000; text-decoration: none; }
.tac-util__link:hover { text-decoration: underline; }

/* ── Header ───────────────────────────────────────────────────── */
.tac-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--tac-slate-200);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
}
.tac-head__inner {
  max-width: var(--tac-max);
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
@media (min-width: 768px) { .tac-head__inner { padding: 16px 32px; gap: 32px; } }

.tac-head__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}
.tac-head__logo-img {
  display: block;
  height: 64px;
  width: auto;
  transition: opacity .25s;
}
.tac-head__logo:hover .tac-head__logo-img { opacity: .8; }
@media (min-width: 768px) { .tac-head__logo-img { height: 80px; } }

.tac-head__search {
  flex: 1;
  max-width: 560px;
  position: relative;
  display: none;
}
@media (min-width: 768px) { .tac-head__search { display: block; } }
.tac-head__search-input {
  width: 100%;
  background: var(--tac-slate-100);
  border: 1px solid var(--tac-slate-300);
  color: var(--tac-slate-900);
  font-family: var(--tac-font-mono);
  font-size: 12px;
  padding: 9px 36px 9px 14px;
  outline: none;
  border-radius: 0;
  box-sizing: border-box;
  transition: border-color .2s, background .2s;
}
.tac-head__search-input::placeholder { color: var(--tac-slate-400); }
.tac-head__search-input:focus { border-color: var(--tac-orange); background: var(--tac-white); }
.tac-head__search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: var(--tac-slate-400);
  cursor: pointer;
  padding: 4px;
}
.tac-head__search-btn:hover { color: var(--tac-orange); }

/* Search dropdown (overrides dark .new2 style.css for tactical header) */
.tac-head__search .search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--tac-white);
  border: 1px solid var(--tac-slate-200);
  border-radius: 0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
  display: none;
  z-index: 200;
  max-height: 420px;
  overflow-y: auto;
}
.tac-head__search .search-results.active { display: block; }
.tac-head__search .search-result-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--tac-slate-100);
  text-decoration: none;
  color: var(--tac-slate-900);
  transition: background .12s;
}
.tac-head__search .search-result-item:last-child { border-bottom: 0; }
.tac-head__search .search-result-item:hover { background: var(--tac-slate-50); }
.tac-head__search .search-result-item > img {
  width: 48px;
  height: 48px;
  background: var(--tac-slate-50);
  border: 1px solid var(--tac-slate-200);
  object-fit: contain;
  padding: 3px;
  mix-blend-mode: multiply;
  flex-shrink: 0;
}
.tac-head__search .sr-name {
  font-family: var(--tac-font-tech);
  font-size: 13px;
  font-weight: 700;
  color: var(--tac-slate-900);
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.tac-head__search .sr-price {
  font-family: var(--tac-font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--tac-orange);
  margin-top: 2px;
}

.tac-head__nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--tac-font-tech);
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--tac-slate-500);
}
@media (min-width: 640px) { .tac-head__nav { gap: 24px; } }
.tac-head__nav a { color: inherit; text-decoration: none; transition: color .2s; }
.tac-head__nav a:hover { color: var(--tac-slate-900); }
.tac-head__nav-link { display: none; }
@media (min-width: 1024px) { .tac-head__nav-link { display: inline; } }
.tac-head__account {
  color: var(--tac-slate-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: color .15s;
  padding: 4px 2px;
}
.tac-head__account:hover { color: var(--tac-orange); }
.tac-head__account-label {
  font-family: var(--tac-font-tech);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  display: none;
}
@media (min-width: 1024px) { .tac-head__account-label { display: inline; } }

.tac-head__cart {
  color: var(--tac-slate-900);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.tac-head__cart-icon { position: relative; display: inline-block; }
.tac-head__cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--tac-orange);
  color: #000;
  font-weight: 700;
  font-size: 10px;
  font-family: var(--tac-font-mono);
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  line-height: 1;
}
.tac-head__cart-total {
  display: none;
  font-family: var(--tac-font-mono);
  font-size: 12px;
  font-weight: 700;
}
@media (min-width: 1280px) { .tac-head__cart-total { display: inline; } }
.tac-head__burger {
  display: inline-flex;
  background: none;
  border: 0;
  padding: 4px;
  cursor: pointer;
  color: var(--tac-slate-900);
  font-size: 22px;
}
@media (min-width: 768px) { .tac-head__burger { display: none; } }

/* ── Breadcrumbs ──────────────────────────────────────────────── */
.tac-crumbs {
  margin: 24px 0;
  overflow-x: auto;
  white-space: nowrap;
}
.tac-crumbs ol {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--tac-font-mono);
  font-size: 10px;
  color: var(--tac-slate-400);
  text-transform: uppercase;
  letter-spacing: .08em;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 640px) { .tac-crumbs ol { font-size: 12px; } }
.tac-crumbs a { color: inherit; text-decoration: none; transition: color .2s; }
.tac-crumbs a:hover { color: var(--tac-orange); }
.tac-crumbs__sep { color: var(--tac-slate-300); }
.tac-crumbs__here { color: var(--tac-slate-900); font-weight: 700; }

/* ── PDP grid ─────────────────────────────────────────────────── */
.pdp-main { max-width: var(--tac-max); margin: 0 auto; padding: 0 16px 48px; }
@media (min-width: 768px) { .pdp-main { padding: 0 32px 48px; } }
.pdp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
@media (min-width: 1024px) {
  .pdp-grid { grid-template-columns: 7fr 5fr; gap: 32px; }
}
@media (min-width: 1280px) { .pdp-grid { gap: 48px; } }

/* ── Gallery ──────────────────────────────────────────────────── */
.pdp-gallery { display: flex; flex-direction: column; gap: 16px; position: relative; }
.pdp-gallery__main {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--tac-white);
  border: 1px solid var(--tac-slate-200);
  box-shadow: var(--tac-shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}
@media (min-width: 1024px) { .pdp-gallery__main { padding: 48px; } }
.pdp-gallery__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--tac-slate-200) 1px, transparent 1px),
    linear-gradient(to bottom, var(--tac-slate-200) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: .8;
  pointer-events: none;
}
.pdp-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: contrast(1.1) saturate(.9);
  mix-blend-mode: multiply;
  z-index: 2;
  position: relative;
}
.pdp-gallery__watermark {
  position: absolute;
  bottom: 16px;
  right: 16px;
  pointer-events: none;
  z-index: 2;
  opacity: .06;
  font-family: var(--tac-font-tech);
  font-size: 56px;
  font-weight: 900;
  color: var(--tac-slate-900);
  text-transform: uppercase;
  letter-spacing: -.04em;
  line-height: 1;
}
.pdp-gallery__noimg {
  color: var(--tac-slate-300);
  z-index: 2;
  position: relative;
}

.pdp-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (min-width: 640px) {
  .pdp-thumbs { grid-template-columns: repeat(5, 1fr); gap: 16px; }
}
.pdp-thumb {
  position: relative;
  aspect-ratio: 1/1;
  background: transparent;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--tac-shadow-sm);
  opacity: .6;
  transition: opacity .2s, background-color .2s;
}
.pdp-thumb::before {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--tac-white);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%);
  z-index: 0;
}
.pdp-thumb img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1) contrast(1.1);
  mix-blend-mode: multiply;
}
.pdp-thumb:hover { opacity: 1; background: var(--tac-slate-300); }
.pdp-thumb.is-active { opacity: 1; background: var(--tac-orange); }
.pdp-thumb.is-active img { filter: none; }

/* ── Buy box ──────────────────────────────────────────────────── */
.pdp-buy { display: flex; flex-direction: column; padding-top: 8px; }
@media (min-width: 1024px) { .pdp-buy { padding-top: 0; } }

.pdp-buy__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--tac-slate-200);
  padding-bottom: 12px;
  font-family: var(--tac-font-mono);
  font-size: 12px;
}
.pdp-buy__brand {
  font-family: var(--tac-font-tech);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--tac-slate-500);
  text-decoration: none;
  transition: color .2s;
}
.pdp-buy__brand:hover { color: var(--tac-slate-900); }
.pdp-buy__class { color: var(--tac-slate-400); text-transform: uppercase; }
.pdp-buy__class b { color: var(--tac-slate-700); font-weight: 700; }

.pdp-buy__title {
  font-family: var(--tac-font-tech);
  font-size: 32px;
  font-weight: 700;
  color: var(--tac-slate-900);
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 8px;
  letter-spacing: -.01em;
}
@media (min-width: 640px) { .pdp-buy__title { font-size: 42px; } }

.pdp-buy__sku-row {
  font-family: var(--tac-font-mono);
  font-size: 12px;
  color: var(--tac-slate-500);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.pdp-buy__sku-row b { color: var(--tac-slate-900); font-weight: 700; }
.pdp-buy__verify {
  color: var(--tac-green);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.pdp-buy__dot {
  width: 4px;
  height: 4px;
  background: var(--tac-slate-300);
  border-radius: 50%;
}

.pdp-buy__price-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 24px;
}
.pdp-buy__price {
  font-family: var(--tac-font-mono);
  font-weight: 700;
  font-size: 36px;
  color: var(--tac-slate-900);
  letter-spacing: -.02em;
  line-height: 1;
}
.pdp-buy__price-suffix {
  font-size: 11px;
  color: var(--tac-slate-500);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 6px;
}

/* ── Logistic truth box (warehouse status) ────────────────────── */
.pdp-status {
  border: 1px solid var(--tac-emerald-200);
  background: rgba(236, 253, 245, .5);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--tac-font-mono);
  font-size: 13px;
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: 0 0 15px rgba(16, 185, 129, .05);
}
.pdp-status::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(16, 185, 129, .05) 1px, transparent 1px);
  background-size: 100% 4px;
  pointer-events: none;
}
.pdp-status__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(167, 243, 208, .8);
  padding-bottom: 12px;
  position: relative;
  z-index: 2;
}
.pdp-status__title {
  color: var(--tac-emerald-700);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: .03em;
  font-size: 12px;
  text-transform: uppercase;
}
@media (min-width: 640px) { .pdp-status__title { font-size: 13px; } }
.pdp-status__live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tac-green-light);
  box-shadow: 0 0 6px var(--tac-green-light);
}
.pdp-status__wh {
  color: rgba(4, 120, 87, .7);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.pdp-status__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  position: relative;
  z-index: 2;
}
.pdp-status__cell--divider { padding-left: 16px; border-left: 1px solid var(--tac-emerald-200); }
.pdp-status__label {
  color: var(--tac-slate-500);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
}
.pdp-status__value {
  color: var(--tac-slate-900);
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1.1;
}
@media (min-width: 640px) { .pdp-status__value { font-size: 24px; } }
.pdp-status__value-unit {
  font-size: 12px;
  color: var(--tac-slate-500);
  font-weight: 600;
  text-transform: uppercase;
}
.pdp-status__foot {
  background: var(--tac-white);
  color: var(--tac-emerald-800);
  font-size: 11px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--tac-emerald-100);
  box-shadow: var(--tac-shadow-sm);
  position: relative;
  z-index: 2;
  line-height: 1.5;
}
@media (min-width: 640px) { .pdp-status__foot { font-size: 12px; } }
.pdp-status__foot b { color: var(--tac-emerald-900); }
.pdp-status__foot-icon { color: var(--tac-green); flex-shrink: 0; margin-top: 2px; }

.pdp-status--outofstock {
  border-color: #fecaca;
  background: rgba(254, 242, 242, .5);
  box-shadow: 0 0 15px rgba(239, 68, 68, .05);
}
.pdp-status--compact { padding: 12px; gap: 10px; }
.pdp-status--compact .pdp-status__value { font-size: 16px; }
@media (min-width: 640px) { .pdp-status--compact .pdp-status__value { font-size: 18px; } }
.pdp-status--compact .pdp-status__foot { display: none; }
.pdp-status--outofstock::before {
  background-image: linear-gradient(rgba(239, 68, 68, .05) 1px, transparent 1px);
}
.pdp-status--outofstock .pdp-status__title { color: #b91c1c; }
.pdp-status--outofstock .pdp-status__live-dot { background: #ef4444; box-shadow: 0 0 6px #ef4444; }
.pdp-status--outofstock .pdp-status__head { border-bottom-color: #fecaca; }

/* ── Configurator (variants) ──────────────────────────────────── */
.pdp-config { margin-bottom: 24px; }
.pdp-config__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--tac-slate-200);
  padding-bottom: 8px;
}
.pdp-config__label {
  font-family: var(--tac-font-tech);
  font-size: 13px;
  font-weight: 900;
  color: var(--tac-slate-900);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.pdp-config__sub {
  font-family: var(--tac-font-mono);
  font-size: 12px;
  color: var(--tac-slate-500);
}
.pdp-config__sub b { color: var(--tac-slate-900); font-weight: 700; }

.pdp-variants {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.pdp-variant {
  display: block;
  text-decoration: none;
  position: relative;
}
.pdp-variant__swatch {
  width: 44px;
  height: 44px;
  background: var(--tac-slate-300);
  display: block;
  position: relative;
  transition: background-color .2s;
  box-shadow: var(--tac-shadow-sm);
}
.pdp-variant__swatch::before {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--tac-slate-100) var(--variant-img, none) center/cover no-repeat;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%);
}
.pdp-variant:hover .pdp-variant__swatch { background-color: var(--tac-slate-500); }
.pdp-variant.is-active .pdp-variant__swatch {
  background-color: var(--tac-orange);
}
.pdp-variant__label {
  display: block;
  font-family: var(--tac-font-mono);
  font-size: 10px;
  color: var(--tac-slate-500);
  text-align: center;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.pdp-variant.is-active .pdp-variant__label { color: var(--tac-slate-900); font-weight: 700; }

/* ── Actions (qty + cta) ──────────────────────────────────────── */
.pdp-actions {
  display: none;
  gap: 16px;
  align-items: flex-end;
}
@media (min-width: 1024px) { .pdp-actions { display: flex; } }
.pdp-qty { width: 96px; }
.pdp-qty__label {
  display: block;
  font-family: var(--tac-font-mono);
  font-size: 10px;
  color: var(--tac-slate-500);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 4px;
}
.pdp-qty__input {
  position: relative;
  isolation: isolate;
  display: flex;
  height: 56px;
  background: var(--tac-slate-300);
  box-shadow: var(--tac-shadow-sm);
  transition: background .2s;
}
.pdp-qty__input::before {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--tac-white);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%);
  z-index: -1;
}
.pdp-qty__input:focus-within { background: var(--tac-slate-500); }
.pdp-qty__btn {
  width: 32px;
  background: none;
  border: 0;
  color: var(--tac-slate-500);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: color .2s;
}
.pdp-qty__btn:hover { color: var(--tac-slate-900); }
.pdp-qty__field {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: center;
  color: var(--tac-slate-900);
  font-family: var(--tac-font-mono);
  font-weight: 700;
  font-size: 15px;
  outline: none;
  -moz-appearance: textfield;
}
.pdp-qty__field::-webkit-inner-spin-button,
.pdp-qty__field::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.pdp-cta {
  flex: 1;
  height: 56px;
  background: var(--tac-orange);
  color: var(--tac-white);
  font-family: var(--tac-font-tech);
  text-transform: uppercase;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .12em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  cursor: pointer;
  box-shadow: var(--tac-shadow-orange);
  transition: background .3s, box-shadow .3s;
}
.pdp-cta:hover { background: var(--tac-slate-900); box-shadow: var(--tac-shadow-slate); }
.pdp-cta[disabled] { background: var(--tac-slate-300); color: var(--tac-slate-500); cursor: not-allowed; box-shadow: none; }
.pdp-cta__price {
  font-family: var(--tac-font-mono);
  font-size: 14px;
  margin-left: 4px;
  opacity: .85;
}

/* ── Feature bullets ──────────────────────────────────────────── */
.pdp-features {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  border-top: 1px solid var(--tac-slate-200);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pdp-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--tac-slate-600);
  line-height: 1.5;
}
.pdp-features__ok { color: var(--tac-green); margin-top: 3px; flex-shrink: 0; }
.pdp-features__warn { color: var(--tac-orange); margin-top: 3px; flex-shrink: 0; }
.pdp-features li b { color: var(--tac-slate-900); }

/* ── Specs (below fold) ──────────────────────────────────────── */
.pdp-specs {
  max-width: var(--tac-max);
  margin: 0 auto;
  padding: 48px 16px 64px;
  border-top: 1px solid var(--tac-slate-200);
}
@media (min-width: 768px) { .pdp-specs { padding: 48px 32px 64px; } }
.pdp-specs__title {
  font-family: var(--tac-font-tech);
  font-size: 24px;
  font-weight: 700;
  color: var(--tac-slate-900);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}
@media (min-width: 640px) { .pdp-specs__title { font-size: 28px; } }
.pdp-specs__icon { color: var(--tac-slate-400); font-size: 28px; line-height: 1; }

.pdp-specs__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) { .pdp-specs__grid { grid-template-columns: 1fr 1fr; gap: 48px; } }
@media (min-width: 1280px) { .pdp-specs__grid { gap: 64px; } }

.pdp-specs__table {
  border: 1px solid var(--tac-slate-300);
  background: var(--tac-white);
  box-shadow: var(--tac-shadow-sm);
  position: relative;
}
/* Notch the top-right corner without losing the rest of the border */
.pdp-specs__table.clip-angle { clip-path: none; }
.pdp-specs__table.clip-angle::after {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 12px;
  height: 12px;
  background: linear-gradient(to bottom left,
    var(--tac-slate-50) 0,
    var(--tac-slate-50) 45%,
    var(--tac-slate-300) 45%,
    var(--tac-slate-300) 55%,
    transparent 55%);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.pdp-specs__row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  border-bottom: 1px solid var(--tac-slate-200);
}
.pdp-specs__row:last-child { border-bottom: 0; }
.pdp-specs__key {
  background: var(--tac-slate-50);
  padding: 14px 16px;
  font-family: var(--tac-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--tac-slate-500);
  text-transform: uppercase;
  letter-spacing: .04em;
  border-right: 1px solid var(--tac-slate-200);
  line-height: 1.4;
}
.pdp-specs__val {
  padding: 14px 16px;
  font-family: var(--tac-font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--tac-slate-800);
  line-height: 1.5;
}

.pdp-desc {
  font-family: var(--tac-font-sans);
  font-size: 14px;
  color: var(--tac-slate-600);
  line-height: 1.65;
}
.pdp-desc p { margin: 0 0 20px; }
.pdp-desc p:last-child { margin-bottom: 0; }
.pdp-desc ul,
.pdp-desc ol { margin: 0 0 20px; padding-left: 22px; }
.pdp-desc ul { list-style: disc; }
.pdp-desc ol { list-style: decimal; }
.pdp-desc li { margin: 0 0 6px; padding-left: 4px; }
.pdp-desc li::marker { color: var(--tac-orange); }
.pdp-desc ul ul,
.pdp-desc ol ol,
.pdp-desc ul ol,
.pdp-desc ol ul { margin: 6px 0 6px; }
.pdp-desc ul ul { list-style: circle; }
.pdp-desc__callout {
  background: var(--tac-slate-100);
  border-left: 4px solid var(--tac-orange);
  padding: 16px;
  margin-top: 24px;
  box-shadow: var(--tac-shadow-sm);
}
.pdp-desc__callout-head {
  font-family: var(--tac-font-tech);
  font-size: 13px;
  font-weight: 700;
  color: var(--tac-slate-900);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 8px;
}
.pdp-desc__callout-body {
  font-family: var(--tac-font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--tac-slate-600);
  margin: 0;
  line-height: 1.5;
}

/* ── Weapon compatibility tags ────────────────────────────────── */
.pdp-weapons {
  margin-top: 32px;
  border-top: 1px solid var(--tac-slate-200);
  padding-top: 24px;
}
.pdp-weapons__title {
  font-family: var(--tac-font-tech);
  font-size: 13px;
  font-weight: 900;
  color: var(--tac-slate-900);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin: 0 0 12px;
}
.pdp-weapon-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-weapon-tag {
  font-family: var(--tac-font-mono);
  font-size: 11px;
  padding: 6px 10px;
  background: var(--tac-slate-100);
  border: 1px solid var(--tac-slate-200);
  color: var(--tac-slate-700);
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* ── Mobile sticky cart ──────────────────────────────────────── */
.tac-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--tac-slate-200);
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .05);
}
@media (min-width: 1024px) { .tac-sticky { display: none; } }
.tac-sticky__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.tac-sticky__title {
  font-family: var(--tac-font-tech);
  font-weight: 700;
  font-size: 14px;
  color: var(--tac-slate-900);
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tac-sticky__price {
  font-family: var(--tac-font-mono);
  color: var(--tac-orange);
  font-weight: 700;
  font-size: 12px;
}
.tac-sticky__cta {
  width: 60%;
  height: 48px;
  background: var(--tac-orange);
  color: var(--tac-white);
  font-family: var(--tac-font-tech);
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .12em;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(217, 92, 20, .3);
}
.tac-sticky__cta:active { transform: scale(.96); }
.tac-sticky__cta[disabled] { background: var(--tac-slate-300); color: var(--tac-slate-500); cursor: not-allowed; }

/* ── Footer ──────────────────────────────────────────────────── */
.tac-foot {
  background: var(--tac-slate-100);
  border-top: 1px solid var(--tac-slate-200);
  padding: 48px 16px 96px;
  margin-top: 64px;
}
@media (min-width: 1024px) { .tac-foot { padding: 64px 32px 32px; } }
.tac-foot__inner { max-width: var(--tac-max); margin: 0 auto; }
.tac-foot__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (min-width: 640px) { .tac-foot__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .tac-foot__grid { grid-template-columns: repeat(4, 1fr); } }

.tac-foot__brand-col { grid-column: 1 / -1; }
@media (min-width: 1024px) { .tac-foot__brand-col { grid-column: auto; } }

.tac-foot__logo { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; text-decoration: none; }
.tac-foot__mark {
  width: 24px;
  height: 24px;
  background: var(--tac-slate-900);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tac-white);
  font-family: var(--tac-font-tech);
  font-weight: 700;
  font-size: 14px;
}
.tac-foot__word {
  font-family: var(--tac-font-tech);
  font-size: 18px;
  font-weight: 700;
  color: var(--tac-slate-900);
  text-transform: uppercase;
  letter-spacing: .18em;
}
.tac-foot__about {
  font-size: 12px;
  color: var(--tac-slate-500);
  font-weight: 500;
  margin: 0 0 16px;
  max-width: 320px;
  line-height: 1.55;
}
.tac-foot__social { display: flex; gap: 10px; }
.tac-foot__social a {
  width: 32px;
  height: 32px;
  background: var(--tac-white);
  border: 1px solid var(--tac-slate-300);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tac-slate-500);
  box-shadow: var(--tac-shadow-sm);
  transition: color .2s, border-color .2s;
}
.tac-foot__social a:hover { color: var(--tac-slate-900); border-color: var(--tac-slate-400); }
.tac-foot__social svg { width: 16px; height: 16px; }

.tac-foot__heading {
  font-family: var(--tac-font-tech);
  font-size: 13px;
  font-weight: 700;
  color: var(--tac-slate-900);
  text-transform: uppercase;
  letter-spacing: .1em;
  border-bottom: 1px solid var(--tac-slate-300);
  padding-bottom: 8px;
  margin: 0 0 16px;
}
.tac-foot__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.tac-foot__list a {
  font-size: 12px;
  font-weight: 600;
  color: var(--tac-slate-500);
  text-decoration: none;
  transition: color .2s;
}
.tac-foot__list a:hover { color: var(--tac-orange); }
.tac-foot__list a.is-live {
  color: var(--tac-slate-700);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tac-foot__live-dot {
  width: 6px;
  height: 6px;
  background: var(--tac-green);
  border-radius: 50%;
  box-shadow: 0 0 4px var(--tac-green);
}
.tac-foot__text { font-size: 11px; color: var(--tac-slate-500); font-weight: 500; margin: 0 0 8px; line-height: 1.55; }
.tac-foot__secure {
  height: 40px;
  background: var(--tac-white);
  border: 1px solid var(--tac-slate-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--tac-font-mono);
  font-weight: 700;
  font-size: 10px;
  color: var(--tac-slate-600);
  letter-spacing: .12em;
  box-shadow: var(--tac-shadow-sm);
}

.tac-foot__bottom {
  border-top: 1px solid var(--tac-slate-300);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-family: var(--tac-font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--tac-slate-500);
  text-align: center;
}
@media (min-width: 768px) { .tac-foot__bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.tac-foot__bottom-links { display: flex; gap: 16px; }
.tac-foot__bottom-links a { color: inherit; text-decoration: none; transition: color .2s; }
.tac-foot__bottom-links a:hover { color: var(--tac-slate-900); }

/* ── Inline SVG icon helper ──────────────────────────────────── */
.tac-ico { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ============================================================ *
 *  Stock chip — used on cards & inline contexts                 *
 * ============================================================ */
.tac-stock-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  font-family: var(--tac-font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.4;
  border: 1px solid transparent;
}
.tac-stock-chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.tac-stock-chip--in {
  color: var(--tac-emerald-700);
  background: var(--tac-emerald-50);
  border-color: var(--tac-emerald-100);
}
.tac-stock-chip--in .tac-stock-chip__dot {
  background: var(--tac-green);
  box-shadow: 0 0 4px var(--tac-green);
}
.tac-stock-chip--out {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
}
.tac-stock-chip--out .tac-stock-chip__dot {
  background: #ef4444;
}

/* ============================================================ *
 *  Product card (tac-card) — READABLE, high-contrast light card *
 * ============================================================ */
.tac-card {
  display: flex;
  flex-direction: column;
  background: var(--tac-white);
  color: var(--tac-slate-900);
  border: 1px solid var(--tac-slate-200);
  position: relative;
  transition: border-color .2s, transform .2s, box-shadow .2s, background-color .2s;
  box-shadow: var(--tac-shadow-sm);
  overflow: hidden;
  isolation: isolate;
}
.tac-card:hover {
  border-color: var(--tac-slate-300);
  box-shadow: 0 6px 20px rgba(15, 23, 42, .08);
}
/* Notch the bottom-right corner without losing the rest of the border */
.tac-card.clip-angle-bottom { clip-path: none; }
.tac-card.clip-angle-bottom::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 9px;
  height: 9px;
  background: linear-gradient(to top left,
    var(--tac-slate-50) 0,
    var(--tac-slate-50) 49%,
    var(--tac-slate-200) 49%,
    var(--tac-slate-200) 51%,
    transparent 51%);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.tac-card__img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--tac-slate-50);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--tac-slate-100);
}
.tac-card__img-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--tac-slate-200) 1px, transparent 1px),
    linear-gradient(to bottom, var(--tac-slate-200) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: .3;
  pointer-events: none;
}
.tac-card__img img {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: contrast(1.1) saturate(.9);
  mix-blend-mode: multiply;
  transition: transform .3s ease-out;
}
.tac-card:hover .tac-card__img img { transform: scale(1.05); }
.tac-card__noimg { color: var(--tac-slate-300); position: relative; z-index: 2; }

.tac-card__body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.tac-card__brand-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
}
.tac-card__brand {
  font-family: var(--tac-font-tech);
  font-size: 10px;
  font-weight: 700;
  color: var(--tac-slate-500);
  text-transform: uppercase;
  letter-spacing: .16em;
  line-height: 1;
}
.tac-card__sku {
  font-family: var(--tac-font-mono);
  font-size: 9px;
  color: var(--tac-slate-400);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 50%;
}
.tac-card__name {
  font-family: var(--tac-font-tech);
  font-size: 16px;
  font-weight: 700;
  color: var(--tac-slate-900);
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: .005em;
  margin: 0 0 6px;
  word-break: break-word;
  hyphens: auto;
  min-height: 2.4em;
}
.tac-card__link {
  color: inherit;
  text-decoration: none;
  transition: color .15s;
}
.tac-card:hover .tac-card__link { color: var(--tac-orange); }
/* stretched-link pattern — the title link covers the whole card */
.tac-card__link::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
}

.tac-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}
.tac-card__price {
  font-family: var(--tac-font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--tac-slate-900);
  letter-spacing: -.01em;
  line-height: 1;
}
.tac-card__vat {
  font-family: var(--tac-font-mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--tac-slate-400);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ============================================================ *
 *  Product grid (category + home)                               *
 * ============================================================ */
.tac-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px) { .tac-grid { gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .tac-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .tac-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.tac-grid--featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .tac-grid--featured { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .tac-grid--featured { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ============================================================ *
 *  Category page — schematic header + two-col layout            *
 * ============================================================ */
.tac-cathead {
  max-width: var(--tac-max);
  margin: 16px auto 24px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) { .tac-cathead { padding: 0 32px; grid-template-columns: 1fr auto; align-items: end; gap: 24px; } }

.tac-cathead__block {
  border-left: 4px solid var(--tac-orange);
  padding: 4px 0 4px 16px;
}
.tac-cathead__label {
  font-family: var(--tac-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--tac-slate-500);
  text-transform: uppercase;
  letter-spacing: .15em;
  margin-bottom: 4px;
}
.tac-cathead__title {
  font-family: var(--tac-font-tech);
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tac-slate-900);
  letter-spacing: -.01em;
  margin: 0;
  line-height: 1;
}
@media (min-width: 768px) { .tac-cathead__title { font-size: 42px; } }

.tac-cathead__meta {
  display: flex;
  gap: 16px;
  font-family: var(--tac-font-mono);
  font-size: 12px;
  color: var(--tac-slate-600);
  align-items: center;
  flex-wrap: wrap;
}
.tac-cathead__count {
  color: var(--tac-slate-900);
  font-weight: 700;
  font-size: 13px;
}
.tac-cathead__count b {
  display: inline-block;
  background: var(--tac-slate-900);
  color: var(--tac-white);
  padding: 3px 8px;
  margin-right: 4px;
  letter-spacing: .02em;
}

.tac-cat-layout {
  max-width: var(--tac-max);
  margin: 0 auto;
  padding: 0 16px 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) { .tac-cat-layout { padding: 0 32px 48px; } }
@media (min-width: 1024px) { .tac-cat-layout { grid-template-columns: 260px 1fr; gap: 32px; } }

/* Filter sidebar */
.tac-side { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 1023px) {
  .tac-side { order: 2; }
}
.tac-side__group {
  background: var(--tac-white);
  border: 1px solid var(--tac-slate-200);
  padding: 14px;
  box-shadow: var(--tac-shadow-sm);
}
.tac-side__title {
  font-family: var(--tac-font-tech);
  font-size: 12px;
  font-weight: 700;
  color: var(--tac-slate-900);
  text-transform: uppercase;
  letter-spacing: .12em;
  border-bottom: 1px solid var(--tac-slate-200);
  padding-bottom: 8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tac-side__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; max-height: 280px; overflow-y: auto; }
.tac-side__list::-webkit-scrollbar { width: 4px; }
.tac-side__list::-webkit-scrollbar-thumb { background: var(--tac-slate-300); }
.tac-side-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-family: var(--tac-font-sans);
  font-size: 13px;
  color: var(--tac-slate-700);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: color .15s;
}
.tac-side-link:hover { color: var(--tac-orange); }
.tac-side-link.is-active { color: var(--tac-slate-900); font-weight: 700; }
.tac-side-link.is-active::before {
  content: '›';
  margin-right: 4px;
  color: var(--tac-orange);
}
.tac-side-link__count {
  font-family: var(--tac-font-mono);
  font-size: 10px;
  color: var(--tac-slate-400);
  font-weight: 700;
  flex-shrink: 0;
}
.tac-side-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 13px;
  color: var(--tac-slate-700);
  cursor: pointer;
  font-family: var(--tac-font-sans);
}
.tac-side-check input {
  width: 14px;
  height: 14px;
  accent-color: var(--tac-orange);
  margin: 0;
  cursor: pointer;
}
.tac-side-check:hover { color: var(--tac-slate-900); }
.tac-side-check__count {
  margin-left: auto;
  font-family: var(--tac-font-mono);
  font-size: 10px;
  color: var(--tac-slate-400);
  font-weight: 700;
}
.tac-side__search {
  width: 100%;
  border: 1px solid var(--tac-slate-300);
  background: var(--tac-slate-50);
  padding: 6px 8px;
  font-size: 12px;
  font-family: var(--tac-font-mono);
  margin-bottom: 8px;
  box-sizing: border-box;
  border-radius: 0;
}
.tac-side__search:focus { outline: none; border-color: var(--tac-orange); background: var(--tac-white); }

/* Sort + toolbar */
.tac-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--tac-white);
  border: 1px solid var(--tac-slate-200);
  margin-bottom: 20px;
  box-shadow: var(--tac-shadow-sm);
  font-family: var(--tac-font-mono);
  font-size: 12px;
  color: var(--tac-slate-600);
  gap: 12px;
  flex-wrap: wrap;
}
.tac-toolbar__left { display: flex; align-items: center; gap: 8px; }
.tac-toolbar__right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.tac-toolbar__sort {
  font-family: var(--tac-font-mono);
  font-size: 12px;
  padding: 6px 10px;
  background: var(--tac-slate-50);
  border: 1px solid var(--tac-slate-300);
  color: var(--tac-slate-900);
  font-weight: 600;
  cursor: pointer;
  border-radius: 0;
}
.tac-toolbar__sort:focus { outline: none; border-color: var(--tac-orange); }

/* Pagination */
.tac-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin: 32px 0;
  font-family: var(--tac-font-mono);
}
.tac-pager a, .tac-pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background: var(--tac-white);
  border: 1px solid var(--tac-slate-300);
  color: var(--tac-slate-700);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  transition: background .15s, color .15s, border-color .15s;
}
.tac-pager a:hover { border-color: var(--tac-orange); color: var(--tac-orange); }
.tac-pager .is-active {
  background: var(--tac-slate-900);
  color: var(--tac-white);
  border-color: var(--tac-slate-900);
}

/* Empty state */
.tac-empty {
  text-align: center;
  padding: 64px 16px;
  background: var(--tac-white);
  border: 1px dashed var(--tac-slate-300);
}
.tac-empty__title {
  font-family: var(--tac-font-tech);
  font-size: 18px;
  font-weight: 700;
  color: var(--tac-slate-900);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.tac-empty__body {
  font-size: 13px;
  color: var(--tac-slate-500);
  font-family: var(--tac-font-mono);
}

/* Brand intro */
.tac-brand-intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--tac-white);
  border: 1px solid var(--tac-slate-200);
  align-items: center;
}
.tac-brand-intro__logo {
  max-width: 120px;
  max-height: 60px;
}
.tac-brand-intro__logo img { max-width: 100%; max-height: 60px; object-fit: contain; }
.tac-brand-intro__text {
  font-size: 14px;
  color: var(--tac-slate-600);
  line-height: 1.6;
}

/* ============================================================ *
 *  Home page — hero, sections, category bento                   *
 * ============================================================ */
.tac-hero {
  position: relative;
  max-width: var(--tac-max);
  margin: 16px auto 48px;
  padding: 0 16px;
}
@media (min-width: 768px) { .tac-hero { padding: 0 32px; } }

.tac-hero__stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  background: var(--tac-white);
  border: 1px solid var(--tac-slate-200);
  overflow: hidden;
  padding: 32px 24px;
}
@media (min-width: 1024px) {
  .tac-hero__stage { grid-template-columns: 7fr 5fr; gap: 32px; padding: 56px 48px; min-height: 520px; }
}
.tac-hero__stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--tac-slate-100) 1px, transparent 1px),
    linear-gradient(to bottom, var(--tac-slate-100) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}

.tac-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}
.tac-hero__tagline {
  font-family: var(--tac-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--tac-slate-500);
  text-transform: uppercase;
  letter-spacing: .16em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tac-hero__tagline::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--tac-orange);
}
.tac-hero__title {
  font-family: var(--tac-font-tech);
  font-size: 44px;
  line-height: .95;
  font-weight: 700;
  color: var(--tac-slate-900);
  text-transform: uppercase;
  margin: 0;
  letter-spacing: -.02em;
}
@media (min-width: 768px) { .tac-hero__title { font-size: 64px; } }
@media (min-width: 1280px) { .tac-hero__title { font-size: 76px; } }
.tac-hero__title em {
  font-style: normal;
  color: var(--tac-orange);
}
.tac-hero__sub {
  font-family: var(--tac-font-sans);
  font-size: 15px;
  color: var(--tac-slate-600);
  line-height: 1.6;
  max-width: 520px;
  margin: 0;
}
.tac-hero__btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.tac-btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  font-family: var(--tac-font-tech);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  text-decoration: none;
  border: 0;
  transition: background .2s, color .2s;
  cursor: pointer;
  background: var(--tac-slate-900);
  color: var(--tac-white);
  --tac-btn-fill: var(--tac-slate-900);
}
.tac-btn.clip-angle-sm::before {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--tac-btn-fill);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%);
  z-index: -1;
  transition: background .2s;
}
.tac-btn--primary { background: var(--tac-slate-900); color: var(--tac-white); --tac-btn-fill: var(--tac-slate-900); }
.tac-btn--primary:hover { background: var(--tac-orange); --tac-btn-fill: var(--tac-orange); }
.tac-btn--outline { background: var(--tac-slate-900); color: var(--tac-slate-900); --tac-btn-fill: var(--tac-white); }
.tac-btn--outline:hover { background: var(--tac-slate-900); color: var(--tac-white); --tac-btn-fill: var(--tac-slate-900); }
.tac-btn--sm { padding: 12px 18px; font-size: 12px; }
.tac-btn svg { width: 16px; height: 16px; }

.tac-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
  border-top: 1px solid var(--tac-slate-200);
  padding-top: 24px;
}
.tac-hero__stat-num {
  font-family: var(--tac-font-tech);
  font-size: 28px;
  font-weight: 700;
  color: var(--tac-slate-900);
  line-height: 1;
  margin-bottom: 4px;
}
@media (min-width: 768px) { .tac-hero__stat-num { font-size: 36px; } }
.tac-hero__stat-label {
  font-family: var(--tac-font-mono);
  font-size: 10px;
  color: var(--tac-slate-500);
  text-transform: uppercase;
  letter-spacing: .08em;
  line-height: 1.3;
}

.tac-hero__visual {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}
.tac-hero__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--tac-slate-50);
  border: 1px solid var(--tac-slate-200);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}
.tac-hero__img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: contrast(1.05);
}
.tac-hero__card {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 16px;
  background: var(--tac-slate-900);
  color: var(--tac-white);
  padding: 10px 14px;
  max-width: 90%;
  z-index: 3;
}
.tac-hero__card-label {
  font-family: var(--tac-font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--tac-orange);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 4px;
}
.tac-hero__card-name {
  font-family: var(--tac-font-tech);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.25;
  letter-spacing: .02em;
}

/* Section (home page sections) */
.tac-section {
  max-width: var(--tac-max);
  margin: 0 auto 48px;
  padding: 0 16px;
}
@media (min-width: 768px) { .tac-section { padding: 0 32px; margin-bottom: 64px; } }

.tac-section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--tac-slate-200);
  padding-bottom: 12px;
  flex-wrap: wrap;
}
.tac-section__label {
  font-family: var(--tac-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--tac-slate-500);
  text-transform: uppercase;
  letter-spacing: .16em;
  margin-bottom: 4px;
}
.tac-section__title {
  font-family: var(--tac-font-tech);
  font-size: 28px;
  font-weight: 700;
  color: var(--tac-slate-900);
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: 1;
  margin: 0;
}
@media (min-width: 768px) { .tac-section__title { font-size: 36px; } }
.tac-section__more {
  font-family: var(--tac-font-tech);
  font-size: 12px;
  font-weight: 700;
  color: var(--tac-slate-900);
  text-transform: uppercase;
  letter-spacing: .12em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--tac-orange);
}
.tac-section__more:hover { color: var(--tac-orange); }

/* Category bento (home top categories) */
.tac-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 768px) { .tac-bento { grid-template-columns: repeat(4, 1fr); } }

.tac-bento__item {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--tac-white);
  border: 1px solid var(--tac-slate-200);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: var(--tac-slate-900);
  overflow: hidden;
  transition: border-color .2s, transform .2s;
  box-shadow: var(--tac-shadow-sm);
}
.tac-bento__item:hover { border-color: var(--tac-orange); transform: translateY(-2px); }
.tac-bento__item::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--tac-slate-100) 1px, transparent 1px),
    linear-gradient(to bottom, var(--tac-slate-100) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: .6;
  pointer-events: none;
}
.tac-bento__cnt {
  position: relative;
  z-index: 2;
  font-family: var(--tac-font-tech);
  font-size: 44px;
  font-weight: 700;
  color: var(--tac-slate-300);
  line-height: 1;
  letter-spacing: -.03em;
}
.tac-bento__name {
  position: relative;
  z-index: 2;
  font-family: var(--tac-font-tech);
  font-size: 17px;
  font-weight: 700;
  color: var(--tac-slate-900);
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: .01em;
}
.tac-bento__more {
  position: relative;
  z-index: 2;
  font-family: var(--tac-font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--tac-orange);
  text-transform: uppercase;
  letter-spacing: .14em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tac-bento__item:hover .tac-bento__cnt { color: var(--tac-orange); }

/* Trust / feature strip */
.tac-trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .tac-trust { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tac-trust { grid-template-columns: repeat(4, 1fr); } }
.tac-trust__item {
  background: var(--tac-white);
  border: 1px solid var(--tac-slate-200);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--tac-shadow-sm);
}
.tac-trust__icon {
  width: 36px;
  height: 36px;
  background: var(--tac-slate-100);
  color: var(--tac-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tac-trust__title {
  font-family: var(--tac-font-tech);
  font-size: 14px;
  font-weight: 700;
  color: var(--tac-slate-900);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.tac-trust__desc {
  font-family: var(--tac-font-sans);
  font-size: 12px;
  color: var(--tac-slate-600);
  line-height: 1.55;
}

/* Brand strip (home) */
.tac-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tac-brands a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: var(--tac-white);
  border: 1px solid var(--tac-slate-300);
  font-family: var(--tac-font-tech);
  font-size: 12px;
  font-weight: 700;
  color: var(--tac-slate-700);
  text-transform: uppercase;
  letter-spacing: .08em;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.tac-brands a:hover { border-color: var(--tac-orange); color: var(--tac-slate-900); }

/* ============================================================ *
 *  Compact stock line for card bodies (alt to chip)             *
 * ============================================================ */
.tac-stock-line {
  font-family: var(--tac-font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tac-stock-line--in { color: var(--tac-emerald-700); }
.tac-stock-line--in::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--tac-green); box-shadow: 0 0 4px var(--tac-green); }
.tac-stock-line--out { color: #b91c1c; }
.tac-stock-line--out::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #ef4444; }

/* ============================================================ *
 *  Flash messages                                               *
 * ============================================================ */
.tac-flash {
  padding: 12px 16px;
  margin-bottom: 20px;
  font-family: var(--tac-font-mono);
  font-size: 12px;
  font-weight: 700;
  border-left: 4px solid;
  letter-spacing: .02em;
}
.tac-flash--success { background: var(--tac-emerald-50); color: var(--tac-emerald-800); border-color: var(--tac-green); }
.tac-flash--danger  { background: #fef2f2; color: #991b1b; border-color: #ef4444; }
.tac-flash--warning { background: #fffbeb; color: #92400e; border-color: #f59e0b; }

/* ============================================================ *
 *  Form inputs (auth, checkout) — mono-labeled, clean           *
 * ============================================================ */
.tac-field { margin-bottom: 14px; }
.tac-field__label {
  display: block;
  font-family: var(--tac-font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--tac-slate-500);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 6px;
}
.tac-field__label-req::after { content: ' *'; color: var(--tac-orange); }
.tac-input, .tac-select, .tac-textarea {
  width: 100%;
  background: var(--tac-white);
  border: 1px solid var(--tac-slate-300);
  color: var(--tac-slate-900);
  font-family: var(--tac-font-sans);
  font-size: 14px;
  padding: 10px 12px;
  outline: none;
  border-radius: 0;
  box-sizing: border-box;
  transition: border-color .2s;
}
.tac-input:focus, .tac-select:focus, .tac-textarea:focus { border-color: var(--tac-orange); }
.tac-input.is-error, .tac-select.is-error, .tac-textarea.is-error { border-color: #ef4444; background: #fef2f2; }
.tac-textarea { min-height: 90px; font-family: var(--tac-font-sans); resize: vertical; }
.tac-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .tac-row--2 { grid-template-columns: 1fr 1fr; }
  .tac-row--3 { grid-template-columns: 1fr 1fr 1fr; }
  .tac-row--21 { grid-template-columns: 2fr 1fr; }
}
.tac-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--tac-slate-700);
  cursor: pointer;
  line-height: 1.45;
}
.tac-check input { width: 16px; height: 16px; accent-color: var(--tac-orange); margin: 2px 0 0; cursor: pointer; flex-shrink: 0; }
.tac-check a { color: var(--tac-orange); text-decoration: underline; }

/* ============================================================ *
 *  Auth / login card                                            *
 * ============================================================ */
.tac-auth {
  max-width: 420px;
  margin: 48px auto;
  padding: 32px 28px;
  background: var(--tac-white);
  border: 1px solid var(--tac-slate-200);
  box-shadow: var(--tac-shadow-sm);
}
.tac-auth__title {
  font-family: var(--tac-font-tech);
  font-size: 28px;
  font-weight: 700;
  color: var(--tac-slate-900);
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: 0 0 6px;
  line-height: 1;
}
.tac-auth__sub {
  font-family: var(--tac-font-mono);
  font-size: 11px;
  color: var(--tac-slate-500);
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--tac-slate-200);
  padding-bottom: 14px;
}
.tac-auth__submit {
  width: 100%;
  height: 48px;
  background: var(--tac-orange);
  color: var(--tac-white);
  border: 0;
  font-family: var(--tac-font-tech);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  cursor: pointer;
  margin-top: 8px;
  transition: background .25s;
}
.tac-auth__submit:hover { background: var(--tac-slate-900); }

/* ============================================================ *
 *  Text / article page                                          *
 * ============================================================ */
.tac-article {
  max-width: 820px;
  margin: 0 auto 64px;
  padding: 0 16px;
}
@media (min-width: 768px) { .tac-article { padding: 0 32px; } }
.tac-article__header {
  border-left: 4px solid var(--tac-orange);
  padding-left: 20px;
  margin-bottom: 32px;
}
.tac-article__label {
  font-family: var(--tac-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--tac-slate-500);
  text-transform: uppercase;
  letter-spacing: .15em;
  margin-bottom: 6px;
}
.tac-article__title {
  font-family: var(--tac-font-tech);
  font-size: 32px;
  font-weight: 700;
  color: var(--tac-slate-900);
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: 1.1;
  margin: 0;
}
@media (min-width: 768px) { .tac-article__title { font-size: 40px; } }
.tac-article__body {
  font-family: var(--tac-font-sans);
  font-size: 15px;
  color: var(--tac-slate-700);
  line-height: 1.75;
}
.tac-article__body h1, .tac-article__body h2, .tac-article__body h3, .tac-article__body h4 {
  font-family: var(--tac-font-tech);
  color: var(--tac-slate-900);
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: 32px 0 12px;
  line-height: 1.2;
}
.tac-article__body h1 { font-size: 26px; }
.tac-article__body h2 { font-size: 22px; }
.tac-article__body h3 { font-size: 18px; }
.tac-article__body h4 { font-size: 15px; letter-spacing: .08em; }
.tac-article__body p { margin: 0 0 18px; }
.tac-article__body a { color: var(--tac-orange); text-decoration: underline; text-underline-offset: 2px; }
.tac-article__body a:hover { color: var(--tac-orange-dark); }
.tac-article__body ul, .tac-article__body ol { margin: 0 0 18px; padding-left: 22px; }
.tac-article__body li { margin-bottom: 6px; }
.tac-article__body ul { list-style: none; padding-left: 0; }
.tac-article__body ul li::before { content: '›'; color: var(--tac-orange); font-weight: 700; margin-right: 8px; }
.tac-article__body strong, .tac-article__body b { color: var(--tac-slate-900); }
.tac-article__body blockquote {
  margin: 20px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--tac-slate-300);
  color: var(--tac-slate-600);
  font-style: italic;
}
.tac-article__body hr { border: 0; border-top: 1px solid var(--tac-slate-200); margin: 32px 0; }
.tac-article__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-family: var(--tac-font-mono);
  font-size: 12px;
}
.tac-article__body table th, .tac-article__body table td {
  border: 1px solid var(--tac-slate-200);
  padding: 8px 10px;
  text-align: left;
  color: var(--tac-slate-800);
}
.tac-article__body table th { background: var(--tac-slate-50); font-weight: 700; }
.tac-article__body img { max-width: 100%; height: auto; margin: 12px 0; }

/* ============================================================ *
 *  Directory (categories index): top-cat rollups                *
 * ============================================================ */
.tac-dir { display: flex; flex-direction: column; gap: 24px; }
.tac-dir__block { background: var(--tac-white); border: 1px solid var(--tac-slate-200); box-shadow: var(--tac-shadow-sm); }
.tac-dir__head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--tac-slate-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--tac-slate-50);
  font-family: var(--tac-font-tech);
  text-decoration: none;
  color: var(--tac-slate-900);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.tac-dir__head:hover .tac-dir__head-name { color: var(--tac-orange); }
.tac-dir__head-name { font-weight: 700; font-size: 16px; transition: color .15s; }
.tac-dir__head-cnt {
  font-family: var(--tac-font-mono);
  font-size: 11px;
  color: var(--tac-slate-500);
  font-weight: 700;
  padding: 2px 8px;
  background: var(--tac-white);
  border: 1px solid var(--tac-slate-300);
}
.tac-dir__children {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--tac-slate-100);
  padding: 1px;
}
@media (min-width: 640px) { .tac-dir__children { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .tac-dir__children { grid-template-columns: repeat(4, 1fr); } }
.tac-dir__child {
  background: var(--tac-white);
  padding: 12px 14px;
  font-family: var(--tac-font-sans);
  font-size: 13px;
  color: var(--tac-slate-700);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  transition: color .15s, background .15s;
}
.tac-dir__child:hover { background: var(--tac-slate-50); color: var(--tac-orange); }
.tac-dir__child-cnt {
  font-family: var(--tac-font-mono);
  font-size: 10px;
  color: var(--tac-slate-400);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================ *
 *  Brand grid (brands list)                                     *
 * ============================================================ */
.tac-brand-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) { .tac-brand-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .tac-brand-grid { grid-template-columns: repeat(4, 1fr); } }
.tac-brand-card {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--tac-white);
  border: 1px solid var(--tac-slate-200);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px 12px;
  gap: 8px;
  text-decoration: none;
  transition: border-color .2s, transform .2s;
  box-shadow: var(--tac-shadow-sm);
  overflow: hidden;
}
.tac-brand-card:hover { border-color: var(--tac-orange); transform: translateY(-2px); }
.tac-brand-card__logo-wrap {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tac-brand-card__logo { max-width: 85%; max-height: 70px; object-fit: contain; filter: grayscale(1) contrast(1.05); transition: filter .2s; }
.tac-brand-card:hover .tac-brand-card__logo { filter: none; }
.tac-brand-card__name-big {
  font-family: var(--tac-font-tech);
  font-size: 22px;
  font-weight: 700;
  color: var(--tac-slate-900);
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1;
  text-align: center;
}
.tac-brand-card__name {
  font-family: var(--tac-font-mono);
  font-size: 10px;
  color: var(--tac-slate-500);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ============================================================ *
 *  Letter index + heading (weapons)                             *
 * ============================================================ */
.tac-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px 12px;
  background: var(--tac-white);
  border: 1px solid var(--tac-slate-200);
  margin-bottom: 24px;
  box-shadow: var(--tac-shadow-sm);
}
.tac-letter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  background: var(--tac-slate-50);
  border: 1px solid var(--tac-slate-200);
  color: var(--tac-slate-700);
  font-family: var(--tac-font-mono);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.tac-letter-pill:hover { background: var(--tac-slate-900); color: var(--tac-white); border-color: var(--tac-slate-900); }
.tac-letter-head {
  font-family: var(--tac-font-tech);
  font-size: 24px;
  font-weight: 700;
  color: var(--tac-slate-900);
  text-transform: uppercase;
  letter-spacing: -.01em;
  margin: 12px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--tac-orange);
  display: inline-block;
}

/* ============================================================ *
 *  Cart page                                                    *
 * ============================================================ */
.tac-cart-wrap {
  max-width: var(--tac-max);
  margin: 0 auto 64px;
  padding: 0 16px;
}
@media (min-width: 768px) { .tac-cart-wrap { padding: 0 32px; } }
.tac-cart {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 1024px) { .tac-cart { grid-template-columns: 1fr 360px; gap: 32px; align-items: start; } }

.tac-cart__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--tac-slate-200);
  padding-bottom: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.tac-cart__title {
  font-family: var(--tac-font-tech);
  font-size: 28px;
  font-weight: 700;
  color: var(--tac-slate-900);
  text-transform: uppercase;
  letter-spacing: -.01em;
  margin: 0;
  line-height: 1;
}
.tac-cart__count {
  font-family: var(--tac-font-mono);
  font-size: 12px;
  color: var(--tac-slate-500);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}

.tac-cart-rows { display: flex; flex-direction: column; background: var(--tac-white); border: 1px solid var(--tac-slate-200); box-shadow: var(--tac-shadow-sm); }
.tac-cart-thead {
  display: none;
  font-family: var(--tac-font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--tac-slate-500);
  font-weight: 700;
  padding: 10px 14px;
  border-bottom: 1px solid var(--tac-slate-200);
  background: var(--tac-slate-50);
}
@media (min-width: 768px) {
  .tac-cart-thead {
    display: grid;
    grid-template-columns: minmax(0,1fr) 120px 140px 110px 32px;
    gap: 12px;
    align-items: center;
  }
  .tac-cart-thead__price, .tac-cart-thead__total { text-align: right; }
  .tac-cart-thead__qty { text-align: center; }
}
.tac-cart-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--tac-slate-100);
  align-items: center;
}
@media (min-width: 768px) {
  .tac-cart-row { grid-template-columns: minmax(0,1fr) 120px 140px 110px 32px; gap: 12px; }
}
.tac-cart-row:last-child { border-bottom: 0; }
.tac-cart-row__product {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
@media (min-width: 768px) { .tac-cart-row__product { grid-template-columns: 64px 1fr; } }
.tac-cart-row__img {
  width: 56px;
  height: 56px;
  background: var(--tac-white);
  border: 1px solid var(--tac-slate-200);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  text-decoration: none;
}
@media (min-width: 768px) { .tac-cart-row__img { width: 64px; height: 64px; } }
.tac-cart-row__img img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.tac-cart-row__info { min-width: 0; }
.tac-cart-row__brand {
  font-family: var(--tac-font-mono);
  font-size: 10px;
  color: var(--tac-slate-500);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 2px;
}
.tac-cart-row__name {
  font-family: var(--tac-font-tech);
  font-size: 14px;
  font-weight: 700;
  color: var(--tac-slate-900);
  text-transform: uppercase;
  letter-spacing: .01em;
  text-decoration: none;
  display: block;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tac-cart-row__name:hover { color: var(--tac-orange); }
.tac-cart-row__sku {
  font-family: var(--tac-font-mono);
  font-size: 10px;
  color: var(--tac-slate-400);
  letter-spacing: .03em;
}
.tac-cart-row__price, .tac-cart-row__total { font-family: var(--tac-font-mono); text-align: right; }
.tac-cart-row__price-main, .tac-cart-row__total-main {
  font-size: 13px;
  font-weight: 700;
  color: var(--tac-slate-900);
}
.tac-cart-row__price-sub {
  font-size: 10px;
  color: var(--tac-slate-400);
  text-transform: uppercase;
  letter-spacing: .04em;
  display: block;
}
.tac-cart-row__qty {
  display: flex;
  height: 36px;
  background: var(--tac-white);
  border: 1px solid var(--tac-slate-300);
  align-items: stretch;
  max-width: 120px;
  margin: 0 auto;
}
.tac-cart-row__qty button {
  width: 28px;
  border: 0;
  background: none;
  color: var(--tac-slate-500);
  cursor: pointer;
  font-weight: 700;
}
.tac-cart-row__qty button:hover { color: var(--tac-slate-900); }
.tac-cart-row__qty input {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: center;
  font-family: var(--tac-font-mono);
  font-weight: 700;
  color: var(--tac-slate-900);
  outline: none;
  -moz-appearance: textfield;
}
.tac-cart-row__qty input::-webkit-inner-spin-button,
.tac-cart-row__qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.tac-cart-row__del {
  background: none;
  border: 0;
  color: var(--tac-slate-400);
  cursor: pointer;
  padding: 6px;
  transition: color .15s;
  display: flex;
  justify-content: center;
}
.tac-cart-row__del:hover { color: #ef4444; }
/* On mobile put rows below */
@media (max-width: 767px) {
  .tac-cart-row__product { grid-column: 1 / -1; }
  .tac-cart-row__price, .tac-cart-row__qty, .tac-cart-row__total, .tac-cart-row__del { grid-column: 1 / -1; }
  .tac-cart-row__price { text-align: left; }
  .tac-cart-row__total { text-align: left; }
  .tac-cart-row__qty { margin: 0; }
  .tac-cart-row__del { justify-content: flex-start; padding-left: 0; }
}

.tac-cart-acts {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.tac-cart-acts__continue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--tac-font-tech);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--tac-slate-700);
  text-decoration: none;
}
.tac-cart-acts__continue:hover { color: var(--tac-orange); }
.tac-cart-acts__clear {
  font-family: var(--tac-font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: var(--tac-slate-500);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.tac-cart-acts__clear:hover { color: #b91c1c; text-decoration: underline; }

/* Cart summary sidebar */
.tac-summary {
  background: var(--tac-white);
  border: 1px solid var(--tac-slate-200);
  padding: 20px;
  box-shadow: var(--tac-shadow-sm);
  position: sticky;
  top: 100px;
}
.tac-summary__title {
  font-family: var(--tac-font-tech);
  font-size: 13px;
  font-weight: 900;
  color: var(--tac-slate-900);
  text-transform: uppercase;
  letter-spacing: .12em;
  border-bottom: 1px solid var(--tac-slate-200);
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.tac-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-family: var(--tac-font-mono);
  font-size: 12px;
  color: var(--tac-slate-600);
}
.tac-summary__row b { color: var(--tac-slate-900); font-weight: 700; }
.tac-summary__sep { border-top: 1px solid var(--tac-slate-200); margin: 10px 0; }
.tac-summary__grand {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 4px;
}
.tac-summary__grand-label {
  font-family: var(--tac-font-tech);
  font-size: 14px;
  font-weight: 900;
  color: var(--tac-slate-900);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.tac-summary__grand-amt {
  font-family: var(--tac-font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--tac-slate-900);
  letter-spacing: -.01em;
}
.tac-summary__note {
  font-family: var(--tac-font-mono);
  font-size: 10px;
  color: var(--tac-slate-400);
  text-transform: uppercase;
  letter-spacing: .08em;
  text-align: right;
  margin-bottom: 14px;
}
.tac-summary__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  background: var(--tac-orange);
  color: var(--tac-white);
  font-family: var(--tac-font-tech);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  gap: 8px;
  box-shadow: var(--tac-shadow-orange);
  transition: background .2s, box-shadow .2s;
}
.tac-summary__cta:hover { background: var(--tac-slate-900); box-shadow: var(--tac-shadow-slate); }
.tac-summary__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-family: var(--tac-font-mono);
  font-size: 10px;
  color: var(--tac-slate-500);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.tac-cart-empty {
  text-align: center;
  padding: 64px 16px;
  background: var(--tac-white);
  border: 1px dashed var(--tac-slate-300);
  margin: 24px auto;
  max-width: 480px;
}
.tac-cart-empty__ico { color: var(--tac-slate-300); margin-bottom: 16px; }
.tac-cart-empty__title {
  font-family: var(--tac-font-tech);
  font-size: 22px;
  font-weight: 700;
  color: var(--tac-slate-900);
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: 0 0 6px;
}
.tac-cart-empty__body {
  font-family: var(--tac-font-sans);
  font-size: 13px;
  color: var(--tac-slate-500);
  margin-bottom: 20px;
}

/* ============================================================ *
 *  Checkout                                                     *
 * ============================================================ */
.tac-co-wrap {
  max-width: var(--tac-max);
  margin: 0 auto 64px;
  padding: 0 16px;
}
@media (min-width: 768px) { .tac-co-wrap { padding: 0 32px; } }
.tac-co {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 1024px) { .tac-co { grid-template-columns: 1fr 380px; gap: 32px; align-items: start; } }

.tac-co__title {
  font-family: var(--tac-font-tech);
  font-size: 32px;
  font-weight: 700;
  color: var(--tac-slate-900);
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: 1;
  margin: 0 0 20px;
}

.tac-co__step {
  background: var(--tac-white);
  border: 1px solid var(--tac-slate-200);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--tac-shadow-sm);
}
.tac-co__step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--tac-slate-200);
}
.tac-co__step-num {
  width: 28px;
  height: 28px;
  background: var(--tac-slate-900);
  color: var(--tac-white);
  font-family: var(--tac-font-mono);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tac-co__step-title {
  font-family: var(--tac-font-tech);
  font-size: 16px;
  font-weight: 700;
  color: var(--tac-slate-900);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0;
}
.tac-co__step-sub {
  font-family: var(--tac-font-mono);
  font-size: 11px;
  color: var(--tac-slate-500);
  letter-spacing: .04em;
  margin-left: auto;
}

/* Radio card options (shipping / payment) */
.tac-radios { display: flex; flex-direction: column; gap: 8px; }
.tac-radio-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 2px solid var(--tac-slate-200);
  background: var(--tac-white);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.tac-radio-card:hover { border-color: var(--tac-slate-400); }
.tac-radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.tac-radio-card__check {
  width: 18px;
  height: 18px;
  border: 2px solid var(--tac-slate-300);
  flex-shrink: 0;
  position: relative;
  border-radius: 50%;
  transition: border-color .2s;
}
.tac-radio-card input:checked ~ .tac-radio-card__check::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--tac-orange);
  border-radius: 50%;
}
.tac-radio-card input:checked ~ .tac-radio-card__check { border-color: var(--tac-orange); }
.tac-radio-card:has(input:checked) { border-color: var(--tac-orange); background: #fff7ef; }
.tac-radio-card__body { flex: 1; min-width: 0; }
.tac-radio-card__label {
  font-family: var(--tac-font-tech);
  font-size: 14px;
  font-weight: 700;
  color: var(--tac-slate-900);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.tac-radio-card__sub {
  font-family: var(--tac-font-mono);
  font-size: 10px;
  color: var(--tac-slate-500);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: 2px;
}
.tac-radio-card__price {
  font-family: var(--tac-font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--tac-slate-900);
  flex-shrink: 0;
}

.tac-co__submit-bar {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 20px;
  flex-wrap: wrap;
}
.tac-co__place {
  flex: 1;
  min-height: 56px;
  background: var(--tac-orange);
  color: var(--tac-white);
  font-family: var(--tac-font-tech);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  border: 0;
  cursor: pointer;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--tac-shadow-orange);
  transition: background .2s, box-shadow .2s;
}
.tac-co__place:hover { background: var(--tac-slate-900); box-shadow: var(--tac-shadow-slate); }
.tac-co__place[disabled] { background: var(--tac-slate-300); color: var(--tac-slate-500); cursor: not-allowed; box-shadow: none; }

.tac-co-sum {
  background: var(--tac-white);
  border: 1px solid var(--tac-slate-200);
  padding: 18px;
  box-shadow: var(--tac-shadow-sm);
  position: sticky;
  top: 100px;
}
.tac-co-sum__items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}
.tac-co-sum__item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--tac-slate-700);
}
.tac-co-sum__item-img {
  width: 40px;
  height: 40px;
  border: 1px solid var(--tac-slate-200);
  background: var(--tac-white);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tac-co-sum__item-img img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.tac-co-sum__item-name {
  font-family: var(--tac-font-tech);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tac-slate-900);
  letter-spacing: .02em;
  line-height: 1.2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.tac-co-sum__item-qty {
  font-family: var(--tac-font-mono);
  font-size: 10px;
  color: var(--tac-slate-500);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.tac-co-sum__item-total {
  font-family: var(--tac-font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--tac-slate-900);
  text-align: right;
}

/* ============================================================ *
 *  Order confirmation (thank-you)                               *
 * ============================================================ */
.tac-order-wrap {
  max-width: 980px;
  margin: 0 auto 64px;
  padding: 0 16px;
}
@media (min-width: 768px) { .tac-order-wrap { padding: 0 32px; } }
.tac-order-banner {
  background: var(--tac-emerald-50);
  border: 1px solid var(--tac-emerald-200);
  padding: 28px 24px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: center;
  box-shadow: 0 0 20px rgba(16, 185, 129, .05);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.tac-order-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(16, 185, 129, .05) 1px, transparent 1px);
  background-size: 100% 4px;
  pointer-events: none;
}
.tac-order-banner__ico {
  width: 48px;
  height: 48px;
  background: var(--tac-green);
  color: var(--tac-white);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.tac-order-banner__head {
  position: relative;
  z-index: 2;
}
.tac-order-banner__label {
  font-family: var(--tac-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--tac-emerald-700);
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 2px;
}
.tac-order-banner__title {
  font-family: var(--tac-font-tech);
  font-size: 26px;
  font-weight: 700;
  color: var(--tac-slate-900);
  text-transform: uppercase;
  letter-spacing: -.01em;
  margin: 0;
  line-height: 1;
}
.tac-order-banner__sub {
  font-family: var(--tac-font-mono);
  font-size: 12px;
  color: var(--tac-slate-600);
  margin-top: 4px;
}

.tac-order-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) { .tac-order-grid { grid-template-columns: 2fr 1fr; } }

.tac-order-panel {
  background: var(--tac-white);
  border: 1px solid var(--tac-slate-200);
  padding: 20px;
  box-shadow: var(--tac-shadow-sm);
}
.tac-order-panel__title {
  font-family: var(--tac-font-tech);
  font-size: 14px;
  font-weight: 700;
  color: var(--tac-slate-900);
  text-transform: uppercase;
  letter-spacing: .12em;
  border-bottom: 1px solid var(--tac-slate-200);
  padding-bottom: 10px;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tac-order-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  font-family: var(--tac-font-mono);
  font-size: 12px;
  color: var(--tac-slate-700);
}
.tac-order-meta dt {
  color: var(--tac-slate-500);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: .08em;
  font-weight: 700;
  margin-bottom: 2px;
}
.tac-order-meta dd { margin: 0; color: var(--tac-slate-900); font-weight: 700; }

/* ============================================================ *
 *  Category v4 — terminal hero + horizontal tabs                *
 * ============================================================ */
.tac-cathero {
  position: relative;
  background: var(--tac-white);
  border: 1px solid var(--tac-slate-200);
  padding: 24px 20px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: var(--tac-shadow-sm);
}
@media (min-width: 1024px) { .tac-cathero { padding: 40px; margin-bottom: 24px; } }
.tac-cathero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--tac-slate-200) 1px, transparent 1px),
    linear-gradient(to bottom, var(--tac-slate-200) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: .5;
  pointer-events: none;
}
.tac-cathero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 768px) {
  .tac-cathero__inner { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 32px; }
}
.tac-cathero__body { flex: 1 1 auto; min-width: 0; }
.tac-cathero__label {
  font-family: var(--tac-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--tac-slate-500);
  text-transform: uppercase;
  letter-spacing: .15em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tac-cathero__label::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--tac-orange);
  display: inline-block;
  animation: tac-pulse-fast 1.5s infinite;
}
.tac-cathero__title {
  font-family: var(--tac-font-tech);
  font-size: 36px;
  font-weight: 800;
  color: var(--tac-slate-900);
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: .95;
  margin: 0 0 12px;
}
@media (min-width: 768px) { .tac-cathero__title { font-size: 56px; } }
@media (min-width: 1280px) { .tac-cathero__title { font-size: 68px; } }
.tac-cathero__desc {
  font-family: var(--tac-font-sans);
  font-size: 14px;
  color: var(--tac-slate-600);
  line-height: 1.6;
  margin: 0;
  max-width: 560px;
}

.tac-cathero__status {
  flex-shrink: 0;
  border: 1px solid var(--tac-emerald-200);
  background: rgba(236, 253, 245, .5);
  padding: 14px 16px;
  font-family: var(--tac-font-mono);
  font-size: 12px;
  box-shadow: 0 0 12px rgba(16, 185, 129, .05);
  min-width: 260px;
  position: relative;
}
/* Replace clip-path with a real border + notch overlay so the top-right corner keeps its border. */
.tac-cathero__status.clip-angle-sm { clip-path: none; }
.tac-cathero__status.clip-angle-sm::after {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 12px;
  height: 12px;
  background: linear-gradient(to bottom left,
    var(--tac-slate-50) 0,
    var(--tac-slate-50) 45%,
    var(--tac-emerald-200) 45%,
    var(--tac-emerald-200) 55%,
    transparent 55%);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.tac-cathero__status-head {
  color: var(--tac-emerald-700);
  font-weight: 700;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(167, 243, 208, .8);
  margin-bottom: 10px;
}
.tac-cathero__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tac-green-light);
  box-shadow: 0 0 4px var(--tac-green-light);
}
.tac-cathero__status-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.tac-cathero__status-line {
  font-family: var(--tac-font-mono);
  font-size: 13px;
  color: var(--tac-slate-700);
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: .01em;
}
.tac-cathero__status-line b {
  color: var(--tac-slate-900);
  font-weight: 700;
}
.tac-cathero__status-label {
  font-size: 10px;
  color: var(--tac-slate-500);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.tac-cathero__status-value {
  color: var(--tac-slate-900);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.1;
}
.tac-cathero__status-value--green { color: var(--tac-emerald-700); }

/* Horizontal subcategory tabs (the "tree on top") */
.tac-subtabs {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  overflow-x: auto;
  white-space: nowrap;
  margin-bottom: 16px;
  padding-bottom: 1px;
  border-bottom: 1px solid var(--tac-slate-200);
  scrollbar-width: thin;
}
.tac-subtabs::-webkit-scrollbar { height: 4px; }
.tac-subtabs::-webkit-scrollbar-thumb { background: var(--tac-slate-300); }
.tac-subtab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--tac-font-tech);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .1em;
  text-decoration: none;
  background: var(--tac-white);
  color: var(--tac-slate-600);
  border: 1px solid var(--tac-slate-200);
  border-bottom: 0;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.tac-subtab:hover { background: var(--tac-slate-50); color: var(--tac-slate-900); }
.tac-subtab.is-active {
  background: var(--tac-slate-900);
  color: var(--tac-white);
  border-color: var(--tac-slate-900);
}
.tac-subtab__count {
  font-family: var(--tac-font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  background: var(--tac-slate-100);
  color: var(--tac-slate-500);
}
.tac-subtab.is-active .tac-subtab__count {
  background: var(--tac-slate-800);
  color: var(--tac-orange);
}

/* Sticky toolbar v4 */
.tac-toolbar--v4 {
  background: var(--tac-white);
  border: 1px solid var(--tac-slate-200);
  padding: 8px 12px;
  position: sticky;
  top: 72px;
  z-index: 20;
}
.tac-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.tac-toggle__input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.tac-toggle__track {
  position: relative;
  width: 32px;
  height: 16px;
  background: var(--tac-slate-200);
  display: inline-block;
  transition: background .2s;
  flex-shrink: 0;
}
.tac-toggle__track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  background: var(--tac-white);
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
  transition: transform .2s;
}
.tac-toggle__input:checked + .tac-toggle__track { background: var(--tac-green); }
.tac-toggle__input:checked + .tac-toggle__track::after { transform: translateX(16px); }
.tac-toggle__label {
  font-family: var(--tac-font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--tac-slate-700);
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1;
}
.tac-toggle__input:not(:checked) ~ .tac-toggle__label { color: var(--tac-slate-500); }
.tac-toolbar__divider { width: 1px; height: 16px; background: var(--tac-slate-300); }

/* Product card v4 — adds status badge + stock bar + hover CTA */
.tac-card__badges {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px;
  pointer-events: none;
}
.tac-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  font-family: var(--tac-font-mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.3;
  box-shadow: var(--tac-shadow-sm);
  border: 1px solid transparent;
}
.tac-card__badge--ready { background: var(--tac-emerald-50); color: var(--tac-emerald-700); border-color: var(--tac-emerald-200); }
.tac-card__badge--ready::before {
  content: ''; width: 5px; height: 5px; background: var(--tac-green-light); border-radius: 50%; display: inline-block;
  animation: tac-pulse-fast 1.5s infinite;
}
.tac-card__badge--low { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.tac-card__badge--out { background: var(--tac-slate-100); color: var(--tac-slate-500); border-color: var(--tac-slate-300); }

.tac-card__bar-wrap {
  background: var(--tac-slate-50);
  border: 1px solid var(--tac-slate-200);
  padding: 6px 8px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tac-card__bar-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--tac-font-mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--tac-slate-600);
  line-height: 1.2;
}
.tac-card__bar-qty { color: var(--tac-emerald-700); }
.tac-card__bar-wrap--low .tac-card__bar-qty { color: #b45309; }
.tac-card__bar-wrap--out .tac-card__bar-qty { color: var(--tac-slate-500); }
.tac-card__bar {
  height: 4px;
  background: var(--tac-slate-200);
  overflow: hidden;
  position: relative;
}
.tac-card__bar-fill {
  height: 100%;
  background: var(--tac-green);
  transition: width .3s;
}
.tac-card__bar-wrap--low .tac-card__bar-fill { background: #f59e0b; }
.tac-card__bar-wrap--out .tac-card__bar-fill {
  width: 100% !important;
  background-image: repeating-linear-gradient(45deg, var(--tac-slate-300), var(--tac-slate-300) 4px, transparent 4px, transparent 8px);
}

.tac-card__quick {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 44px;
  background: var(--tac-slate-900);
  color: var(--tac-white);
  font-family: var(--tac-font-tech);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .14em;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transform: translateY(100%);
  transition: transform .25s;
  z-index: 3;
  pointer-events: none;
  text-decoration: none;
}
.tac-card:hover .tac-card__quick { transform: translateY(0); pointer-events: auto; }
.tac-card__quick:hover { background: var(--tac-orange); color: var(--tac-white); }
.tac-card__quick--out { background: var(--tac-slate-200); color: var(--tac-slate-500); }
.tac-card__quick--out:hover { background: var(--tac-slate-300); color: var(--tac-slate-700); }

/* Load more button */
.tac-loadmore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--tac-font-tech);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 13px;
  background: var(--tac-white);
  color: var(--tac-slate-900);
  border: 2px solid var(--tac-slate-300);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.tac-loadmore:hover {
  border-color: var(--tac-slate-900);
  box-shadow: 4px 4px 0 var(--tac-slate-900);
}
.tac-loadmore:active { box-shadow: none; transform: translate(2px, 2px); }
.tac-loadmore-wrap { text-align: center; margin: 32px 0; }
