/* ==========================================================================
   L'ÉPOQUE VAULT — Vintage & Antiquities E-Commerce Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,400;1,600&family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Special+Elite&family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');

:root {
  /* Vintage Color Palette */
  --bg-parchment: #f9f6ef;
  --bg-parchment-dark: #f0ebd9;
  --bg-aged-paper: #e8dec8;
  --bg-antique-white: #fdfbf7;
  --bg-dark-wood: #1e130c;
  --bg-walnut: #2a1b12;
  --bg-leather: #3c2415;
  --bg-oxblood: #5a191b;
  --bg-emerald: #142a20;
  
  /* Text Colors */
  --text-main: #2b2118;
  --text-muted: #6e6155;
  --text-light: #9c8b7d;
  --text-gold: #c5a059;
  --text-parchment: #f6efe2;
  
  /* Accent & Material Colors */
  --brass-gold: #c5a059;
  --brass-light: #dfc282;
  --brass-dark: #916f31;
  --patina-green: #3d6857;
  --wax-red: #8f2323;
  --wax-seal-shadow: rgba(143, 35, 35, 0.4);
  --stamp-blue: #233b5d;
  --border-sepia: rgba(110, 97, 85, 0.25);
  --border-gold: rgba(197, 160, 89, 0.45);
  --border-filigree: #c5a059;

  /* Typography */
  --font-serif-display: 'Cinzel', serif;
  --font-serif-body: 'Cormorant Garamond', Georgia, serif;
  --font-playfair: 'Playfair Display', serif;
  --font-typewriter: 'Special Elite', monospace;
  --font-sans: 'Plus Jakarta Sans', sans-serif;

  /* Shadows & Textures */
  --shadow-sm: 0 2px 8px rgba(42, 27, 18, 0.08);
  --shadow-md: 0 6px 20px rgba(42, 27, 18, 0.12);
  --shadow-lg: 0 15px 35px rgba(42, 27, 18, 0.18);
  --shadow-parchment: 0 8px 30px rgba(30, 19, 12, 0.15), inset 0 0 40px rgba(110, 97, 85, 0.08);
  
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-parchment);
  background-image: 
    radial-gradient(rgba(197, 160, 89, 0.06) 1px, transparent 0),
    linear-gradient(to bottom, rgba(240, 235, 217, 0.4), rgba(249, 246, 239, 0.8));
  background-size: 24px 24px, 100% 100%;
  color: var(--text-main);
  font-family: var(--font-serif-body);
  font-size: 1.15rem;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Vintage Paper Vignette Effect on viewport edges */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  box-shadow: inset 0 0 100px rgba(42, 27, 18, 0.08);
  z-index: 999;
}

/* Typography Presets */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif-display);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.05em;
  line-height: 1.25;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container & Layout */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-sm {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Vintage Header / Announcement Bar */
.announcement-bar {
  background: var(--bg-dark-wood);
  color: var(--brass-light);
  font-family: var(--font-typewriter);
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--brass-dark);
  letter-spacing: 0.08em;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.announcement-bar span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.announcement-bar a {
  color: var(--brass-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Navigation */
.header-main {
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--brass-gold);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(30, 19, 12, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand-logo .logo-crest {
  font-size: 1.6rem;
  color: var(--brass-gold);
  line-height: 1;
}

.brand-logo .logo-title {
  font-family: var(--font-serif-display);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--text-main);
  text-transform: uppercase;
}

.brand-logo .logo-subtitle {
  font-family: var(--font-typewriter);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--brass-dark);
  text-transform: uppercase;
}

/* Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-serif-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-main);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--brass-gold);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brass-dark);
}

/* Header Utilities */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-action-btn {
  background: none;
  border: 1px solid var(--border-sepia);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 1.1rem;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.header-action-btn:hover {
  background: var(--bg-parchment-dark);
  border-color: var(--brass-gold);
  color: var(--brass-dark);
}

.badge-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--wax-red);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px var(--wax-seal-shadow);
}

.menu-toggle {
  display: none;
}

/* Vintage Buttons */
.btn-vintage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-serif-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  text-decoration: none;
}

.btn-primary-vintage {
  background: var(--bg-dark-wood);
  color: var(--brass-light);
  border: 1px solid var(--brass-gold);
  box-shadow: 0 4px 12px rgba(30, 19, 12, 0.25), inset 0 0 10px rgba(197, 160, 89, 0.2);
}

.btn-primary-vintage:hover {
  background: var(--bg-walnut);
  color: #fff;
  border-color: var(--brass-light);
  box-shadow: 0 6px 18px rgba(30, 19, 12, 0.35), inset 0 0 15px rgba(223, 194, 130, 0.3);
  transform: translateY(-2px);
}

