/* ==========================================================================
   CHI CHI COLLECTIBLES · MASTER STYLESHEET
   Fine African American Fashion Dolls, 1990–2008
   Palette: Aubergine, Oxblood, Antique Gold, Champagne, Deep Gold, Ivory
   Typography: Cormorant Garamond & Jost
   ========================================================================== */

:root {
  /* Brand Palette */
  --aub: #1E0E1B;        /* Aubergine - deep rich base */
  --ox: #4A0F22;         /* Oxblood - vintage wine accent */
  --gold: #C9A24B;       /* Antique gold */
  --champ: #EBD595;      /* Champagne */
  --deep: #8F6A22;       /* Deep gold */
  --ivory: #F6EFE2;      /* Ivory parchment background */
  
  --serif: 'Cormorant Garamond', Garamond, Georgia, serif;
  --sans: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Theme System Mappings */
  --bg-primary: var(--ivory);
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-matte: #0E1014;   /* Seamless dark photo frame */
  --bg-glass: rgba(30, 14, 27, 0.96);
  
  --gold-primary: var(--gold);
  --gold-accent: var(--deep);
  --gold-light: var(--champ);
  --gold-glow: rgba(201, 162, 75, 0.25);
  --gold-border: rgba(201, 162, 75, 0.55);
  
  --text-main: var(--aub);
  --text-body: #4b3a45;
  --text-muted: #6a5864;
  --text-faint: #9c8a96;
  
  --border-subtle: #e2d6bf;
  --border-strong: var(--deep);
  
  --badge-nrfb: var(--ox);
  --badge-nrfb-bg: #faeef1;
  --badge-rare: #5e1c3e;
  --badge-rare-bg: #f5eaf2;
  --badge-gold: var(--deep);
  --badge-gold-bg: #fbf5e6;
  
  --radius-sm: 0px;      /* Sharp editorial corners */
  --radius-md: 2px;
  --radius-lg: 4px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(30, 14, 27, 0.06);
  --shadow-md: 0 4px 16px rgba(30, 14, 27, 0.08);
  --shadow-lg: 0 10px 30px rgba(30, 14, 27, 0.14);
  --shadow-gold: 0 8px 24px rgba(201, 162, 75, 0.2);
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background-color: var(--bg-primary);
  color: var(--text-body);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Typography */
h1, h2, h3, h4, .serif-font, .serif {
  font-family: var(--serif);
  letter-spacing: 0.02em;
  font-weight: 600;
  color: var(--text-main);
}

.rule {
  width: 92px;
  height: 1px;
  background: var(--gold);
  margin: 1.1rem 0 1.6rem;
  position: relative;
}

.rule::after {
  content: "";
  position: absolute;
  left: 100%;
  top: -3px;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  margin-left: 6px;
}

/* Framed Plate System */
.frame {
  padding: 12px;
  border: 1px solid var(--gold);
  position: relative;
  background: #ffffff;
}

.frame::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(201, 162, 75, 0.45);
  pointer-events: none;
}

