/* ===== Configurator ===== */
body { background: var(--paper-2); }
.wz-top { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: var(--header-h); z-index: 80; }
.wz-top .container { display: flex; align-items: center; gap: 18px; padding-block: 12px; }
.wz-top .back-link { display: inline-flex; align-items: center; gap: 7px; font-size: 0.88rem; color: var(--muted); font-weight: 500; }
.wz-top .back-link:hover { color: var(--ink); }
.wz-top .back-link svg { width: 16px; height: 16px; }

/* progress stepper */
.stepper { display: flex; align-items: center; gap: 0; flex: 1; overflow-x: auto; scrollbar-width: none; }
.stepper::-webkit-scrollbar { display: none; }
.stepper-item { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.stepper-item .sdot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); color: var(--muted); display: grid; place-items: center; font-size: 0.78rem; font-weight: 700; flex-shrink: 0; transition: .2s; background: var(--white); }
.stepper-item .slabel { font-size: 0.85rem; font-weight: 600; color: var(--muted); white-space: nowrap; transition: .2s; }
.stepper-item.done .sdot { background: var(--green); border-color: var(--green); color: #fff; }
.stepper-item.active .sdot { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 0 0 4px var(--red-tint); }
.stepper-item.active .slabel { color: var(--ink); }
.stepper-item.clickable { cursor: pointer; }
.stepper-line { width: 26px; height: 2px; background: var(--line-2); margin: 0 8px; flex-shrink: 0; }
@media (max-width: 860px){ .stepper-item .slabel{ display:none } .stepper-item.active .slabel{ display:inline } .stepper-line{ width:14px;margin:0 5px } }

/* layout */
.wz { display: grid; grid-template-columns: 1fr 420px; gap: 30px; align-items: start; padding: 28px 0 120px; }
@media (max-width: 1000px){ .wz{ grid-template-columns: minmax(0,1fr); gap:20px } }

.wz-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px,3vw,38px); box-shadow: var(--sh-sm); }
.wz-step { display: none; }
.wz-step.active { display: block; animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.step-kicker { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.wz-step h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 8px 0 6px; }
.wz-step .sub { color: var(--text); margin-bottom: 24px; max-width: 56ch; }

/* selectable option cards */
.opt-cards { display: grid; gap: 14px; grid-template-columns: minmax(0,1fr); }
.opt-cards.c2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.opt-cards.c3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.opt-cards.c3 .opt { flex-direction: column; }
.opt-cards.c3 .opt .opt-vis { width: 56px; height: 56px; }
@media (max-width: 560px){ .opt-cards.c2,.opt-cards.c3{ grid-template-columns:minmax(0,1fr) } .opt-cards.c3 .opt{ flex-direction:row } .opt-body .ti{ flex-wrap:wrap } }
.opt {
  position: relative; text-align: left; cursor: pointer;
  border: 1.5px solid var(--line-2); border-radius: var(--r); padding: 18px; background: var(--white);
  transition: border-color .15s, box-shadow .15s, background .15s, transform .12s; display: flex; gap: 16px; align-items: flex-start;
}
.opt:hover { border-color: var(--ink); transform: translateY(-2px); }
.opt.on { border-color: var(--red); background: var(--red-tint); box-shadow: 0 0 0 3px var(--red-tint); }
.opt .opt-vis { width: 64px; height: 64px; border-radius: 10px; flex-shrink: 0; background: var(--paper-2); display: grid; place-items: center; overflow: hidden; }
.opt .opt-vis svg { width: 100%; height: 100%; }
.opt .opt-vis.swatchvis { box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.opt-body { flex: 1; min-width: 0; }
.opt-body .ti { display: flex; align-items: center; gap: 8px; }
.opt-body b { color: var(--ink); font-size: 1.05rem; font-family: var(--font-display); font-weight: 540; }
.opt-body p { font-size: 0.88rem; color: var(--muted); margin-top: 4px; }
.opt .price-badge { font-size: 0.82rem; font-weight: 700; color: var(--red); white-space: nowrap; }
.opt .tick { position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; background: var(--white); }
.opt .tick svg { width: 13px; height: 13px; color: #fff; opacity: 0; }
.opt.on .tick { background: var(--red); border-color: var(--red); } .opt.on .tick svg { opacity: 1; }
.opt .mini-tag { display:inline-block; font-size:0.64rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; background:var(--ink); color:#fff; padding:2px 7px; border-radius:99px; margin-left:6px; vertical-align:middle; }

/* colour swatches */
.col-group { margin-bottom: 22px; }
.col-group h4 { font-family: var(--font-sans); font-weight: 700; font-size: 0.9rem; color: var(--charcoal); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.col-group h4::after { content:""; flex:1; height:1px; background:var(--line); }
.sw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px,1fr)); gap: 10px; }
.sw { cursor: pointer; border-radius: 10px; overflow: hidden; border: 1.5px solid var(--line); background: var(--white); transition: transform .12s, box-shadow .15s; position: relative; }
.sw:hover { transform: translateY(-2px); box-shadow: var(--sh-sm); }
.sw .c { height: 50px; }
.sw .c img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sw .n { font-size: 0.72rem; font-weight: 600; color: var(--charcoal); padding: 6px 7px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw.on { border-color: var(--red); box-shadow: 0 0 0 2px var(--red); }
.sw .t { position: absolute; top: 5px; right: 5px; width: 19px; height: 19px; border-radius: 50%; background: var(--red); display: grid; place-items: center; opacity: 0; transform: scale(.5); transition: .15s; }
.sw.on .t { opacity: 1; transform: scale(1); } .sw .t svg { width: 11px; height: 11px; color: #fff; }

/* measure step */
.measure-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 640px){ .measure-grid{ grid-template-columns:1fr } }
.dim-field label { font-weight: 600; color: var(--charcoal); font-size: 0.9rem; display: block; margin-bottom: 7px; }
.dropzone { border: 2px dashed var(--line-2); border-radius: var(--r); padding: 22px; text-align: center; color: var(--muted); cursor: pointer; transition: .15s; }
.dropzone:hover { border-color: var(--red); background: var(--red-tint); color: var(--red-dark); }
.dropzone svg { width: 30px; height: 30px; margin: 0 auto 8px; }

/* louvre comparison */
.louvre-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
@media (max-width: 620px){ .louvre-row{ grid-template-columns:1fr 1fr } }
.louvre-opt { cursor: pointer; border: 1.5px solid var(--line-2); border-radius: var(--r); padding: 16px; text-align: center; background: var(--white); transition: .15s; position: relative; }
.louvre-opt:hover { border-color: var(--ink); }
.louvre-opt.on { border-color: var(--red); background: var(--red-tint); box-shadow: 0 0 0 3px var(--red-tint); }
.louvre-vis { height: 70px; display: flex; flex-direction: column; justify-content: center; gap: var(--lg, 5px); padding: 6px; background: var(--paper-2); border-radius: 8px; margin-bottom: 12px; }
.louvre-vis i { display: block; background: linear-gradient(180deg,#fff,#d7cdbb); border-radius: 2px; box-shadow: 0 1px 1px rgba(0,0,0,.1); }
.louvre-opt b { color: var(--ink); font-size: 1.05rem; font-family: var(--font-display); }
.louvre-opt span { display: block; font-size: 0.76rem; color: var(--muted); margin-top: 2px; }

/* help tooltip */
.help { position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--sand); color: var(--charcoal); font-size: 0.7rem; font-weight: 700; cursor: pointer; flex-shrink: 0; }
.help:hover, .help.open { background: var(--ink); color: #fff; }
.help .tip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: 230px; background: var(--ink); color: #e7e9ee; font-size: 0.8rem; font-weight: 400; line-height: 1.5; padding: 11px 13px; border-radius: 10px; box-shadow: var(--sh-lg); opacity: 0; visibility: hidden; transition: .15s; z-index: 30; text-align: left; }
.help .tip::after { content:""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--ink); }
.help:hover .tip, .help.open .tip { opacity: 1; visibility: visible; }

/* sub-options block */
.subopt { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.subopt > .lbl { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--ink); font-size: 1.02rem; margin-bottom: 4px; font-family: var(--font-display); font-weight: 540; }
.subopt > .desc { font-size: 0.88rem; color: var(--muted); margin-bottom: 16px; max-width: 60ch; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-opt { cursor: pointer; border: 1.5px solid var(--line-2); background: var(--white); border-radius: 99px; padding: 9px 16px; font-size: 0.9rem; font-weight: 600; color: var(--charcoal); transition: .15s; display: inline-flex; align-items: center; gap: 8px; }
.pill-opt:hover { border-color: var(--ink); }
.pill-opt.on { border-color: var(--red); background: var(--red-tint); color: var(--red-dark); }
.pill-opt .hinge-dot { width: 15px; height: 15px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.conditional { display: none; margin-top: 16px; }
.conditional.show { display: block; animation: fade .3s var(--ease); }

/* review */
.review-list { display: grid; gap: 2px; }
.review-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.review-row .rk { font-size: 0.82rem; color: var(--muted); }
.review-row .rv { font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 9px; }
.review-row .rv i { width: 16px; height: 16px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.review-row .edit { font-size: 0.8rem; color: var(--red); font-weight: 600; cursor: pointer; }
.review-row .edit:hover { text-decoration: underline; }

/* ===== Aside preview ===== */
.wz-aside { position: sticky; top: calc(var(--header-h) + 64px); display: grid; gap: 18px; }
@media (max-width: 1000px){ .wz-aside{ position: static; } .wz-aside.mobile-collapsed .price-card{ display:none } }
.preview-panel { background: linear-gradient(160deg,#f3ede3,#e7ddcc); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-sm); }
.preview-svg { width: 100%; max-width: 300px; margin: 0 auto; display: block; border-radius: 8px; filter: drop-shadow(0 16px 24px rgba(0,0,0,.16)); }
.preview-cap { text-align: center; margin-top: 16px; }
.preview-cap b { font-family: var(--font-display); color: var(--ink); font-size: 1.05rem; }
.preview-cap span { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 3px; }
.preview-note { display:flex; align-items:center; justify-content:center; gap:6px; font-size:0.74rem; color:var(--muted); margin-top:10px; }
.preview-note svg{ width:13px;height:13px; }

.price-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-sm); }
.price-top { display: flex; align-items: baseline; justify-content: space-between; }
.price-top .lab { font-size: 0.85rem; color: var(--muted); }
.price-top .amt { font-family: var(--font-display); font-size: 2rem; color: var(--ink); }
.price-top .amt small { font-size: 0.8rem; color: var(--muted); font-family: var(--font-sans); }
.price-break { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; display: none; }
.price-break.show { display: block; }
.price-break .pr { display: flex; justify-content: space-between; font-size: 0.84rem; padding: 4px 0; color: var(--text); }
.price-break .pr b { color: var(--ink); }
.price-toggle { font-size: 0.8rem; color: var(--red); font-weight: 600; cursor: pointer; margin-top: 10px; display: inline-flex; align-items: center; gap: 5px; }
.price-toggle svg { width: 13px; height: 13px; transition: transform .2s; }
.price-toggle.open svg { transform: rotate(180deg); }
.sample-nudge { display: flex; gap: 11px; align-items: center; background: var(--paper-2); border-radius: var(--r-sm); padding: 13px 15px; margin-top: 16px; }
.sample-nudge svg { width: 22px; height: 22px; color: var(--red); flex-shrink: 0; }
.sample-nudge p { font-size: 0.82rem; color: var(--charcoal); }
.sample-nudge a { color: var(--red); font-weight: 700; border-bottom: 1px solid currentColor; }
.trust-mini { display: grid; gap: 9px; margin-top: 16px; }
.trust-mini span { display: flex; align-items: center; gap: 9px; font-size: 0.82rem; color: var(--muted); }
.trust-mini svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; }

/* sticky bottom nav */
.wz-navbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 85; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -14px rgba(0,0,0,.2); }
.wz-navbar .container { display: flex; align-items: center; gap: 14px; padding-block: 12px; }
.nav-price { display: flex; flex-direction: column; }
.nav-price .l { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.nav-price .v { font-family: var(--font-display); font-size: 1.45rem; color: var(--ink); line-height: 1; }
.nav-price .v small { font-size: 0.72rem; color: var(--muted); font-family: var(--font-sans); }
.nav-btns { margin-left: auto; display: flex; gap: 10px; }
@media (max-width: 520px){ .nav-btns .btn{ padding-inline:18px } .nav-price .v{ font-size:1.25rem } }

/* success modal */
.modal-bd { position: fixed; inset: 0; background: rgba(10,11,14,.55); backdrop-filter: blur(3px); display: none; place-items: center; z-index: 300; padding: 20px; }
.modal-bd.show { display: grid; }
.modal { background: var(--white); border-radius: var(--r-lg); max-width: 460px; width: 100%; padding: 38px 34px; text-align: center; box-shadow: var(--sh-lg); animation: fade .3s var(--ease); }
.modal .ok { width: 64px; height: 64px; border-radius: 50%; background: var(--green-tint); color: var(--green); display: grid; place-items: center; margin: 0 auto 18px; }
.modal .ok svg { width: 34px; height: 34px; }
.modal h3 { font-size: 1.5rem; }
.modal p { margin: 12px 0 24px; }
.modal .err { color: var(--red-dark); background: var(--red-tint); border-radius: var(--r-sm); padding: 10px 14px; font-size: 0.9rem; margin-bottom: 16px; }

/* bay sections + bifold */
.sec-card { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 12px; background: var(--paper); }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sec-head b { color: var(--ink); font-family: var(--font-display); }
.sec-rm { font-size: 0.82rem; color: var(--muted); font-weight: 600; background: none; border: 0; cursor: pointer; }
.sec-rm:hover { color: var(--red); }
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sec-grid label { display: block; font-size: 0.76rem; font-weight: 600; color: var(--charcoal); margin-bottom: 5px; }
@media (max-width: 560px) { .sec-grid { grid-template-columns: 1fr; } }
.bifold-toggle { display: flex; align-items: center; gap: 11px; font-weight: 600; color: var(--charcoal); cursor: pointer; padding: 13px 15px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); }
.bifold-toggle:hover { border-color: var(--ink); }
.bifold-toggle input { width: 18px; height: 18px; accent-color: var(--red); flex-shrink: 0; }
