/* ============================================================
   Victory Network — Marketplace page styles
   Depends on styles.css (brand variables & components)
   ============================================================ */

.nav__links a.active { color: var(--orange); }

/* ---------- Marketplace hero ---------- */
.mp-hero {
  background:
    radial-gradient(600px 280px at 85% -10%, rgba(237,122,26,.18), transparent 70%),
    var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding: 34px 0 40px;
}
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--orange-dark); font-weight: 600; }
.crumbs span { margin: 0 .35rem; }
.mp-hero h1 {
  font-family: var(--display); font-weight: 800; letter-spacing: -1px;
  font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.1; max-width: 18ch;
}
.mp-hero > .container > p { color: var(--muted); margin-top: .7rem; font-size: 1.05rem; max-width: 52ch; }

/* Search bar */
.mp-search {
  display: flex; gap: 10px; margin-top: 1.6rem; background: #fff;
  padding: 8px; border-radius: 16px; box-shadow: var(--shadow); max-width: 760px;
  border: 1px solid var(--line);
}
.mp-search__field { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 12px; }
.mp-search__icon { font-size: 1rem; opacity: .6; }
.mp-search__field input { border: 0; outline: none; width: 100%; font-size: 1rem; font-family: var(--font); background: transparent; padding: .7rem 0; }
.mp-search select {
  border: 0; border-left: 1px solid var(--line); padding: 0 1rem; font-family: var(--font);
  font-size: .95rem; background: #fff; cursor: pointer; outline: none; color: var(--ink-2);
}
.mp-search .btn { border-radius: 12px; }

.mp-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 1.1rem; }
.mp-tags > span { font-size: .85rem; color: var(--muted); font-weight: 600; }
.mp-tags button {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .35rem .9rem; font-size: .85rem; font-family: var(--font); color: var(--ink-2);
  cursor: pointer; transition: .2s;
}
.mp-tags button:hover { border-color: var(--orange); color: var(--orange-dark); background: var(--orange-soft); }

/* ---------- Category strip ---------- */
.mp-cats { display: flex; gap: 12px; overflow-x: auto; padding: 22px 0 6px; scrollbar-width: thin; }
.mp-cat {
  flex: 0 0 auto; display: flex; align-items: center; gap: .5rem;
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  padding: .6rem 1.1rem; font-family: var(--font); font-weight: 600; font-size: .92rem;
  color: var(--ink-2); cursor: pointer; transition: .2s; white-space: nowrap;
}
.mp-cat:hover { border-color: var(--orange); }
.mp-cat.is-active { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: var(--shadow-orange); }

/* ---------- Layout ---------- */
.mp-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; padding: 30px 0 70px; align-items: start; }

/* Filters */
.mp-filters {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 8px; position: sticky; top: 90px;
}
.mp-filters__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.mp-filters__head h2 { font-family: var(--display); font-size: 1.15rem; }
.link-btn { background: none; border: 0; color: var(--orange-dark); font-weight: 600; font-size: .85rem; cursor: pointer; font-family: var(--font); }
.link-btn:hover { text-decoration: underline; }
.mp-filter { padding: 16px 0; border-top: 1px solid var(--line); }
.mp-filter h3 { font-size: .92rem; margin-bottom: .7rem; font-weight: 700; }
.mp-filter label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--ink-2); padding: .25rem 0; cursor: pointer; }
.mp-filter input[type="radio"], .mp-filter input[type="checkbox"] { accent-color: var(--orange); width: 16px; height: 16px; }
.mp-filter input[type="range"] { width: 100%; accent-color: var(--orange); }
.mp-filter__range { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); margin-top: .4rem; }
.mp-filter__range strong { color: var(--orange-dark); }

