.product-comparison__container {
  padding-top: var(--padding-top-section);
  padding-bottom: var(--padding-bottom-section);
}

.product-comparison__header {
  margin-bottom: 2em; /* Keep some space below header */
}

.product-comparison__title {
  /* Match featured-collections */
  font-size: 3rem;
  font-weight: bold;
  color: #000000;
  margin-bottom: 0.5em;
}

.product-comparison__subtitle {
  /* Match featured-collections */
  color: #000000;
  font-style: italic;
}

.product-comparison__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem; /* Adjust gap as needed */
  text-align: left;
}

.product-comparison__item {
  /* Add borders or background if needed */
}

.product-comparison__image-wrapper {
  margin-bottom: 1.5em;
  text-align: center;
}

.product-comparison__image {
  max-width: 100%;
  height: auto;
  max-height: 250px; /* Limit image height */
  object-fit: contain;
}

.product-comparison__product-name {
  font-size: var(--font-size-h4);
  margin-bottom: 1em;
  text-align: center;
  font-weight: bold; /* Match image */
}

.product-comparison__divider {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 1.5em 0;
}

.product-comparison__feature {
  margin-bottom: 1.5em;
  padding: 1em;
  border-radius: var(--border-radius-base);
  background-color: var(--color-background-secondary);
}

.product-comparison__feature-label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5em;
  font-size: 0.9em;
  color: var(--color-text-secondary);
  text-transform: uppercase;
}

.product-comparison__feature-text {
  margin: 0;
  font-size: var(--font-size-body);
}

/* Specific styling for boolean features */
.product-comparison__feature--bool {
  display: flex;
  align-items: center;
  gap: 0.8em;
}

.product-comparison__feature--bool .product-comparison__feature-label {
  margin-bottom: 0;
  flex-grow: 1; /* Push value to the right */
  color: var(--color-text);
  text-transform: none;
  font-size: var(--font-size-body);
}

.product-comparison__feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
}

.product-comparison__feature--bool .icon {
  width: 16px;
  height: 16px;
}

.product-comparison__feature--bool.product-comparison__feature--no .product-comparison__feature-icon {
  border-color: var(--color-error);
  color: var(--color-error);
}

.product-comparison__feature--bool .product-comparison__feature-icon {
  border-color: var(--color-success);
  color: var(--color-success);
}

.product-comparison__feature-value {
  font-weight: bold;
  /* Style Yes/No text if needed */
  display: none; /* Hide Yes/No text, icon is enough */
}

/* Initially hide features beyond the 3rd one */
.product-comparison__features-list .product-comparison__feature:nth-child(n+4) {
  display: none;
}

/* Styles for when the section is expanded */
product-comparison-section[expanded] .product-comparison__features-list .product-comparison__feature:nth-child(n+4) {
  display: flex; /* Or block, depending on the feature type */
}

/* Hide "View More" text when expanded, show "View Less" */
product-comparison-section:not([expanded]) .product-comparison__view-less-text {
  display: none;
}
product-comparison-section[expanded] .product-comparison__view-more-text {
  display: none;
}

/* Rotate chevron icon when expanded */
product-comparison-section[expanded] .product-comparison__view-more-button .icon {
  transform: rotate(180deg);
}

/* View More Button Styling */
.product-comparison__view-more {
  margin-top: 2em;
  text-align: center;
}

.product-comparison__view-more button {
  /* Style button using theme variables */
  cursor: pointer;
  background: none;
  border: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.product-comparison__view-more .icon-arrow-down {
  /* Style icon */
}

.product-comparison__view-more button .icon {
  transition: transform 0.3s ease;
  width: 16px; /* Adjust size as needed */
  height: 16px;
}

/* Responsive adjustments */
@media screen and (max-width: 749px) {
  .product-comparison__grid {
    grid-template-columns: 1fr; /* Stack columns on mobile */
  }
}
