[object Object]

← back to Wallco Ai

feat(pdp): V1 Two-Column Compact theme — /design/:id/compact + Theme submenu entry

701c89a06eba307034cf977c1c34d1746e52ce08 · 2026-05-28 17:40:20 -0700 · Steve Abrams

Image left 60% / sticky buy rail right 40% with 8 collapsed accordions
(specs / paints / stripes / share / furnish / trade / ratings / generator).
Fetches /api/design/:id like V2; adds V1 entry above V2 in the hamburger
Theme submenu.

Files touched

Diff

commit 701c89a06eba307034cf977c1c34d1746e52ce08
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Thu May 28 17:40:20 2026 -0700

    feat(pdp): V1 Two-Column Compact theme — /design/:id/compact + Theme submenu entry
    
    Image left 60% / sticky buy rail right 40% with 8 collapsed accordions
    (specs / paints / stripes / share / furnish / trade / ratings / generator).
    Fetches /api/design/:id like V2; adds V1 entry above V2 in the hamburger
    Theme submenu.
---
 public/theme-variants/v1-compact.html | 673 ++++++++++++++++++++++++++++++++++
 server.js                             |  12 +
 2 files changed, 685 insertions(+)

diff --git a/public/theme-variants/v1-compact.html b/public/theme-variants/v1-compact.html
new file mode 100644
index 0000000..5a759fe
--- /dev/null
+++ b/public/theme-variants/v1-compact.html
@@ -0,0 +1,673 @@
+<!doctype html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<title>wallco.ai — Two-Column Compact PDP</title>
+<link rel="icon" href="/static/favicon.ico" type="image/x-icon">
+<style>
+  :root {
+    --bg: #faf8f3;
+    --ink: #1a1611;
+    --muted: #8a8276;
+    --line: #e2dccd;
+    --panel: #f3efe5;
+    --panel-2: #ebe5d6;
+    --accent: #c9b07a;
+    --accent-dk: #1a1611;
+    --hero-bg: #e6dfd2;
+    --calc: #ddd4ec;
+    --coord: #d3e3e5;
+    --share: #f3dcce;
+    --room: #cfdac4;
+    --rate: #f0e7c3;
+    --trade: #e6ddd2;
+    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
+    --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
+    --r: 10px;
+  }
+  * { box-sizing: border-box; }
+  html, body { margin: 0; padding: 0; }
+  body {
+    background: var(--bg);
+    color: var(--ink);
+    font: 14px/1.5 var(--sans);
+    -webkit-font-smoothing: antialiased;
+  }
+  a { color: inherit; }
+  button { font: inherit; cursor: pointer; }
+
+  /* ── topbar (matches Bento) ─────────────────────────────────────────── */
+  header.topbar {
+    position: sticky; top: 0; z-index: 30;
+    background: rgba(250,248,243,.92);
+    backdrop-filter: blur(10px);
+    border-bottom: 1px solid var(--line);
+    padding: 10px 28px;
+    display: flex; align-items: center; gap: 24px;
+  }
+  header .brand { font: 600 18px/1 var(--serif); letter-spacing: .05em; }
+  header nav { font-size: 12.5px; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }
+  header nav a { text-decoration: none; }
+  header nav a:hover { color: var(--ink); }
+  header .grow { flex: 1; }
+  header .switcher { font-size: 11px; color: var(--muted); }
+  header .switcher a { text-decoration: underline; color: var(--ink); margin-left: 8px; }
+
+  /* ── breadcrumb ─────────────────────────────────────────────────────── */
+  .crumb {
+    max-width: 1640px; margin: 0 auto; padding: 16px 28px 0;
+    display: flex; align-items: center; gap: 18px; font-size: 12px; color: var(--muted);
+  }
+  .crumb .grow { flex: 1; }
+  .crumb a { color: var(--ink); text-decoration: none; }
+  .crumb .nav a { color: var(--muted); }
+
+  /* ── two-column layout ─────────────────────────────────────────────── */
+  main.compact {
+    max-width: 1640px; margin: 0 auto; padding: 20px 28px 80px;
+    display: grid;
+    grid-template-columns: minmax(0, 60fr) minmax(0, 40fr);
+    gap: 28px;
+    align-items: start;
+  }
+  .col-left { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
+  .col-right {
+    position: sticky; top: 70px;
+    max-height: calc(100vh - 90px); overflow-y: auto;
+    display: flex; flex-direction: column; gap: 12px;
+    padding-right: 4px;
+  }
+  .col-right::-webkit-scrollbar { width: 6px; }
+  .col-right::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
+
+  /* ── shared card ────────────────────────────────────────────────────── */
+  .card {
+    background: var(--panel);
+    border: 1px solid var(--line);
+    border-radius: var(--r);
+    padding: 16px;
+  }
+  .card h3 {
+    margin: 0 0 10px;
+    font: 600 11px/1.2 var(--sans);
+    text-transform: uppercase;
+    letter-spacing: .08em;
+    color: var(--muted);
+  }
+
+  /* ── left column ─────────────────────────────────────────────────────── */
+  .hero {
+    background: var(--hero-bg);
+    border-radius: var(--r);
+    aspect-ratio: 1/1;
+    position: relative; overflow: hidden;
+    box-shadow: 0 1px 0 var(--line);
+  }
+  .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
+  .hero .pill {
+    position: absolute; top: 14px; right: 14px;
+    background: rgba(250,248,243,.94); color: var(--ink);
+    font: 600 10.5px/1 var(--sans); letter-spacing: .06em;
+    padding: 7px 10px; border-radius: 999px; text-transform: uppercase;
+  }
+  .hero .info {
+    position: absolute; left: 14px; bottom: 14px;
+    background: rgba(26,22,17,.78); color: #f0eada;
+    font: 600 11px/1 var(--sans); letter-spacing: .06em;
+    padding: 8px 12px; border-radius: 6px; text-transform: uppercase;
+  }
+
+  .thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
+  .thumbs .thumb {
+    aspect-ratio: 1.5/1;
+    background: var(--panel); border: 1px solid var(--line);
+    border-radius: 8px; padding: 8px;
+    font: 600 10.5px/1.2 var(--sans); color: var(--muted); letter-spacing: .05em; text-transform: uppercase;
+    display: flex; align-items: flex-start; cursor: pointer; transition: all .15s;
+    background-size: cover; background-position: center; position: relative;
+  }
+  .thumbs .thumb:hover { border-color: var(--accent); color: var(--ink); }
+  .thumbs .thumb .lbl { background: rgba(250,248,243,.92); padding: 3px 7px; border-radius: 4px; }
+
+  .prevnext { display: flex; gap: 14px; font-size: 12px; color: var(--muted); padding: 4px 2px; }
+  .prevnext a { color: var(--ink); text-decoration: none; }
+  .prevnext .grow { flex: 1; }
+
+  .atscale {
+    position: relative;
+    background: var(--hero-bg);
+    border-radius: var(--r);
+    height: 360px;
+    overflow: hidden;
+  }
+  .atscale .repeat {
+    position: absolute; inset: 0;
+    background-repeat: repeat;
+    background-size: 220px 220px;
+  }
+  .atscale .label {
+    position: absolute; left: 14px; bottom: 14px;
+    background: rgba(26,22,17,.78); color: #f0eada;
+    font: 600 11px/1 var(--sans); letter-spacing: .06em;
+    padding: 8px 12px; border-radius: 6px; text-transform: uppercase;
+  }
+  .atscale .slider {
+    position: absolute; right: 14px; bottom: 14px;
+    background: rgba(250,248,243,.94);
+    border-radius: 999px; padding: 8px 14px;
+    font: 500 11px/1 var(--sans); color: var(--ink);
+    display: flex; align-items: center; gap: 8px;
+  }
+  .atscale .slider input[type=range] { width: 140px; accent-color: var(--accent); }
+
+  .room {
+    background: var(--room);
+    border-radius: var(--r);
+    height: 280px; padding: 16px;
+    background-size: cover; background-position: center;
+    position: relative;
+  }
+  .room .placeholder {
+    display: flex; align-items: center; justify-content: center;
+    height: 100%; color: var(--muted); font-size: 12px; font-style: italic;
+  }
+  .room .badge {
+    position: absolute; top: 14px; left: 14px;
+    background: rgba(26,22,17,.78); color: #f0eada;
+    font: 600 10.5px/1 var(--sans); letter-spacing: .06em;
+    padding: 7px 11px; border-radius: 999px; text-transform: uppercase;
+  }
+
+  .pairs {
+    background: var(--coord);
+    border-radius: var(--r);
+    padding: 16px;
+  }
+  .pairs h3 { margin-top: 0; }
+  .pair-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
+  .pair-grid .pair {
+    aspect-ratio: 1/1;
+    background: rgba(255,255,255,.55);
+    border-radius: 6px;
+    background-size: cover; background-position: center;
+  }
+
+  /* ── right column rail ─────────────────────────────────────────────── */
+  .title-card {
+    background: var(--bg); border: 1px solid var(--line);
+    border-radius: var(--r); padding: 18px;
+  }
+  .title-card .name { font: 500 26px/1.15 var(--serif); margin: 4px 0 6px; }
+  .title-card .meta { color: var(--muted); font-size: 12.5px; }
+  .title-card .meta .sep { padding: 0 6px; opacity: .5; }
+  .title-card .chips { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
+  .chip {
+    display: inline-flex; align-items: center; gap: 6px;
+    background: var(--panel-2); color: var(--ink);
+    border-radius: 999px; padding: 5px 10px;
+    font: 500 11px/1 var(--sans); letter-spacing: .02em;
+    border: 1px solid var(--line);
+  }
+  .chip .dot { width: 10px; height: 10px; border-radius: 999px; background: #888; }
+
+  .cta {
+    display: flex; align-items: center; justify-content: center;
+    border-radius: var(--r); padding: 0 18px;
+    font: 700 12.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
+    height: 56px; width: 100%;
+    border: 1px solid transparent;
+  }
+  .cta.sample { background: var(--accent); color: var(--accent-dk); }
+  .cta.buy { background: var(--accent-dk); color: #f0eada; }
+  .cta:hover { filter: brightness(1.04); }
+  .cta:active { transform: translateY(1px); }
+
+  .calc { background: var(--calc); }
+  .calc .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
+  .calc label { font-size: 11px; color: var(--muted); display: block; margin-bottom: 2px; }
+  .calc input, .calc select { width: 100%; padding: 7px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; background: #fff; }
+  .calc .total { margin-top: 6px; padding: 10px; background: rgba(255,255,255,.6); border-radius: 8px; font-size: 12.5px; }
+  .calc .total b { font-size: 16px; font-family: var(--serif); font-weight: 500; }
+
+  .palette { background: var(--panel); }
+  .palette .swatches { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
+  .palette .sw { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); position: relative; cursor: pointer; }
+  .palette .sw:hover .lbl { display: block; }
+  .palette .sw .lbl { display: none; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 6px; white-space: nowrap; font: 500 10px/1 var(--sans); background: var(--ink); color: var(--bg); padding: 4px 6px; border-radius: 4px; z-index: 5; }
+  .palette .dom { font-size: 11px; color: var(--muted); margin-top: 8px; }
+
+  .adjust { background: var(--panel); }
+  .adjust .sl { display: grid; grid-template-columns: 70px 1fr 32px; align-items: center; gap: 6px; font-size: 11px; padding: 2px 0; }
+  .adjust .sl input[type=range] { accent-color: var(--accent); width: 100%; }
+  .adjust .sl .v { font-variant-numeric: tabular-nums; color: var(--muted); text-align: right; }
+
+  /* ── accordions ────────────────────────────────────────────────────── */
+  details.acc {
+    background: #fff; border: 1px solid var(--line); border-radius: 8px;
+    padding: 10px 14px; font-size: 12.5px;
+  }
+  details.acc[open] { padding-bottom: 14px; }
+  details.acc summary {
+    cursor: pointer; font-weight: 600; list-style: none;
+    display: flex; justify-content: space-between; align-items: center;
+    color: var(--ink);
+  }
+  details.acc summary::after { content: '▾'; color: var(--muted); transition: transform .2s; font-size: 11px; }
+  details.acc[open] summary::after { transform: rotate(180deg); }
+  details.acc summary .hint { font-weight: 400; font-size: 11px; color: var(--muted); margin-left: auto; margin-right: 10px; }
+  details.acc .acc-body { margin-top: 12px; color: var(--ink); line-height: 1.6; font-size: 12px; }
+  details.acc .acc-body pre { white-space: pre-wrap; word-break: break-word; font: 11px/1.5 ui-monospace, Menlo, monospace; background: var(--panel); padding: 10px; border-radius: 6px; max-height: 220px; overflow: auto; }
+
+  .specs-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
+  .specs-row:last-child { border-bottom: 0; }
+  .specs-row .k { color: var(--muted); }
+  .specs-row .v { font-weight: 600; text-align: right; }
+
+  .pill-list { display: flex; flex-wrap: wrap; gap: 6px; }
+  .pill { font-size: 11px; padding: 5px 9px; border-radius: 999px; background: rgba(255,255,255,.65); border: 1px solid rgba(0,0,0,.06); }
+
+  .tile-btns { display: flex; flex-wrap: wrap; gap: 6px; }
+  .tile-btn {
+    flex: 1; min-width: 76px;
+    background: rgba(255,255,255,.7); border: 1px solid rgba(0,0,0,.06);
+    padding: 8px 6px; border-radius: 8px;
+    font: 600 11px/1.2 var(--sans); color: var(--ink); text-align: center;
+    text-decoration: none;
+  }
+  .tile-btn:hover { background: #fff; }
+
+  /* ── footer ────────────────────────────────────────────────────────── */
+  footer.site {
+    border-top: 1px solid var(--line);
+    padding: 28px; text-align: center; color: var(--muted); font-size: 12px;
+    background: var(--panel); margin-top: 40px;
+  }
+  footer.site .h { font: 500 14px/1.4 var(--serif); color: var(--ink); margin-bottom: 4px; }
+
+  .loading-shell { display: flex; align-items: center; justify-content: center; height: 60vh; color: var(--muted); font-style: italic; font-size: 14px; }
+
+  /* ── modals (share / furnish / trade) ──────────────────────────────── */
+  dialog.modal {
+    border: 0; border-radius: 14px; padding: 0;
+    max-width: 540px; width: 92vw;
+    box-shadow: 0 24px 80px rgba(0,0,0,.25);
+    background: var(--bg);
+  }
+  dialog.modal::backdrop { background: rgba(20,17,14,.55); backdrop-filter: blur(4px); }
+  dialog.modal header { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
+  dialog.modal header h3 { margin: 0; font: 500 18px/1 var(--serif); }
+  dialog.modal .close { background: transparent; border: 0; font-size: 22px; color: var(--muted); }
+  dialog.modal .body { padding: 18px 22px 24px; }
+
+  /* ── responsive ────────────────────────────────────────────────────── */
+  @media (max-width: 1024px) {
+    main.compact { grid-template-columns: 1fr; gap: 18px; }
+    .col-right { position: static; max-height: none; }
+  }
+  @media (max-width: 640px) {
+    main.compact { padding: 16px; gap: 14px; }
+    header.topbar { flex-wrap: wrap; padding: 10px 14px; }
+    .crumb { padding: 12px 14px 0; }
+    .thumbs { grid-template-columns: repeat(3, 1fr); }
+    .pair-grid { grid-template-columns: repeat(3, 1fr); }
+  }
+</style>
+</head>
+<body>
+
+<header class="topbar">
+  <a href="/" class="brand">wallco.ai</a>
+  <nav>
+    <a href="/designs?sort=newest">Designs</a>
+    <a href="/designs?cat=monterey-mural">Murals</a>
+    <a href="/samples">Samples</a>
+    <a href="/basket">Basket</a>
+    <a href="/designer-studio">Designer Studio</a>
+  </nav>
+  <span class="grow"></span>
+  <span class="switcher">Theme: Two-Column Compact (V1) <a id="back-to-classic" href="#">← Classic view</a></span>
+</header>
+
+<div id="root" class="loading-shell">Loading design…</div>
+
+<dialog class="modal" id="m-share"><header><h3>Share this design</h3><button class="close" onclick="document.getElementById('m-share').close()">×</button></header><div class="body" id="m-share-body"></div></dialog>
+<dialog class="modal" id="m-furnish"><header><h3>Furnish this design</h3><button class="close" onclick="document.getElementById('m-furnish').close()">×</button></header><div class="body" id="m-furnish-body"></div></dialog>
+<dialog class="modal" id="m-trade"><header><h3>Trade tools</h3><button class="close" onclick="document.getElementById('m-trade').close()">×</button></header><div class="body" id="m-trade-body"></div></dialog>
+
+<script>
+(async function () {
+  const pathMatch = location.pathname.match(/\/design\/(\d+)/);
+  const idFromQuery = new URLSearchParams(location.search).get('id');
+  const id = pathMatch ? parseInt(pathMatch[1], 10) : (idFromQuery ? parseInt(idFromQuery, 10) : null);
+  if (!Number.isFinite(id) || id < 1) {
+    document.getElementById('root').textContent = 'No design id in URL.';
+    return;
+  }
+  document.getElementById('back-to-classic').href = '/design/' + id;
+
+  let design;
+  try {
+    const r = await fetch('/api/design/' + id, { credentials: 'same-origin' });
+    if (!r.ok) throw new Error('HTTP ' + r.status);
+    const j = await r.json();
+    design = j.design;
+  } catch (e) {
+    document.getElementById('root').textContent = 'Failed to load design #' + id + ' — ' + e.message;
+    return;
+  }
+
+  const title = design.title || ('Design No.' + id);
+  const cat = design.category || 'wallpaper';
+  const catDisplay = (cat || '')
+    .replace(/^botanical-wonders · /, 'Botanical Wonders — ')
+    .replace(/^designer-zoo-calm/, 'Designer Zoo Calm')
+    .replace(/^cactus-pine-scenic/, 'Cactus Pine Scenic')
+    .replace(/^monterey-mural/, 'Coastal Scenic')
+    .replace(/^tree-mural/, 'Full-Room Scenic')
+    .replace(/^cactus-11ft-mural/, 'Single-Subject Mural')
+    .replace(/-/g, ' ')
+    .replace(/\b\w/g, c => c.toUpperCase());
+  const kindLabel = design.kind === 'seamless_tile' ? 'Seamless Tile (24×24")'
+                  : design.kind === 'mural_panel' ? 'Mural Panel'
+                  : design.kind === 'mural' ? 'Single-Subject Mural' : (design.kind || 'pattern');
+  const isMural = design.kind === 'mural_panel' || design.kind === 'mural';
+  const palette = Array.isArray(design.palette) ? design.palette : [];
+  const dominant = design.dominant_hex || (palette[0] && palette[0].hex) || '#888';
+  const img = design.image_url || ('/designs/img/by-id/' + id);
+  const w = Number(design.width_in) || 24;
+  const h = Number(design.height_in) || 24;
+  const repeatLabel = w + '"' + (w !== h ? ' × ' + h + '"' : '');
+  const rollOrPanel = isMural ? 'Per panel (36" × 11 ft)' : 'Per roll (27 ft)';
+  const handle = design.handle || ('wallco-' + id);
+  const generator = design.generator || 'wallco.ai';
+  const roomMockup = (design.room_mockups && (
+    typeof design.room_mockups === 'object' && !Array.isArray(design.room_mockups)
+      ? Object.keys(design.room_mockups)[0]
+      : design.room_mockups[0]
+  )) || null;
+  const roomImgUrl = roomMockup ? ('/designs/room/design_' + id + '_' + roomMockup + '.png') : null;
+
+  const root = document.getElementById('root');
+  root.className = '';
+  root.innerHTML = `
+<div class="crumb">
+  <a href="/designs">Designs</a>
+  <span>›</span>
+  <a href="/designs?cat=${encodeURIComponent(cat)}">${escapeHtml(catDisplay)}</a>
+  <span class="grow"></span>
+  <span class="nav">
+    <a href="/design/${id - 2}?theme=compact">← prev</a>
+    <a href="/design/${id + 2}?theme=compact">next →</a>
+  </span>
+</div>
+
+<main class="compact">
+
+  <!-- LEFT COLUMN ────────────────────────────────────────────────────── -->
+  <div class="col-left">
+
+    <div class="hero">
+      <img loading="eager" src="${img}" alt="${escapeAttr(title)}">
+      <span class="pill">${design.is_published ? 'Live' : 'Curating'}</span>
+      <span class="info">${escapeHtml(title)}</span>
+    </div>
+
+    <div class="thumbs">
+      <div class="thumb" style="background-image:url('${img}')"><span class="lbl">Tile</span></div>
+      <div class="thumb" style="background-image:url('${img}'); background-size: 60% auto;"><span class="lbl">Mural</span></div>
+      <div class="thumb"${roomImgUrl ? ` style="background-image:url('${roomImgUrl}')"` : ''}><span class="lbl">Room</span></div>
+      <div class="thumb"><span class="lbl">Crop</span></div>
+      <div class="thumb"><span class="lbl">Scale</span></div>
+    </div>
+
+    <div class="prevnext">
+      <a href="/design/${id - 2}?theme=compact">← prev</a>
+      <a href="/design/${id + 2}?theme=compact">next →</a>
+      <span class="grow"></span>
+      <span>Pattern No.${id}</span>
+    </div>
+
+    <div class="atscale">
+      <div class="repeat" style="background-image:url('${img}')"></div>
+      <span class="label">At-scale preview · 10 × 9 ft wall</span>
+      <span class="slider">scale <input type="range" min="80" max="360" value="220" id="scale-slider"></span>
+    </div>
+
+    <div class="room" ${roomImgUrl ? `style="background-image:url('${roomImgUrl}')"` : ''}>
+      <span class="badge">See in a room</span>
+      ${roomImgUrl ? '' : '<div class="placeholder">Room mockup not yet generated</div>'}
+    </div>
+
+    <div class="pairs">
+      <h3>Pairs well with — 6 designer wallpapers</h3>
+      <div class="pair-grid" id="pair-grid">
+        <div class="pair"></div><div class="pair"></div><div class="pair"></div>
+        <div class="pair"></div><div class="pair"></div><div class="pair"></div>
+      </div>
+    </div>
+
+  </div>
+
+  <!-- RIGHT COLUMN ── sticky buy rail ────────────────────────────────── -->
+  <div class="col-right">
+
+    <div class="title-card">
+      <div class="name">${escapeHtml(title)}</div>
+      <div class="meta">
+        ${escapeHtml(catDisplay)}<span class="sep">·</span>${escapeHtml(kindLabel)}<span class="sep">·</span>${rollOrPanel}
+      </div>
+      <div class="chips">
+        <span class="chip"><span class="dot" style="background:${escapeAttr(dominant)}"></span>${escapeHtml(dominant)}</span>
+        <span class="chip">No.${id}</span>
+        <span class="chip">${escapeHtml(handle)}</span>
+      </div>
+    </div>
+
+    <button class="cta sample" onclick="addSample()">Add sample · $4.25</button>
+    <button class="cta buy" onclick="document.getElementById('calc-input').focus()">Buy by the roll →</button>
+
+    <div class="card calc">
+      <h3 style="color:#5a4f73">Calculator</h3>
+      <div class="row">
+        <div><label>Wall W (ft)</label><input id="calc-input" type="number" min="1" max="80" step="0.5" value="10"></div>
+        <div><label>Wall H (ft)</label><input id="calc-h" type="number" min="1" max="20" step="0.5" value="9"></div>
+      </div>
+      <div class="row">
+        <div><label>Roll width</label>
+          <select id="calc-rw">
+            <option value="24">24" residential</option>
+            <option value="36">36" wide-roll</option>
+            <option value="52">52" commercial</option>
+          </select>
+        </div>
+        <div><label>Repeat</label><input value='${repeatLabel}' readonly></div>
+      </div>
+      <div class="total" id="calc-total">— rolls · $—</div>
+    </div>
+
+    <div class="card palette">
+      <h3>Palette · drag to recolor</h3>
+      <div class="swatches">
+        ${palette.length ? palette.slice(0, 5).map(p =>
+          `<div class="sw" style="background:${escapeAttr(p.hex)}"><span class="lbl">${escapeHtml(p.hex)} · ${(p.pct || 0).toFixed(1)}%</span></div>`
+        ).join('') : `<div class="sw" style="background:${escapeAttr(dominant)}"><span class="lbl">${escapeHtml(dominant)}</span></div>`}
+      </div>
+      <div class="dom">Dominant ${escapeHtml(dominant)}</div>
+    </div>
+
+    <div class="card adjust">
+      <h3>Image adjustments</h3>
+      <div class="sl"><label>Hue</label><input type="range" min="-180" max="180" value="0"><span class="v">0</span></div>
+      <div class="sl"><label>Sat</label><input type="range" min="0" max="200" value="100"><span class="v">100</span></div>
+      <div class="sl"><label>Bri</label><input type="range" min="50" max="150" value="100"><span class="v">100</span></div>
+      <div class="sl"><label>Con</label><input type="range" min="50" max="150" value="100"><span class="v">100</span></div>
+    </div>
+
+    <details class="acc">
+      <summary>Specs <span class="hint">Kind · W · Repeat · Roll · Material</span></summary>
+      <div class="acc-body">
+        <div class="specs-row"><span class="k">Category</span><span class="v">${escapeHtml(catDisplay)}</span></div>
+        <div class="specs-row"><span class="k">Kind</span><span class="v">${escapeHtml(kindLabel)}</span></div>
+        <div class="specs-row"><span class="k">Width</span><span class="v">${w}"</span></div>
+        <div class="specs-row"><span class="k">Repeat</span><span class="v">${repeatLabel}</span></div>
+        <div class="specs-row"><span class="k">Sold by</span><span class="v">${rollOrPanel}</span></div>
+        <div class="specs-row"><span class="k">${isMural ? 'Panel size' : 'Roll length'}</span><span class="v">${isMural ? (w + '" × 11 ft') : '27 ft'}</span></div>
+        <div class="specs-row"><span class="k">Material</span><span class="v">Type II vinyl</span></div>
+        <div class="specs-row"><span class="k">Designed by</span><span class="v">${escapeHtml(generator)}</span></div>
+        <div class="specs-row"><span class="k">Pattern No.</span><span class="v">${id}</span></div>
+        <div class="specs-row"><span class="k">Handle</span><span class="v">${escapeHtml(handle)}</span></div>
+        <div class="specs-row"><span class="k">Dominant hex</span><span class="v">${escapeHtml(dominant)}</span></div>
+      </div>
+    </details>
+
+    <details class="acc">
+      <summary>Coordinate paints <span class="hint">SW · BM · F&amp;B · Behr · PPG</span></summary>
+      <div class="acc-body">
+        <div class="pill-list">
+          <a class="pill" href="#">Sherwin-Williams</a>
+          <a class="pill" href="#">Dunn-Edwards</a>
+          <a class="pill" href="#">Benjamin Moore</a>
+          <a class="pill" href="#">Farrow &amp; Ball</a>
+          <a class="pill" href="#">Behr</a>
+          <a class="pill" href="#">PPG</a>
+          <a class="pill" href="#">RAL</a>
+        </div>
+      </div>
+    </details>
+
+    <details class="acc">
+      <summary>Coordinate stripes &amp; plaids <span class="hint">24 generated</span></summary>
+      <div class="acc-body">
+        <div class="pair-grid" style="grid-template-columns:repeat(6,1fr); gap:6px;">
+          ${Array.from({length: 12}).map(() => '<div class="pair"></div>').join('')}
+        </div>
+      </div>
+    </details>
+
+    <details class="acc">
+      <summary>Share this design <span class="hint">Pin · IG · Copy</span></summary>
+      <div class="acc-body">
+        <div class="tile-btns">
+          <a class="tile-btn" href="#" onclick="openShare();return false">Pin</a>
+          <a class="tile-btn" href="#" onclick="openShare();return false">Instagram</a>
+          <a class="tile-btn" href="#" onclick="copyLink();return false">Copy link</a>
+        </div>
+      </div>
+    </details>
+
+    <details class="acc">
+      <summary>Furnish this design <span class="hint">Res · Com · Hosp · Health</span></summary>
+      <div class="acc-body">
+        <div class="tile-btns">
+          <a class="tile-btn" href="#" onclick="openFurnish();return false">Residential</a>
+          <a class="tile-btn" href="#" onclick="openFurnish();return false">Commercial</a>
+          <a class="tile-btn" href="#" onclick="openFurnish();return false">Hospitality</a>
+          <a class="tile-btn" href="#" onclick="openFurnish();return false">Healthcare</a>
+        </div>
+      </div>
+    </details>
+
+    <details class="acc">
+      <summary>Trade tools <span class="hint">Tear · Email · Compare</span></summary>
+      <div class="acc-body">
+        <div class="tile-btns">
+          <a class="tile-btn" href="/design/${id}/tearsheet" target="_blank">Tear sheet</a>
+          <a class="tile-btn" href="#" onclick="openTrade();return false">Email client</a>
+          <a class="tile-btn" href="#" onclick="openTrade();return false">Compare</a>
+          <a class="tile-btn" href="#" onclick="saveDesign(${id});return false">Save</a>
+        </div>
+      </div>
+    </details>
+
+    <details class="acc">
+      <summary>Ratings &amp; reviews <span class="hint">Curated · ★★★★☆</span></summary>
+      <div class="acc-body">
+        <div style="font-size:22px; letter-spacing:4px; color:#b89a4a">★★★★☆</div>
+        <div style="font-size:11.5px; color:var(--muted); margin-top:4px">Curated · 4.2 · ${escapeHtml(design.user_vote_count || 0)} votes</div>
+      </div>
+    </details>
+
+    <details class="acc">
+      <summary>Generator + prompt <span class="hint">wallco.ai · seed ${escapeHtml(design.seed || '—')}</span></summary>
+      <div class="acc-body">
+        <pre>${escapeHtml((design.prompt || '').slice(0, 1200))}${(design.prompt && design.prompt.length > 1200) ? '\n…[truncated]' : ''}</pre>
+      </div>
+    </details>
+
+  </div>
+</main>
+
+<footer class="site">
+  <div class="h">wallco.ai — Curated-original wallpaper &amp; murals</div>
+  <div>A Designer Wallcoverings company · Sherman Oaks, CA · steve@designerwallcoverings.com</div>
+</footer>
+`;
+
+  // ── wire up interactivity ──
+  const calcW = root.querySelector('#calc-input');
+  const calcH = root.querySelector('#calc-h');
+  const calcRW = root.querySelector('#calc-rw');
+  const total = root.querySelector('#calc-total');
+  function recalc() {
+    const ww = parseFloat(calcW.value) || 0;
+    const wh = parseFloat(calcH.value) || 0;
+    const rwInches = parseFloat(calcRW.value) || 24;
+    if (ww < 1 || wh < 1) { total.textContent = '— rolls · $—'; return; }
+    if (isMural) {
+      const panels = Math.ceil((ww * 12) / rwInches);
+      const cost = panels * 245;
+      total.innerHTML = '<b>' + panels + '</b> panels · <b>$' + cost.toLocaleString() + '</b>';
+    } else {
+      const widthPanels = Math.ceil((ww * 12) / rwInches);
+      const rollsPerPanel = Math.ceil(wh / 27);
+      const rolls = widthPanels * rollsPerPanel;
+      const cost = rolls * 165;
+      total.innerHTML = '<b>' + rolls + '</b> rolls · <b>$' + cost.toLocaleString() + '</b> · ' + widthPanels + ' panels wide';
+    }
+  }
+  [calcW, calcH, calcRW].forEach(el => el.addEventListener('input', recalc));
+  recalc();
+
+  const scale = root.querySelector('#scale-slider');
+  const repeat = root.querySelector('.atscale .repeat');
+  scale.addEventListener('input', () => {
+    const v = scale.value;
+    repeat.style.backgroundSize = v + 'px ' + v + 'px';
+  });
+
+  root.querySelectorAll('.adjust .sl').forEach(row => {
+    const r = row.querySelector('input[type=range]');
+    const v = row.querySelector('.v');
+    r.addEventListener('input', () => { v.textContent = r.value; });
+  });
+
+  document.getElementById('m-share-body').innerHTML =
+    '<p>Share <b>' + escapeHtml(title) + '</b> on:</p>' +
+    '<div class="tile-btns" style="margin-top:8px"><a class="tile-btn" href="#">Pinterest</a><a class="tile-btn" href="#">Instagram</a><a class="tile-btn" href="#" onclick="copyLink();return false">Copy link</a></div>';
+  document.getElementById('m-furnish-body').innerHTML =
+    '<p>Generate AI furnishings curated to this pattern\'s palette.</p>' +
+    '<div class="tile-btns" style="margin-top:8px"><a class="tile-btn" href="#">Residential</a><a class="tile-btn" href="#">Commercial</a><a class="tile-btn" href="#">Hospitality</a><a class="tile-btn" href="#">Healthcare</a></div>';
+  document.getElementById('m-trade-body').innerHTML =
+    '<p>Trade-only tools (interior designers + specifiers).</p>' +
+    '<div class="tile-btns" style="margin-top:8px"><a class="tile-btn" href="/design/' + id + '/tearsheet" target="_blank">Tear sheet PDF</a><a class="tile-btn" href="#">Email to client</a><a class="tile-btn" href="#">Compare 2 patterns</a><a class="tile-btn" href="#">Add to saved</a></div>';
+})();
+
+function openShare() { document.getElementById('m-share').showModal(); }
+function openFurnish() { document.getElementById('m-furnish').showModal(); }
+function openTrade() { document.getElementById('m-trade').showModal(); }
+async function copyLink() {
+  try { await navigator.clipboard.writeText(location.href.replace(/\/compact$/, '')); alert('Link copied'); }
+  catch { alert('Copy failed — ' + location.href); }
+}
+function addSample() { alert('Sample added (stub — wire to /api/cart/sample/' + (new URL(location).pathname.match(/\d+/) || [0])[0] + ')'); }
+function saveDesign(id) { alert('Saved design #' + id + ' (stub — wire to /api/saved)'); }
+
+function escapeHtml(v) {
+  if (v == null) return '';
+  return String(v).replace(/[&<>"']/g, c => ({'&':'&amp;','<':'&lt;','>':'&gt;','"':'&quot;',"'":'&#39;'}[c]));
+}
+function escapeAttr(v) { return escapeHtml(v); }
+</script>
+</body>
+</html>
diff --git a/server.js b/server.js
index 27c9932..5096310 100644
--- a/server.js
+++ b/server.js
@@ -426,6 +426,15 @@ app.get('/design/:id/bento', (req, res) => {
   res.sendFile(path.join(__dirname, 'public', 'theme-variants', 'v2-bento.html'));
 });
 
+// ── /design/:id/compact — theme V1 (Two-Column Compact). Image left 60%,
+// sticky buy rail right 40% with 8 collapsed accordions for secondary
+// content. Live at https://wallco.ai/design/54099/compact.
+app.get('/design/:id/compact', (req, res) => {
+  const id = parseInt(req.params.id, 10);
+  if (!Number.isFinite(id) || id < 1) return res.status(404).type('html').send('<h1>404</h1>');
+  res.sendFile(path.join(__dirname, 'public', 'theme-variants', 'v1-compact.html'));
+});
+
 // ── Lightweight in-memory search across the catalog.
 // /api/designs/search?q=<term>&limit=20
 // Scores each design on motif (3), title (2), category/handle (1) substring match.
@@ -11279,6 +11288,9 @@ try {
           <a class="hb-menu-item" data-hb-theme="classic" role="menuitem" href="/design/${design.id}">
             <span class="hb-menu-icon" aria-hidden="true">●</span> Classic <span class="hb-active">(current)</span>
           </a>
+          <a class="hb-menu-item" data-hb-theme="compact" role="menuitem" href="/design/${design.id}/compact">
+            <span class="hb-menu-icon" aria-hidden="true">▥</span> V1 · Two-Column Compact
+          </a>
           <a class="hb-menu-item" data-hb-theme="bento" role="menuitem" href="/design/${design.id}/bento">
             <span class="hb-menu-icon" aria-hidden="true">▦</span> V2 · Bento Grid
           </a>

← 83ea0b2 polish pass (#1+#2+#5 of 'all 6 threads'): (1) loop.sh singl  ·  back to Wallco Ai  ·  feat(pdp): V3 Sticky Hero + Tabs theme — /design/:id/tabs + 06db4d7 →