/* ============================================
   GARMENT ARCHIVE — Archival Brutalism
   ============================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@300;400;500&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Color System from Brief */
  --void: #0A0A0A;
  --concrete: #2A2A2A;
  --bone: #E8E4DE;
  --brass: #C9A94E;
  --brass-dim: rgba(201, 169, 78, 0.3);
  --brass-glow: rgba(201, 169, 78, 0.15);
  --signal-red: #6B1A1A;
  --archive-fog: #9A9A9A;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-2xl: 8rem;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--void);
  color: var(--bone);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--void);
}
::-webkit-scrollbar-thumb {
  background: var(--concrete);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brass-dim);
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* --- Concrete Texture Overlay --- */
.concrete-texture {
  position: relative;
}
.concrete-texture::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255,255,255,0.01) 2px,
      rgba(255,255,255,0.01) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 3px,
      rgba(255,255,255,0.008) 3px,
      rgba(255,255,255,0.008) 6px
    );
  pointer-events: none;
  z-index: 1;
}

/* ============================================
   MOMENT 1: THE THRESHOLD (Landing)
   ============================================ */
#threshold {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--void);
  cursor: crosshair;
}

/* Light reveal effect */
.threshold-light {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse 0% 0% at 50% 50%,
    rgba(201, 169, 78, 0.06) 0%,
    rgba(201, 169, 78, 0.02) 30%,
    transparent 70%
  );
  transition: background 1.5s var(--ease-out);
  pointer-events: none;
  z-index: 1;
}

.threshold-light.revealed {
  background: radial-gradient(
    ellipse 80% 70% at 50% 45%,
    rgba(201, 169, 78, 0.08) 0%,
    rgba(201, 169, 78, 0.03) 40%,
    transparent 80%
  );
}

/* Hairline of light */
.threshold-hairline {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1px;
  height: 0;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--brass),
    transparent
  );
  opacity: 0.6;
  transition: height 2s var(--ease-out), width 2.5s var(--ease-out) 0.5s, opacity 2s var(--ease-out);
  z-index: 2;
}

.threshold-hairline.revealed {
  height: 60vh;
  width: 60vw;
  opacity: 0;
}

/* Wordmark */
.threshold-wordmark {
  position: relative;
  z-index: 3;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 2s var(--ease-out) 1s, transform 2s var(--ease-out) 1s;
}

.threshold-wordmark.revealed {
  opacity: 1;
  transform: translateY(0);
}

.threshold-wordmark h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: 0.3em;
  color: var(--bone);
  text-transform: uppercase;
  line-height: 1.1;
  text-shadow: 0 0 60px var(--brass-glow);
}

.threshold-tagline {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  font-weight: 300;
  color: var(--archive-fog);
  margin-top: var(--space-lg);
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 2s var(--ease-out) 2.5s;
}

.threshold-tagline.revealed {
  opacity: 1;
}

/* Navigation brass plates */
.nav-plates {
  position: relative;
  z-index: 3;
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  opacity: 0;
  transition: opacity 1.5s var(--ease-out) 3.5s;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-plates.revealed {
  opacity: 1;
}

.nav-plate {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brass);
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--brass-dim);
  background: linear-gradient(135deg, rgba(201,169,78,0.05), rgba(201,169,78,0.02));
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.6s var(--ease-out);
  cursor: pointer;
}

.nav-plate::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,169,78,0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.nav-plate:hover {
  border-color: var(--brass);
  box-shadow: 0 0 20px var(--brass-glow), inset 0 0 20px var(--brass-glow);
  transform: translateY(-2px);
}

.nav-plate:hover::before {
  opacity: 1;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out) 4.5s forwards;
}

.scroll-indicator span {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--brass-dim), transparent);
  margin: 0 auto;
  animation: scrollPulse 2s var(--ease-in-out) infinite;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 0.5; transform: translate(-50%, 0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.6; transform: scaleY(1.3); }
}

/* ============================================
   STICKY NAVIGATION BAR
   ============================================ */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, var(--void), transparent);
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  pointer-events: none;
}

.nav-bar.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  background: linear-gradient(to bottom, rgba(10,10,10,0.95), rgba(10,10,10,0.8));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-bar-logo {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--bone);
  text-transform: uppercase;
  text-decoration: none;
}

.nav-bar-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.nav-bar-links a {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--archive-fog);
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
  position: relative;
}

