.filters a{display:inline-block;margin:0 .6rem .5rem 0;padding:.25rem .6rem;border:1px solid currentColor;border-radius:999px;text-decoration:none;font-size:.9rem}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.25rem;margin-top:1rem}
.card{border:1px solid rgba(0,0,0,.12);border-radius:8px;overflow:hidden;background:rgba(255,255,255,.6);display:flex;flex-direction:column}
.card .thumb{aspect-ratio:360/209;background:#f2efe9;display:flex;align-items:center;justify-content:center;overflow:hidden}
.card .thumb img{width:100%;height:100%;object-fit:cover}
.card .noimg{color:#777;font-size:.85rem}
.card .body{padding:.9rem 1rem 1rem}
.card h3{font-size:1rem;line-height:1.35;margin:.25rem 0 .4rem}
.card .code{font-size:.8rem;color:#555;margin:0}
.badge{display:inline-block;padding:.05rem .45rem;border-radius:999px;background:#f3e6c9;color:#5a4300;font-size:.75rem;vertical-align:middle}
.card .meta{font-size:.85rem;color:#555;margin:0 0 .5rem}
.prices{width:100%;border-collapse:collapse;font-size:.85rem}
.prices caption{text-align:left;font-size:.75rem;color:#666;margin-bottom:.2rem}
.prices th{text-align:left;font-weight:500;padding:.15rem 0;color:#333}
.prices td{text-align:right;padding:.15rem 0}
.prices td.na{color:#999;font-style:italic}
h2 .count{font-size:.8rem;color:#666;font-weight:400;margin-left:.4rem}
@media (prefers-color-scheme: dark){.card{border-color:rgba(255,255,255,.15);background:rgba(255,255,255,.04)}.card .thumb{background:#222}.prices th{color:#ddd}.card .code,.card .meta,.prices caption{color:#aaa}.badge{background:#4a3a12;color:#f3e6c9}}

.controls{display:flex;flex-wrap:wrap;gap:.75rem 1.25rem;align-items:end;margin:1rem 0 .5rem}
.controls label{display:flex;flex-direction:column;font-size:.85rem;gap:.25rem;min-width:9rem;flex:1 1 9rem}
.controls input,.controls select{font:inherit;padding:.45rem .6rem;border:1px solid rgba(0,0,0,.25);border-radius:6px;background:transparent;color:inherit;max-width:100%}
.controls output{font-size:.85rem;color:#555;flex-basis:100%}
@media (prefers-color-scheme: dark){.controls input,.controls select{border-color:rgba(255,255,255,.3)}.controls output{color:#aaa}}


.market-banner{margin:.25rem 0 .75rem;padding:.6rem .8rem;border:1px solid rgba(0,0,0,.15);border-radius:6px;font-size:.9rem;background:rgba(255,255,255,.5)}
.market-banner a{margin-left:.25rem}
.big-price{font-size:1.05rem;font-weight:600;margin:.1rem 0 .5rem}
.prices tr.active th,.prices tr.active td{font-weight:600}
@media (prefers-color-scheme: dark){.market-banner{border-color:rgba(255,255,255,.2);background:rgba(255,255,255,.05)}}

/* one market active: show only that market's price */
body.single-market .prices{display:none}
body.single-market .big-price{margin-bottom:.2rem}