.btn-secondary-vintage {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-sepia);
}

.btn-secondary-vintage:hover {
  background: var(--bg-parchment-dark);
  border-color: var(--brass-gold);
  color: var(--brass-dark);
  transform: translateY(-2px);
}

.btn-wax {
  background: var(--wax-red);
  color: #fff;
  border: 1px solid #6b1414;
  box-shadow: 0 4px 12px var(--wax-seal-shadow);
}

.btn-wax:hover {
  background: #a82b2b;
  color: #fff;
  transform: translateY(-2px);
}

/* Wax Seal Accent */
.wax-seal {
  width: 52px;
  height: 52px;
  background: radial-gradient(circle at 35% 35%, #b23030, #6c1212);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f7d288;
  font-family: var(--font-serif-display);
  font-weight: 900;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px var(--wax-seal-shadow), inset 0 2px 4px rgba(255, 255, 255, 0.3), inset 0 -2px 6px rgba(0, 0, 0, 0.5);
  border: 2px dashed rgba(255, 215, 0, 0.2);
  user-select: none;
}

/* Ornate Dividers */
.ornate-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2.5rem 0;
  gap: 1rem;
  color: var(--brass-gold);
}

.ornate-divider::before,
.ornate-divider::after {
  content: '';
  height: 1px;
  flex: 1;
  background: linear-gradient(to right, transparent, var(--brass-gold), transparent);
}

.ornate-icon {
  font-size: 1.2rem;
}

/* Section Titles */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  font-family: var(--font-typewriter);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}

.section-desc {
  max-width: 650px;
  margin: 0.75rem auto 0;
  color: var(--text-muted);
  font-size: 1.15rem;
}

/* ==========================================================================
   HERO SECTION & 3D INTERACTIVE VIEWER
   ========================================================================== */
.hero-vintage {
  position: relative;
  background: linear-gradient(135deg, #1f140e 0%, #2e1d13 50%, #170d08 100%);
  color: var(--text-parchment);
  padding: 4rem 0 5rem;
  overflow: hidden;
  border-bottom: 3px double var(--brass-gold);
}

.hero-vintage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c5a059' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  padding-right: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(197, 160, 89, 0.15);
  border: 1px solid var(--brass-gold);
  color: var(--brass-light);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-family: var(--font-typewriter);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  color: #fdfbf7;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.hero-title em {
  font-family: var(--font-playfair);
  font-style: italic;
  color: var(--brass-light);
}

.hero-subtitle {
  color: #cfc2b4;
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(197, 160, 89, 0.25);
  padding-top: 1.5rem;
}

.stat-item h4 {
  color: var(--brass-light);
  font-size: 1.8rem;
  font-family: var(--font-serif-display);
}

.stat-item p {
  color: #9c8b7d;
  font-family: var(--font-typewriter);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

/* 3D Canvas Box */
.hero-3d-wrapper {
  position: relative;
  width: 100%;
  height: 480px;
  background: radial-gradient(circle at center, rgba(42, 27, 18, 0.8), rgba(15, 10, 6, 0.95));
  border: 2px solid var(--brass-gold);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5), inset 0 0 30px rgba(197, 160, 89, 0.15);
  overflow: hidden;
}

.hero-3d-wrapper::before {
  content: '';
  position: absolute;
  top: 6px; left: 6px; right: 6px; bottom: 6px;
  border: 1px dashed rgba(197, 160, 89, 0.3);
  pointer-events: none;
  z-index: 3;
}

#vintage-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

#vintage-3d-canvas:active {
  cursor: grabbing;
}

.canvas-controls-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
  pointer-events: none;
}

.canvas-controls-overlay > * {
  pointer-events: auto;
}

