/* ==========================================================================
   LUXURY DESIGN SYSTEM — Sure Holdings | Invest Into Wine
   Institutional-grade fine wine investment portal
   Loads after redesign.css — overrides and extends
   ========================================================================== */

/* --- 1. BRAND TOKENS --- */
:root {
  /* Backgrounds */
  --cream-antique: #FDFBF7;
  --cream-warm: #F8F5F0;
  --cream-card: #FAF8F4;
  --obsidian: #111827;
  --obsidian-soft: #1F2937;

  /* Primary Accents */
  --sovereign-gold: #D4AF37;
  --sovereign-gold-light: #E8D48B;
  --sovereign-gold-dark: #B8962A;
  --vineyard-burgundy: #4A0E17;
  --vineyard-burgundy-light: #6B1D2A;

  /* Heritage Palette */
  --parchment: #EDE7D9;
  --seal-wax: #8B1C1C;
  --trophy-brass: #A68B3C;
  --cellar-grey: #78716C;
  --marble-white: #F9F7F4;

  /* Financial States */
  --ask-green: #065F46;
  --bid-red: #991B1B;
  --spotlight: rgba(212, 175, 55, 0.08);
  --gold-border: rgba(212, 175, 55, 0.25);
}

/* --- 2. GLOBAL LAYOUT OVERRIDES --- */
/* GHOST SIDEBAR FIX: Constrain viewport width without blocking scroll */
html, body {
  max-width: 100vw !important;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--cream-antique);
  color: var(--obsidian);
}

/* Page wrapper — cream canvas */
.page-wrapper {
  background-color: var(--cream-antique);
}

/* Main content area — subtle cream warmth */
.page-main {
  background-color: var(--cream-antique);
}

/* Column main — card-like content zone */
.column.main {
  background-color: var(--cream-card);
  border-radius: 16px;
  padding: 2.4rem;
  border: 1px solid var(--parchment);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* --- 3. TYPOGRAPHY REFINEMENTS --- */
/* Editorial headings — Playfair Display with gold accent */
h1.page-title,
.cms-page-view .page-title-wrapper h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 3.6rem;
  letter-spacing: -0.02em;
  color: var(--obsidian);
  position: relative;
  padding-bottom: 1.2rem;
  margin-bottom: 2.4rem;
}

h1.page-title::after,
.cms-page-view .page-title-wrapper h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--sovereign-gold), rgba(212, 175, 55, 0.1));
  border-radius: 2px;
}

/* Data & financial numbers — Inter with tabular numbers */
.financial-data,
.price,
.amount,
.currency-value,
.metric-value,
.holdings-value {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* Section headings — editorial serif */
h2.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 2.8rem;
  color: var(--obsidian);
  margin-bottom: 0.8rem;
}

h2.section-title .gold-accent {
  color: var(--sovereign-gold);
}

.section-subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--cellar-grey);
  margin-bottom: 3.2rem;
}

/* Small caps for metadata */
.meta-label,
.prov-label,
.asset-label {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cellar-grey);
}

/* --- 4. DASHBOARD LAYOUT --- */
.luxury-dashboard {
  max-width: 1280px;
  margin: 0 auto;
}

/* Dashboard tab navigation */
.dashboard-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--parchment);
  margin-bottom: 3.2rem;
  background: var(--cream-card);
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

.dashboard-tab {
  flex: 1;
  text-align: center;
  padding: 1.6rem 2.4rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--cellar-grey);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  background: transparent;
  position: relative;
  text-decoration: none;
}

.dashboard-tab:hover {
  color: var(--obsidian);
  background: var(--spotlight);
}

.dashboard-tab.active {
  color: var(--vineyard-burgundy);
  font-weight: 600;
}

.dashboard-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 10%;
  width: 80%;
  height: 2px;
  background: var(--sovereign-gold);
  border-radius: 2px;
}

.dashboard-tab .tab-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.4rem;
  color: var(--sovereign-gold);
}

.dashboard-tab .tab-label {
  display: block;
}

/* --- 5. INVESTOR DASHBOARD --- */
.investor-dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
}

.investor-portfolio-summary {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--obsidian), var(--obsidian-soft));
  border-radius: 16px;
  padding: 3.2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.investor-portfolio-summary::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08), transparent 70%);
  border-radius: 50%;
}

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2.4rem;
}

.portfolio-header h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 2rem;
  color: #fff;
  margin: 0;
}

.portfolio-total-value {
  font-family: 'Inter', sans-serif;
  font-variant-numeric: tabular-nums;
}

.portfolio-total-value .value-label {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.4rem;
}

.portfolio-total-value .value-amount {
  font-size: 3.6rem;
  font-weight: 700;
  color: var(--sovereign-gold);
  letter-spacing: -0.02em;
}

.portfolio-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
  margin-top: 2.4rem;
}

.metric-card {
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1.6rem;
  border: 1px solid rgba(255,255,255,0.08);
}

.metric-card .metric-label {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

.metric-card .metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.metric-card .metric-change.positive {
  color: #34D399;
  font-size: 1.2rem;
  font-weight: 500;
}

.metric-card .metric-change.negative {
  color: #F87171;
  font-size: 1.2rem;
  font-weight: 500;
}

/* Holdings table */
.holdings-table {
  grid-column: 1 / -1;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--parchment);
  overflow: hidden;
}

