:root { --primary: #ee4d2d; --bg: #f5f5f5; --text: #222; --muted: #757575; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

.header { background: var(--primary); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.logo { color: #fff; font-weight: 700; font-size: 20px; text-decoration: none; white-space: nowrap; }
#search { flex: 1; padding: 10px 14px; border: 0; border-radius: 4px; font-size: 15px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0 8px; }
.chip { border: 1px solid #ddd; background: #fff; padding: 8px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; font-size: 14px; }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.toolbar { display: flex; justify-content: space-between; align-items: center; padding: 8px 0 12px; color: var(--muted); font-size: 14px; }
.toolbar select { padding: 6px 8px; border-radius: 4px; border: 1px solid #ddd; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(5, 1fr); } }

.card { display: flex; flex-direction: column; background: #fff; border-radius: 6px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #eee; }
.card-body { padding: 10px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-name { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; }
.card-price { color: var(--primary); font-weight: 600; font-size: 16px; }
.card-sold { color: var(--muted); font-size: 12px; }

.empty { text-align: center; color: var(--muted); padding: 48px 0; }
.footer { margin-top: 32px; padding: 20px 0; font-size: 12px; color: var(--muted); text-align: center; }
