.wishlist-widget {
    position: relative;
    display: inline-block;
    top: 5px;
}

.wishlist-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
}

/* Icon Left (default) */
.wishlist-link.icon-left {
    flex-direction: row;
}

/* Icon Right */
.wishlist-link.icon-right {
    flex-direction: row-reverse;
}

/* Icon Top */
.wishlist-link.icon-top {
    flex-direction: column;
}

/* Icon Bottom */
.wishlist-link.icon-bottom {
    flex-direction: column-reverse;
}

.wishlist-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.wishlist-count {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    padding: 0 4px;
}

.wishlist-popup {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 15px;
    display: none;
    z-index: 1000;
}

.wishlist-widget:hover .wishlist-popup {
    display: block;
}

.wishlist-items {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
}

.wishlist-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.wishlist-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 60px;
    margin-right: 10px;
}

.item-image img {
    width: 100%;
    height: auto;
    display: block;
}

.item-details {
    flex: 1;
    padding-right: 10px;
}

.item-details h4 {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 500;
}

.item-details .price {
    font-size: 13px;
    color: #333;
}

.remove-item {
    color: #999;
    transition: color 0.3s ease;
    padding: 5px;
}

.remove-item:hover {
    color: #333;
}

.view-wishlist {
    display: block;
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.view-wishlist:hover {
    background: #555;
}

.empty-wishlist {
    text-align: center;
    padding: 20px;
    color: #999;
    margin: 0;
}

.wishlist-text {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

/* Hover effect */
.wishlist-link:hover .wishlist-icon svg {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Animation for counter */
.wishlist-count {
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
