
/* XAFENTOL — compact marketplace catalog */

.xcat-page {
  width: min(100% - 28px, 1180px);
  margin: 0 auto;
  padding: 20px 0 48px;
  color: #f3f2f8;
}

.xcat-breadcrumbs {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
  color: #858197;
  font-size: 12px;
}

.xcat-breadcrumbs a {
  color: #a99be8;
  text-decoration: none;
}

.xcat-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
}

.xcat-heading-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 1px solid #39304f;
  border-radius: 14px;
  background: #211a31;
  font-size: 23px;
}

.xcat-heading h1 {
  margin: 0;
  font-size: clamp(23px, 4vw, 32px);
  font-weight: 750;
  letter-spacing: -.7px;
}

.xcat-heading p {
  margin: 5px 0 0;
  color: #9691a6;
  font-size: 13px;
}

.xcat-section {
  margin-top: 26px;
}

.xcat-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.xcat-section-title h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.xcat-section-title span {
  color: #8e899f;
  font-size: 12px;
}








.xcat-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 9px;
  margin: 20px 0 13px;
}

.xcat-search {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 0 13px;
  border: 1px solid #34303f;
  border-radius: 11px;
  background: #17151e;
  color: #9a94aa;
}

.xcat-search input {
  width: 100%;
  min-width: 0;
  height: 43px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f5f3fa;
  font: inherit;
  font-size: 13px;
}

.xcat-search input::placeholder {
  color: #777286;
}

.xcat-toolbar button,
.xcat-toolbar select {
  min-height: 43px;
  padding: 0 14px;
  border: 1px solid #34303f;
  border-radius: 11px;
  background: #1b1824;
  color: #e9e5f2;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.xcat-toolbar button:hover,
.xcat-toolbar select:hover {
  border-color: #7652dc;
}

.xcat-filter-panel {
  display: none;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 12px;
  margin: 0 0 14px;
  padding: 15px;
  border: 1px solid #373044;
  border-radius: 13px;
  background: #191620;
}

.xcat-filter-panel.is-open {
  display: grid;
}

.xcat-filter-field label {
  display: block;
  margin-bottom: 7px;
  color: #a8a2b5;
  font-size: 11px;
}

.xcat-filter-field input {
  width: 100%;
  height: 38px;
  box-sizing: border-box;
  padding: 0 10px;
  border: 1px solid #393344;
  border-radius: 9px;
  outline: none;
  background: #111016;
  color: #fff;
}

.xcat-filter-panel button {
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: #7652dc;
  color: #fff;
  font-weight: 650;
  cursor: pointer;
}

.xcat-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scrollbar-width: none;
}

.xcat-chips::-webkit-scrollbar {
  display: none;
}

.xcat-chip {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid #34303f;
  border-radius: 9px;
  background: #191720;
  color: #bcb6c9;
  font-size: 12px;
  cursor: pointer;
}

.xcat-chip.is-active,
.xcat-chip:hover {
  border-color: #7652dc;
  background: #2a2040;
  color: #fff;
}

.xcat-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 22px 0 11px;
}

.xcat-results-head h2 {
  margin: 0;
  font-size: 17px;
}

.xcat-results-count {
  color: #918b9f;
  font-size: 12px;
}

.xcat-offers {
  display: grid;
  gap: 9px;
}

.xcat-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px;
  border: 1px solid #302c3a;
  border-radius: 13px;
  background: #18161f;
  transition: border-color .18s ease, background .18s ease;
}

.xcat-offer:hover {
  border-color: #51416f;
  background: #1d1927;
}

.xcat-offer-main {
  min-width: 0;
}

.xcat-offer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 7px;
}

.xcat-tag {
  padding: 4px 7px;
  border-radius: 5px;
  background: #292336;
  color: #bdb0ed;
  font-size: 10px;
}

.xcat-tag.is-special {
  background: #342817;
  color: #e9bd75;
}

.xcat-offer-title {
  display: block;
  margin: 0;
  color: #f4f1fa;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
}

.xcat-offer-description {
  margin: 5px 0 10px;
  color: #928da0;
  font-size: 12px;
  line-height: 1.45;
}

.xcat-seller {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: #a9a3b5;
  font-size: 11px;
}

.xcat-seller-avatar {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid #51406e;
  border-radius: 50%;
  background: #302442;
  color: #d9caff;
  font-size: 10px;
  font-weight: 700;
}

.xcat-seller-name {
  color: #ded8eb;
  font-weight: 600;
}

.xcat-seller-rating {
  color: #e8c16e;
}

.xcat-offer-buy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
  min-width: 112px;
}

.xcat-price {
  color: #fff;
  font-size: 19px;
  font-weight: 750;
  white-space: nowrap;
}

.xcat-price small {
  color: #9992a7;
  font-size: 10px;
  font-weight: 450;
}

.xcat-buy-button {
  min-width: 105px;
  padding: 9px 13px;
  border: 0;
  border-radius: 9px;
  background: #7652dc;
  color: #fff;
  font-size: 12px;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease;
}

