:root {
  --accent: #9a1b1b;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #e7e0d6;
  --paper: #f6f3ee;
  --card: #fff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.5 "Segoe UI", Tahoma, sans-serif;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }
h1 { font-size: 2rem; line-height: 1.15; margin: 0 0 .4rem; }
h2 { font-size: 1.25rem; margin: 1.6rem 0 .6rem; }
.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.top { background: #141210; color: #fff; }
.top-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { color: #fff; text-decoration: none; font-weight: 750; letter-spacing: .01em; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.nav a { color: #f5f0e8; text-decoration: none; }
.nav a:hover { text-decoration: underline; }
main.wrap { padding: 28px 0 48px; }
.hero { margin-bottom: 22px; }
.lede, .by, .fine, .muted { color: var(--muted); }
.about { max-width: 68ch; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--card); color: inherit; text-decoration: none;
  border: 1px solid var(--line); border-radius: 12px; padding: 10px;
}
.card img, .ph {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #efeae3;
}
.ph { display: grid; place-items: center; color: var(--muted); }
.type { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.price { font-weight: 700; }
.store-card { min-height: 140px; justify-content: flex-end; padding: 18px; }
.empty { padding: 20px; background: var(--card); border-radius: 12px; }
.flash { padding: 12px 14px; border-radius: 10px; }
.flash.ok { background: #e7f6ea; }
.flash.err { background: #fde8e4; }
form.stack, .panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px;
  max-width: 720px;
}
label { display: block; font-weight: 650; margin: 12px 0 4px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="url"], select, textarea {
  width: 100%; max-width: 520px; padding: 10px 12px; font: inherit;
  border: 1px solid #d6d0c6; border-radius: 8px; background: #fff;
}
textarea { min-height: 110px; }
.row-actions, .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
button, .btn {
  appearance: none; border: 0; background: var(--accent); color: #fff;
  font: inherit; font-weight: 650; padding: 10px 14px; border-radius: 8px;
  cursor: pointer; text-decoration: none; display: inline-block;
}
.btn.secondary, button.secondary { background: #fff; color: var(--ink); border: 1px solid #d6d0c6; }
.btn.small { padding: 6px 10px; font-size: .92rem; }
table { width: 100%; border-collapse: collapse; background: var(--card); }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.note { font-size: .92rem; color: var(--muted); max-width: 68ch; }
input[type="file"] { font: inherit; max-width: 100%; margin-top: 8px; }
.edit-preview { max-width: 280px; background: #efeae3; }
.photo-help { margin: 8px 0 4px; max-width: 68ch; }
.photo-help summary {
  cursor: pointer; display: inline-block; font-weight: 650;
  background: #fff; border: 1px solid #d6d0c6; border-radius: 8px; padding: 8px 12px;
}
.photo-help summary::-webkit-details-marker { display: none; }
.photo-help .help-body {
  margin-top: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px;
}
.photo-help h3 { font-size: 1rem; margin: .9rem 0 .25rem; }
.photo-help p, .photo-help li { margin: .25rem 0; }
.photo-help ol, .photo-help ul { margin: .2rem 0 .4rem; padding-left: 1.25rem; }
.card img.poster, .product img.poster { aspect-ratio: 8.5 / 11; object-fit: contain; background: #efeae3; }
.site-foot { border-top: 1px solid var(--line); padding: 22px 0 36px; background: #fff; }
.site-foot p { margin: .35rem 0; }
.foot-links a { color: var(--ink); }
.product { display: grid; grid-template-columns: minmax(240px, 420px) 1fr; gap: 24px; }
.product img, .product .ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: #efeae3; }
.sizes { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.split { display: grid; grid-template-columns: 1fr 280px; gap: 20px; align-items: start; }
.slip { background: #fff; border: 1px solid var(--line); padding: 24px; max-width: 640px; }
.slip address { font-style: normal; font-size: 1.25rem; white-space: pre-line; }
@media (max-width: 800px) {
  .product, .split { grid-template-columns: 1fr; }
  h1 { font-size: 1.6rem; }
}
@media print {
  .top, .site-foot, .no-print { display: none !important; }
  body { background: #fff; }
}
