/**
 * Mega Wishlist — front
 * Colores de marca: verde-oscuro var(--color3) · corazón activo #c0392b · acento #d4a853
 * @author Ecommsistema
 */

/* ---- Botón base (ficha de producto) ---- */
.mwl-product-action { margin: .75rem 0; }

.mwl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color3);
  line-height: 1;
  cursor: pointer;
  transition: color .15s ease, transform .1s ease;
}
.mwl-btn:hover { color: #c0392b; }
.mwl-btn:active { transform: scale(.95); }
.mwl-btn__icon { display: inline-flex; }
.mwl-btn__icon svg { display: block; transition: fill .15s ease; }

.mwl-btn--active { color: #c0392b; }
.mwl-btn--active .mwl-btn__icon svg { fill: currentColor; }

.mwl-btn--loading { opacity: .6; pointer-events: none; }

/* ---- Botón en miniaturas (inyectado por JS) ---- */
.mwl-mini-wrap { position: absolute; top: .5rem; right: .5rem; z-index: 3; }
.mwl-btn--mini {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--color3);
  justify-content: center;
}
.mwl-btn--mini:hover { background: transparent; color: #c0392b; transform: scale(1.06); }
.mwl-btn--mini.mwl-btn--active { background: transparent; color: #c0392b; }
.mwl-btn--mini.mwl-btn--active .mwl-btn__icon svg { fill: currentColor; }

/* ---- Cabecera ---- */
.mwl-header { display: inline-flex; }
.mwl-header__link { position: relative; display: inline-flex; align-items: center; color: inherit; }
.mwl-header__link:hover { color: #c0392b; }
.mwl-header__badge.mwl-header__badge { background: #c0392b; }

/* ---- Página "Mi lista de deseos" ---- */
.mwl-page__count { font-family: "Source Sans 3", sans-serif; color: #555; margin-bottom: 1rem; }
.mwl-products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 576px) { .mwl-products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .mwl-products { grid-template-columns: repeat(3, 1fr); } }
.mwl-products .mwl-cell { min-width: 0; }
.mwl-empty { padding: 3rem 1rem; }
.mwl-empty p { font-family: "Barlow Condensed", sans-serif; font-size: 1.4rem; color: var(--color3); margin-bottom: 1rem; }

/* ---- Enlace "Mi lista de deseos" en el menú de Mi cuenta ---- */
.mwl-account-link__count { display: inline-block; white-space: nowrap; }

/* ---- Toast ---- */
.mwl-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1080;
  max-width: 320px;
  padding: .8rem 1.1rem;
  border-radius: 8px;
  background: var(--color3);
  color: #fff;
  font-family: "Source Sans 3", sans-serif;
  font-size: .95rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.mwl-toast--show { opacity: 1; transform: translateY(0); }
.mwl-toast--ko { background: #c0392b; }

/* ---- Aviso fijo de login/registro (invitados) ---- */
.mwl-login-prompt {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1090;
  width: 320px;
  max-width: calc(100vw - 2rem);
  padding: 1.25rem 1.25rem 1.1rem;
  border-radius: 12px;
  background: #fff;
  color: var(--color3);
  font-family: "Source Sans 3", sans-serif;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  border-top: 4px solid var(--color3);
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .25s ease, transform .25s ease;
}
.mwl-login-prompt--show { opacity: 1; transform: translateY(0); }

.mwl-login-prompt__close {
  position: absolute;
  top: .35rem;
  right: .55rem;
  border: none;
  background: transparent;
  color: #888;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: .1rem .3rem;
}
.mwl-login-prompt__close:hover { color: #c0392b; }

.mwl-login-prompt__icon { color: #c0392b; margin-bottom: .4rem; }
.mwl-login-prompt__icon svg { display: inline-block; }
.mwl-login-prompt__icon svg path { fill: currentColor; }

.mwl-login-prompt__title {
  margin: 0 0 1rem;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color3);
}

.mwl-login-prompt__actions { display: flex; flex-direction: column; gap: .55rem; }
.mwl-login-prompt__btn {
  display: block;
  padding: .6rem 1rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.mwl-login-prompt__btn--primary { background: var(--color3); color: #fff; }
.mwl-login-prompt__btn--primary:hover { background: #143728; color: #fff; }
.mwl-login-prompt__btn--ghost { background: #fff; color: var(--color3); border: 1px solid var(--color3); }
.mwl-login-prompt__btn--ghost:hover { background: var(--color3); color: #fff; }

/* Llamada de atención si ya está abierto y se vuelve a pulsar el corazón */
.mwl-login-prompt--pulse { animation: mwl-pulse .4s ease; }
@keyframes mwl-pulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(0) scale(1.04); }
}
