:root {
  --bg: #f7f3ed;
  --panel: #fffdf8;
  --ink: #24211d;
  --muted: #746b60;
  --line: #ded5c8;
  --accent: #7a3f24;
  --accent-dark: #5e2f1a;
  --good: #1f6f54;
  --danger: #9d2f2f;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #2d2924;
  color: #fff;
}
.brand { font-weight: 800; letter-spacing: .02em; }
.top nav { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.wrap { width: min(1120px, 100%); margin: 0 auto; padding: 18px 14px 64px; }
.hero { display: grid; gap: 12px; margin-bottom: 18px; }
.hero h1, h1 { font-size: 26px; margin: 6px 0 12px; }
.grid { display: grid; gap: 14px; }
.home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.action {
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 18px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(45, 41, 36, .06);
  font-size: 20px;
  font-weight: 800;
  text-align: center;
}
.btn, button, input[type=submit] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}
.btn.secondary { background: #5d5a53; }
.btn.good { background: var(--good); }
.btn.danger { background: var(--danger); }
.btn.full { width: 100%; }
.form {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
label { display: grid; gap: 6px; font-weight: 700; }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #cfc4b5;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
textarea { min-height: 110px; }
.camera {
  padding: 16px;
  border: 2px dashed #bda58f;
  border-radius: 8px;
  background: #fffaf0;
}
.camera input { background: transparent; border: 0; padding: 0; }
.photo-labels { display: grid; gap: 8px; }
.filters { display: grid; gap: 10px; margin-bottom: 14px; }
.cards { display: grid; gap: 14px; }
.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 2px 10px rgba(45, 41, 36, .06);
}
.product-card img, .no-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #ded5c8;
}
.no-photo { display: grid; place-items: center; color: var(--muted); }
.card-body { padding: 12px; }
.card-body h3 { margin: 4px 0; font-size: 20px; }
.card-body p { margin: 4px 0; color: var(--muted); }
.detail-photos { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail-photos img { width: 100%; border-radius: 8px; aspect-ratio: 1; object-fit: cover; }
.data { width: 100%; border-collapse: collapse; background: var(--panel); }
.data th, .data td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; }
.notice { margin: 0 0 14px; padding: 12px; border-radius: 8px; background: #ecf7ef; color: #174c35; font-weight: 700; }
.tabs { display: flex; gap: 8px; overflow-x: auto; margin: 8px 0 14px; }
.tabs a { white-space: nowrap; padding: 8px 12px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); }
.muted { color: var(--muted); }

@media (min-width: 760px) {
  .home-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters { grid-template-columns: 2fr 1fr 1fr auto; align-items: end; }
  .form.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form .wide { grid-column: 1 / -1; }
}

