/**
 * public/css/shop-wishlist.css
 */

/* ═══ 하트 버튼 (카드/상세 공용) ═══ */
.wish-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #ccc;
    transition: all 0.2s;
    position: relative;
    z-index: 2;
}
.wish-btn:hover {
    color: #ff4081;
    transform: scale(1.1);
}
.wish-btn.wished {
    color: #ff4081;
}
.wish-btn.wished i {
    color: #ff4081;
}

/* 하트 펄스 애니메이션 */
.wish-btn.wish-pulse {
    animation: wishPulse 0.4s ease;
}
@keyframes wishPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ═══ 상품 카드 위의 하트 (우측 상단) ═══ */
.prod-card .wish-btn,
.pd-wish-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* 목록에서는 호버 시 나타남 (모바일은 항상) */
.prod-card .wish-btn {
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s, color 0.2s;
}
.prod-card:hover .wish-btn,
.prod-card .wish-btn.wished {
    opacity: 1;
}
@media (max-width: 768px) {
    .prod-card .wish-btn { opacity: 1; }
}

/* ═══ 상세 페이지 하트 ═══ */
.pd-wish-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.pd-wish-wrap .wish-btn {
    position: static;
    background: #f5f5f5;
    width: 40px;
    height: 40px;
    font-size: 20px;
}
.pd-wish-wrap .wish-btn:hover {
    background: #fce4ec;
}
.pd-wish-text {
    font-size: 13px;
    color: #888;
}

/* ═══ 헤더 찜 아이콘 ═══ */
.header-wish-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.header-wish-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.15s;
}
.header-wish-link:hover {
    opacity: 0.7;
}
.wish-badge {
    position: absolute;
    top: -2px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: #ff4081;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    pointer-events: none;
}
