/* Minimal bidfax-flavoured single-lot page. Light theme, dense grid of
   information, prominent price card, gallery-forward hero. Deliberately
   no framework - one stylesheet, vanilla HTML, ~250 lines.

   Colour palette: stay neutral. Black text on near-white card backgrounds,
   subtle grey borders, single red accent for the final price (the thing
   a buyer's eye is drawn to on any auction listing). */

:root {
  --bg:        #f3f4f6;
  --card:      #ffffff;
  --ink:       #111827;
  --ink-soft:  #4b5563;
  --muted:     #9ca3af;
  --line:      #e5e7eb;
  --line-soft: #f3f4f6;
  --accent:    #dc2626;
  --accent-soft: #fef2f2;
  --font-ui:   'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius:    8px;
  --shadow:    0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
}
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }

a { color: inherit; text-decoration: none; }

h1, h2 { margin: 0; font-weight: 700; }
h1 { font-size: 26px; letter-spacing: -0.01em; }
h2 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin-bottom: 14px; }

/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.brand-dot { color: var(--accent); }
.header-nav { display: flex; gap: 22px; font-size: 13px; color: var(--ink-soft); }
.header-nav a:hover { color: var(--accent); }

/* Lot title */
.lot-head {
  padding: 24px 0 18px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}
.lot-sub { color: var(--ink-soft); font-size: 13px; }

/* Two-column layout */
.lot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 900px) {
  .lot-grid { grid-template-columns: 1fr; }
}

/* Shared card style */
.card, .gallery, .lot-side > * {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card { padding: 20px 22px; margin-bottom: 20px; }

/* Gallery */
.gallery { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #0a0a0a;
  border-radius: 6px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.gallery-main img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
}
.gallery-main img.loading { opacity: 0; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%; border: none;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-size: 24px; line-height: 1;
  cursor: pointer; backdrop-filter: blur(4px);
  transition: background .15s;
}
.gallery-nav:hover { background: #ffffff; }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-counter {
  position: absolute; bottom: 10px; right: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff; padding: 3px 10px; border-radius: 12px;
  font-size: 11px; font-family: var(--font-mono);
}
.gallery-caption {
  font-size: 12.5px; color: var(--ink-soft);
  padding: 0 4px; min-height: 16px;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 6px;
}
.gallery-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .12s;
}
.gallery-thumbs img:hover { border-color: var(--muted); }
.gallery-thumbs img.active { border-color: var(--accent); }

/* Price card */
.price-card {
  padding: 22px 24px;
  text-align: left;
  border-top: 3px solid var(--accent);
}
.price-label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.price-amount {
  font-family: var(--font-ui);
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.price-currency {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
  font-family: var(--font-mono);
}

/* Quick specs (side column) - compact list of the 4-6 most important fields */
.quick-specs {
  margin: 0;
  padding: 16px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.quick-specs .spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-soft);
}
.quick-specs .spec-row:last-child { border-bottom: none; }
.quick-specs dt {
  color: var(--ink-soft);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}
.quick-specs dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
  color: var(--ink);
}

/* Full specs table */
.specs-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px 28px;
}
.specs-grid .spec-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}
.specs-grid .spec-row:last-child { border-bottom: none; }
.specs-grid dt {
  color: var(--ink-soft);
  font-size: 12.5px;
  margin: 0;
}
.specs-grid dd {
  margin: 0;
  font-weight: 500;
  color: var(--ink);
  word-break: break-word;
}

/* Description */
.description-body p {
  margin: 0 0 12px;
  color: var(--ink);
  line-height: 1.65;
}
.description-body p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
  margin-top: 40px;
}
.footer-row {
  height: 58px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px;
}
