:root{
  --bg:#fff;
  --text:#111;
  --muted:#6b6b6b;
  --line:#e9e9e9;
  --soft:#f6f6f6;
  --radius:18px;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}

/* Banner closer to top */
.site-header{
  max-width:1180px;
  margin:0 auto;
  padding:8px 22px 0;
}

.banner{
  width:100%;
  height:auto;
  display:block;
  border-radius:20px;
}

.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:16px 22px 90px;
}

.controls{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:center;
  margin:0 0 26px;
}

.search, .select{
  border:1px solid var(--line);
  border-radius:999px;
  padding:11px 14px;
  font-size:14px;
  background:#fff;
}

.search{ width:min(520px, 92vw); }

.select{
  min-width:200px;
  border:1px solid var(--line);
  border-radius:999px;
  padding:11px 42px 11px 14px;   /* extra right padding for arrow */
  font-size:14px;
  background:#fff;

  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;

  background-image:
    linear-gradient(45deg, transparent 50%, #666 50%),
    linear-gradient(135deg, #666 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 16px) 50%;       /* move arrow inward */
  background-size:6px 6px, 6px 6px;
  background-repeat:no-repeat;
}


.grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:28px;
  align-items:start;
}

@media (max-width:980px){ .grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width:720px){ .grid{ grid-template-columns: repeat(2, 1fr); } }

.card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  background:#fff;
}

/* Fixed-size thumb, centered, no cropping */
.thumb{
  aspect-ratio: 3 / 4;
  background:var(--soft);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px;
}

.thumb img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  display:block;
}

.noimg{
  font-size:12px;
  color:var(--muted);
}

.caption{
  padding:12px 12px 14px;
  font-size:13px;
}

.name{
  font-weight:650;
  line-height:1.2;
}

.sub{
  margin-top:6px;
  font-size:12px;
  color:var(--muted);
}

.badges{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
}

.badge{
  font-size:11px;
  padding:4px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  color:#333;
  background:#fff;
}

.badge a{
  color:inherit;
  text-decoration:none;
}

.price{
  margin-top:10px;
  font-weight:700;
  font-size:13px;
}

.meta{
  margin-top:18px;
  text-align:center;
  font-size:12px;
  color:var(--muted);
}
