:root {
  --ink: #2a2118;
  --muted: #6d5c4a;
  --line: #e4d3b8;
  --paper: #fbf6ee;
  --card: #fffaf3;
  --wood: #8a5a2b;
  --accent: #1f6f8b;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.45 "Segoe UI", Helvetica, sans-serif;
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.top { background: #2a2118; color: #fbf6ee; }
.brand { display: flex; gap: 12px; align-items: center; padding: 14px 0; }
.brand > div { min-width: 0; }
.brand img { background: #fbf6ee; border-radius: 6px; width: 132px; height: 28px; object-fit: contain; }
.brand .name { display: block; font-size: 1.15rem; }
.tag { display: block; color: #e4d3b8; font-size: 0.9rem; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px 0 32px; }
.grid .wide { grid-column: 1 / -1; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
h1, h2 { margin: 0 0 8px; font-size: 1.35rem; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.hint { color: var(--muted); font-size: 0.85rem; }
.models, .opts, .dims { display: grid; gap: 8px; margin: 12px 0; }
.models label { display: flex; gap: 8px; align-items: baseline; }
.dims { grid-template-columns: repeat(3, 1fr); }
.opts { grid-template-columns: repeat(3, 1fr); }
label { display: grid; gap: 4px; font-size: 0.92rem; }
input, select, textarea {
  font: inherit; color: inherit; background: #fff; border: 1px solid var(--line);
  border-radius: 6px; padding: 8px;
}
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pv { background: #fff; border-radius: 8px; min-height: 120px; max-height: 240px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pv svg { width: auto; height: auto; max-width: 100%; max-height: 220px; display: block; }
.trace { background: #fff; border-radius: 8px; overflow-x: auto; margin: 12px 0; }
.trace svg { display: block; max-width: none; max-height: none; }
.dimtxt { margin: 8px 0; }
.price { border-top: 1px solid var(--line); padding-top: 8px; }
.amount { font-size: 1.8rem; font-weight: 700; color: var(--wood); }
.notice, .status { background: #fff4d6; border-radius: 6px; padding: 8px 10px; }
.fallback { margin-top: 8px; }
button, .btn {
  background: var(--wood); color: #fff; border: 0; border-radius: 6px;
  padding: 10px 14px; font: inherit; cursor: pointer;
}
button:hover { filter: brightness(1.08); }
.foot { padding-bottom: 28px; color: var(--muted); font-size: 0.88rem; }
.foot-row { display: flex; gap: 16px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.qr { flex: none; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px; line-height: 0; }
.qr img { width: 112px; height: 112px; display: block; }
.gallery { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; margin: 8px 0 20px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; display: block; border-radius: 8px; background: #fff; }
.gallery figcaption { margin-top: 6px; color: var(--muted); font-size: 0.85rem; }
.gallery a { color: var(--accent); }
.video { position: relative; max-width: 640px; aspect-ratio: 16 / 9; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sheet { max-width: 720px; }
.sheet h1 { font-size: 1.1rem; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 16px; margin: 10px 0 8px; }
.facts div { display: flex; gap: 6px; align-items: baseline; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
@media (max-width: 800px) {
  .grid, .dims, .opts, .two, .gallery { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr 1fr; }
}
@media print {
  .top, form, .foot, .no-print { display: none; }
  body { background: #fff; }
  .card { border: 0; }
  .wrap, .sheet { max-width: none; }
  .trace { overflow: visible; }
  .trace svg { max-width: none; max-height: none; }
  .facts { grid-template-columns: repeat(3, 1fr); break-inside: avoid; }
}
