/* ═══════════════════════════════════════
   EYESYS Smart Kit Builder — CSS
   Videonet-inspired: filters + compact list
   ═══════════════════════════════════════ */

.builder-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 20px 100px;
  min-height: 80vh;
}

/* ── STEPPER ── */
.stepper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 36px;
  position: relative;
  overflow-x: auto;
  scrollbar-width: none;
}
.stepper::-webkit-scrollbar { display: none; }
.stepper::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0; right: 0;
  height: 2px;
  background: var(--border);
  z-index: 1;
}
.step {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  flex: 1; min-width: 60px;
  color: var(--muted); transition: 0.3s;
}
.step-circle {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; transition: 0.3s;
}
.step.active .step-circle {
  background: var(--accent); border-color: var(--accent); color: #0a0c14;
  box-shadow: 0 0 12px rgba(0,200,255,0.4);
}
.step.completed .step-circle {
  background: transparent; border-color: var(--accent); color: var(--accent);
}
.step-label { font-size: 11px; font-weight: 500; text-align: center; white-space: nowrap; }
.step.active .step-label { color: var(--text); }

/* ── STEP CONTENT ── */
.step-content { display: none; animation: bFadeIn 0.3s ease; }
.step-content.active { display: block; }
@keyframes bFadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

/* ── TECH CARDS ── */
.tech-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.tech-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 24px 16px; text-align: center; cursor: pointer;
  transition: 0.25s; position: relative; overflow: hidden;
}
.tech-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.15); }
.tech-card.selected { border-color: var(--accent); background: rgba(0,200,255,0.06); }
.tech-card.recommended::after {
  content: '⭐ რეკომენდებული';
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,200,255,0.15); color: var(--accent);
  font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 4px;
}
.tech-icon { font-size: 32px; margin-bottom: 10px; }
.tech-title { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.tech-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ── CAMERA COUNT ── */
.cam-count-box {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; margin: 30px 0; padding: 30px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
}
.cam-count-box .ccb-label { font-size: 15px; color: var(--muted); }
.cam-count-box button {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--surface-light); border: 1px solid var(--border);
  color: var(--text); font-size: 20px; cursor: pointer; transition: 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.cam-count-box button:hover { background: var(--border); }
.cam-count-box input {
  width: 60px; text-align: center; font-size: 24px; font-weight: 700;
  background: transparent; border: none; color: var(--text);
  border-bottom: 2px solid var(--accent); outline: none;
  font-family: 'Outfit', sans-serif;
}
.hint-text { font-size: 12px; color: var(--muted); text-align: center; margin-top: -10px; margin-bottom: 20px; }

/* ── FILTER PILLS ── */
.filter-group { margin-bottom: 14px; }
.filter-group label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.fpill {
  padding: 6px 14px; border-radius: 6px; font-size: 13px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); cursor: pointer; transition: 0.2s;
  font-family: 'Outfit', sans-serif;
}
.fpill:hover { border-color: rgba(255,255,255,0.15); }
.fpill.active { background: var(--accent); color: #0a0c14; border-color: var(--accent); font-weight: 600; }

/* ── STATUS BAR ── */
.status-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; margin-bottom: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  font-size: 14px;
}

/* ── COMPACT LIST ITEMS ── */
.list-container { display: flex; flex-direction: column; gap: 8px; }
.list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  transition: 0.2s;
}
.list-item:hover { border-color: rgba(255,255,255,0.12); }
.list-item-selected { border-color: var(--accent); background: rgba(0,200,255,0.04); }

.list-img {
  width: 50px; height: 50px; border-radius: 6px;
  object-fit: contain; background: #fff; flex-shrink: 0;
}
.list-info { flex: 1; min-width: 0; }
.list-name {
  font-size: 13px; color: var(--text); line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.list-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.meta-tag {
  font-size: 11px; padding: 2px 6px; border-radius: 4px;
  background: rgba(255,255,255,0.06); color: var(--muted);
}
.meta-tag.poe { background: rgba(0,200,255,0.15); color: var(--accent); }

.list-price-col { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.list-price { font-size: 15px; font-weight: 700; color: #fff; white-space: nowrap; }

/* ── QTY COMPACT ── */
.qty-compact { display: flex; align-items: center; gap: 0; background: rgba(0,0,0,0.3); border-radius: 6px; overflow: hidden; }
.qc-btn {
  width: 28px; height: 26px; border: none;
  background: transparent; color: var(--text); font-size: 16px;
  cursor: pointer; transition: 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.qc-btn:hover { background: rgba(255,255,255,0.1); }
.qc-val { width: 28px; text-align: center; font-size: 13px; font-weight: 600; color: var(--text); }

/* ── SELECT BADGE (for recorders) ── */
.select-badge {
  font-size: 12px; padding: 4px 12px; border-radius: 6px;
  background: var(--surface-light); border: 1px solid var(--border);
  color: var(--muted); transition: 0.2s; white-space: nowrap;
}
.select-badge.selected { background: var(--accent); color: #0a0c14; border-color: var(--accent); font-weight: 600; }

/* ── INFO BOX ── */
.info-box {
  padding: 12px 16px; margin-bottom: 16px;
  background: rgba(0,200,255,0.06); border: 1px solid rgba(0,200,255,0.2);
  border-radius: 8px; font-size: 13px; color: var(--text); line-height: 1.5;
}

/* ── SUMMARY ── */
.summary-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; overflow: hidden;
}
.summary-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.summary-row:last-child { border-bottom: none; }
.summary-img { width: 40px; height: 40px; border-radius: 6px; object-fit: contain; background: #fff; }
.summary-info { flex: 1; min-width: 0; }
.summary-name { font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.summary-qty { font-size: 12px; color: var(--muted); margin-top: 2px; }
.summary-price { font-size: 15px; font-weight: 600; color: #fff; white-space: nowrap; }
.summary-total {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px; padding-top: 16px;
  border-top: 2px dashed var(--border);
  font-size: 20px; font-weight: 700; color: var(--accent);
}

/* ── NAV BUTTONS (FIXED BOTTOM BAR) ── */
.step-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px;
  background: rgba(8, 10, 15, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  gap: 10px;
  max-width: 100%;
}
.btn-prev, .btn-next, .btn-skip {
  padding: 12px 24px; border-radius: 8px; font-size: 14px;
  font-weight: 600; cursor: pointer; transition: 0.2s;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Noto Sans Georgian', 'Outfit', sans-serif;
}
.btn-prev { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-prev:hover { background: var(--surface-light); }
.btn-next { background: var(--accent); color: #0a0c14; border: none; }
.btn-next:hover { opacity: 0.9; }
.btn-skip { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-skip:hover { background: var(--surface-light); }

#btn-add-cart { background: #00c8ff; color: #000; font-weight: 700; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .builder-container { padding: 100px 12px 90px; }
  .step-label { font-size: 9px; }
  .tech-options { grid-template-columns: 1fr; gap: 10px; }
  .tech-card { padding: 18px 14px; }
  .list-img { width: 40px; height: 40px; }
  .list-name { font-size: 12px; }
  .list-price { font-size: 14px; }
  .fpill { padding: 5px 10px; font-size: 12px; }
  .cam-count-box { padding: 20px; gap: 14px; }
  .step-nav { padding: 10px 12px; }
  .btn-prev, .btn-next, .btn-skip, #btn-add-cart { flex: 1; justify-content: center; padding: 10px 12px; font-size: 13px; }
}