.plate {
  position: relative;
  aspect-ratio: 3 / 4;
  background: radial-gradient(circle at 50% 35%, #3a1a33, var(--aub) 75%);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.plate img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Sticky Header */
.vault-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--aub);
  border-bottom: 1px solid var(--gold);
  padding: 0.75rem 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.header-container {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.brand svg {
  width: 58px;
  height: 42px;
}

.brand b {
  display: block;
  font: 700 1.45rem/1 var(--serif);
  letter-spacing: 0.2em;
  color: var(--champ);
}

.brand span {
  display: block;
  font: 600 0.78rem/1.2 var(--serif);
  letter-spacing: 0.42em;
  color: var(--gold);
  margin-top: 0.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--champ);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.85rem;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  cursor: pointer;
  border-radius: 0;
}

.nav-link:hover {
  border-color: var(--gold);
  color: #ffffff;
}

.nav-link.active {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
  font-weight: 600;
}

.nav-link.highlight {
  background: var(--ox);
  border: 1px solid var(--gold);
  color: var(--champ);
}

.nav-link.highlight:hover {
  background: var(--gold);
  color: var(--aub);
}

/* Editorial Hero / Banner */
.editorial-hero, .buyers-hero {
  position: relative;
  background: radial-gradient(120% 90% at 78% 30%, #6B1832 0%, var(--ox) 38%, var(--aub) 100%);
  color: var(--champ);
  border-bottom: 1px solid var(--gold);
  padding: clamp(3rem, 7vw, 5rem) 1.5rem 3.5rem;
  text-align: center;
}

.editorial-hero-content {
  max-width: 980px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(30, 14, 27, 0.65);
  border: 1px solid var(--gold);
  color: var(--champ);
  font: 600 0.82rem/1 var(--serif);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.45rem 1.15rem;
  margin-bottom: 1.35rem;
}

.editorial-hero h1, .buyers-hero h1 {
  font: 600 clamp(2.4rem, 5.5vw, 4.2rem)/1.08 var(--serif);
  color: #ffffff;
  margin-bottom: 0.85rem;
}

.editorial-hero h1 em, .buyers-hero h1 em {
  display: block;
  font-style: italic;
  font-weight: 500;
  color: var(--champ);
}

.editorial-hero p, .buyers-hero p {
  font-size: 1.08rem;
  color: #e9dcc6;
  max-width: 720px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* Facts / Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gold);
  border: 1px solid var(--gold);
  max-width: 980px;
  margin: 2rem auto 0;
}

@media (max-width: 800px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-card {
  background: var(--aub);
  color: var(--champ);
  padding: 1.4rem 1.1rem;
  text-align: center;
}

.stat-number {
  font: 600 2.2rem/1.1 var(--serif);
  color: var(--champ);
  margin-bottom: 0.25rem;
}

.stat-number .accent {
  color: var(--gold);
}

.stat-label {
  font: 500 0.82rem var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d9ccb4;
}

/* Main Layout */
.main-layout {
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 1.5rem;
}

/* Controls Panel */
.controls-panel {
  background: #ffffff;
  border: 1px solid var(--gold);
  position: relative;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.controls-panel::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(201, 162, 75, 0.35);
  pointer-events: none;
}

.controls-row-top {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.search-box {
  flex: 1;
  min-width: 280px;
  display: flex;
  align-items: center;
  background: var(--ivory);
  border: 1px solid var(--deep);
  padding: 0.65rem 1rem;
  gap: 0.65rem;
}

.search-box input {
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  color: var(--aub);
  width: 100%;
  outline: none;
}

.sort-select-wrapper {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--aub);
}

.sort-select {
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--deep);
  background: #ffffff;
  color: var(--aub);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.filter-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
}

.filter-category-label {
  font: 600 0.8rem/1 var(--serif);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ox);
  margin-right: 0.4rem;
}

.filter-pill {
  background: #ffffff;
  border: 1px solid var(--deep);
  color: var(--aub);
  padding: 0.35rem 0.9rem;
  font: 500 0.82rem var(--sans);
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.filter-pill:hover {
  background: var(--champ);
  border-color: var(--gold);
}

.filter-pill.active {
  background: var(--ox);
  color: var(--champ);
  border-color: var(--gold);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(74, 15, 34, 0.3);
}

/* Results Bar */
.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.results-count b {
  color: var(--aub);
  font-weight: 700;
}

/* Dolls Catalog Grid */
.dolls-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 1150px) {
  .dolls-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 850px) {
  .dolls-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .dolls-grid {
    grid-template-columns: 1fr;
  }
}

/* Doll Card - Fine Framed Plate */
.doll-card {
  background: #ffffff;
  border: 1px solid var(--gold);
  position: relative;
  padding: 12px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.doll-card::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(201, 162, 75, 0.45);
  pointer-events: none;
  z-index: 3;
}

.doll-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: radial-gradient(circle at 50% 35%, #3a1a33, var(--aub) 75%);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.card-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.doll-card:hover .card-image-wrap img {
  transform: scale(1.03);
}

.card-badges {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  z-index: 4;
}

.badge {
  display: inline-flex;
  align-items: center;
  font: 600 0.68rem/1 var(--serif);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--gold);
}

.badge-nrfb {
  background: var(--ox);
  color: var(--champ);
}

.badge-year {
  background: var(--aub);
  color: var(--champ);
}

.badge-rarity {
  background: #361026;
  color: var(--champ);
}

.photo-count-pill {
  position: absolute;
  bottom: 0.65rem;
  right: 0.65rem;
  background: rgba(30, 14, 27, 0.88);
  color: var(--champ);
  border: 1px solid var(--gold);
  font: 500 0.7rem var(--sans);
  padding: 0.2rem 0.55rem;
  z-index: 4;
}

