:root {
  --color-primary: #e91d2a;
  --color-on-primary: #ffffff;
  --color-canvas: #ffffff;
  --color-ink: #000000;
  --color-frame-ink: #000000;
  --color-yellow-sticker: #fcc20f;
  --color-purple-stripe: #6a26a4;
  --color-link: #0000ee;
  --color-tint-olive: #8e8a25;
  --color-tint-sage: #b3bd95;
  --color-tint-salmon: #d77a7a;
  --color-tint-peach: #e6915d;
  --color-tint-lime: #c0d4a7;
  --color-tint-sky: #9ab6c8;
  --color-tint-steel: #a5b8c0;
  --color-tint-periwinkle: #8c9ae0;
  --rounded-none: 0px;
  --font-display: "Arial Black", Arial, Helvetica, system-ui, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-ui: Helvetica, Arial, system-ui, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Times New Roman", Times, Georgia, system-ui, "Segoe UI", "PingFang SC", "Microsoft YaHei", serif;
}

* { box-sizing: border-box; }
html { background: #6e6e6e; }
body {
  margin: 16px auto;
  max-width: 760px;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-canvas);
  line-height: 1.4;
  border: 8px solid #000;
}
a { color: var(--color-link); }
.wrap { padding: 0 12px; }

.header { background: #000; color: #fff; padding: 10px 0; }
.header-inner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.logo {
  font-family: var(--font-ui);
  font-weight: 700;
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  text-decoration: none;
}
.search { flex: 1; min-width: 180px; display: flex; }
.search input {
  flex: 1;
  padding: 4px 6px;
  border: 1px solid #000;
  font-family: var(--font-body);
  height: 28px;
}
.search button {
  padding: 0 10px;
  border: 1px solid #000;
  background: var(--color-yellow-sticker);
  color: #000;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
}
.links { display: flex; gap: 10px; font-size: 12px; }
.links a { color: #fff; }
.phone { color: var(--color-primary) !important; font-family: var(--font-ui); font-weight: 700; text-decoration: none; }

.nav { background: #fff; border-bottom: 1px solid #000; }
.nav-inner { display: flex; flex-wrap: wrap; gap: 0; }
.nav a {
  color: #000;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 10px;
  border-right: 1px solid #000;
}
.nav a.on { background: #000; color: #fff; }

.hero { padding: 12px 0; }
.ph {
  background: #c8c8c8;
  color: #444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border: 1px solid #000;
  box-shadow: 2px 2px 0 #000;
  font-family: var(--font-ui);
}
.banner { height: 120px; }

.section { padding: 16px 0; }
.section h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.cats { display: flex; flex-wrap: wrap; gap: 6px; }
.cats a {
  border: 1px solid #000;
  padding: 4px 10px;
  color: #000;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
}
.cats a:nth-child(1) { background: var(--color-tint-peach); }
.cats a:nth-child(2) { background: var(--color-tint-salmon); }
.cats a:nth-child(3) { background: var(--color-tint-sage); }
.cats a:nth-child(4) { background: var(--color-tint-periwinkle); }
.cats a:nth-child(5) { background: var(--color-tint-sky); }
.cats a:nth-child(6) { background: var(--color-tint-lime); }
.cats a:nth-child(7) { background: var(--color-tint-steel); }
.cats a:nth-child(8) { background: var(--color-yellow-sticker); }

.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.item {
  border: 1px solid #000;
  padding: 8px;
  color: #000;
  text-decoration: none;
  background: #fff;
}
.item:nth-child(odd) { background: var(--color-tint-sage); }
.item:nth-child(even) { background: var(--color-tint-sky); }
.item .ph { height: 80px; margin-bottom: 6px; box-shadow: 1px 1px 0 #000; }
.item h3 {
  margin: 0 0 4px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.price { color: var(--color-primary); font-family: var(--font-ui); font-weight: 700; }
.sub { color: #333; font-size: 12px; }

.layout { display: grid; grid-template-columns: 160px 1fr; gap: 12px; padding: 12px 0; }
.side a {
  display: block;
  padding: 6px 0;
  color: #000;
  border-bottom: 1px solid #000;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
}
.side a.on { background: #000; color: #fff; padding-left: 6px; }

.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 0; }
.detail .ph { height: 200px; }
.detail h1 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.sku { font-size: 12px; margin-bottom: 8px; }
.spec { list-style: none; margin: 0 0 12px; padding: 0; font-size: 13px; }
.spec li { padding: 4px 0; border-bottom: 1px solid #000; }
.btn {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  margin-right: 6px;
}
.btn-line { background: #fff; color: #000; }

table { width: 100%; border-collapse: collapse; font-size: 13px; border: 1px solid #000; }
th, td { border: 1px solid #000; padding: 6px 8px; text-align: left; }
th { background: var(--color-tint-olive); font-family: var(--font-ui); font-size: 11px; text-transform: uppercase; }
.qty { width: 44px; padding: 2px; border: 1px solid #000; }

.user-list { list-style: none; margin: 0; padding: 0; }
.user-list li { border: 1px solid #000; padding: 8px; margin-bottom: 6px; }

.footer {
  border-top: 1px solid #000;
  padding: 12px;
  font-size: 11px;
}
.footer p { margin: 0 0 4px; }

@media (max-width: 640px) {
  body { margin: 0; border-width: 4px; }
  .products { grid-template-columns: 1fr; }
  .layout, .detail { grid-template-columns: 1fr; }
}

.ph { overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
