/*
 * GrowthStep: one product on the GrowthBanner staircase. The product photo stands on a podium whose
 * height is --gb-base plus --gs-p (0–1, from its own --gs-cm between the parent's --gb-min and
 * --gb-max) times --gb-rise. Sizes, the blend and the info switch come from GrowthBanner.
 */
.cc_ha5dwmyj_TmSy0rjHzP .growth-step {
  --gs-p: clamp(0, (var(--gs-cm, 75) - var(--gb-min, 60)) / (var(--gb-max, 120) - var(--gb-min, 60)), 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  color: var(--c-heading);
  text-decoration: none;
  scroll-snap-align: start;
  -webkit-tap-highlight-color: transparent;
}

/* Every product gets the same box, bottom-aligned on its podium. Studio shots keep a little air
   under the product, so the box overlaps the podium top by that much. */
.cc_ha5dwmyj_TmSy0rjHzP .growth-step__photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: var(--gb-photo, 96px);
  margin-bottom: calc(var(--gb-photo, 96px) * -0.05);
  pointer-events: none;
  transition: translate 260ms var(--ease-out-quart);
}

.cc_ha5dwmyj_TmSy0rjHzP .growth-step__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  user-select: none;
  transition: scale 140ms ease-out;
}

.cc_ha5dwmyj_TmSy0rjHzP .growth-step__pod {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  height: calc(var(--gb-base, 64px) + var(--gs-p) * var(--gb-rise, 112px));
  padding: 12px 6px 0;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  background-color: var(--c-text-08);
  text-align: center;
  transition: background-color 200ms ease;
}

.cc_ha5dwmyj_TmSy0rjHzP .growth-step__age {
  display: block;
  color: var(--c-heading);
  white-space: nowrap;
}

.cc_ha5dwmyj_TmSy0rjHzP .growth-step__cm {
  display: block;
  color: var(--c-text-60);
  font-variant-numeric: tabular-nums;
}

.cc_ha5dwmyj_TmSy0rjHzP .growth-step__cm::after {
  content: "\00a0" var(--gb-unit, "cm");
}

/* Name + price: GrowthBanner shows them from 720px with its info switch on (phones have no room). */
.cc_ha5dwmyj_TmSy0rjHzP .growth-step__info {
  display: none;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
}

.cc_ha5dwmyj_TmSy0rjHzP .growth-step__name {
  display: block;
  color: var(--c-heading);
  text-wrap: balance;
}

.cc_ha5dwmyj_TmSy0rjHzP .growth-step__price {
  display: block;
  color: var(--c-text-60);
  font-variant-numeric: tabular-nums;
}

.cc_ha5dwmyj_TmSy0rjHzP a.growth-step:focus-visible {
  outline: none;
}

.cc_ha5dwmyj_TmSy0rjHzP a.growth-step:focus-visible .growth-step__pod {
  outline: 2px solid var(--c-heading);
  outline-offset: 2px;
}

.cc_ha5dwmyj_TmSy0rjHzP a.growth-step:active .growth-step__photo img {
  scale: 0.97;
}

@media (hover: hover) and (pointer: fine) {
  .cc_ha5dwmyj_TmSy0rjHzP a.growth-step:hover .growth-step__photo {
    translate: 0 -8px;
  }

  .cc_ha5dwmyj_TmSy0rjHzP a.growth-step:hover .growth-step__pod {
    background-color: var(--c-text-15);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc_ha5dwmyj_TmSy0rjHzP a.growth-step:hover .growth-step__photo {
    translate: none;
  }
}

/* Phones: four podiums side by side leave ~80px each. */
@media (max-width: 719.98px) {
  .cc_ha5dwmyj_TmSy0rjHzP .growth-step__pod {
    padding-top: 10px;
    gap: 2px;
    border-radius: var(--radius-thumb) var(--radius-thumb) 0 0;
  }

  .cc_ha5dwmyj_TmSy0rjHzP .growth-step__age {
    font-size: 17px;
    line-height: 1.1;
  }
}

@media (min-width: 720px) {
  .cc_ha5dwmyj_TmSy0rjHzP .growth-step__pod {
    padding: 18px 10px 0;
  }
}