.holdings-table-header {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 1fr 1fr 1fr;
  padding: 1.6rem 2.4rem;
  background: var(--cream-warm);
  border-bottom: 1px solid var(--parchment);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cellar-grey);
}

.holdings-row {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 1fr 1fr 1fr;
  padding: 1.4rem 2.4rem;
  border-bottom: 1px solid var(--parchment);
  font-size: 1.3rem;
  transition: background 0.2s;
  align-items: center;
}

.holdings-row:hover {
  background: var(--spotlight);
}

.holdings-row:last-child {
  border-bottom: none;
}

.holdings-row .wine-name {
  font-weight: 500;
  color: var(--obsidian);
}

.holdings-row .wine-vintage {
  color: var(--cellar-grey);
}

.holdings-row .holdings-gain.positive {
  color: var(--ask-green);
}

.holdings-row .holdings-gain.negative {
  color: var(--bid-red);
}

/* Performance chart area placeholder */
.performance-chart {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--parchment);
  padding: 2.4rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.performance-chart .chart-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--obsidian);
  margin-bottom: 0.8rem;
}

.performance-chart .chart-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(180deg, var(--cream-warm) 0%, var(--cream-antique) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cellar-grey);
  font-size: 1.2rem;
  border: 1px dashed var(--parchment);
}

/* --- 5b. PRIVATE BANKING INVESTOR DASHBOARD OVERRIDE --- */
/* Replaces the legacy investor-dashboard with sovereign wealth UI */
.private-banking-dashboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.4rem;
  max-width: 1280px;
  margin: 0 auto;
}

/* ---------- 5b-i. SOVEREIGN PORTFOLIO HERO ---------- */
.wealth-hero {
  background: #FFFFFF;
  border: 1px solid #EDE7D9;
  border-radius: 16px;
  padding: 3.2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.wealth-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2.4rem;
}

.wealth-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.4rem;
}

.wealth-hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  color: #6B7280;
  margin: 0;
}

.wealth-hero-valuation {
  text-align: right;
}

.valuation-label {
  display: block;
  font-size: 1.1rem;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.valuation-amount {
  font-size: 4rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.wealth-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  border-top: 1px solid #EDE7D9;
  padding-top: 2.4rem;
}

.wealth-metric {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.wealth-metric-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F9FAFB;
  border: 1px solid #EDE7D9;
  border-radius: 8px;
  font-size: 1.8rem;
  color: #D4AF37;
}

.wealth-metric-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.wealth-metric-label {
  font-size: 1.1rem;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wealth-metric-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #111827;
  font-variant-numeric: tabular-nums;
}

.wealth-metric-value.yield-positive {
  color: #064E3B;
}

/* ---------- 5b-ii. CAPITAL COMMAND CENTER ---------- */
.capital-command {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.capital-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 44px;
  min-width: 44px;
  padding: 1.2rem 1.6rem;
  border: 1px solid #EDE7D9;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #FFFFFF;
  color: #111827;
  white-space: nowrap;
}

.capital-btn i {
  font-size: 1.4rem;
}

.capital-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.capital-btn:active {
  transform: translateY(0);
}

.capital-btn-liquidate {
  border-color: #FCA5A5;
  color: #991B1B;
}
.capital-btn-liquidate:hover {
  background: #FEF2F2;
  border-color: #F87171;
}

.capital-btn-reinvest {
  border-color: #D4AF37;
  color: #111827;
}
.capital-btn-reinvest:hover {
  background: #FFFBEB;
  border-color: #C9A44A;
}

.capital-btn-storage {
  border-color: #93C5FD;
  color: #1E3A5F;
}
.capital-btn-storage:hover {
  background: #EFF6FF;
  border-color: #60A5FA;
}

/* ---------- 5b-iii. PERFORMANCE CHART ---------- */
.wealth-chart {
  background: #FFFFFF;
  border: 1px solid #EDE7D9;
  border-radius: 12px;
  padding: 2.4rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.wealth-chart-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.4rem;
}

.wealth-chart-subtitle {
  font-size: 1.2rem;
  color: #6B7280;
  margin: 0 0 1.6rem;
}

.wealth-chart-body {
  width: 100%;
  min-height: 200px;
  background: linear-gradient(180deg, #F9FAFB 0%, #FDFBF7 100%);
  border: 1px dashed #EDE7D9;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wealth-chart-skeleton {
  color: #9CA3AF;
  font-size: 1.2rem;
}

/* ---------- 5b-iv. PROVENANCE HOLDINGS LEDGER ---------- */
.provenance-ledger {
  background: #FFFFFF;
  border: 1px solid #EDE7D9;
  border-radius: 12px;
  overflow: hidden;
}

.ledger-header {
  padding: 1.6rem 2.4rem;
  border-bottom: 1px solid #EDE7D9;
  background: #F9FAFB;
}

.ledger-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

/* Desktop table */
.ledger-table-wrapper {
  overflow-x: auto;
}

.ledger-table {
  width: 100%;
  border-collapse: collapse;
}

.ledger-table thead th {
  padding: 1.2rem 2.4rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6B7280;
  background: #F9FAFB;
  border-bottom: 1px solid #EDE7D9;
  text-align: left;
  white-space: nowrap;
}

.ledger-table tbody td {
  padding: 1.4rem 2.4rem;
  font-size: 1.3rem;
  color: #111827;
  border-bottom: 1px solid #F3F4F6;
}

.ledger-table tbody tr:last-child td {
  border-bottom: none;
}

.ledger-table tbody tr:hover {
  background: #FFFBEB;
}

.ledger-empty td {
  padding: 3.2rem 2.4rem;
}

.ledger-empty-state {
  text-align: center;
  color: #9CA3AF;
}

.ledger-empty-state i {
  font-size: 2.4rem;
  margin-bottom: 1.2rem;
  display: block;
  color: #D4AF37;
}

.ledger-empty-state p {
  font-size: 1.3rem;
  margin: 0 0 1.6rem;
}

/* Mobile cards (hidden on desktop) */
.ledger-cards {
  display: none;
}

.ledger-card-empty {
  display: none;
}

/* ---------- 5b-v. LIQUIDATION MODAL ---------- */
.liquidate-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
}

.liquidate-modal {
  background: #FFFFFF;
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  padding: 3.2rem;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.15);
}

