/* ================================================================
   comparison.css — Side-by-side comparison modal
   ================================================================ */

.compare-modal {
  position: fixed;
  inset: 0;
  z-index: 9100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.compare-modal__panel {
  width: min(1100px, 95vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: rgba(18,18,22,0.98);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  overflow: hidden;
}
.compare-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.compare-modal__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
}
.compare-modal__close {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}
.compare-modal__close:hover { background: rgba(255,255,255,0.12); color: #fff; }

.compare-modal__grid {
  display: grid;
  grid-template-columns: 140px repeat(var(--cols, 2), 1fr);
  gap: 0;
  overflow: auto;
  padding: 0;
}
.compare-row {
  display: contents;
}
.compare-cell {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.compare-cell--label {
  background: rgba(255,255,255,0.025);
  font-weight: 600;
  color: rgba(255,255,255,0.62);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.05em;
}
.compare-cell--header {
  background: rgba(99,102,241,0.08);
  border-bottom: 1px solid rgba(99,102,241,0.32);
  font-weight: 700;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}
.compare-cell__brand {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.compare-cell__name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.compare-cell__price {
  font-size: 14px;
  color: var(--c-accent, #FFFFFF);
  font-weight: 700;
}
.compare-cell__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: #0b0b0e;
}
.compare-cell__yes { color: #84cc16; font-weight: 700; }
.compare-cell__no  { color: rgba(255,255,255,0.4); }
.compare-cell__warn { color: #fcd34d; font-weight: 600; }

@media (max-width: 700px) {
  .compare-modal__grid {
    grid-template-columns: 100px repeat(var(--cols, 2), 1fr);
  }
  .compare-cell { font-size: 11px; padding: 8px; }
}
