/* Configurator layout, steps, option tiles, price rail */

.designer { padding-block: clamp(2.5rem, 5vw, 4rem); }
.designer-layout { display: grid; grid-template-columns: minmax(0,1fr) 22rem; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 1024px) { .designer-layout { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); }
.step {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  padding: .5rem .875rem; border-radius: 100px; border: 1.5px solid var(--line);
  background: transparent; font-size: var(--text-sm); font-weight: 600; color: var(--ink-muted);
  transition: border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease);
}
.step span {
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--line); color: var(--ink-muted); font-size: .6875rem; font-weight: 800;
}
.step:hover { border-color: var(--ink-muted); color: var(--ink); }
.step.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.step.on span { background: var(--accent); color: #fff; }
.step.done { border-color: var(--sage); color: var(--sage-deep); }
.step.done span { background: var(--sage); color: #fff; }

.progress { height: 3px; background: var(--line-soft); border-radius: 3px; overflow: hidden; margin-bottom: clamp(2rem,4vw,3rem); }
.progress-fill { height: 100%; background: var(--accent); width: 16.6%; transition: width .4s var(--ease); }

/* ---------- Panels ---------- */
.panel { display: none; }
.panel.on { display: block; animation: fadeUp .35s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.panel h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.panel-sub { margin-top: var(--space-3); color: var(--ink-muted); font-size: var(--text-lg); line-height: 1.5; max-width: 60ch; }

.q { margin-top: clamp(2rem, 4vw, 2.75rem); }
.q > h3 { font-size: var(--text-base); margin-bottom: var(--space-4); }
.hint { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--ink-muted); }

/* ---------- Option tiles ---------- */
.opt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.opt-grid-4 { grid-template-columns: repeat(4, 1fr); }
.opt-multi { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 780px) { .opt-grid, .opt-grid-4, .opt-multi { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .opt-grid, .opt-grid-4, .opt-multi { grid-template-columns: 1fr; } }

.opt {
  position: relative; display: flex; flex-direction: column; gap: .3125rem;
  text-align: left; padding: var(--space-4) var(--space-5) var(--space-4) var(--space-4);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}
.opt:hover:not(.disabled) { border-color: var(--ink-muted); box-shadow: var(--shadow-sm); }
.opt strong { font-size: var(--text-sm); font-weight: 700; line-height: 1.3; padding-right: 1.25rem; }
.opt span { font-size: var(--text-xs); color: var(--ink-muted); line-height: 1.45; }
.opt em {
  margin-top: auto; padding-top: .375rem; font-style: normal;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .04em; color: var(--sage-deep);
}
.opt.on { border-color: var(--accent); background: #FEF7F3; box-shadow: inset 0 0 0 1px var(--accent); }
.opt.on em { color: var(--accent); }
.opt.on::after {
  content: ''; position: absolute; top: .75rem; right: .75rem; width: 16px; height: 16px;
  border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat;
}
.opt.disabled { opacity: .38; cursor: not-allowed; }

.slider-row { display: flex; align-items: center; gap: var(--space-5); }
.slider-row input[type=range] { flex: 1; }
.slider-row output {
  font-family: var(--font-display); font-weight: 700; font-size: 1.375rem;
  min-width: 7.5rem; text-align: right; white-space: nowrap;
}

.nav-row { display: flex; gap: var(--space-3); margin-top: clamp(2.5rem,5vw,3.5rem); padding-top: var(--space-6); border-top: 1px solid var(--line-soft); }
.nav-row .btn:disabled { opacity: .35; cursor: not-allowed; }
.nav-row .btn:disabled:hover { transform: none; background: transparent; color: var(--ink); }

/* ---------- Price rail ---------- */
.price-rail { position: sticky; top: calc(var(--header-h) + 1.25rem); }
@media (max-width: 1024px) { .price-rail { position: static; } }
.price-card { background: var(--ink); color: #fff; border-radius: var(--radius); padding: var(--space-6); }
.rail-label { font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.rail-total { font-family: var(--font-display); font-size: 2.5rem; line-height: 1.05; margin-top: .375rem; }
.rail-range { font-size: var(--text-sm); color: rgba(255,255,255,.6); margin-top: .25rem; }
.rail-lines { margin-top: var(--space-5); display: grid; gap: .5rem; }
.rail-lines > div { display: flex; justify-content: space-between; gap: var(--space-3); font-size: var(--text-sm); }
.rail-lines dt { color: rgba(255,255,255,.66); }
.rail-lines dd { font-weight: 700; white-space: nowrap; }
.rail-muted { margin-top: var(--space-3); }
.rail-muted dt, .rail-muted dd { color: rgba(255,255,255,.55); font-weight: 500; }
.rail-sep { height: 1px; background: rgba(255,255,255,.14); margin: var(--space-5) 0; }
.rail-allin { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid rgba(255,255,255,.14); }
.rail-allin span { font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.rail-allin strong { font-family: var(--font-display); font-size: 1.375rem; }
.rail-config { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: var(--space-5); }
.rail-config span { font-size: .6875rem; font-weight: 600; padding: .25rem .5rem; border-radius: 4px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.82); }
.rail-id { margin-top: var(--space-5); font-size: var(--text-xs); color: rgba(255,255,255,.5); letter-spacing: .06em; }
.rail-id b { color: var(--gold); font-family: var(--font-display); letter-spacing: .04em; }

/* ---------- Summary ---------- */
.sum-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem,3vw,2.5rem); }
.sum-head { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; align-items: flex-start; padding-bottom: var(--space-6); border-bottom: 1px solid var(--line-soft); }
.sum-head .rail-label { color: var(--ink-muted); }
.sum-id { font-family: var(--font-display); font-size: 1.5rem; color: var(--accent); margin-top: .25rem; }
.sum-total { font-family: var(--font-display); font-size: 2.25rem; line-height: 1.05; margin-top: .25rem; }
.sum-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: var(--space-5); margin-top: var(--space-6); }
.sum-specs span { display: block; font-size: var(--text-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: .25rem; }
.sum-specs strong { font-size: var(--text-sm); font-weight: 700; }
.sum-h { margin: clamp(2rem,4vw,2.5rem) 0 var(--space-4); font-size: var(--text-base); }
.sum-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }

@media print {
  .site-header, .mobile-nav, .site-footer, .steps, .progress, .nav-row, .cta-band, .price-rail, .sum-actions, .page-hero .btn-row { display: none !important; }
  body { background: #fff; }
  .designer-layout { grid-template-columns: 1fr; }
  .sum-card { border: none; padding: 0; }
}

/* ---------- Mobile sticky price bar ---------- */
.m-price-bar { display: none; }
@media (max-width: 1024px) {
  .m-price-bar {
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: .75rem clamp(1rem, 4vw, 1.5rem); background: var(--ink); color: #fff;
    box-shadow: 0 -4px 24px rgba(16,32,42,.24);
  }
  .m-price-txt span { display: block; font-size: .625rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }
  .m-price-txt strong { font-family: var(--font-display); font-size: 1.375rem; line-height: 1.1; }
  .m-price-txt strong small { font-family: var(--font-body); font-size: .75rem; font-weight: 600; color: rgba(255,255,255,.55); }
  .m-price-bar .btn { flex-shrink: 0; padding: .75rem 1.125rem; font-size: var(--text-sm); }
  body:has(.m-price-bar) { padding-bottom: 4.75rem; }
  .price-rail { margin-top: var(--space-8); }
}
