/* See It In Your Room — page-local styles (AVS Flooring) */
.vz-hero { padding: 54px 0 40px; }
.vz-hero h1 { margin-bottom: 12px; }
.vz-hero .vz-lede { max-width: 720px; color: var(--text); font-size: 1.08rem; }
.vz-section { padding: 34px 0 64px; }
.vz-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: 34px;
  align-items: start;
}
.vz-main, .vz-panel { min-width: 0; }
.vz-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.vz-tab {
  min-height: 44px; padding: 10px 16px;
  border: 2px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--black);
  font: inherit; font-weight: 900; font-size: 0.86rem; text-transform: uppercase; cursor: pointer;
}
.vz-tab[aria-selected="true"] { background: var(--black); border-color: var(--black); color: var(--white); }
.vz-tab:focus-visible, .vz-swatch:focus-visible, .vz-chip:focus-visible, .vz-tool:focus-visible, .vz-marker:focus-visible { outline: 3px solid rgba(215, 25, 32, 0.45); outline-offset: 2px; }
.vz-tab-upload::before { content: "+ "; color: var(--red); }
.vz-tab-upload[aria-selected="true"]::before { color: #ff8a8f; }

.vz-stage-wrap { position: relative; }
.vz-stage {
  position: relative;
  width: min(100%, calc(80vh * var(--vz-ratio, 0.75)));
  margin: 0 auto;
  aspect-ratio: 1086 / 1448;
  background: #e9e7e4;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  touch-action: manipulation;
}
.vz-canvas, .vz-fade { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vz-fade { pointer-events: none; }
.vz-stage.is-loading::after {
  content: ""; position: absolute; right: 14px; top: 14px; width: 22px; height: 22px;
  border: 3px solid rgba(255,255,255,0.7); border-top-color: var(--red); border-radius: 50%;
  animation: vz-spin 0.8s linear infinite;
}
@keyframes vz-spin { to { transform: rotate(360deg); } }
.vz-badge {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  padding: 7px 11px; border-radius: 6px;
  background: rgba(7,7,7,0.78); color: #fff; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.01em;
  pointer-events: none;
}
.vz-badge strong { color: #fff; }
.is-custom .vz-stage { cursor: crosshair; }
.vz-stage.is-empty { width: 100%; aspect-ratio: 4 / 3; box-shadow: none; border: 2px dashed #c9c9c9; background: var(--light); }
.vz-stage.is-empty .vz-badge { display: none; }
.vz-upload {
  position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 24px; text-align: center;
}
.vz-upload h3 { margin: 0 0 6px; font-size: 1.25rem; }
.vz-upload p { margin: 0 auto 16px; max-width: 360px; color: var(--muted); }
.vz-upload label.btn { cursor: pointer; }
.vz-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.vz-markers { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.vz-guide-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.vz-guide-lines polyline { fill: none; stroke: #fff; stroke-width: 3; stroke-dasharray: 10 8; vector-effect: non-scaling-stroke; }
.vz-marker {
  position: absolute; width: 48px; height: 48px; margin: -24px 0 0 -24px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; cursor: grab; pointer-events: auto; touch-action: none;
}
.vz-marker span {
  position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--red); color: #fff; font-size: 0.78rem; font-weight: 900;
  border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.45);
}
.vz-marker.is-dragging { cursor: grabbing; }
.vz-marker.is-dragging span { transform: scale(1.18); }

.vz-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 0; }
.vz-tool {
  min-height: 42px; padding: 8px 14px; border: 1px solid #cfcfcf; border-radius: var(--radius);
  background: var(--white); color: var(--black); font: inherit; font-weight: 800; font-size: 0.86rem; cursor: pointer;
}
.vz-tool[aria-pressed="true"] { border-color: var(--black); background: var(--black); color: #fff; }
.vz-scale-row { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 0.86rem; }
.vz-scale-row input { width: 130px; accent-color: var(--red); }
.vz-guide { margin: 12px 0 0; padding: 11px 14px; border-left: 4px solid var(--red); background: var(--light); font-size: 0.95rem; }
.vz-status { min-height: 1.2em; margin: 6px 0 0; color: var(--muted); font-size: 0.86rem; }

.vz-picker { margin-top: 20px; }
.vz-picker-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.vz-picker-head h2 { margin: 0; font-size: 1.15rem; }
.vz-chips { display: flex; gap: 6px; }
.vz-chip {
  min-height: 36px; padding: 6px 12px; border: 1px solid #cfcfcf; border-radius: 999px; background: #fff;
  font: inherit; font-size: 0.8rem; font-weight: 900; text-transform: uppercase; cursor: pointer; color: var(--black);
}
.vz-chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.vz-swatches {
  display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 14px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.vz-swatch {
  flex: 0 0 116px; scroll-snap-align: start;
  display: grid; gap: 4px; padding: 0 0 8px; text-align: left;
  background: #fff; border: 2px solid transparent; border-radius: var(--radius); cursor: pointer; font: inherit; color: var(--black);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.vz-swatch[hidden] { display: none; }
.vz-swatch:hover { transform: translateY(-2px); }
.vz-swatch.is-active { border-color: var(--red); }
.vz-swatch-img { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px 6px 0 0; position: relative; }
.vz-swatch-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vz-swatch.is-active .vz-swatch-img::after {
  content: "\2713"; position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; display: grid; place-items: center;
  border-radius: 50%; background: var(--red); color: #fff; font-size: 0.8rem; font-weight: 900;
}
.vz-swatch-name { padding: 0 8px; font-size: 0.82rem; font-weight: 900; line-height: 1.2; }
.vz-swatch-type { padding: 0 8px; font-size: 0.72rem; font-weight: 800; color: var(--muted); text-transform: uppercase; }

.vz-panel {
  position: sticky; top: calc(var(--header-height) + 18px);
  padding: 26px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius);
}
.vz-panel .product-tag { margin-bottom: 6px; }
.vz-panel h2 { margin: 0 0 14px; font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.15; }
.vz-specs { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.vz-specs li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.vz-specs span { color: var(--muted); }
.vz-specs strong { color: var(--black); }
.vz-room-line { margin: 0 0 16px; color: var(--muted); font-size: 0.9rem; }
.vz-panel .button-row .btn { flex: 1 1 180px; }
.vz-note { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }
.vz-note a { color: var(--red); font-weight: 900; }

.vz-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 8px; }
.vz-step { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.vz-step b { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; border-radius: 50%; background: var(--red); color: #fff; }
.vz-step h3 { margin: 0 0 6px; font-size: 1.05rem; }
.vz-step p { margin: 0; color: var(--muted); }

.vz-estimate .form-grid { align-items: start; }
.vz-estimate-copy p { color: var(--text); }
.vz-estimate-copy .vz-picked { padding: 14px 16px; background: var(--light); border-left: 4px solid var(--red); font-weight: 800; }

@media (max-width: 980px) {
  .vz-layout { grid-template-columns: minmax(0, 1fr); }
  .vz-panel { position: static; }
  .vz-steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .vz-hero { padding: 34px 0 22px; }
  .vz-section { padding: 18px 0 44px; }
  .vz-tab { flex: 1 1 calc(50% - 8px); padding: 10px 8px; font-size: 0.8rem; }
  .vz-stage { width: 100%; border-radius: 6px; }
  .vz-swatch { flex-basis: 96px; }
  .vz-swatch-name { font-size: 0.76rem; }
  .vz-panel { padding: 20px; }
  .vz-marker { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
  .vz-marker span { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
}
@media (prefers-reduced-motion: reduce) {
  .vz-swatch, .vz-swatch:hover { transition: none; transform: none; }
  .vz-stage.is-loading::after { animation: none; }
  .vz-fade { transition: none !important; }
}

.vz-upload[hidden], .vz-scale-row[hidden], .vz-fade[hidden], .vz-tool[hidden], .vz-guide[hidden] { display: none; }
.vz-arrow { width: 36px; padding: 0; font-size: 1.3rem; line-height: 1; }
@media (hover: none) { .vz-arrow { display: none; } }

/* Edits16: clean product name + spec line */
.vz-specline { margin: -6px 0 14px; color: var(--muted); font-weight: 800; font-size: 0.95rem; letter-spacing: 0.01em; }
.vz-picked-specs { display: block; margin-top: 2px; color: var(--muted); font-weight: 700; font-size: 0.9rem; }

/* edits16-vz: calm "demo only" colour notice next to the floor picker */
.vz-demo-note{display:flex;gap:10px;align-items:flex-start;margin:0 0 14px;padding:12px 14px;border:1px solid #d9cfbf;border-left:4px solid #8a7556;border-radius:8px;background:#f8f4ec;color:#3b342a;font-size:.95rem;line-height:1.45}
.vz-demo-note strong{color:#2b2620}
.vz-demo-note a{color:#2b2620;font-weight:700;text-decoration:underline;text-underline-offset:2px}
.vz-demo-note a:hover,.vz-demo-note a:focus-visible{color:#000}
.vz-demo-note-icon{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;margin-top:1px;border-radius:50%;background:#8a7556;color:#fff;font:700 13px/1 Georgia,serif;font-style:italic}
@media (max-width:600px){.vz-demo-note{font-size:.9rem;padding:10px 12px}}
/* products with no type (e.g. Mississippi Bourbon): hide the empty type pill */
.vz-panel [data-vz-type][hidden]{display:none !important}
