:root {
  --color-primary: #000000;
  --color-on-primary: #ffffff;
  --color-ink: #000000;
  --color-body: #757575;
  --color-hairline: #e0e0e0;
  --color-canvas: #ffffff;
  --color-canvas-soft: #f5f5f5;
  --color-link: #057dbc;
  --font-display: WiredDisplay, "Times New Roman", Georgia, serif, system-ui, Segoe UI, PingFang SC, Microsoft YaHei;
  --font-serif: BreveText, Georgia, "Times New Roman", serif, system-ui, Segoe UI, PingFang SC, Microsoft YaHei;
  --font-sans: Apercu, "Helvetica Neue", Helvetica, Arial, system-ui, Segoe UI, PingFang SC, Microsoft YaHei, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: var(--font-sans); color: var(--color-ink);
  background: var(--color-canvas); line-height: 1.45;
}
a { color: var(--color-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.header { border-bottom: 1px solid #000; padding: 14px 0; }
.header-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.logo {
  font-family: var(--font-display); color: #000; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase; font-size: 22px;
}
.logo:hover { text-decoration: none; }
.search { flex: 1; min-width: 200px; display: flex; }
.search input {
  flex: 1; padding: 10px 12px; border: 1px solid #000; border-right: 0; font: inherit; border-radius: 0;
}
.search button {
  padding: 10px 16px; border: 1px solid #000; background: #000; color: #fff;
  font: inherit; font-weight: 700; letter-spacing: 0.3px; cursor: pointer; border-radius: 0;
}
.links { display: flex; gap: 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; }
.links a { color: #000; }

.nav { border-bottom: 1px solid var(--color-hairline); }
.nav-inner { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 8px 20px; }
.nav a { color: #000; font-size: 13px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; }
.nav a.on { text-decoration: underline; }

.hero { padding: 24px 0; }
.ph {
  background: var(--color-canvas-soft); color: var(--color-body);
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.banner { height: 200px; font-family: var(--font-display); font-size: 28px; letter-spacing: -0.4px; }

.section { padding: 28px 0; }
.section h2 { font-family: var(--font-display); font-size: 26px; font-weight: 400; margin: 0 0 14px; }
.cats { display: flex; flex-wrap: wrap; gap: 0; }
.cats a {
  border: 1px solid #000; padding: 8px 14px; color: #000;
  font-size: 12px; font-weight: 700; letter-spacing: 0.3px; margin-right: -1px; margin-bottom: -1px;
}
.cats a:hover { text-decoration: none; background: #000; color: #fff; }

.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.item {
  border: 1px solid var(--color-hairline); padding: 12px; color: #000; margin-right: -1px; margin-bottom: -1px;
}
.item:hover { text-decoration: none; }
.item .ph { height: 140px; margin-bottom: 8px; }
.item h3 { margin: 0 0 4px; font-size: 14px; font-weight: 700; }
.price { color: #000; font-weight: 700; }
.sub { color: var(--color-body); font-size: 12px; }

.layout { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 24px 0; }
.side a {
  display: block; padding: 10px 0; color: #000;
  border-bottom: 1px solid var(--color-hairline); font-size: 13px; font-weight: 700; letter-spacing: 0.3px;
}
.side a.on { text-decoration: underline; }

.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px 0; }
.detail .ph { height: 280px; }
.detail h1 { font-family: var(--font-display); font-size: 32px; font-weight: 400; margin: 0 0 8px; letter-spacing: -0.3px; }
.sku { color: var(--color-body); font-size: 13px; }
.spec { list-style: none; margin: 0 0 16px; padding: 0; font-size: 14px; }
.spec li { padding: 8px 0; border-bottom: 1px solid var(--color-hairline); }
.btn {
  display: inline-block; padding: 12px 20px; border: 1px solid #000;
  background: #000; color: #fff; font: inherit; font-weight: 700;
  letter-spacing: 0.3px; cursor: pointer; margin-right: 8px; border-radius: 0;
}
.btn:hover { text-decoration: none; color: #fff; }
.btn-line { background: #fff; color: #000; }
.btn-line:hover { color: #000; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { border-bottom: 1px solid var(--color-hairline); padding: 10px 8px; text-align: left; }
th { font-size: 12px; letter-spacing: 0.4px; text-transform: uppercase; }
.qty { width: 48px; padding: 4px; border: 1px solid #000; border-radius: 0; }
.user-list { list-style: none; margin: 0; padding: 0; }
.user-list li { border: 1px solid #000; padding: 12px; margin-bottom: 0; border-bottom: 0; }
.user-list li:last-child { border-bottom: 1px solid #000; }

.footer { background: #000; color: #fff; padding: 32px 0 48px; font-size: 13px; }
.footer p { margin: 0 0 4px; }

@media (max-width: 800px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .layout, .detail { grid-template-columns: 1fr; }
}

.ph { overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