.nav-bar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--brass);
  transition: width 0.4s var(--ease-out);
}

.nav-bar-links a:hover {
  color: var(--brass);
}

.nav-bar-links a:hover::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--bone);
  margin: 5px 0;
  transition: all 0.3s var(--ease-out);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  padding-top: var(--space-2xl);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--bone);
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.section-divider {
  width: 60px;
  height: 1px;
  background: var(--brass);
  margin: var(--space-lg) auto;
  opacity: 0.5;
}

/* ============================================
   MOMENT 2: THE ARCHIVE FLOOR (Products)
   ============================================ */
#archive-floor {
  position: relative;
  min-height: 100vh;
  padding: 0 var(--space-lg) var(--space-2xl);
  background: var(--void);
}

/* Filter bar */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  padding: 0 var(--space-md);
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--archive-fog);
  background: transparent;
  border: 1px solid transparent;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--brass);
  border-color: var(--brass-dim);
  background: rgba(201, 169, 78, 0.05);
}

/* Product grid — masonry-style */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
  max-width: 1400px;
  margin: 0 auto;
}

/* Product card — concrete slab */
.product-card {
  position: relative;
  background: var(--concrete);
  border: 1px solid rgba(255,255,255,0.04);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.6s var(--ease-out);
}

.product-card:hover {
  border-color: var(--brass-dim);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px var(--brass-dim);
}

.product-card-image {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--void);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85) contrast(1.1);
  transition: all 0.8s var(--ease-out);
}

.product-card:hover .product-card-image img {
  filter: brightness(0.95) contrast(1.05);
  transform: scale(1.03);
}

/* Conservation light effect on hover */
.product-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 40% at 50% 0%,
    rgba(201, 169, 78, 0.1) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}

.product-card:hover .product-card-image::after {
  opacity: 1;
}

.product-card-info {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.product-card-brand {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--space-xs);
}

.product-card-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--bone);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.product-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-card-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bone);
}

.product-card-condition {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--archive-fog);
  text-transform: uppercase;
}

/* Authentication badge */
.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255,255,255,0.04);
}

.auth-badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 6px var(--brass-dim);
}

.product-card-footer span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--archive-fog);
}

/* ============================================
   PRODUCT INSPECTION MODAL
   ============================================ */
.inspection-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out);
  overflow-y: auto;
}

.inspection-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.inspection-close {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 210;
  width: 40px;
  height: 40px;
  border: 1px solid var(--brass-dim);
  background: transparent;
  color: var(--bone);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s var(--ease-out);
}

.inspection-close:hover {
  border-color: var(--brass);
  background: rgba(201,169,78,0.1);
}

.inspection-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-xl);
  gap: var(--space-xl);
}

.inspection-image {
  position: sticky;
  top: var(--space-xl);
  height: fit-content;
  cursor: zoom-in;
}

.inspection-image img {
  width: 100%;
  height: auto;
  filter: brightness(0.9) contrast(1.1);
}

.inspection-details {
  padding: var(--space-xl) 0;
}

.inspection-brand {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--space-sm);
}

.inspection-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--bone);
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

.inspection-price {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--bone);
  margin-bottom: var(--space-lg);
}

.inspection-price .currency {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--archive-fog);
  margin-right: 0.25rem;
}

/* Condition Report */
.condition-report {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.06);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.condition-report-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.condition-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.condition-row .label {
  color: var(--archive-fog);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.condition-row .value {
  color: var(--bone);
}

/* Add to cart button */
.btn-acquire {
  width: 100%;
  padding: 1.1rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--brass);
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  margin-bottom: var(--space-md);
}

.btn-acquire:hover {
  background: #d4b45a;
  box-shadow: 0 0 30px var(--brass-glow);
}

/* Final sale notice */
.final-sale-notice {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--archive-fog);
  padding: var(--space-md);
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(107,26,26,0.1);
}

.final-sale-notice .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal-red);
  flex-shrink: 0;
}

/* ============================================
   MOMENT 3: VERIFICATION CHAMBER
   ============================================ */
#verification {
  position: relative;
  min-height: 100vh;
  padding: var(--space-2xl) var(--space-lg);
  background: linear-gradient(180deg, var(--void) 0%, #0d0d0d 50%, var(--void) 100%);
}

.verification-intro {
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
  text-align: center;
}

