:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #333333;
  --muted: #7a7a7a;
  --line: #ececec;
  --accent: #FF5D8F;      /* pink Faboulooks */
  --accent-ink: #ffffff;
  --gold: #FF5D8F;
  --radius: 18px;
  --serif: "Fira Sans", system-ui, sans-serif;
  --sans: "Fira Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.top {
  display: flex; align-items: center; gap: 4px;
  padding: 14px 16px; max-width: 560px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; }
.brand img { height: 30px; width: auto; }
.back { font-size: 30px; line-height: 1; text-decoration: none; color: var(--muted); padding: 0 8px 4px 0; }
.wordmark { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: .5px; }
.tag { margin-left: auto; font-size: 12px; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; }
.demo-pill { font-size: 10px; letter-spacing: 1.5px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); }

main { max-width: 560px; margin: 0 auto; padding: 0 16px 24px; }

/* ---------- Stage ---------- */
.stage {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #FFF1F5;
  aspect-ratio: 3 / 4; touch-action: pan-y;
}
#canvas { width: 100%; height: 100%; object-fit: cover; display: none; }
#canvas.show { display: block; }
#canvas.mirror { transform: scaleX(-1); }
#video { display: none; }

.empty {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 24px;
}
.eye-icon { width: 72px; color: var(--accent); margin-bottom: 14px; }
.empty h1 { font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.1; margin: 0 0 8px; }
.empty p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; max-width: 300px; }
.cta { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 280px; margin: 22px 0 14px; }
.status { font-size: 12px !important; min-height: 18px; }
.privacy { font-size: 11px !important; margin-top: 10px !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px; border-radius: 99px; border: 0;
  font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none;
  transition: transform .12s ease, opacity .2s ease;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.stage-tools {
  position: absolute; top: 12px; left: 12px; right: 12px;
  display: flex; justify-content: space-between; gap: 8px;
}
.stage-tools .right { display: flex; gap: 8px; }
.chip {
  border: 0; border-radius: 99px; padding: 8px 14px; font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,.85); color: var(--ink); backdrop-filter: blur(8px); cursor: pointer;
}
.compare {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  border: 0; border-radius: 99px; padding: 10px 18px; font-size: 13px; font-weight: 600;
  background: rgba(42,31,36,.72); color: #fff; backdrop-filter: blur(8px);
  user-select: none; -webkit-user-select: none; touch-action: none; cursor: pointer;
}
.toast {
  position: absolute; left: 50%; top: 56px; transform: translateX(-50%);
  background: rgba(42,31,36,.85); color: #fff; font-size: 13px; padding: 8px 14px;
  border-radius: 99px; opacity: 0; transition: opacity .25s; pointer-events: none; white-space: nowrap; max-width: 90%;
  overflow: hidden; text-overflow: ellipsis;
}
.toast.show { opacity: 1; }

/* ---------- Panel ---------- */
.panel { margin-top: 16px; }
.lens-info { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.series { margin: 0; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.lens-info h2 { font-family: var(--serif); font-size: 24px; font-weight: 600; margin: 2px 0 2px; line-height: 1.05; }
.meta { margin: 0; font-size: 12px; color: var(--muted); }
.price { margin: 0; font-size: 22px; font-weight: 600; color: var(--accent); }

.carousel {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 16px 2px 8px; margin: 0 -2px; scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.lens-card {
  flex: 0 0 auto; width: 78px; scroll-snap-align: start; text-align: center;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink);
}
.lens-card .swatch {
  width: 70px; height: 70px; margin: 0 auto; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 1px var(--line); padding: 3px;
  transition: box-shadow .2s, transform .2s;
}
.lens-card canvas { width: 100%; height: 100%; display: block; border-radius: 50%; background: #2a1f24; }
.lens-card span { display: block; font-size: 11px; margin-top: 6px; line-height: 1.25; color: var(--muted); }
.lens-card[aria-selected="true"] .swatch { box-shadow: 0 0 0 2px var(--accent); transform: scale(1.04); }
.lens-card[aria-selected="true"] span { color: var(--ink); font-weight: 600; }

.slider-row { display: flex; align-items: center; gap: 12px; margin: 8px 0 16px; font-size: 13px; color: var(--muted); }
.slider-row input { flex: 1; accent-color: var(--accent); }

.btn.order { width: 100%; background: #25d366; color: #fff; }
.disclaimer { font-size: 11px; color: var(--muted); text-align: center; margin: 10px 0 0; line-height: 1.5; }
.foot { text-align: center; font-size: 11px; color: var(--muted); padding: 8px 16px 28px; letter-spacing: .5px; }
