/* demo/styles.css — Vermeil demo storefront
   Boutique-feel eCommerce showcase. The Lumen engine is loaded separately. */

:root {
  /* Dark mode neutrals — warm near-blacks with a hint of brown */
  --bg: #18130d;          /* warm near-black — page */
  --bg-warm: #221b12;     /* slightly lifted — footer */
  --bg-soft: #2a2218;     /* peachy dark — 3D media backdrops */
  --ink: #f0e6d6;         /* warm white text */
  --ink-soft: #b8a48a;    /* warm taupe — secondary text */
  --line: rgba(201, 169, 106, 0.22); /* subtle gold — borders + hairlines */

  /* Warm accents — brightened for dark backgrounds */
  --accent: #e07246;      /* copper — primary */
  --accent-warm: #e07b4d; /* terracotta */
  --accent-soft: #d4a574; /* golden tan */
  --rose: #d99a82;        /* dusty rose */
  --gold: #d4b275;        /* warm gold */
}

/* (Engine chrome overrides removed: the engine now runs inside an <iframe>
   so the demo's :root vars can't reach it. The engine uses its own light
   loader/picker defaults, which show briefly inside each iframe.) */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body { min-height: 100vh; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

/* ---- Header (catalog + detail) ---- */
.vermeil-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.vermeil-wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink);
  text-decoration: none;
}
.vermeil-wordmark:hover { text-decoration: none; }
.vermeil-nav { display: flex; gap: 24px; }
.vermeil-nav a {
  color: var(--ink-soft);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.vermeil-nav a:hover { color: var(--ink); text-decoration: none; }
.vermeil-nav a.is-active { color: var(--ink); }

/* ---- Product grid (catalog) ---- */
.vermeil-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 32px;
  max-width: 1280px;
  margin: 0 auto;
}
.product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.product-card:hover { transform: translateY(-3px); text-decoration: none; }
.product-card-media {
  position: relative;
  height: 320px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(201, 169, 106, 0.08);
}
.product-card-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.product-card-body { padding: 18px 4px 0; }
.product-card-label {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 4px;
}
.product-card-subtitle {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0 0 10px;
}
.product-card-cta {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- Product detail ---- */
.vermeil-detail {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  padding: 48px 32px 80px;
  max-width: 1280px;
  margin: 0 auto;
}
.vermeil-detail-media {
  height: 70vh;
  min-height: 480px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(201, 169, 106, 0.08);
}
.vermeil-detail-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.vermeil-detail-hint {
  position: absolute;
  bottom: 22px;
  left: 24px;
  z-index: 6;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.75;
  pointer-events: none;
}
.vermeil-detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 0;
}
.vermeil-back {
  display: inline-block;
  color: var(--ink-soft);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
  text-decoration: none;
}
.vermeil-back:hover { color: var(--ink); text-decoration: none; }
.vermeil-detail-info h1 {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  margin-bottom: 8px;
}
.vermeil-detail-subtitle {
  color: var(--ink-soft);
  font-size: 1.02rem;
  margin-bottom: 24px;
}
.vermeil-detail-desc {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.65;
  margin: 0 0 32px;
  max-width: 48ch;
}
.vermeil-detail-price {
  color: var(--ink-soft);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.vermeil-detail-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  align-self: flex-start;
  transition: background 0.15s ease;
}
.vermeil-detail-cta:hover { background: var(--accent-soft); text-decoration: none; }

/* ---- 404 ---- */
.vermeil-404 {
  text-align: center;
  padding: 80px 32px;
  max-width: 640px;
  margin: 0 auto;
}
.vermeil-404 h1 { font-size: 2rem; margin-bottom: 12px; }
.vermeil-404 p { color: var(--ink-soft); margin: 0 0 24px; }

/* ---- Footer ---- */
.vermeil-footer {
  padding: 32px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  background: var(--bg-warm);
}
.vermeil-footer a { color: var(--accent); }

/* ---- Mobile ---- */
@media (max-width: 900px) {
  .vermeil-grid { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .vermeil-detail { grid-template-columns: 1fr; gap: 24px; padding: 24px 24px 48px; }
  .vermeil-detail-media { height: 60vh; min-height: 360px; }
  .vermeil-detail-hint { display: none; }
  .vermeil-header { padding: 14px 20px; }
  .vermeil-wordmark { font-size: 1.2rem; letter-spacing: 0.14em; }
  .vermeil-nav { gap: 16px; }
  .vermeil-nav a { font-size: 0.78rem; }
}
