/* Palm Casual configurator demo - v0 */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #2b2a26;
  --ink-soft: #6d675c;
  --paper: #faf8f2;
  --panel: #ffffff;
  --line: #e5dfd2;
  --brand: #1f5c4d;
  --brand-dark: #164437;
  --accent: #b96a4b;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; background: var(--brand); color: #fff;
}
.brand-name { font-size: 1.25rem; font-weight: 700; letter-spacing: 0.5px; }
.brand-tag { margin-left: 12px; font-size: 0.85rem; opacity: 0.85; font-style: italic; }
.demo-badge {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px;
  border: 1px solid rgba(255,255,255,0.5); padding: 4px 10px; border-radius: 999px; opacity: 0.9;
}

.layout {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr);
  gap: 26px; max-width: 1200px; margin: 0 auto; padding: 26px 22px 60px;
}
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }

.stage-panel { position: sticky; top: 18px; align-self: start; }
@media (max-width: 900px) { .stage-panel { position: static; } }

.scene-tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.tab {
  border: 1px solid var(--line); background: var(--panel); border-radius: 999px;
  padding: 7px 16px; font-size: 0.9rem; cursor: pointer; color: var(--ink-soft);
}
.tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.stage {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; box-shadow: 0 8px 26px rgba(43, 42, 38, 0.07);
}
.stage svg { display: block; width: 100%; height: auto; }

.lead-time { margin-top: 12px; color: var(--brand-dark); font-weight: 600; font-size: 0.95rem; }

.controls-panel h1 { font-size: 1.5rem; margin-bottom: 6px; }
.subtitle { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 20px; }
.controls-panel h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-soft); margin: 20px 0 10px; }

.finish-row { display: flex; flex-wrap: wrap; gap: 8px; }
.finish {
  display: flex; align-items: center; gap: 8px; border: 1px solid var(--line);
  background: var(--panel); border-radius: 10px; padding: 8px 12px; cursor: pointer; font-size: 0.88rem;
}
.finish.active { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(31, 92, 77, 0.25); }
.finish .chip { width: 20px; height: 20px; border-radius: 6px; border: 1px solid rgba(0,0,0,0.15); }

.grade-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.grade {
  border: 1px solid var(--line); background: var(--panel); border-radius: 999px;
  padding: 5px 12px; font-size: 0.8rem; cursor: pointer; color: var(--ink-soft);
}
.grade.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.fabric-count { font-weight: 400; text-transform: none; letter-spacing: 0; }

.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; }
.swatch {
  aspect-ratio: 1; border-radius: 9px; border: 1px solid rgba(0,0,0,0.12); cursor: pointer;
}
.swatch.active { outline: 3px solid var(--brand); outline-offset: 1px; }
.picked-fabric { margin-top: 10px; font-size: 0.92rem; color: var(--ink-soft); }

.price-box {
  margin-top: 22px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 18px;
}
.price-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 0.92rem; color: var(--ink-soft); }
.price-total {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px;
}
.price-total strong { font-size: 1.55rem; color: var(--brand-dark); }

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn {
  border: 1px solid var(--line); background: var(--panel); border-radius: 10px;
  padding: 11px 16px; font-size: 0.92rem; cursor: pointer;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn:hover { filter: brightness(0.97); }

.guarantee { margin-top: 14px; font-size: 0.8rem; color: var(--ink-soft); }

.stores { display: grid; gap: 10px; }
.store {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px; font-size: 0.88rem; display: grid; gap: 2px;
}
.store span { color: var(--ink-soft); }
.store a { color: var(--brand); font-weight: 600; text-decoration: none; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 10px;
  font-size: 0.9rem; opacity: 0; pointer-events: none; transition: all 0.25s ease; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