.liquidate-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.6rem;
  background: none;
  border: none;
  font-size: 2.4rem;
  cursor: pointer;
  color: #6B7280;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.liquidate-modal-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.4rem;
}

.liquidate-modal-subtitle {
  font-size: 1.2rem;
  color: #6B7280;
  margin: 0 0 2.4rem;
}

.liquidate-bidask {
  background: #F9FAFB;
  border: 1px solid #EDE7D9;
  border-radius: 8px;
  padding: 1.6rem;
  margin-bottom: 2.4rem;
}

.liquidate-bidask-header {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6B7280;
  margin-bottom: 1.2rem;
}

.liquidate-bidask-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  font-size: 1.3rem;
}

.liquidate-bidask-row .bid-value {
  font-weight: 700;
  color: #059669;
}

.liquidate-bidask-row .ask-value {
  font-weight: 700;
  color: #DC2626;
}

.liquidate-field {
  margin-bottom: 1.6rem;
}

.liquidate-field label {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.4rem;
}

.liquidate-field select,
.liquidate-field input {
  width: 100%;
  padding: 0.8rem 1.2rem;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 1.3rem;
  font-family: 'Inter', sans-serif;
  color: #111827;
  background: #FFFFFF;
  box-sizing: border-box;
  min-height: 44px;
}

.liquidate-field select:focus,
.liquidate-field input:focus {
  outline: none;
  border-color: #D4AF37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.liquidate-field input:disabled,
.liquidate-field select:disabled {
  background: #F9FAFB;
  color: #9CA3AF;
  cursor: not-allowed;
}

/* ---------- 5b-vi. MOBILE RESPONSIVE OVERRIDES ---------- */
@media (max-width: 767px) {
  .wealth-hero-top {
    flex-direction: column;
    gap: 1.6rem;
  }
  .wealth-hero-valuation {
    text-align: left;
  }
  .valuation-amount {
    font-size: 2.8rem;
  }
  .wealth-hero-metrics {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .capital-command {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .capital-btn {
    white-space: normal;
    text-align: left;
    padding: 1.2rem;
  }
  /* Desktop table hidden on mobile */
  .ledger-table-wrapper {
    display: none;
  }
  /* Mobile cards visible */
  .ledger-cards {
    display: block;
    padding: 1.6rem;
  }
  .ledger-card-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 2.4rem;
    color: #9CA3AF;
    font-size: 1.2rem;
  }
  .ledger-card-empty i {
    font-size: 2.4rem;
    color: #D4AF37;
  }
  .liquidate-modal {
    padding: 2.4rem 1.6rem;
    margin: 1rem;
  }
}

/* --- 6. MERCHANT/BUYER PANEL --- */
.merchant-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
}

.order-book {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--parchment);
  overflow: hidden;
}

.order-book-header {
  padding: 1.6rem 2.4rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  border-bottom: 1px solid var(--parchment);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-book-header .book-type {
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.order-book-header .book-type.bids {
  background: rgba(153, 27, 27, 0.08);
  color: var(--bid-red);
}

.order-book-header .book-type.asks {
  background: rgba(6, 95, 70, 0.08);
  color: var(--ask-green);
}

.bid-ask-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 1.2rem 2.4rem;
  border-bottom: 1px solid var(--parchment);
  font-size: 1.3rem;
  align-items: center;
}

.bid-ask-row:hover {
  background: var(--spotlight);
}

.bid-ask-row .price-cell {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.bid-ask-row .price-cell.bid {
  color: var(--bid-red);
}

.bid-ask-row .price-cell.ask {
  color: var(--ask-green);
}

.trade-execution-panel {
  grid-column: 1 / -1;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--parchment);
  padding: 2.4rem;
}

.trade-execution-panel h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 1.6rem;
}

