/* Wishlist Page Styles */

.wishlist-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 8px;
  font-weight: 600;
}

.wishlist-stats span {
  font-size: 24px;
  font-weight: 700;
}

/* Filters */
.wishlist-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
}

.filter-group {
  display: flex;
  gap: 12px;
  flex: 1;
}

.filter-select {
  padding: 10px 16px;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 180px;
}

.filter-select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-clear-all {
  padding: 10px 20px;
  border: none;
  background: #e53e3e;
  color: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-clear-all:hover {
  background: #c53030;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

/* Wishlist Grid */
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

/* Wishlist Item Card */
.wishlist-item {
  position: relative;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
}

.wishlist-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.wishlist-item-image {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: #f8f9fa;
}

.wishlist-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.wishlist-item:hover .wishlist-item-image img {
  transform: scale(1.05);
}

.wishlist-item-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  background: #e53e3e;
  color: white;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.wishlist-item-badge.sale {
  background: #e53e3e;
}

.wishlist-item-badge.new {
  background: #48bb78;
}

.btn-remove-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #e53e3e;
  font-size: 18px;
}

.btn-remove-wishlist:hover {
  background: #e53e3e;
  color: white;
  transform: scale(1.1);
}

.wishlist-item-info {
  padding: 16px;
}

.wishlist-item-category {
  font-size: 12px;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.wishlist-item-name {
  font-size: 16px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  min-height: 44px;
}

.wishlist-item-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.current-price {
  font-size: 20px;
  font-weight: 700;
  color: #e53e3e;
}

.old-price {
  font-size: 14px;
  color: #a0aec0;
  text-decoration: line-through;
}

.wishlist-item-stock {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-bottom: 12px;
}

.wishlist-item-stock.in-stock {
  color: #48bb78;
}

.wishlist-item-stock.out-of-stock {
  color: #e53e3e;
}

.wishlist-item-actions {
  display: flex;
  gap: 8px;
}

.btn-add-to-cart {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-add-to-cart:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-add-to-cart:disabled {
  background: #cbd5e0;
  cursor: not-allowed;
}

.btn-view-product {
  padding: 10px;
  border: 1px solid #e1e4e8;
  background: white;
  color: #667eea;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-view-product:hover {
  background: #f7fafc;
  border-color: #667eea;
}

.wishlist-item-date {
  font-size: 12px;
  color: #a0aec0;
  text-align: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e1e4e8;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}

.empty-icon {
  font-size: 80px;
  color: #cbd5e0;
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: 24px;
  color: #2d3748;
  margin-bottom: 12px;
}

.empty-state p {
  font-size: 16px;
  color: #718096;
  margin-bottom: 30px;
}

.btn-continue-shopping {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-continue-shopping:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

/* Notification Toast */
.notification-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 16px 24px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease-out;
  max-width: 400px;
}

.notification-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.notification-toast.success {
  border-left: 4px solid #48bb78;
}

.notification-toast.success i {
  color: #48bb78;
  font-size: 24px;
}

.notification-toast.error {
  border-left: 4px solid #e53e3e;
}

.notification-toast.error i {
  color: #e53e3e;
  font-size: 24px;
}

.notification-toast .message {
  flex: 1;
}

.notification-toast .message strong {
  display: block;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 4px;
}

.notification-toast .message span {
  font-size: 14px;
  color: #718096;
}

/* Responsive */
@media (max-width: 1024px) {
  .wishlist-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .wishlist-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    flex-direction: column;
  }

  .filter-select {
    min-width: auto;
  }

  .btn-clear-all {
    justify-content: center;
  }

  .wishlist-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }

  .wishlist-item-image {
    height: 220px;
  }

  .wishlist-item-name {
    font-size: 14px;
    min-height: 40px;
  }

  .current-price {
    font-size: 16px;
  }

  .wishlist-item-actions {
    flex-direction: column;
  }

  .btn-view-product {
    padding: 8px;
  }

  .notification-toast {
    right: 15px;
    left: 15px;
    bottom: 15px;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .wishlist-stats {
    padding: 10px 16px;
  }

  .wishlist-stats span {
    font-size: 20px;
  }

  .empty-icon {
    font-size: 60px;
  }

  .empty-state h3 {
    font-size: 20px;
  }

  .empty-state p {
    font-size: 14px;
  }
}

