/* =====================================================================
   XyberCore marketplace page (market-codes.html only)
   Link AFTER xc-theme.css:
   <link rel="stylesheet" href="/assets/css/xc-theme.css">
   <link rel="stylesheet" href="/assets/css/xc-market.css">
   ===================================================================== */
.xc-page {
  font-family: var(--xc-body);
  background: var(--xc-bg)
}

.xc-page h1,
.xc-page h2,
.xc-page h3 {
  font-family: var(--xc-display);
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--xc-ink)
}

/* ---------- intro banner ---------- */
.xc-m-hero {
  padding: 64px 0 40px;
  text-align: center;
  background: var(--xc-tint);
  border-bottom: 1px solid var(--xc-line)
}

.xc-m-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  max-width: 16em;
  margin: 0 auto
}

.xc-m-hero p {
  margin: 16px auto 0;
  color: var(--xc-muted);
  max-width: 38em;
  font-size: 1.05rem
}

/* ---------- filter chips ---------- */
.xc-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 28px 0 8px
}

.xc-chip {
  border: 1.5px solid var(--xc-line);
  background: #fff;
  color: var(--xc-muted);
  font-weight: 600;
  font-size: .9rem;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer
}

.xc-chip:hover {
  border-color: var(--xc-green)
}

.xc-chip.xc-active {
  background: var(--xc-green);
  border-color: var(--xc-green);
  color: #fff
}

/* ---------- product grid ---------- */
.xc-m-grid-wrap {
  padding: 24px 0 96px
}

.xc-m-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 16px
}

.xc-p-card {
  background: #fff;
  border: 1.5px solid var(--xc-line);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s
}

.xc-p-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 34px -26px rgba(14, 42, 32, .35)
}

.xc-p-card.xc-hidden {
  display: none
}

.xc-p-img {
  height: 150px;
  background: var(--xc-green-soft);
  display: grid;
  place-items: center;
  font-size: 44px;
  position: relative;
  text-decoration: none;
  color: inherit
}

a.xc-p-img {
  cursor: pointer;
  transition: filter .15s
}

a.xc-p-img:hover {
  filter: brightness(.96)
}

.xc-p-title-link {
  color: inherit;
  text-decoration: none
}

.xc-p-title-link:hover {
  text-decoration: underline
}

.xc-p-badge {
  position: absolute;
  top: 0;
  left: 14px;
  background: var(--xc-green);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 5px 10px;
  border-radius: 0 0 8px 8px
}

.xc-p-price {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--xc-ink);
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  padding: 5px 12px;
  border-radius: 999px
}

.xc-p-price.xc-free {
  background: #E58A1F
}

.xc-p-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1
}

.xc-p-cat {
  color: #94A3B8;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 6px
}

.xc-p-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
  color: var(--xc-ink)
}

.xc-p-desc {
  color: var(--xc-muted);
  font-size: .88rem;
  line-height: 1.5;
  margin-bottom: 14px
}

.xc-p-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px
}

.xc-p-tag {
  background: var(--xc-tint);
  color: #475569;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 600
}

.xc-p-feat {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 4px
}

.xc-p-feat li {
  font-size: .8rem;
  color: #475569;
  display: flex;
  align-items: flex-start;
  gap: 6px
}

.xc-p-feat svg {
  width: 14px;
  height: 14px;
  color: var(--xc-green);
  flex: none;
  margin-top: 2px
}

.xc-p-actions {
  display: flex;
  gap: 8px;
  margin-top: auto
}

.xc-p-actions .xc-cta {
  flex: 1;
  min-height: 42px;
  padding: 0 14px;
  font-size: .85rem
}

.xc-cta-outline {
  background: transparent;
  border-color: var(--xc-line);
  color: var(--xc-ink)
}

.xc-cta-outline:hover {
  border-color: var(--xc-ink)
}

@media (max-width:600px) {
  .xc-m-hero {
    padding: 44px 0 28px
  }

  .xc-m-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px
  }

  .xc-p-img {
    height: 96px;
    font-size: 30px
  }

  .xc-p-body {
    padding: 13px
  }

  .xc-p-title {
    font-size: .9rem
  }

  .xc-p-desc {
    font-size: .72rem;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px
  }

  .xc-p-tags,
  .xc-p-feat {
    display: none
  }

  .xc-p-actions {
    flex-direction: column
  }

  .xc-p-actions .xc-cta {
    min-height: 36px;
    font-size: .75rem;
    padding: 0 8px
  }
}
.xc-p-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.xc-p-badge,.xc-p-price{z-index:1}