.trade-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 1.6rem;
  align-items: end;
}

.trade-form-group label {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cellar-grey);
  margin-bottom: 0.6rem;
}

.trade-form-group input,
.trade-form-group select {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 1px solid var(--parchment);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  color: var(--obsidian);
  background: var(--marble-white);
  transition: border-color 0.2s;
}

.trade-form-group input:focus,
.trade-form-group select:focus {
  outline: none;
  border-color: var(--sovereign-gold);
  box-shadow: 0 0 0 3px var(--spotlight);
}

/* --- 7. SUPPLIER INTERFACE --- */
.supplier-interface {
  max-width: 800px;
  margin: 0 auto;
}

.supplier-interface .supplier-header {
  text-align: center;
  margin-bottom: 3.2rem;
}

.supplier-interface .supplier-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  margin: 0 0 0.8rem;
}

.inventory-verification-form {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--parchment);
  padding: 3.2rem;
}

.inventory-verification-form .form-section {
  margin-bottom: 2.4rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid var(--parchment);
}

.inventory-verification-form .form-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.inventory-verification-form .form-section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 1.6rem;
  color: var(--obsidian);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  margin-bottom: 1.6rem;
}

.form-row.full {
  grid-template-columns: 1fr;
}

.form-row.triple {
  grid-template-columns: 1fr 1fr 1fr;
}

/* --- 8. PDP — FINE WINE ASSET SNAPSHOT --- */
.wine-asset-snapshot {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--parchment);
  overflow: hidden;
  margin-bottom: 2.4rem;
}

.asset-snapshot-header {
  background: linear-gradient(135deg, var(--obsidian), var(--obsidian-soft));
  padding: 2rem 2.4rem;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.asset-snapshot-header h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.6rem;
  margin: 0;
  color: var(--sovereign-gold);
}

.asset-snapshot-header .asset-badge {
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(212, 175, 55, 0.15);
  color: var(--sovereign-gold-light);
  border: 1px solid var(--gold-border);
}

.asset-scores {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--parchment);
}

.score-cell {
  text-align: center;
  padding: 1.6rem 1.2rem;
  border-right: 1px solid var(--parchment);
}

.score-cell:last-child {
  border-right: none;
}

.score-cell .score-value {
  font-family: 'Inter', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--obsidian);
  line-height: 1.2;
}

.score-cell .score-label {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cellar-grey);
  margin-top: 0.4rem;
}

.asset-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.asset-detail-cell {
  padding: 1.6rem 2.4rem;
  border-bottom: 1px solid var(--parchment);
  border-right: 1px solid var(--parchment);
}

.asset-detail-cell:nth-child(even) {
  border-right: none;
}

.asset-detail-cell:nth-last-child(-n+2) {
  border-bottom: none;
}

.asset-detail-cell .detail-label {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cellar-grey);
  margin-bottom: 0.4rem;
}

.asset-detail-cell .detail-value {
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--obsidian);
}

.asset-detail-cell .detail-value .verified-icon {
  color: var(--ask-green);
  margin-left: 0.5rem;
}

/* Storage validation indicator */
.storage-validation {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 2.4rem;
  background: rgba(6, 95, 70, 0.04);
  border-top: 1px solid var(--parchment);
  font-size: 1.2rem;
  color: var(--ask-green);
}

.storage-validation .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ask-green);
  display: inline-block;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* --- 9. 27-YEAR HERITAGE BAR --- */
.heritage-bar {
  background: linear-gradient(135deg, var(--vineyard-burgundy), #3A0A12);
  border-radius: 12px;
  padding: 2rem 2.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.4rem;
  position: relative;
  overflow: hidden;
}

.heritage-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 40px,
    rgba(212, 175, 55, 0.03) 40px,
    rgba(212, 175, 55, 0.03) 80px
  );
  pointer-events: none;
}

.heritage-bar .heritage-icon {
  font-size: 3.2rem;
  margin-right: 1.6rem;
  flex-shrink: 0;
}

.heritage-bar .heritage-content {
  flex: 1;
}

.heritage-bar .heritage-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--sovereign-gold);
  margin-bottom: 0.4rem;
}

.heritage-bar .heritage-text {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  max-width: 600px;
}

.heritage-bar .heritage-seal {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sovereign-gold-light);
  border: 1px solid var(--gold-border);
  padding: 0.6rem 1.6rem;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* --- 10. PROVENANCE SECTION (Updated) --- */
.provenance-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--parchment);
  overflow: hidden;
  margin-bottom: 2.4rem;
}

.provenance-card .prov-header {
  padding: 1.6rem 2.4rem;
  border-bottom: 1px solid var(--parchment);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--obsidian);
}

.provenance-card .prov-header .prov-icon {
  color: var(--sovereign-gold);
  margin-right: 0.8rem;
}

.provenance-timeline {
  padding: 2.4rem;
}

.prov-timeline-item {
  display: flex;
  gap: 1.6rem;
  padding-bottom: 2rem;
  position: relative;
  padding-left: 3.2rem;
}

