/* Avinature Refurb Hub — British Racing Green & Warm Ivory Editorial Architecture */
:root {
  --bg-ivory: #faf9f5;
  --bg-linen: #f2efe6;
  --bg-card: #ffffff;
  --green-deep: #0e3b21;
  --green-racing: #14532d;
  --green-mid: #166534;
  --green-tint: #eaf2ec;
  --brass: #a17a32;
  --brass-soft: #f7f1e3;
  --ink: #1c1f1d;
  --ink-muted: #525954;
  --rule: #dcd7ca;
  --serif: 'Georgia', 'Palatino Linotype', 'Book Antiqua', serif;
  --sans: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Consolas', 'Courier New', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg-ivory);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 28px; }

/* Top Compliance Ribbon */
.compliance-ribbon {
  background: var(--green-deep);
  color: #f3f1e8;
  font-size: 11.5px;
  letter-spacing: 0.015em;
  padding: 9px 0;
  border-bottom: 2px solid var(--brass);
}
.ribbon-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.ribbon-left { display: flex; gap: 12px; align-items: center; flex-wrap: nowrap; }
.ribbon-tag {
  background: rgba(250, 249, 245, 0.12);
  border: 1px solid rgba(197, 160, 89, 0.45);
  padding: 2px 9px;
  border-radius: 3px;
  font-weight: 600;
  color: #f7e9c6;
}

/* Header & Navigation */
.site-header {
  background: var(--bg-ivory);
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.brand-lockup { display: flex; align-items: center; gap: 14px; }
.brand-crest {
  width: 44px;
  height: 44px;
  background: var(--green-racing);
  color: var(--bg-ivory);
  border: 2px solid var(--brass);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.04em;
}
.brand-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--green-deep);
  letter-spacing: -0.01em;
}
.brand-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-muted);
  font-weight: 600;
}
.nav-links { display: flex; gap: 10px; align-items: center; }
.nav-link {
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  border: 1px solid transparent;
}
.nav-link:hover { color: var(--green-racing); background: var(--bg-linen); }
.nav-link.active {
  background: var(--green-racing);
  color: #ffffff;
}
.header-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--green-racing);
  background: var(--green-tint);
  border: 1px solid #b9d5c2;
  padding: 6px 12px;
  border-radius: 4px;
}

/* Asymmetric Editorial Hero */
.hero-section { padding: 42px 0 32px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.38fr 0.92fr;
  gap: 34px;
  align-items: stretch;
}
.hero-editorial {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 12px;
}
.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--brass);
  margin-bottom: 14px;
}
.hero-title {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1.14;
  color: var(--green-deep);
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.hero-lead {
  font-size: 16.5px;
  color: var(--ink-muted);
  margin-bottom: 24px;
  max-width: 640px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.btn-primary {
  background: var(--green-racing);
  color: #ffffff;
  padding: 13px 22px;
  border-radius: 5px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid var(--green-racing);
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--green-racing);
  padding: 13px 22px;
  border-radius: 5px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1.5px solid var(--green-racing);
}
.hero-footnote {
  font-size: 13px;
  color: var(--ink-muted);
  border-left: 3px solid var(--brass);
  padding-left: 12px;
}

/* Merchant Dossier Card */
.dossier-card {
  background: var(--bg-linen);
  border: 1px solid var(--rule);
  border-top: 5px solid var(--green-racing);
  border-radius: 6px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.dossier-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.dossier-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--green-deep);
}
.dossier-badge {
  background: var(--brass-soft);
  color: #7c5b1b;
  border: 1px solid #d9bf86;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dossier-rows { display: flex; flex-direction: column; gap: 11px; }
.dossier-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dashed #d3cebf;
  padding-bottom: 9px;
  font-size: 13.5px;
}
.dossier-row:last-child { border-bottom: none; padding-bottom: 0; }
.dossier-lbl { color: var(--ink-muted); font-weight: 500; }
.dossier-val { font-weight: 700; color: var(--green-deep); font-variant-numeric: tabular-nums; text-align: right; }

