@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --mkt-bg: #07080a;
  --mkt-surface: #0f111a;
  --mkt-surface-2: #141722;
  --mkt-border: rgba(255,255,255,.06);
  --mkt-border-hover: rgba(163,230,53,.32);
  --mkt-text: #e7eaf0;
  --mkt-muted: rgba(231,234,240,.62);
  --mkt-muted-2: rgba(231,234,240,.42);
  --mkt-lime: #a3e635;
  --mkt-indigo: #6366f1;
  --mkt-max: 1180px;
}

.mkt-scope * { box-sizing: border-box; }
html, body.mkt-scope { height: 100%; }
.mkt-scope {
  margin: 0;
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #000;
  color: var(--mkt-text);
  overflow-x: hidden;
}
.mkt-scope #wrapper {
  background:
    radial-gradient(760px 260px at 76% 0%, rgba(163, 230, 53, .06), transparent 62%),
    linear-gradient(180deg, #050608 0%, #000 56%, #000 100%);
  min-height: 100%;
}
.mkt-scope h1, .mkt-scope h2, .mkt-scope h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
}

.mkt-section {
  margin: 0;
  padding: 0 0 64px;
}

.mkt-hero,
.mkt-discover-title,
.mkt-layout {
  width: 100%;
  max-width: var(--mkt-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}

.mkt-hero {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 28px 18px 42px;
}
.mkt-breadcrumb {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 30px; font-size: 12px; font-weight: 600; color: rgba(231,234,240,.58);
}
.mkt-breadcrumb a { color: #ffb703; text-decoration: none; }
.mkt-breadcrumb span { color: rgba(231,234,240,.58); }
.mkt-hero-title-wrap { position: relative; z-index: 2; max-width: 560px; padding-top: 2px; }
.mkt-hero-title-wrap h1 {
  margin: 0 0 18px; color: #f8fafc;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 30px; font-weight: 900;
  letter-spacing: 0; line-height: 1.32;
}
.mkt-hero-title-wrap p {
  margin: 0; color: rgba(231,234,240,.68);
  font-size: 14px; font-weight: 500; line-height: 1.65; max-width: 560px;
}
.mkt-hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.mkt-hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 28px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(163,230,53,.28); background: rgba(163,230,53,.07);
  color: var(--mkt-text); font-size: 12px; font-weight: 700; line-height: 1;
}
.mkt-hero-badge i { color: var(--mkt-lime); }

@media (max-width: 768px) {
  .mkt-hero-badges {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    flex-wrap: nowrap;
    gap: 6px;
  }
  .mkt-hero-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding-left: 5px;
    padding-right: 5px;
    gap: 4px;
    text-align: center;
    white-space: nowrap;
    line-height: 1;
    font-size: clamp(7px, 2.2vw, 12px);
  }
  .mkt-hero-badge i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(7px, 2.2vw, 12px);
    line-height: 1;
    flex-shrink: 0;
  }
}

.mkt-layout { display: grid; grid-template-columns: 275px minmax(0, 1fr); gap: 20px; align-items: start; }

