.guided-feature--catalog {
  --feature-background: #f4f6f8;
}

.guided-feature__media--catalog {
  width: min(100%, 580px);
  justify-self: end;
}

.guided-feature__media--catalog::before,
.guided-feature__media--catalog::after { display: none; }

.catalog-story {
  width: 100%;
  min-width: 0;
  padding: 12px 4px 24px;
  container-type: inline-size;
  perspective: 1600px;
  isolation: isolate;
  touch-action: pan-y pinch-zoom;
}

.catalog-story__surface {
  transform-origin: 50% 45%;
  transform: translate3d(0, var(--search-lift, 0px), 0)
    rotateX(var(--search-pitch, 0deg)) rotateY(var(--search-turn, 0deg));
  backface-visibility: hidden;
}

.catalog-story__prompt {
  position: relative;
  z-index: 1;
  opacity: var(--search-prompt, 1);
  transform: translate3d(0, var(--search-prompt-lift, 0px), 0);
}

.catalog-story__label {
  display: block;
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 570;
  line-height: 1.4;
  letter-spacing: -.02em;
}

.catalog-story__search {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  width: 100%;
  min-height: 64px;
  padding: 14px 20px;
  background: #fff;
  border: 1px solid #e1e7ee;
  border-radius: 12px;
  box-shadow: 0 14px 28px -14px rgba(7, 26, 53, .18), 0 3px 6px rgba(7, 26, 53, .03);
}

.catalog-story__icon { display: block; width: 24px; height: 24px; fill: none; stroke: #183c62; stroke-width: 1.6; stroke-linecap: round; }
.catalog-story__value { position: relative; min-width: 0; color: var(--navy); font-size: clamp(16px, 3.5cqw, 19px); font-weight: 540; line-height: 1.4; letter-spacing: -.035em; }
.catalog-story__value input { display: block; width: 100%; min-width: 0; padding: 0; border: 0; border-radius: 0; outline: none; color: inherit; background: transparent; font: inherit; line-height: inherit; letter-spacing: inherit; pointer-events: none; }
.catalog-story__ink { position: absolute; inset: 0; display: none; align-items: center; white-space: nowrap; pointer-events: none; }
.catalog-story__caret { display: block; flex: 0 0 1.5px; height: 1.18em; margin-left: 3px; background: var(--orange); animation: catalog-caret-blink 1.1s steps(1, end) infinite; }
@keyframes catalog-caret-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.catalog-story.is-scroll-ready input { color: transparent; }
.catalog-story.is-scroll-ready .catalog-story__ink { display: flex; }

.catalog-story__results { margin-top: 26px; }
.catalog-story__count { margin: 0 0 12px; color: var(--navy); font-size: 14px; font-weight: 550; line-height: 1.4; letter-spacing: -.02em; opacity: var(--search-results, 1); }
.catalog-story__list {
  margin: 0;
  padding: 0;
  list-style: none;
  background: rgba(255, 255, 255, var(--search-results, 1));
  border-radius: 12px;
  box-shadow: 0 22px 36px -18px rgba(7, 26, 53, calc(.12 * var(--search-results, 1))),
    0 0 0 1px rgba(7, 26, 53, calc(.065 * var(--search-results, 1)));
}

.catalog-story__row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 96px;
  padding: 16px 20px;
  opacity: var(--result-opacity, 1);
  transform: translate3d(0, var(--result-lift, 0px), 0);
}
.catalog-story__row + .catalog-story__row { border-top: 1px solid #edf0f4; }
.catalog-story__thumbnail { position: relative; display: block; width: 58px; aspect-ratio: 1; overflow: hidden; background: #fff; border-radius: 5px; }
.catalog-story__thumbnail img { position: absolute; left: var(--thumb-left); top: var(--thumb-top); display: block; width: var(--thumb-width); max-width: none; height: auto; pointer-events: none; user-select: none; }
.catalog-story__product { min-width: 0; }
.catalog-story__product strong { display: block; color: var(--navy); font-size: 15px; font-weight: 600; line-height: 1.4; letter-spacing: -.035em; }
.catalog-story__product span { display: block; margin-top: 5px; color: #7c899c; font-size: 12px; line-height: 1.5; letter-spacing: -.01em; }

@media (max-width: 900px) {
  .guided-feature__media--catalog { width: min(100%, 540px); justify-self: center; }
  .catalog-story { padding-inline: 4px; }
}

@media (max-width: 600px) {
  .catalog-story__search { grid-template-columns: 20px minmax(0, 1fr); gap: 12px; min-height: 58px; padding-inline: 14px; }
  .catalog-story__icon { width: 20px; height: 20px; }
  .catalog-story__label, .catalog-story__count { font-size: 12px; }
  .catalog-story__results { margin-top: 22px; }
  .catalog-story__row { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; min-height: 88px; padding: 14px; }
  .catalog-story__thumbnail { width: 44px; }
  .catalog-story__product strong { font-size: 12px; line-height: 1.45; }
  .catalog-story__product span { font-size: 10.5px; line-height: 1.5; }
}

@media (min-width: 901px) and (max-height: 720px) {
  .catalog-story__row { min-height: 76px; padding-block: 10px; grid-template-columns: 48px minmax(0, 1fr); }
  .catalog-story__thumbnail { width: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-story__surface, .catalog-story__prompt, .catalog-story__row { transform: none; }
  .catalog-story__caret { display: none; animation: none; }
}
