.compare {
  --radius-sm: 1rem;
  --radius-md: 2rem;

  --space-xs: 0.8rem;
  --space-sm: 1.2rem;
  --space-md: 2rem;
  --space-lg: 3.2rem;

  padding: var(--space-lg);
}
.compare__title {
  text-align: center;
  margin-bottom: var(--space-lg);
  color: var(--color-background-100);
  font-family: "Alegreya", serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-size: 4rem;
}
.compare__wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  position: relative;
}
.compare__viewport {
  overflow: hidden;
  width: 100%;
  max-width: 600px;
}
.compare__track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.compare__table {
  min-width: 100%;
  background: var(--color-background-600);
  color: var(--color-primary) ;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  transition: opacity 0.4s ease;
}
.compare__table:not(.compare__table--active) {
  opacity: 0.6;
}
.compare__header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  gap: var(--space-sm);
  padding: var(--space-md);
  border-radius: var(--space-md);
  color: var(--color-background-900);
  background-color: var(--color-primary);
  font-size: 2.6rem;
  font-family: "Alegreya Sans", sans-serif;
  font-weight: 900;
  font-style: normal;
  font-optical-sizing: auto;
}
.compare__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.compare__grid.small {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

/* Row layout */
.compare__row {
  display: contents;
}
/* .compare__row > * {
  will-change: transform, opacity;
} */

/* Smooth cell transition */
.compare__cell {
  padding: 0 var(--space-xs);
  background: var(--color-background-600);
  transition: background 0.25s ease, transform 0.2s ease;
}

/* Row hover effect */
.compare__row:hover .compare__cell {
  background: var(--color-background-500);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
  
}

/* Optional subtle lift */
.compare__row:hover .compare__cell--label {
  transform: translateX(4px);
}


/* LABEL COLUMN */
.compare__cell--label {
  text-align: left;
  padding: var(--space-xs);
  color: var(--color-background-100);
  font-size: 1.8rem;
  font-family: "Alegreya Sans", sans-serif;
  font-weight: 700;
  font-style: normal;

}

/* SUB HEADER */
.compare__cell--subheader {
  background: var(--color-background-600);
  font-weight: bold;
  padding: var(--space-md);
  border-radius: var(--space-md);
  color: var(--color-background-100);
  
  font-size: 2.4rem;
  font-family: "Alegreya Sans", sans-serif;
  font-weight: 900;
  font-style: normal;
}

/* RATINGS */
.compare__cell--rating {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  color: var(--color-background-100);
  align-items: center;
  font-size: 2rem;
  font-family: "Alegreya Sans", sans-serif;
  font-weight: 500;
  font-style: italic;

}

.compare__cell--rating img {
  width: 16px;
  height: 16px;
}

/* ARROWS */
.compare__nav,
.compare__arrow {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.8rem;
  color: var(--color-background-900);
}

/* SIDE ARROWS */
.compare__nav {
  position: relative;
  font-size: 4rem;
  color: var(--color-background-100);
}

/* LIFESTYLE */





/* RESPONSIVE */

@media (max-width: 1024px) {
  .compare__title {
    text-align: left;
    padding: var(--space-lg) var(--space-md);
  }
}

@media (max-width: 768px) {
.compare {
    padding-left: 0;
    padding-right: 0;
  }
  /* Hide side arrows */
  .compare__nav {
    display: none;
  }

  /* Stretch table area */
  .compare__viewport {
    width: 100vw;
    max-width: 100vw;
  }

  /* Optional: center it nicely */
  .compare__wrapper {
    justify-content: center;
    gap: 0;
  }
  .compare__table {
    padding: var(--space-sm);
    
  }
  .compare__cell--label {
  font-size: 1.6rem;
  

}
  
}

