.legacy-catalog {
  overflow-x: hidden;
  line-height: 1.65;
}

.legacy-catalog .container {
  width: min(1180px, calc(100% - 40px));
  max-width: none;
  padding: 22px 0 60px;
}

.legacy-catalog .nav {
  gap: 24px;
  min-height: 64px;
  padding: 12px 0 18px;
  border-bottom: 1px solid rgba(201, 168, 76, .2);
}

.legacy-catalog .nav-brand,
.legacy-catalog .brand {
  flex: 0 0 auto;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.legacy-catalog .nav > div:last-child,
.legacy-catalog .links {
  min-width: 0;
  align-items: center;
  gap: 18px !important;
}

.legacy-catalog .nav-link,
.legacy-catalog .links a {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.legacy-catalog .hero {
  padding: 72px 0 48px;
}

.legacy-catalog .hero h1 {
  max-width: 880px;
  margin-inline: auto;
  font-size: clamp(2.25rem, 6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -.025em;
}

.legacy-catalog .hero .subtitle,
.legacy-catalog .subtitle {
  max-width: 720px;
}

.legacy-catalog .section-header,
.legacy-catalog .section-title {
  max-width: 760px;
  margin: 68px auto 28px;
}

.legacy-catalog .products,
.legacy-catalog .grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 18px;
}

.legacy-catalog .product-card,
.legacy-catalog .card,
.legacy-catalog .tool-buy-card,
.legacy-catalog .tool-item,
.legacy-catalog .skool-cta,
.legacy-catalog .note {
  min-width: 0;
  border: 1px solid #30333b;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(24, 27, 33, .96), rgba(14, 16, 20, .98));
  box-shadow: 0 22px 70px rgba(0, 0, 0, .28);
}

.legacy-catalog .product-card,
.legacy-catalog .card {
  display: flex;
  height: 100%;
  padding: 25px;
  flex-direction: column;
}

.legacy-catalog .product-card.featured,
.legacy-catalog .card.featured,
.legacy-catalog .premium-tool {
  border-color: rgba(201, 168, 76, .55);
}

.legacy-catalog .product-card h3,
.legacy-catalog .card h3 {
  min-height: 2.55em;
  font-size: 1.12rem;
  line-height: 1.28;
}

.legacy-catalog .price {
  font-size: 1.48rem;
  line-height: 1.2;
}

.legacy-catalog .desc {
  font-size: .86rem;
  line-height: 1.68;
}

.legacy-catalog .product-card ul,
.legacy-catalog .card ul {
  margin-bottom: 22px;
}

.legacy-catalog .buy-btn,
.legacy-catalog .buy {
  min-height: 46px;
  margin-top: auto;
  padding: 12px 15px;
  border-radius: 4px;
  font-family: Inter, Arial, sans-serif;
  font-size: .72rem;
  line-height: 1.25;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: normal;
}

.legacy-catalog .product-card > img {
  display: block;
  max-width: 100%;
  height: auto;
}

.legacy-catalog .tools-grid.tools-buyable {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.legacy-catalog .tool-buy-card {
  display: flex;
  min-height: 148px;
  padding: 18px 12px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.legacy-catalog .badge {
  position: static;
  align-self: flex-start;
  max-width: 100%;
  margin: 0 0 18px;
  transform: none;
  overflow: visible;
  text-align: center;
  text-overflow: clip;
  white-space: normal;
  line-height: 1.25;
}

.legacy-catalog .product-icon,
.legacy-catalog .icon,
.legacy-catalog .ti,
.legacy-catalog .td-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  border: 1px solid rgba(201, 168, 76, .35);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(201, 168, 76, .12), rgba(201, 168, 76, .03));
  color: #e8d48b;
  font-size: 0;
  line-height: 1;
}

.legacy-catalog .tool-buy-card .ti,
.legacy-catalog .tool-item .ti {
  width: 40px;
  height: 40px;
  margin-inline: auto;
}

.legacy-catalog .tool-detail .td-icon {
  flex: 0 0 46px;
  margin-bottom: 0;
}

.legacy-catalog .storefront-icon {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.legacy-catalog button:focus-visible,
.legacy-catalog a:focus-visible {
  outline: 3px solid rgba(232, 212, 139, .78);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .legacy-catalog .products,
  .legacy-catalog .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legacy-catalog .tools-grid.tools-buyable {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .legacy-catalog .container {
    width: min(100% - 28px, 1180px);
    padding-top: 8px;
  }

  .legacy-catalog .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 10px;
  }

  .legacy-catalog .nav-brand,
  .legacy-catalog .brand {
    font-size: .94rem;
  }

  .legacy-catalog .nav > div:last-child,
  .legacy-catalog .links {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    gap: 8px !important;
    overflow: visible;
    padding: 2px 0 6px;
  }

  .legacy-catalog .nav > div:last-child::-webkit-scrollbar,
  .legacy-catalog .links::-webkit-scrollbar {
    display: none;
  }

  .legacy-catalog .nav-link,
  .legacy-catalog .links a {
    min-width: 0;
    padding: 8px 5px;
    border: 1px solid rgba(201, 168, 76, .22);
    border-radius: 999px;
    font-size: .7rem;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }

  .legacy-catalog .hero {
    padding: 48px 0 30px;
  }

  .legacy-catalog .hero h1 {
    font-size: clamp(2rem, 11vw, 2.8rem);
  }

  .legacy-catalog .hero .subtitle,
  .legacy-catalog .subtitle {
    font-size: .98rem;
    line-height: 1.65;
  }

  .legacy-catalog .section-header,
  .legacy-catalog .section-title {
    margin-top: 52px;
  }

  .legacy-catalog .products,
  .legacy-catalog .grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 16px;
  }

  .legacy-catalog .product-card,
  .legacy-catalog .card {
    height: auto;
    padding: 22px;
  }

  .legacy-catalog .product-card h3,
  .legacy-catalog .card h3 {
    min-height: 0;
  }

  .legacy-catalog .tools-grid.tools-buyable {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legacy-catalog .skool-cta,
  .legacy-catalog .note {
    padding: 24px 20px;
  }
}