.verification-intro p {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--archive-fog);
  line-height: 1.8;
}

.verification-intro strong {
  color: var(--bone);
  font-weight: 500;
}

/* Authentication Steps */
.auth-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  max-width: 1200px;
  margin: 0 auto var(--space-2xl);
}

.auth-step {
  background: var(--concrete);
  border: 1px solid rgba(255,255,255,0.04);
  padding: var(--space-xl) var(--space-lg);
  position: relative;
  transition: all 0.6s var(--ease-out);
}

.auth-step-number {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--brass);
  margin-bottom: var(--space-md);
}

.auth-step-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bone);
  margin-bottom: var(--space-md);
}

.auth-step-desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--archive-fog);
  line-height: 1.7;
}

/* Verification input */
.verify-input-section {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.verify-input-section h3 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--space-lg);
}

.verify-input-wrapper {
  display: flex;
  gap: var(--space-sm);
}

.verify-input {
  flex: 1;
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--bone);
  background: var(--void);
  border: 1px solid rgba(255,255,255,0.08);
  outline: none;
  transition: border-color 0.3s var(--ease-out);
}

.verify-input::placeholder {
  color: rgba(154,154,154,0.5);
}

.verify-input:focus {
  border-color: var(--brass-dim);
}

.verify-btn {
  padding: 1rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--brass);
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}

.verify-btn:hover {
  background: #d4b45a;
}

/* ============================================
   MOMENT 4: THE COMMUNITY VAULT
   ============================================ */
#community {
  position: relative;
  min-height: 100vh;
  padding: var(--space-2xl) var(--space-lg);
  background: var(--void);
}

.vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.vault-entry {
  background: var(--concrete);
  border: 1px solid rgba(255,255,255,0.04);
  padding: var(--space-lg);
  transition: all 0.6s var(--ease-out);
}

.vault-entry:hover {
  border-color: var(--brass-dim);
}

.vault-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.vault-entry-id {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--brass);
}

.vault-entry-location {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--archive-fog);
  text-transform: uppercase;
}

.vault-entry-pieces {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.vault-piece {
  aspect-ratio: 1;
  background: var(--void);
  border: 1px solid rgba(255,255,255,0.04);
  overflow: hidden;
}

.vault-piece img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8) contrast(1.1);
  transition: filter 0.4s var(--ease-out);
}

.vault-piece:hover img {
  filter: brightness(0.95) contrast(1.05);
}

.vault-entry-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--archive-fog);
  letter-spacing: 0.1em;
}

.vault-entry-count {
  color: var(--bone);
}

/* ============================================
   MOMENT 5: THE TRANSACTION (Checkout)
   ============================================ */
#checkout {
  position: relative;
  min-height: 100vh;
  padding: var(--space-2xl) var(--space-lg);
  background: var(--void);
}

.checkout-container {
  max-width: 800px;
  margin: 0 auto;
}

.shipping-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.shipping-card {
  background: linear-gradient(135deg, rgba(201,169,78,0.05), rgba(201,169,78,0.02));
  border: 1px solid var(--brass-dim);
  padding: var(--space-xl) var(--space-lg);
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  position: relative;
}

.shipping-card:hover,
.shipping-card.selected {
  border-color: var(--brass);
  box-shadow: 0 0 30px var(--brass-glow);
}

.shipping-card.selected::after {
  content: '';
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 10px var(--brass-dim);
}

.shipping-card-title {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--space-md);
}

.shipping-card-desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--archive-fog);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.shipping-card-price {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--bone);
  letter-spacing: 0.05em;
}

/* Checkout form */
.checkout-form {
  background: var(--concrete);
  border: 1px solid rgba(255,255,255,0.04);
  padding: var(--space-xl);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--archive-fog);
  margin-bottom: var(--space-sm);
}

.form-input {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--bone);
  background: var(--void);
  border: 1px solid rgba(255,255,255,0.08);
  outline: none;
  transition: border-color 0.3s var(--ease-out);
}

.form-input:focus {
  border-color: var(--brass-dim);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.btn-pay {
  width: 100%;
  padding: 1.25rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--brass);
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  margin-top: var(--space-lg);
}

.btn-pay:hover {
  background: #d4b45a;
  box-shadow: 0 0 40px var(--brass-glow);
}

.payment-badge {
  text-align: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.04);
}

