:root { --demo-shell: min(1500px, calc(100vw - 80px)); }
.demo-page { min-height: 100vh; background: #f4f6fa; }
.demo-header { width: var(--demo-shell); height: 92px; margin: auto; display: flex; justify-content: space-between; align-items: center; }
.demo-back { display: flex; gap: 12px; align-items: center; font-weight: 700; }
.demo-back span { color: var(--blue); font-size: 23px; }
.demo-main { width: var(--demo-shell); margin: auto; padding-bottom: 60px; }
.demo-intro { margin: 44px 0 48px; display: grid; grid-template-columns: 120px minmax(500px,1fr) 430px; gap: 40px; align-items: end; }
.demo-intro>p { align-self: start; margin: 11px 0 0; color: var(--blue); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .15em; }
.demo-intro h1 { margin: 0; font-size: clamp(58px,5.4vw,88px); line-height: .95; letter-spacing: -.06em; }
.demo-intro h1 span { color: var(--coral); }
.demo-intro>span { padding-bottom: 9px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.demo-builder { min-height: 690px; display: grid; grid-template-columns: 1.05fr .95fr; background: #fff; box-shadow: 0 20px 70px rgba(39,51,78,.1); }
.demo-preview { min-height: 690px; padding: 42px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background: radial-gradient(circle at 50% 43%,#fff 0,#edf1f7 68%); }
.demo-preview::before { content:""; position:absolute; width: 500px; height:500px; border:1px solid #dfe5ef; border-radius:50%; }
.demo-preview img { position: relative; z-index: 1; width: min(80%,560px); max-height: 580px; object-fit: contain; filter: drop-shadow(0 28px 20px rgba(26,36,55,.16)); -webkit-mask: url('assets/chair.png') center / contain no-repeat; mask: url('assets/chair.png') center / contain no-repeat; transition: opacity .18s, transform .4s; }
.demo-preview img.switching { opacity:.25; transform:scale(.985); }
.preview-label { position: absolute; top: 34px; left: 38px; z-index: 2; display: flex; flex-direction: column; }
.preview-label span { font-weight: 800; font-size: 17px; }.preview-label small{margin-top:4px;color:var(--muted);font-size:13px}
.preview-nav { position:absolute;z-index:2;left:38px;right:38px;bottom:32px;display:flex;justify-content:space-between;align-items:center;color:#7b8494;font-size:12px}.preview-nav button{width:44px;height:44px;border:1px solid #d9dfe8;border-radius:50%;background:#fff;color:var(--ink)}
.demo-options { min-width: 0; padding: 42px 48px; display: flex; flex-direction: column; }
.demo-progress { display: grid; grid-template-columns: auto 150px; gap: 22px; align-items: center; margin-bottom: 48px; color:#727b8b;font-size:12px;text-transform:uppercase;letter-spacing:.1em}.demo-progress i{height:3px;background:#e4e8ef;overflow:hidden}.demo-progress em{display:block;height:100%;width:33.333%;background:var(--blue);transition:width .3s var(--ease)}
.option-step { animation: stepIn .4s var(--ease); }.option-count{color:var(--blue);font-size:13px;font-weight:850;letter-spacing:.1em}.option-step h2{margin:12px 0 5px;font-size:38px;letter-spacing:-.045em}.option-step>p{margin:0 0 34px;color:var(--muted)}
@keyframes stepIn { from{opacity:0;transform:translateX(15px)} }
.choice-grid { display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.choice-grid label{cursor:pointer}.choice-grid input{position:absolute;opacity:0;pointer-events:none}.choice-grid label>i{display:block;height:88px;border:3px solid #fff;outline:1px solid #dce1e9;border-radius:10px}.choice-grid input:checked+i{outline:3px solid var(--blue)}.choice-grid label>span{display:flex;flex-direction:column;margin-top:12px}.choice-grid b{font-size:14px}.choice-grid small{margin-top:4px;color:#758091;font-size:12px}.choice-grid .beige{background:linear-gradient(135deg,#f1ece4,#c5b8a6)}.choice-grid .grey{background:linear-gradient(135deg,#b7b8b5,#696c70)}.choice-grid .green{background:linear-gradient(135deg,#63705b,#263224)}.choice-grid .oak{background:linear-gradient(90deg,#c58741,#edbd76,#9d5c26)}.choice-grid .walnut{background:linear-gradient(90deg,#56300f,#a8692c,#4a270b)}.choice-grid .black{background:linear-gradient(135deg,#393939,#0b0b0b)}
.addon-list{display:flex;flex-direction:column;border-top:1px solid #e1e5ec}.addon-list label{display:grid;grid-template-columns:25px 1fr auto;gap:14px;align-items:center;padding:19px 0;border-bottom:1px solid #e1e5ec;cursor:pointer}.addon-list input{width:21px;height:21px;accent-color:var(--blue)}.addon-list span{display:flex;flex-direction:column}.addon-list b{font-size:14px}.addon-list small{margin-top:4px;color:var(--muted)}.addon-list strong{font-size:13px}
.quantity-block{margin-top:22px;padding:17px 18px;display:flex;align-items:center;justify-content:space-between;gap:18px;background:#f2f5fa}.quantity-block>div:first-child{display:flex;flex-direction:column}.quantity-block b{font-size:14px}.quantity-block small{margin-top:4px;color:var(--muted)}.quantity-block small.active{color:#128951;font-weight:700}.quantity-control{display:flex;align-items:center;background:#fff;border:1px solid #dce1e9}.quantity-control button{width:36px;height:36px;border:0;background:#fff;font-size:20px;cursor:pointer}.quantity-control input{width:46px;border:0;text-align:center;font-weight:800;appearance:textfield}.quantity-control input::-webkit-inner-spin-button{appearance:none}
.demo-summary { margin-top:auto;padding-top:30px;border-top:1px solid #dfe3ea;display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.demo-summary>div:first-child{display:flex;flex-direction:column}.demo-summary>div:first-child span{color:var(--muted);font-size:13px}.demo-summary>div:first-child strong{margin-top:6px;font-size:28px;letter-spacing:-.035em}.step-actions{display:flex;gap:10px}.step-actions button{border:0;padding:17px 20px;font-weight:750;cursor:pointer}.previous{background:#edf0f5}.next{background:var(--blue);color:#fff;min-width:160px}.next span{margin-left:20px}
.result-dialog { width:min(540px,calc(100% - 36px));border:0;padding:48px;border-radius:0;box-shadow:0 30px 100px rgba(0,0,0,.25)}.result-dialog::backdrop{background:rgba(7,10,18,.7);backdrop-filter:blur(4px)}.dialog-close{position:absolute;top:16px;right:18px;border:0;background:transparent;font-size:28px;cursor:pointer}.result-check{width:52px;height:52px;display:grid;place-items:center;border-radius:50%;background:#e7f8ee;color:#139b60;font-size:24px;font-weight:800}.result-dialog h2{font-size:38px;margin:24px 0 12px;letter-spacing:-.045em}.result-dialog>p{color:var(--muted);line-height:1.55}.result-dialog dl{margin:28px 0;border-top:1px solid var(--line)}.result-dialog dl div{display:flex;justify-content:space-between;gap:20px;padding:13px 0;border-bottom:1px solid var(--line)}.result-dialog dt{color:var(--muted)}.result-dialog dd{margin:0;font-weight:700;text-align:right}.dialog-total{display:flex;justify-content:space-between;align-items:center;margin:25px 0}.dialog-total strong{font-size:25px}.result-dialog>a{padding:18px 20px;display:flex;justify-content:space-between;background:var(--blue);color:#fff;font-weight:800}
@media(max-width:1000px){.demo-intro{grid-template-columns:1fr}.demo-intro>p{margin:0}.demo-builder{grid-template-columns:1fr}.demo-preview{min-height:580px}.demo-options{min-height:620px}.demo-intro>span{max-width:600px}}
@media(max-width:650px){:root{--demo-shell:calc(100vw - 28px)}.demo-header{height:72px}.demo-back{font-size:14px}.demo-intro{margin:38px 0}.demo-intro h1{font-size:48px}.demo-intro>span{font-size:16px}.demo-preview{min-height:430px;padding:20px}.demo-preview::before{width:330px;height:330px}.demo-preview img{max-height:380px}.preview-label{top:20px;left:20px}.preview-nav{left:20px;right:20px;bottom:16px}.demo-options{padding:32px 22px;min-height:650px}.demo-progress{margin-bottom:35px}.option-step h2{font-size:31px}.choice-grid{gap:8px}.choice-grid label>i{height:62px}.demo-summary{align-items:stretch;flex-direction:column}.step-actions{width:100%}.step-actions button{flex:1}.result-dialog{padding:36px 24px}.result-dialog h2{font-size:32px}}
