/**
 * Wishlist & Floating Components Styles
 * 愿望单和浮动按钮组件样式
 */

/* Floating Buttons Container */
.floating-buttons {
  position: fixed;
  top: 70%;
  right: 30px;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.floating-wishlist-btn,
.contact-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background-color: #47b2e4;
  color: white;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-wishlist-btn:hover,
.contact-btn:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 8px 25px rgba(71, 178, 228, 0.4);
  background-color: #3598dc;
}

.floating-wishlist-btn:active,
.contact-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Badge for wishlist count */
.floating-wishlist-btn .badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #dc3545;
  color: white;
  font-size: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Floating Panel */
.floating-panel {
  position: fixed;
  top: 50%;
  right: 100px;
  transform: translateY(-50%);
  width: 380px;
  max-height: 80vh;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  z-index: 999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.floating-panel .panel-header {
  background: linear-gradient(135deg, #47b2e4 0%, #3598dc 100%);
  color: white;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 12px 12px 0 0;
}

.floating-panel .panel-header h5 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.floating-panel .panel-header .btn-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  opacity: 1;
  transition: all 0.3s ease;
}

.floating-panel .panel-header .btn-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.floating-panel .panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  max-height: calc(80vh - 60px);
}

/* Wishlist Item */
.panel-content .wishlist-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  background: white;
}

.panel-content .wishlist-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px) scale(1.02);
  border-color: #47b2e4;
}

.panel-content .wishlist-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.panel-content .wishlist-item-info {
  flex: 1;
  min-width: 0;
}

.panel-content .wishlist-item-info h6 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: #212529;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-content .wishlist-item-info small {
  font-size: 12px;
  color: #6c757d;
}

.panel-content .wishlist-remove {
  cursor: pointer;
  color: #dc3545;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.panel-content .wishlist-remove:hover {
  color: #fff;
  background-color: #dc3545;
  transform: scale(1.25) rotate(10deg);
}

.panel-content .wishlist-remove:active {
  transform: scale(1.1) rotate(-5deg);
}

/* Responsive */
@media (max-width: 768px) {
  .floating-buttons {
    bottom: 20px;
    right: 20px;
  }
  .floating-wishlist-btn,
  .contact-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  .floating-panel {
    right: 50%;
    transform: translate(50%, -50%);
    width: 90%;
    max-width: 380px;
  }
}