.prov-timeline-item::before {
  content: '';
  position: absolute;
  left: 0.4rem;
  top: 0.8rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sovereign-gold);
  border: 2px solid var(--cream-antique);
  z-index: 1;
}

.prov-timeline-item::after {
  content: '';
  position: absolute;
  left: 0.9rem;
  top: 2.4rem;
  bottom: 0;
  width: 1px;
  background: var(--parchment);
}

.prov-timeline-item:last-child::after {
  display: none;
}

.prov-timeline-item .prov-step-label {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sovereign-gold-dark);
  min-width: 80px;
}

.prov-timeline-item .prov-step-detail {
  font-size: 1.3rem;
  color: var(--obsidian);
}

/* --- 11. LUXURY BUTTONS --- */
.luxury-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 2.4rem;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.luxury-btn-primary {
  background: linear-gradient(135deg, var(--sovereign-gold), var(--sovereign-gold-dark));
  color: var(--obsidian);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

.luxury-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.luxury-btn-secondary {
  background: var(--obsidian);
  color: #fff;
}

.luxury-btn-secondary:hover {
  background: var(--obsidian-soft);
  transform: translateY(-1px);
}

.luxury-btn-outline {
  background: transparent;
  color: var(--obsidian);
  border: 1px solid var(--parchment);
}

.luxury-btn-outline:hover {
  border-color: var(--sovereign-gold);
  color: var(--sovereign-gold-dark);
  background: var(--spotlight);
}

/* --- 12. MOBILE HAMBURGER MENU --- */
@media (max-width: 767px) {
  /* Show hamburger icon */
  .menu-open {
    display: block !important;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    color: var(--obsidian, #111827);
    font-size: 2.4rem;
    text-align: center;
    line-height: 44px;
    text-decoration: none;
    background: rgba(255,255,255,0.9);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }

  /* Mobile menu open state - slide-in overlay */
  .menu-main {
    position: fixed !important;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh !important;
    background: var(--cream-antique, #FDFBF7);
    z-index: 99999 !important;
    transition: right 0.3s ease;
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    overflow-y: auto;
    padding: 24px;
    display: block !important;
  }

  .menu-main.open {
    right: 0 !important;
  }

  /* Menu list styling */
  .menu-main__list {
    flex-direction: column !important;
    gap: 0 !important;
    list-style: none;
    padding: 0;
    margin: 48px 0 0;
  }

  .menu-main__item {
    border-bottom: 1px solid var(--parchment, #EDE7D9);
  }

  .menu-main__item a,
  .menu-main__link {
    display: block !important;
    padding: 14px 16px !important;
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--obsidian, #111827) !important;
    text-decoration: none !important;
  }

  .menu-main__item a:hover,
  .menu-main__link:hover {
    background: rgba(212, 175, 55, 0.08);
  }

  /* Dark overlay behind menu */
  body.open-menu::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99998;
  }

  /* Ensure main header is positioned for absolute children */
  .page-header .header.content {
    position: relative;
  }
}

/* --- 13. HERO TYPOGRAPHY CLIP FIX --- */
.home-hero-content h1 {
  padding-left: 4px;
  /* Negative letter-spacing on overflow:hidden container clips leading chars;
     small padding-left gives the initial 'I' breathing room */
}

@media (max-width: 768px) {
  .home-hero-content h1 {
    font-size: 2.8rem;
    padding: 0 8px;
    word-break: break-word;
  }
  .home-hero {
    overflow: hidden; /* keep overflow hidden but content has padding */
  }
}

/* --- 14. RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1024px) {
  .investor-dashboard {
    grid-template-columns: 1fr;
  }

  .portfolio-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .merchant-panel {
    grid-template-columns: 1fr;
  }

  .asset-scores {
    grid-template-columns: repeat(2, 1fr);
  }

  .asset-details-grid {
    grid-template-columns: 1fr;
  }

  .asset-detail-cell:nth-child(even) {
    border-right: 1px solid var(--parchment);
  }

  .heritage-bar {
    flex-direction: column;
    text-align: center;
    gap: 1.2rem;
  }

  .heritage-bar .heritage-text {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .dashboard-tabs {
    flex-direction: column;
    border-radius: 12px;
  }

  .dashboard-tab.active::after {
    width: 40%;
    left: 30%;
  }

  .holdings-table-header,
  .holdings-row {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .trade-form-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-row.triple {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 480px) {
  .portfolio-total-value .value-amount {
    font-size: 2.4rem;
  }

  .portfolio-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .holdings-table-header,
  .holdings-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

/* --- 13. TRANSITION HELPER --- */
.fade-in {
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- 15. BRUTE-FORCE MOBILE OVERFLOW & LAYOUT LOCK --- */
/* Override any hidden desktop extensions causing horizontal drift */
@media (max-width: 767px) {
  html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  .page-wrapper, #maincontent {
    max-width: 100vw !important;
    width: 100vw !important;
    position: relative !important;
  }

  /* ---- 15a. LOGO FIX — maintain aspect ratio ---- */
  .header.content .logo {
    height: auto !important;
    max-height: 48px !important;
    margin: 8px 0 !important;
    flex: 0 0 auto;
  }
  .header.content .logo img {
    height: auto !important;
    max-height: 48px !important;
    width: auto !important;
    object-fit: contain !important;
    /* Brighten logo against dark navy header */
    filter: brightness(1.4) contrast(1.2) !important;
  }

  /* ---- 15b. HEADER GRID — logo left, hamburger right ---- */
  .header.content {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    gap: 8px;
  }

  /* Hamburger: far right */
  .menu-open {
    order: 10 !important;
    position: static !important;
    transform: none !important;
    flex: 0 0 44px;
    margin-left: auto;
  }

  /* Push search icon after logo but before hamburger */
  .header.content .block-search {
    order: 5;
    margin: 0 !important;
    flex: 0 0 auto;
  }
  .header.content .block-search input {
    display: none;
  }
  .header.content .block-search .action.search {
    position: static !important;
    display: block !important;
  }
  .header.content .block-search .action.search:before {
    color: #fff;
    font-size: 1.8rem;
  }

  /* Hide stray GBP text & header links clutter */
  .header.content .switcher-currency,
  .header.content .header.links li:not(.authorization-link),
  .header.content .greet.welcome {
    display: none !important;
  }
  .header.content .header.links {
    gap: 6px !important;
  }
  .header.content .header.links .authorization-link a {
    font-size: 1rem !important;
    padding: 4px 12px !important;
  }
  /* Cart & minicart size */
  .minicart-wrapper {
    margin-left: 4px !important;
  }
  .minicart-wrapper .action.showcart {
    font-size: 1.8rem !important;
  }

  /* ---- 15c. HIDE SOCIAL BAR & CLEAN UP HEADER PANEL ON MOBILE ---- */
  .panel.header .social-icons-list,
  .panel.header .social-icons,
  .header.panel .social-icons-list {
    display: none !important;
  }
  /* Hide currency switcher & welcome text in panel */
  .panel.header .switcher-currency,
  .panel.header .greet.welcome {
    display: none !important;
  }
  /* Keep only essential header links (sign in/account) visible */
  .panel.header .header.links li:not(.authorization-link) {
    display: none !important;
  }
  .panel.header {
    justify-content: flex-end !important;
    min-height: 28px !important;
    height: auto !important;
    padding: 2px 12px !important;
    gap: 4px !important;
  }
  .panel.header .header.links {
    gap: 6px !important;
  }
  .panel.header .header.links a {
    font-size: 1rem !important;
  }
  .panel.header .authorization-link a {
    padding: 2px 10px !important;
    font-size: 0.9rem !important;
  }

  /* ---- 15d. PREMIUM BUTTON SYMMETRY ---- */
  .home-hero-content .hero-ctas .btn-primary,
  .home-hero-content .hero-ctas .btn-secondary {
    font-size: 1.2rem;
    padding: 12px 28px;
    min-width: 160px;
    text-align: center;
  }
  .home-hero-content .hero-ctas .btn-secondary {
    border-width: 2.5px !important;
    background: rgba(255,255,255,0.08) !important;
    backdrop-filter: blur(2px);
    transition: all 0.3s ease;
  }
  .home-hero-content .hero-ctas .btn-secondary:hover {
    background: rgba(255,255,255,0.2) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  }

  /* ---- 15e. PRIVATE BANKING MOBILE FILTER ACTION DOCK ---- */
  /* Hide legacy Magento layout clutter on mobile */
  .catalog-category-view .toolbar-products .modes,
  .catalog-category-view .toolbar-products .toolbar-amount,
  .catalog-category-view .toolbar-products .sorter-action,
  .catalog-category-view .sidebar.sidebar-main .block-content.filter-content {
    display: none !important;
  }
  /* Collapse sidebar — filter-title floats into toolbar dock */
  .catalog-category-view .sidebar.sidebar-main {
    position: absolute !important;
    height: 0 !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    z-index: 10 !important;
  }
  .catalog-category-view .sidebar.sidebar-main .block.filter {
    position: static !important;
    margin: 0 !important;
    height: 0 !important;
    overflow: visible !important;
  }
  .catalog-category-view .block-title.filter-title {
    position: absolute !important;
    left: 10px !important;
    top: 10px !important;
    width: calc(50% - 15px) !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #F9FAFB !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 4px !important;
    padding: 0 12px !important;
    cursor: pointer !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: #111827 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    transition: all 0.2s ease !important;
    z-index: 10 !important;
    box-sizing: border-box !important;
  }
  .catalog-category-view .block-title.filter-title:active {
    background: #EDE7D9 !important;
  }
  /* Active filter gold dot indicator */
  .catalog-category-view .block-title.filter-title[data-count]:not([data-count="0"])::after {
    content: '' !important;
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    width: 8px !important;
    height: 8px !important;
    background: #D4AF37 !important;
    border-radius: 50% !important;
    box-shadow: 0 0 4px rgba(212, 175, 55, 0.5) !important;
  }
  /* Twin-button action dock toolbar */
  .catalog-category-view .toolbar.toolbar-products {
    position: relative !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    min-height: 64px !important;
    padding: 10px !important;
    padding-left: calc(50% + 5px) !important;
    background: #FFFFFF !important;
    border: 1px solid #EDE7D9 !important;
    border-radius: 6px !important;
    margin: 0 0 1.5rem 0 !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
  }
  /* Sort By — twin button inside toolbar */
  .catalog-category-view .toolbar.toolbar-products .toolbar-sorter {
    flex: 1 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: stretch !important;
  }
  .catalog-category-view .toolbar.toolbar-products .toolbar-sorter .sorter-label {
    display: none !important;
  }
  .catalog-category-view .toolbar.toolbar-products .toolbar-sorter select {
    width: 100% !important;
    min-height: 44px !important;
    padding: 0 12px !important;
    background: #F9FAFB !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 4px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: #111827 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    cursor: pointer !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23111827' d='M6 8L0 0h12z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px 8px !important;
    padding-right: 36px !important;
    box-sizing: border-box !important;
  }
  .catalog-category-view .toolbar.toolbar-products .toolbar-sorter select:active {
    background-color: #EDE7D9 !important;
  }
  /* Overlay filter expansion — when filter is active */
  .catalog-category-view .sidebar.sidebar-main .block.filter.active {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999 !important;
    background: #FFFFFF !important;
    overflow-y: auto !important;
    padding: 20px !important;
    box-shadow: 0 0 40px rgba(0,0,0,0.2) !important;
    display: block !important;
  }
  .catalog-category-view .sidebar.sidebar-main .block.filter.active .block-content.filter-content {
    display: block !important;
  }
  .catalog-category-view .sidebar.sidebar-main .block.filter.active .block-title.filter-title {
    position: static !important;
    width: auto !important;
    display: block !important;
    padding: 16px 0 !important;
    margin-bottom: 16px !important;
    border-bottom: 2px solid #D4AF37 !important;
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    background: none !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-radius: 0 !important;
    cursor: default !important;
  }
  .catalog-category-view .sidebar.sidebar-main .block.filter.active .block-title.filter-title::after {
    display: none !important;
  }
  /* Dark overlay backdrop when filter is active */
  .catalog-category-view .sidebar.sidebar-main .block.filter.active::before {
    content: '' !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.4) !important;
    z-index: -1 !important;
  }
  /* Filter close — use Magento's default active toggle, style close area */
  .catalog-category-view .sidebar.sidebar-main .block.filter.active .filter-actions {
    padding: 12px 0 !important;
    text-align: center !important;
  }
  .catalog-category-view .sidebar.sidebar-main .block.filter.active .filter-actions .action.clear {
    display: inline-block !important;
    padding: 10px 24px !important;
    background: #111827 !important;
    color: #FFFFFF !important;
    border-radius: 4px !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    text-decoration: none !important;
  }

  /* ---- 15f. BECOME-A-CLIENT FORM OVERFLOW FIX ---- */
  .cms-page-view form input,
  .cms-page-view form select,
  .cms-page-view form textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .cms-page-view form label {
    display: block !important;
    margin-bottom: 4px;
    font-weight: 600;
  }
  .cms-page-view form .field {
    margin-bottom: 1.2rem;
  }

  /* ---- 15f. WINE STORAGE FEE TABLE RESPONSIVE ---- */
  .cms-page-view table,
  .cms-page-view .fee-table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .cms-page-view table tbody,
  .cms-page-view table tr,
  .cms-page-view table td,
  .cms-page-view table th {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  .cms-page-view table tr {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--parchment, #EDE7D9);
  }
  .cms-page-view table td {
    padding: 0.4rem 0;
    border: none !important;
    text-align: left !important;
  }
  .cms-page-view table td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cellar-grey, #78716C);
    margin-bottom: 2px;
  }
  .cms-page-view table thead {
    display: none !important;
  }

  /* ---- 15g. INVESTOR DOSSIER MOBILE STACKING ---- */
  .investor-dossier .dossier-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .investor-dossier .dossier-primary,
  .investor-dossier .dossier-sidebar {
    padding: 0 !important;
  }
  .investor-dossier .report-card {
    padding: 1.5rem !important;
  }
  .investor-dossier .report-list > div {
    padding: 1.2rem 1.5rem !important;
    flex-wrap: wrap;
  }
  .investor-dossier .report-list > div a.luxury-btn {
    margin-left: 0 !important;
    width: 100%;
    justify-content: center;
  }
  .investor-dossier .dossier-sidebar > div {
    margin-bottom: 1.5rem;
  }
  .investor-dossier .heritage-bar {
    margin-top: 2rem;
  }

  /* ---- 15h. CMS PAGE GRID STACKING ---- */
  /* Force CMS content multi-column grids to single column on mobile */
  .cms-page-view [style*="grid-template-columns: 1fr 1fr"],
  .cms-page-view [style*="grid-template-columns: repeat(3"],
  .cms-page-view [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* --- 16. PILLAR PAGE BLOG POSTS — VISIBLE LUXURY CARDS --- */
.simple-blog-post {
  background: #fff !important;
  border: 1px solid var(--parchment, #EDE7D9) !important;
  border-radius: 12px !important;
  padding: 2.4rem !important;
  margin-bottom: 2rem !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.simple-blog-post:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06) !important;
  transform: translateY(-2px);
}
.simple-blog-post h3 {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: var(--obsidian, #111827) !important;
  margin: 0 0 0.8rem !important;
}
.simple-blog-post h3 a {
  color: var(--obsidian, #111827) !important;
  text-decoration: none !important;
}
.simple-blog-post h3 a:hover {
  color: var(--sovereign-gold-dark, #B8962A) !important;
}
.simple-blog-post .simple-blog-post-image {
  margin: 0 0 1.2rem !important;
  border-radius: 8px !important;
  overflow: hidden;
}
.simple-blog-post .simple-blog-post-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.simple-blog-post > div[style*="font-size: 1.2rem"] {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  color: var(--cellar-grey, #78716C) !important;
  margin-bottom: 0.8rem !important;
}
.simple-blog-post > div[style*="font-size: 1.4rem"] {
  font-family: 'Inter', sans-serif !important;
  font-size: 1.4rem !important;
  line-height: 1.7 !important;
  color: var(--obsidian, #111827) !important;
}
.simple-blog-post a[style*="display: inline-block"] {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  color: var(--sovereign-gold-dark, #B8962A) !important;
  font-weight: 600 !important;
  font-size: 1.3rem !important;
  text-decoration: none !important;
  margin-top: 1.2rem !important;
  transition: color 0.2s;
}
.simple-blog-post a[style*="display: inline-block"]:hover {
  color: var(--sovereign-gold, #D4AF37) !important;
}
.simple-blog-posts {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sh-pillar-hub__intro {
  margin-bottom: 2.4rem;
}
.sh-pillar-hub__intro p {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  color: var(--cellar-grey, #78716C);
  line-height: 1.6;
  max-width: 720px;
}

/* Pillar page title gold underline (already exists in dossier, ensure for all) */
.cms-page-view .page-title-wrapper h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--sovereign-gold, #D4AF37), rgba(212, 175, 55, 0.1));
  border-radius: 2px;
}
.cms-page-view .page-title-wrapper h1 {
  position: relative;
  padding-bottom: 1.2rem;
  margin-bottom: 2.4rem;
}

/* --- GOLD I GLOW --- */
/* Unmistakably gold accent on hero heading */
.gold-i {
  color: #FFE135 !important;
  text-shadow: 0 0 12px rgba(255, 225, 53, 0.5), 0 0 4px rgba(255, 225, 53, 0.3);
}

/* --- LOGO CONTRAST ENHANCEMENT (desktop & mobile) --- */
/* Override redesign.css brightness(0) invert(1) — makes logo crisp against dark navy header */
.header.content .logo img {
  filter: brightness(2.5) contrast(1.5) drop-shadow(0 0 6px rgba(255,255,255,0.15)) !important;
}

/* --- 17. SIGN-IN BUTTON — LUXURY REDESIGN --- */
/* Primary focal point for returning investors */
.panel.header .header.links .authorization-link a,
.header.content .header.links .authorization-link a {
  background: var(--sovereign-gold, #D4AF37) !important;
  color: var(--obsidian, #111827) !important;
  font-weight: 700 !important;
  padding: 8px 22px !important;
  border-radius: 4px !important;
  text-transform: uppercase;
  letter-spacing: 0.06em !important;
  font-size: 1.2rem !important;
  border: 1px solid rgba(212, 175, 55, 0.6) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), 0 2px 8px rgba(212, 175, 55, 0.2) !important;
  transition: all 0.3s ease !important;
  position: relative;
}
.panel.header .header.links .authorization-link a::after,
.header.content .header.links .authorization-link a::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.panel.header .header.links .authorization-link a:hover,
.header.content .header.links .authorization-link a:hover {
  background: #064E3B !important; /* Deep Emerald */
  color: #FFFFFF !important;
  border-color: #064E3B !important;
  box-shadow: 0 4px 16px rgba(6, 78, 59, 0.3) !important;
  transform: translateY(-1px);
}

/* Mobile: persistent Sign In in top header */
@media (max-width: 767px) {
  .panel.header .header.links .authorization-link a,
  .header.content .header.links .authorization-link a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 10px 18px !important;
    font-size: 1.1rem !important;
    white-space: nowrap;
  }
  /* Ensure at least one Sign In is always visible in top panel */
  .panel.header .authorization-link {
    display: block !important;
  }
  .panel.header .header.links li:not(.authorization-link) {
    display: none !important;
  }
}

/* --- 18. PRODUCT PLACEHOLDER — LUXURY FRAME --- */
/* Replace gray Magento placeholder with premium gold-rimmed frame */
.product-image-container,
.product-image-wrapper,
.product-item-photo {
  background: transparent !important;
}
.product-image-wrapper .product-image-photo {
  min-height: 180px;
  object-fit: contain;
  background: #FDFBF7;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 6px;
  padding: 8px;
}
/* Hide default Magento placeholder background */
.product-image-wrapper {
  background: #FDFBF7 !important;
}
.product-image-container {
  display: block !important;
}
/* Shimmer/skeleton loading state */
.product-image-wrapper img[src*="placeholder"] {
  opacity: 0.8;
  filter: brightness(1.1);
}