.xcat-buy-button:hover {
  background: #8969ed;
}

.xcat-empty {
  padding: 38px 18px;
  border: 1px dashed #393344;
  border-radius: 13px;
  color: #a39caf;
  text-align: center;
}

.xcat-empty b {
  display: block;
  margin-bottom: 7px;
  color: #eeeaf5;
  font-size: 15px;
}

.xcat-empty p {
  margin: 0;
  font-size: 12px;
}

@media (max-width: 700px) {
  .xcat-page {
    width: calc(100% - 24px);
    padding-top: 14px;
  }




  .xcat-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .xcat-search {
    grid-column: 1 / -1;
  }

  .xcat-toolbar select {
    min-width: 0;
    width: 100%;
  }

  .xcat-filter-panel {
    grid-template-columns: 1fr 1fr;
  }

  .xcat-filter-panel button {
    grid-column: 1 / -1;
  }

  .xcat-offer {
    gap: 8px;
    padding: 12px;
  }

  .xcat-offer-buy {
    min-width: 92px;
  }

  .xcat-price {
    font-size: 17px;
  }

  .xcat-buy-button {
    min-width: 88px;
    padding: 9px 10px;
  }
}

@media (max-width: 380px) {
  .xcat-offer {
    grid-template-columns: minmax(0, 1fr);
  }

  .xcat-offer-buy {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .xcat-filter-panel {
    grid-template-columns: 1fr;
  }

  .xcat-filter-panel button {
    grid-column: auto;
  }
}

/* XAFENTOL — game marketplace layout */

.xcat-game-page .xcat-heading {
  padding: 20px;
  border: 1px solid #342b47;
  border-radius: 16px;
  background: linear-gradient(110deg, #211a30, #17151e 75%);
}

.xcat-game-categories {
  padding: 16px;
  border: 1px solid #302b3c;
  border-radius: 14px;
  background: #17151e;
}

.xcat-game-page .xcat-toolbar {
  margin-top: 18px;
}

.xcat-game-page .xcat-search:focus-within {
  border-color: #7652dc;
  box-shadow: 0 0 0 3px rgba(118, 82, 220, .12);
}

.xcat-game-page .xcat-offer {
  min-height: 112px;
}

.xcat-game-page .xcat-offer-title:hover {
  color: #b9a4ff;
}

.xcat-game-page .xcat-results-head {
  padding-bottom: 10px;
  border-bottom: 1px solid #302b3c;
}

.xcat-game-page .xcat-filter-panel.is-open {
  animation: xcat-filter-in .18s ease;
}

@keyframes xcat-filter-in {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .xcat-game-page .xcat-heading {
    padding: 14px;
    gap: 10px;
  }

  .xcat-game-page .xcat-heading-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .xcat-game-categories {
    padding: 12px;
  }

  .xcat-game-page .xcat-section-title h2,
  .xcat-game-page .xcat-results-head h2 {
    font-size: 15px;
  }
}


/* XAFENTOL — three-column marketplace offer rows */
.xcat-game-page .xcat-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 205px 145px;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid #302b3c;
  border-radius: 12px;
  background: #17151e;
}
.xcat-game-page .xcat-offer-main { min-width: 0; }
.xcat-game-page .xcat-offer-title { font-size: 15px; }
.xcat-game-page .xcat-offer-description { margin-bottom: 8px; }
.xcat-offer-meta { color: #817b8e; font-size: 11px; line-height: 1.5; }
.xcat-offer-seller {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 58px;
  padding-left: 17px;
  border-left: 1px solid #332e40;
}
.xcat-seller-avatar {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border-radius: 50%;
  font-size: 12px;
}
.xcat-seller-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.xcat-seller-info { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.xcat-seller-profile { max-width: 100%; overflow: hidden; color: #eee9f8; font-size: 12px; font-weight: 650; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.xcat-seller-profile:hover { color: #b9a4ff; }
.xcat-seller-new { color: #9992a7; font-size: 10px; }
.xcat-seller-status { color: #777184; font-size: 10px; }
.xcat-game-page .xcat-offer-buy { min-width: 0; }
@media (max-width: 760px) {
  .xcat-game-page .xcat-offer { grid-template-columns: minmax(0, 1fr) 145px; gap: 12px; }
  .xcat-game-page .xcat-offer-main { grid-column: 1 / -1; }
  .xcat-offer-seller { padding-left: 0; border-left: 0; }
  .xcat-game-page .xcat-offer-buy { align-items: flex-end; }
}
@media (max-width: 420px) {
  .xcat-game-page .xcat-offer { grid-template-columns: minmax(0, 1fr) auto; padding: 13px; }
  .xcat-offer-seller { gap: 7px; }
  .xcat-seller-avatar { flex-basis: 32px; width: 32px; height: 32px; }
  .xcat-seller-status { display: none; }
  .xcat-seller-profile { max-width: 115px; }
  .xcat-game-page .xcat-offer-buy { min-width: 105px; }
  .xcat-game-page .xcat-price { font-size: 16px; }
  .xcat-game-page .xcat-buy-button { min-width: 96px; }
}
