
/* ── Filter bar ── */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-top: 20px;
}
.filter-bar label {
  font-family: var(--font-heading);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-dim);
  margin-right: 8px;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .3s;
  white-space: nowrap;
}

.filter-btn:hover { border-color: var(--accent); color: var(--text); }
.filter-btn.active { 
  background: var(--blue); 
  border-color: var(--blue); 
  color: #fff;
  box-shadow: 0 0 20px rgba(22, 100, 232, 0.2);
}

/* ── Selection hint ── */
.selection-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 224, .2);
  border-radius: var(--radius-xl);
  padding: 16px 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}
.selection-hint p { font-size: .9rem; color: var(--text-muted); }
.selection-hint strong { color: var(--accent); font-weight: 700; }
.selected-count {
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
}
.selected-count span { color: var(--accent); }

/* ── Certificate selector grid ── */
.cert-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 56px;
}
.cert-card {
  flex: 1 1 300px;
  max-width: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  cursor: pointer;
  transition: all .3s ease;
  position: relative;
  user-select: none;
}
.cert-card:hover { 
  border-color: var(--border-light); 
  background: var(--bg-card-hover);
  transform: translateY(-4px); 
}
.cert-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-glow);
  background: var(--accent-dim);
}
.cert-card.disabled { opacity: .4; pointer-events: none; }

.cert-card-check {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  transition: all .2s;
}
.cert-card.selected .cert-card-check {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.cert-card-brand {
  font-family: var(--font-heading);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.cert-card-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}
.cert-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.cert-card-price { 
  font-family: var(--font-heading);
  font-size: 1.4rem; 
  font-weight: 800; 
  color: var(--text); 
}
.cert-card-price .price-cents { 
  font-size: 0.65em; 
  color: var(--text-dim);
  vertical-align: super;
}
.cert-card-price span { font-size: .8rem; color: var(--text-dim); font-weight: 400; }

/* ── Compare table wrapper ── */
.compare-wrapper {
  display: none;
  opacity: 0;
  transition: opacity .4s ease;
  margin-bottom: 64px;
}
.compare-wrapper.visible { display: block; }
.compare-wrapper.show { opacity: 1; }

.compare-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.compare-header h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.compare-header h2 em { font-style: normal; color: var(--accent); }

/* ── Compare table ── */
.ctable-wrap {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.ctable {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

/* Column headers */
.ctable thead th {
  border-bottom: 1px solid var(--border);
}

.ctable .col-label {
  background: var(--bg);
  padding: 24px;
  font-family: var(--font-heading);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-dim);
  width: 200px;
  min-width: 180px;
  border-right: 1px solid var(--border);
}

.ctable .col-cert {
  background: var(--bg-card);
  padding: 32px 24px;
  text-align: center;
  min-width: 220px;
  border-right: 1px solid var(--border);
}
.ctable .col-cert:last-child { border-right: none; }
.ctable .col-cert.featured { background: var(--accent-dim); }

.cert-col-brand {
  font-family: var(--font-heading);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.cert-col-name { 
  font-family: var(--font-heading);
  font-size: 1.1rem; 
  font-weight: 800; 
  color: var(--text); 
  margin-bottom: 12px; 
}
.cert-col-price {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  margin: 16px 0 6px;
  line-height: 1;
}
.cert-col-price .price-cents { 
  font-size: 0.65em; 
  vertical-align: super;
  color: var(--text-dim);
}
.cert-col-period { font-size: .8rem; color: var(--text-dim); margin-bottom: 20px; }

.ctable .price-cents {
  font-size: 0.65em;
  color: var(--text-dim);
  vertical-align: super;
}

/* Body rows */
.ctable tbody tr { border-bottom: 1px solid var(--border); }
.ctable tbody tr:last-child { border-bottom: none; }
.ctable tbody tr:hover td { background: rgba(255,255,255,.02); }
.ctable tbody tr.section-row td {
  background: var(--bg);
  font-family: var(--font-heading);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
}

.ctable td {
  padding: 16px 24px;
  vertical-align: middle;
  font-size: .9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.ctable td.col-label {
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 600;
  background: var(--bg);
  border-right: 1px solid var(--border);
}
.ctable td.col-val {
  text-align: center;
  font-size: .9rem;
  border-right: 1px solid var(--border);
}
.ctable td.col-val:last-child { border-right: none; }
.ctable td.col-val.featured { background: var(--accent-dim); }

/* Difference toggle styling */
.diff-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}
.diff-toggle:hover { color: var(--text) !important; }

.check { color: var(--green); font-size: 1.1rem; font-weight: 700; }
.cross { color: var(--text-dim); font-size: 1.1rem; }
.val-bold { color: var(--text); font-weight: 700; }

/* Warranty bar */
.warranty-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.warranty-bar-track {
  width: 100px;
  height: 5px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.warranty-bar-fill {
  height: 100%;
  background: var(--green);
  border-radius: 100px;
  transition: width .6s cubic-bezier(0.4, 0, 0.2, 1);
}
.warranty-val { font-family: var(--font-heading); font-size: .85rem; font-weight: 700; color: var(--text); }

/* Remove button */
.btn-remove {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  font-family: var(--font-heading);
  font-size: .75rem;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
  transition: all .2s;
  margin-top: 12px;
}
.btn-remove:hover { border-color: #ef4444; color: #ef4444; background: rgba(239, 68, 68, 0.05); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-xl);
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 56px;
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: .5; }
.empty-state strong { color: var(--text-muted); display: block; font-size: 1.2rem; margin-bottom: 8px; font-family: var(--font-heading); }

@media (max-width: 640px) {
  .cert-card { flex-basis: 100%; max-width: none; }
}