.payment-badge span {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--archive-fog);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: var(--space-xl) var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.04);
  background: var(--void);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-info {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--archive-fog);
  line-height: 2;
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--archive-fog);
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}

.footer-links a:hover {
  color: var(--brass);
}

.sound-toggle {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--archive-fog);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.sound-toggle:hover {
  border-color: var(--brass-dim);
  color: var(--brass);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   Uses [data-animate] for all scroll reveals.
   Elements start hidden and animate in when
   the JS adds [data-visible].
   ============================================ */
/* Scroll reveal: hidden state */
[data-animate="hidden"] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

/* Scroll reveal: visible state */
[data-animate="visible"] {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

/* ============================================
   CURSOR LIGHT EFFECT
   ============================================ */
.cursor-light {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,78,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}

body:hover .cursor-light {
  opacity: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .inspection-content {
    grid-template-columns: 1fr;
  }

  .inspection-image {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .nav-bar-links {
    display: none;
  }

  .nav-bar-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10,10,10,0.98);
    padding: var(--space-lg);
    gap: var(--space-md);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .nav-toggle {
    display: block;
  }

  .nav-plates {
    flex-direction: column;
    align-items: center;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-md);
  }

  .shipping-options {
    grid-template-columns: 1fr;
  }

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

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .threshold-wordmark h1 {
    letter-spacing: 0.15em;
  }

  .auth-steps {
    grid-template-columns: 1fr;
  }

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

/* ============================================
   VAULT DOOR LOADING SCREEN
   ============================================ */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.loading-screen.dismissed .vault-door-left {
  transform: translateX(-100%);
}
.loading-screen.dismissed .vault-door-right {
  transform: translateX(100%);
}
.loading-screen.dismissed .vault-lock {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
}
.loading-screen.dismissed .vault-center-content {
  opacity: 0;
}
.loading-screen.dismissed .vault-light-flood {
  opacity: 1;
}
.loading-screen.fade-out {
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
  pointer-events: none;
}

/* Vault doors */
.vault-door {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, #111 0%, #1a1a1a 30%, #0e0e0e 50%, #161616 70%, #0a0a0a 100%);
  border: 2px solid rgba(201,169,78,0.15);
  transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 2;
}
.vault-door-left {
  left: 0;
  border-right: 1px solid rgba(201,169,78,0.3);
}
.vault-door-right {
  right: 0;
  border-left: 1px solid rgba(201,169,78,0.3);
}

/* Brass detailing on doors */
.vault-door-detail {
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(201,169,78,0.1);
  pointer-events: none;
}
.vault-door-detail::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(201,169,78,0.08);
}
.vault-door-detail::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(201,169,78,0.08);
}
.vault-door-left .vault-door-detail {
  border-right: none;
}
.vault-door-right .vault-door-detail {
  border-left: none;
}

/* Vault lock mechanism */
.vault-lock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  z-index: 5;
  transition: opacity 0.5s, transform 0.5s;
}
.vault-lock-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--brass);
  box-shadow: 0 0 30px rgba(201,169,78,0.2), inset 0 0 20px rgba(201,169,78,0.1);
  animation: lockRotate 2s linear infinite;
}
.vault-lock.stopped .vault-lock-ring {
  animation: none;
}
.vault-lock-cross {
  position: absolute;
  inset: 0;
  animation: lockRotate 2s linear infinite;
}
.vault-lock.stopped .vault-lock-cross {
  animation: none;
}
.vault-lock-cross::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--brass);
  transform: translateY(-50%);
}
.vault-lock-cross::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 15%;
  bottom: 15%;
  width: 2px;
  background: var(--brass);
  transform: translateX(-50%);
}

@keyframes lockRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Center content (progress + status) */
.vault-center-content {
  position: absolute;
  top: calc(50% + 70px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.4s;
}

/* Light flood when doors open */
.vault-light-flood {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: radial-gradient(ellipse 200px 100% at center, rgba(201,169,78,0.4), rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
  z-index: 1;
  pointer-events: none;
}

/* Loading progress bar */
.loading-progress {
  position: relative;
  z-index: 2;
  width: 200px;
  height: 1px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}

.loading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brass), #fff, var(--brass));
  transition: width 0.3s var(--ease-out);
}

/* Loading status text */
.loading-status {
  position: relative;
  z-index: 2;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--archive-fog);
  opacity: 0.6;
}

