/* ==========================================================================
   configurator.css — Stiluri Configurator Public · MyClubCar Default Theme
   Migrat din: assets/css/style.css (secțiunea Configurator-specific)
             + assets/css/configurator-v3.css
   Folosit doar în layout-ul public, pe paginile:
     configurator.php / view-config.php / index.php (prod-grid)
   ========================================================================== */

/* ── Design tokens suplimentare ───────────────────────────────────────────── */
:root {
  --std-color:  var(--green);
  --std-bg:     var(--green-bg);
  --req-color:  var(--blue);
  --req-bg:     var(--blue-bg);
  --opt-color:  var(--text-2);
  --pt-border:  var(--border);
  --pt-sel-bg:  #fdf8f4;
  --tooltip-bg: #1e293b;
}


/* ==========================================================================
   1. LAYOUT CONFIGURATOR
   ========================================================================== */

.cfg-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
  padding: 24px 0 60px;
}
@media (max-width: 1100px) {
  .cfg-layout { grid-template-columns: 1fr 290px; gap: 18px; }
}
@media (max-width: 900px) {
  .cfg-layout { grid-template-columns: 1fr; gap: 20px; }
  .summary-panel { position: static !important; order: -1; }
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }


/* ==========================================================================
   2. STEP CARDS
   ========================================================================== */

.steps { display: flex; flex-direction: column; gap: 14px; }

.step-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
  transition: border-color var(--t);
}
.step-card.is-active { border-color: var(--brand); }
.step-card.is-done   { border-color: var(--green); }
.step-card[data-conditional] { opacity: .96; }