.canvas-hint {
  font-family: var(--font-typewriter);
  font-size: 0.75rem;
  color: var(--brass-light);
  background: rgba(20, 13, 8, 0.8);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(197, 160, 89, 0.3);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.canvas-btn-group {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.canvas-btn {
  background: rgba(20, 13, 8, 0.85);
  border: 1px solid var(--brass-gold);
  color: var(--brass-light);
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-family: var(--font-typewriter);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.canvas-btn:hover,
.canvas-btn.active {
  background: var(--brass-gold);
  color: var(--bg-dark-wood);
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.4);
}

/* 3D Hotspot Annotation Card */
.relic-annotation-card {
  position: absolute;
  top: 70px;
  right: 15px;
  background: rgba(25, 16, 10, 0.92);
  border: 1px solid var(--brass-gold);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  max-width: 260px;
  z-index: 10;
  box-shadow: 0 8px 25px rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
  pointer-events: auto;
}

.relic-annotation-card h5 {
  color: var(--brass-light);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  font-family: var(--font-serif-display);
}

.relic-annotation-card p {
  color: #c4b5a5;
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 0;
  font-family: var(--font-sans);
}

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

.relic-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(20, 13, 8, 0.85);
  border-left: 3px solid var(--brass-gold);
  padding: 0.4rem 0.8rem;
  z-index: 4;
}

.relic-badge span {
  display: block;
  font-family: var(--font-serif-display);
  font-size: 0.85rem;
  color: var(--brass-light);
}

.relic-badge small {
  font-family: var(--font-typewriter);
  font-size: 0.7rem;
  color: #b0a090;
}

/* ==========================================================================
   ERA SHOWCASE & CAROUSELS
   ========================================================================== */
.era-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.era-card {
  position: relative;
  background: var(--bg-antique-white);
  border: 1px solid var(--border-sepia);
  padding: 2rem 1.5rem;
  text-align: center;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.era-card::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(197, 160, 89, 0.35);
  pointer-events: none;
}

.era-card:hover {
  transform: translateY(-6px);
  border-color: var(--brass-gold);
  box-shadow: var(--shadow-lg);
  background: #fff;
}

.era-year {
  font-family: var(--font-typewriter);
  font-size: 0.85rem;
  color: var(--brass-dark);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: block;
}

.era-name {
  font-family: var(--font-serif-display);
  font-size: 1.4rem;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.era-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.era-link-arrow {
  font-family: var(--font-serif-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brass-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.era-card:hover .era-link-arrow {
  color: var(--wax-red);
}

/* ==========================================================================
   PRODUCT CARDS & GRIDS
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--bg-antique-white);
  border: 1px solid var(--border-sepia);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--brass-gold);
  box-shadow: var(--shadow-lg);
}

.product-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  background: #ede6d6;
  overflow: hidden;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: sepia(0.15) contrast(1.05);
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.06);
}

.product-stamp {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px dashed var(--wax-red);
  color: var(--wax-red);
  font-family: var(--font-typewriter);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  background: rgba(253, 251, 247, 0.9);
  text-transform: uppercase;
  transform: rotate(-4deg);
  letter-spacing: 0.05em;
  z-index: 2;
}

.product-condition {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(30, 19, 12, 0.85);
  color: var(--brass-light);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  letter-spacing: 0.05em;
  z-index: 2;
}

.product-actions-hover {
  position: absolute;
  inset: 0;
  background: rgba(30, 19, 12, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  opacity: 0;
  transition: var(--transition);
  z-index: 3;
}

.product-card:hover .product-actions-hover {
  opacity: 1;
}

.product-action-icon {
  width: 42px;
  height: 42px;
  background: var(--bg-antique-white);
  border: 1px solid var(--brass-gold);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.product-action-icon:hover {
  background: var(--brass-gold);
  color: #fff;
  transform: scale(1.1);
}

.product-body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: var(--bg-antique-white);
  border-top: 1px solid var(--border-sepia);
}

.product-era-tag {
  font-family: var(--font-typewriter);
  font-size: 0.75rem;
  color: var(--brass-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.product-title {
  font-family: var(--font-serif-display);
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.product-provenance {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed var(--border-sepia);
  padding-top: 0.75rem;
  margin-top: auto;
}

.product-price {
  font-family: var(--font-serif-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--bg-dark-wood);
}

.product-price del {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-right: 0.4rem;
  font-weight: 400;
}

.btn-add-vault {
  background: none;
  border: 1px solid var(--border-sepia);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-serif-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.btn-add-vault:hover {
  background: var(--bg-dark-wood);
  color: var(--brass-light);
  border-color: var(--brass-gold);
}

/* ==========================================================================
   PROVENANCE & CERTIFICATION BANNER
   ========================================================================== */
.provenance-banner {
  background: var(--bg-dark-wood);
  color: var(--text-parchment);
  border: 1px solid var(--brass-gold);
  border-radius: var(--radius-sm);
  padding: 3rem 2.5rem;
  margin: 4rem 0;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.provenance-banner::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(197, 160, 89, 0.3);
  pointer-events: none;
}

.provenance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}

.provenance-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.provenance-icon {
  font-size: 2.2rem;
  color: var(--brass-light);
  margin-bottom: 1rem;
}

.provenance-item h4 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.provenance-item p {
  color: #b5a494;
  font-size: 0.95rem;
  margin: 0;
}

/* ==========================================================================
   STORY / HERITAGE TEASER SECTION
   ========================================================================== */
.heritage-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
}

.heritage-img-frame {
  position: relative;
  padding: 15px;
  background: var(--bg-antique-white);
  border: 1px solid var(--border-sepia);
  box-shadow: var(--shadow-md);
}

.heritage-img-frame::after {
  content: '';
  position: absolute;
  bottom: -15px;
  right: -15px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--brass-gold);
  z-index: -1;
}

.heritage-img-frame img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  filter: sepia(0.2) contrast(1.1);
}

