.wishlist-button {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  cursor: pointer;
}

.wishlist-button .icon {
  margin-right: 8px;
  font-size: 1.2em;
}

.wishlist-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.wishlist-item {
  position: relative;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 8px;
}

.wishlist-item .wishlist-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #f44336;
  text-decoration: none;
  font-size: 0.9em;
}

.wishlist-count {
  display: inline-block;
  min-width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  background: #f44336;
  color: white;
  border-radius: 10px;
  font-size: 0.8em;
  margin-left: 5px;
}

/* Кнопка Wishlist */
.wishlist-button {
  display: inline-flex;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  color: #000000;
  border: 0;
  padding: 0;
  position: relative;
  padding-left: 22px;
  line-height: 1;
}
.wishlist-button::after {
  content: "";
  width: 15px;
  height: 15px;
  position: absolute;
  top: 0;
  left: 0;

  -webkit-mask: url("../css/images/like.svg") no-repeat 50% 50%;
  mask: url("../css/images/like.svg") no-repeat 50% 50%;
  -webkit-mask-size: 15px;
  mask-size: 15px;
  background-color: #EB002B;
}

.wishlist-button:hover {
  color: #EB002B !important;
}

.wishlist-button:active {
  transform: translateY(0);
}

.wishlist-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Состояния кнопки */
.wishlist-button.not-in-wishlist {
  color: #000000;
}

/* Иконки */
.wishlist-button .wishlist-heart,
.wishlist-button .wishlist-heart-empty,
.wishlist-button .wishlist-check {
  margin-right: 8px;
  font-size: 18px;
  transition: transform 0.3s ease;
}

.wishlist-button .wishlist-heart-empty {
  font-size: 16px;
}



/* Лоадер */
.wishlist-button.loading {
  background: #f8f9fa;
  border-color: #dee2e6;
  color: #6c757d;
}

.wishlist-loader {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border: 2px solid #ff6b6b;
  border-radius: 50%;
  border-top-color: transparent;
  animation: wishlist-spin 1s linear infinite;
}

@keyframes wishlist-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Анимация успеха */
.wishlist-button.success-animation {
  background: #28a745 !important;
  border-color: #28a745 !important;
  color: white !important;
  animation: wishlist-success 0.5s ease;
}

.wishlist-button .wishlist-check {
  animation: wishlist-check 0.5s ease;
}

@keyframes wishlist-success {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes wishlist-check {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Всплывающее сообщение */
.wishlist-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 15px 20px;
  background: #28a745;
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  animation: wishlist-toast 3s ease;
  display: flex;
  align-items: center;
  max-width: 300px;
}

@keyframes wishlist-toast {
  0% { transform: translateX(100%); opacity: 0; }
  15% { transform: translateX(0); opacity: 1; }
  85% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

.wishlist-toast-icon {
  margin-right: 10px;
  font-size: 20px;
}

/* Анимация счетчика */
.wishlist-count {
  transition: transform 0.3s ease;
}

.wishlist-count.pulse {
  animation: wishlist-pulse 0.5s ease;
}

@keyframes wishlist-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Стили для сообщения гостям */
.guest-wishlist-message {
  margin-top: 10px;
  padding: 12px 15px;
  border: 1px solid #bee5eb;
  background-color: #d1ecf1;
  border-radius: 4px;
  color: #0c5460;
  font-size: 14px;
  animation: fadeIn 0.3s ease-in;
}

.guest-wishlist-message p {
  margin: 0 0 5px 0;
}

.guest-wishlist-message strong {
  font-weight: 600;
}

.guest-wishlist-message .btn {
  margin-top: 8px;
  padding: 5px 15px;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  display: inline-block;
  font-size: 13px;
}

.guest-wishlist-message .btn:hover {
  background: #0056b3;
}

/* Стиль для кнопки гостя */
.guest-wishlist-button {
  opacity: 0.8;
  cursor: not-allowed;
}

.guest-wishlist-button:hover {
  opacity: 1;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.wishlist_err_mes_login {
  padding: 8px 8px 6px 8px;
  border-radius: 10px;
  background-color: #F3F4F6;
  font-size: 12px;
  margin-top: 10px;
}