.card-body {
  padding: 1rem 0 0.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 600 0.76rem var(--serif);
  letter-spacing: 0.08em;
  color: var(--ox);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.card-title {
  font: 700 1.25rem/1.25 var(--serif);
  color: var(--aub);
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-collection {
  font: italic 500 0.95rem/1.3 var(--serif);
  color: var(--ox);
  margin-bottom: 0.75rem;
}

.card-footer {
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid var(--gold);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.card-price-group {
  display: flex;
  flex-direction: column;
}

.price-label {
  font: 500 0.7rem var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6a5864;
}

.price-val {
  font: 600 1.45rem/1 var(--serif);
  color: var(--aub);
}

.card-action-btn {
  font: 700 0.85rem var(--serif);
  letter-spacing: 0.06em;
  background: transparent;
  color: var(--aub);
  border: 1px solid var(--deep);
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.doll-card:hover .card-action-btn {
  background: var(--gold);
  color: var(--aub);
}

/* Export Toolbar */
.export-toolbar {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gold);
}

.btn-tool {
  font: 700 0.95rem var(--serif);
  letter-spacing: 0.06em;
  background: #ffffff;
  color: var(--aub);
  border: 1px solid var(--deep);
  padding: 0.65rem 1.4rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition);
}

.btn-tool:hover {
  background: var(--gold);
  color: var(--aub);
}

/* Modal Window */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(30, 14, 27, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}

.modal-overlay.active {
  display: flex;
}

.modal-window {
  background: var(--ivory);
  border: 1px solid var(--gold);
  position: relative;
  max-width: 1080px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  display: grid;
  grid-template-columns: 1fr 1fr;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-window::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(201, 162, 75, 0.4);
  pointer-events: none;
  z-index: 5;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 900px) {
  .modal-window {
    grid-template-columns: 1fr;
  }
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  background: var(--aub);
  color: var(--champ);
  border: 1px solid var(--gold);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--ox);
  color: #ffffff;
}

.modal-gallery-col {
  padding: 2.25rem;
  background: #140812;
  border-right: 1px solid var(--gold);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.modal-main-img-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: radial-gradient(circle at 50% 35%, #3a1a33, var(--aub) 75%);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--gold);
}

.modal-main-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-view-label {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: var(--aub);
  color: var(--champ);
  border: 1px solid var(--gold);
  padding: 0.25rem 0.75rem;
  font: 600 0.75rem var(--serif);
  letter-spacing: 0.08em;
}

.modal-thumbs-row {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
}

.modal-thumb {
  width: 68px;
  height: 90px;
  background: #000000;
  border: 1px solid var(--deep);
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.7;
  transition: var(--transition);
  position: relative;
}

.modal-thumb:hover, .modal-thumb.active {
  opacity: 1;
  border-color: var(--gold);
  box-shadow: 0 0 10px var(--gold-glow);
}

.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-details-col {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--ivory);
}

.modal-header-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.modal-title {
  font: 700 1.85rem/1.2 var(--serif);
  color: var(--aub);
  margin-bottom: 0.25rem;
}

.modal-subtitle {
  font: italic 500 1.05rem var(--serif);
  color: var(--ox);
  margin-bottom: 1.25rem;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.specs-table td {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.specs-table td.label {
  color: var(--ox);
  font: italic 500 0.95rem var(--serif);
  width: 40%;
}

.specs-table td.value {
  color: var(--aub);
  font-weight: 500;
}

.detail-section-title {
  font: 700 0.85rem var(--serif);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--deep);
  margin: 1.1rem 0 0.35rem;
}

.provenance-text {
  font-size: 0.94rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 1rem;
}

/* Condition Report Box */
.condition-report-box {
  background: #ffffff;
  border: 1px solid var(--gold);
  padding: 1.25rem;
  position: relative;
  margin-bottom: 1.1rem;
}

.condition-report-box::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(201, 162, 75, 0.35);
  pointer-events: none;
}

.condition-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.condition-grade-badge {
  background: var(--ox);
  color: var(--champ);
  border: 1px solid var(--gold);
  font: 600 0.72rem/1 var(--serif);
  letter-spacing: 0.08em;
  padding: 0.25rem 0.55rem;
  text-transform: uppercase;
}

.condition-details-list {
  list-style: none;
  font-size: 0.9rem;
  line-height: 1.6;
}

.condition-details-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.3rem;
  color: var(--text-body);
}

.condition-details-list li::before {
  content: "♦";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.75rem;
}

/* Pricing Action Box */
.pricing-action-box {
  background: #ffffff;
  border: 1px solid var(--gold);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 1.25rem;
  position: relative;
}

.pricing-action-box::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(201, 162, 75, 0.35);
  pointer-events: none;
}

.pricing-amounts .price-label {
  font: 500 0.72rem var(--sans);
  text-transform: uppercase;
  color: #6a5864;
}

.pricing-amounts .ask-price {
  font: 700 2rem/1.1 var(--serif);
  color: var(--aub);
}

.pricing-amounts .est-val {
  font-size: 0.85rem;
  color: var(--ox);
  font-style: italic;
}

.btn-inquire {
  background: var(--gold);
  color: var(--aub);
  font: 700 1rem var(--serif);
  letter-spacing: 0.06em;
  padding: 0.85rem 1.65rem;
  border: 1px solid var(--deep);
  cursor: pointer;
  transition: var(--transition);
}

