/* 위시리스트 페이지 스타일 */

.wishlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 2px solid #111;
}

.wishlist-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.wishlist-count {
    font-size: 14px;
    color: #888;
}

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 24px 0;
    min-height: 300px;
}

/* 상품 카드 */
.wishlist-grid .product-card {
    position: relative;
}

/* 품절 카드 투명도 처리 */
.wishlist-grid .product-card.soldout {
    opacity: 0.6;
}

/* 상품 이미지 영역 */
.wishlist-grid .product-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
}

.wishlist-grid .product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

/* 이미지 호버 확대 효과 */
.wishlist-grid .product-card:hover .product-card-image img {
    transform: scale(1.05);
}

/* 품절 뱃지 */
.product-soldout-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* 찜 버튼 (하트) */
.product-wish-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.product-wish-btn:hover {
    transform: scale(1.1);
}

.product-wish-btn svg {
    width: 20px;
    height: 20px;
    color: #ddd;
    fill: none;
}

/* 활성(찜된) 상태: 빨간 하트 */
.product-wish-btn.active svg {
    color: #ff4757;
    fill: #ff4757;
}

/* 상품 정보 영역 */
.product-card-info {
    padding: 12px 0;
}

.product-card-brand {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.product-card-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 8px;
}

.product-card-name a {
    color: #333;
    text-decoration: none;
}

/* 가격 영역 */
.product-card-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

/* 할인율 (빨간색) */
.product-discount {
    color: #ff4757;
    font-weight: 700;
    font-size: 16px;
}

.product-price {
    font-weight: 700;
    font-size: 16px;
}

/* 원가 (취소선) */
.product-original-price {
    font-size: 13px;
    color: #aaa;
    text-decoration: line-through;
}

/* 장바구니 담기 버튼 */
.btn-add-cart {
    width: 100%;
    padding: 8px;
    font-size: 13px;
}

/* 빈 상태 */
.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.empty-state-text {
    font-size: 14px;
    color: #888;
    margin-bottom: 24px;
}

/* ============================================================
   반응형
   ============================================================ */

/* 태블릿: 3열 */
@media (max-width: 1024px) {
    .wishlist-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

/* 모바일: 2열 */
@media (max-width: 768px) {
    .wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .wishlist-header h2 {
        font-size: 20px;
    }
}

/* 소형 모바일 */
@media (max-width: 480px) {
    .wishlist-grid {
        gap: 8px;
    }

    .product-card-name {
        font-size: 13px;
    }

    .product-discount,
    .product-price {
        font-size: 14px;
    }
}
