/* WWA Modular Configurator — stil premium, kompakt. Vetem pamja; klasat/ID-te s'ndryshojne. */
.wwa-mc-app {
  --wwa-accent: #b07d3f;
  --wwa-accent-2: #c9a47a;
  --wwa-ink: #211e1a;
  --wwa-muted: #8b857c;
  --wwa-line: #ece7e0;
  --wwa-soft: #faf8f5;
  --wwa-radius: 16px;
  --wwa-shadow: 0 10px 34px rgba(45, 33, 16, .10);
  --wwa-shadow-sm: 0 2px 10px rgba(45, 33, 16, .06);

  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 22px;
  align-items: start;
  margin: 26px 0;
  color: var(--wwa-ink);
  -webkit-font-smoothing: antialiased;
}
.wwa-mc-app *, .wwa-mc-app *::before, .wwa-mc-app *::after { box-sizing: border-box; }
@media (max-width: 980px) {
  .wwa-mc-app { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Skena 3D ---------- */
.wwa-mc-stage { position: relative; }
.wwa-mc-canvas {
  width: 100%;
  min-height: 480px;
  border-radius: var(--wwa-radius);
  overflow: hidden;
  background: radial-gradient(120% 120% at 50% 18%, #4a4a50 0%, #2f2f34 70%, #262629 100%);
  box-shadow: var(--wwa-shadow);
}
.wwa-mc-canvas canvas { display: block; width: 100%; height: 100%; }
.wwa-mc-loading {
  display: flex; align-items: center; justify-content: center;
  height: 480px; color: #d6d2cb; font-size: 14px; letter-spacing: .02em;
}
.wwa-mc-stage-info {
  position: absolute; left: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.9); padding: 6px 13px; border-radius: 100px;
  font-size: 12.5px; font-weight: 600; color: #2f2b25;
  box-shadow: 0 4px 16px rgba(0,0,0,.18); backdrop-filter: blur(6px);
}
.wwa-mc-width-readout:empty { display: none; }
.wwa-mc-sel-readout { color: var(--wwa-accent); }

/* Butoni "Fshij të zgjedhurin" mbi skenë */
.wwa-mc-del-sel {
  position: absolute; top: 10px; right: 10px;
  border: 0; cursor: pointer; padding: 5px 10px; border-radius: 100px;
  background: rgba(179,45,46,.92); color: #fff; font-size: 11px; font-weight: 700;
  box-shadow: 0 3px 10px rgba(0,0,0,.25); backdrop-filter: blur(4px);
  transition: background .15s, transform .12s;
}
.wwa-mc-del-sel[hidden] { display: none; }
.wwa-mc-del-sel:hover { background: #a3322f; transform: translateY(-1px); }

/* ---------- Paneli anesor (menu kompakte) ---------- */
.wwa-mc-panel {
  border: 1px solid var(--wwa-line);
  border-radius: var(--wwa-radius);
  padding: 16px;
  background: #fff;
  box-shadow: var(--wwa-shadow);
  position: sticky;
  top: 20px;
}
@media (max-width: 980px) { .wwa-mc-panel { position: static; } }

.wwa-mc-h {
  margin: 15px 0 8px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .11em; color: var(--wwa-muted);
  display: flex; align-items: center; gap: 8px;
}
.wwa-mc-h::before {
  content: ""; width: 14px; height: 2px; border-radius: 2px;
  background: var(--wwa-accent); flex: 0 0 auto;
}
.wwa-mc-h:first-child { margin-top: 0; }
.wwa-mc-h[hidden] { display: none; }   /* respekto atributin hidden */

/* Tituj te palosshem + shigjeta e rrethuar */
.wwa-mc-h-toggle { cursor: pointer; user-select: none; }
.wwa-mc-h-toggle.is-collapsed + .wwa-mc-palette-wrap { display: none; }
.wwa-mc-caret {
  margin-left: auto; flex: 0 0 auto;
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 2px solid var(--wwa-ink);
  font-size: 11px; color: var(--wwa-ink); line-height: 1;
  transition: transform .2s;
}
.is-collapsed .wwa-mc-caret { transform: rotate(-90deg); }

/* Folderat e moduleve (sipas kategorise) */
.wwa-mc-palette { display: flex; flex-direction: column; gap: 7px; }
.wwa-mc-folder { border: 1px solid var(--wwa-line); border-radius: 10px; overflow: hidden; }
.wwa-mc-folder-head {
  width: 100%; display: flex; align-items: center; gap: 8px;
  padding: 9px 11px; border: 0; background: var(--wwa-soft); cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 700; color: var(--wwa-ink); text-align: left;
}
.wwa-mc-folder-head:hover { background: #f3ece2; }
.wwa-mc-folder-head .wwa-mc-caret { width: 20px; height: 20px; border-width: 1.5px; }
.wwa-mc-folder-body { padding: 9px 9px 11px; }
.wwa-mc-folder-head.is-collapsed + .wwa-mc-folder-body { display: none; }
.wwa-mc-palette-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

.wwa-mc-hint { font-size: 12px; color: var(--wwa-muted); margin: 0 0 9px; line-height: 1.4; }

/* ---------- Kartat e moduleve ---------- */
.wwa-mc-mod-card {
  display: flex; flex-direction: column; align-items: stretch;
  border: 1px solid var(--wwa-line); border-radius: 11px; padding: 0;
  background: #fff; cursor: pointer; text-align: left; font: inherit;
  overflow: hidden;
  box-shadow: var(--wwa-shadow-sm);
  transition: border-color .18s, transform .12s, box-shadow .18s;
}
.wwa-mc-mod-card:hover {
  border-color: var(--wwa-accent-2);
  transform: translateY(-2px);
  box-shadow: 0 9px 20px rgba(45,33,16,.13);
}
.wwa-mc-mod-card:active { transform: translateY(0); }
.wwa-mc-mod-card img,
.wwa-mc-mod-card .wwa-mc-noimg {
  width: 100%; height: 66px; object-fit: cover;
  background: linear-gradient(135deg, #f3efe9, #e7e0d6);
  display: flex; align-items: center; justify-content: center;
  color: #b9ad9b; font-size: 11px; font-weight: 700; letter-spacing: .08em;
}
.wwa-mc-mod-name { font-size: 12.5px; font-weight: 700; line-height: 1.2; padding: 7px 9px 0; }
.wwa-mc-mod-price { font-size: 12px; color: var(--wwa-accent); font-weight: 700; padding: 1px 9px 8px; }
.wwa-mc-mod-card.is-disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* ---------- Grupet e finiturave / ngjyrat ---------- */
.wwa-mc-finish-group { margin-bottom: 11px; }
.wwa-mc-finish-group:last-child { margin-bottom: 0; }
.wwa-mc-finish-label {
  font-size: 11px; font-weight: 700; color: var(--wwa-ink); margin-bottom: 7px;
  display: inline-block; padding: 2px 9px; background: var(--wwa-soft);
  border: 1px solid var(--wwa-line); border-radius: 100px;
}
.wwa-mc-finishes-list { display: flex; flex-wrap: wrap; gap: 8px; }
.wwa-mc-swatch {
  flex: 0 0 auto;                 /* mos u ngjesh — rreth i rregullt */
  width: 32px; height: 32px; aspect-ratio: 1 / 1;
  border-radius: 50%; border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--wwa-line), var(--wwa-shadow-sm);
  cursor: pointer; background-size: cover; background-position: center; padding: 0;
  transition: transform .12s, box-shadow .15s;
}
.wwa-mc-swatch:hover { transform: scale(1.08); }
.wwa-mc-swatch.is-active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wwa-accent); }

/* ---------- Konfigurimi yt (lista) ---------- */
.wwa-mc-cart-list { list-style: none; margin: 0; padding: 0; }
.wwa-mc-cart-list > li {
  padding: 3px 10px; margin-bottom: 4px;
  border: 1px solid var(--wwa-line); border-radius: 8px; background: var(--wwa-soft);
  transition: border-color .15s, background .15s;
}
.wwa-mc-cart-list > li:last-child { margin-bottom: 0; }
.wwa-mc-cart-list .wwa-mc-empty {
  color: var(--wwa-muted); text-align: center; border: 1px dashed var(--wwa-line);
  background: #fff; font-size: 13px; padding: 15px 12px;
}
.wwa-mc-carc.is-active { border-color: var(--wwa-accent-2); background: #fff; box-shadow: var(--wwa-shadow-sm); }
.wwa-mc-carc.is-active .wwa-mc-carc-head .wwa-mc-ci-name { color: var(--wwa-accent); }
.wwa-mc-carc-head { display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.wwa-mc-att-list { list-style: none; margin: 7px 0 0; padding: 0 0 0 11px; border-left: 2px solid var(--wwa-line); }
.wwa-mc-att-list li {
  display: flex; align-items: center; gap: 8px;
  padding: 3px 0 3px 8px; font-size: 12px; color: var(--wwa-muted);
}
.wwa-mc-ci-name { flex: 1; cursor: default; }
.wwa-mc-carc-head .wwa-mc-ci-name { cursor: pointer; }
.wwa-mc-ci-price { color: var(--wwa-ink); font-size: 12.5px; font-weight: 700; }
.wwa-mc-ci-remove {
  border: 0; background: none; color: #c0504e; cursor: pointer;
  font-size: 14px; line-height: 1; padding: 2px 4px; border-radius: 6px;
  transition: background .15s, color .15s;
}
.wwa-mc-ci-remove:hover { background: #fbecec; color: #a3322f; }

/* ---------- Totali + CTA ---------- */
.wwa-mc-total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 15px 0 12px; padding-top: 13px; border-top: 1px solid var(--wwa-line);
}
.wwa-mc-total-row > span { font-size: 12px; font-weight: 600; color: var(--wwa-muted); text-transform: uppercase; letter-spacing: .08em; }
.wwa-mc-total { font-size: 21px; font-weight: 800; color: var(--wwa-ink); letter-spacing: -.01em; }

.wwa-mc-add-btn {
  width: 100%; border: 0; cursor: pointer;
  padding: 13px 18px; border-radius: 11px;
  font-size: 14.5px; font-weight: 700; letter-spacing: .01em; color: #fff;
  background: linear-gradient(180deg, var(--wwa-accent-2), var(--wwa-accent));
  box-shadow: 0 8px 20px rgba(176,125,63,.30);
  transition: transform .12s, box-shadow .18s, opacity .15s;
}
.wwa-mc-add-btn:hover:not([disabled]) { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(176,125,63,.38); }
.wwa-mc-add-btn:active:not([disabled]) { transform: translateY(0); }
.wwa-mc-add-btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.wwa-mc-msg { min-height: 18px; margin: 9px 0 0; font-size: 13px; color: #c0504e; text-align: center; }
