/* ===================================
   Wishlist Styles
   =================================== */

/* Wishlist Button on Product Cards */
.wishlist-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.wishlist-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.wishlist-btn i {
    font-size: 1.2rem;
    color: #666;
    transition: all 0.3s ease;
}

.wishlist-btn.active i {
    color: white;
}

.wishlist-btn.active:hover i {
    color: #c2185b;
}

.wishlist-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
 
.floating-wishlist-btn {
    position: fixed;
    bottom: 190px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e91e63, #c2185b);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(233, 30, 99, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.floating-wishlist-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.6);
}

.floating-wishlist-btn.pulse {
    animation: pulse 0.6s ease;
}

.floating-wishlist-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #fff;
    color: #e91e63;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Wishlist Sidebar */
.wishlist-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.wishlist-sidebar.active {
    right: 0;
}

.wishlist-header {
    padding: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: white;
}

.wishlist-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.wishlist-close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.wishlist-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.wishlist-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}

.wishlist-item:hover {
    background: #f9f9f9;
}

.wishlist-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.wishlist-item-details {
    flex: 1;
    min-width: 0;
}

.wishlist-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wishlist-item-price {
    margin-bottom: 0.75rem;
}

.wishlist-item-price .current-price {
    font-weight: 700;
    color: #e91e63;
    font-size: 1.1rem;
}

.wishlist-item-price .list-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.wishlist-item-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-add-cart-from-wishlist {
    flex: 1;
    background: linear-gradient(135deg, #3B9DD5, #7BC043);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add-cart-from-wishlist:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 157, 213, 0.4);
    color: white;
}

.btn-remove-wishlist {
    background: #f5f5f5;
    border: none;
    color: #e91e63;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-wishlist:hover {
    background: #ffe0e6;
    color: #c2185b;
}

.wishlist-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
}

.wishlist-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ddd;
    display: block;
}

.wishlist-footer {
    padding: 1.5rem;
    border-top: 2px solid #f0f0f0;
}

.btn-view-all {
    background: linear-gradient(135deg, #3B9DD5, #7BC043);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    display: block;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 157, 213, 0.4);
    color: white;
}

.wishlist-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    transition: opacity 0.3s ease;
}

.wishlist-overlay.active {
    display: block;
}

/* Wishlist Particles Animation */
@keyframes wishlistParticle {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0);
    }
}

.wishlist-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #e91e63;
    border-radius: 50%;
    animation: wishlistParticle 1s ease-out forwards;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .wishlist-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .floating-wishlist-btn {
        bottom: 180px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .floating-wishlist-badge {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
    
    .wishlist-btn {
        width: 35px;
        height: 35px;
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .wishlist-btn i {
        font-size: 1rem;
    }
    
    .wishlist-item {
        flex-direction: column;
    }
    
    .wishlist-item-image {
        width: 100%;
        height: 200px;
    }
}

