/* compare-deals.css */

.compare-deals-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: sans-serif;
}

.compare-deals-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1;
}

.compare-deals-content {
  position: relative;
  background: #1a1a1a;
  padding: 20px;
  max-width: 900px;
  width: 95%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  z-index: 2;
  text-align: center;
  color: #f0f0f0;
  overflow-y: auto;
  max-height: 90vh;
}

.compare-deals-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #ccc;
}

.compare-deals-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.compare-deals-card {
  background: #2a2a2a;
  border-radius: 6px;
  padding: 10px;
  width: 150px;
  text-align: center;
  transition: transform 0.2s;
}

.compare-deals-card:hover {
  transform: scale(1.05);
}

.compare-deals-card img {
  max-width: 100%;
  border-radius: 4px;
  margin-bottom: 8px;
}

.deal-name {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 4px;
  color: #fff;
}

.deal-price {
  font-size: 13px;
  color: #ccc;
}

.deal-retail {
  text-decoration: line-through;
  color: #888;
  margin-left: 4px;
}

.deal-percent {
  color: #ff4444;
  font-weight: bold;
  margin-left: 4px;
}

.compare-deals-explore {
  margin-top: 18px;
  font-size: 15px;
}

.compare-deals-explore a {
  text-decoration: none;
  color: #66b2ff;
}

.compare-deals-explore a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .compare-deals-card {
    width: 100%;
  }

  .compare-deals-content {
    padding: 15px 10px;
    width: 90%;
    max-height: 85vh;
  }

  .compare-deals-close {
    top: 8px;
    right: 10px;
    font-size: 22px;
  }
}