/* Scanlines overlay */
.loading-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255,255,255,0.008) 2px,
    rgba(255,255,255,0.008) 4px
  );
  pointer-events: none;
  z-index: 6;
}

/* ============================================
   AMBIENT DUST PARTICLES
   ============================================ */
.dust-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ============================================
   DEAD STOCK ALERT
   ============================================ */
.deadstock-alert {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 500;
  background: rgba(10,10,10,0.95);
  border: 1px solid var(--brass);
  padding: 1.25rem 2rem 1.25rem 1.5rem;
  max-width: 340px;
  transform: translateX(calc(100% + 3rem));
  transition: transform 0.6s var(--ease-out);
  backdrop-filter: blur(10px);
}
.deadstock-alert.visible {
  transform: translateX(0);
}
.deadstock-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  color: var(--archive-fog);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: color 0.2s;
}
.deadstock-close:hover {
  color: var(--brass);
}
.deadstock-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.5rem;
}
.deadstock-subtitle {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--archive-fog);
}
.deadstock-timer {
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}

/* ============================================
   PRODUCT CARD WEAR CLOCK & LIGHT FOLLOW
   ============================================ */
.product-card-archive-days {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: var(--space-sm);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.product-card:hover .product-card-archive-days {
  opacity: 1;
}
.product-card-light-follow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  z-index: 1;
}
.product-card:hover .product-card-light-follow {
  opacity: 1;
}

/* ============================================
   PROVENANCE TIMELINE
   ============================================ */
.provenance-timeline {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.06);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.provenance-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.provenance-step {
  position: relative;
  padding-left: 24px;
  padding-bottom: var(--space-md);
}
.provenance-step:last-child {
  padding-bottom: 0;
}
.provenance-dot {
  position: absolute;
  left: 0;
  top: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 8px var(--brass-dim);
}
.provenance-line {
  position: absolute;
  left: 3.5px;
  top: 12px;
  width: 1px;
  bottom: 0;
  background: rgba(201,169,78,0.2);
}
.provenance-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.provenance-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--bone);
  text-transform: uppercase;
}
.provenance-date {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--archive-fog);
}

/* ============================================
   AUTHENTICATION DUEL
   ============================================ */
#auth-duel {
  position: relative;
  min-height: 100vh;
  padding: var(--space-2xl) var(--space-lg);
  background: linear-gradient(180deg, var(--void) 0%, #0d0d0d 50%, var(--void) 100%);
}
.duel-intro {
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  text-align: center;
}
.duel-intro p {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--archive-fog);
  line-height: 1.8;
}
.duel-arena {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  max-width: 1000px;
  margin: 0 auto var(--space-xl);
  flex-wrap: wrap;
}
.duel-specimen {
  flex: 1;
  min-width: 280px;
  max-width: 420px;
  background: var(--concrete);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  transition: border-color 0.4s;
}
.duel-specimen:hover {
  border-color: var(--brass-dim);
}
.duel-specimen-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brass);
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}
.duel-specimen-image {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--void);
}
.duel-specimen-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85) contrast(1.1);
}
.duel-vs {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brass);
  letter-spacing: 0.2em;
}
.duel-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.duel-btn {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  background: transparent;
  border: 1px solid var(--brass-dim);
  padding: 0.9rem 2rem;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
}
.duel-btn:hover {
  background: rgba(201,169,78,0.1);
  border-color: var(--brass);
  box-shadow: 0 0 20px var(--brass-glow);
}
.duel-btn:disabled {
  opacity: 0.4;
  pointer-events: none;
}
.duel-result {
  max-width: 700px;
  margin: 0 auto var(--space-lg);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.8;
  color: var(--archive-fog);
  text-align: center;
  min-height: 2em;
}
.duel-result .correct {
  color: var(--brass);
}
.duel-result .incorrect {
  color: var(--signal-red);
}
.duel-score {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: var(--space-lg);
}
.duel-next {
  display: block;
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--brass);
  border: none;
  padding: 0.8rem 2rem;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}
.duel-next:hover {
  background: #d4b45a;
  box-shadow: 0 0 20px var(--brass-glow);
}

@media (max-width: 768px) {
  .duel-arena {
    flex-direction: column;
  }
  .duel-vs {
    font-size: 1rem;
  }
  .duel-controls {
    flex-direction: column;
    align-items: center;
  }
}

/* ============================================
   CONSTELLATION VIEW
   ============================================ */
