/* ==========================================================================
   Brand tokens — swap these to rebrand the whole app.
   Applied on top of Bootstrap 5 + Tabler (both MIT).
   ========================================================================== */
:root,
[data-bs-theme="light"] {
  --brand-primary: #6f4e37;      /* earthy brown */
  --brand-primary-rgb: 111, 78, 55;
  --brand-accent: #2f8f83;       /* mineral teal */
  --brand-accent-rgb: 47, 143, 131;
  --brand-ink: #1f1a17;
  --brand-surface: #f8f5f2;
  --brand-radius: 0.75rem;

  --tblr-primary: var(--brand-primary);
  --tblr-primary-rgb: var(--brand-primary-rgb);
  --bs-primary: var(--brand-primary);
  --bs-primary-rgb: var(--brand-primary-rgb);
  --bs-link-color: var(--brand-accent);
  --bs-link-hover-color: #236b62;
  --bs-border-radius: var(--brand-radius);
}

[data-bs-theme="dark"] {
  --brand-primary: #c79a76;
  --brand-primary-rgb: 199, 154, 118;
  --brand-accent: #4fc3b4;
  --brand-accent-rgb: 79, 195, 180;
  --brand-surface: #14110f;
}

body.layout-fluid {
  background-color: var(--brand-surface);
  font-family: var(--brand-font, system-ui, sans-serif);
}

.brand-mark {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  margin-right: 0.35rem;
}

/* Inline brand logo (top-left lockup). The SVG reads --brand-primary/--brand-accent,
   so it recolors with the active theme just like the rest of the tokens. */
.brand-logo {
  display: inline-flex;
  align-items: center;
  margin-right: 0.4rem;
}
.brand-logo-svg {
  /* The SVG now contains the mark AND wordmark; fix the height and let the
     width follow the viewBox so each lockup keeps its aspect ratio. */
  height: 1.75rem;
  width: auto;
  display: block;
}
.navbar-brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
}

.bg-brand { background-color: var(--brand-primary) !important; }
.text-brand { color: var(--brand-primary) !important; }
.btn-brand {
  --tblr-btn-bg: var(--brand-primary);
  --tblr-btn-border-color: var(--brand-primary);
  --tblr-btn-color: #fff;
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}
.btn-brand:hover { filter: brightness(0.92); color: #fff; }

/* Product cards */
.specimen-card {
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  height: 100%;
}
.specimen-card:hover { transform: translateY(-3px); box-shadow: 0 0.5rem 1.25rem rgba(0,0,0,.12); }
.specimen-thumb {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  background: #e9e2db;
}
.specimen-thumb.placeholder { display: flex; align-items: center; justify-content: center; color: #9a8f86; }

/* Zoom viewer */
.zoom-stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--brand-radius);
  background: #0e0c0b;
  touch-action: none;
}
.zoom-stage img { width: 100%; display: block; cursor: zoom-in; }
.zoom-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 0.5rem; cursor: pointer; border: 2px solid transparent; }
.zoom-thumbs img.active { border-color: var(--brand-primary); }

/* Capture wizard */
.capture-drop {
  border: 2px dashed var(--brand-primary);
  border-radius: var(--brand-radius);
  padding: 2rem;
  text-align: center;
  background: rgba(var(--brand-primary-rgb), 0.04);
}
.capture-guide {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.capture-guide .coin-guide {
  position: absolute;
  right: 8%;
  bottom: 8%;
  width: 22%;
  aspect-ratio: 1;
  border: 3px dashed rgba(255,255,255,.85);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(0,0,0,.25);
}
.capture-step.active { border-color: var(--brand-primary); }
.thumb-pending { opacity: .6; }

.price-tag { font-weight: 600; color: var(--brand-primary); }