.mkt-sidebar {
  position: sticky; top: 90px;
  background: var(--mkt-surface);
  border-radius: 18px;
  padding: 18px;
}
.mkt-fgroup { margin-bottom: 20px; }
.mkt-fgroup:last-child { margin-bottom: 0; }
.mkt-flabel {
  font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--mkt-muted); margin: 0 0 10px; display: block;
}
.mkt-type-list, .mkt-cat-list { display: flex; flex-direction: column; gap: 6px; }
.mkt-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; border-radius: 11px; cursor: pointer;
  border: 1px solid transparent; background: var(--mkt-surface-2);
  color: var(--mkt-muted); font-size: 13.5px; font-weight: 600;
  text-decoration: none; transition: .15s ease; min-height: 44px;
}
.mkt-opt:hover { color: var(--mkt-text); border-color: var(--mkt-border); }
.mkt-opt.is-active { color: #07080a; background: var(--mkt-lime); border-color: var(--mkt-lime); font-weight: 700; }
.mkt-opt .mkt-opt-name { display: inline-flex; align-items: center; gap: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkt-opt .mkt-opt-cnt { font-size: 11px; opacity: .7; font-weight: 700; flex: 0 0 auto; }
.mkt-opt.is-empty { display: none; }
.mkt-opt.is-zero { opacity: .4; cursor: not-allowed; pointer-events: none; }
.mkt-cat-scroll { max-height: 280px; overflow-y: auto; padding-right: 4px; }

.mkt-price-row { display: flex; align-items: center; gap: 8px; }
.mkt-price-row input {
  width: 100%; height: 42px; padding: 0 10px; text-align: center;
  background: var(--mkt-surface-2); border: 1px solid var(--mkt-border);
  border-radius: 10px; color: var(--mkt-text); font-size: 13px; font-family: inherit;
  -moz-appearance: textfield; appearance: textfield;
}
.mkt-price-row input::-webkit-outer-spin-button,
.mkt-price-row input::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.mkt-price-row input:focus { outline: none; border-color: var(--mkt-border-hover); }
.mkt-price-row span { color: var(--mkt-muted-2); }

.mkt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 46px; border-radius: 12px; border: 0; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 700; text-decoration: none;
  transition: .15s ease;
}
.mkt-btn-primary { background: var(--mkt-lime); color: #07080a; position: relative; overflow: hidden; }
.mkt-btn-primary:hover { filter: brightness(1.05); }
.mkt-btn-primary::after {
  content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg); pointer-events: none;
}
.mkt-btn-primary:hover::after { animation: mktBtnShine .85s ease; }
@keyframes mktBtnShine { 0% { left: -75%; } 100% { left: 130%; } }
.mkt-btn-ghost { background: transparent; color: var(--mkt-muted); border: 1px solid var(--mkt-border); margin-top: 8px; }
.mkt-btn-ghost:hover { color: var(--mkt-text); border-color: var(--mkt-border-hover); }

.mkt-discover-title {
  display: flex; align-items: center; gap: 12px;
  margin: 0 auto 18px; color: #f8fafc;
  font-size: 18px; font-weight: 900; letter-spacing: 0;
}
.mkt-discover-title:after {
  content: ""; height: 1px; flex: 1;
  background: linear-gradient(90deg, rgba(163,230,53,.5), rgba(255,255,255,.06));
}

.mkt-toolbar {
  display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 14px;
  align-items: center; margin: 0 0 12px;
}
.mkt-search-form { position: relative; min-width: 0; }
.mkt-search-form i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--mkt-muted-2); font-size: 13px; pointer-events: none; }
.mkt-toolbar-search {
  width: 100%; height: 46px; padding: 0 14px 0 42px;
  border: 1px solid var(--mkt-border); border-radius: 8px;
  background: var(--mkt-surface); color: var(--mkt-text);
  font-size: 13px; font-family: inherit;
}
.mkt-toolbar-search::placeholder { color: var(--mkt-muted-2); }
.mkt-toolbar-search:focus { outline: none; border-color: rgba(163,230,53,.6); box-shadow: 0 0 0 3px rgba(163,230,53,.12); }

.mkt-sort-dropdown { position: relative; min-width: 180px; }
.mkt-sort-trigger {
  display: flex; align-items: center; gap: 8px; width: 100%; height: 46px; padding: 0 14px;
  border: 1px solid var(--mkt-border); border-radius: 8px; background: var(--mkt-surface);
  color: var(--mkt-text); font-family: inherit; font-size: 12px; font-weight: 700;
  cursor: pointer; user-select: none; transition: border-color .15s ease;
}
.mkt-sort-trigger:hover { border-color: rgba(163,230,53,.45); }
.mkt-sort-trigger > i { color: var(--mkt-muted-2); font-size: 12px; flex-shrink: 0; }
.mkt-sort-trigger span { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkt-sort-chev { flex-shrink: 0; color: var(--mkt-muted-2); transition: transform .15s ease; }
.mkt-sort-trigger[aria-expanded="true"] .mkt-sort-chev { transform: rotate(180deg); }
.mkt-sort-menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px;
  list-style: none; background: #0d1219; border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px; box-shadow: 0 16px 48px rgba(0,0,0,.55); z-index: 100;
  opacity: 0; visibility: hidden; transform: translateY(4px) scale(.97);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}
.mkt-sort-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.mkt-sort-option {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; border-radius: 6px; color: var(--mkt-muted);
  font-size: 12px; font-weight: 700; cursor: pointer; transition: background .12s ease, color .12s ease;
}
.mkt-sort-option:hover { background: rgba(255,255,255,.06); color: var(--mkt-text); }
.mkt-sort-option.is-active { color: #ffb703; }
.mkt-sort-option i { font-size: 10px; color: var(--mkt-lime); }

.mkt-result-line { margin: 0 0 16px; color: var(--mkt-muted); font-size: 14px; font-weight: 700; }
.mkt-result-line b, .mkt-result-line strong { color: #fff; }

.mkt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.mkt-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgba(99,102,241,.12); border: 1px solid rgba(99,102,241,.3); color: #c7c9ff;
  text-decoration: none; transition: .15s ease;
}
.mkt-chip:hover { background: rgba(99,102,241,.2); color: #fff; }
.mkt-chip i { font-size: 10px; }
.mkt-chip-clear { background: transparent; border-color: var(--mkt-border); color: var(--mkt-muted); }

#mktResults { transition: opacity .15s ease; }
#mktResults.is-loading { opacity: .45; pointer-events: none; }

.mkt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(154px, 1fr)); gap: 16px; }