.constellation-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--archive-fog);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  margin-left: var(--space-md);
}

.constellation-toggle:hover {
  color: var(--brass);
  border-color: var(--brass-dim);
}

.constellation-toggle.active {
  color: var(--brass);
  border-color: var(--brass);
  background: rgba(201,169,78,0.08);
}

.constellation-toggle svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Constellation canvas container */
.constellation-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.8s var(--ease-out);
}

.constellation-container.active {
  height: 80vh;
  opacity: 1;
  margin-bottom: var(--space-xl);
}

.constellation-container canvas {
  width: 100%;
  height: 100%;
  cursor: grab;
}

.constellation-container canvas:active {
  cursor: grabbing;
}

/* Constellation tooltip */
.constellation-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(10,10,10,0.95);
  border: 1px solid var(--brass-dim);
  padding: 0.75rem 1rem;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 50;
  max-width: 250px;
  backdrop-filter: blur(10px);
}

.constellation-tooltip.visible {
  opacity: 1;
}

.constellation-tooltip-brand {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.25rem;
}

.constellation-tooltip-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--bone);
}

.constellation-tooltip-cat {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--archive-fog);
  margin-top: 0.25rem;
}

/* Legend */
.constellation-legend {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 10;
}

.constellation-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--archive-fog);
}

.constellation-legend-line {
  width: 20px;
  height: 1px;
}

/* ============================================
   GRAVIMETRIC SCROLL SYSTEM
   ============================================ */
body.scroll-fast .product-card-image img {
  filter: brightness(0.6) contrast(1.2) blur(2px) !important;
  transition: filter 0.15s linear !important;
}

body.scroll-fast .product-card-info {
  opacity: 0.4;
  transition: opacity 0.15s linear !important;
}

body.scroll-fast .product-card-footer {
  opacity: 0;
  transition: opacity 0.1s linear !important;
}

body.scroll-medium .product-card-image img {
  filter: brightness(0.75) contrast(1.1) blur(0.5px) !important;
  transition: filter 0.3s var(--ease-out) !important;
}

body.scroll-medium .product-card-info {
  opacity: 0.7;
  transition: opacity 0.3s var(--ease-out) !important;
}

body.scroll-slow .product-card-image img {
  filter: brightness(0.9) contrast(1.05) !important;
  transition: filter 0.6s var(--ease-out) !important;
}

body.scroll-slow .product-card-info {
  opacity: 1;
  transition: opacity 0.6s var(--ease-out) !important;
}

/* Patience pulse — product card glows when idle */
@keyframes patiencePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(201,169,78,0), 0 0 0 rgba(201,169,78,0);
    border-color: rgba(255,255,255,0.04);
  }
  50% {
    box-shadow: 0 0 30px rgba(201,169,78,0.12), 0 0 60px rgba(201,169,78,0.05);
    border-color: var(--brass-dim);
  }
}

.product-card.patience-pulse {
  animation: patiencePulse 2.5s var(--ease-in-out) infinite;
}

.product-card.patience-pulse .product-card-image::after {
  opacity: 1 !important;
}

/* Gravimetric speed indicator */
.scroll-velocity-indicator {
  position: fixed;
  top: 50%;
  right: 1.5rem;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
}

.scroll-velocity-indicator.visible {
  opacity: 1;
}

.velocity-bar {
  width: 2px;
  height: 8px;
  background: rgba(255,255,255,0.1);
  transition: all 0.15s linear;
}

.velocity-bar.lit {
  background: var(--brass);
  box-shadow: 0 0 6px var(--brass-dim);
}

.velocity-label {
  font-family: var(--font-mono);
  font-size: 0.45rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--archive-fog);
  writing-mode: vertical-rl;
  margin-top: 0.5rem;
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .nav-plates {
    gap: var(--space-md);
    margin-top: var(--space-xl);
  }

  .nav-plate {
    font-size: 0.6rem;
    padding: 0.6rem 1.2rem;
  }

  .section-header {
    padding-top: var(--space-xl);
  }

  .filter-btn {
    font-size: 0.5rem;
    padding: 0.35rem 0.75rem;
  }

  .loading-status {
    font-size: 0.45rem;
  }

  .vault-lock {
    width: 70px;
    height: 70px;
  }

  .product-card-name {
    font-size: 0.85rem;
  }

  .product-card-brand {
    font-size: 0.5rem;
  }

  .product-card-price {
    font-size: 0.9rem;
  }
}

