/* SHARED DESIGN — every store links this one file. Change it here and all stores change. */

:root {
  --bg: #000000;
  --fg: #e4e4e4;
  --dim: #aaa191;
  --line: #3a3a3a;
  --stamp: #c31f1f;
  --fs: 15px;         /* body text size */
  --fs-meta: 0.8em;   /* labels / nav / footer, scales with --fs */
}

* { box-sizing: border-box; }

html, body { margin: 0; background: var(--bg); color: var(--fg); }

body {
  font-family: 'Times New Roman', Times, serif;
  font-size: var(--fs);
  line-height: 1.6;
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
}

a { color: inherit; }
p { margin: 0; }

/* ---- reusable classes ---- */

.wrap   { max-width: 760px; margin: 0 auto; padding: 12px 18px; }
.row    { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.rule-b { border-bottom: 1px solid var(--line); }
.rule-t { border-top: 1px solid var(--line); }
.frame  { border: 1px solid var(--line); }
.box    { border: 1px solid var(--stamp); padding: 6px 10px; }
.pad    { padding-top: 18px; padding-bottom: 22px; }
.stack > * + * { margin-top: 10px; }
.bold   { font-weight: 700; }
.meta   { font-size: var(--fs-meta); color: var(--dim); }
.dim    { color: var(--dim); }
.plain  { text-decoration: none; }

/* buttons + nav share one look: bordered, invert on hover */
.btn, nav a {
  font: inherit;
  color: var(--fg);
  background: none;
  border: 1px solid var(--line);
  padding: 4px 12px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  display: inline-block;
}
.btn:hover, .btn:focus-visible, nav a:hover, nav a:focus-visible {
  background: var(--fg);
  color: var(--bg);
  outline: none;
}
nav { display: flex; }
nav a + a { border-left: none; }

/* ---- tables and term lists ---- */

table { width: 100%; border-collapse: collapse; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { font-size: var(--fs-meta); color: var(--dim); }
td[data-label="PRICE"], td[data-label="STATUS"] { white-space: nowrap; }

dl { margin: 0; display: grid; grid-template-columns: 140px 1fr; gap: 6px 16px; align-content: start; }
dt { color: var(--dim); font-weight: 700; }
dd { margin: 0; }

/* ---- product record ---- */

.record { display: grid; grid-template-columns: 260px 1fr; gap: 16px; padding: 10px; }
.photo  { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; text-align: center; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb  { width: 72px; text-decoration: none; }

@media (max-width: 560px) {
  table, thead, tbody, th, td, tr { display: block; }
  thead { display: none; }
  tr { border: 1px solid var(--line); margin-bottom: 8px; }
  td { border: none; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
  td:last-child { border-bottom: none; }
  td::before { content: attr(data-label); color: var(--dim); flex-shrink: 0; }
  dl { grid-template-columns: 100px 1fr; }
  .record { grid-template-columns: 1fr; }
  .photo { max-width: 220px; }
  .btn, nav a { padding: 4px 7px; }
}

:focus-visible { outline: 1px solid var(--fg); outline-offset: 2px; }

/* section you jumped to from the nav: its label turns red */
section:target p.meta:first-child, footer:target { color: var(--stamp); }

/* ---- brand ---- */
.brand { font-weight: 400; display: inline-flex; align-items: center; gap: 0.4em; }
/* tall, condensed wordmark: scaled horizontally, margin pulls the layout box in to match */
.brand-big {
  display: inline-block;
  font-size: 3.6em;
  line-height: 1;
  letter-spacing: 0;
  transform: scaleX(0.6);
  transform-origin: 0 50%;
  margin-right: -1.4em;
}

/* ---- order form ---- */
.field { display: flex; flex-direction: column; gap: 4px; }
select {
  font: inherit;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 4px 8px;
  max-width: 220px;
}
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn[disabled]:hover { background: none; color: var(--fg); }
