/* Định dạng chung cho icon Wishlist */
.wishlist-icon {
    cursor: pointer;
    display: inline-block;
    position: relative;
    z-index: 9999;
}

/* Biểu tượng trái tim */
.wishlist-icon i {
    font-size: 32px;
    color: #ffffff;
    transition: color 0.3s;
}

.wishlist-icon i:hover {
    color: #ffffff;
}

/* Popup */
.wishlist-popup {
    display: none;
    position: absolute;
    top: 35px; /* Đẩy popup xuống dưới icon */
    right: 0;
    width: 380px; /* Chiều rộng cố định */
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 15px;
    z-index: 1000;
    font-family: inherit;
}

/* Hiển thị popup khi hover */
.wishlist-icon:hover .wishlist-popup {
    display: block;
}

/* Danh sách sản phẩm */
.wishlist-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Sản phẩm đơn lẻ */
.wishlist-items li {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    padding: 10px 0;
}

/* Hình ảnh sản phẩm */
.wishlist-items li img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* Thông tin sản phẩm */
.wishlist-items li span {
    flex: 1;
    font-size: 14px;
    color: #e67e22;
}

/* Giá sản phẩm */
.wishlist-items li span:nth-child(2) {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    color: #000;
}

/* Nút xóa từng sản phẩm */
.wishlist-items li button.remove-wishlist-item {
    background: #ff6b6b;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
}

.wishlist-items li button.remove-wishlist-item:hover {
    background: #ff4040;
}

/* Nút xóa tất cả */
.clear-wishlist {
    width: 30%;
    margin-top: 10px;
    padding: 10px;
    background: #fff;
    color: #3d6808;
    border: 1px solid;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    transition: background 0.3s;
}

.clear-wishlist:hover {
    background: #3d6808;
}
