.zl-market-tools { display: grid; gap: 1rem; margin: 2.75rem 0 1.5rem; }
.zl-market-hero:not(.has-spotlight) + .zl-market-body .zl-market-tools { margin-top: 0; }
.zl-market-plate { display: flex; align-items: center; gap: .25rem; padding: .45rem; border: 1px solid var(--zl-line); border-radius: 1.1rem; background: var(--zl-card); transition: border-color .25s ease, box-shadow .25s ease; }
.zl-market-plate:focus-within { border-color: color-mix(in srgb, var(--zl-blue) 55%, var(--zl-line)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--zl-blue) 14%, transparent); }
.zl-market-search { position: relative; flex: 1; min-width: 0; margin: 0; }
.zl-market-search .icon { position: absolute; top: 50%; left: .85rem; width: 1.15rem; height: 1.15rem; color: var(--zl-muted); transform: translateY(-50%); }
.zl-market-search input { width: 100%; height: 3rem; padding: 0 .75rem 0 2.6rem; border: 0; background: transparent; color: var(--zl-ink); font-size: 1rem; }
.zl-market-search input::placeholder { color: var(--zl-muted); }
.zl-market-search input:focus, .zl-market-sort:focus { outline: 0; }
.zl-market-sort { flex: none; height: 3rem; padding: 0 2.25rem 0 1rem; border: 0; border-left: 1px solid var(--zl-line); border-radius: 0; background-color: transparent; color: var(--zl-ink); font-size: .9375rem; font-weight: 600; cursor: pointer; }

.zl-market-cats { display: flex; gap: .4rem; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.zl-market-cats::-webkit-scrollbar { display: none; }
.zl-market-cats button { display: inline-flex; flex: none; align-items: center; gap: .45rem; padding: .45rem .55rem .45rem .9rem; border: 1px solid var(--zl-line); border-radius: 999px; background: var(--zl-card); color: var(--zl-ink); font-size: .9375rem; font-weight: 500; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.zl-market-cats button:hover { border-color: color-mix(in srgb, var(--zl-blue) 40%, var(--zl-line)); }
.zl-market-cats button span { min-width: 1.4rem; padding: .05rem .4rem; border-radius: 999px; background: var(--zl-soft); color: var(--zl-muted); font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums; text-align: center; }
.zl-market-cats button[aria-pressed="true"] { border-color: var(--zl-ink); background: var(--zl-ink); color: var(--zl-bg); }
.zl-market-cats button[aria-pressed="true"] span { background: color-mix(in srgb, var(--zl-bg) 18%, transparent); color: var(--zl-bg); }

.zl-market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: .75rem; }
.zl-lot { position: relative; display: flex; flex-direction: column; min-height: 13.5rem; padding: 1.25rem 1.25rem 1.1rem; border: 1px solid var(--zl-line); border-radius: 1.1rem; background: var(--zl-card); transition: border-color .25s ease, box-shadow .4s var(--zl-ease), transform .4s var(--zl-ease); }
.zl-lot:hover { border-color: color-mix(in srgb, var(--zl-blue) 35%, var(--zl-line)); transform: translateY(-2px); }
.zl-lot[hidden] { display: none; }
.zl-lot-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.zl-lot-cat { margin: 0; color: var(--zl-muted); font-size: .8125rem; font-weight: 600; }
.zl-lot-timer { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .6rem; border-radius: 999px; background: var(--zl-soft); color: var(--zl-ink); font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zl-lot-dot { width: .4rem; height: .4rem; border-radius: 50%; background: var(--zl-mint); }
.zl-lot-timer.is-upcoming { color: var(--zl-blue); }
.zl-lot-timer.is-upcoming .zl-lot-dot { background: var(--zl-blue); }
.zl-lot.is-soon .zl-lot-timer { background: color-mix(in srgb, #f5a524 14%, var(--zl-card)); color: color-mix(in srgb, #f5a524 72%, var(--zl-ink)); }
.zl-lot.is-soon .zl-lot-dot { background: #f5a524; }
.zl-lot.is-ending .zl-lot-timer { background: color-mix(in srgb, #e5484d 12%, var(--zl-card)); color: #e5484d; }
.zl-lot.is-ending .zl-lot-dot { background: #e5484d; animation: zl-lot-pulse 1s ease-in-out infinite alternate; }
@keyframes zl-lot-pulse { to { opacity: .25; } }
.zl-lot.is-ended { opacity: .55; }
.zl .zl-lot-name { margin: .9rem 0 1rem; min-width: 0; font-size: 1.6rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.zl-lot-name i { color: var(--zl-muted); font-style: normal; font-weight: 600; transition: color .25s ease; }
.zl-lot:hover .zl-lot-name i { color: var(--zl-blue); }
.zl-lot-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1rem; border-top: 1px dashed var(--zl-line); }
.zl-lot-buynow { align-self: flex-start; margin: -.5rem 0 1rem; padding: .25rem .6rem; border-radius: 999px; background: color-mix(in srgb, var(--zl-mint) 14%, var(--zl-card)); color: #0f9f78; font-size: .75rem; font-weight: 600; }
.zl-lot-buynow b { font-variant-numeric: tabular-nums; }
.zl-lot-name + .zl-lot-foot { margin-top: auto; }
.zl-lot-price { display: grid; gap: .1rem; min-width: 0; }
.zl-lot-price span { color: var(--zl-muted); font-size: .75rem; font-weight: 600; }
.zl-lot-price strong { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zl-lot-price small { color: var(--zl-muted); font-size: .75rem; }
.zl-lot-go { display: inline-flex; flex: none; align-items: center; gap: .4rem; padding: .65rem .95rem; border: 0; border-radius: .8rem; background: var(--zl-blue); color: #fff; font-size: .9375rem; font-weight: 600; transition: background-color .2s ease; }
.zl-lot-go::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.zl-lot-go:hover { background: #005ad6; }
.zl-lot-go .icon { width: 1rem; height: 1rem; transition: transform .4s var(--zl-ease); }
.zl-lot:hover .zl-lot-go .icon { transform: translateX(3px); }
.zl-lot-go:focus-visible { outline: 2px solid var(--zl-blue); outline-offset: 3px; }
.zl-market-none { margin: 3rem 0; color: var(--zl-muted); text-align: center; }

@media (max-width: 575.98px) {
  .zl-market-tools { margin-top: 2rem; }
  .zl-market-sort { max-width: 9.5rem; padding-left: .75rem; text-overflow: ellipsis; }
  .zl-market-cats { margin: 0 -12px; padding: 0 12px; }
  .zl-market-grid { grid-template-columns: minmax(0, 1fr); }
  .zl-lot { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .zl-lot.is-ending .zl-lot-dot { animation: none; } }
