/* Catalog product visuals (homepage + feature landings) */

.th-feature-hero-grid.th-feature-hero-grid--catalog {
  align-items: center;
}

.th-feature-hero-grid--catalog .th-feature-visual {
  min-height: 460px;
}

.th-feature-hero-card.th-cat-hero-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  max-width: none;
  padding: 0;
  width: 100%;
}

.hf-visuals .th-feature-hero-card.th-cat-hero-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  max-width: none;
  padding: 0;
  width: 100%;
}

.th-showcase-visual .th-cat,
.hf-visuals .th-cat {
  max-width: 100%;
}

.th-showcase-card:has(> .th-cat) {
  background: transparent;
  border: 0;
  box-shadow: none;
  max-width: none;
  padding: 0;
  width: 100%;
}

.th-cat {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
  color: #0f172a;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.th-cat-head {
  align-items: center;
  border-bottom: 1px solid #eef2f7;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 12px 14px;
}

.th-cat-kicker {
  align-items: center;
  color: #155eee;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 700;
  gap: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.th-cat-kicker i,
.th-cat-kicker svg {
  flex: 0 0 16px;
}

.th-cat-title {
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.th-cat-live {
  align-items: center;
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  color: #15803d;
  display: inline-flex;
  font-size: 0.64rem;
  font-weight: 700;
  gap: 6px;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  text-transform: uppercase;
}

.th-cat-live::before {
  animation: th-cat-pulse 1.5s ease-in-out infinite;
  background: #22c55e;
  border-radius: 50%;
  content: "";
  height: 6px;
  width: 6px;
}

.th-cat-body {
  padding: 12px 14px 14px;
}

.th-cat-row {
  align-items: center;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  display: flex;
  gap: 10px;
  padding: 9px 10px;
  transform: translateY(8px);
  opacity: 0;
}

.th-cat-row.is-visible {
  animation: th-cat-rise 0.45s ease forwards;
}

.th-cat-row.is-active {
  border-color: #cfe0ff;
  box-shadow: 0 0 0 3px rgba(21, 94, 238, 0.08);
}

.th-cat-avatar {
  align-items: center;
  background: #eef4ff;
  border-radius: 9px;
  color: #155eee;
  display: inline-flex;
  flex: 0 0 32px;
  font-size: 0.72rem;
  font-weight: 800;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.th-cat-meta {
  min-width: 0;
  flex: 1;
}

.th-cat-meta strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.th-cat-meta span {
  color: #64748b;
  display: block;
  font-size: 0.7rem;
  line-height: 1.25;
}

.th-cat-badge {
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  white-space: nowrap;
}

.th-cat-badge.is-ok {
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.th-cat-badge.is-warn {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #c2410c;
}

.th-cat-badge.is-bad {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.th-cat-badge.is-blue {
  background: #eef4ff;
  border: 1px solid #cfe0ff;
  color: #155eee;
}

.th-cat-stats {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.th-cat-stat {
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: 9px 10px;
}

.th-cat-stat strong {
  color: #0f172a;
  display: block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.th-cat-stat span {
  color: #64748b;
  font-size: 0.64rem;
  font-weight: 600;
}

.th-cat-search {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  padding: 9px 11px;
}

.th-cat-search svg {
  color: #94a3b8;
  flex: 0 0 14px;
}

.th-cat-type {
  color: #0f172a;
  flex: 1;
  font-size: 0.78rem;
  font-weight: 600;
  min-height: 1.1em;
}

.th-cat-type::after {
  animation: th-cat-caret 0.9s steps(1) infinite;
  background: #155eee;
  content: "";
  display: inline-block;
  height: 0.9em;
  margin-left: 2px;
  vertical-align: -1px;
  width: 1.5px;
}

.th-cat-type.is-done::after {
  display: none;
}

.th-cat-progress {
  background: #eef2f7;
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
}

.th-cat-progress > i {
  background: linear-gradient(90deg, #155eee, #60a5fa);
  border-radius: inherit;
  display: block;
  height: 100%;
  transform-origin: left center;
  width: 0;
}

.th-cat-progress > i.is-run {
  animation: th-cat-fill 2.4s ease forwards;
}

.th-cat-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.th-cat-scan {
  animation: th-cat-scan 2.8s ease-in-out infinite;
  background: linear-gradient(180deg, transparent, rgba(21, 94, 238, 0.16), transparent);
  height: 42px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: -40px;
}

.th-cat-gauge {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.th-cat-ring {
  height: 116px;
  position: relative;
  width: 116px;
}

.th-cat-ring svg {
  height: 100%;
  transform: rotate(-90deg);
  width: 100%;
}

.th-cat-ring-track {
  fill: none;
  stroke: #e8eef8;
  stroke-width: 10;
}

.th-cat-ring-value {
  fill: none;
  stroke: #155eee;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  stroke-linecap: round;
  stroke-width: 10;
  transition: stroke-dashoffset 0.8s ease;
}

.th-cat-ring-label {
  align-items: center;
  display: flex;
  flex-direction: column;
  inset: 0;
  justify-content: center;
  position: absolute;
}

.th-cat-ring-label strong {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.th-cat-ring-label span {
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.th-cat-factors {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.th-cat-factor {
  align-items: center;
  display: flex;
  gap: 8px;
}

.th-cat-factor em {
  background: #eef4ff;
  border-radius: 999px;
  flex: 1;
  height: 6px;
  overflow: hidden;
  position: relative;
}

.th-cat-factor em i {
  background: #155eee;
  display: block;
  height: 100%;
  width: 0;
}

.th-cat-factor em i.is-run {
  animation: th-cat-fill 1.4s ease forwards;
}

.th-cat-factor span {
  color: #475569;
  flex: 0 0 72px;
  font-size: 0.68rem;
  font-weight: 600;
}

.th-cat-split {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.th-cat-steps {
  display: flex;
  gap: 8px;
}

.th-cat-step {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e8eef8;
  border-radius: 12px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 10px 6px;
  text-align: center;
}

.th-cat-step.is-done,
.th-cat-step.is-active {
  background: #eef4ff;
  border-color: #cfe0ff;
}

.th-cat-step strong {
  font-size: 0.68rem;
  font-weight: 700;
}

.th-cat-dot {
  align-items: center;
  background: #fff;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  color: #155eee;
  display: inline-flex;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.th-cat-step.is-done .th-cat-dot,
.th-cat-step.is-active .th-cat-dot {
  background: #155eee;
  border-color: #155eee;
  color: #fff;
}

.th-cat-try {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.th-cat-stage {
  align-items: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(21, 94, 238, 0.08), transparent 46%),
    linear-gradient(180deg, #f8fbff 0%, #eef3fb 100%);
  border: 1px solid #e5edf8;
  border-radius: 14px;
  display: flex;
  justify-content: center;
  min-height: 210px;
  overflow: hidden;
  position: relative;
}

.th-cat-mannequin {
  height: 180px;
  position: relative;
  width: 92px;
}

.th-cat-mannequin svg {
  height: 100%;
  width: 100%;
}

.th-cat-garment {
  fill: #155eee;
  transition: fill 0.45s ease;
}

.th-cat-garment.is-amber { fill: #f59e0b; }
.th-cat-garment.is-rose { fill: #e11d48; }
.th-cat-garment.is-teal { fill: #0d9488; }

.th-cat-swatches {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}

.th-cat-swatch {
  border: 2px solid transparent;
  border-radius: 50%;
  height: 16px;
  width: 16px;
}

.th-cat-swatch.is-active {
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(21, 94, 238, 0.16);
}

.th-cat-room {
  background: linear-gradient(180deg, #f4f7fb 0%, #e8eef6 100%);
  border: 1px solid #e5edf8;
  border-radius: 14px;
  min-height: 210px;
  overflow: hidden;
  position: relative;
}

.th-cat-room-wall {
  background: repeating-linear-gradient(90deg, #eef3f9 0 18px, #e6edf6 18px 19px);
  height: 58%;
}

.th-cat-room-floor {
  background: linear-gradient(180deg, #dbe4f0, #c9d4e4);
  height: 42%;
}

.th-cat-sofa {
  bottom: 18%;
  height: 70px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 140px;
}

.th-cat-sofa-body {
  fill: #64748b;
  transition: fill 0.5s ease;
}

.th-cat-sofa-body.is-navy { fill: #1e3a8a; }
.th-cat-sofa-body.is-sand { fill: #d6b48a; }
.th-cat-sofa-body.is-sage { fill: #6b8f71; }

.th-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.th-cat-pill {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #334155;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 9px;
}

.th-cat-pill.is-active {
  background: #155eee;
  border-color: #155eee;
  color: #fff;
}

.th-cat-code {
  background: #0b1220;
  border-radius: 12px;
  color: #e2e8f0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  line-height: 1.55;
  overflow: hidden;
  padding: 12px;
}

.th-cat-code span {
  color: #93c5fd;
}

.th-cat-mail {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.th-cat-mail-item {
  align-items: center;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  display: flex;
  gap: 10px;
  padding: 9px 10px;
  position: relative;
}

.th-cat-mail-item::after {
  background: #e2e8f0;
  content: "";
  height: 10px;
  left: 24px;
  position: absolute;
  top: 100%;
  width: 2px;
}

.th-cat-mail-item:last-child::after {
  display: none;
}

.th-cat-mail-icon {
  align-items: center;
  background: #eef4ff;
  border-radius: 10px;
  color: #155eee;
  display: inline-flex;
  flex: 0 0 34px;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.th-cat-mail-item.is-sent .th-cat-mail-icon {
  animation: th-cat-fly 1.1s ease;
}

.th-cat-li-bar {
  align-items: center;
  background: #0a66c2;
  color: #fff;
  display: flex;
  font-size: 0.72rem;
  font-weight: 700;
  gap: 8px;
  padding: 9px 12px;
}

.th-cat-capture {
  animation: th-cat-flash 0.7s ease;
  box-shadow: 0 0 0 3px rgba(21, 94, 238, 0.22);
}

.th-cat-nets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.th-cat-nets--compact .th-cat-net em {
  display: none;
}

.th-cat-net {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #334155;
  display: inline-flex;
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 700;
  gap: 6px;
  padding: 5px 8px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.th-cat-net em {
  font-style: normal;
  line-height: 1;
}

.th-cat-net-logo,
.th-cat-avatar--net img {
  display: block;
  flex: 0 0 16px;
  height: 16px;
  object-fit: contain;
  width: 16px;
}

.th-cat-avatar--net {
  background: #fff;
  border: 1px solid #e8eef8;
  padding: 0;
}

.th-cat-net.is-active {
  background: #eef4ff;
  border-color: #cfe0ff;
  box-shadow: 0 0 0 3px rgba(21, 94, 238, 0.12);
  color: #155eee;
  transform: translateY(-1px);
}

.th-cat-kw {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.th-cat-kw-pill {
  background: #eef4ff;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  color: #155eee;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0;
  padding: 5px 10px;
  transform: translateY(6px);
}

.th-cat-kw-pill.is-visible {
  animation: th-cat-rise 0.4s ease forwards;
}

.th-cat-alert-split {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.th-cat-alert-card {
  align-items: flex-start;
  background: linear-gradient(180deg, #f8fbff, #fff);
  border: 1px solid #dbe7ff;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 86px;
  padding: 10px;
}

.th-cat-alert-card.is-dash {
  background: linear-gradient(180deg, #f4f7ff, #fff);
}

.th-cat-alert-card .th-cat-mail-icon {
  align-items: center;
  background: #eef4ff;
  border-radius: 9px;
  color: #155eee;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  margin-bottom: 4px;
  width: 28px;
}

.th-cat-alert-card strong {
  color: #0f172a;
  font-size: 0.78rem;
}

.th-cat-alert-card span:last-child {
  color: #64748b;
  font-size: 0.68rem;
  line-height: 1.35;
}

.th-cat-bars {
  align-items: flex-end;
  display: flex;
  gap: 8px;
  height: 84px;
}

.th-cat-bar {
  background: #dbe7ff;
  border-radius: 8px 8px 2px 2px;
  flex: 1;
  height: 20%;
  overflow: hidden;
  position: relative;
}

.th-cat-bar i {
  background: linear-gradient(180deg, #60a5fa, #155eee);
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 100%;
}

.th-cat-bar i.is-run {
  animation: th-cat-bar-up 1.2s ease forwards;
}

.th-cat-widget-chip {
  align-items: center;
  background: #fff;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(21, 94, 238, 0.12);
  color: #155eee;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 700;
  gap: 6px;
  padding: 6px 10px;
  position: absolute;
  right: 12px;
  top: 12px;
}

@keyframes th-cat-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes th-cat-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

@keyframes th-cat-caret {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes th-cat-fill {
  from { width: 0; }
  to { width: var(--th-cat-fill, 72%); }
}

@keyframes th-cat-scan {
  0% { top: -40px; }
  100% { top: 110%; }
}

@keyframes th-cat-fly {
  0% { transform: translate(0, 0) rotate(0deg); }
  40% { transform: translate(8px, -6px) rotate(-8deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes th-cat-flash {
  0% { background: #fff; }
  35% { background: #eef4ff; }
  100% { background: #fff; }
}

@keyframes th-cat-bar-up {
  from { top: 100%; }
  to { top: var(--th-cat-bar, 28%); }
}

@media (max-width: 900px) {
  .th-cat-split,
  .th-cat-try,
  .th-cat-alert-split {
    grid-template-columns: 1fr;
  }

  .th-feature-hero-grid--catalog .th-feature-visual {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .th-cat-row,
  .th-cat-kw-pill,
  .th-cat-live::before,
  .th-cat-scan,
  .th-cat-mail-item.is-sent .th-cat-mail-icon,
  .th-cat-type::after {
    animation: none !important;
  }

  .th-cat-row,
  .th-cat-kw-pill {
    opacity: 1;
    transform: none;
  }
}
