/*
 * Bebelplatz FASE 11 - Favoritos
 * Interfaz propia; YITH 4.20 permanece como almacenamiento.
 */

.yith-wcwl-add-to-wishlist,
.yith-add-to-wishlist-button-block,
#listadeseos {
  display: none !important;
}

.products .product,
ul.products li.product {
  position: relative;
}

.bp11-favorite-button {
  appearance: none;
  border: 1px solid rgba(24, 22, 20, .14);
  background: rgba(255, 253, 250, .96);
  color: #342f2b;
  border-radius: 999px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease;
  box-shadow: 0 2px 12px rgba(24, 22, 20, .08);
  line-height: 1;
}

.bp11-favorite-button svg {
  width: 21px;
  height: 21px;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.7;
}

.bp11-favorite-button:hover {
  transform: translateY(-1px);
  border-color: rgba(216, 111, 42, .45);
  color: #b8561f;
}

.bp11-favorite-button.is-active {
  color: #b8561f;
  background: #fff7f0;
  border-color: rgba(216, 111, 42, .42);
}

.bp11-favorite-button.is-active svg {
  fill: currentColor;
}

.bp11-favorite-button:focus-visible {
  outline: 3px solid #d86f2a !important;
  outline-offset: 3px !important;
}

.bp11-favorite-button.is-loading {
  pointer-events: none;
  opacity: .62;
}

.bp11-favorite-button--loop {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 8;
}

.bp11-single-favorite {
  margin: 18px 0 4px;
}

.bp11-favorite-button--single {
  min-height: 46px;
  padding: 0 18px;
  font-weight: 700;
  font-size: 14px;
}

.bp11-favorite-button--card {
  flex: 0 0 44px;
}

.bp11-favorites-page {
  width: 100%;
}

.bp11-favorites-header {
  max-width: 760px;
  margin-bottom: 28px;
}

.bp11-eyebrow {
  margin: 0 0 7px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9c5c32;
}

.bp11-favorites-header h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}

.bp11-favorites-header > p:last-child {
  margin: 0;
  color: #6d655f;
  max-width: 650px;
}

.bp11-favorites-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.bp11-favorite-card {
  min-width: 0;
  border: 1px solid rgba(24, 22, 20, .1);
  border-radius: 18px;
  overflow: hidden;
  background: #fffdfa;
  box-shadow: 0 8px 30px rgba(24, 22, 20, .055);
}

.bp11-favorite-cover {
  display: block;
  background: #f4efe9;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.bp11-favorite-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bp11-favorite-card-body {
  padding: 17px;
}

.bp11-favorite-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.25;
}

.bp11-favorite-card h3 a {
  color: inherit;
  text-decoration: none;
}

.bp11-favorite-price {
  margin-bottom: 14px;
  font-weight: 700;
}

.bp11-favorite-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bp11-view-book {
  flex: 1 1 auto;
  text-align: center;
  min-height: 44px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.bp11-empty {
  padding: 46px 24px;
  text-align: center;
  border: 1px dashed rgba(24, 22, 20, .18);
  border-radius: 18px;
  background: #fffdfa;
}

.bp11-empty-heart {
  display: block;
  font-size: 48px;
  line-height: 1;
  color: #d86f2a;
  margin-bottom: 14px;
}

.bp11-empty h3 {
  margin: 0 0 8px;
  font-size: 23px;
}

.bp11-empty p {
  margin: 0 auto 20px;
  max-width: 520px;
  color: #6d655f;
}

.bp11-favorites-status {
  min-height: 1px;
}

.bp11-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 99999;
  transform: translateX(-50%);
  background: #211f1d;
  color: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14px;
  box-shadow: 0 12px 35px rgba(0,0,0,.2);
}

.bp11-toast--error {
  background: #7e2b20;
}

@media (max-width: 980px) {
  .bp11-favorites-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .bp11-favorites-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bp11-favorite-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    border-radius: 14px;
  }

  .bp11-favorite-cover {
    aspect-ratio: auto;
    min-height: 168px;
  }

  .bp11-favorite-card-body {
    padding: 14px;
  }

  .bp11-favorite-card h3 {
    font-size: 16px;
  }

  .bp11-favorite-actions {
    align-items: stretch;
  }

  .bp11-view-book,
  .bp11-favorite-button--card {
    min-height: 44px;
  }

  .bp11-favorite-button--loop {
    top: 8px;
    right: 8px;
  }
}
