/* 찜 — 타이틀 옆 북마크 아이콘 */
.wishlist-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
}

.wishlist-btn__icon {
  display: block;
  width: 20px;
  height: 20px;
  max-width: none;
  flex-shrink: 0;
  color: inherit;
}

.wishlist-btn__icon--filled {
  display: none;
}

.wishlist-btn.is-active .wishlist-btn__icon--outline {
  display: none;
}

.wishlist-btn.is-active .wishlist-btn__icon--filled {
  display: block;
}

.wishlist-btn:hover {
  color: #64748b;
}

.wishlist-btn.is-active {
  color: #d97706;
}

.wishlist-btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.wishlist-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.wishlist-btn--labeled {
  width: auto;
  height: auto;
  min-height: 44px;
  padding: 8px 14px;
  gap: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
}

.wishlist-btn--labeled .wishlist-btn__icon {
  width: 18px;
  height: 18px;
}

.wishlist-btn--labeled:hover {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

.wishlist-btn--labeled.is-active {
  color: #b45309;
  background: #fffbeb;
  border-color: #fde68a;
}

.wishlist-btn--labeled.is-active:hover {
  background: #fef3c7;
  color: #92400e;
}

.wishlist-btn__label {
  white-space: nowrap;
}

.product-card__title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  min-width: 0;
}

.product-card__name-link {
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.product-card__name-link:hover .product-card__name {
  color: #333;
}

.product-card__name-link:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-radius: 4px;
}

.product-card__title-row .product-card__name {
  margin: 0;
}

.product-card__title-row .wishlist-btn {
  width: 36px;
  height: 36px;
}

.account-wishlist-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.account-wishlist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}

.account-wishlist-item__link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.account-wishlist-item__visual {
  flex-shrink: 0;
  width: 56px;
  aspect-ratio: 1.586 / 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #eee;
  background: #f8fafc;
}

.account-wishlist-item__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-wishlist-item__visual--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-wishlist-item__visual--empty img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.account-wishlist-item__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: #1a1a1a;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.account-wishlist-item .wishlist-btn {
  margin-left: auto;
}

.account-wishlist-list[data-wishlist-reorder] .account-wishlist-item {
  cursor: grab;
}

.account-wishlist-list[data-wishlist-reorder].is-sorting .account-wishlist-item:not(.is-dragging) {
  transition: transform 0.18s ease;
}

/* body로 옮긴 뒤에도 적용되도록 목록 하위 선택자 사용 금지 */
.account-wishlist-item.is-dragging {
  position: fixed;
  z-index: 450;
  margin: 0;
  box-sizing: border-box;
  cursor: grabbing;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  touch-action: none;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
  transition: none;
  will-change: top, left;
}

.account-wishlist-item--placeholder {
  box-sizing: border-box;
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  padding: 0;
  min-height: 0;
  pointer-events: none;
}

.account-wishlist-list[data-wishlist-reorder] .account-wishlist-item__link {
  cursor: inherit;
  -webkit-user-drag: none;
}

body.is-wishlist-sorting {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

body.is-wishlist-sorting .account-wishlist-item__link {
  user-select: none;
  -webkit-user-select: none;
}
