.all-products-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 4%, rgba(255, 255, 255, 0.96), transparent 32%),
    radial-gradient(circle at 84% 0%, rgba(226, 241, 255, 0.7), transparent 32%),
    linear-gradient(180deg, #f7fbff 0%, #f4f7fb 46%, #eef3f8 100%);
}

.products-shell {
  width: min(1830px, calc(100% - 88px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.products-main {
  width: 100%;
  margin: 0;
}

.products-header {
  display: grid;
  grid-template-columns: 430px 1fr 270px;
  align-items: center;
  height: 66px;
  padding: 0 12px 0 14px;
  border: 1px solid rgba(218, 228, 242, 0.8);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 32px rgba(52, 75, 111, 0.08);
  backdrop-filter: blur(18px);
}

.products-nav {
  gap: 51px;
}

.products-hero {
  position: relative;
  display: grid;
  grid-template-columns: 430px 1fr 572px;
  align-items: center;
  min-height: 192px;
  margin-top: 16px;
  overflow: hidden;
  padding: 0 15px 0 42px;
  border: 1px solid rgba(217, 229, 244, 0.9);
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 255, 0.95) 54%, rgba(231, 244, 255, 0.88) 100%);
  box-shadow: 0 16px 40px rgba(54, 87, 134, 0.08);
}

.products-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 73%, rgba(130, 193, 255, 0.11) 73.25%, transparent 73.9%),
    radial-gradient(circle at 28% 63%, rgba(218, 234, 255, 0.86) 0 12px, transparent 13px),
    radial-gradient(circle at 33% 43%, rgba(218, 234, 255, 0.86) 0 8px, transparent 9px);
}

.products-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  color: #07142f;
  font-size: 42px;
  line-height: 1;
  font-weight: 950;
}

.products-hero p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #596a85;
  font-size: 19px;
  font-weight: 700;
}

.market-art {
  position: relative;
  z-index: 1;
  height: 192px;
}

.bag {
  position: absolute;
  left: 45%;
  bottom: -8px;
  width: 126px;
  height: 138px;
  border-radius: 28px 28px 7px 7px;
  background: linear-gradient(180deg, #87b2ff, #2a74f5);
  box-shadow: 0 16px 32px rgba(37, 110, 245, 0.2);
  transform: translateX(-50%);
}

.bag::before,
.bag::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 54px;
  height: 46px;
  background: linear-gradient(180deg, #75a9ff, #2a74f5);
}

.bag::before {
  left: -46px;
  clip-path: polygon(54% 18%, 100% 0, 100% 100%, 0 100%, 0 48%);
}

.bag::after {
  right: -46px;
  clip-path: polygon(0 0, 48% 18%, 100% 48%, 100% 100%, 0 100%);
}

.bag-handle {
  position: absolute;
  left: 27px;
  top: -42px;
  width: 72px;
  height: 68px;
  border: 7px solid #2872f4;
  border-bottom: 0;
  border-radius: 42px 42px 0 0;
}

.bag-play {
  position: absolute;
  left: 50%;
  top: 54%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #2d75f5;
  font-size: 26px;
  transform: translate(-50%, -50%);
  box-shadow: 0 12px 24px rgba(26, 97, 222, 0.2);
}

.game-icon,
.music-icon {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.88);
  color: #4587ff;
  box-shadow: 0 12px 28px rgba(70, 116, 184, 0.11);
}

.game-icon {
  left: 23%;
  top: 78px;
  width: 78px;
  height: 56px;
  font-size: 24px;
  transform: rotate(8deg);
}

.music-icon {
  right: 25%;
  top: 58px;
  width: 56px;
  height: 56px;
  font-size: 34px;
}

