:root { --max: 1100px; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Noto Sans KR", sans-serif; line-height: 1.5; }
header { border-bottom: 1px solid #eee; background: #fff; position: sticky; top: 0; z-index: 10; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 16px; }
nav a { text-decoration: none; color: #111; margin-right: 12px; }
nav a.active { font-weight: 700; }

h1 { margin: 10px 0 0; }
.muted { color: #666; font-size: 14px; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
input, select { padding: 10px; border: 1px solid #ddd; border-radius: 10px; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}

.card {
  border: 1px solid #eee;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 10px rgba(0,0,0,.04);
  cursor: pointer;
}
.thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f6f6f6;
  display: block;
  object-fit: cover;
}
.card .pad { padding: 12px; }
.card .name { font-weight: 700; margin: 0 0 4px; }
.card .price { font-weight: 700; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tag { font-size: 12px; padding: 4px 8px; background: #f3f3f3; border-radius: 999px; color: #333; }

.detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 900px) {
  .detail { grid-template-columns: 1.2fr .8fr; }
}
.gallery img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #eee;
  background: #f6f6f6;
}
.btn {
  display: inline-block;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 12px;
  text-decoration: none;
  color: #111;
  background: #fff;
}
hr { border: none; border-top: 1px solid #eee; margin: 16px 0; }
