*, *::before, *::after {
  box-sizing: border-box;
}

#product-comparator {
  margin-bottom: 120px;
}

.versus-selectors {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.selectors-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-grow: 1;
  min-width: 250px;
}

.vs-label {
  font-weight: 600;
  font-size: 18px;
}

.compare-btn {
  background: #333;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s ease;
}

.compare-btn:hover {
  background: #555;
}

.comparison-table th,
.comparison-table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.comparison-table th {
  background: #f8f8f8;
}

#versus-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 12px 0;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.versus-container {
  display: flex;
  align-items: end;
  gap: 20px;
  text-align: center;
  width: 100%;
  padding: 0 10px;

  max-width: 728px;
}

.versus-header {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 4px;
}

.versus-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.versus-item-info {
  display: grid !important;
  text-align: left;
}

.versus-name {
  font-weight: 700;
  font-size: 16px;
}

.versus-price {
  font-size: 0.8rem;
}

.amazon-button {
  display: inline-block;
  padding: 10px 20px;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.amazon-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.product1-button {
  background-color: #0693e3;
}
.product2-button {
  background-color: #ff2545;
}

span.versus-vs {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.section-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.property-card {
  flex: 0 1 calc(33.333% - 16px);
  border: 1px solid #e7e8e7;
  padding: 12px;
  border-radius: 8px;
}

.property-label {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
  text-transform: uppercase;
}

.value-container {
  display: flex;
  color: #7d7d7d;
  flex-direction: column;
  gap: 6px;
}

.value-text p {
  margin: 0;
}

.value-text p,
.boolean-value span {
  font-size: 14px;
}

.progress-bar-container {
  width: 100%;
  background-color: #bebebe;
  border-radius: 8px;
  height: 8px;
  margin: 4px 0 6px 0;
}

.line-product1,
.line-product2 {
  height: 8px;
  border-radius: 8px;
}

.line-product1 {
  background-color: #0693e3;
}
.line-product2 {
  background-color: #ff2545;
}

.versus-line {
  width: 100%;
  height: 4px;
}

.boolean-value {
  display: flex;
  align-items: center;
  gap: 6px;
}

.boolean-value span.check.true {
  color: #28a745;
}
.boolean-value span.check.false {
  color: #dc3545;
}

.boolean-value span.check {
  display: inline-block;
  color: #28a745;
  font-weight: bold;
  transform: scale(0);
  opacity: 0;
  animation: popCheck 0.5s forwards;
}

.versus-amazon-btn {
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

@keyframes popCheck {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.comparison-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  position: relative;
  padding: 40px 0;
}

.product-title {
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  font-weight: 700;
  margin: 0px !important;
}

.product-info {
  width: 100%;
  text-align: left !important;
}

.product-img {
  max-width: 350px;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.badges {
  margin-bottom: 10px;
}

.badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 13px;
  color: #fff;
  margin: 3px;
  font-weight: 600;
}
.badge.blue {
  background-color: #3a6cff;
}
.badge.red {
  background-color: #ff5a5a;
}
.badge.winner {
  background-color: #0056ff;
}

.price {
  display: inline-flex;
  gap: 8px;
  background: #fff;
  border: 2px solid #ccc;
  border-radius: 40px;
  padding: 10px 20px;
  font-weight: bold;
  font-size: clamp(1rem, 4vw, 1.25rem);
  color: #333;
}
.points-circle-container {
  position: relative;
  width: 50px;
  height: 80px;
  border-radius: 50%;
  flex-shrink: 0;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring__circle-bg {
  stroke: #e6e6e6;
}

.progress-ring__circle {
  stroke: #0044cc;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease-in-out;
}

.points-circle-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 2;
}

.points-circle-rating {
  font-weight: bold;
  color: #333;
  line-height: 1;
  z-index: 2;
}

.points-circle-reviews {
  font-size: 0.8rem;
  color: #777;
  line-height: 1;
  z-index: 2;
}

.product-column {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  position: relative;
}

.vsSeparator {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-left: 1px solid #bebebe;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  color: #555;
  font-size: 18px;
  z-index: 1;
}

.vsSeparator span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 3px solid #ddd;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  background: #fff;
  padding: 0 10px;
  font-weight: bold;
  color: #888;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

@media (max-width: 992px) {
  .property-card {
    flex-basis: calc(50% - 16px);
  }

  .versus-header {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .versus-selectors {
    flex-direction: column;
    align-items: stretch;
  }

  .compare-btn {
  }

  .comparison-section {
    flex-direction: row;
    align-items: center;
    padding: 20px 0;
    gap: 5px;
  }

  .product-column {
    width: 50%;
    padding: 10px 5px;
  }

  .property-card {
    flex-basis: 100%;
  }

  #versus-footer {
    padding: 8px 0;
  }
  .versus-name {
    font-size: 14px;
  }
  .versus-amazon-btn {
    padding: 4px 10px;
    font-size: 0.8rem;
  }
}