/* Примерочная (Wall Planner): слева доски и полка изделий, в центре 3D-стена, справа — настройки выбранного изделия и итог */
.wallpage { background: var(--bg); }
.wallpage .top nav a[aria-current] { color: var(--accent); }
.w { display: grid; grid-template-columns: 270px 1fr 330px; height: calc(100dvh - 65px); }
.w-side { overflow-y: auto; padding: 18px 18px 24px; background: #fff; }
.w-left { border-right: 1px solid var(--line); }
.w-right { border-left: 1px solid var(--line); display: flex; flex-direction: column; padding-bottom: 0; }
.w h1 { font-size: 26px; letter-spacing: -.02em; margin: 0; }
.w-sub { color: var(--muted); font-size: 14px; margin: 4px 0 6px; }
.w-h { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 8px; }
.w-add { display: flex; gap: 6px; }
.w-add button { flex: 1; border: 1px dashed #bdb6a8; background: var(--tint); border-radius: 12px; padding: 9px 0; font-weight: 700; font-size: 13px; cursor: pointer; }
.w-add button:hover { border-color: var(--accent); color: var(--accent); }
.w-boards { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.w-b { display: flex; align-items: center; gap: 4px; background: var(--tint); border-radius: 12px; padding: 5px 6px 5px 12px; font-weight: 700; font-size: 14px; }
.w-b span { flex: 1; }
.w-b button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; font-size: 15px; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.w-bc { display: flex; } .w-bc button { flex: 1; padding: 7px 8px; font-size: 13px; }
.w-pal { display: flex; flex-direction: column; gap: 8px; }
.w-pi { display: flex; align-items: center; gap: 10px; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 6px 10px 6px 6px; cursor: grab; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.w-pi:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(24,32,44,.08); border-color: #cfc9bd; }
.w-pi img { width: 56px; height: 56px; border-radius: 11px; object-fit: cover; background: var(--tint); }
.w-pi span { flex: 1; display: flex; flex-direction: column; }
.w-pi b { font-size: 15px; } .w-pi small { color: var(--muted); font-size: 12px; }
.w-pi i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; font-size: 18px; }
.w-stage { position: relative; min-width: 0; background: #e4e0d8; overflow: hidden; touch-action: none; }
.w-canvas { display: block; width: 100%; height: 100%; }
.w-tools { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; z-index: 2; }
.w-tools button { border: 0; background: rgba(255,255,255,.92); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 13px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.w-stage .cfg-spin { position: absolute; top: 16px; left: 16px; opacity: 0; transition: opacity .2s; }
.w-stage.busy .cfg-spin { opacity: 1; }
.w-edit { flex: 1; }
.w-empty { display: flex; flex-direction: column; gap: 4px; padding: 22px 16px; border: 1px dashed #cfc9bd; border-radius: 16px; text-align: center; color: var(--muted); font-size: 14px; }
.w-empty b { color: var(--ink); font-size: 16px; }
.w-eh { display: flex; justify-content: space-between; align-items: baseline; font-size: 19px; }
.w-ep { font-weight: 800; color: var(--accent); }
.w-el { color: var(--muted); font-size: 13px; margin: 2px 0 12px; min-height: 18px; }
.w-sw { margin: 6px 0 14px; } .w-sw button { width: 26px; height: 26px; }
.w-eb { display: flex; gap: 8px; }
.btn.sm { padding: 9px 16px; font-size: 14px; flex: 1; }
.btn.ghost.danger { color: #b3261e; border-color: #e3b6b2; } .btn.ghost.danger:hover { background: #b3261e; color: #fff; }
.w-buy { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); margin: 14px -18px 0; padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); }
.w-warn { color: #b3261e; font-weight: 700; font-size: 13px; margin: 0 0 6px; min-height: 0; }
.w-warn:empty { display: none; }
.w-tot { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-weight: 700; }
.w-tot b { font-size: 24px; }
.w-buy small { display: block; color: var(--muted); font-size: 11px; margin-top: 8px; line-height: 1.35; }
#wcart:disabled { cursor: not-allowed; }
@media (max-width: 980px) {
  .w { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .w-stage { order: -1; height: min(56vh, 92vw); position: sticky; top: 65px; z-index: 5; }
  .w-left, .w-right { border: 0; }
  .w-left { padding-bottom: 8px; }
  .w-pal { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .w-pi { flex: 0 0 210px; scroll-snap-align: start; }
  .w-buy { position: fixed; left: 0; right: 0; margin: 0; z-index: 10; box-shadow: 0 -8px 24px rgba(0,0,0,.06); }
  .w-buy small { display: none; }
  .w-right { padding-bottom: 150px; }
  .wallpage .top nav { display: none; }
}
/* кружки над выбранным изделием: копия и корзина (Олесь 19.11.2026) */
.w-float { position: absolute; z-index: 3; display: flex; gap: 10px; transform: translate(-50%, -100%); pointer-events: none; }
.w-float[hidden] { display: none; }
.w-float button { pointer-events: auto; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--accent); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.18); transition: transform .15s var(--ease); }
.w-float button:hover { transform: scale(1.1); }
.w-float button.del { color: #d0352b; }