.btn-inquire:hover {
  background: var(--champ);
}

/* Wishlist tags & Matched Buyers */
.matched-buyers-preview {
  background: #ffffff;
  border: 1px solid var(--gold);
  padding: 1rem;
  margin-bottom: 1rem;
  position: relative;
}

.matched-buyers-title {
  font: 700 0.85rem var(--serif);
  color: var(--ox);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.wishlist-tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  background: var(--ivory);
  border: 1px solid var(--deep);
  color: var(--aub);
  font-size: 0.78rem;
  margin: 0.2rem;
}

.wishlist-tag.match {
  background: var(--ox);
  color: var(--champ);
  border-color: var(--gold);
}

/* Buyers Grid & Directory */
.buyers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.75rem;
  margin-bottom: 4rem;
}

.buyer-card {
  background: #ffffff;
  border: 1px solid var(--gold);
  position: relative;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.buyer-card::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(201, 162, 75, 0.45);
  pointer-events: none;
}

.buyer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.buyer-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.buyer-avatar {
  width: 48px;
  height: 48px;
  background: var(--aub);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--champ);
}

.buyer-title-info h3 {
  font: 700 1.35rem/1.2 var(--serif);
  color: var(--aub);
}

.buyer-org {
  font: italic 500 0.92rem var(--serif);
  color: var(--ox);
}

.buyer-badge {
  display: inline-block;
  background: var(--ox);
  color: var(--champ);
  border: 1px solid var(--gold);
  font: 600 0.72rem/1 var(--serif);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  margin-bottom: 0.85rem;
}

.buyer-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  background: var(--ivory);
  border: 1px solid var(--border-subtle);
  padding: 0.85rem;
  margin-bottom: 1.1rem;
}

.buyer-meta-item .label {
  font-size: 0.72rem;
  color: #6a5864;
  text-transform: uppercase;
}

.buyer-meta-item .value {
  font: 600 0.92rem var(--serif);
  color: var(--aub);
}

.buyer-wishlist {
  margin-bottom: 1.1rem;
}

.wishlist-title {
  font: 700 0.82rem var(--serif);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ox);
  margin-bottom: 0.4rem;
}

.btn-contact-buyer {
  display: block;
  text-align: center;
  background: var(--gold);
  color: var(--aub);
  border: 1px solid var(--deep);
  padding: 0.65rem 1.2rem;
  font: 700 0.92rem var(--serif);
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: var(--transition);
}

.btn-contact-buyer:hover {
  background: var(--champ);
}

/* Intake Form Section */
.intake-section {
  background: #ffffff;
  border: 1px solid var(--gold);
  position: relative;
  padding: clamp(2rem, 5vw, 3.5rem);
  margin: 3rem 0;
  box-shadow: var(--shadow-md);
}

.intake-section::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(201, 162, 75, 0.4);
  pointer-events: none;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 840px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font: 600 0.88rem var(--serif);
  color: var(--aub);
  letter-spacing: 0.04em;
}

.form-group input, .form-group select, .form-group textarea {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--deep);
  background: var(--ivory);
  color: var(--aub);
  font: inherit;
  font-size: 0.95rem;
  border-radius: 0;
}

.btn-submit-offer {
  background: var(--gold);
  color: var(--aub);
  border: 1px solid var(--deep);
  padding: 0.85rem 2rem;
  font: 700 1.05rem var(--serif);
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: var(--transition);
  justify-self: start;
}

.btn-submit-offer:hover {
  background: var(--champ);
}

/* Site Footer */
footer.site {
  background: var(--aub);
  color: #cdbfa6;
  padding: 3.5rem 1.5rem 2.5rem;
  border-top: 1px solid var(--gold);
  font-size: 0.92rem;
}

footer.site .top {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  max-width: 1360px;
  margin: 0 auto 2rem;
}

footer.site h4 {
  font: 700 1.2rem var(--serif);
  color: var(--champ);
  margin-bottom: 0.5rem;
  letter-spacing: 0.08em;
}

footer.site ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

footer.site ul a {
  color: var(--champ);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

footer.site ul a:hover {
  border-color: var(--gold);
}

.refs {
  border-top: 1px solid rgba(201, 162, 75, 0.35);
  padding-top: 1.2rem;
  font-size: 0.85rem;
  max-width: 1360px;
  margin: 0 auto;
}

.refs p {
  padding-left: 2rem;
  text-indent: -2rem;
  margin: 0.3rem 0;
}

.copy {
  margin-top: 1.2rem;
  color: var(--champ);
  text-align: center;
}
