*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,"Malgun Gothic",sans-serif;background:#f4f6f9;color:#1a202c}
a{color:inherit}
.hd{background:#0f172a;color:#fff;padding:20px}
.hd h1{margin:0;font-size:22px}
.hd .sub{margin:6px 0 0;color:#94a3b8;font-size:13px}
.hd .logo{text-decoration:none;color:#fff}
.wrap{max-width:1100px;margin:0 auto;padding:20px}
.fil{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.fil a{padding:7px 14px;border-radius:20px;background:#fff;border:1px solid #e2e8f0;text-decoration:none;color:#475569;font-size:14px;font-weight:600}
.fil a.on{background:#2563eb;color:#fff;border-color:#2563eb}
.fil .cnt{color:#94a3b8;font-weight:400}
.fil a.on .cnt{color:#dbeafe}
.total{color:#64748b;font-size:14px;margin:0 0 12px}
.empty{color:#64748b;padding:40px 0;text-align:center}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}
.card{background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 1px 4px rgba(0,0,0,.06);text-decoration:none;color:inherit;transition:transform .1s,box-shadow .1s;display:block}
.card:hover{transform:translateY(-3px);box-shadow:0 8px 22px rgba(0,0,0,.12)}
.card img{width:100%;height:160px;object-fit:cover;background:#e2e8f0}
.card .b{padding:12px}
.card .m{font-weight:800;font-size:15px}
.card .s{color:#94a3b8;font-size:12px;margin:3px 0 8px}
.card .p{color:#dc2626;font-weight:900;font-size:18px}
.card .meta{font-size:12px;color:#64748b;margin-top:4px}
.pg{display:flex;gap:6px;justify-content:center;margin-top:22px;flex-wrap:wrap}
.pg a{padding:6px 12px;border-radius:8px;background:#fff;border:1px solid #e2e8f0;text-decoration:none;color:#475569;font-size:14px}
.pg a.on{background:#2563eb;color:#fff;border-color:#2563eb}
.ft{padding:20px;text-align:center;color:#94a3b8;font-size:12px}

.crumb{font-size:13px;color:#64748b;margin-bottom:14px;text-decoration:none}
.crumb a{text-decoration:none;color:#2563eb}
.detail{display:grid;grid-template-columns:1.1fr 1fr;gap:28px}
.gallery img#mainPhoto{width:100%;height:360px;object-fit:cover;border-radius:14px;background:#e2e8f0}
.gallery .thumbs{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;margin-top:8px}
.gallery .thumb{width:100%;height:56px;object-fit:cover;border-radius:6px;cursor:pointer;opacity:.6;background:#e2e8f0}
.gallery .thumb.on{opacity:1;outline:2px solid #2563eb}
.info h2{margin:0 0 4px;font-size:24px}
.info .sub2{color:#64748b;margin:0 0 12px}
.info .price{color:#dc2626;font-weight:900;font-size:28px;margin:0 0 16px}
.spec{width:100%;border-collapse:collapse;font-size:14px}
.spec th{text-align:left;color:#64748b;padding:8px 0;width:100px;border-bottom:1px solid #e2e8f0}
.spec td{padding:8px 0;border-bottom:1px solid #e2e8f0;font-weight:600}
.related{grid-column:1/-1;margin-top:10px}
.related h3{font-size:16px;margin-bottom:12px}

@media (max-width:760px){
  .detail{grid-template-columns:1fr}
  .gallery img#mainPhoto{height:260px}
}
@media (prefers-color-scheme: dark){
  body{background:#0b1220;color:#e5e7eb}
  .card,.pg a,.fil a{background:#111827;border-color:#1f2937;color:#cbd5e1}
  .spec th,.spec td{border-color:#1f2937}
  .ft{color:#64748b}
}
