.catalog-nav {
  position: relative;
  transform: none;
  left: auto;
}

.catalog-page {
  background:
    radial-gradient(circle at 18% 4%, rgba(200,255,61,.14), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(123,70,255,.12), transparent 30%),
    var(--bg);
}

.catalog-hero {
  padding: 86px 0 56px;
}

.catalog-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 44px;
  align-items: end;
}

.catalog-hero h1 {
  font-size: clamp(64px, 8vw, 118px);
}

.catalog-hero .lead {
  max-width: 780px;
}

.catalog-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
}

.catalog-hero__stats span {
  min-height: 128px;
  padding: 24px 20px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.catalog-hero__stats span:last-child {
  border-right: 0;
}

.catalog-hero__stats strong {
  font: 600 30px/1 Unbounded, sans-serif;
  color: var(--lime);
}

.catalog-hero__stats small {
  margin-top: 10px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .12em;
}

.catalog-workspace {
  padding: 0 0 120px;
}

.catalog-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 190px 180px 180px;
  gap: 12px;
  padding: 16px 0;
  background: rgba(10,10,12,.88);
  backdrop-filter: blur(18px);
}

.search-control,
.catalog-toolbar select {
  min-height: 54px;
  border: 1px solid var(--line);
  background: #111116;
  color: var(--ink);
  border-radius: 8px;
}

.search-control {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
}

.search-control span {
  color: var(--lime);
  font-size: 20px;
}

.search-control input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.catalog-toolbar select {
  padding: 0 16px;
}

.section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 24px;
}

.section-tabs button,
.catalog-meta button {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  border-radius: 999px;
  min-height: 42px;
  padding: 0 15px;
  font: 800 11px/1 Manrope, sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
}

.section-tabs button:hover,
.section-tabs button.is-active {
  color: #080908;
  background: var(--lime);
  border-color: var(--lime);
}

.catalog-meta {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
}

.catalog-meta button {
  min-height: 34px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  min-height: 430px;
  background: linear-gradient(180deg, #15161b, #101115);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(200,255,61,.48);
  box-shadow: 0 24px 70px rgba(0,0,0,.34);
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 50% 44%, rgba(200,255,61,.13), transparent 42%),
    #0d0e12;
}

.product-media > a {
  display: block;
  width: 100%;
  height: 100%;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  display: block;
  transition: transform .3s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.04);
}

.stock-badge,
.deal-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.stock-badge {
  left: 12px;
  color: #0b0d09;
  background: var(--lime);
}

.stock-badge.is-out {
  color: #fff;
  background: #5e5d65;
}

.product-action:disabled {
  cursor: not-allowed;
  opacity: .35;
}

.deal-badge {
  right: 12px;
  min-height: 34px;
  padding: 0 13px;
  color: #15090b;
  background: #ff6574;
  border: 2px solid #ffd8dc;
  box-shadow: 0 6px 18px rgba(255, 55, 78, .42), 0 0 0 3px rgba(10, 10, 12, .42);
  font-size: 12px;
  letter-spacing: .08em;
}

.product-body {
  flex: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.product-brand {
  margin: 0 0 8px;
  color: var(--lime);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.product-title {
  margin: 0;
  font: 600 17px/1.25 Unbounded, sans-serif;
  letter-spacing: -.04em;
}

.product-desc {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.product-facts span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  color: #c9c8cf;
  font-size: 11px;
}

.product-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-price {
  font: 700 18px/1 Manrope, sans-serif;
}

.product-old-price {
  display: block;
  margin-top: 4px;
  color: #777681;
  font-size: 12px;
  text-decoration: line-through;
}

.product-action {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--lime);
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.load-more-wrap[hidden] {
  display: none;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 48px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .catalog-hero__grid {
    grid-template-columns: 1fr;
  }

  .catalog-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .catalog-hero {
    padding-top: 58px;
  }

  .catalog-hero__stats {
    grid-template-columns: 1fr;
  }

  .catalog-hero__stats span {
    min-height: 88px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .catalog-toolbar {
    position: relative;
    grid-template-columns: 1fr;
  }

  .section-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .section-tabs button {
    flex: 0 0 auto;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-card {
    min-height: 360px;
  }

  .product-body {
    padding: 14px;
  }

  .product-title {
    font-size: 14px;
  }

  .product-desc {
    display: none;
  }
}

@media (max-width: 430px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}
