.wishlist {
  max-width: 42rem; /* max-w-2xl = 672px */
  margin: 0 auto;
  padding-bottom: 5rem;
}

.wishlist-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem;
}

.add-wishlist-button {
  background: transparent;
  border: 2px dashed #6b8dd6;
  border-radius: 18px;
  padding: 0;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  aspect-ratio: 5 / 6;
  position: relative;
}

.add-wishlist-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 141, 214, 0.2);
  background-color: rgba(107, 141, 214, 0.05);
  border-color: #5b7fc7;
}

.add-wishlist-icon {
  font-size: 3rem;
  font-weight: bold;
  color: #6b8dd6;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.section-divider {
  margin: 0 0 0.75rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
}

.section-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
}

.wishlist .completed-toggle {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c3e50;
  width: 100%;
}

.wishlist .completed-toggle:hover {
  color: #3498db;
}

.wishlist .completed-toggle-icon {
  font-size: 0.75rem;
}

.loading-completed {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.wishlist-card {
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
}

.wishlist-card .card-image {
  border-radius: 18px;
}

.wishlist-card:hover {
  transform: translateY(-2px);
}

.wishlist-card.faded {
  opacity: 0.45;
}

.wishlist .card-menu-button {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  background: rgba(255, 255, 255, 0.7);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 1.1rem;
  color: #000000;
  z-index: 10;
  padding: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.wishlist .card-menu-button:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #333333;
  transform: scale(1.1);
}

.card-image {
  aspect-ratio: 5 / 6;
  background: #f0f0f0;
  overflow: hidden;
  position: relative;
  border-radius: 18px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.card-image .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  background: white;
  border-radius: 18px;
}

.card-tasks-badge {
  position: absolute;
  bottom: 0.5rem;
  background: #6b7280;
  color: white;
  border-radius: 50%;
  padding: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 1.5rem;
  height: 1.5rem;
  text-align: center;
  z-index: 5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-tasks-badge-left {
  left: 0.5rem;
}

.card-tasks-badge-right {
  right: 0.5rem;
}

.card-name {
  padding: 0.6rem 0 0;
  font-weight: 600;
  font-size: 1.25rem;
  color: #2c3e50;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.card-price {
  padding: 0;
  color: #aaa;
  font-size: 0.9rem;
}

.unlock-condition-wrapper {
  padding: 0 0 0.5rem;
}

.unlock-condition-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0;
}

.unlock-condition {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #888;
  font-size: 0.85rem;
  flex: 1;
  min-width: 0;
}

.unlock-condition .lock-icon {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
}

.condition-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.more-conditions {
  padding-left: calc(12px + 0.25rem);
  margin-top: -0.15rem;
  color: #888;
  font-size: 0.85rem;
}

.wishlist-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.wishlist-modal {
  background: white;
  border-radius: 12px;
  padding: 0;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.2s ease-out;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.wishlist-modal-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 1.5rem 0.5rem 1.5rem;
  position: relative;
}

.wishlist-modal-header h3 {
  margin: 0;
  color: #2c3e50;
  font-size: 1.75rem;
  text-align: center;
}

.wishlist-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.5rem 1.5rem 1.5rem 1.5rem;
}

.wishlist-modal-edit,
.wishlist-modal-copy,
.wishlist-modal-complete,
.wishlist-modal-delete {
  width: 100%;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.wishlist-modal-edit {
  background-color: #3498db;
  color: white;
}

.wishlist-modal-edit:hover {
  background-color: #2980b9;
  transform: translateY(-1px);
}

.wishlist-modal-copy {
  background-color: #9b59b6;
  color: white;
}

.wishlist-modal-copy:hover {
  background-color: #8e44ad;
  transform: translateY(-1px);
}

.wishlist-modal-complete {
  background-color: #27ae60;
  color: white;
}

.wishlist-modal-complete:hover {
  background-color: #229954;
  transform: translateY(-1px);
}

.wishlist-modal-delete {
  background-color: #e74c3c;
  color: white;
}

.wishlist-modal-delete:hover {
  background-color: #c0392b;
  transform: translateY(-1px);
}