.heritage-wax-seal {
  position: absolute;
  top: -20px;
  right: -20px;
  z-index: 5;
}

.quote-vintage {
  font-family: var(--font-playfair);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--text-main);
  border-left: 3px solid var(--brass-gold);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
}

/* ==========================================================================
   WAX-SEALED NEWSLETTER SECTION
   ========================================================================== */
.newsletter-parchment {
  background: var(--bg-parchment-dark);
  border: 2px solid var(--brass-dark);
  border-radius: var(--radius-sm);
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-parchment);
  max-width: 850px;
  margin: 4rem auto;
}

.newsletter-form {
  display: flex;
  max-width: 550px;
  margin: 2rem auto 0;
  gap: 0.5rem;
}

.input-vintage {
  flex: 1;
  padding: 0.85rem 1.25rem;
  background: var(--bg-antique-white);
  border: 1px solid var(--border-sepia);
  border-radius: var(--radius-sm);
  font-family: var(--font-typewriter);
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.input-vintage:focus {
  border-color: var(--brass-gold);
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.25);
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer-vintage {
  background: var(--bg-dark-wood);
  color: #cfc2b4;
  border-top: 3px double var(--brass-gold);
  padding: 4.5rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand .logo-title {
  color: #fdfbf7;
}

.footer-brand p {
  color: #a39282;
  font-size: 0.95rem;
  margin-top: 1rem;
}

.footer-col h4 {
  color: var(--brass-light);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.1em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #b5a494;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--brass-light);
  padding-left: 5px;
}

.footer-stamp-box {
  border: 1px dashed rgba(197, 160, 89, 0.4);
  padding: 1rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
}

.footer-bottom {
  border-top: 1px solid rgba(197, 160, 89, 0.2);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-typewriter);
  font-size: 0.8rem;
  color: #8c7b6d;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   SHOP / CATALOG PAGE STYLES
   ========================================================================== */
.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  padding: 3rem 0;
}

.shop-sidebar {
  background: var(--bg-antique-white);
  border: 1px solid var(--border-sepia);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  height: fit-content;
  box-shadow: var(--shadow-sm);
}

.filter-group {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed var(--border-sepia);
}

.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-title {
  font-family: var(--font-serif-display);
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-list {
  list-style: none;
}

.filter-item {
  margin-bottom: 0.5rem;
}

.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
}

.filter-checkbox-label input[type="checkbox"] {
  accent-color: var(--brass-dark);
  cursor: pointer;
}

.filter-checkbox-label:hover {
  color: var(--text-main);
}

.price-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.price-range-inputs {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-typewriter);
  font-size: 0.85rem;
  color: var(--text-main);
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-antique-white);
  border: 1px solid var(--border-sepia);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.shop-sort-select {
  padding: 0.4rem 0.8rem;
  background: var(--bg-parchment);
  border: 1px solid var(--border-sepia);
  font-family: var(--font-serif-body);
  font-size: 0.95rem;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
}

/* ==========================================================================
   PRODUCT DETAILS PAGE STYLES
   ========================================================================== */
.product-details-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  padding: 3rem 0;
}

.gallery-main-wrap {
  position: relative;
  background: #ede6d6;
  border: 1px solid var(--border-sepia);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: crosshair;
}

.gallery-main-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  filter: sepia(0.12) contrast(1.05);
  display: block;
}

.gallery-thumbnails {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.thumb-item {
  width: 80px;
  height: 80px;
  border: 1px solid var(--border-sepia);
  border-radius: var(--radius-sm);
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition);
}

.thumb-item.active,
.thumb-item:hover {
  border-color: var(--brass-gold);
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.3);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Loupe Zoom Container */
.loupe-lens {
  position: absolute;
  border: 2px solid var(--brass-gold);
  border-radius: 50%;
  width: 140px;
  height: 140px;
  box-shadow: 0 0 15px rgba(0,0,0,0.4), inset 0 0 10px rgba(0,0,0,0.3);
  pointer-events: none;
  display: none;
  background-repeat: no-repeat;
  z-index: 10;
}

