/* ============================================================
   configurator.css — UI-ul „showroom" al configuratorului (v2)
   Tot ce e aici e izolat sub .cfx — nu atinge restul site-ului.
   Layout: desen tehnic mare + sticky (stânga) · pași (dreapta)
   · bară fixă de preț jos. Mobile: desen sus, bara jos.
   ============================================================ */

.cfx { --cfx-radius: 16px; --cfx-border: #e2ecf1; --cfx-surface: #ffffff;
  --cfx-ink: #12303e; --cfx-muted: #506a7a;
  --cfx-grad: linear-gradient(135deg, #1a5f7a, #2a8bb0);
  --cfx-shadow: 0 1px 2px rgba(16,42,54,.05), 0 8px 24px -12px rgba(16,42,54,.14);
  --cfx-accent: #f0a500;
  color: var(--cfx-ink);
}

/* ---------- selector produs (carduri) ---------- */
.cfx-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 6px 0 26px; }
.cfx-product-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 18px 12px 14px; background: var(--cfx-surface); border: 2px solid var(--cfx-border);
  border-radius: var(--cfx-radius); cursor: pointer; text-align: center;
  transition: border-color .18s, transform .18s, box-shadow .18s; }
.cfx-product-card:hover { transform: translateY(-2px); box-shadow: var(--cfx-shadow); border-color: #bcd6e2; }
.cfx-product-card.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,95,122,.12), var(--cfx-shadow); }
.cfx-product-card.active::after { content: '✓'; position: absolute; top: -9px; right: -9px; width: 24px; height: 24px;
  background: var(--cfx-grad); color: #fff; border-radius: 50%; font-size: .8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(16,42,54,.25); }
.cfx-product-ico { width: 54px; height: 54px; color: var(--primary); }
.cfx-product-ico svg { width: 100%; height: 100%; }
.cfx-product-card strong { font-size: .95rem; line-height: 1.25; }
.cfx-product-card small { color: var(--cfx-muted); font-size: .78rem; }

/* ---------- schelet 2 coloane ---------- */
.cfx-shell { display: grid; grid-template-columns: minmax(420px, 46%) 1fr; gap: 26px; align-items: start; }
.cfx-stage { position: sticky; top: 86px; }
.cfx-stage-card { background: var(--cfx-surface); border: 1px solid var(--cfx-border); border-radius: var(--cfx-radius);
  box-shadow: var(--cfx-shadow); padding: 18px 18px 14px; }
.cfx-stage-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.cfx-stage-title { font-weight: 700; font-size: 1.02rem; }
.cfx-stage-note { font-size: .74rem; color: var(--cfx-muted); }
.cfx-stage .preview-container { background:
    linear-gradient(0deg, rgba(26,95,122,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,95,122,.035) 1px, transparent 1px);
  background-size: 22px 22px; border: 1px dashed #d3e2ea; border-radius: 12px; padding: 10px; min-height: 300px; }
.cfx-stage .preview-container svg { display: block; width: 100%; height: auto; }

/* pastile performanță sub desen */
.cfx-perf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.cfx-perf-pill { background: #f4f9fb; border: 1px solid var(--cfx-border); border-radius: 12px; padding: 10px 8px; text-align: center; }
.cfx-perf-pill b { display: block; font-size: 1.05rem; color: var(--primary-dark); }
.cfx-perf-pill span { display: block; font-size: .7rem; color: var(--cfx-muted); margin-top: 2px; letter-spacing: .02em; }
.cfx-perf-note { font-size: .72rem; color: var(--cfx-muted); margin: 10px 2px 0; line-height: 1.45; }

/* rezumat compact sub desen */
.cfx-mini-sum { margin-top: 12px; border-top: 1px dashed var(--cfx-border); padding-top: 10px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.cfx-mini-sum > div { display: flex; justify-content: space-between; gap: 8px; font-size: .8rem; padding: 3px 0; }
.cfx-mini-sum dt, .cfx-mini-sum .k { color: var(--cfx-muted); }
.cfx-mini-sum dd, .cfx-mini-sum .v { font-weight: 600; text-align: right; margin: 0; }

/* ---------- coloana pași ---------- */
.cfx-steps { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cfx-step { background: var(--cfx-surface); border: 1px solid var(--cfx-border); border-radius: var(--cfx-radius);
  box-shadow: var(--cfx-shadow); padding: 18px 20px 20px; }
.cfx-step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.cfx-step-num { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 10px; background: var(--cfx-grad); color: #fff;
  font-weight: 700; font-size: .92rem; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(26,95,122,.28); }
.cfx-step-head h2 { margin: 0; font-size: 1.04rem; }
.cfx-step-head .cfx-step-opt { margin-left: auto; font-size: .72rem; color: var(--cfx-muted);
  background: #f1f6f9; padding: 3px 9px; border-radius: 99px; }
.cfx-hint { color: var(--cfx-muted); font-size: .83rem; line-height: 1.5; margin: 4px 0 14px; }

/* dimensiuni */
.cfx .dim-inputs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: start; }
.cfx .dim-separator { align-self: center; font-size: 1.2rem; color: var(--cfx-muted); padding-top: 20px; }
.cfx .input-unit { display: flex; align-items: center; gap: 8px; background: #f7fafc; border: 1.5px solid var(--cfx-border);
  border-radius: 12px; padding: 4px 12px 4px 4px; transition: border-color .15s, box-shadow .15s; }
.cfx .input-unit:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,95,122,.1); background: #fff; }
.cfx .input-unit input { border: 0; background: transparent; font-size: 1.18rem; font-weight: 700; color: var(--cfx-ink);
  width: 100%; padding: 8px 6px 8px 10px; outline: none; -moz-appearance: textfield; }
.cfx .input-unit input::-webkit-outer-spin-button, .cfx .input-unit input::-webkit-inner-spin-button { -webkit-appearance: none; }
.cfx .input-unit span { color: var(--cfx-muted); font-size: .82rem; font-weight: 600; }
.cfx .form-group label { font-size: .8rem; font-weight: 700; letter-spacing: .02em; color: var(--cfx-muted);
  text-transform: uppercase; margin-bottom: 7px; display: block; }

/* slider */
.cfx .dim-slider-track { position: relative; height: 30px; display: flex; align-items: center; margin-top: 8px;
  touch-action: none; cursor: ew-resize; }
.cfx .dim-slider { width: 100%; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 99px;
  background: linear-gradient(90deg, #cfe3ec, #e8f1f5); outline: none; }
.cfx .dim-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--cfx-grad); border: 3px solid #fff; box-shadow: 0 1px 5px rgba(16,42,54,.35); cursor: grab; }
.cfx .dim-slider::-moz-range-thumb { width: 17px; height: 17px; border-radius: 50%; background: var(--primary);
  border: 3px solid #fff; box-shadow: 0 1px 5px rgba(16,42,54,.35); cursor: grab; }
.cfx .dim-slider-hint { display: none; }

/* presets dimensiuni */
.cfx-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cfx-presets-label { flex-basis: 100%; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--cfx-muted); }
.cfx-preset { border: 1.5px solid var(--cfx-border); background: #fff; color: var(--cfx-ink); border-radius: 99px;
  padding: 6px 13px; font-size: .82rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.cfx-preset:hover { border-color: var(--primary); color: var(--primary); }
.cfx-preset.active { background: var(--cfx-grad); border-color: transparent; color: #fff; }

/* carduri sticlă */
.cfx .glass-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cfx .glass-cards-door { grid-template-columns: 1fr 1fr; }
.cfx .glass-card { position: relative; display: flex; flex-direction: column; gap: 10px; margin: 0;
  border: 2px solid var(--cfx-border); border-radius: 14px; padding: 14px; cursor: pointer;
  transition: border-color .16s, box-shadow .16s, transform .16s; background: #fff; }
.cfx .glass-card:hover { transform: translateY(-1px); border-color: #b9d5e2; }
.cfx .glass-card.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,95,122,.1); background: #f8fcfe; }
.cfx .glass-card input { position: absolute; opacity: 0; pointer-events: none; }
.cfx .glass-card-reco { position: absolute; top: -10px; left: 12px; background: var(--cfx-accent); color: #4a3200;
  font-size: .66rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px;
  border-radius: 99px; box-shadow: 0 2px 6px rgba(240,165,0,.4); }
.cfx .glass-card-visual { display: flex; gap: 3px; align-items: stretch; height: 42px; padding: 5px;
  background: #eef5f8; border-radius: 8px; width: fit-content; }
.cfx .glass-pane { width: 7px; border-radius: 2px; background: linear-gradient(180deg, #bfe3f2, #7fc4de); border: 1px solid #6cb1cc; }
.cfx .glass-spacer { width: 12px; }
.cfx .glass-pvc-fill { width: 26px; border-radius: 3px; background: repeating-linear-gradient(45deg, #dde7ec, #dde7ec 5px, #cfdde5 5px, #cfdde5 10px); }
.cfx .glass-none-fill { width: 26px; border-radius: 3px; border: 1.5px dashed #9fb3bd; background: #fff; }
.cfx .glass-card-info { display: flex; flex-direction: column; gap: 3px; }
.cfx .glass-card-info strong { font-size: .95rem; }
.cfx .glass-card-info span { font-size: .78rem; color: var(--cfx-muted); line-height: 1.4; }
.cfx .glass-card-info em { font-style: normal; font-weight: 800; color: var(--primary-dark); font-size: .88rem; margin-top: 2px; }

/* hint economie energie */
.cfx-energy { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px;
  background: linear-gradient(135deg, #f2fbf4, #e8f7ee); border: 1px solid #cdebd7; border-radius: 12px;
  font-size: .84rem; line-height: 1.5; color: #14532d; }
.cfx-energy svg { flex: 0 0 22px; margin-top: 1px; }
.cfx-energy b { color: #166534; }
.cfx-energy[hidden] { display: none; }

/* canaturi */
.cfx .canaturi-picker { display: flex; flex-wrap: wrap; gap: 10px; }
.cfx .canat-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 66px;
  border: 2px solid var(--cfx-border); border-radius: 12px; padding: 10px 12px; cursor: pointer; margin: 0;
  transition: all .15s; background: #fff; }
.cfx .canat-btn:hover { border-color: #b9d5e2; }
.cfx .canat-btn.active { border-color: var(--primary); background: #f8fcfe; box-shadow: 0 0 0 3px rgba(26,95,122,.1); }
.cfx .canat-btn input { position: absolute; opacity: 0; pointer-events: none; }
.cfx .canat-num { font-size: 1.25rem; font-weight: 800; color: var(--primary-dark); line-height: 1.15; display: flex; align-items: center; }
.cfx .canat-label { font-size: .68rem; color: var(--cfx-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }

/* tip per canat */
.cfx .sash-mode-row { border: 1px solid var(--cfx-border); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: #fbfdfe; }
.cfx .sash-mode-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cfx .sash-mode-label { font-weight: 800; font-size: .82rem; color: var(--primary-dark); min-width: 64px; }
.cfx .sash-mode-options { display: flex; flex-wrap: wrap; gap: 7px; }
.cfx .sash-mode-btn { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--cfx-border);
  border-radius: 99px; padding: 6px 12px; font-size: .8rem; font-weight: 600; cursor: pointer; margin: 0;
  transition: all .15s; background: #fff; }
.cfx .sash-mode-btn:hover { border-color: var(--primary); }
.cfx .sash-mode-btn.active { background: var(--cfx-grad); color: #fff; border-color: transparent; }
.cfx .sash-mode-btn input { position: absolute; opacity: 0; pointer-events: none; }
.cfx .sash-mode-width { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.cfx .sash-width-inline-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--cfx-muted); }
.cfx .sash-width-value { display: flex; align-items: center; gap: 6px; background: #fff; border: 1.5px solid var(--cfx-border);
  border-radius: 10px; padding: 2px 10px 2px 2px; }
.cfx .sash-width-value input { border: 0; width: 74px; font-weight: 700; font-size: .95rem; padding: 6px 2px 6px 8px; outline: none; background: transparent; }
.cfx .sash-width-value span { font-size: .75rem; color: var(--cfx-muted); font-weight: 600; }
.cfx .sash-width-track { flex: 1; position: relative; height: 26px; display: flex; align-items: center; touch-action: none; }
.cfx .sash-width-range { width: 100%; -webkit-appearance: none; appearance: none; height: 5px; border-radius: 99px; background: #dcebf2; outline: none; }
.cfx .sash-width-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--cfx-grad); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(16,42,54,.3); cursor: grab; }
.cfx .sash-width-range::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: var(--primary); border: 3px solid #fff; cursor: grab; }
.cfx .sash-widths-total { font-size: .78rem; color: var(--cfx-muted); margin: 2px 2px 0; }

/* balamale / montant / supralumă */
.cfx .hinge-control { display: inline-flex; align-items: center; gap: 10px; }
.cfx .qty-btn { width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid var(--cfx-border); background: #fff;
  font-size: 1.25rem; font-weight: 700; color: var(--primary-dark); cursor: pointer; transition: all .14s;
  display: inline-flex; align-items: center; justify-content: center; }
.cfx .qty-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.cfx .hinge-control input, .cfx .qty-control input { width: 72px; text-align: center; font-size: 1.15rem; font-weight: 800;
  border: 1.5px solid var(--cfx-border); border-radius: 12px; padding: 8px 4px; -moz-appearance: textfield; }
.cfx .hinge-control input::-webkit-inner-spin-button, .cfx .qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; }
.cfx .hinge-control-label { color: var(--cfx-muted); font-size: .85rem; font-weight: 600; }
.cfx .mullion-picker, .cfx .side-panel-cards { display: flex; flex-wrap: wrap; gap: 10px; }
.cfx .mullion-btn { border: 2px solid var(--cfx-border); border-radius: 12px; padding: 10px 16px; cursor: pointer; margin: 0;
  font-size: .86rem; font-weight: 600; transition: all .15s; background: #fff; }
.cfx .mullion-btn.active { border-color: var(--primary); background: #f8fcfe; box-shadow: 0 0 0 3px rgba(26,95,122,.1); }
.cfx .mullion-btn input { position: absolute; opacity: 0; pointer-events: none; }
.cfx .side-panel-card { display: flex; flex-direction: column; gap: 2px; border: 2px solid var(--cfx-border); border-radius: 12px;
  padding: 10px 16px; cursor: pointer; margin: 0; transition: all .15s; background: #fff; }
.cfx .side-panel-card.active { border-color: var(--primary); background: #f8fcfe; }
.cfx .side-panel-card input { position: absolute; opacity: 0; pointer-events: none; }
.cfx .side-panel-card strong { font-size: .88rem; }
.cfx .side-panel-card span { font-size: .74rem; color: var(--cfx-muted); }

/* prag jos (uși): PVC standard / aluminiu */
.cfx .threshold-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cfx .threshold-card { position: relative; display: flex; flex-direction: column; gap: 3px; border: 2px solid var(--cfx-border); border-radius: 12px;
  padding: 12px 14px 12px; cursor: pointer; margin: 0; transition: all .15s; background: #fff; }
.cfx .threshold-card.active { border-color: var(--primary); background: #f8fcfe; box-shadow: 0 0 0 3px rgba(26,95,122,.1); }
.cfx .threshold-card input { position: absolute; opacity: 0; pointer-events: none; }
.cfx .threshold-card strong { font-size: .88rem; }
.cfx .threshold-card span { font-size: .74rem; color: var(--cfx-muted); }
.cfx .threshold-card em { font-style: normal; font-weight: 700; color: var(--primary); }
/* mini-secțiune: montant + foaie + prag (ce se schimbă e doar pragul) */
.cfx .threshold-visual { display: block; width: 100%; height: 34px; margin-bottom: 6px; border-radius: 6px;
  background: linear-gradient(#f3f6f8, #e9eef1); border: 1px solid #d5dde2; position: relative; overflow: hidden; }
.cfx .threshold-visual::before { content: ''; position: absolute; left: 14px; right: 14px; top: 4px; bottom: 11px;
  background: linear-gradient(135deg, #e4eaee, #f6f8f9); border: 3px solid #f5f6f7; box-shadow: inset 0 0 0 1px #c7cfd5; border-radius: 2px 2px 0 0; }
.cfx .threshold-visual i { position: absolute; left: 10px; right: 10px; bottom: 4px; height: 7px; border-radius: 1px; }
.cfx .threshold-visual-pvc i { background: linear-gradient(#ffffff, #dfe4e8); border: 1px solid #b4bcc2; }
.cfx .threshold-visual-alu i { height: 4px; bottom: 5px; background: linear-gradient(#eef1f3, #c9d1d6 55%, #8e9aa1); border: 1px solid #7d878e; }
/* fără prag: foaia coboară până jos, tocul e deschis */
.cfx .threshold-visual-none::before { bottom: 3px; border-bottom: 0; }
.cfx .threshold-visual-none i { display: none; }
@media (max-width: 640px) { .cfx .threshold-cards { grid-template-columns: 1fr; } }

/* culori profil */
.cfx .color-picker { display: flex; flex-wrap: wrap; gap: 10px; }
.cfx .color-swatch-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 2px solid transparent;
  background: transparent; border-radius: 12px; padding: 8px; cursor: pointer; transition: all .15s; }
.cfx .color-swatch-btn span { width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(0,0,0,.12);
  box-shadow: inset 0 1px 3px rgba(255,255,255,.4), 0 1px 3px rgba(16,42,54,.15); }
.cfx .color-swatch-btn small { font-size: .68rem; color: var(--cfx-muted); font-weight: 600; }
.cfx .color-swatch-btn:hover { background: #f1f7fa; }
.cfx .color-swatch-btn.active { border-color: var(--primary); background: #f2f9fc; }
.cfx .color-swatch-btn.active small { color: var(--primary-dark); font-weight: 800; }

/* baghete geam */
.cfx .glass-bead-row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--cfx-border); border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; background: #fbfdfe; }
.cfx .glass-bead-row label { margin: 0; font-size: .82rem; font-weight: 600; color: var(--cfx-ink); text-transform: none; letter-spacing: 0; }
.cfx .glass-bead-row .input-unit { flex: 0 0 auto; }
.cfx .glass-bead-row .input-unit input { width: 64px; font-size: .95rem; }
.cfx .glass-pane-price-hint, .cfx .glass-order-size-hint { font-size: .8rem; color: var(--cfx-muted); margin-top: 8px; }

/* ---------- bara fixă de preț ---------- */
.cfx-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--cfx-border); box-shadow: 0 -6px 24px -12px rgba(16,42,54,.25); }
.cfx-bar-inner { max-width: 1200px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 16px; }
.cfx-bar-total { display: flex; flex-direction: column; line-height: 1.15; }
.cfx-bar-total small { font-size: .68rem; color: var(--cfx-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.cfx-bar-total strong { font-size: 1.5rem; color: var(--primary-dark); font-variant-numeric: tabular-nums; }
.cfx-bar-total strong.pulse { animation: cfxPulse .45s ease; }
@keyframes cfxPulse { 0% { transform: scale(1); color: var(--primary-dark); } 35% { transform: scale(1.09); color: #b97f00; } 100% { transform: scale(1); } }
.cfx-bar-meta { font-size: .78rem; color: var(--cfx-muted); line-height: 1.35; flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfx-bar-actions { display: flex; align-items: center; gap: 10px; }
.cfx-share-btn { display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--cfx-border); background: #fff;
  color: var(--primary-dark); border-radius: 12px; padding: 10px 14px; font-size: .84rem; font-weight: 700; cursor: pointer;
  transition: all .15s; white-space: nowrap; }
.cfx-share-btn:hover { border-color: var(--primary); background: #f4fafc; }
.cfx-share-btn.copied { border-color: #16a34a; color: #15803d; background: #f0fdf4; }
.cfx-bar .btn-primary { padding: 12px 26px; border-radius: 12px; font-size: .95rem; font-weight: 800;
  background: var(--cfx-grad); border: 0; box-shadow: 0 4px 14px -4px rgba(26,95,122,.5); white-space: nowrap; }
.cfx-bar .btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.cfx-bar-spacer { height: 74px; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .cfx-shell { grid-template-columns: 1fr; }
  .cfx-stage { position: static; }
  .cfx-products { grid-template-columns: repeat(2, 1fr); }
  .cfx .glass-cards, .cfx .glass-cards-door { grid-template-columns: 1fr; }
  .cfx-mini-sum { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cfx .dim-inputs { grid-template-columns: 1fr; }
  .cfx .dim-separator { display: none; }
  .cfx-step { padding: 15px 14px 16px; }
  .cfx-bar-meta { display: none; }
  .cfx-bar-inner { padding: 8px 12px; gap: 10px; justify-content: space-between; }
  .cfx-bar-total strong { font-size: 1.25rem; }
  .cfx-share-btn span { display: none; }
  .cfx-bar-spacer { height: 66px; }
  .cfx-stage .preview-container { min-height: 230px; }
}

/* ---------- simulare deschidere (pe desenul tehnic) ---------- */
.cfx-anim-btn { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--cfx-border);
  background: #fff; color: var(--primary-dark); border-radius: 99px; padding: 5px 13px; font-size: .78rem;
  font-weight: 700; cursor: pointer; transition: all .15s; white-space: nowrap; }
.cfx-anim-btn:hover { border-color: var(--primary); background: #f2f9fc; }
.cfx-anim-btn:disabled { opacity: .45; cursor: default; }
.cfx-anim-btn[hidden] { display: none; }

.pv-sash { transform-box: fill-box; }
.cfx-anim .pv-sash { will-change: transform; }
.cfx-anim .pv-sash[data-pv-mode="deschidere-simpla"] { transform-origin: left center; animation: pvSwing 2.6s ease-in-out 1; }
.cfx-anim .pv-sash[data-pv-mode="rabatant"] { transform-origin: center bottom; animation: pvTilt 2.2s ease-in-out 1; }
.cfx-anim .pv-sash[data-pv-mode="oscilobatant"] { transform-origin: left bottom; animation: pvOsci 3.6s ease-in-out 1; }
/* balamale pe dreapta: foaia se rotește în jurul muchiei din dreapta */
.cfx-anim .pv-sash[data-pv-mode="deschidere-simpla"][data-pv-side="dreapta"] { transform-origin: right center; animation-name: pvSwingR; }
.cfx-anim .pv-sash[data-pv-mode="oscilobatant"][data-pv-side="dreapta"] { transform-origin: right bottom; animation-name: pvOsciR; }

@keyframes pvSwing {
  0%, 100% { transform: none; }
  40%, 62% { transform: scaleX(0.24) skewY(-6deg); }
}
@keyframes pvSwingR {
  0%, 100% { transform: none; }
  40%, 62% { transform: scaleX(0.24) skewY(6deg); }
}
@keyframes pvTilt {
  0%, 100% { transform: none; }
  42%, 62% { transform: scaleY(0.82) skewX(4deg); }
}
@keyframes pvOsci {
  0%, 100% { transform: none; }
  15%, 27% { transform: scaleY(0.82) skewX(3deg); }
  44%      { transform: none; }
  62%, 80% { transform: scaleX(0.24) skewY(-6deg); }
}
@keyframes pvOsciR {
  0%, 100% { transform: none; }
  15%, 27% { transform: scaleY(0.82) skewX(-3deg); }
  44%      { transform: none; }
  62%, 80% { transform: scaleX(0.24) skewY(6deg); }
}
@media (prefers-reduced-motion: reduce) {
  .cfx-anim .pv-sash { animation: none !important; }
}

/* click pe mâner / canat: animație individuală */
.pv-handle-hit { cursor: pointer; }
.pv-sash { cursor: pointer; }
.pv-sash.pv-play[data-pv-mode="deschidere-simpla"] { transform-origin: left center; animation: pvSwing 2.6s ease-in-out 1; }
.pv-sash.pv-play[data-pv-mode="rabatant"] { transform-origin: center bottom; animation: pvTilt 2.2s ease-in-out 1; }
.pv-sash.pv-play[data-pv-mode="oscilobatant"] { transform-origin: left bottom; animation: pvOsci 3.6s ease-in-out 1; }
.pv-sash.pv-play[data-pv-mode="deschidere-simpla"][data-pv-side="dreapta"] { transform-origin: right center; animation-name: pvSwingR; }
.pv-sash.pv-play[data-pv-mode="oscilobatant"][data-pv-side="dreapta"] { transform-origin: right bottom; animation-name: pvOsciR; }
@media (prefers-reduced-motion: reduce) {
  .pv-sash.pv-play { animation: none !important; }
}