.mkt-card {
  position: relative; display: block; min-width: 0; min-height: 240px;
  overflow: hidden; border-radius: 12px; background: #0f172a;
  color: #fff; text-decoration: none;
  box-shadow: 0 12px 24px rgba(0,0,0,.28);
  transition: transform .2s ease;
}
.mkt-card:hover { color: #fff; text-decoration: none; transform: translateY(-2px); }
.mkt-card-media { position: absolute; inset: 0; height: 100%; background: #111827; }
.mkt-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s ease; }
.mkt-card:hover .mkt-card-media img { transform: scale(1.04); }
.mkt-card-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.4); font-size: 34px; }
.mkt-card-tag {
  align-self: flex-start; max-width: 100%; margin-bottom: 9px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px 4px 5px; border-radius: 999px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #d9f99d;
  background: linear-gradient(135deg, rgba(163,230,53,.18), rgba(99,102,241,.1));
  border: 1px solid rgba(163,230,53,.34);
  box-shadow: 0 4px 14px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  white-space: nowrap; overflow: hidden;
  transition: border-color .25s cubic-bezier(.16,1,.3,1), box-shadow .25s ease, transform .25s cubic-bezier(.16,1,.3,1);
}
.mkt-card-tag i {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  font-size: 8px; color: #07080a;
  background: var(--mkt-lime);
  box-shadow: 0 0 10px rgba(163,230,53,.45);
}
.mkt-card-tag span { overflow: hidden; text-overflow: ellipsis; }
.mkt-card:hover .mkt-card-tag {
  border-color: rgba(163,230,53,.6);
  box-shadow: 0 6px 18px rgba(163,230,53,.22), inset 0 1px 0 rgba(255,255,255,.16);
  transform: translateY(-1px);
}
.mkt-card-new {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px 5px 8px; border-radius: 999px;
  font-size: 9.5px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; line-height: 1;
  color: #f8fafc;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border: 1px solid rgba(59,130,246,.55);
  box-shadow: 0 6px 18px rgba(37,99,235,.4), inset 0 1px 0 rgba(255,255,255,.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .18s cubic-bezier(.16,1,.3,1), box-shadow .18s ease;
}
.mkt-card-new i { font-size: 9px; line-height: 1; color: #f8fafc; }
.mkt-card:hover .mkt-card-new { transform: translateY(-1px) scale(1.04); }
.mkt-card-info {
  position: absolute; inset: auto 0 0; z-index: 2;
  display: flex; flex-direction: column; min-height: 104px;
  padding: 48px 13px 13px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(5,8,13,.92) 43%, rgba(5,8,13,.98));
}
.mkt-card-title {
  margin: 0 0 6px; color: #fff; font-size: 15px; font-weight: 900; line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mkt-card-price { color: #ff5a00; font-size: 14px; font-weight: 900; line-height: 1.1; }
.mkt-card-oldprice { color: rgba(255,255,255,.45); font-size: 11px; font-weight: 600; text-decoration: line-through; margin-left: 5px; }
.mkt-card-disc {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px 5px 9px; border-radius: 999px;
  font-size: 9.5px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #f97316);
  border: 1px solid rgba(249,115,22,.55);
  box-shadow: 0 6px 18px rgba(239,68,68,.4), inset 0 1px 0 rgba(255,255,255,.3);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .18s cubic-bezier(.16,1,.3,1), box-shadow .18s ease;
}
.mkt-card:hover .mkt-card-disc { transform: translateY(-1px) scale(1.04); }
.mkt-card-sub {
  display: flex; align-items: center; gap: 8px; margin-top: 6px;
  font-size: 10px; color: rgba(255,255,255,.78); font-weight: 600;
}
.mkt-card-sub .sep { opacity: .5; }
.mkt-card-rating i { color: #ffcc00; margin-right: 2px; }
.mkt-card-sold i { color: #28c76f; margin-right: 2px; }
.mkt-card-seller {
  display: flex; align-items: center; gap: 6px; margin-top: 8px;
  font-size: 10px; color: rgba(255,255,255,.72); font-weight: 600;
}
.mkt-seller-logo {
  width: 18px; height: 18px; border-radius: 50%; flex: 0 0 auto;
  background: rgba(255,255,255,.12); display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 800; color: var(--mkt-lime); text-transform: uppercase; overflow: hidden;
}
.mkt-seller-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mkt-seller-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkt-seller-verified { flex: 0 0 auto; color: var(--mkt-lime); font-size: 10px; }

.mkt-empty {
  grid-column: 1 / -1; text-align: center; padding: 56px 24px;
  border: 1px dashed var(--mkt-border); border-radius: 18px; background: rgba(255,255,255,.02);
}
.mkt-empty i { font-size: 34px; color: rgba(163,230,53,.6); margin-bottom: 12px; }
.mkt-empty p { margin: 0; color: var(--mkt-muted); font-weight: 600; }

.mkt-pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.mkt-pagination a, .mkt-pagination span {
  min-width: 42px; height: 42px; padding: 0 12px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; text-decoration: none;
  background: var(--mkt-surface); border: 1px solid var(--mkt-border); color: var(--mkt-muted);
  transition: .15s ease;
}
.mkt-pagination a:hover { color: var(--mkt-text); border-color: var(--mkt-border-hover); }
.mkt-pagination .is-current { background: var(--mkt-lime); border-color: var(--mkt-lime); color: #07080a; }
.mkt-pagination .is-disabled { opacity: .4; pointer-events: none; }

.mkt-filter-toggle {
  display: none; z-index: 30;
  width: auto; height: 46px; margin: 0 0 14px; padding: 0 14px; border-radius: 4px; cursor: pointer;
  align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  background: transparent; border: 1px solid rgba(255,183,3,.72);
  color: #ffb703; font-family: inherit; font-size: 13px; font-weight: 800;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.mkt-filter-toggle:hover { background: rgba(255,183,3,.10); border-color: rgba(255,183,3,.72); color: #ffb703; }
.mkt-filter-toggle i { color: #ffb703; }
.mkt-drawer-head { display: none; }
.mkt-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: .2s ease; z-index: 90;
}
.mkt-overlay.open { opacity: 1; pointer-events: auto; }

@media (max-width: 960px) {
  .mkt-layout { grid-template-columns: 1fr; }
  .mkt-filter-toggle { display: flex; width: calc(100% - 36px); margin-left: 18px; margin-right: 18px; }
  .mkt-sidebar {
    position: fixed; top: 0; left: 0; height: 100%; width: min(340px, 88vw);
    border-radius: 0; border-left: 0; border-top: 0; border-bottom: 0;
    transform: translateX(-110%); transition: transform .25s ease; z-index: 95;
    overflow-y: auto; padding: 0 18px 24px;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .mkt-sidebar::-webkit-scrollbar { width: 0; height: 0; display: none; }
  .mkt-sidebar.open { transform: translateX(0); }
  .mkt-drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    margin: 0 -18px 16px; padding: 16px 18px; border-bottom: 1px solid var(--mkt-border);
    position: sticky; top: 0; background: var(--mkt-surface); z-index: 2;
  }
  .mkt-drawer-head b { font-size: 15px; font-weight: 800; }
  .mkt-drawer-close { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--mkt-border); background: var(--mkt-surface-2); color: var(--mkt-text); font-size: 18px; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
  .mkt-drawer-close:hover { background: rgba(255, 255, 255, .10); color: #ffb703; border-color: rgba(163, 230, 53, .32); }
}
@media (max-width: 768px) {
  .mkt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .mkt-card { min-height: 230px; }
  .mkt-toolbar { grid-template-columns: 1fr; gap: 10px; }
  .mkt-sort-dropdown { min-width: 0; width: 100%; }
  .mkt-sort-trigger { width: 100%; padding: 0 14px; }
  .mkt-sort-trigger span { max-width: none; }
}
@media (min-width: 601px) and (max-width: 960px) {
  .mkt-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 480px) { .mkt-card { min-height: 210px; } }
@media (max-width: 768px) {
  .mkt-hero { padding-top: 18px; }
  .mkt-breadcrumb { margin-bottom: 22px; }
  .mkt-hero-title-wrap h1 { font-size: 24px; }
  .mkt-hero-badges { gap: 6px; }
  .mkt-hero-badge { font-size: clamp(7px, 2.3vw, 12px); padding: 6px 5px; }
}