.product-info-panel {
  display: flex;
  flex-direction: column;
}

.relic-provenance-tag {
  font-family: var(--font-typewriter);
  font-size: 0.85rem;
  color: var(--brass-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.product-detail-title {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.relic-meta-bar {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-family: var(--font-typewriter);
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px dashed var(--border-sepia);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.product-detail-price {
  font-family: var(--font-serif-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--bg-dark-wood);
  margin-bottom: 1.5rem;
}

.condition-matrix-card {
  background: var(--bg-parchment-dark);
  border: 1px solid var(--border-sepia);
  border-left: 4px solid var(--brass-gold);
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}

.tabs-vintage {
  margin-top: 3rem;
}

.tab-nav {
  display: flex;
  gap: 1rem;
  border-bottom: 2px solid var(--border-sepia);
  margin-bottom: 1.5rem;
}

.tab-btn {
  background: none;
  border: none;
  font-family: var(--font-serif-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.tab-btn.active {
  color: var(--bg-dark-wood);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brass-gold);
}

.tab-pane {
  display: none;
  background: var(--bg-antique-white);
  border: 1px solid var(--border-sepia);
  padding: 2rem;
  border-radius: var(--radius-sm);
  line-height: 1.8;
}

.tab-pane.active {
  display: block;
}

/* Certificate of Authenticity Preview Card */
.certificate-preview-box {
  background: #fffdf9;
  border: 2px solid var(--brass-gold);
  padding: 2rem;
  position: relative;
  box-shadow: inset 0 0 30px rgba(197, 160, 89, 0.1);
  text-align: center;
}

.certificate-preview-box::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed var(--brass-dark);
  pointer-events: none;
}

/* ==========================================================================
   CART & LEDGER STYLES
   ========================================================================== */
.ledger-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-antique-white);
  border: 1px solid var(--border-sepia);
  margin-bottom: 2rem;
}

.ledger-table th {
  background: var(--bg-parchment-dark);
  font-family: var(--font-serif-display);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem;
  text-align: left;
  border-bottom: 2px solid var(--brass-gold);
  color: var(--text-main);
}

.ledger-table td {
  padding: 1.25rem 1rem;
  border-bottom: 1px dashed var(--border-sepia);
  vertical-align: middle;
}

.ledger-product-cell {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.ledger-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border: 1px solid var(--border-sepia);
}

.qty-stepper {
  display: inline-flex;
  border: 1px solid var(--border-sepia);
  background: var(--bg-parchment);
}

.qty-btn {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-main);
}

.qty-input {
  width: 40px;
  border: none;
  border-left: 1px solid var(--border-sepia);
  border-right: 1px solid var(--border-sepia);
  background: transparent;
  text-align: center;
  font-family: var(--font-typewriter);
  font-size: 0.9rem;
}

.cart-summary-box {
  background: var(--bg-antique-white);
  border: 2px solid var(--brass-gold);
  border-radius: var(--radius-sm);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.summary-row.total {
  border-top: 2px dashed var(--brass-gold);
  padding-top: 1rem;
  margin-top: 1.5rem;
  font-family: var(--font-serif-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bg-dark-wood);
}

/* ==========================================================================
   CHECKOUT PAGE STYLES
   ========================================================================== */
.checkout-steps {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.step-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif-display);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.step-badge.active {
  color: var(--brass-dark);
  font-weight: 700;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-parchment-dark);
  border: 1px solid var(--border-sepia);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-badge.active .step-num {
  background: var(--brass-gold);
  color: #fff;
  border-color: var(--brass-dark);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-serif-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

/* ==========================================================================
   TOAST NOTIFICATION & MODALS
   ========================================================================== */
.vintage-toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--bg-dark-wood);
  color: var(--brass-light);
  border: 1px solid var(--brass-gold);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s ease;
  font-family: var(--font-typewriter);
  font-size: 0.9rem;
}

.vintage-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 11, 7, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-content-box {
  background: var(--bg-parchment);
  border: 2px solid var(--brass-gold);
  border-radius: var(--radius-sm);
  max-width: 750px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid,
  .heritage-split,
  .shop-layout,
  .product-details-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 75px;
    left: 0;
    right: 0;
    background: var(--bg-antique-white);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 2px solid var(--brass-gold);
    box-shadow: var(--shadow-lg);
    display: none;
  }

  .nav-menu.show {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-3d-wrapper {
    height: 380px;
  }
}