/* Toolbar */
.mp-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 20px; flex-wrap: wrap; }
.mp-count { color: var(--muted); font-size: .95rem; }
.mp-count strong { color: var(--ink); }
.mp-sort { font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: .5rem; }
.mp-sort select { border: 1.5px solid var(--line); border-radius: 10px; padding: .5rem .8rem; font-family: var(--font); font-size: .9rem; cursor: pointer; background: #fff; color: var(--ink); }
.mp-filter-toggle { display: none; }

/* ---------- Product grid ---------- */
.mp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.mp-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
}
.mp-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.mp-card__media { position: relative; height: 150px; display: grid; place-items: center; background: var(--c, var(--orange-soft)); }
.mp-card__icon { font-size: 3.2rem; }
.mp-card__fav {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.9); cursor: pointer; font-size: 1.05rem; color: #d9342b;
  display: grid; place-items: center; transition: .2s;
}
.mp-card__fav:hover { transform: scale(1.12); }
.mp-card__badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.badge { font-size: .68rem; font-weight: 800; padding: .25rem .55rem; border-radius: 999px; }
.badge--verified { background: #e3f7ea; color: #1f9d55; }
.badge--top { background: var(--ink); color: #fff; }

.mp-card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.mp-card__title { font-family: var(--font); font-weight: 700; font-size: 1rem; line-height: 1.35; margin: .55rem 0 .35rem; min-height: 2.7em; }
.mp-card__seller { font-size: .83rem; color: var(--muted); }
.mp-card__rating { display: flex; align-items: center; gap: .35rem; font-size: .82rem; color: var(--muted); margin: .55rem 0; flex-wrap: wrap; }
.mp-card__rating .stars { color: var(--orange-dark); font-weight: 700; }
.mp-card__dot { opacity: .5; }
.mp-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.mp-card__from { font-size: .8rem; color: var(--muted); }
.mp-card__from .price { font-size: 1.15rem; display: block; }

/* Empty + load more */
.mp-empty { text-align: center; padding: 60px 20px; }
.mp-empty__icon { font-size: 3rem; margin-bottom: 1rem; }
.mp-empty h3 { font-family: var(--display); font-size: 1.4rem; margin-bottom: .4rem; }
.mp-empty p { color: var(--muted); margin-bottom: 1.2rem; }
.mp-more { display: block; margin: 36px auto 0; }

/* ---------- Sell banner ---------- */
.mp-sell { background: var(--orange-soft); padding: 50px 0; }
.mp-sell__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.mp-sell h2 { font-family: var(--display); font-size: 1.7rem; }
.mp-sell p { color: var(--ink-2); margin-top: .3rem; }

/* ---------- Modal ---------- */
.mp-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.mp-modal[hidden] { display: none; }
.mp-modal__backdrop { position: absolute; inset: 0; background: rgba(20,17,11,.55); backdrop-filter: blur(3px); }
.mp-modal__card {
  position: relative; background: #fff; border-radius: 20px; max-width: 560px; width: 100%;
  overflow: hidden; box-shadow: var(--shadow); animation: pop .25s ease;
}
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.mp-modal__close {
  position: absolute; top: 12px; right: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.9); font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink);
}
.mp-modal__media { height: 180px; display: grid; place-items: center; font-size: 4.5rem; background: var(--orange-soft); }
.mp-modal__body { padding: 24px 26px 26px; }
.mp-modal__body h3 { font-family: var(--display); font-size: 1.4rem; margin: .5rem 0 .3rem; }
.mp-modal__seller { color: var(--muted); font-size: .9rem; }
.mp-modal__meta { display: flex; gap: 1.2rem; margin: .9rem 0; font-size: .9rem; color: var(--muted); }
.mp-modal__meta .stars { color: var(--orange-dark); font-weight: 700; }
.mp-modal__desc { color: var(--ink-2); font-size: .96rem; margin-bottom: 1.4rem; }
.mp-modal__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.mp-modal__foot .price { font-size: 1.6rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .mp-layout { grid-template-columns: 1fr; }
  .mp-filters {
    position: fixed; inset: 0 0 0 auto; width: min(86%, 330px); border-radius: 0; z-index: 70;
    transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; top: 0;
    box-shadow: var(--shadow);
  }
  .mp-filters.open { transform: translateX(0); }
  .mp-filter-toggle { display: inline-flex; margin-right: auto; }
  .mp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .mp-search { flex-wrap: wrap; }
  .mp-search__field { flex: 1 1 100%; }
  .mp-search select { border-left: 0; flex: 1; }
  .mp-grid { grid-template-columns: 1fr; }
  .mp-toolbar { gap: .6rem; }
}
