/* 찜목록 래퍼 */
.wishlist-wrapper {
    background: #faf8f8;
    min-height: 100vh;
    padding: 60px 0;
}

.wishlist-wrapper .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 페이지 헤더 */
.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.page-subtitle {
    font-size: 16px;
    color: #666;
}

/* 찜 목록 컨트롤 */
.wishlist-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 24px; 
}

.wishlist-count {
    font-size: 15px;
    color: #666;
}

.wishlist-count strong {
    font-size: 18px;
    font-weight: 700;
    color: #c76b52;
}

.wishlist-actions {
    display: flex;
    gap: 12px;
}

.btn-select-delete,
.btn-delete-all {
    padding: 10px 20px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-select-delete:hover,
.btn-delete-all:hover {
    border-color: #ff4444;
    color: #ff4444;
    background: #fff7f5;
}

/* 찜 목록 그리드 - PC: 4열, 태블릿: 3열, 모바일: 2열 */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* 찜 상품 카드 */
.wishlist-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    padding: 10px;
    gap: 15px;
}

.wishlist-card:hover {
    border-color: var(--lq-accent-primary); 
}

/* 체크박스 */
.card-checkbox {
    display: none;
}

.checkbox-label {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-label::after {
    content: '';
    width: 12px;
    height: 8px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) scale(0);
    transition: all 0.3s;
}

.card-checkbox:checked ~ .checkbox-label {
    background: #c76b52;
    border-color: #c76b52;
}

.card-checkbox:checked ~ .checkbox-label::after {
    transform: rotate(-45deg) scale(1);
}

/* 삭제 버튼 */
.btn-remove-wishlist {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    color: #999;
}

.btn-remove-wishlist:hover {
    background: #ff4444;
    color: #fff;
    transform: scale(1.1);
}

/* 카드 이미지 */
.card-image {
    display: block;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #faf8f8;
    border-radius: 7px;
}

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

.wishlist-card:hover .card-image img {
    transform: scale(1.05);
}

/* 카드 콘텐츠 */


.wish-info-wrap {
    display: flex;
    flex-direction: column;
    gap:5px; 
}

.wish-wrap {display: none;}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    justify-content: space-between;
}

.card-badge {
    display: inline-block;
    padding: 4px 10px 5px;
    background: rgba(217, 96, 59, 0.9);
    color: #fff;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 6px;
}

.card-title {
    display: -webkit-box;
    display: box;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.5;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height:42px;
}

.card-title:hover {
    color: #c76b52;
}

/* 평점 */
.card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.rating-stars {
    color: #ffb800;
    font-size: 14px;
}

.rating-count {
    font-size: 13px;
    color: #999;
}

/* 가격 */
.card-price {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
}

.price-label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    flex-shrink: 0;
}

.price-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    align-items: flex-end;
}

.price-line {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.price-current-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-row.rental {
    border-color: #ddd;
}

.price-row.purchase {
    border-color: #ddd;
}

.price-row.rental.unavailable {
    background: #fbfbfb;
    border-color: #eee;
    justify-content: center;
}

.unavailable-text {
    font-size: 13px;
    color: #9ca3af;
}

.price-row.purchase.single {
    background: #fff7f5;
    border-color: #ffe0e0;
}

.price-original {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.price-discount {
    font-size: 12px;
    font-weight: 700;
    color: #df5337;
    background: #ffe8e8;
    padding: 1px 6px 2px;
    border-radius: 4px;
}

.price-current {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

/* 카드 버튼 */
.card-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-add-cart,
.btn-buy-now {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

.btn-add-cart {
    border: 1.5px solid var(--lq-accent-primary);
    background: #fff;
    color: var(--lq-accent-primary);
}

.btn-add-cart:hover {
    background: var(--lq-accent-primary);
    color: #fff;
}

.btn-buy-now {
    background: var(--lq-accent-primary);
    color: #fff;
    border: none;
}

.btn-buy-now:hover {
    background: var(--lq-accent-primary-dark);
}
/* 빈 상태 */
.empty-wishlist {
    background: #fff;
    border-radius: 16px;
    padding: 80px 40px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.empty-icon {
    margin-bottom: 24px;
    color: #e5e5e5;
}

.empty-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.empty-text {
    font-size: 15px;
    color: #666;
    margin-bottom: 32px;
}

.btn-go-shopping {
    display: inline-block;
    padding: 14px 32px;
    background: #c76b52;
    color: #fff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-go-shopping:hover {
    background: #bb877a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* 무한 스크롤 센티넬 및 로딩 */
.scroll-sentinel {
    padding: 20px;
    text-align: center;
}

.scroll-loading {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.scroll-loading .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e1e6f0;
    border-top-color: #c76b52;
    border-radius: 50%;
    animation: wishlist-spin 0.8s linear infinite;
}

@keyframes wishlist-spin {
    to { transform: rotate(360deg); }
}

.scroll-end-message {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 14px;
}

/* Responsive */

@media (max-width:1200px) {

    .wishlist-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

}


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

@media (max-width: 768px) {
    .wishlist-wrapper {
        padding: 40px 0;
    }

    .wishlist-wrapper .container {
        padding: 0 20px;
    }

    .page-title {
        font-size: 28px;
    }

    .page-subtitle {
        font-size: 14px;
    }

    .wishlist-controls {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        padding: 16px 20px;
    }

    .wishlist-actions {
        width: 100%;
    }

    .btn-select-delete,
    .btn-delete-all {
        flex: 1;
    }

    .wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .card-title {
        font-size: 14px;
    }

    .price-current {
        font-size: 18px;
    }

    .card-buttons {
        grid-template-columns: 1fr;
    }

    .empty-wishlist {
        padding: 60px 24px;
    }

    .empty-title {
        font-size: 20px;
    }

    .empty-text {
        font-size: 14px;
    }
}


@media (max-width: 650px) {
    .wishlist-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .card-content {gap:10px;}
}

@media (max-width: 480px) {
    .wishlist-wrapper .container {
        padding: 0 16px;
    }

    .page-header {
        margin-bottom: 30px;
    }

    .page-title {
        font-size: 24px;
    }

    .wishlist-controls {
        padding: 14px 16px;
    }

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

    .wishlist-count strong {
        font-size: 16px;
    }

    .btn-select-delete,
    .btn-delete-all {
        padding: 8px 16px;
        font-size: 13px;
    }

    .wishlist-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .checkbox-label {
        width: 20px;
        height: 20px;
        top: 12px;
        left: 12px;
    }

    .checkbox-label::after {
        width: 10px;
        height: 6px;
    }

    .btn-remove-wishlist {
        width: 28px;
        height: 28px;
    }

    .btn-remove-wishlist svg {
        width: 16px;
        height: 16px;
    }


    .card-badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    .card-title {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .rating-stars {
        font-size: 12px;
    }

    .rating-count {
        font-size: 12px;
    }

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

    .price-current {
        font-size: 16px;
    }

    .btn-add-cart,
    .btn-buy-now {
        padding: 10px;
        font-size: 13px;
    }

    .empty-wishlist {
        padding: 40px 20px;
    }

    .empty-icon svg {
        width: 60px;
        height: 60px;
    }

    .empty-title {
        font-size: 18px;
    }

    .btn-go-shopping {
        padding: 12px 24px;
        font-size: 14px;
    }
}
