/* ═══════════════════════════════════════════════════════════════
   wishlist.css — страница «Избранное» Natasha Libelle
   Подключается после shared/base.css
   Без !important, без инлайн-стилей
   Prefix: .wl-
═══════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════
   1. HERO — компактный заголовочный блок
═══════════════════════════════════════════════════════════════ */
.wl-hero {
  background: #f8f2f7;
  padding: 112px 0 48px;
  color: #1c1220;
  border-bottom: 1px solid rgba(107, 63, 143, .12);
}

.wl-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Хлебные крошки */
.wl-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(28, 18, 32, .45);
}
.wl-breadcrumb li { display: flex; align-items: center; gap: 8px; }
.wl-breadcrumb a {
  color: rgba(28, 18, 32, .45);
  text-decoration: none;
  transition: color .2s;
}
.wl-breadcrumb a:hover {
  color: var(--c-accent);
}
.wl-breadcrumb li + li::before {
  content: '/';
  opacity: 0.5;
  flex-shrink: 0;
}
.wl-breadcrumb [aria-current="page"] { color: #1c1220; font-weight: 600; }

/* Заголовок + счётчик */
.wl-hero__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wl-hero__title-wrap {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
}

.wl-hero__title {
  font-family: 'Cormorant Garamond', 'Garamond', serif;
  font-weight: 300;
  font-size: clamp(44px, 5.5vw, 82px);
  line-height: 1;
  letter-spacing: -.01em;
  color: #1c1220;
  margin: 0;
}

.wl-hero__count {
  font-size: 13px;
  font-weight: 400;
  color: rgba(28, 18, 32, .5);
  letter-spacing: .04em;
  white-space: nowrap;
  padding-bottom: 6px;
}

.wl-hero__sub {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(28, 18, 32, .6);
  margin: 0;
  max-width: 520px;
}

/* Кнопки в hero */
.wl-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

.wl-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(28, 18, 32, .4);
  cursor: pointer;
  transition: color .25s;
}
.wl-clear-btn:hover {
  color: rgba(28, 18, 32, .75);
}
.wl-clear-btn svg {
  flex-shrink: 0;
  opacity: .6;
  transition: opacity .25s;
}
.wl-clear-btn:hover svg {
  opacity: 1;
}


/* ═══════════════════════════════════════════════════════════════
   2. СЕТКА КАРТОЧЕК
═══════════════════════════════════════════════════════════════ */
/* Override: кнопка «Продолжить выбирать» на светлом фоне hero — фиолетовая */
.wl-hero__actions .btn--ghost-k {
  border-color: var(--c-accent);
  color: var(--c-accent);
}
.wl-hero__actions .btn--ghost-k:hover {
  background: var(--c-accent);
  color: #fff;
}

.wl-section {
  background: #f8f2f7;
  padding: 56px 0 72px;
  min-height: 40vh;
}

.wl-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ─── Карточка ─────────────────────────────────────────────── */
.wl-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(28, 18, 32, .07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .3s, transform .3s;
}
.wl-card:hover {
  box-shadow: 0 16px 48px rgba(28, 18, 32, .1);
  transform: translateY(-4px);
}

/* Анимация удаления */
.wl-card.is-removing {
  opacity: 0;
  transform: scale(.94);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}

/* Фото */
.wl-card__img-link {
  display: block;
  text-decoration: none;
}

.wl-card__img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f0ece8;
}
.wl-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .5s ease;
}
.wl-card:hover .wl-card__img img {
  transform: scale(1.06);
}

/* Бейдж */
.wl-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: rgba(28, 18, 32, .72);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}
.wl-card__badge--new {
  background: rgba(124, 79, 154, .85);
  border: 1px solid rgba(196, 159, 224, .4);
}

/* Тело карточки */
.wl-card__body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.wl-card__col {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9b72bf;
}

.wl-card__name {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  color: #1c1220;
  margin: 0;
}
.wl-card__name a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
.wl-card__name a:hover {
  color: #7c4f9a;
}

.wl-card__desc {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  color: #6a5878;
  margin: 0;
  flex: 1;
}

/* Нижняя строка: цена + кнопки */
.wl-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(28, 18, 32, .06);
}

.wl-card__price {
  font-size: 18px;
  font-weight: 600;
  color: #1c1220;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.wl-card__btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wl-card__buy {
  font-size: 12px;
  padding: 9px 18px;
  white-space: nowrap;
}

/* Кнопка «убрать» — крестик */
.wl-card__remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: none;
  border: 1.5px solid rgba(28, 18, 32, .12);
  cursor: pointer;
  color: #9a8aaa;
  flex-shrink: 0;
  transition: border-color .2s, color .2s, background .2s;
}
.wl-card__remove:hover {
  border-color: rgba(192, 57, 43, .35);
  color: #c0392b;
  background: rgba(192, 57, 43, .05);
}


/* ═══════════════════════════════════════════════════════════════
   3. ПУСТОЕ СОСТОЯНИЕ
═══════════════════════════════════════════════════════════════ */
.wl-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 72px 24px 96px;
  gap: 16px;
}
.wl-empty.is-visible {
  display: flex;
}

.wl-empty__icon {
  color: #1c1220;
  margin-bottom: 8px;
}

.wl-empty__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(26px, 3vw, 40px);
  color: #1c1220;
  margin: 0;
  line-height: 1.1;
}

.wl-empty__text {
  font-size: 15px;
  font-weight: 300;
  color: #7a6a8a;
  margin: 0;
  max-width: 400px;
  line-height: 1.65;
}


/* ═══════════════════════════════════════════════════════════════
   4. EDITORIAL ПОДСКАЗКА
═══════════════════════════════════════════════════════════════ */
.wl-hint {
  background: #f8f2f7;
  padding: 64px 0 72px;
  border-top: 1px solid rgba(107, 63, 143, .08);
}

.wl-hint__inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: center;
}

.wl-hint__eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #9b72bf;
  margin-bottom: 16px;
}

.wl-hint__text p {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  color: #3d2f4a;
  margin: 0 0 28px;
}

.wl-hint__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wl-hint__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7c4f9a;
  text-decoration: none;
  transition: gap .25s, color .25s;
}
.wl-hint__link:hover {
  gap: 14px;
  color: #5a3878;
}

.wl-hint__img {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #e8e2f0;
}
.wl-hint__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}


/* ═══════════════════════════════════════════════════════════════
   АДАПТИВ
═══════════════════════════════════════════════════════════════ */

/* ── 1100px ── */
@media (max-width: 1100px) {
  .wl-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .wl-hint__inner {
    grid-template-columns: 1fr 280px;
    gap: 40px;
  }
}

/* ── 767px ── */
@media (max-width: 767px) {
  .wl-hero {
    padding: 96px 0 40px;
  }
  .wl-hero__title {
    font-size: clamp(40px, 10vw, 64px);
  }
  .wl-hero__sub {
    font-size: 14px;
  }
  .wl-hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .wl-section {
    padding: 40px 0 56px;
  }
  .wl-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .wl-card__img {
    aspect-ratio: 16 / 9;
  }

  .wl-hint {
    padding: 48px 0 56px;
  }
  .wl-hint__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .wl-hint__img {
    aspect-ratio: 16 / 9;
    order: -1;
  }
  .wl-hint__text p {
    font-size: 15px;
  }
}

/* ── 480px ── */
@media (max-width: 480px) {
  .wl-card__foot {
    flex-direction: column;
    align-items: flex-start;
  }
  .wl-card__btns {
    width: 100%;
    justify-content: space-between;
  }
  .wl-card__buy {
    flex: 1;
    text-align: center;
  }
}