.cube {
  position: absolute;
  border-radius: 7px;
  background: linear-gradient(145deg, #8ebaff, #3d84fa);
}

.cube-one {
  left: 33%;
  bottom: 28px;
  width: 42px;
  height: 42px;
}

.cube-two {
  right: 33%;
  bottom: 42px;
  width: 34px;
  height: 48px;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(218, 234, 255, 0.85);
}

.bubble-one {
  left: 16%;
  top: 86px;
  width: 13px;
  height: 13px;
}

.bubble-two {
  right: 19%;
  top: 86px;
  width: 16px;
  height: 16px;
}

.hero-badges {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  min-height: 79px;
  padding: 0 24px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px rgba(54, 85, 130, 0.08);
}

.hero-badges div {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-content: center;
  column-gap: 13px;
}

.hero-badges i {
  display: grid;
  grid-row: span 2;
  width: 39px;
  height: 39px;
  place-items: center;
  align-self: center;
  border-radius: 50%;
  font-style: normal;
  font-weight: 950;
}

.badge-blue {
  background: #e7f1ff;
  color: #2576ff;
}

.badge-green {
  background: #e0f8ef;
  color: #1fbd7d;
}

.badge-purple {
  background: #efe7ff;
  color: #8b62f6;
}

.hero-badges strong {
  align-self: end;
  color: #111b31;
  font-size: 16px;
  font-weight: 950;
}

.hero-badges small {
  color: #7c8aa2;
  font-size: 13px;
  font-weight: 700;
}

.products-layout {
  display: grid;
  grid-template-columns: 304px minmax(0, 1fr);
  gap: 37px;
  margin-top: 28px;
}

.filter-column {
  display: grid;
  align-content: start;
  gap: 22px;
}

.filter-card {
  border: 1px solid rgba(219, 229, 243, 0.96);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(54, 80, 116, 0.06);
}

.filter-card h2 {
  margin: 0;
  padding: 26px 23px 18px;
  color: #111b31;
  font-size: 18px;
  font-weight: 950;
}

.category-list {
  display: grid;
  gap: 2px;
  padding: 0 18px 24px;
}

.category-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 42px;
  align-items: center;
  height: 50px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #202d46;
  text-align: left;
  font-weight: 850;
}

.category-item.active {
  background: #eff5ff;
  color: #1769f2;
}

.category-item i {
  color: #7586a2;
  font-style: normal;
}

.category-item.active i,
.category-item.active b {
  color: #1769f2;
}

.category-item b {
  color: #71809a;
  font-size: 14px;
  text-align: right;
}

.price-card {
  padding-bottom: 21px;
}

.price-inputs {
  display: grid;
  grid-template-columns: 1fr 14px 1fr;
  align-items: center;
  gap: 9px;
  padding: 0 23px;
}

.price-inputs label {
  position: relative;
}

.price-inputs span {
  position: absolute;
  left: 12px;
  top: 50%;
  color: #9aa7bb;
  transform: translateY(-50%);
}

.price-inputs input {
  height: 38px;
  padding-left: 30px;
  border: 1px solid #dce5f1;
  border-radius: 7px;
  background: white;
  color: #10213d;
}

.price-inputs b {
  color: #95a2b6;
  text-align: center;
}

.filter-submit {
  width: calc(100% - 46px);
  height: 38px;
  margin: 18px 23px 0;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(180deg, #2379ff, #1263ee);
  color: white;
  font-weight: 900;
}

.products-content {
  min-width: 0;
}

.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 50px;
  margin-bottom: 23px;
}

.sort-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #61708a;
  font-size: 15px;
  font-weight: 800;
}

.sort-row button {
  height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 7px;
  background: #f0f4fa;
  color: #8b98ae;
  font-weight: 850;
}

