/* Step Compare — drop-in product comparison widget
   Matches the "Step down / this chair / step up" merchandising pattern. */

@import url("https://fonts.googleapis.com/css2?family=Cabin:wght@400;500;600;700&display=swap");

.sc-wrap {
  --sc-bg: #f3eee6;
  --sc-card: #fbf8f2;
  --sc-ink: #1c1a17;
  --sc-muted: #6f6860;
  --sc-green: #1e4a3c;
  --sc-green-soft: #2a5c4b;
  --sc-line: #e4ddd3;
  --sc-shadow: 0 10px 30px rgba(40, 32, 20, 0.05);
  box-sizing: border-box;
  font-family: Cabin, "Segoe UI", sans-serif;
  color: var(--sc-ink);
  background: var(--sc-bg);
  padding: 8px 8px 28px;
  -webkit-font-smoothing: antialiased;
}

.sc-wrap *,
.sc-wrap *::before,
.sc-wrap *::after {
  box-sizing: border-box;
}

.sc-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.sc-eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a837a;
}

.sc-title {
  margin: 0 0 28px;
  font-family: Cabin, var(--e-global-typography-primary-font-family, inherit), sans-serif;
  font-size: var(--e-global-typography-primary-font-size, 32px);
  font-weight: var(--e-global-typography-primary-font-weight, 400);
  line-height: var(--e-global-typography-primary-line-height, 1.2);
  letter-spacing: var(--e-global-typography-primary-letter-spacing, normal);
  color: inherit;
}

.sc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.sc-grid.sc-count-2 {
  grid-template-columns: repeat(2, minmax(260px, 380px));
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

.sc-grid.sc-count-1 {
  grid-template-columns: minmax(260px, 380px);
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.sc-card {
  display: flex;
  flex-direction: column;
  background: var(--sc-card);
  border: 1.5px solid #ece6dc;
  border-radius: 22px;
  padding: 18px 18px 20px;
  box-shadow: var(--sc-shadow);
  min-height: 100%;
}

.sc-card.is-current {
  border: 2.5px solid var(--sc-green);
  box-shadow: 0 12px 36px rgba(30, 74, 60, 0.08);
}

.sc-role {
  margin: 2px 2px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sc-green);
}

.sc-media {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 14px;
  background: #ffffff;
  aspect-ratio: 1 / 1;
  max-height: 220px;
  padding: 16px;
}

.sc-media img {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.sc-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 6px 4px;
}

.sc-name {
  margin: 0 0 6px;
  font-family: Cabin, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-price {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #2b2824;
}

.sc-blurb {
  margin: 0 0 28px;
  font-family: Cabin, "Segoe UI", sans-serif;
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--sc-muted);
}

.sc-cta {
  margin-top: auto;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--sc-green-soft);
  text-decoration: none;
}

.sc-cta:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sc-here {
  margin-top: auto;
  font-size: 15.5px;
  font-weight: 500;
  color: #8a837a;
}

@media (max-width: 900px) {
  .sc-wrap {
    padding: 8px 8px 24px;
  }

  .sc-grid,
  .sc-grid.sc-count-2,
  .sc-grid.sc-count-1 {
    grid-template-columns: minmax(0, 380px);
    justify-content: center;
    gap: 14px;
  }

  .sc-title {
    margin-bottom: 24px;
  }

  .sc-card.is-current {
    order: -1;
  }
}
