/* Wishlist — heart button, nav counter, email popup, and /mes-favoris styles */

/* ── Card wrapper (positions heart button over card) ───────────────────────── */
.catalogue-card-wrapper {
  position: relative;
}

/* ── Heart button on catalogue cards ─────────────────────────────────────── */
.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, color 0.15s ease, background 0.15s ease;
  line-height: 1;
  padding: 0;
}

.wishlist-btn:hover {
  transform: scale(1.15);
  color: #e11d48;
  background: #fff;
}

.wishlist-btn.saved {
  color: #e11d48;
  background: #fff5f7;
}

.wishlist-btn.saved:hover {
  color: #9f1239;
}

/* ── Detail page heart button ─────────────────────────────────────────────── */
.wishlist-btn--detail {
  position: static;
  width: 100%;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  padding: 10px 16px;
  margin: 10px 0 4px;
  gap: 6px;
  box-shadow: none;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.wishlist-btn--detail:hover {
  color: #e11d48;
  border-color: #fda4af;
  background: #fff5f7;
  transform: none;
}

.wishlist-btn--detail.saved {
  color: #e11d48;
  border-color: #fda4af;
  background: #fff5f7;
}

.wishlist-btn--detail .wishlist-btn-label {
  font-size: 13px;
}

/* ── Nav counter ──────────────────────────────────────────────────────────── */
.wishlist-nav-link {
  position: relative;
  color: #e11d48 !important;
  font-weight: 600;
}

.wishlist-nav-count {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #e11d48;
  margin-left: 2px;
}

/* ── /mes-favoris empty state ─────────────────────────────────────────────── */
.wishlist-empty {
  text-align: center;
  padding: 60px 20px;
}

.wishlist-empty-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

/* ── Email capture (inline on /mes-favoris) ───────────────────────────────── */
.wishlist-email-cta {
  margin: 48px auto;
  max-width: 600px;
  background: linear-gradient(135deg, #fff5f7 0%, #fef9ec 100%);
  border: 2px solid #fda4af;
  border-radius: 16px;
  overflow: hidden;
}

.wishlist-email-cta-inner {
  padding: 36px 40px;
  text-align: center;
}

.wishlist-email-cta-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.wishlist-email-cta h2 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #1a1a1a;
}

.wishlist-email-cta p {
  color: #6b7280;
  margin: 0 0 20px;
  font-size: 15px;
}

.wishlist-email-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.wishlist-email-form input[type=email] {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}

.wishlist-email-form input[type=email]:focus {
  border-color: #e11d48;
}

.wishlist-email-form button {
  padding: 10px 20px;
  background: #e11d48;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.wishlist-email-form button:hover {
  background: #9f1239;
}

.wishlist-email-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.wishlist-email-rgpd,
.wishlist-email-popup-rgpd {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 12px;
}

.wishlist-email-rgpd a,
.wishlist-email-popup-rgpd a {
  color: #6b7280;
}

.wishlist-email-success {
  text-align: center;
  padding: 24px;
  font-size: 16px;
  color: #0a7a55;
}

/* ── Email popup modal ────────────────────────────────────────────────────── */
.wl-email-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 24px;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.wl-email-popup.visible {
  opacity: 1;
  pointer-events: auto;
}

.wl-email-popup-inner {
  background: #fff;
  border-radius: 16px 16px 16px 16px;
  padding: 32px 32px 24px;
  max-width: 420px;
  width: calc(100% - 32px);
  position: relative;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.wl-email-popup-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #9ca3af;
  line-height: 1;
  padding: 4px;
}

.wl-email-popup-close:hover { color: #374151; }

.wl-email-popup-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.wl-email-popup-inner h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: #1a1a1a;
}

.wl-email-popup-inner p {
  margin: 0 0 16px;
  font-size: 14px;
  color: #6b7280;
}

.wl-email-popup-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wl-email-popup-form input[type=email] {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.wl-email-popup-form input[type=email]:focus {
  border-color: #e11d48;
}

.wl-email-popup-form button {
  padding: 10px 20px;
  background: #e11d48;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.wl-email-popup-form button:hover { background: #9f1239; }

.wl-popup-success {
  padding: 16px 0;
  font-size: 16px;
  color: #0a7a55;
}
