/* Bikelove Configurator — wygląd */
.bc {
  --bc-ink: #15171a;
  --bc-muted: #6c7178;
  --bc-line: #e4e2dd;
  --bc-bg: #f6f5f2;
  --bc-card: #ffffff;
  --bc-accent: #b8863b; /* złoto — nawiązanie do nazwy AURUM */
  --bc-radius: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 28px;
  color: var(--bc-ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.bc *, .bc-modal * { box-sizing: border-box; }

.bc-visual { position: sticky; top: 24px; align-self: start; }
.bc-stage {
  position: relative; width: 100%;
  background: radial-gradient(ellipse at 50% 85%, #ecebe7 0%, var(--bc-bg) 60%);
  border-radius: var(--bc-radius); overflow: hidden;
}
.bc-stage img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; user-select: none; pointer-events: none;
  transition: opacity .3s ease;
}
.bc-stage img.is-entering, .bc-stage img.is-leaving { opacity: 0; }

/* pierwsze pojawienie się roweru */
.bc-stage:not(.is-ready) img { opacity: 0; }
.bc-stage.is-ready { animation: bc-reveal .6s ease both; }
@keyframes bc-reveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* pasek postępu przy pierwszym wczytaniu */
.bc-loader {
  position: absolute; inset: 0; z-index: 500; display: grid; place-content: center; gap: 12px;
  justify-items: center; transition: opacity .35s ease;
}
.bc-loader.is-hidden { opacity: 0; }
.bc-progress-label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--bc-muted); }
.bc-progress { width: min(260px, 50vw); height: 3px; border-radius: 3px; background: var(--bc-line); overflow: hidden; }
.bc-progress-bar { width: 0; height: 100%; background: var(--bc-accent); transition: width .2s ease; }

/* dyskretny wskaźnik, gdy nowa część dopiero się wczytuje */
.bc-stage::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 30%; z-index: 600;
  background: var(--bc-accent); opacity: 0; transition: opacity .2s;
}
.bc-stage.is-ready.is-busy::after { opacity: .9; animation: bc-busy 1s ease-in-out infinite; }
@keyframes bc-busy { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.bc-visual-foot {
  display: flex; justify-content: space-between; align-items: end;
  padding: 18px 4px 0; border-top: 1px solid var(--bc-line); margin-top: 18px;
}
.bc-model-name { font-size: 15px; letter-spacing: .28em; color: var(--bc-muted); }
.bc-model-name strong { color: var(--bc-ink); letter-spacing: .12em; font-size: 26px; font-weight: 600; display: block; }
.bc-total { text-align: right; }
.bc-total span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--bc-muted); }
.bc-total-price { font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }

.bc-panel { display: flex; flex-direction: column; gap: 16px; }
.bc-steps { display: flex; flex-direction: column; border-top: 1px solid var(--bc-line); }
.bc-step { border-bottom: 1px solid var(--bc-line); }
.bc-step-head {
  width: 100%; display: grid; grid-template-columns: 32px 1fr auto; align-items: baseline; gap: 8px;
  padding: 16px 2px; background: none; border: 0; cursor: pointer; text-align: left; font: inherit; color: inherit;
}
.bc-step-no { font-size: 12px; color: var(--bc-accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.bc-step-title { font-weight: 600; font-size: 15px; }
.bc-step-value { font-size: 13px; color: var(--bc-muted); max-width: 190px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-step-body { display: none; padding: 0 0 18px 34px; }
.bc-step.is-open .bc-step-body { display: block; }
.bc-step.is-open .bc-step-value { visibility: hidden; }
.bc-sub-title { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--bc-muted); margin: 14px 0 8px; }
.bc-sub-title:first-child { margin-top: 0; }

.bc-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.bc-opt {
  display: flex; flex-direction: column; gap: 2px; text-align: left;
  padding: 10px 12px; background: var(--bc-card); border: 1px solid var(--bc-line); border-radius: 10px;
  cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s;
}
.bc-opt:hover { border-color: #c9c6bf; }
.bc-opt.is-on { border-color: var(--bc-ink); box-shadow: inset 0 0 0 1px var(--bc-ink); }
.bc-opt-name { font-size: 14px; font-weight: 500; }
.bc-opt-desc { font-size: 12px; color: var(--bc-muted); }
.bc-opt-price { font-size: 12px; color: var(--bc-accent); font-variant-numeric: tabular-nums; margin-top: 2px; }

.bc-cta { position: sticky; bottom: 0; background: linear-gradient(transparent, #fff 18%); padding-top: 18px; }
.bc-btn {
  width: 100%; padding: 15px 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--bc-ink); color: #fff; font: inherit; font-weight: 600; letter-spacing: .04em;
}
.bc-btn:hover { background: #000; }
.bc-note { font-size: 12px; color: var(--bc-muted); text-align: center; margin: 10px 0 0; }

.bc-modal {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px;
  background: rgba(21, 23, 26, .45); font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; color: #15171a;
}
.bc-modal-box {
  position: relative; width: min(640px, 100%); max-height: 92vh; overflow: auto;
  background: #fff; border-radius: 18px; padding: 28px;
}
.bc-modal-box h3 { margin: 0 0 16px; font-size: 20px; }
.bc-modal-x { position: absolute; top: 14px; right: 16px; border: 0; background: none; font-size: 26px; cursor: pointer; color: #6c7178; }
.bc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bc-table td { padding: 7px 0; border-bottom: 1px solid #eeece8; vertical-align: top; }
.bc-table td:first-child { color: #6c7178; width: 38%; }
.bc-table td:last-child { text-align: right; white-space: nowrap; color: #b8863b; font-variant-numeric: tabular-nums; }
.bc-modal-total { text-align: right; margin: 14px 0 20px; font-size: 15px; }
.bc-modal-total strong { font-size: 22px; margin-left: 8px; }
.bc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bc-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: #6c7178; }
.bc-form input, .bc-form textarea {
  font: inherit; color: #15171a; padding: 10px 12px; border: 1px solid #e4e2dd; border-radius: 10px;
}
.bc-form .bc-wide { grid-column: 1 / -1; }
.bc-form .bc-check { flex-direction: row; align-items: center; gap: 8px; }
.bc-form .bc-btn { margin-top: 4px; }

@media (max-width: 960px) {
  .bc { grid-template-columns: 1fr; }
  .bc-visual { position: static; }
  .bc-form { grid-template-columns: 1fr; }
}
.bc-round-note { display: block; font-size: 12px; color: #6c7178; margin-top: 4px; }

/* ---------- Udostępnianie, dobór rozmiaru, lupa ---------- */
.bc-btn-ghost { background: transparent !important; color: inherit !important; border: 1px solid currentColor !important; margin-top: 10px; }
.bc-size { margin: 2px 0 14px; padding: 14px; border-radius: 10px; background: rgba(199,163,90,.10); }
.bc-size label { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.bc-size label span:first-child { flex: 1; }
.bc-size input { width: 96px; font: inherit; font-size: 16px; padding: 9px 10px; border: 1px solid rgba(0,0,0,.18); border-radius: 8px; background: #fff; color: #17191b; text-align: right; }
.bc-size-unit { color: #6c6a64; }
.bc-size-msg { margin: 8px 0 0; font-size: 14px; line-height: 1.45; }
.bc-size-msg:empty { display: none; }
.bc-lens { position: absolute; left: 0; top: 0; z-index: 90; border-radius: 50%; overflow: hidden; pointer-events: none; background: var(--bc-bg, #f3f2ef);
  box-shadow: 0 0 0 2px rgba(255,255,255,.9), 0 10px 30px rgba(0,0,0,.35); }
.bc-lens-in { position: absolute; left: 0; top: 0; }
.bc-lens-in img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 1 !important; transition: none !important; }
.bc-stage.is-zoomed { overflow: hidden; }
.bc-stage.is-zoomed img { transform: scale(2.4); transform-origin: var(--zo, 50% 50%); }
.bc-stage img { transition-property: opacity, transform; }

.bc-zoom-btn { position: absolute; right: 14px; top: 14px; z-index: 95; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(255,255,255,.92); color: #17191b; box-shadow: 0 4px 14px rgba(0,0,0,.18); transition: background .2s, color .2s, transform .2s; }
.bc-zoom-btn:hover { transform: scale(1.06); }
.bc-zoom-btn svg { width: 22px; height: 22px; }
.bc-zoom-btn[aria-pressed="true"] { background: #17191b; color: #fff; }
.bc-zoom-btn[aria-pressed="true"] .plus { display: none; }
.bc-stage.is-zoom { cursor: zoom-out; }
@media not all and (hover: hover) and (pointer: fine) {
  .bc-zoom-btn { display: none; }
  .bc-stage.is-ready { cursor: zoom-in; }
  .bc-stage.is-zoomed { cursor: zoom-out; }
}
.bc-stage:not(.is-ready) .bc-zoom-btn { display: none; }