/* Trust Verification Strip */
.trust-strip {
  background: var(--bg-linen);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 16px 0;
  margin-bottom: 34px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.trust-item {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 11px 14px;
}
.trust-item-title { font-size: 12.5px; font-weight: 700; color: var(--green-racing); }
.trust-item-sub { font-size: 11.5px; color: var(--ink-muted); margin-top: 2px; }

/* Section Headers & Product Cards */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 12px;
}
.section-title {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--green-deep);
  font-weight: 700;
}
.section-sub { font-size: 13.5px; color: var(--ink-muted); margin-top: 3px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-img-box {
  position: relative;
  background: #ffffff;
  height: 220px;
  padding: 16px;
  border-bottom: 1px solid #edeae0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.badge-grade {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--green-racing);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
}
.badge-stock {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--brass-soft);
  color: #7c5b1b;
  border: 1px solid #d9bf86;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
}
.product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-sku { font-family: var(--mono); font-size: 11px; color: var(--ink-muted); }
.product-name { font-family: var(--serif); font-size: 16.5px; font-weight: 700; color: var(--green-deep); }
.product-spec { font-size: 12.5px; color: var(--ink-muted); }
.product-qa {
  font-size: 11.5px;
  color: var(--green-mid);
  background: var(--green-tint);
  padding: 4px 8px;
  border-radius: 3px;
  font-weight: 600;
  margin-top: 2px;
}
.product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #efece4;
}
.product-price { font-size: 19px; font-weight: 700; color: var(--green-deep); font-variant-numeric: tabular-nums; }
.product-was { font-size: 12.5px; color: #8c918d; text-decoration: line-through; }

/* Reviews & Rating Histogram */
.page-banner {
  background: var(--bg-linen);
  border: 1px solid var(--rule);
  border-left: 6px solid var(--green-racing);
  border-radius: 6px;
  padding: 24px 28px;
  margin: 28px 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 26px;
}
.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--green-racing);
  border-radius: 6px;
  padding: 18px 20px;
}
.kpi-lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); font-weight: 700; }
.kpi-num { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--green-deep); margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.kpi-note { font-size: 12.5px; color: var(--green-mid); font-weight: 600; }

.reviews-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: 24px;
  margin-bottom: 42px;
}
.histogram-box {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 24px;
}
.hist-row {
  display: grid;
  grid-template-columns: 54px 1fr 48px;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
}
.hist-bar-bg { height: 10px; background: #ece8dc; border-radius: 5px; overflow: hidden; }
.hist-bar-fill { height: 100%; background: var(--green-racing); border-radius: 5px; }
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 20px 22px;
}
.review-stars { color: #16a34a; font-size: 14px; font-weight: 700; letter-spacing: 1px; }
.review-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.review-title { font-family: var(--serif); font-size: 15.5px; font-weight: 700; color: var(--green-deep); margin-bottom: 6px; }
.review-body { font-size: 13px; color: var(--ink-muted); margin-bottom: 10px; }
.review-meta { font-size: 11.5px; color: #6c736e; font-weight: 600; }

/* Sales Ledger & Chart */
.ledger-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  margin-bottom: 28px;
}
.panel-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 22px 24px;
}
.panel-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
table.audit-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.audit-table th {
  text-align: left;
  background: var(--bg-linen);
  color: var(--green-deep);
  padding: 10px 12px;
  border-bottom: 2px solid var(--green-racing);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
table.audit-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #ebe7dc;
  font-variant-numeric: tabular-nums;
}
table.audit-table tr.total-row td {
  background: var(--green-tint);
  font-weight: 700;
  color: var(--green-deep);
  border-top: 2px solid var(--green-racing);
}

.bar-row { margin-bottom: 16px; }
.bar-label-line { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.bar-track { height: 22px; background: #ece8dc; border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--green-deep), var(--green-mid)); }

/* Corporate Footer */
.site-footer {
  background: var(--green-deep);
  color: #e6e3d8;
  padding: 28px 0 24px;
  border-top: 3px solid var(--brass);
  font-size: 12.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.1fr;
  gap: 28px;
}
.footer-h {
  font-family: var(--serif);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}
.footer-p { color: #cbd5cd; line-height: 1.65; }
.footer-links { display: flex; flex-direction: column; gap: 5px; }
.footer-links a { color: #e2e8e4; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #b4c2b8;
}
/* Extra Editorial Compliance Sections (Balanced Page Depth) */
.standards-band {
  background: var(--bg-linen);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 26px 28px;
  margin-bottom: 34px;
}
.standards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 18px;
}
.standard-box {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--brass);
  border-radius: 5px;
  padding: 18px 20px;
}
.standard-box h3 {
  font-family: var(--serif);
  font-size: 16.5px;
  color: var(--green-deep);
  margin-bottom: 8px;
}
.standard-box p { font-size: 13px; color: var(--ink-muted); line-height: 1.55; }
.channel-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 34px;
}
.channel-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--green-racing);
  border-radius: 5px;
  padding: 18px 20px;
}
.channel-card h4 {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--green-deep);
  margin-bottom: 6px;
}
.channel-card p { font-size: 13px; color: var(--ink-muted); line-height: 1.5; }
