.robo-compare-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.robo-intro {
  font-size: 1.2em;
  margin-bottom: 20px;
  text-align: center;
}

/* ---------------------------------- */

.compare-shell {
  width: min(92%, 1080px);
  border: none;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.compare-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #999 #f0f0f0;
}

.compare-scroll::-webkit-scrollbar {
  height: 6px;
}

.compare-scroll::-webkit-scrollbar-track {
  background: #f0f0f0;
}

.compare-scroll::-webkit-scrollbar-thumb {
  background: #999;
  border-radius: 3px;
}

.compare-scroll::-webkit-scrollbar-thumb:hover {
  background: #777;
}

.compare-grid {
  --compare-product-count: 18;
  display: grid;
  grid-template-columns: 220px repeat(var(--compare-product-count), minmax(190px, 1fr));
  width: max-content;
  min-width: 100%;
}

.compare-row {
  display: contents;
}

.compare-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border: none;
  background: #fff;
  max-width: 190px;
  min-width: 190px;
  text-align: center;
  white-space: normal;
  line-height: 1.35;
}

.compare-row > .compare-cell + .compare-cell {
  border-left: 1px solid #f0f3f7;
}

.compare-row-header > .compare-cell + .compare-cell {
  border-left: none;
}

.compare-cell-sticky {
  position: sticky;
  left: 0;
  min-width: 220px;
  max-width: 220px;
  z-index: 2;
  box-shadow: 10px 0 14px -12px rgba(15, 23, 42, 0.06);
}

.compare-cell-header {
  font-weight: 700 !important;
  white-space: normal;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 4;
  box-shadow: 0 10px 14px -12px rgba(15, 23, 42, 0.06);
}

.compare-cell-corner {
  z-index: 5;
  box-shadow: none;
}

.compare-row-header > .compare-cell-header:not(.compare-cell-corner) {
  box-shadow: 0 10px 14px -12px rgba(15, 23, 42, 0.06);
}

.compare-cell-feature {
  font-weight: 700;
  justify-content: flex-start;
  text-align: left;
}

.compare-row:nth-of-type(even):not(.compare-row-header) .compare-cell {
  background: #f5f6f8;
}

.compare-row:nth-of-type(even):not(.compare-row-header) .compare-cell-sticky {
  background: #f5f6f8;
}

.product-cell {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.product-cell img {
  width: 120px;
  height: 120px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.product-cell p {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
}

.shop-now-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: -4px;
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.shop-now-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.shop-now-btn img {
  width: 116px;
  height: 20px;
  margin-top: 5px;
  display: block;
  object-fit: cover;
  object-position: center;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  filter: invert(1);
}

.robot-vac-code {
  display: inline-block;
  font-size: 0.6rem;
  line-height: 1;
  color: #555;
}

@media (max-width: 768px) {
  .compare-shell {
    width: 100%;
  }

  .compare-grid {
    grid-template-columns: 150px repeat(var(--compare-product-count), minmax(170px, 1fr));
  }

  .product-cell img {
    width: 76px;
    height: 76px;
  }

  .compare-cell {
    padding: 10px 10px;
    font-size: 13px;
  }

  .product-meta {
    gap: 6px;
  }

  .shop-now-btn {
    transform-origin: center;
  }

  .shop-now-btn img {
    width: 98px;
    height: 20px;
    object-fit: cover;
    object-position: center;
  }

  .compare-cell-sticky {
    min-width: 150px;
  }
}
