.compare-products-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  display: none;
  z-index: 1001;
  top: auto !important;
  overflow: hidden; }

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #f8f8f8;
  background: var(--mainColor); }

.popup-header h3 {
  margin: 0;
  font-size: 16px;
  color: #fff; }

.popup-header button {
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
  color: #fff; }

.compare-products-popup > a {
  text-align: center;
  display: block;
  padding: 0 10px 10px 10px;
  font-weight: bold; }

.popup-content {
  max-height: 300px;
  overflow-y: auto;
  padding: 10px; }

.compare-item {
  display: flex;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding: 8px 0; }

.compare-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px; }

.compare-item div {
  font-size: 14px; }

.remove-compare {
  border: none;
  background: #e74c3c;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px; }

.remove-compare:hover {
  background: #c0392b; }

.open-compare-popup {
  position: fixed;
  bottom: 170px;
  right: 20px;
  padding: 10px 16px;
  background: var(--mainColor);
  color: #fff;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  top: auto !important;
  z-index: 999; }

.open-compare-popup:hover {
  background: var(--hover); }