.step-hd {
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  background: var(--bg);
}
.step-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .82rem;
  flex-shrink: 0;
  transition: background var(--t), color var(--t);
}
.step-card.is-active .step-num { background: var(--brand); color: #fff; }
.step-card.is-done   .step-num { background: var(--green); color: #fff; }
.step-info    { flex: 1; min-width: 0; }
.step-title   { font-weight: 700; font-size: .92rem; }
.step-val     { font-size: .78rem; color: var(--text-2); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step-desc    { font-size: .76rem; color: var(--text-2); margin-top: 1px; margin-bottom: 2px; }
.step-chevron { color: var(--text-3); transition: transform var(--t); font-size: 1rem; }
.step-card.is-active .step-chevron { transform: rotate(180deg); color: var(--brand); }

.step-body        { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.step-body.open   { max-height: 700px; overflow-y: auto; }
.step-body-inner  { padding: 6px 18px 18px; }

/* Powertrain step */
.step-powertrain              { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand-light); }
.step-powertrain .step-hd     { background: var(--brand-light); }
.step-powertrain .step-num    { background: var(--brand); color: #fff; }
.step-powertrain .step-body.open,
.step-package    .step-body.open { max-height: 900px; }

/* Package step */
.step-package .step-hd  { background: #f8fafc; }
.step-package .step-num { background: var(--navy); color: #fff; }

/* Group type badge */
.group-type-badge {
  display: inline-flex; align-items: center;
  padding: 1px 7px;
  background: var(--brand); color: #fff;
  border-radius: 10px;
  font-size: .65rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  margin-left: 7px; vertical-align: middle;
}


/* ==========================================================================
   3. OPTION LISTS
   ========================================================================== */

.opt-list { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }

.opt-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 13px;
  border: 2px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color var(--t), background var(--t);
  position: relative;
  background: var(--surface);
}
.opt-item:hover        { border-color: var(--brand); background: var(--brand-light); }
.opt-item.sel          { border-color: var(--brand); background: var(--brand-light); }
.opt-item.excl         { opacity: .4; pointer-events: none; }
.opt-item.locked       { cursor: default; background: var(--bg); border-style: dashed; }
.opt-item.locked:hover { border-color: var(--green); background: var(--bg); }

/* dt-standard variant */
.opt-item.dt-standard       { border-color: #d1fae5; background: #f0fdf4; }
.opt-item.dt-standard:hover { border-color: var(--std-color); background: var(--std-bg); }
.opt-item.dt-standard.sel   { border-color: var(--std-color); background: var(--std-bg); }

/* Radio control */
.opt-radio {
  width: 17px; height: 17px;
  border-radius: 50%;
  border: 2px solid var(--border-dark);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--t), background var(--t);
}
.opt-item.sel .opt-radio           { border-color: var(--brand); background: var(--brand); }
.opt-item.sel .opt-radio::after    { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; display: block; }
.opt-radio.filled                  { border-color: var(--brand); background: var(--brand); }
.opt-radio.filled::after           { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; display: block; }

/* Checkbox control */
.opt-checkbox {
  width: 17px; height: 17px;
  border-radius: 4px;
  border: 2px solid var(--border-dark);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--t), background var(--t);
  font-size: .7rem;
}
.opt-item.sel .opt-checkbox { border-color: var(--brand); background: var(--brand); color: #fff; }

/* Option item content */
.opt-item-info   { flex: 1; min-width: 0; }
.opt-item-name   { font-size: .88rem; font-weight: 600; }
.opt-item-desc   { font-size: .76rem; color: var(--text-2); margin-top: 2px; }
.opt-item-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.opt-item-price  { font-size: .85rem; font-weight: 700; color: var(--brand); white-space: nowrap; }


/* ==========================================================================
   4. POWERTRAIN CARDS
   ========================================================================== */

.opt-powertrain {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.opt-pt-card {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 14px 13px;
  border: 2px solid var(--pt-border);
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
  position: relative;
  background: var(--surface);
}
.opt-pt-card:hover  { border-color: var(--brand); background: var(--pt-sel-bg); box-shadow: var(--shadow-sm); }
.opt-pt-card.sel    { border-color: var(--brand); background: var(--brand-light); box-shadow: 0 0 0 1px var(--brand); }
.opt-pt-card.excl   { opacity: .4; pointer-events: none; }
.opt-pt-card.locked { cursor: default; border-style: dashed; }
.opt-pt-card .chk {
  position: absolute; top: 8px; right: 10px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--brand); color: #fff;
  font-size: .72rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--t);
}
.opt-pt-card.sel .chk { opacity: 1; }
.pt-icon        { font-size: 1.6rem; line-height: 1; flex-shrink: 0; margin-top: 1px; }
.pt-info        { flex: 1; min-width: 0; }
.pt-name        { font-size: .88rem; font-weight: 700; color: var(--text-1); margin-bottom: 5px; line-height: 1.3; }
.pt-price-base  { display: inline-block; font-size: .75rem; color: var(--std-color); font-weight: 600; background: var(--std-bg); padding: 2px 7px; border-radius: 10px; }
.pt-price-delta { display: inline-block; font-size: .75rem; color: var(--brand-h); font-weight: 700; background: var(--brand-light); padding: 2px 7px; border-radius: 10px; }


/* ==========================================================================
   5. COLOR SWATCHES
   ========================================================================== */

.opt-colors {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.opt-color {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 10px 6px 8px;
  border: 2px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color var(--t), background var(--t), transform var(--t);
  background: var(--surface);
  text-align: center;
}
.opt-color:hover { border-color: var(--brand); background: var(--brand-light); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.opt-color.sel   { border-color: var(--brand); background: var(--brand-light); box-shadow: 0 0 0 1px var(--brand); }
.opt-color.excl  { opacity: .35; pointer-events: none; }
.opt-color.locked { cursor: default; border-style: dashed; }
.opt-color .dot  { width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(0,0,0,.08); flex-shrink: 0; box-shadow: inset 0 1px 3px rgba(0,0,0,.15); transition: transform .15s ease; }
.opt-color:hover .dot { transform: scale(1.1); }
.opt-color.sel .dot   { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand), inset 0 1px 3px rgba(0,0,0,.15); }
.opt-color .lbl  { font-size: .70rem; font-weight: 600; color: var(--text-1); line-height: 1.25; word-break: break-word; }
.opt-color .prc  { font-size: .68rem; font-weight: 700; color: var(--std-color); }


/* ==========================================================================
   6. IMAGE CARDS
   ========================================================================== */

.opt-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.opt-img-card {
  display: flex; flex-direction: column;
  border: 2px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color var(--t), box-shadow var(--t);
  position: relative; overflow: hidden;
  background: var(--surface);
}
.opt-img-card:hover  { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.opt-img-card.sel    { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.opt-img-card.excl   { opacity: .35; pointer-events: none; }
.opt-img-card.locked { cursor: default; border-style: dashed; }
.opt-img-card img    { width: 100%; height: 90px; object-fit: cover; }
.opt-img-card .info  { padding: 6px 8px 8px; }
.opt-img-card .lbl   { font-size: .76rem; font-weight: 600; color: var(--text-1); }
.opt-img-card .chk   { position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .6rem; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity var(--t); }
.opt-img-card.sel .chk { opacity: 1; }


/* ==========================================================================
   7. OPTION BADGES
   ========================================================================== */

.opt-badge {
  display: inline-flex; align-items: center;
  padding: 2px 7px; border-radius: 10px;
  font-size: .67rem; font-weight: 700; white-space: nowrap;
}
.opt-badge-standard    { background: var(--std-bg); color: var(--std-color); }
.opt-badge-included    { background: var(--std-bg); color: var(--std-color); }
.opt-badge-recommended { background: var(--amber-bg); color: #b45309; }
.opt-badge-quote       { background: var(--violet-bg); color: #7c3aed; }
.opt-badge-delivery    { background: #fff7ed; color: #c2410c; }

/* display_type badge */
.opt-dt-badge {
  display: inline-flex; align-items: center;
  padding: 1px 6px; border-radius: 8px;
  font-size: .64rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  margin-right: 5px; vertical-align: middle;
}
.dt-standard { background: var(--std-bg); color: var(--std-color); border: 1px solid #a7f3d0; }


/* ==========================================================================
   8. TOOLTIP
   ========================================================================== */

.opt-tooltip-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--border-dark);
  background: var(--bg); color: var(--text-2);
  font-size: .62rem; font-weight: 700; font-style: italic;
  cursor: pointer; margin-left: 5px; vertical-align: middle;
  transition: background var(--t), color var(--t), border-color var(--t);
  flex-shrink: 0; line-height: 1; padding: 0;
}
.opt-tooltip-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.opt-tooltip-popup {
  max-width: 280px;
  background: var(--tooltip-bg); color: #e2e8f0;
  font-size: .8rem; line-height: 1.55;
  padding: 10px 14px;
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown);
  pointer-events: auto;
  animation: ttFadeIn .15s ease;
}
@keyframes ttFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ==========================================================================
   9. SUMMARY PANEL
   ========================================================================== */

.summary-panel { position: sticky; top: 80px; }
.summary-hd    { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.summary-hd h3 { font-size: .9rem; font-weight: 700; }

.summary-img {
  width: 100%; height: 180px;
  object-fit: cover; border-radius: var(--r);
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--navy), #2d2d50);
  display: flex; align-items: center; justify-content: center;
}
.summary-img img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); }
.summary-items   { display: flex; flex-direction: column; gap: 0; }
.sum-row         { display: flex; justify-content: space-between; align-items: flex-start; padding: 7px 0; border-bottom: 1px solid var(--border); gap: 8px; }
.sum-row:last-child { border: none; }
.sum-lbl         { font-size: .75rem; color: var(--text-2); }
.sum-name        { font-size: .82rem; font-weight: 600; }
.sum-actions     { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }


/* ==========================================================================
   10. PROGRESS BAR
   ========================================================================== */

.cfg-progress { margin-bottom: 6px; }
.cfg-progress-bar-wrap { height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; margin-top: 4px; }
#progress-bar { height: 100%; background: linear-gradient(90deg, var(--brand), var(--green)); border-radius: 3px; transition: width .4s ease; width: 0; }


/* ==========================================================================
   11. PRODUCT GRID (catalog / home)
   ========================================================================== */

.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }

.prod-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
  text-decoration: none; color: var(--text-1); display: block;
}
.prod-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: var(--brand); }
.prod-card-img {
  width: 100%; height: 190px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
  border-bottom: 1px solid var(--border);
}
.prod-card-img img        { width: 100%; height: 100%; object-fit: contain; padding: 16px; transition: transform .25s ease; }
.prod-card:hover .prod-card-img img { transform: scale(1.04); }
.prod-card-body           { padding: 16px; }
.prod-card-family         { font-size: .72rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.prod-card-name           { font-size: .98rem; font-weight: 700; margin-bottom: 3px; }
.prod-card-variant        { font-size: .78rem; color: var(--text-2); margin-bottom: 8px; }
.prod-card-badges         { display: flex; flex-wrap: wrap; gap: 4px; }

/* Families group header */
.family-group    { margin-bottom: 2.5rem; }
.family-group-hd { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--border); }
.family-group-hd h2 { font-size: 1.1rem; font-weight: 700; }

/* Template cards */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.tpl-card {
  border: 2px solid var(--border);
  border-radius: var(--r);
  padding: 14px; cursor: pointer;
  transition: border-color var(--t), box-shadow var(--t);
  text-align: center;
  background: var(--surface);
}
.tpl-card:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.tpl-card h4    { font-size: .88rem; font-weight: 700; margin-bottom: 5px; }
.tpl-card p     { font-size: .76rem; color: var(--text-2); }


/* ==========================================================================
   12. LANG TOGGLE (topbar public configurator)
   ========================================================================== */

#lang-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 11px;
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 20px;
  background: transparent; color: #fff;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em;
  cursor: pointer;
  transition: background var(--t), border-color var(--t);
  white-space: nowrap;
}
#lang-toggle:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); }

.topbar-actions { display: flex; align-items: center; gap: 10px; }


/* ==========================================================================
   13. RESPONSIVE
   ========================================================================== */

@media (max-width: 640px) {
  .opt-powertrain { grid-template-columns: 1fr 1fr; }
  .opt-pt-card    { flex-direction: column; gap: 6px; padding: 11px 10px; }
  .pt-icon        { font-size: 1.2rem; }
  .opt-colors     { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 6px; }
  .opt-color .dot { width: 28px; height: 28px; }
  .opt-tooltip-popup { max-width: calc(100vw - 32px); left: 16px !important; }
}
@media (max-width: 400px) {
  .opt-powertrain { grid-template-columns: 1fr; }
}

/* ==========================================================================
   14. POWERTRAIN V2 — CARD-URI ELEVATED (mockup-P2-v1.3)
   Clase noi: opt-powertrain-v2, pt2-* — nu suprascriu clasele pt-* existente
   ========================================================================== */

.opt-powertrain-v2 { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }

.pt2-card {
  display: grid;
  grid-template-columns: 72px 1fr 140px;
  border: 2px solid var(--border);
  border-radius: var(--r2);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  background: var(--surface);
  overflow: hidden;
  position: relative;
}
.pt2-card:hover { border-color: var(--brand); box-shadow: 0 2px 12px rgba(175,129,92,.12); }
.pt2-card.sel   { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 4px 20px rgba(175,129,92,.18); }
.pt2-card.excl  { opacity: .4; pointer-events: none; }
.pt2-card.locked { cursor: default; }

/* Stripe stânga */
.pt2-stripe {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 20px 0;
  background: var(--bg);
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  transition: background .15s;
}
.pt2-card.sel .pt2-stripe { background: var(--brand-light); border-right-color: rgba(175,129,92,.2); }

.pt2-stripe-ico {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1.5px solid var(--border);
  transition: all .15s;
}
.pt2-stripe-ico svg {
  width: 20px; height: 20px;
  fill: none; stroke: var(--text-3);
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .15s;
}
.pt2-card.sel .pt2-stripe-ico { background: var(--brand); border-color: var(--brand); }
.pt2-card.sel .pt2-stripe-ico svg { stroke: #fff; }

.pt2-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s;
}
.pt2-card.sel .pt2-check { opacity: 1; }
.pt2-check svg {
  width: 11px; height: 11px;
  fill: none; stroke: #fff;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

/* Body central */
.pt2-body { padding: 16px 18px; min-width: 0; }

.pt2-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 5px; flex-wrap: wrap;
}
.pt2-name {
  font-size: .95rem; font-weight: 800;
  color: var(--text-1); letter-spacing: -.02em;
}
.pt2-tagline {
  font-size: .76rem; color: var(--text-2);
  margin-bottom: 12px; line-height: 1.5;
}

/* Specs chips */
.pt2-specs {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 8px; margin-bottom: 12px;
}
.pt2-spec { display: flex; flex-direction: column; gap: 2px; }
.pt2-spec-ico {
  width: 24px; height: 24px;
  border-radius: 6px; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 3px;
}
.pt2-spec-ico svg {
  width: 12px; height: 12px;
  fill: none; stroke: var(--text-3);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .15s;
}
.pt2-card.sel .pt2-spec-ico svg { stroke: var(--brand); }
.pt2-spec-val {
  font-size: .76rem; font-weight: 800;
  color: var(--text-1);
  font-family: var(--font-mono, 'DM Mono', monospace);
  line-height: 1;
}
.pt2-spec-lbl {
  font-size: .6rem; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .05em; font-weight: 600;
}

/* Bare progres */
.pt2-bars { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.pt2-bar-row {
  display: grid; grid-template-columns: 76px 1fr 28px;
  align-items: center; gap: 8px;
}
.pt2-bar-lbl {
  font-size: .64rem; color: var(--text-3);
  font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
}
.pt2-bar-track {
  height: 5px; background: var(--border);
  border-radius: 3px; overflow: hidden;
}
.pt2-bar-fill { height: 100%; border-radius: 3px; transition: width .4s ease; }
.bar-green { background: var(--green); }
.bar-blue  { background: var(--blue); }
.bar-amber { background: var(--amber); }
.bar-brand { background: var(--brand); }
.pt2-bar-score {
  font-size: .62rem; font-weight: 800; color: var(--text-3);
  font-family: var(--font-mono, 'DM Mono', monospace);
  text-align: right;
}

/* Pros tags */
.pt2-pros { display: flex; flex-wrap: wrap; gap: 4px; }
.pt2-pro {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: .66rem; font-weight: 600;
  padding: 2px 7px; border-radius: 20px;
  background: var(--bg); color: var(--text-2);
  border: 1px solid var(--border);
}
.pt2-pro svg {
  width: 9px; height: 9px;
  fill: none; stroke: var(--green);
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.pt2-card.sel .pt2-pro {
  background: rgba(175,129,92,.06);
  border-color: rgba(175,129,92,.2);
  color: var(--text-1);
}

/* Coloana preț (dreapta, admin-only) */
.pt2-price-col {
  display: flex; flex-direction: column;
  align-items: flex-end; justify-content: space-between;
  padding: 16px;
  border-left: 1px solid var(--border);
  flex-shrink: 0; gap: 10px;
}
.pt2-price-val {
  font-size: .84rem; font-weight: 800;
  font-family: var(--font-mono, 'DM Mono', monospace);
  text-align: right;
}
.pt2-price-base { color: var(--green); }
.pt2-price-plus { color: var(--brand-h); }
.pt2-price-note {
  font-size: .65rem; color: var(--text-3);
  text-align: right; line-height: 1.4; margin-top: 2px;
}

/* Ribbon recomandat */
.pt2-ribbon {
  position: absolute; top: 0; right: 0;
  background: var(--amber); color: #fff;
  font-size: .6rem; font-weight: 800;
  padding: 3px 10px 3px 8px;
  border-bottom-left-radius: 8px;
  letter-spacing: .04em; text-transform: uppercase;
  display: flex; align-items: center; gap: 3px;
  pointer-events: none;
}

/* Responsive pt2 */
@media (max-width: 1100px) {
  .pt2-card { grid-template-columns: 60px 1fr 120px; }
  .pt2-specs { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
  .pt2-card { grid-template-columns: 56px 1fr; }
  .pt2-price-col { display: none; }
  .pt2-specs { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .pt2-specs { grid-template-columns: repeat(2,1fr); gap: 6px; }
  .pt2-bar-row { grid-template-columns: 60px 1fr 22px; gap: 5px; }
}


/* ==========================================================================
   15. BADGE — naming aliniat cu mockup-P2-v1.3
   Clase NOI (badge-std, badge-rec, badge-qot, badge-del) — nu ating opt-badge-*
   ========================================================================== */

.badge {
  display: inline-flex; align-items: center;
  padding: 2px 7px; border-radius: 9px;
  font-size: .63rem; font-weight: 700; white-space: nowrap;
}
.badge-std { background: var(--green-bg); color: #059669; }
.badge-rec { background: var(--amber-bg); color: #92400e; }
.badge-qot { background: var(--violet-bg); color: var(--violet, #7C3AED); }
.badge-del { background: #fff7ed; color: #c2410c; }


/* ==========================================================================
   16. SUMMARY PANEL — upgrade mockup-P2-v1.3
   Adaugă: TVA row, sum-quote-notice, step-num done ✓ text
   ========================================================================== */

/* TVA row în sum-total */
.sum-total-divider { height: 1px; background: var(--border); margin: 8px 0; }
.sum-total-tva-row {
  display: flex; align-items: center;
  justify-content: space-between; margin-top: 5px;
}
.sum-total-tva-lbl { font-size: .72rem; color: var(--text-3); font-weight: 500; }
.sum-total-tva-val {
  font-size: .82rem; font-weight: 700; color: var(--text-2);
  font-family: var(--font-mono, 'DM Mono', monospace);
}

/* Notice client mode — prețuri ascunse */
.sum-quote-notice {
  display: none;
  padding: 10px 14px;
  background: var(--blue-bg);
  border-top: 1px solid rgba(59,130,246,.15);
  font-size: .75rem; color: #1d4ed8; line-height: 1.5;
}
body.client-mode .sum-quote-notice { display: block; }

/* step-num afișează ✓ când done — via CSS counter/content */
.step-card.is-done .step-num::after { content: '✓'; }
.step-card.is-done .step-num        { font-size: 0; } /* ascunde numărul */
.step-card.is-done .step-num::after { font-size: .82rem; }


/* ==========================================================================
   17. TURNSTILE WIDGET (modal saveModal)
   ========================================================================== */

.turnstile-wrap { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }

.turnstile-widget {
  width: 100%; max-width: 300px; height: 65px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  background: var(--bg);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; gap: 12px;
  position: relative; overflow: hidden;
  transition: border-color .15s; cursor: pointer;
}
.turnstile-widget::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  background-size: 200% 100%;
  animation: ts-shimmer 1.4s infinite;
  opacity: 0; transition: opacity .2s;
}
.turnstile-widget.ts-loading::before { opacity: 1; }
.turnstile-widget.ts-success { border-color: #a7f3d0; background: var(--green-bg); cursor: default; }
.turnstile-widget.ts-ready   { border-color: var(--border-dark); }
.turnstile-widget.ts-error   { border-color: #fca5a5; background: var(--red-bg); }
@keyframes ts-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.ts-check {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all .2s;
}
.ts-check svg {
  width: 14px; height: 14px;
  stroke: #fff; fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0; transform: scale(.5); transition: all .2s;
}
.turnstile-widget.ts-success .ts-check { background: var(--green); border-color: var(--green); }
.turnstile-widget.ts-success .ts-check svg { opacity: 1; transform: scale(1); }
.turnstile-widget.ts-loading .ts-check { border-color: var(--brand); animation: ts-spin 1s linear infinite; }
@keyframes ts-spin { to { transform: rotate(360deg); } }

.ts-label { flex: 1; font-size: .78rem; color: var(--text-2); line-height: 1.35; font-weight: 500; }
.ts-label strong { color: var(--text-1); font-size: .8rem; display: block; }
.turnstile-widget.ts-success .ts-label { color: #059669; }
.turnstile-widget.ts-success .ts-label strong { color: #065f46; }
.turnstile-widget.ts-error   .ts-label { color: #b91c1c; }

.ts-brand { display: flex; flex-direction: column; align-items: center; gap: 2px; flex-shrink: 0; }
.ts-brand-logo  { width: 22px; height: 22px; opacity: .55; }
.ts-brand-text  { font-size: .52rem; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }

.turnstile-error-msg { font-size: .68rem; color: var(--red); display: none; }
.turnstile-error-msg.visible { display: block; }


/* ==========================================================================
   18. VIEW-CONFIG PAGE (mockup-P3-view-config)
   Prefixul vc- izolează de restul sistemului
   ========================================================================== */

/* Layout principal */
.vc-main-wrap    { max-width: 1280px; margin: 0 auto; padding: 24px 24px 72px; }
.vc-view-grid    { display: grid; grid-template-columns: 1fr 310px; gap: 20px; align-items: start; }
.vc-right-panel  { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 80px; }

/* Page header */
.vc-pg-hd        { margin-bottom: 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.vc-pg-hd-left   { min-width: 0; }
.vc-pg-title     { font-size: 1.3rem; font-weight: 800; color: var(--text-1); letter-spacing: -.03em; margin-bottom: 5px; }
.vc-pg-meta      { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .76rem; color: var(--text-3); }
.vc-pg-meta strong { color: var(--text-2); font-weight: 600; }
.vc-pg-meta-sep  { color: var(--border-dark); }
.vc-pg-hd-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Butoane header */
.btn-vc {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 15px; border-radius: 9px;
  font-size: .8rem; font-weight: 700; font-family: 'DM Sans', sans-serif;
  border: none; cursor: pointer; transition: all .12s; white-space: nowrap; text-decoration: none;
}
.btn-vc-outline { background: transparent; color: var(--text-2); border: 1.5px solid var(--border); }
.btn-vc-outline:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }
.btn-vc-brand   { background: var(--brand); color: #fff; box-shadow: 0 2px 8px rgba(175,129,92,.3); }
.btn-vc-brand:hover { background: var(--brand-h); }
.btn-vc-ghost   { background: transparent; color: var(--text-3); border: 1.5px solid transparent; }
.btn-vc-ghost:hover { background: var(--bg); color: var(--text-1); border-color: var(--border); }

/* Butoane full-width (panoul drept) */
.btn-vc-full {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; padding: 10px; border-radius: 9px;
  font-size: .82rem; font-weight: 700; font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: all .12s; text-decoration: none; border: none;
  margin-bottom: 6px;
}
.btn-vc-full:last-child { margin-bottom: 0; }

/* Card generic */
.vc-card         { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r2); overflow: hidden; box-shadow: var(--shadow-sm); }
.vc-card-head    { padding: 14px 20px 12px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--bg); }
.vc-card-head-l  { display: flex; align-items: center; gap: 10px; }
.vc-card-ico     { width: 32px; height: 32px; border-radius: 8px; background: var(--brand-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vc-card-ico svg { width: 15px; height: 15px; stroke: var(--brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vc-card-title   { font-size: .9rem; font-weight: 700; color: var(--text-1); }
.vc-opt-count    { font-size: .72rem; font-weight: 700; color: var(--text-3); background: var(--bg); padding: 2px 9px; border-radius: 20px; border: 1px solid var(--border); }

/* Tabel opțiuni */
.vc-tbl-wrap     { overflow-x: auto; }
.vc-opts-table   { width: 100%; border-collapse: collapse; }
.vc-opts-table thead th { padding: 9px 14px; text-align: left; font-size: .68rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; background: var(--bg); border-bottom: 1px solid var(--border); }
.vc-opts-table tbody td { padding: 11px 14px; border-bottom: 1px solid #f5f7fa; vertical-align: middle; font-size: .84rem; }
.vc-opts-table tbody tr:last-child td { border-bottom: none; }
.vc-opts-table tbody tr:hover { background: #fafbfc; }
.vc-th-sku      { width: 130px; }
.vc-th-status   { width: 110px; text-align: right; }

/* Group separator row */
.vc-tr-group-sep td { padding: 6px 14px; background: var(--bg); border-bottom: 1px solid var(--border); }
.vc-tr-group-sep-inner { display: flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 700; color: var(--text-3); }
.vc-tr-group-sep-line { flex: 1; height: 1px; background: var(--border); }

/* Celule tabel */
.vc-td-group     { width: 130px; }
.vc-td-group-inner { display: flex; flex-direction: column; gap: 2px; }
.vc-td-group-name { font-size: .7rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.vc-td-group-type { font-size: .62rem; color: var(--text-4); }
.vc-td-opt-name  { font-size: .86rem; font-weight: 700; color: var(--text-1); margin-bottom: 2px; }
.vc-td-opt-desc  { font-size: .73rem; color: var(--text-2); }
.vc-td-opt-badges { display: flex; gap: 5px; margin-top: 5px; flex-wrap: wrap; }
.vc-td-sku       { font-family: var(--font-mono, 'DM Mono', monospace); font-size: .74rem; color: var(--text-3); }
.vc-td-status    { white-space: nowrap; text-align: right; }
.vc-td-price     { font-size: .78rem; font-weight: 700; color: var(--brand-h); font-family: var(--font-mono, 'DM Mono', monospace); }

/* Badge suplimentar */
.badge-inc  { background: var(--green-bg); color: #059669; }
.badge-pt   { background: var(--brand); color: #fff; }

/* Notes body */
.vc-notes-body { padding: 18px 20px; font-size: .84rem; color: var(--text-2); line-height: 1.65; }

/* Product hero card */
.vc-prod-hero-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r2); overflow: hidden; box-shadow: var(--shadow-sm); }
.vc-prod-hero-img  { height: 160px; background: linear-gradient(135deg, #f0f3f7, #e8ecf2); display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border); overflow: hidden; position: relative; }
.vc-prod-hero-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.vc-prod-hero-body { padding: 14px 16px; }
.vc-prod-hero-cat  { font-size: .62rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.vc-prod-hero-name { font-size: .95rem; font-weight: 800; color: var(--text-1); letter-spacing: -.02em; margin-bottom: 10px; }
.vc-prod-hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vc-prod-stat      { background: var(--bg); border-radius: 7px; padding: 7px 10px; }
.vc-prod-stat-lbl  { font-size: .6rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.vc-prod-stat-val  { font-size: .78rem; font-weight: 700; color: var(--text-1); }

/* Summary card */
.vc-sum-card        { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r2); overflow: hidden; box-shadow: var(--shadow-sm); }
.vc-sum-card-head   { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: .82rem; font-weight: 700; color: var(--text-1); display: flex; align-items: center; gap: 7px; background: var(--bg); }
.vc-sum-card-head svg { width: 14px; height: 14px; stroke: var(--brand); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vc-sum-rows        { padding: 8px 16px 4px; }
.vc-sum-row         { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--bg-2, #f5f7fa); }
.vc-sum-row:last-child { border-bottom: none; }
.vc-sum-row-left    { min-width: 0; }
.vc-sum-row-grp     { font-size: .65rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.vc-sum-row-name    { font-size: .78rem; font-weight: 500; color: var(--text-1); }
.vc-sum-row-price   { font-size: .75rem; font-weight: 700; color: var(--brand-h); font-family: var(--font-mono, 'DM Mono', monospace); white-space: nowrap; flex-shrink: 0; }
.vc-sum-row-inc     { font-size: .68rem; color: var(--green); font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.vc-sum-total-row   { margin: 0 16px; padding: 10px 0 0; border-top: 2px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.vc-sum-total-lbl   { font-size: .68rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .07em; }
.vc-sum-total-val   { font-size: 1.05rem; font-weight: 800; color: var(--brand); font-family: var(--font-mono, 'DM Mono', monospace); }
.vc-sum-footnote    { padding: 8px 16px 12px; font-size: .65rem; color: var(--text-4); text-align: center; }

/* Share card */
.vc-share-card      { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r2); overflow: hidden; box-shadow: var(--shadow-sm); }
.vc-share-card-head { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: .82rem; font-weight: 700; color: var(--text-1); display: flex; align-items: center; gap: 7px; background: var(--bg); }
.vc-share-card-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.vc-share-url-row   { display: flex; gap: 6px; margin-bottom: 8px; }
.vc-share-url-inp   { flex: 1; height: 36px; padding: 0 10px; border: 1.5px solid var(--border); border-radius: 8px; font-size: .74rem; font-family: var(--font-mono, 'DM Mono', monospace); background: var(--bg); color: var(--text-2); outline: none; }
.vc-btn-copy        { width: 36px; height: 36px; border-radius: 8px; border: 1.5px solid var(--border); background: var(--bg); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: .9rem; transition: all .12s; flex-shrink: 0; }
.vc-btn-copy:hover  { background: var(--brand-light); border-color: var(--brand); }

/* 404 state */
.vc-notfound-wrap   { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.vc-notfound-card   { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r2); padding: 40px 32px; max-width: 420px; width: 100%; text-align: center; box-shadow: var(--shadow-md); }
.vc-notfound-icon   { font-size: 3rem; margin-bottom: 16px; }
.vc-notfound-title  { font-size: 1.2rem; font-weight: 800; color: var(--text-1); margin-bottom: 10px; }
.vc-notfound-sub    { font-size: .84rem; color: var(--text-2); line-height: 1.65; margin-bottom: 24px; }
.vc-notfound-actions { display: flex; flex-direction: column; gap: 8px; }

/* Responsive */
@media (max-width: 900px) {
  .vc-view-grid   { grid-template-columns: 1fr; }
  .vc-right-panel { position: static; }
}
@media (max-width: 640px) {
  .vc-pg-hd       { flex-direction: column; gap: 12px; }
  .vc-pg-hd-actions { width: 100%; }
  .vc-th-sku      { display: none; }
  .vc-td-sku      { display: none; }
}
