/* ================================================================
   slider-7-comparison.css
   Comparison Rail — selectable product cards with spec rows
   ================================================================ */


/* ── SELECTION BAR ───────────────────────────────────────────── */

.comp-bar {
  background: #f0ede7;
  border-radius: 30px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 12.5px;
  color: var(--muted);
}

.comp-bar strong { color: var(--ink); }

.comp-bar-btn {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Vazirmatn', sans-serif;
  color: var(--primary);
  transition: background .15s, color .15s, border-color .15s;
}

.comp-bar-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}


/* ── CARD ────────────────────────────────────────────────────── */

.comp-card {
  border-radius: var(--r);
  border: 1.5px solid var(--line);
  background: #fff;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s, outline .2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.comp-card:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(0,0,0,.07);
}

.comp-card.selected {
  border-color: var(--primary);
  outline: 2px solid var(--primary);
}


/* ── CARD HEADER (image area) ────────────────────────────────── */

.comp-head {
  background: radial-gradient(circle at 50% 30%, #f9f7f3, #ede9df);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 160px;
}

.comp-head img {
  max-height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(0,0,0,.14));
}

/* Selection indicator ring */
.comp-select-ring {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: transparent;
  transition: background .15s, border-color .15s, color .15s;
}

.comp-card.selected .comp-select-ring {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}


/* ── CARD BODY ───────────────────────────────────────────────── */

.comp-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.comp-brand {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
}

.comp-name {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  margin: 4px 0 10px;
}


/* ── SPEC TABLE ──────────────────────────────────────────────── */

.comp-specs {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  flex: 1;
}

.comp-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 11.5px;
}

.comp-spec-row:last-child { border-bottom: none; }

.comp-spec-row .k { color: var(--muted); }
.comp-spec-row .v { font-weight: 700; }
.comp-spec-row .v.highlight { color: var(--primary); }


/* ── PRICE ROW ───────────────────────────────────────────────── */

.comp-price-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.comp-price { font-size: 16px; font-weight: 800; }

.comp-btn {
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Vazirmatn', sans-serif;
  cursor: pointer;
  transition: background .15s;
}

.comp-btn:hover { background: var(--primary); }
