/* Wishavi — hero: «скайлайн» карточек-вишлистов */
.wa-hero-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.wa-hero-stage {
  aspect-ratio: 86 / 55;       /* соотношение сторон блока — нижние карточки под обрез */
}

.wa-wall {
  position: relative;          /* карточки позиционируются JS-масонри */
  width: 100%;
  padding: 34px 20px 26px;
}

/* карточка профиля — прозрачная цветная шапка + белый скруглённый низ */
.wa-prof {
  position: absolute;          /* координаты задаёт JS-масонри */
  top: 0; left: 0;
  border-radius: 22px;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 16px 34px -16px rgba(30, 24, 20, 0.28),
    0 4px 12px -8px rgba(30, 24, 20, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  animation: wa-prof-in 0.6s cubic-bezier(0.34, 1.4, 0.6, 1) forwards;
  /* цвет шапки (полупрозрачный) задаётся инлайном на карточке */
}
/* белый скруглённый низ */
.wa-prof__body {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 18px 18px 0 0;
  margin-top: 44px;
  padding: 28px 11px 13px;
}
.wa-prof:nth-child(3n + 1) { animation-delay: 0.30s; }
.wa-prof:nth-child(3n + 2) { animation-delay: 0.40s; }
.wa-prof:nth-child(3n)     { animation-delay: 0.50s; }

/* аватар-фото круглый — сидит на границе цветной шапки и белого низа */
.wa-prof__av {
  position: absolute;
  top: 44px; left: 50%;
  transform: translate(-50%, -50%);   /* центр на границе шапки и низа */
  z-index: 3;
  width: 48px; height: 48px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 2px #fff, 0 5px 12px -4px rgba(0, 0, 0, 0.22);
}
.wa-prof__name {
  text-align: center;
  font-family: "Inter Tight", sans-serif;
  font-size: 14px; font-weight: 700; color: #1a1a1c;
  margin-top: 2px;
}
.wa-prof__handle {
  text-align: center;
  font-family: "Inter Tight", sans-serif;
  font-size: 11px; color: #9aa0a8; margin-top: 1px;
}
/* товары — масонри 2 столбца, разной высоты/ширины */
.wa-prof__grid {
  columns: 2;
  column-gap: 8px;
  margin-top: 12px;
  text-align: left;
}

/* мини-подарок */
.wa-gift {
  position: relative;
  break-inside: avoid;
  margin-bottom: 8px;
  text-align: left;
}
.wa-gift--wide { column-span: all; }   /* товар на всю ширину */
.wa-gift__media {
  position: relative;
  width: 100%;
  padding-top: 100%;   /* высота задаётся инлайном на каждом */
  border-radius: 16px;
  background: linear-gradient(150deg, #f3f4f7, #e7e9ef);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}
/* эмодзи-заглушка товара по центру фото */
.wa-gift__emoji {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  line-height: 1;
}
/* цена и заголовок под фото — как в реакт-карточке */
.wa-gift__price {
  display: block;
  margin-top: 6px;
  font-family: "Inter Tight", sans-serif;
  font-size: 12px; font-weight: 700;
  color: #1a1a1c;
  white-space: nowrap;
}
.wa-gift__title {
  display: block;
  margin-top: 1px;
  font-family: "Inter Tight", sans-serif;
  font-size: 10px; font-weight: 500;
  color: #9aa0a8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wa-gift__add {
  position: absolute;
  right: 6px; bottom: 6px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  color: #1a1a1c;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 400; line-height: 1;
  box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.2);
}

/* чёрная кнопка */
.wa-prof__cta {
  margin-top: 12px;
  width: 100%;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: #1a1a1c;
  color: #fff;
  font-family: "Inter Tight", sans-serif;
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer;
}
.wa-prof__cta span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.18); font-size: 12px;
}

@keyframes wa-prof-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* число базовых колонок задаётся в JS по ширине; мобилка — свои отступы */
@media (max-width: 767px) {
  .wa-hero-stage { aspect-ratio: auto; height: auto; }
  .wa-wall { padding: 14px; }
  .wa-prof__grid .wa-gift:nth-child(n + 3) { display: none; }
}