.sort-row button.active {
  background: linear-gradient(180deg, #2379ff, #1263ee);
  color: white;
  box-shadow: 0 8px 16px rgba(31, 111, 255, 0.2);
}

.search-box {
  position: relative;
  display: block;
  width: 315px;
}

.search-box input {
  width: 100%;
  height: 42px;
  padding: 0 44px 0 19px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #10213d;
  box-shadow: 0 8px 20px rgba(54, 80, 116, 0.04);
}

.search-box span {
  position: absolute;
  right: 15px;
  top: 50%;
  color: #7f8da6;
  font-size: 24px;
  transform: translateY(-50%);
}

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

.catalog-card {
  min-height: 260px;
  padding: 28px 23px 17px;
  border: 1px solid rgba(219, 229, 243, 0.96);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 30px rgba(54, 80, 116, 0.055);
}

.catalog-card-head {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 18px;
  min-height: 111px;
}

.catalog-logo {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 1px solid rgba(220, 229, 242, 0.75);
  border-radius: 15px;
  color: white;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0;
}

.catalog-info {
  min-width: 0;
}

.catalog-info h3 {
  margin: 0 0 14px;
  overflow: hidden;
  color: #101a31;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 13px;
}

.catalog-info p {
  display: -webkit-box;
  min-height: 45px;
  margin: 0;
  overflow: hidden;
  color: #7787a1;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 650;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 21px;
}

.catalog-price {
  color: #ff1212;
  font-size: 20px;
  font-weight: 950;
}

.catalog-sales {
  color: #7787a1;
  font-size: 14px;
  font-weight: 700;
}

.catalog-buy {
  width: 100%;
  height: 34px;
  margin-top: 13px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(180deg, #2077ff, #0f63ed);
  color: white;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(22, 102, 240, 0.18);
}

.catalog-buy:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.catalog-empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  border: 1px solid rgba(219, 229, 243, 0.96);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: #71809a;
  font-weight: 850;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  color: #65748e;
  font-size: 15px;
  font-weight: 800;
}

.pagination nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pagination button {
  min-width: 38px;
  height: 38px;
  border: 1px solid #dbe5f1;
  border-radius: 7px;
  background: white;
  color: #50617d;
  font-weight: 850;
}

.pagination button.active {
  border-color: #1f6fff;
  color: #1f6fff;
}

.pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.pagination button.ellipsis {
  cursor: default;
  opacity: 1;
}

.pagination .page-size {
  width: 100px;
}

.logo-play {
  background:
    radial-gradient(circle at 50% 50%, #4ff052 0 20%, transparent 21%),
    linear-gradient(135deg, #050505, #111827);
  color: #2e8cff;
}

.logo-iqiyi {
  background: linear-gradient(145deg, #1ce183, #0abf5d);
  font-size: 16px;
}

.logo-mango {
  background: linear-gradient(145deg, #ff8a18, #ff5200);
  font-size: 42px;
}

.logo-youku {
  background: linear-gradient(145deg, #ff1272, #18b5ff);
  font-size: 33px;
}

.logo-netease {
  background: linear-gradient(145deg, #ff2a2a, #d60000);
  font-size: 34px;
}

.logo-music {
  background: linear-gradient(145deg, #ffe713, #18b575);
  color: #059e85;
  font-size: 40px;
}

.logo-steam {
  background: linear-gradient(145deg, #061334, #116aa3);
  font-size: 32px;
}

.logo-wps {
  background: linear-gradient(145deg, #ff6a45, #ee2029);
  font-size: 32px;
}

.logo-microsoft {
  background:
    linear-gradient(90deg, #f25022 0 48%, transparent 48% 52%, #7fba00 52%),
    linear-gradient(#00a4ef 0 48%, transparent 48% 52%, #ffb900 52%);
  color: transparent;
}

.logo-adobe {
  background: linear-gradient(135deg, #ff2aa5, #ffb300, #00a2ff);
  font-size: 34px;
}

.logo-qq {
  background: #f7f7f7;
  color: #111827;
  font-size: 38px;
}

.logo-baidu {
  background: white;
  color: #1986ff;
  font-size: 38px;
}

@media (max-width: 1200px) {
  .products-shell {
    width: min(100% - 32px, 1830px);
  }

  .products-header,
  .products-hero {
    grid-template-columns: 1fr;
    height: auto;
    gap: 16px;
    padding: 18px;
  }

  .products-nav {
    justify-content: flex-start;
    gap: 24px;
    overflow-x: auto;
  }

  .market-art {
    display: none;
  }

  .products-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .products-shell {
    width: min(100% - 24px, 1830px);
    padding-top: 12px;
  }

  .products-hero h1 {
    font-size: 34px;
  }

  .hero-badges {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .products-toolbar,
  .sort-row,
  .pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .sort-row {
    flex-wrap: wrap;
  }

  .search-box {
    width: 100%;
  }

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

  .pagination nav {
    flex-wrap: wrap;
  }
}