/* ============================================
   CART TOGGLE & BADGE
   ============================================ */
.cart-toggle {
  position: relative;
  background: none;
  border: none;
  color: var(--bone);
  cursor: pointer;
  padding: 0.5rem;
  margin-right: 0.5rem;
  transition: color 0.3s var(--ease-out);
}

.cart-toggle:hover {
  color: var(--brass);
}

.cart-badge {
  position: absolute;
  top: 0;
  right: -2px;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brass);
  color: var(--void);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}

.cart-badge.has-items {
  opacity: 1;
  transform: scale(1);
}

/* ============================================
   CART DRAWER
   ============================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 450;
  width: 380px;
  max-width: 100%;
  background: rgba(15,15,15,0.98);
  border-left: 1px solid var(--brass-dim);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-out);
  overscroll-behavior: contain;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cart-drawer-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--bone);
  letter-spacing: 0.1em;
}

.cart-drawer-close {
  background: none;
  border: 1px solid var(--brass-dim);
  color: var(--bone);
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s var(--ease-out);
}

.cart-drawer-close:hover {
  border-color: var(--brass);
  background: rgba(201,169,78,0.1);
}

.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  -webkit-overflow-scrolling: touch;
}

.cart-empty-msg {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--archive-fog);
  text-align: center;
  padding: 3rem 1rem;
  letter-spacing: 0.1em;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  align-items: flex-start;
}

.cart-item-thumb {
  width: 60px;
  height: 80px;
  object-fit: cover;
  background: var(--void);
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.04);
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-brand {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.25rem;
}

.cart-item-name {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--bone);
  margin-bottom: 0.35rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item-price {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--archive-fog);
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--archive-fog);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem;
  transition: color 0.2s;
  flex-shrink: 0;
}

.cart-item-remove:hover {
  color: var(--brass);
}

.cart-drawer-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone);
}

.btn-checkout-cart {
  width: 100%;
  padding: 1rem;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--brass);
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
}

.btn-checkout-cart:hover {
  background: #d4b45a;
  box-shadow: 0 0 30px var(--brass-glow);
}

/* ============================================
   PRODUCT CARD FOOTER ADD BUTTON
   ============================================ */
.product-card-footer {
  padding: 0.75rem 1.5rem;
  background: rgba(0,0,0,0.2);
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-card-add-btn {
  background: none;
  border: 1px solid var(--brass-dim);
  color: var(--brass);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  touch-action: manipulation;
  white-space: nowrap;
}

.product-card-add-btn:hover {
  background: rgba(201,169,78,0.15);
  border-color: var(--brass);
  box-shadow: 0 0 12px var(--brass-glow);
}

/* ============================================
   ORDER / VERIFY CONFIRMATION
   ============================================ */
.confirmation-msg {
  margin-top: var(--space-md);
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  background: rgba(201,169,78,0.08);
  border: 1px solid var(--brass-dim);
  text-align: center;
  animation: fadeInUp 0.4s var(--ease-out);
}

/* ============================================
   MOBILE OPTIMIZATION ENHANCEMENTS
   ============================================ */
/* Touch optimization */
button, a, .product-card, .nav-plate, .filter-btn, .shipping-card, .vault-entry, .duel-btn {
  touch-action: manipulation;
}

/* Modal scroll on mobile */
.inspection-overlay {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .filter-bar {
    gap: var(--space-sm);
    padding: 0 var(--space-sm);
  }

  .filter-btn {
    font-size: 0.55rem;
    padding: 0.4rem 0.9rem;
  }

  .constellation-toggle {
    font-size: 0.5rem;
    padding: 0.4rem 0.75rem;
    margin-left: var(--space-sm);
  }

  .duel-arena {
    flex-direction: column;
  }

  .duel-specimen {
    width: 100%;
    max-width: 100%;
    min-width: unset;
  }

  .duel-vs {
    margin: var(--space-sm) 0;
    font-size: 1rem;
  }

  .deadstock-alert {
    left: 1rem;
    right: 1rem;
    max-width: none;
    padding: 1rem 1.5rem 1rem 1rem;
  }

  .dust-canvas,
  .scroll-velocity-indicator {
    display: none !important;
  }

  .cart-drawer {
    width: 100%;
  }
}
