.marketplace-catalog { display: flex; gap: 32px; max-width: 1280px; margin: 0 auto; padding: 16px 32px 80px; }
.marketplace-sidebar { flex: 0 0 220px; }
@media (min-width: 768px) {
    .marketplace-sidebar { position: sticky; top: calc(var(--site-nav-height, 80px) + 16px); align-self: flex-start; max-height: calc(100dvh - var(--site-nav-height, 80px) - 32px); overflow-y: auto; }
}
.marketplace-sidebar h2 { font-size: 16px; font-weight: 700; margin: 0 0 16px; }
.marketplace-sidebar button { display: block; width: auto; padding: 0; font-size: 14px; line-height: 1.6; margin-bottom: 6px; border: 0; border-radius: 0; background: transparent; text-align: left; color: #315f83; }
.marketplace-sidebar button:hover, .marketplace-sidebar button[aria-pressed="true"] { background: transparent; color: #24558a; text-decoration: underline; text-underline-offset: 2px; }
.marketplace-sidebar button[aria-pressed="true"] { font-weight: 400; }
.marketplace-results { flex: 1; min-width: 0; }
.marketplace-toolbar { display: grid; gap: 12px; margin-bottom: 16px; }
.marketplace-toolbar h1 { font-size: 28px; font-weight: 700; letter-spacing: -.025em; }
.marketplace-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.marketplace-controls input { width: min(100%, 360px); background: #f0f1f6; }
.marketplace-sort-label { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 13px; color: #64748b; }
.marketplace-sort-label select { color: #172033; }
body:has(.marketplace-catalog) { background: #fff; }
.marketplace-controls input, .marketplace-controls select { background: white; border: 1px solid #cbd5e1; border-radius: 6px; padding: 6px 10px; min-height: 34px; font-size: 13px; line-height: 20px; min-width: 0; max-width: 100%; }
.marketplace-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.marketplace-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 8px; text-decoration: none; box-shadow: 0 2px 8px #0f172a12; transition: box-shadow .3s ease, transform .3s ease; }
.marketplace-card[hidden], .marketplace-catalog [hidden] { display: none; }
.marketplace-card-image { height: 140px; flex: 0 0 140px; overflow: hidden; background: #f1f5f9; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 36px; }
.marketplace-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; transform-origin: center top; transition: transform .4s ease; }
@media (hover: hover) and (pointer: fine) {
    .marketplace-card-image img { transform: scale(1.04); }
    .marketplace-card:hover .marketplace-card-image img { transform: scale(1); }
    .marketplace-card:hover { transform: scale(.99); box-shadow: 0 10px 24px rgb(15 23 42 / 18%); }
}
.marketplace-card:focus-visible { box-shadow: 0 10px 24px rgb(15 23 42 / 18%); }
@media (prefers-reduced-motion: reduce) {
    .marketplace-card, .marketplace-card-image img { transition: none; }
        .marketplace-card:hover { transform: none; }
    .marketplace-card .marketplace-card-image img { transform: none; }
}
.marketplace-card-body { background: #24558a; color: white; padding: 8px; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.marketplace-card-body h2 { font-size: 14px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.marketplace-card-body p { font-size: 12px; line-height: 1.5; color: #cbd5e1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.marketplace-price { display: flex; align-items: baseline; gap: 0; margin-top: auto; white-space: nowrap; }
.marketplace-card-body .marketplace-price strong { font-size: 13px; font-weight: 700; flex-shrink: 0; }
.marketplace-card-body .marketplace-price small { font-size: 10px; font-weight: 600; }
.marketplace-card-action { display: flex; align-items: center; justify-content: center; width: 100%; padding: 6px; font-size: 12px; font-weight: 600; text-align: center; margin-top: 4px; }
.marketplace-catalog :is(a, button, input, select):focus-visible { outline: 3px solid #60a5fa; outline-offset: 3px; }
#marketplace-empty { padding: 40px 0; color: #64748b; }
@media (min-width: 640px) { .marketplace-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .marketplace-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .marketplace-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767px) { .marketplace-catalog { flex-direction: column; padding: 16px 16px 48px; gap: 24px; } .marketplace-sidebar { flex-basis: auto; } .marketplace-sidebar button { display: inline-block; width: auto; } .marketplace-toolbar h1 { font-size: 24px; } }
