/* ---------------------------------------------------------------------------
   Wishlist: the header heart with its count, the flying ghost, the page.
   --------------------------------------------------------------------------- */

.bs-icon-btn--wish.is-on svg { fill: currentColor; }
.bs-icon-btn--wish.is-pulse { animation: bs-wish-pulse .5s cubic-bezier(.4, 0, .2, 1); }
@keyframes bs-wish-pulse { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* The ghost of the picture on its way to the header. */
.bs-fly { position: fixed; z-index: 200; pointer-events: none; background: var(--bs-gray-ultra-light) center / cover no-repeat; border-radius: 8px; box-shadow: 0 12px 30px rgba(0, 0, 0, .18); will-change: transform, opacity; }

/* ---------- Page ---------- */

.bs-wishlist .bs-container { padding-top: 24px; padding-bottom: 80px; }
.bs-wishlist__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: 32px; }
.bs-wishlist__title { margin: 0; font-size: 40px; font-weight: 700; letter-spacing: -.02em; }
.bs-wishlist__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bs-wishlist__share { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; border: 1px solid var(--bs-black); border-radius: 26px; background: var(--bs-white); color: var(--bs-black); font: inherit; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background var(--bs-dur) var(--bs-ease), color var(--bs-dur) var(--bs-ease); }
.bs-wishlist__share:hover, .bs-wishlist__share.is-done { background: var(--bs-black); color: var(--bs-white); }
.bs-wishlist__share[hidden] { display: none; }
.bs-wishlist__note { margin: -16px 0 24px; color: var(--bs-gray); font-size: 14px; }

.bs-wishlist__grid { display: flex; flex-wrap: wrap; gap: 40px 24px; }
.bs-wishlist__grid > .bs-card { flex: 0 0 calc((100% - 24px) / 2); }

@media only screen and (min-width: 700px) {
  .bs-wishlist__grid > .bs-card { flex: 0 0 calc((100% - 48px) / 3); }
}

@media only screen and (min-width: 990px) {
  .bs-wishlist__grid > .bs-card { flex: 0 0 calc((100% - 72px) / 4); }
  .bs-wishlist__title { font-size: 48px; }
}

/* The card on this page: an X where the heart was, a cart button at the foot. */
.bs-card--wishlist { display: flex; flex-direction: column; }
.bs-card__wish--remove { color: var(--bs-black); }
.bs-card__wish--remove:hover { color: var(--bs-red-discount); }
.bs-card__cart { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-top: auto; padding-top: 0; border-radius: 50%; background: var(--bs-black); color: var(--bs-white); transition: background var(--bs-dur) var(--bs-ease), transform var(--bs-dur) var(--bs-ease); }
.bs-card--wishlist .bs-card__cart { margin-top: 24px; }
.bs-card__cart:hover { background: var(--bs-black-light); transform: translateY(-2px); }
.bs-card__cart.added { background: var(--bs-green); }
.bs-card--wishlist .added_to_cart { display: none; }

.bs-wishlist__empty { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 64px 0; color: var(--bs-gray); text-align: center; }
.bs-wishlist__empty[hidden] { display: none; }
.bs-wishlist__empty p { max-width: 420px; margin: 0; font-size: 16px; line-height: 1.6; }
.bs-wishlist__shop { display: inline-flex; align-items: center; height: 48px; padding: 0 24px; border-radius: 24px; background: var(--bs-black); color: var(--bs-white); font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
